/* ================= v9 POLISH =================
   Motion + finish layer. Revert: delete the polish.css / polish.js tags in index.html. */
@property --spot{syntax:'<number>';inherits:false;initial-value:0}
:root{
  --e-out:cubic-bezier(.16,1,.3,1);          /* expo-out: fast start, long soft landing */
  --e-spring:cubic-bezier(.34,1.32,.5,1);    /* small overshoot */
  --e-snap:cubic-bezier(.2,.9,.25,1.05);
}

/* ---- type & rendering ---- */
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent}
h1,h2,h3,.page-h h1{text-wrap:balance}
p,.muted,.sub{text-wrap:pretty}
.serif-num,.num,.ring-num,.fit-num,.crm-stats b,.daily-row b,.cal-s b,.pulse .num,table.t td,.ar-score,.kv b{font-variant-numeric:tabular-nums}
::selection{background:rgba(201,162,39,.28);color:inherit}

/* thin, quiet scrollbars */
*{scrollbar-width:thin;scrollbar-color:rgba(17,17,17,.18) transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:rgba(17,17,17,.16);border-radius:99px;border:3px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background-color:rgba(17,17,17,.3)}
::-webkit-scrollbar-track{background:transparent}

/* one consistent focus ring, keyboard only */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid rgba(201,162,39,.7);outline-offset:2px;border-radius:8px}
.app :where(.f input,.f select,.f textarea,.ld-form select,.ld-form input):focus{border-color:#C9A227!important;box-shadow:0 0 0 4px rgba(201,162,39,.14)!important;outline:none}
.app :where(.f input,.f select,.f textarea){transition:border-color .2s var(--e-out),box-shadow .3s var(--e-out),background .2s}

/* ---- page transitions: softer, deeper entrance ---- */
@keyframes qm-view{from{opacity:0;transform:translateY(10px);filter:blur(3px)}to{opacity:1;transform:none;filter:none}}
@keyframes qm-card{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.content.fade-in{animation:qm-view .5s var(--e-out) both}
.content.fade-in .g > *{animation:qm-card .62s var(--e-out) both}
.content.fade-in .g > :nth-child(1){animation-delay:.03s}
.content.fade-in .g > :nth-child(2){animation-delay:.07s}
.content.fade-in .g > :nth-child(3){animation-delay:.11s}
.content.fade-in .g > :nth-child(4){animation-delay:.15s}
.content.fade-in .g > :nth-child(5){animation-delay:.19s}
.content.fade-in .g > :nth-child(6){animation-delay:.23s}
.content.fade-in .g > :nth-child(n+7){animation-delay:.27s}
.content.fade-in .page-h{animation:qm-card .55s var(--e-out) both}

/* scroll reveal for content below the fold (set by polish.js) */
.qrv{animation:none!important;opacity:0;transform:translateY(18px);transition:opacity .7s var(--e-out),transform .8s var(--e-out)}
.qrv.in{opacity:1;transform:none}

/* ---- sidebar ---- */
.side .nav-ink{transition:transform .55s var(--e-spring),height .35s var(--e-out),opacity .2s}
.side .nav svg{transition:color .2s,transform .35s var(--e-spring)}
.side .nav:hover svg{transform:scale(1.08)}
.side .nav:active{transform:scale(.985)}
.side .nav{transition:background .2s,color .2s,transform .15s var(--e-out)}
html.ui8 .app .side .nav[aria-current="page"]{color:#101828;font-weight:600}
html.ui8 .app .side .nav[aria-current="page"] svg{color:#B7791F}

/* topbar gains depth once you scroll */
.topbar{transition:box-shadow .35s var(--e-out),background .3s,border-color .3s}
html.qm-scrolled .app .topbar{box-shadow:0 1px 0 rgba(16,24,40,.04),0 10px 30px -22px rgba(16,24,40,.35)}

/* ---- buttons ---- */
.btn{will-change:transform}
.app .btn:hover:not([disabled]){transform:translateY(-1px)}
.btn:active:not([disabled]){transform:scale(.965)!important;transition-duration:.08s!important}
.btn[disabled]{cursor:not-allowed}
.btn-primary{position:relative;overflow:hidden;isolation:isolate}
.btn-primary::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.16) 46%,rgba(255,255,255,.04) 54%,transparent 70%);transform:translateX(-120%);transition:transform 0s}
.btn-primary:hover:not([disabled])::after{transform:translateX(120%);transition:transform .85s var(--e-out)}
html.ui8 .app .btn-primary{box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 1px 2px rgba(16,24,40,.18)}
html.ui8 .app .btn-primary:hover:not([disabled]){box-shadow:0 1px 0 rgba(255,255,255,.1) inset,0 8px 20px -10px rgba(16,24,40,.55)}
html.ui8 .app .btn:not(.btn-primary):hover:not([disabled]){border-color:#D0D5DD;box-shadow:0 2px 6px -3px rgba(16,24,40,.12)}

/* chips & segmented controls */
.chip span,.seg button,.seg-t span{transition:background .2s var(--e-out),color .2s,border-color .2s,transform .18s var(--e-out),box-shadow .25s}
.chip:active span,.seg button:active,.seg-t:active span{transform:scale(.95)}
html.ui8 .app .chip input:checked + span{box-shadow:0 4px 12px -6px rgba(16,24,40,.5)}

/* ---- interactive cards: lift + cursor spotlight ---- */
.fcard,.ld-card,.job,.plan2,.card[data-act],.card.click{
  --mx:50%;--my:50%;
  transition:transform .45s var(--e-spring),box-shadow .45s var(--e-out),border-color .25s,--spot .4s var(--e-out)!important;
}
html .app :is(.fcard,.ld-card,.job,.plan2,.card[data-act],.card.click){background-image:radial-gradient(380px circle at var(--mx) var(--my),rgba(201,162,39,calc(.075 * var(--spot))),transparent 60%)}
.fcard:hover,.ld-card:hover,.job:hover,.plan2:hover,.card[data-act]:hover,.card.click:hover{--spot:1;transform:translateY(-3px)}
.fcard:active,.ld-card:active,.card[data-act]:active,.card.click:active{transform:translateY(-1px) scale(.995);transition-duration:.12s!important}
html.ui8 .app .fcard:hover,html.ui8 .app .ld-card:hover,html.ui8 .app .job:hover,html.ui8 .app .plan2:hover{box-shadow:0 1px 2px rgba(16,24,40,.04),0 18px 40px -22px rgba(16,24,40,.32)}
.flogo{transition:transform .5s var(--e-spring)}
.fcard:hover .flogo,.job:hover .flogo{transform:scale(1.06) rotate(-2deg)}

/* static cards get a quiet, more physical shadow in Clean */
html.ui8 .app .card{box-shadow:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.03)}

/* table rows and list rows: smooth hover */
table.t tbody tr{transition:background .18s}
html.ui8 .app table.t tbody tr:hover{background:#FAFAFB}
.act,.fs-row,.dl,.chg,.netfirm{transition:background .18s,transform .3s var(--e-out)}

/* progress: bars and rings ease in with a long tail */
.bar > span,.pct-track span,.contrib .track span,.xpbar span{transition:width .9s var(--e-out)}
.ring-arc{transition:stroke-dashoffset 1.1s var(--e-out),stroke .3s}

/* ---- modals: blurred backdrop, spring panel ---- */
@keyframes qm-pop{from{opacity:0;transform:translateY(18px) scale(.965)}to{opacity:1;transform:none}}
@keyframes qm-dim{from{opacity:0}to{opacity:1}}
.modal:not([hidden]){animation:qm-dim .3s var(--e-out) both;-webkit-backdrop-filter:blur(6px) saturate(1.2);backdrop-filter:blur(6px) saturate(1.2)}
.modal .panel,.lm-panel{animation:qm-pop .5s var(--e-spring) both}
.lm{animation:qm-dim .3s var(--e-out) both;-webkit-backdrop-filter:blur(6px) saturate(1.2);backdrop-filter:blur(6px) saturate(1.2)}
.panel{box-shadow:0 0 0 1px rgba(16,24,40,.04),0 40px 90px -30px rgba(16,24,40,.45)}

/* ---- toast & tooltip ---- */
.toast{transition:opacity .25s var(--e-out),transform .55s var(--e-spring)!important}
.toast::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#D9B743;margin-right:9px;vertical-align:2px;box-shadow:0 0 8px rgba(217,183,67,.8)}
.qtip{transition:opacity .15s,transform .28s var(--e-spring)}

/* details/accordions open smoothly where supported */
@supports (interpolate-size:allow-keywords){
  :root{interpolate-size:allow-keywords}
  details::details-content{block-size:0;overflow:hidden;transition:block-size .4s var(--e-out),content-visibility .4s allow-discrete}
  details[open]::details-content{block-size:auto}
}
summary{transition:color .2s}

/* skeleton shimmer a bit softer */
.skel{background-size:200% 100%!important;animation-duration:1.4s!important}

/* images & logos fade in instead of popping */
img.qm-img{opacity:0;transition:opacity .4s var(--e-out)}
img.qm-img.ok{opacity:1}

@media (hover:none){
  .fcard:hover,.ld-card:hover,.job:hover,.plan2:hover,.card[data-act]:hover,.card.click:hover,.app .btn:hover:not([disabled]){transform:none}
}
@media (prefers-reduced-motion:reduce){
  .qrv{opacity:1;transform:none}
  .content.fade-in,.content.fade-in .g > *,.modal > *{animation:none!important}
}

/* ================= v10 LAYOUT + COMPONENTS ================= */

/* ---- layouts respond to the real content width (sidebar-aware), not the window ---- */
.app .content{container:qc / inline-size}
.app :is(.g-home,.g-2,.g-3) > *{container:cell / inline-size}
@container qc (max-width: 880px){
  .g-home,.g-2,.g-3{grid-template-columns:minmax(0,1fr)!important}
  .tpl-grid{grid-template-columns:minmax(0,1fr)}
}
@container qc (max-width: 560px){
  .crm-stats,.pulse{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* action rows (roadmap, home): buttons drop under the text when the column is narrow */
@container cell (max-width: 560px){
  .act{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  .act-type{width:auto;padding-top:0}
  .act-btns{justify-content:flex-start;flex-wrap:wrap}
}
/* reach form: 4 squeezed columns -> 2 */
@container cell (max-width: 640px){
  .rf-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .rf-form > :last-child{grid-column:1/-1}
}
@container cell (max-width: 360px){
  .rf-form{grid-template-columns:minmax(0,1fr)!important}
  .fs-row.compact .fs-name small{display:none}
}
/* daily challenge: never overlap the stats */
.daily-row{display:flex!important;flex-wrap:wrap;gap:14px 24px;align-items:center}
.daily-row .btn{margin-left:auto}

/* ---- Openings: title gets the room, tags sit under it ---- */
.job{grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-areas:"logo main btns" "logo tags btns";column-gap:16px!important;row-gap:8px!important;align-items:center;padding:16px 18px!important}
.job > .flogo{grid-area:logo;align-self:start}
.job-main{grid-area:main}
.job-main b{font-size:.98rem;letter-spacing:-.01em;line-height:1.3}
.job-tags{grid-area:tags;justify-content:flex-start!important}
.job-btns{grid-area:btns}
.job-kit{grid-column:1/-1}
@container qc (max-width: 620px){
  .job{grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"logo main" "logo tags" "btns btns"}
  .job-btns{justify-content:flex-start}
}

/* ---- filter toolbars: one clean bar instead of loose controls ---- */
html.ui8 .app .ftools{background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;gap:8px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
html.ui8 .app .ftools .chip span{border-color:transparent;background:transparent}
html.ui8 .app .ftools .chip:hover span{background:var(--soft)}
html.ui8 .app .ftools .chip input:checked + span{background:#101828;color:#fff}

/* ---- form controls: consistent height, custom chevron, soft focus ---- */
html.ui8 .app select:not([multiple]){-webkit-appearance:none;appearance:none;height:38px;padding:0 34px 0 12px;border:1px solid var(--line2);border-radius:10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;font:500 .875rem/1 var(--f-ui);color:#101828;cursor:pointer;transition:border-color .2s,box-shadow .25s}
html.ui8 .app select:not([multiple]):hover{border-color:#D0D5DD}
html.ui8 .app select:focus{border-color:#C9A227;box-shadow:0 0 0 4px rgba(201,162,39,.14);outline:none}
html.ui8 .app .ftools select{border-color:transparent;background-color:var(--soft)}
html.ui8 .app .ftools input:not([type=radio]):not([type=checkbox]){height:38px;border:1px solid transparent;border-radius:10px;background:var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;padding:0 12px 0 36px;font:500 .875rem var(--f-ui);color:#101828;transition:background-color .2s,border-color .2s,box-shadow .25s}
html.ui8 .app .ftools input:not([type=radio]):not([type=checkbox]):focus{background-color:#fff;border-color:#C9A227;box-shadow:0 0 0 4px rgba(201,162,39,.14);outline:none}
html.ui8 .app ::placeholder{color:#98A2B3}

/* ---- Home hero: ink + gold, the brand's signature surface ---- */

/* score chart motion: line draws in, latest point breathes */
@keyframes h-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes h-fade{from{opacity:0}}
@keyframes h-halo{0%{transform:scale(.6);opacity:.45}100%{transform:scale(2.1);opacity:0}}
.hist-chart .h-line{stroke-dasharray:1;filter:drop-shadow(0 4px 10px rgba(217,183,67,.45))}
.content.fade-in .hist-chart .h-line{animation:h-draw 1.3s var(--e-out) .15s both}
.content.fade-in .hist-chart .h-area{animation:h-fade 1s var(--e-out) .5s both}
.hist-chart .h-halo{transform-box:fill-box;transform-origin:center;animation:h-halo 2.4s var(--e-out) infinite}
.hist-chart .pt.last{stroke:#fff;stroke-width:1.5}

/* ---- score ring gets a soft gold glow ---- */
html.ui8 .app .ring .ring-arc{filter:drop-shadow(0 2px 6px rgba(201,162,39,.35))}

/* ---- card headers: tighter, cleaner rhythm ---- */
html.ui8 .app .card-h{margin-bottom:14px}
html.ui8 .app .card-h h3{font-size:1.02rem;font-weight:650;letter-spacing:-.02em}
html.ui8 .app .card-h .link{color:#475467;font-weight:550;text-decoration:none;padding:4px 10px;border-radius:8px;transition:background .2s,color .2s}
html.ui8 .app .card-h .link:hover{background:var(--soft);color:#101828}
html.ui8 .app .page-h h1{letter-spacing:-.045em}

/* ---- sidebar plan card: ink, like the hero ---- */

/* ================= v11 DESIGN SYSTEM NORMALIZATION =================
   Audit findings: warm + cool grays mixed, 22+ font sizes (most 9.6-12.5px), 600/700 weights outnumber regular,
   14 corner radii, ~700 bordered elements, mono digits inside sentences. This block collapses all of it to one system. */

/* 1. one neutral family (cool), one accent (gold), muted semantic colors */
html.ui8 :is(.app,.lm,.modal:not(#ob)){
  --ivory:#F9FAFB;--white:#FFFFFF;--ink:#101828;--ink-2:#344054;--muted:#667085;--faint:#98A2B3;
  --rule:#EAECF0;--rule-2:#E4E7EC;--tint:#F2F4F7;
  --gold:#C9A227;--gold-deep:#93700A;--gold-wash:rgba(201,162,39,.11);
  --pos:#067647;--mid:#93700A;--reach:#B54708;--neg:#B42318;--none:#667085;
  --r:16px;--r-sm:10px;
}

/* 2. type scale: 11.5 / 13 / 14 / 15 / 18 / 30 */
html.ui8 .app{font-size:14.5px;color:var(--ink)}
html.ui8 .app :is(small,.muted small,.job-main small,.fc-name small,.fs-name small,.act small,.fc-next small){font-size:13px;line-height:1.45}
html.ui8 .app .card p,html.ui8 .app .card li{font-size:14px}
html.ui8 .app .card p.muted[style*="font-size"],html.ui8 .app .discl,html.ui8 .app p.discl{font-size:12.5px!important}
html.ui8 .app :is(.eyebrow,.job-firm,.act-type,.nav-group,.group-label){font-size:11.5px!important;font-weight:600;letter-spacing:.09em}
html.ui8 .app .nav-group{color:#98A2B3}
html.ui8 .app .card-h .muted,html.ui8 .app .card-h span.muted{font-size:13px!important}
html.ui8 .app .page-h h1{font-size:30px;font-weight:700;letter-spacing:-.04em;line-height:1.1}
html.ui8 .app .page-h p{font-size:15px;line-height:1.55;max-width:66ch;margin-top:8px}
html.ui8 .app .side .nav{font-size:14px}
html.ui8 .app :is(.f > span,label.f span:first-child){font-size:13px;font-weight:500;color:#344054}

/* 3. digits: proportional UI font with tabular figures, not monospace inside sentences */
html.ui8 .app :is(.num,.mono,.delta,.delta-up,.hist-chart text,.impact,.pill,.fit-num){font-family:var(--f-ui);font-variant-numeric:tabular-nums}
html.ui8 .app .num{font-weight:600}
html.ui8 .app .hist-chart text{font-size:8.5px;font-weight:500}
html.ui8 .app .kbd{font-family:var(--f-ui);font-size:11.5px;font-weight:500;color:#667085}

/* 4. weight discipline: titles 600-700, labels 500, body 400 */
html.ui8 .app :is(.chip span,.tag,.pill,.sig,.flag,.phase,.seg button,.btn-sm){font-weight:500}
html.ui8 .app .btn{font-weight:600}

/* 5. radii: 10 controls · 12 inner panels · 16 cards · 999 pills */
html.ui8 .app :is(.card,.fcard,.job,.ld-card,.plan2,.tbl,.empty){border-radius:16px}
html.ui8 .app :is(.btn,.f input,.f select,.f textarea,select,.seg){border-radius:10px}
html.ui8 .app :is(.tag,.pill,.sig,.flag,.phase,.delta,.chip span){border-radius:999px}

/* 6. badges: one shape, tinted fill, no outlines */
html.ui8 .app :is(.tag,.pill,.sig,.flag,.phase){display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;font-size:12px!important;line-height:1;border:0!important;white-space:nowrap}
html.ui8 .app .tag{background:#F2F4F7;color:#475467}
html.ui8 .app .tag.gold{background:#FDF6E3;color:#93700A}
html.ui8 .app .pill.b-strong,html.ui8 .app .flag.ok,html.ui8 .app .phase.now{background:#ECFDF3;color:#067647}
html.ui8 .app .pill.b-comp,html.ui8 .app .phase.next{background:#FDF6E3;color:#93700A}
html.ui8 .app .pill.b-reach,html.ui8 .app .flag.warn{background:#FFF4ED;color:#B54708}
html.ui8 .app .pill.b-gap,html.ui8 .app .flag.bad{background:#FEF3F2;color:#B42318}
html.ui8 .app .pill.b-none{background:#F2F4F7;color:#667085}
html.ui8 .app .sig{background:#F2F4F7;color:#344054}
html.ui8 .app .sig.off{background:transparent;color:#98A2B3;box-shadow:inset 0 0 0 1px #E4E7EC}
html.ui8 .app .phase{background:#F2F4F7;color:#667085}
html.ui8 .app .side .nav .tag{height:20px;padding:0 8px;font-size:10.5px!important;font-weight:600;background:#F2F4F7;color:#667085;letter-spacing:.01em}
html.ui8 .app .delta{display:inline-flex;align-items:center;height:22px;padding:0 8px;font-size:12px;font-weight:600;border:0}
html.ui8 .app .delta.up{background:#ECFDF3;color:#067647}
html.ui8 .app .delta.down{background:#FEF3F2;color:#B42318}

/* 7. fewer lines: nested rows use hairlines, inner panels use fills instead of borders */
html.ui8 .app :is(.act,.fs-row,.kv,.dl,.chg,.cal-row,.tpl,.netfirm){border-color:#F2F4F7!important}
html.ui8 .app :is(.vf-box,.suggest,.rf-none,.rk-drop,.job-kit,.kit-row){border-color:transparent!important;background:#F9FAFB}
html.ui8 .app .fc-next{border:0!important}
html.ui8 .app .fc-next.b-strong{background:#ECFDF3}
html.ui8 .app .fc-next.b-comp{background:#FDF6E3}
html.ui8 .app .fc-next.b-reach{background:#FFF4ED}
html.ui8 .app .fc-next.b-gap{background:#FEF3F2}
html.ui8 .app .fc-next.b-none{background:#F9FAFB}
html.ui8 .app .card{border-color:#EAECF0}
html.ui8 .app hr,html.ui8 .app .conf{border-color:#F2F4F7}

/* 8. the example-profile banner stops shouting on every page */
html.ui8 .app .content > .banner.gold:first-child{padding:10px 12px 10px 16px;background:#fff;border:1px solid #EAECF0;box-shadow:0 1px 2px rgba(16,24,40,.04);font-size:13.5px;align-items:center}
html.ui8 .app .content > .banner.gold:first-child p{color:#475467}
html.ui8 .app .content > .banner.gold:first-child p b{color:#101828}
html.ui8 .app .content > .banner.gold:first-child::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#D9B743;box-shadow:0 0 0 4px rgba(217,183,67,.18);margin-right:12px}

/* 9. topbar quieter; score becomes a chip */
html.ui8 .app .topbar .top-meta{font-size:13px;color:#667085}
html.ui8 .app .topbar .top-meta b{color:#101828}

/* 10. section rhythm: consistent vertical spacing */
html.ui8 .app .content{padding-top:28px;padding-bottom:64px}
html.ui8 .app .page-h{margin-bottom:24px}
html.ui8 .app .g{gap:20px}
html.ui8 .app .card{padding:22px 24px}
html.ui8 .app .card-h h3{font-size:15.5px}
html.ui8 .app .ftools:not(:has(input:not([type=radio]):not([type=checkbox]))){flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
html.ui8 .app .ftools::-webkit-scrollbar{display:none}
html.ui8 .app .ftools > *{flex:none}
html.ui8 .app .ftools input:not([type=radio]):not([type=checkbox]){flex:1 1 200px!important}

/* ================= v12 SHELL · HOME · ARENA · LOCKED =================
   From a 1440x900 audit: generic top bar, a banner on every page, identical white boxes, a two-point "trend",
   spreadsheet-cell stats, paragraph-heavy actions, dead-end locked pages, Arena that read like a settings form. */

/* ---------- fonts: digits stay proportional + tabular everywhere in the app ---------- */
html.ui8 .app{--f-mono:var(--f-ui)}
html.ui8 .app :is(.num,.mono,.impact,.d){font-variant-numeric:tabular-nums}

/* ---------- sidebar: fits a 900px screen, indicator lives inside the pill ---------- */
html.ui8 .app .side{padding:14px 12px 14px;gap:8px}
html.ui8 .app .side > .wm{padding:6px 10px 12px!important}
html.ui8 .app .side .nav{height:33px}
html.ui8 .app .nav-group{padding:12px 10px 5px}
html.ui8 .app .nav-group:first-of-type{padding-top:2px}
html.ui8 .app .nav-ink::before{left:5px;top:10px;bottom:10px;width:3px}
html.ui8 .app .side-foot{gap:10px;padding-top:10px}
html.ui8 .app .side-user{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}
.app .side-links{display:flex;flex-wrap:wrap;gap:4px 14px;padding:0 4px}
.app .side-links .link{font-size:12px;color:var(--muted);text-decoration:none;background:none;border:0;padding:0;cursor:pointer}
.app .side-links .link:hover{color:var(--ink)}

/* ---------- top bar: breadcrumb · search · chips ---------- */
html.ui8 .app .topbar{height:64px;padding:0 32px;gap:16px;flex-wrap:nowrap;background:rgba(246,247,249,.74);border-bottom:1px solid transparent;-webkit-backdrop-filter:saturate(1.8) blur(16px);backdrop-filter:saturate(1.8) blur(16px)}
html.ui8.qm-scrolled .app .topbar{background:rgba(255,255,255,.82);border-bottom-color:#EAECF0}
.app .crumb{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);white-space:nowrap;min-width:0;flex:0 1 auto}
.app .crumb svg{color:#D0D5DD;flex:none}
.app .crumb b{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis}
html.ui8 .app .search{flex:0 1 360px;margin-left:auto;height:38px;background:#fff;border:1px solid #EAECF0;border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,.04);padding:0 6px 0 12px;gap:8px}
html.ui8 .app .search .kbd{flex:none;height:24px;padding:0 7px;border:1px solid #EAECF0;border-radius:6px;background:#F9FAFB;font:500 11px var(--f-ui);color:#667085;cursor:pointer;transition:background .2s,color .2s}
html.ui8 .app .search .kbd:hover{background:#F2F4F7;color:#101828}
.app .top-meta{gap:10px;flex-wrap:nowrap;margin-left:12px}
.app .ex-chip{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 4px 0 12px;border-radius:999px;background:#fff;border:1px solid #F3DEB0;box-shadow:0 1px 2px rgba(16,24,40,.05);font-size:12.5px;font-weight:550;color:#93700A;white-space:nowrap}
.app .ex-chip i{width:7px;height:7px;border-radius:50%;background:#D9B743;box-shadow:0 0 0 3px rgba(217,183,67,.22);animation:exPulse 2.4s ease-in-out infinite}
.app .ex-chip .btn{height:26px;padding:0 11px;font-size:12px;border-radius:999px}
@keyframes exPulse{50%{box-shadow:0 0 0 6px rgba(217,183,67,0)}}
.app .score-chip{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px 0 8px;border-radius:999px;border:1px solid #EAECF0;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.05);cursor:pointer;font:500 12.5px var(--f-ui);color:#475467;white-space:nowrap;transition:border-color .2s,box-shadow .25s var(--e-out),transform .25s var(--e-out)}
.app .score-chip svg{width:20px;height:20px;color:#101828;flex:none}
.app .score-chip b{font-size:14px;font-weight:700;color:#101828;letter-spacing:-.01em}
.app .score-chip:hover{border-color:#D0D5DD;box-shadow:0 6px 16px -8px rgba(16,24,40,.3);transform:translateY(-1px)}
.app .top-meta .avatar{--comp:0;position:relative;width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;border:0;padding:0;cursor:pointer;background:#101828;color:#fff;font:600 13px var(--f-ui);transition:transform .3s var(--e-spring)}
.app .top-meta .avatar::after{content:"";position:absolute;inset:-4px;border-radius:50%;background:conic-gradient(#C9A227 calc(var(--comp) * 1%),#EAECF0 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 2px))}
.app .top-meta .avatar:hover{transform:scale(1.06)}
html.ui8 .app .streak{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 12px;border-radius:999px;background:#FFF6ED;border:1px solid #FDDCAB;color:#B54708;font-size:13px;font-weight:600}
html.ui8 .app .streak svg{width:14px;height:14px}
.app .ex-strip{display:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 10px 14px;margin-bottom:16px;border-radius:12px;background:#fff;border:1px solid #F3DEB0;font-size:13px;color:#475467}
.app .ex-strip b{color:#101828}
@media (max-width:900px){.app .ex-strip{display:flex}.app .crumb{display:none}}
@media (max-width:1180px){.app .score-chip span{display:none}.app .ex-chip > span{display:none}.app .ex-chip{padding-left:10px}}

/* ---------- Home hero: ink + gold, KPIs, readiness radar ---------- */
.radar .r-you polygon{filter:drop-shadow(0 6px 18px rgba(217,183,67,.3))}
@keyframes r-in{from{transform:scale(.25) rotate(-8deg);opacity:0}to{transform:none;opacity:1}}
@keyframes r-fade{from{opacity:0}}
.content.fade-in .radar .r-you{animation:r-in 1s var(--e-spring) .2s both}
.content.fade-in .radar .r-bar{animation:r-fade .9s var(--e-out) .6s both}

/* ---------- Home bento grid ---------- */
.app .hgrid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;margin-top:20px}
.app .hgrid > *{container:cell / inline-size;min-width:0}
.app .h-score{grid-column:span 5}
.app .h-targets{grid-column:span 7}
.app .h-acts{grid-column:span 7;grid-row:span 2}
.app .h-pulse{grid-column:span 5}
.app .h-chg{grid-column:span 5}
@container qc (max-width: 980px){.app .hgrid > *{grid-column:1/-1!important;grid-row:auto!important}}
.app .h-note{font-size:12px;margin-top:10px}
.app #jobsAlert:not(:empty){margin-top:16px}
html.ui8 .app .jobs-alert{background:linear-gradient(90deg,#FFFBEB,#FFFFFF 60%);border:1px solid #F3DEB0;border-radius:14px;padding:12px 12px 12px 18px}

/* score card */
.app .role-s.on > div:first-child span{color:var(--ink);font-weight:600}
.app .conf2{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;margin-top:18px;padding-top:16px;border-top:1px solid #F2F4F7;font-size:12.5px}
.app .sigdots{display:inline-flex;gap:5px}
.app .sigdots i{width:11px;height:11px;border-radius:3.5px;background:#D0D5DD;cursor:help;transition:transform .25s var(--e-spring)}
.app .sigdots i:hover{transform:scale(1.4)}
.app .sigdots i.verified{background:#101828}
.app .sigdots i.resume{background:#C9A227}
.app .sigdots i.self{background:#98A2B3}
.app .sigdots i.off{background:transparent;box-shadow:inset 0 0 0 1.5px #D0D5DD}
.app .h-score .discl{margin-top:12px}
html.ui8 .app .ring circle:first-child{stroke:#F2F4F7}

/* target firms with fit meters */
html.ui8 .app .fs-row.tgt{grid-template-columns:minmax(0,1fr) 88px 30px auto!important;gap:14px;padding:11px 10px}
.app .fitbar{position:relative;height:6px;border-radius:6px;background:#F2F4F7}
.app .fitbar span{position:absolute;left:0;top:0;bottom:0;border-radius:inherit;background:linear-gradient(90deg,#344054,#101828);transform-origin:left}
.app .fitbar i{position:absolute;top:-4px;bottom:-4px;width:2px;border-radius:2px;background:#C9A227;transform:translateX(-1px);box-shadow:0 0 0 2px #fff}
.content.fade-in .fitbar span{animation:grow 1s var(--e-out) .25s both}
html.ui8 .app .fs-row.tgt .fit-num{font-size:17px;font-weight:700;text-align:right;letter-spacing:-.02em}
@container cell (max-width: 520px){html.ui8 .app .fs-row.tgt{grid-template-columns:minmax(0,1fr) auto auto!important}.app .fs-row.tgt .fitbar{display:none}}

/* actions: one line of why, the fine print lives in the badge tooltip */
.app .h-acts .vf-note{display:none}
.app .h-acts .act > div > small:first-of-type{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.app .vf-how{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:12.5px;color:var(--muted)}
html.ui8 .app .act{padding:16px 0}
html.ui8 .app .act b{font-size:14.5px;letter-spacing:-.01em}
html.ui8 .app .act-type{display:inline-flex;align-items:center;justify-content:center;height:22px;padding:0 8px;border-radius:6px;background:#FDF6E3;color:#93700A!important;font-size:10.5px!important;letter-spacing:.06em!important;width:auto!important;margin-top:1px}
html.ui8 .app .impact{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;background:#ECFDF3;color:#067647;font-size:12px;font-weight:600}

/* pulse tiles (home + assessments) */
html.ui8 .app .pulse{gap:10px;background:none;border:0;border-radius:0;overflow:visible;margin-bottom:6px}
html.ui8 .app .pulse > div{background:#F9FAFB;border:1px solid #F2F4F7;border-radius:12px;padding:14px 14px 12px;display:flex;flex-direction:column;gap:2px;transition:border-color .2s,background .2s}
html.ui8 .app .pulse > div:hover{background:#fff;border-color:#EAECF0}
html.ui8 .app .pulse .num{font-size:26px;font-weight:700;letter-spacing:-.035em;color:#101828;line-height:1.15}
html.ui8 .app .pulse small{font-size:12px;color:#667085}
html.ui8 .app .pulse > div.hot{background:#FFF6ED;border-color:#FDDCAB}
html.ui8 .app .pulse > div.hot .num{color:#B54708}
@container cell (max-width: 430px){html.ui8 .app .pulse{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* deadlines with calendar chips */
.app .dls{margin-top:12px}
html.ui8 .app .dls .dl{grid-template-columns:auto minmax(0,1fr) auto;gap:14px;padding:10px 0;border-top:1px solid #F2F4F7!important}
.app .dls .dl:first-child{border-top:0!important}
.app .dchip{display:flex;flex-direction:column;align-items:center;justify-content:center;width:44px;height:46px;border-radius:11px;background:#fff;border:1px solid #EAECF0;box-shadow:0 1px 2px rgba(16,24,40,.05);line-height:1;overflow:hidden}
.app .dchip small{font-size:9.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#B7791F}
.app .dchip b{font-size:17px;font-weight:700;color:#101828;margin-top:4px}
.app .dl-m{display:flex;align-items:center;gap:10px;min-width:0}
.app .dl-m > span{display:flex;flex-direction:column;min-width:0}
.app .dl-m b{font-weight:600;font-size:14px}
.app .dl-m small{font-size:12.5px;color:#667085}

/* what changed: a timeline */
html.ui8 .app .chg{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:0!important;border-top:0!important;font-size:13.5px}
html.ui8 .app .chg .d{padding-top:1px;font-size:12px;color:#98A2B3;text-align:right}
html.ui8 .app .chg > div{position:relative;padding:0 0 18px 20px;border-left:1.5px solid #EAECF0}
html.ui8 .app .chg:last-child > div{border-left-color:transparent;padding-bottom:2px}
html.ui8 .app .chg > div::before{content:"";position:absolute;left:-6px;top:3px;width:9px;height:9px;border-radius:50%;background:#fff;border:2px solid #C9A227}
html.ui8 .app .chg ul{gap:6px;font-size:12px}
html.ui8 .app .chg li{padding:2px 8px;border-radius:999px;background:#F2F4F7;color:#475467}
html.ui8 .app .chg .delta-up{color:#067647;font-weight:600}

/* ---------- locked Pro pages ---------- */
.app .lock2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:36px;padding:34px!important;align-items:center;overflow:hidden}
.app .lock-copy h2{font-size:26px;font-weight:700;letter-spacing:-.035em;margin:14px 0 18px;line-height:1.15}
.app .lock-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.app .lock-list li{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;color:#344054;line-height:1.45}
.app .lock-list svg{width:20px;height:20px;flex:none;padding:3px;border-radius:50%;background:#ECFDF3;color:#067647}
.app .lock-cta{display:flex;gap:10px;margin-top:26px;flex-wrap:wrap}
.app .lock-art{position:relative;height:300px;border-radius:16px;background:linear-gradient(160deg,#F9FAFB,#F2F4F7);border:1px solid #EAECF0;overflow:hidden;padding:18px}
.app .lock-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,rgba(242,244,247,.95));pointer-events:none}
.app .la-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.app .la-col{display:flex;flex-direction:column;gap:8px}
.app .la-h{display:flex;justify-content:space-between;font-size:10.5px;font-weight:650;color:#667085;text-transform:uppercase;letter-spacing:.07em;padding:0 2px 2px}
.app .la-h i{font-style:normal;color:#98A2B3}
.app .la-card{background:#fff;border:1px solid #EAECF0;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:7px;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.app .la-logo{width:18px;height:18px;border-radius:5px;background:#101828;display:block}
.app .la-col:nth-child(2) .la-logo{background:#C9A227}
.app .la-col:nth-child(3) .la-logo{background:#12B76A}
.app .la-card span{height:6px;border-radius:4px;background:#EAECF0;display:block}
@keyframes la-float{50%{transform:translateY(-6px)}}
@container qc (max-width: 820px){.app .lock2{grid-template-columns:minmax(0,1fr);padding:24px!important}.app .lock-art{height:220px}}

/* ---------- Arena: game first ---------- */
.app .g-home:has(> #arHost){grid-template-columns:minmax(0,1fr)!important}
.app #arSide{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px!important;align-items:stretch}
@container qc (max-width: 1020px){.app #arSide{grid-template-columns:repeat(2,minmax(0,1fr))}}@container qc (max-width: 680px){.app #arSide{grid-template-columns:minmax(0,1fr)}}
html.ui8 .app .ar-card{padding:26px 28px!important;min-height:0}
.app .ar-setup{gap:18px!important}
.app .ar-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:12.5px}
.app .ar-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.app .ar-mode{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:18px 18px 16px;border-radius:16px;border:1px solid #EAECF0;background:#fff;cursor:pointer;font:inherit;color:#101828;min-height:172px;box-shadow:0 1px 2px rgba(16,24,40,.04);transition:transform .4s var(--e-spring),box-shadow .4s var(--e-out),border-color .2s}
.app .ar-mode:hover{transform:translateY(-4px);border-color:#D0D5DD;box-shadow:0 22px 40px -22px rgba(16,24,40,.4)}
.app .ar-mode:active{transform:translateY(-1px) scale(.985);transition-duration:.12s}
.app .ar-mi{display:grid;place-items:center;min-width:44px;height:44px;padding:0 9px;border-radius:12px;background:#F2F4F7;color:#101828;font:700 14px var(--f-ui);margin-bottom:12px;letter-spacing:-.01em}
.app .ar-mode b{font-size:16px;font-weight:650;letter-spacing:-.015em}
.app .ar-mode small{font-size:12.5px;color:#667085;line-height:1.45}
.app .ar-mode em{font-style:normal;margin-top:auto;padding-top:12px;font-size:12.5px;color:#667085}
.app .ar-mode em b{font-size:13px}
.app .ar-play{position:absolute;right:14px;top:14px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#F2F4F7;color:#101828;transition:transform .4s var(--e-spring),background .2s,color .2s}
.app .ar-play svg{width:14px;height:14px;margin-left:2px}
.app .ar-mode:hover .ar-play{transform:scale(1.14);background:#101828;color:#fff}
@keyframes playPulse{50%{box-shadow:0 0 0 8px rgba(217,183,67,0)}}
@container qc (max-width: 700px){.app .ar-modes{grid-template-columns:minmax(0,1fr)}.app .ar-mode{min-height:0}}
.app .ar-adv{border:1px solid #EAECF0;border-radius:14px;background:#F9FAFB;transition:background .2s}
.app .ar-adv[open]{background:#fff}
.app .ar-adv summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:13px 16px;font-size:14px;font-weight:600}
.app .ar-adv summary::-webkit-details-marker{display:none}
.app .ar-adv summary::after{content:"";margin-left:auto;width:7px;height:7px;border-right:2px solid #98A2B3;border-bottom:2px solid #98A2B3;transform:rotate(45deg) translateY(-2px);transition:transform .35s var(--e-out)}
.app .ar-adv[open] summary::after{transform:rotate(-135deg)}
.app .ar-adv summary small{font-weight:400;font-size:12.5px}
.app .ar-adv-in{padding:2px 16px 16px;display:flex;flex-direction:column;gap:14px}
html.ui8 .app .ar-adv .ar-rngs{background:#F9FAFB;border:1px solid #F2F4F7}
html.ui8 .app .ar-num{font-family:var(--f-ui);height:34px;border-radius:8px;border-color:#EAECF0;font-weight:600}
.app .ar-setup .ar-actions{justify-content:flex-start;margin-top:0}
.app .ar-go{height:46px;padding:0 24px!important;font-size:15px}
/* in-run */
.app .ar-run{gap:30px!important;padding:6px 0 22px!important}
.app .ar-hud{font-size:14px;color:#667085}
.app .ar-hud b.num{font-size:20px;color:#101828;font-weight:700;display:inline-block}
.app .ar-hud b.num.bump{animation:bump .4s var(--e-spring)}
@keyframes bump{35%{transform:scale(1.3);color:#067647}}
.app .ar-t{font-size:22px!important;font-weight:700;color:#101828}
html.ui8 .app .ar-bar{height:6px;background:#F2F4F7}
html.ui8 .app .ar-q{font-family:var(--f-ui)!important;font-weight:700;font-size:clamp(3.2rem,7vw,5.2rem)!important;letter-spacing:-.045em;color:#101828;font-variant-numeric:tabular-nums}
html.ui8 .app .ar-in{font-family:var(--f-ui)!important;font-weight:650;font-size:2.2rem;width:min(300px,100%);height:76px;border-radius:20px;border:2px solid #EAECF0;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.05);font-variant-numeric:tabular-nums;transition:border-color .2s,box-shadow .3s}
html.ui8 .app .ar-in:focus{border-color:#101828;box-shadow:0 0 0 6px rgba(201,162,39,.16)}
html.ui8 .app .ar-in.ok{animation:okflash .5s var(--e-out)}
@keyframes okflash{0%{border-color:#12B76A;box-shadow:0 0 0 9px rgba(18,183,106,.22)}}
/* results */
html.ui8 .app .ar-big b.num{font-size:clamp(4rem,9vw,6rem);font-weight:700;letter-spacing:-.05em}
html.ui8 .app .ar-op{background:#F9FAFB;border:1px solid #F2F4F7;border-radius:12px}
html.ui8 .app .ar-op.slow{background:#FFF6ED;border-color:#FDDCAB}
/* practice heatmap fills its card */
html.ui8 .app .heat{grid-template-columns:none!important;grid-auto-columns:minmax(0,1fr)!important;grid-auto-flow:column;grid-template-rows:repeat(7,auto)!important;gap:4px!important;width:100%;overflow:visible}
html.ui8 .app .heat i{width:auto!important;height:auto!important;aspect-ratio:1;border-radius:4px;background:#F2F4F7}
html.ui8 .app .heat i.l1{background:#F3DEB0}
html.ui8 .app .heat i.l2{background:#D9B743}
html.ui8 .app .heat i.l3{background:#93700A}
html.ui8 .app .heat i.pad{background:transparent}

/* v12.1 fixes from the second screenshot pass */
html.ui8 .app .side > .wm{padding:4px 10px 8px!important}
/* v12.2: landing demo numerals + mobile strip + cards don't stretch into empty boxes */
.hd-q{font-family:var(--f-ui)!important;font-weight:700;letter-spacing:-.045em!important;font-variant-numeric:tabular-nums}
.hd-q.ghost{opacity:.55!important}
.app .ex-strip .btn{flex:none;white-space:nowrap;padding:0 12px}
.app .ex-strip > span{min-width:0}
.app .g-home{align-items:start}

/* v12.3: the new hero and search are theme-independent (Classic theme keeps working) */
.app .search{min-width:0}
.app .search .kbd{flex:none;white-space:nowrap}
.app .topbar{flex-wrap:nowrap}

/* ================= v13 LIGHT: no black surfaces =================
   Hero, plan card, Arena tile and locked preview are light now; gold carries the emphasis. */
.app .brief.hero2{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px;align-items:stretch;padding:30px 32px 28px;margin-bottom:0;position:relative;overflow:hidden;border-radius:20px;border:1px solid #EAECF0;color:#101828;
  background:radial-gradient(520px circle at var(--mx,85%) var(--my,0%),rgba(217,183,67,.10),transparent 62%),radial-gradient(700px 300px at 100% -20%,rgba(217,183,67,.12),transparent 65%),#fff;
  box-shadow:0 1px 2px rgba(16,24,40,.04),0 16px 36px -28px rgba(16,24,40,.22)}
.app .brief.hero2::before{display:none}
.app .hero2 .brief-l{display:flex;flex-direction:column;min-width:0}
.app .hero2 .eyebrow{color:#B7791F}
.app .hero2 .brief-h{font-family:var(--f-ui);font-weight:700;font-size:clamp(1.9rem,3vw,2.55rem);letter-spacing:-.045em;line-height:1.05;color:#101828;margin:10px 0 10px}
.app .hero2 .brief-s{font-size:15px;line-height:1.6;color:#475467;max-width:56ch}
.app .hero2 .brief-s b,.app .hero2 .brief-s .num{color:#101828;font-weight:600}
.app .hero2 .muted{color:#667085}
.app .hero2 .brief-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.app .hero2 .btn-primary{background:linear-gradient(180deg,#E0BE4C,#C9A227);border-color:#C29B1F;color:#1A1405;box-shadow:0 1px 0 rgba(255,255,255,.45) inset,0 8px 20px -12px rgba(201,162,39,.8)}
.app .hero2 .btn-primary:hover:not([disabled]){background:linear-gradient(180deg,#E7C85E,#CFA92C)}
.app .btn-glass{background:#fff;border:1px solid #EAECF0;color:#101828}
.app .btn-glass:hover:not([disabled]){background:#F9FAFB;border-color:#D0D5DD}
.app .hero2 .kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:24px}
.app .hero2 .kpi{display:flex;flex-direction:column;gap:5px;min-width:0;padding:13px 14px;border-radius:14px;background:#F9FAFB;border:1px solid #F2F4F7;transition:background .25s,border-color .25s}
.app .hero2 .kpi:hover{background:#fff;border-color:#EAECF0}
.app .hero2 .kpi > span{font-size:12px;font-weight:500;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .hero2 .kpi-v{display:flex;align-items:baseline;gap:6px;min-width:0;height:30px}
.app .hero2 .kpi-v b.num{font-size:27px;font-weight:700;letter-spacing:-.035em;color:#101828;line-height:1}
.app .hero2 .kpi-unit{font-style:normal;font-size:12px;color:#98A2B3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .hero2 .kpi small{font-size:12px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app .hero2 .kpi small .link{color:#93700A;font-size:12px;padding:0;background:none;border:0;text-decoration:none;cursor:pointer}
.app .hero2 .kpi .delta{font-style:normal}
.app .hero2 .kpi-bar{height:5px;border-radius:5px;background:#EAECF0;overflow:hidden;margin-top:6px}
.app .hero2 .kpi-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#C9A227,#E3C55A)}
.content.fade-in .hero2 .kpi-bar i{animation:grow 1.1s var(--e-out) .35s both;transform-origin:left}
.app .hero2 .kpi-spark svg{display:block;width:100%!important;height:22px!important;overflow:visible}
.app .hero2 .brief-r{display:flex;flex-direction:column;padding:16px 16px 8px;border-radius:16px;background:#FCFCFD;border:1px solid #F2F4F7;min-width:0}
.app .brief-chart-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.app .hero2 .radar{width:100%;max-width:none;height:auto;flex:1;min-height:0}
.app .hero2 .radar text{fill:#667085;font-size:11px;font-weight:500}
.app .hero2 .radar text tspan{fill:#101828;font-weight:650}
.app .radar-key{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#667085;white-space:nowrap;overflow:hidden}
.app .radar-key i{width:14px;height:3px;border-radius:2px;display:inline-block;flex:none}
.app .radar-key i.you{background:#C9A227}
.app .radar-key i.bar{background:repeating-linear-gradient(90deg,#98A2B3 0 3px,transparent 3px 6px);margin-left:8px}
@container qc (max-width: 1040px){.app .hero2 .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container qc (max-width: 880px){.app .brief.hero2{grid-template-columns:minmax(0,1fr);padding:24px 20px}.app .hero2 .brief-r{max-width:480px}}
@media (max-width:900px){.app .brief.hero2{grid-template-columns:minmax(0,1fr)}}

/* sidebar plan card: white, gold action */
.app .side-foot .plan-mini{background:#fff!important;border:1px solid #EAECF0!important;border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.04);padding:11px 12px!important}
.app .side-foot .plan-mini b{color:#101828!important}
.app .side-foot .plan-mini p{font-size:11.5px!important;line-height:1.45;color:#667085;margin:2px 0 8px!important}
.app .side-foot .plan-mini .btn{height:30px;font-size:12.5px}
.app .side-foot .plan-mini .btn-primary{background:#FDF6E3;border-color:#F3DEB0;color:#93700A;box-shadow:none}
.app .side-foot .plan-mini .btn-primary:hover:not([disabled]){background:#FBEFC8;border-color:#E9D9A6}

/* Arena main tile: warm cream, gold accents */
.app .ar-mode.ar-main{background:radial-gradient(260px circle at 90% -10%,rgba(217,183,67,.22),transparent 60%),linear-gradient(160deg,#FFFDF6,#FFF7E2);border-color:#EED9A0;box-shadow:0 1px 2px rgba(16,24,40,.04),0 14px 30px -24px rgba(201,162,39,.55)}
.app .ar-mode.ar-main .ar-mi{background:#C9A227;color:#fff}
.app .ar-mode.ar-main .ar-play{background:#C9A227;color:#fff;animation:playPulse 2.6s ease-in-out infinite}
.app .ar-mode.ar-main:hover .ar-play{background:#B8901F;color:#fff}

/* locked preview: light floating card */
.app .la-float{position:absolute;z-index:1;right:18px;bottom:22px;width:176px;background:#fff;border:1px solid #EAECF0;color:#101828;border-radius:14px;padding:14px;box-shadow:0 20px 40px -22px rgba(16,24,40,.35);display:flex;flex-direction:column;gap:4px;animation:la-float 6s ease-in-out infinite}
.app .la-float .la-h{color:#667085;padding:0}
.app .la-float b{font-size:22px;letter-spacing:-.02em}
.app .la-float svg{width:100%;height:28px;display:block}

/* ================= v13 RESUME BUILDER ================= */
.app .rb-card{margin-top:18px}
.app .rb-hint{font-size:13px;color:#667085;margin:-4px 0 14px;max-width:80ch}
.app .rb-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px;border:1px solid #EAECF0;border-radius:14px;background:#F9FAFB;margin-bottom:16px}
.app .rb-sp{flex:1}
.app .rb-seg{display:inline-flex;padding:3px;border-radius:10px;background:#EEF0F3;border:0}
.app .rb-seg button{border:0;background:none;padding:6px 12px;border-radius:8px;font:600 12.5px var(--f-ui);color:#475467;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.app .rb-seg button[aria-pressed="true"]{background:#fff;color:#101828;box-shadow:0 1px 2px rgba(16,24,40,.1)}
.app .rb-tog{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:#344054;cursor:pointer;user-select:none}
.app .rb-tog input{position:absolute;opacity:0;pointer-events:none}
.app .rb-sw{width:32px;height:18px;border-radius:99px;background:#D0D5DD;position:relative;transition:background .2s;flex:none}
.app .rb-sw::after{content:"";position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.2);transition:transform .25s var(--e-spring)}
.app .rb-tog input:checked + .rb-sw{background:#C9A227}
.app .rb-tog input:checked + .rb-sw::after{transform:translateX(14px)}
.app .rb-tog input:focus-visible + .rb-sw{outline:2px solid rgba(201,162,39,.6);outline-offset:2px}
.app .rb-tog em{font-style:normal;color:#93700A;font-weight:600}
.app .rb-fit{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:#667085}
/* the page: 8.5x11 letter, sized in points relative to its width so it matches the PDF */
.app .rb-wrap{container-type:inline-size;max-width:860px;margin:0 auto;padding:4px}
.app .rb-page{--pt:10.5;--u:calc(100cqw / 612);position:relative;width:100%;min-height:calc(100cqw * 11 / 8.5);background:#fff;border-radius:6px;box-shadow:0 0 0 1px #EAECF0,0 24px 50px -30px rgba(16,24,40,.35),0 2px 6px rgba(16,24,40,.05);color:#000;font-size:calc(var(--pt) * var(--u));line-height:1.22;padding:calc(36 * var(--u));font-family:"Times New Roman",Times,"Liberation Serif",serif}
.app .rb-page.modern{font-family:Arial,Helvetica,"Liberation Sans",sans-serif}
.app .rb-page.over{background:linear-gradient(transparent calc(100cqw * 11 / 8.5 - 1px),#F04438 calc(100cqw * 11 / 8.5 - 1px),#F04438 calc(100cqw * 11 / 8.5),transparent calc(100cqw * 11 / 8.5)) ,#fff}
.app .rb-in [contenteditable]{outline:none;border-radius:2px;transition:background .15s,box-shadow .15s;cursor:text}
.app .rb-in [contenteditable]:hover{background:rgba(201,162,39,.08)}
.app .rb-in [contenteditable]:focus{background:rgba(201,162,39,.12);box-shadow:0 0 0 2px rgba(201,162,39,.35)}
.app .rb-name{text-align:center;font-weight:700;font-size:2.1em;line-height:1.1;margin-top:.15em}
.app .rb-contact{text-align:center;font-size:.95em;margin-top:.3em}
.app .rb-contact i{font-style:normal;color:#8c8c8c;margin:0 .55em}
.app .rb-sec{margin-top:.95em}
.app .rb-sec h2{font-size:1.08em;font-weight:700;text-transform:uppercase;letter-spacing:.02em;border-bottom:calc(.6 * var(--u)) solid #000;padding-bottom:.18em;margin:0 0 .4em;font-family:inherit;color:#000}
.app .rb-e{margin-bottom:.38em}
.app .rb-row{display:flex;justify-content:space-between;align-items:baseline;gap:1em}
.app .rb-row > b,.app .rb-row > i:first-child,.app .rb-lt{flex:1;min-width:0}
.app .rb-r{flex:none;text-align:right;white-space:nowrap}
.app .rb-sub i{font-style:italic}
.app .rb-plain{margin-top:.05em}
.app .rb-page ul{margin:.12em 0 0;padding:0 0 0 calc(15 * var(--u));list-style:none}
.app .rb-page li{position:relative;margin-bottom:.08em}
.app .rb-page li::before{content:"\2022";position:absolute;left:calc(-10 * var(--u))}
.app .rb-page li.rb-chg > span{text-decoration:underline;text-decoration-color:rgba(201,162,39,.7);text-decoration-thickness:1.5px;text-underline-offset:2px}
.app .rb-list{margin:0}
.app .rb-list .rb-row{margin-bottom:.06em}
.app .rb-list b{font-weight:700}
@media (max-width:700px){.app .rb-bar .btn{flex:1}.app .rb-sp{display:none}}
html.ui8 .app .hero2 .btn-primary,.app .hero2 .btn-primary{background:linear-gradient(180deg,#E0BE4C,#C9A227);border-color:#C29B1F;color:#1A1405}
html.ui8 .app .hero2 .btn-primary:hover:not([disabled]){background:linear-gradient(180deg,#E7C85E,#CFA92C);border-color:#B8901F}
.app .hero2 .brief-h{font-size:clamp(1.8rem,2.6vw,2.3rem)}

/* ================= v14 MOTION + DE-TEMPLATING ================= */

/* --- page transitions (View Transitions API, driven by navTo) --- */
.app .side{view-transition-name:qm-side}
.app .topbar{view-transition-name:qm-top}
.app .content{view-transition-name:qm-page}
::view-transition-old(root),::view-transition-new(root){animation:none}
::view-transition-old(qm-side),::view-transition-old(qm-top){display:none}
::view-transition-new(qm-side),::view-transition-new(qm-top){animation:none}
::view-transition-group(qm-page){animation-duration:.32s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(qm-page){animation:vt-out .16s cubic-bezier(.4,0,1,1) both}
::view-transition-new(qm-page){animation:vt-in .38s cubic-bezier(.16,1,.3,1) .04s both}
html[data-vt="back"]::view-transition-new(qm-page){animation-name:vt-in-back}
@keyframes vt-out{to{opacity:0;transform:translateY(-8px) scale(.995)}}
@keyframes vt-in{from{opacity:0;transform:translateY(14px)}}
@keyframes vt-in-back{from{opacity:0;transform:translateY(-10px)}}
/* during a view transition the old fade-in would double-animate the page itself; cards still stagger */
html[data-vt] .content.fade-in{animation:none!important}

/* first render of a page: a quick, clean rise (no blur) */
@keyframes qm-view{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes qm-card{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.content.fade-in{animation:qm-view .32s cubic-bezier(.16,1,.3,1) both}
.content.fade-in .g > *,.content.fade-in .hgrid > *,.content.fade-in #arSide > *{animation:qm-card .5s cubic-bezier(.16,1,.3,1) both}
.content.fade-in .hgrid > :nth-child(1){animation-delay:.04s}.content.fade-in .hgrid > :nth-child(2){animation-delay:.08s}
.content.fade-in .hgrid > :nth-child(3){animation-delay:.12s}.content.fade-in .hgrid > :nth-child(4){animation-delay:.16s}.content.fade-in .hgrid > :nth-child(5){animation-delay:.2s}

/* rows added by filters/search */
@keyframes qm-row{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.qm-in{animation:qm-row .34s cubic-bezier(.16,1,.3,1) calc(var(--qi,0) * 22ms) both}

/* dialogs: real exit animation */
@keyframes qm-dim-out{to{opacity:0}}
@keyframes qm-pop-out{to{opacity:0;transform:translateY(10px) scale(.97)}}
.modal.qm-out,.lm.qm-out{animation:qm-dim-out .19s ease-in both!important;pointer-events:none}
.modal.qm-out .panel,.lm.qm-out .lm-panel{animation:qm-pop-out .19s cubic-bezier(.4,0,1,1) both!important}

/* smooth scrolling (Lenis) */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:hidden}

/* --- remove the template tells --- */
/* 1. all-caps gold eyebrow labels -> quiet sentence-case labels */
html.ui8 .app .eyebrow,html.ui8 .app .hero2 .eyebrow,html.ui8 .app .ar-head .eyebrow{text-transform:none!important;letter-spacing:-.005em!important;font-size:13px!important;font-weight:500!important;color:#667085!important}
html.ui8 .app .nav-group{text-transform:none!important;letter-spacing:0!important;font-size:12px!important;font-weight:500!important;color:#98A2B3!important}
html.ui8 .app .act-type{text-transform:none!important;letter-spacing:0!important;font-size:11.5px!important;font-weight:600}
html.ui8 .app .job-firm{text-transform:none!important;letter-spacing:0!important;font-size:12.5px!important;color:#667085!important;font-weight:600}
/* 2. no decorative glows, pulses or sheens */
.app .brief.hero2{background:#fff!important}
.app .ar-mode.ar-main{background:#FFFBEF!important;box-shadow:0 1px 2px rgba(16,24,40,.04)!important}
.app .ar-mode.ar-main .ar-play,.app .ex-chip i,.app .la-float{animation:none!important}
.btn-primary::after{display:none!important}
html .app :is(.fcard,.ld-card,.job,.plan2,.card[data-act],.card.click){background-image:none!important}
.radar .r-you polygon,.hist-chart .h-line,.app .ring .ring-arc,html.ui8 .app .ring .ring-arc{filter:none!important}
html.ui8 .app .jobs-alert{background:#fff!important}
/* 3. calmer motion on hover: small lift, fast, no bounce */
.fcard,.ld-card,.job,.plan2,.card[data-act],.card.click,.app .ar-mode{transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s cubic-bezier(.2,.8,.2,1),border-color .15s!important}
.fcard:hover,.ld-card:hover,.job:hover,.plan2:hover,.card[data-act]:hover,.card.click:hover,.app .ar-mode:hover{transform:translateY(-2px)!important}
.job:hover{transform:none!important}
.fcard:hover .flogo,.job:hover .flogo{transform:none!important}
.app .btn:hover:not([disabled]){transform:none!important}
.btn:active:not([disabled]){transform:scale(.97)!important;transition:transform .08s!important}
.side .nav:hover svg{transform:none!important}
/* 4. sidebar indicator: quick glide, no overshoot */
.side .nav-ink{transition:transform .32s cubic-bezier(.2,.8,.2,1),height .25s cubic-bezier(.2,.8,.2,1),opacity .2s!important}
/* 5. one focus color, one selection color */
::selection{background:rgba(201,162,39,.22)}

/* ================= v14.1 REDUCED MOTION, DONE RIGHT =================
   The base stylesheet killed every animation and transition under prefers-reduced-motion, so state changes
   snapped (that reads as janky). Accessibility guidance only asks to remove movement: fades and color changes
   stay. These selectors outrank the old "*{...!important}" rule. */
@media (prefers-reduced-motion: reduce){
  html body *,html body *::before,html body *::after{transition-property:color,background-color,border-color,opacity,box-shadow,fill,stroke,text-decoration-color!important;transition-duration:.18s!important;transition-timing-function:ease!important;transition-delay:0s!important}
  @keyframes qm-fade{from{opacity:0}to{opacity:1}}
  @keyframes qm-fade-out{to{opacity:0}}
  html body .content.fade-in{animation:qm-fade .24s ease both!important}
  html body .content.fade-in .hgrid > *,html body .content.fade-in .g > *{animation:qm-fade .32s ease both!important}
  html body .content.fade-in .hgrid > :nth-child(2),html body .content.fade-in .g > :nth-child(2){animation-delay:.04s!important}
  html body .content.fade-in .hgrid > :nth-child(n+3),html body .content.fade-in .g > :nth-child(n+3){animation-delay:.08s!important}
  html body .qm-in{animation:qm-fade .24s ease calc(var(--qi,0) * 18ms) both!important}
  html body .modal:not([hidden]):not(.qm-out),html body .lm:not(.qm-out){animation:qm-fade .2s ease both!important}
  html body .modal:not([hidden]):not(.qm-out) .panel,html body .lm:not(.qm-out) .lm-panel{animation:qm-fade .22s ease both!important}
  html body .modal.qm-out,html body .lm.qm-out,html body .modal.qm-out .panel{animation:qm-fade-out .18s ease both!important}
  html body .toast{transition-property:opacity!important;transition-duration:.2s!important}
  html body .qtip{transition-property:opacity!important}
  ::view-transition-old(qm-page){animation:qm-fade-out .14s ease both!important}
  ::view-transition-new(qm-page){animation:qm-fade .24s ease .03s both!important}
  ::view-transition-group(qm-page){animation-duration:0s!important}
}

html.ui8 .app .hero2 .brief-h,.app .hero2 .brief-h{max-width:none!important;width:auto!important;font-size:clamp(1.8rem,2.5vw,2.35rem)!important;text-wrap:pretty}

/* ================= v18 SECTION SWITCH WITHOUT BLINK =================
   Old and new page dissolve together over the same 0.22 s (plus-lighter keeps the sum opaque), so the page never
   passes through blank; nothing inside the new page re-animates from invisible. Applies with or without reduced motion. */
::view-transition-image-pair(qm-page){isolation:isolate}
html::view-transition-group(qm-page){animation-duration:.22s!important;animation-timing-function:ease!important}
html::view-transition-old(qm-page){animation:qm-x-out .22s ease both!important;mix-blend-mode:plus-lighter}
html::view-transition-new(qm-page),html[data-vt="back"]::view-transition-new(qm-page){animation:qm-x-in .22s ease both!important;mix-blend-mode:plus-lighter}
@keyframes qm-x-out{from{opacity:1}to{opacity:0}}
@keyframes qm-x-in{from{opacity:0}to{opacity:1}}
html body .content.vt-swap .reveal,html body .content.vt-swap .qm-in,html body .content.vt-swap .g > *,html body .content.vt-swap .hgrid > *{animation:none!important;opacity:1!important;transform:none!important}
