/* Two authored palettes. The dark palette remains the default brand environment. */
:root{
 --km-bg:#1d1b24;--km-ink:#f2eff7;--km-muted:#c3bbcf;--km-soft-ink:#9f93af;
 --km-accent:#bb96ff;--km-on-accent:#20142f;--km-accent-hover:#c9adff;
 --km-success:#80d8b7;--km-warm:#e3ba79;--km-line:#d5c4ee2b;
 --km-surface:#bda7df06;--km-surface-raised:#292530;--km-hover:#baa0db10;
 --km-nav:#1d1b24ed;--km-field:#27222f;--km-focus:#efd08c;
 --km-bg-violet:#9e6cda09;--km-bg-green:#6eb6a406;
}
html[data-theme=light]{
 --km-bg:#f8f7fb;--km-ink:#292534;--km-muted:#625b6d;--km-soft-ink:#746c7e;
 --km-accent:#69439e;--km-on-accent:#fff;--km-accent-hover:#533180;
 --km-success:#176c55;--km-warm:#885a16;--km-line:#55476b26;
 --km-surface:#ffffff80;--km-surface-raised:#fff;--km-hover:#e9e1f35c;
 --km-nav:#fbfafeed;--km-field:#fff;--km-focus:#69439e;
 --km-bg-violet:#b49bdc13;--km-bg-green:#96c3b00b;
}
html[data-theme] body.km-designed{
 --bg:var(--km-bg)!important;--gold:var(--km-warm)!important;--km-readable:var(--km-muted)!important;
 --km-panel:var(--km-surface)!important;--km-panel-hover:var(--km-hover)!important;--km-control-panel:var(--km-field)!important;
 background:radial-gradient(ellipse at 90% 8%,var(--km-bg-violet),transparent 48%),var(--km-bg)!important;
 color:var(--km-ink)!important;font-feature-settings:'ss01' on;line-height:1.65;
}
html[data-theme] body.km-designed nav{background:var(--km-nav)!important;border-color:var(--km-line)!important;gap:clamp(10px,1.6vw,24px)!important}
html[data-theme] body.km-designed nav .brand{color:var(--km-ink)!important;white-space:nowrap;flex-shrink:0}
html[data-theme] body.km-designed nav .links{gap:clamp(12px,1.5vw,22px)}
html[data-theme] body.km-designed nav .links a{color:var(--km-muted);font-size:.82rem}
html[data-theme] body.km-designed nav .links a:hover{color:var(--km-accent)!important}
.km-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:none;min-width:44px;width:44px;min-height:44px;height:44px;padding:10px;border:1px solid var(--km-line);border-radius:50%;background:transparent;color:var(--km-ink);cursor:pointer}
.km-theme-toggle:hover{background:var(--km-hover);border-color:var(--km-accent)}
.km-theme-toggle:focus-visible{outline:3px solid var(--km-focus);outline-offset:4px}
.km-theme-toggle .km-theme-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-theme=light] .km-theme-icon{transform:rotate(25deg)}
.km-theme-floating{position:fixed;right:20px;top:18px;z-index:200;background:var(--km-bg)}
html[data-theme] body.km-designed nav .km-nav-action{display:none!important}
html[data-theme] body.km-designed .btn.primary{background:var(--km-accent)!important;border-color:var(--km-accent)!important;color:var(--km-on-accent)!important;box-shadow:none!important}
html[data-theme] body.km-designed .btn.primary:hover{background:var(--km-accent-hover)!important;border-color:var(--km-accent-hover)!important}
html[data-theme] body.km-designed .btn.ghost{background:transparent!important;border-color:var(--km-line)!important;color:var(--km-ink)!important}
html[data-theme] body.km-designed .btn.ghost:hover{background:var(--km-hover)!important;border-color:var(--km-accent)!important}
html[data-theme] body.km-designed .hl{color:var(--km-accent)!important}
html[data-theme] body.km-designed .hl2{color:var(--km-success)!important}
html[data-theme] body.km-designed :is(.lead,.note){color:var(--km-muted)!important}
html[data-theme] body.km-designed .kicker{color:var(--km-warm)!important}
html[data-theme] body.km-designed :is(a,button,input,textarea,select,summary):focus-visible{outline-color:var(--km-focus)!important}
html[data-theme] body.km-designed #main-content>.km-editorial-block:not(.shero):not(.kband):not(.ksplit):not(.kduo):not(.km-main-film):not(.km-particle-scene){padding-block:clamp(52px,6vw,84px)!important}
html[data-theme] body.km-designed #main-content .km-editorial-block h2.sh2{max-width:29ch!important;font-size:clamp(1.85rem,3.2vw,2.8rem)!important;line-height:1.16!important;letter-spacing:-.03em!important;margin-bottom:22px!important}
html[data-theme] body.km-designed #main-content :is(p,li){text-wrap:pretty}
html[data-theme] body.km-designed #main-content .shero .lead{font-size:clamp(.98rem,1.15vw,1.09rem)!important;line-height:1.75!important;max-width:55ch!important}
html[data-theme] body.km-designed #main-content .shero.km-split-hero{background:none!important}
html[data-theme] body.km-designed #main-content .shero .km-hero-grid{gap:clamp(30px,4vw,64px)!important;align-items:center}
html[data-theme] body.km-designed #main-content .shero h1{letter-spacing:-.045em!important}
/* Entry choices are distinct doors; lists and processes use quieter editorial rails. */
html[data-theme] body.km-designed #main-content .km-entry-doors{gap:24px!important}
html[data-theme] body.km-designed #main-content .km-entry-doors .door{background:var(--km-surface)!important;border:0!important;border-top:2px solid var(--km-line)!important;border-radius:0 0 16px 16px!important;padding:28px!important}
html[data-theme] body.km-designed #main-content .km-entry-doors .door:first-child{border-top-color:var(--km-accent)!important}
html[data-theme] body.km-designed #main-content .km-entry-doors .door.labs{border-top-color:var(--km-success)!important}
html[data-theme] body.km-designed #main-content .km-entry-doors .door:hover{background:var(--km-hover)!important}
html[data-theme] body.km-designed #main-content .km-entry-doors .door .dk{color:var(--km-accent)!important}
html[data-theme] body.km-designed #main-content .km-entry-doors .door.labs .dk{color:var(--km-success)!important}
html[data-theme] body.km-designed #main-content .km-entry-doors .door :is(ul,.go){color:var(--km-muted)!important}
html[data-theme] body.km-designed #main-content :is(.team>.tm,.tilelink,.case){background:var(--km-surface)!important;border-color:var(--km-line)!important;box-shadow:none!important}
html[data-theme] body.km-designed #main-content :is(.tm,.tilelink,.case):hover{background:var(--km-hover)!important;border-color:var(--km-line)!important}
html[data-theme] body.km-designed #main-content .km-more-cases{margin-top:24px!important;border:0!important;border-top:1px solid var(--km-line)!important;background:none!important;border-radius:0!important;box-shadow:none!important}
html[data-theme] body.km-designed #main-content .km-more-cases>summary{min-height:60px!important;padding:18px 32px 18px 0!important;color:var(--km-accent)!important;font-size:1rem!important;line-height:1.6!important;cursor:pointer}
html[data-theme] body.km-designed #main-content .km-more-cases>.cases{margin-top:12px!important}
/* Each disclosure reflects its own state, including cards inside an open group. */
body.km-designed details:not([open])>summary::after{content:"+"}
body.km-designed details[open]>summary::after{content:"–"}
html[data-theme] body.km-designed #main-content [data-km-purpose=process] :is(.step,.tlstep,.km79st,.stp){background:transparent!important;box-shadow:none!important;border-color:var(--km-line)!important;border-radius:0!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=process] :is(p,li){max-width:68ch}
html[data-theme] body.km-designed #main-content [data-km-purpose=problem] :is(.card,.listbox,.km80rc){background:transparent!important;box-shadow:none!important;border-color:var(--km-line)!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=catalog] .xt{background:transparent!important;border:0!important;border-top:1px solid var(--km-line)!important;border-radius:0!important;margin-block:0!important;box-shadow:none!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=catalog] .xt>summary{padding-block:20px!important;min-height:84px!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=catalog] .xt[open]{background:var(--km-surface)!important;border-radius:14px!important;margin-block:10px!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=catalog] .xt .xb{border-color:var(--km-line)!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=offer] :is(.lst,.km79pc,.pcard){background:var(--km-surface)!important;border-color:var(--km-line)!important;box-shadow:none!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=offer] :is(.hot,.featured,.best){background:var(--km-hover)!important;border-color:var(--km-accent)!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=offer] :is(.pr,.pv,.price){color:var(--km-ink)!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=faq] details{border-color:var(--km-line)!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=faq] summary{color:var(--km-ink)!important;font-weight:550}
html[data-theme] body.km-designed #main-content [data-km-purpose=faq] details p{color:var(--km-muted)!important}
html[data-theme] body.km-designed #main-content [data-km-purpose=contact] .cta{background:var(--km-surface)!important;border:0!important;border-top:1px solid var(--km-line)!important;border-radius:0!important;padding:38px 0!important;box-shadow:none!important}
html[data-theme] body.km-designed #main-content .calc{background:var(--km-surface)!important;border-color:var(--km-line)!important}
html[data-theme] body.km-designed #main-content .calc .res>div{background:var(--km-hover)!important}
html[data-theme] body.km-designed #main-content .calc :is(small,label,output){color:var(--km-muted)!important}
html[data-theme] body.km-designed #main-content .calc input[type=range]{accent-color:var(--km-accent)!important}
html[data-theme] body.km-designed #main-content .prvpick{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
html[data-theme] body.km-designed #main-content .prvpick>b,html[data-theme] body.km-designed #main-content .prvres{grid-column:1/-1!important}
html[data-theme] body.km-designed #main-content .prvpick label{min-width:0!important}
html[data-theme] body.km-designed #main-content .prvpick select{max-width:100%!important;width:100%!important}
html[data-theme] body.km-designed #main-content .prvres{white-space:normal!important;overflow-wrap:anywhere;font-size:1.125rem!important;line-height:1.6!important;color:var(--km-ink)!important}
html[data-theme] body.km-designed #main-content :is(.ks,.ld) h4{font-size:.8rem!important;line-height:1.55!important;letter-spacing:.06em!important}
html[data-theme] body.km-designed #main-content :is(.ks-seg,.ks-mode) button{font-size:.78rem!important;line-height:1.4!important}
html[data-theme] body.km-designed #main-content .ks :is(.ks-msg small,.ks-msg small b,.kh-t span,.t){font-size:.75rem!important;line-height:1.5!important}
html[data-theme] body.km-designed #main-content .ks-ap .y{background:var(--km-success)!important;border-color:var(--km-success)!important;color:var(--km-on-accent)!important}
html[data-theme] body.km-designed #main-content .ks-aph>b{font-size:.75rem!important;line-height:1.4!important;min-width:24px;min-height:22px;display:inline-flex;align-items:center;justify-content:center}
html[data-theme=light] body.km-designed #main-content :is(.ks-comp form>button,.ld-go,.ks-aph>b){background:var(--km-accent)!important;color:var(--km-on-accent)!important}
html[data-theme=dark] body.km-designed #main-content .lda-hd small{color:#8da3b7!important}
html[data-theme] body.km-designed :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background-color:var(--km-field)!important;color:var(--km-ink)!important;border-color:var(--km-line)!important}
html[data-theme] body.km-designed :is(input,textarea)::placeholder{color:var(--km-soft-ink)!important;opacity:1}
html[data-theme] body.km-designed footer{background:transparent!important;border-color:var(--km-line)!important;color:var(--km-muted)!important}
html[data-theme] body.km-designed footer :is(h4,.brand){color:var(--km-ink)!important}
html[data-theme] body.km-designed footer h4{font-size:.78rem!important;letter-spacing:.09em!important;line-height:1.5!important}
html[data-theme] body.km-designed #main-content .km-entry-doors .door .dk{font-size:.75rem!important;letter-spacing:.1em!important}
html[data-theme] body.km-designed .km-particle-copy .km-particle-eyebrow{font-size:.75rem!important;letter-spacing:.1em!important}
html[data-theme=light] body.km-game-page #go{color:#fff!important}
html[data-theme] body.km-game-page #km{color:var(--km-accent)!important;font-size:.8rem!important;text-underline-offset:4px}
html[data-theme=light] body.km-designed #main-content .fgplay{background:var(--km-accent)!important;color:var(--km-on-accent)!important}
html[data-theme] body.km-designed footer a{color:var(--km-muted)!important}
html[data-theme] body.km-designed footer a:hover{color:var(--km-accent)!important}
/* Labs has eight short price rows and no disclosure control; keep every cost visible. */
@media(max-width:700px){html[data-theme] body.km-designed[data-page=lab] #main-content #price .ptable .pr:not(.h){display:grid!important}}
html[data-theme=light] body.km-designed footer .km-footer-wordmark [fill="#e6e2d8"]{fill:var(--km-ink)!important}
html[data-theme=light] body.km-designed footer .km-footer-wordmark [fill="#34d399"]{fill:var(--km-success)!important}
/* Native keyboard access survives the visual checkbox styling. */
html:root[data-theme] body.km-designed #main-content .ckl label{position:relative!important}
html:root[data-theme] body.km-designed #main-content .ckl input[type=checkbox]{display:block!important;position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
html:root[data-theme] body.km-designed #main-content .ckl label:focus-within{outline:3px solid var(--km-focus)!important;outline-offset:3px!important}
html:root[data-theme] body.km-designed #main-content .ckl label>i{border:1.5px solid var(--km-muted)!important;flex:0 0 26px!important}
html:root[data-theme] body.km-designed #main-content .ckl label>div{min-width:0}
html:root[data-theme] body.km-designed #main-content .ckl label b{padding-inline-end:2.2rem}
html:root[data-theme] body.km-designed #main-content .ckl input:checked+i{background:var(--km-accent)!important;border-color:var(--km-accent)!important;color:var(--km-on-accent)!important}
html:root[data-theme] body.km-designed nav .kmburg i{background:currentColor!important;opacity:1!important}
/* Optional catalogues read as compact choices before expansion. */
html:root[data-theme] body.km-designed #main-content>section#catalog.km-compact-catalog,html:root[data-theme] body.km-designed #main-content>section#earn.km-compact-catalog{padding-top:20px!important;padding-bottom:20px!important}
html:root[data-theme] body.km-designed #main-content .km-compact-catalog .editorial-more{margin:0!important}
html:root[data-theme] body.km-designed #main-content .km-compact-catalog .editorial-more>summary{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px 32px!important;min-height:0!important;padding:24px 54px 24px 24px!important}
html:root[data-theme] body.km-designed #main-content .km-compact-catalog .editorial-more>summary::after{position:absolute!important;right:22px!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important}
html:root[data-theme] body.km-designed #main-content .km-compact-catalog .editorial-more>summary h2{font-size:clamp(1.2rem,2.2vw,1.65rem)!important;line-height:1.35!important;margin:0!important;max-width:none!important;text-wrap:pretty!important}
html:root[data-theme] body.km-designed #main-content .km-compact-catalog .editorial-more-hint{font-size:.85rem!important;color:var(--km-muted)!important;white-space:normal!important}
@media(max-width:700px){html:root[data-theme] body.km-designed #main-content .km-compact-catalog .editorial-more>summary{grid-template-columns:minmax(0,1fr)!important;padding:20px 44px 20px 20px!important;gap:8px!important}}
/* The help entry stays in the gutter instead of covering card prices. */
html[data-theme] body.km-designed .kmc-launch{width:48px!important;height:48px!important;padding:0!important;justify-content:center!important;border-radius:50%!important;background:var(--km-nav)!important;color:var(--km-accent)!important;box-shadow:none!important}
html[data-theme] body.km-designed .kmc-launch span{display:none!important}
html[data-theme] body.km-designed .kmc-launch::before{content:'?';font:700 22px/1 Manrope,Inter,system-ui,sans-serif;color:var(--km-accent)!important}
html[data-theme] body.km-designed .km-pilot-terms{background:var(--km-surface)!important;border-color:var(--km-line)!important;color:var(--km-muted)!important}
@media(max-width:900px){
 html[data-theme] body.km-designed #main-content .prvpick{grid-template-columns:minmax(0,1fr)!important}
 html[data-theme] body.km-designed #main-content #cases .cases{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;width:100%!important;margin-inline:0!important;padding:0!important;overflow:visible!important;scroll-snap-type:none!important}
 html[data-theme] body.km-designed #main-content #cases .case{width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important;scroll-snap-align:none!important}
 html[data-theme] body.km-designed nav{gap:8px!important}
 html[data-theme] body.km-designed nav .mopen{background:var(--km-bg)!important}
 html[data-theme] body.km-designed nav .kmburg{background:transparent!important;border-color:var(--km-line)!important;color:var(--km-ink)!important;margin-left:0!important}
 html[data-theme] body.km-designed nav .links a{font-size:1rem!important}
 html[data-theme] body.km-designed #main-content .km-editorial-block h2.sh2{max-width:100%!important}
 html[data-theme] body.km-designed #main-content .shero .km-hero-grid{gap:30px!important}
 html[data-theme] body.km-designed .km-particle-copy>p:not(.km-particle-eyebrow){font-size:.875rem!important}
 html[data-theme] body.km-designed #main-content .ks :is(button,select){min-height:44px!important}
 html[data-theme] body.km-designed #main-content .km-entry-doors .door{padding:24px 20px!important}
}
@media(max-width:560px){
 html[data-theme] body.km-designed nav>.btn{display:none!important}
 html[data-theme] body.km-designed nav .links>.km-nav-action{display:inline-flex!important;margin-top:10px!important}
 html[data-theme] body.km-designed nav .brand{margin-right:auto!important}
 html[data-theme] body.km-designed #main-content>.km-editorial-block:not(.shero):not(.kband):not(.ksplit):not(.kduo):not(.km-main-film):not(.km-particle-scene){padding-block:44px!important}
 html[data-theme] body.km-designed #main-content .shero.km-split-hero h1{font-size:clamp(2.05rem,8.4vw,2.55rem)!important;max-width:100%!important}
}
@media(prefers-reduced-motion:reduce){html[data-theme] body.km-designed *{scroll-behavior:auto!important}}
/* A repeated illustration becomes a short explanation; the scene remains in the hero. */
html:root[data-theme] body.km-designed #main-content>section.km-story-note:is(#km-section-03,#km-section-06,#km-section-09){padding-block:34px!important;background:transparent!important;min-height:0!important}
html[data-theme] body.km-designed #main-content .km-story-row{display:grid!important;grid-template-columns:minmax(130px,.28fr) minmax(0,1fr)!important;gap:24px 48px!important;align-items:start!important;border-top:1px solid var(--km-line);padding-top:28px!important}
html[data-theme] body.km-designed #main-content .km-story-row>.kicker{padding-top:7px}
html:root[data-theme] body.km-designed #main-content .km-story-note .km-story-copy h2.sh2{font-size:clamp(1.5rem,2.6vw,2.1rem)!important;line-height:1.25!important;margin:0 0 14px!important;max-width:32ch!important}
html[data-theme] body.km-designed #main-content .km-story-copy p{font-size:1rem!important;line-height:1.7!important;color:var(--km-muted)!important;margin:0!important;max-width:70ch}
@media(max-width:700px){html[data-theme] body.km-designed #main-content .km-story-row{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding-top:22px!important}html[data-theme] body.km-designed #main-content .km-story-row>.kicker{padding-top:0}}
@media print{
 html:root[data-theme] body.km-designed:has(.ckl){--km-bg:#fff!important;--km-ink:#111!important;--km-muted:#444!important;--km-accent:#333!important;--km-on-accent:#fff!important;--km-surface:#fff!important;--km-line:#999!important;background:#fff!important;color:#111!important}
 html:root[data-theme] body.km-designed.km-particle-background:has(.ckl) #stage,
 html:root[data-theme] body.km-designed:has(.ckl) :is(.km-hero-media,.kmc-launch,.kmc-dialog,.km-motion-toggle){display:none!important}
 html:root[data-theme] body.km-designed:has(.ckl) #main-content .km-hero-grid{display:block!important}
 html:root[data-theme] body.km-designed:has(.ckl) #main-content .ckl label{background:#fff!important;border:1px solid #999!important;break-inside:avoid}
}

/* Small text stays legible over the continuous particle field. No panel mask. */
html[data-theme] body.km-designed #main-content [data-km-purpose=offer] :is(td,th,p,li,.pr,.pv,.price){text-shadow:0 0 3px var(--km-bg),0 1px 1px var(--km-bg),0 -1px 1px var(--km-bg),1px 0 1px var(--km-bg),-1px 0 1px var(--km-bg)}


html[data-theme] body.km-designed #main-content [data-km-purpose=offer] .ptable .pr:not(.h)>span:not(.pv){font-size:.97rem!important;line-height:1.65!important}

/* Page accents. The two inks are chosen separately for graphite and paper. */
body:is([data-page="index"], [data-page="home"]) { --topic-dark: #f3bd5b; --topic-light: #855409; } /* brand gold */
body[data-page="business"] { --topic-dark: #73dfa9; --topic-light: #126848; } /* emerald */
body[data-page="lab"] { --topic-dark: #c3a6ff; --topic-light: #7145ac; } /* workshop violet */

body[data-page="industry-beauty"] { --topic-dark: #f8a9c5; --topic-light: #a23963; } /* rose */
body[data-page="industry-clinics"] { --topic-dark: #6ddbd6; --topic-light: #066c72; } /* medical turquoise */
body[data-page="industry-edu"] { --topic-dark: #a8d680; --topic-light: #4a6a26; } /* classroom green */
body[data-page="industry-event"] { --topic-dark: #eca7ee; --topic-light: #903e94; } /* stage orchid */
body[data-page="industry-horeca"] { --topic-dark: #ffa57f; --topic-light: #a34229; } /* terracotta */
body[data-page="industry-logistics"] { --topic-dark: #80c1ff; --topic-light: #245e98; } /* route blue */
body[data-page="industry-office"] { --topic-dark: #abc2d4; --topic-light: #435f77; } /* blue-grey ink */
body[data-page="industry-production"] { --topic-dark: #ffa456; --topic-light: #914900; } /* furnace orange */
body[data-page="industry-realty"] { --topic-dark: #dfc095; --topic-light: #765734; } /* sandstone */
body[data-page="industry-retail"] { --topic-dark: #ff9392; --topic-light: #a43a40; } /* retail coral */

body[data-page="lab-agent"] { --topic-dark: #a2dfca; --topic-light: #306b57; } /* sage */
body[data-page="lab-apps"] { --topic-dark: #76d7f8; --topic-light: #056c89; } /* messenger blue */
body[data-page="lab-complex"] { --topic-dark: #aeaaff; --topic-light: #554aa9; } /* systems indigo */
body[data-page="lab-content"] { --topic-dark: #ff93cf; --topic-light: #a12b76; } /* studio magenta */
body[data-page="lab-earn"] { --topic-dark: #bcdf68; --topic-light: #536b11; } /* growth lime */
body[data-page="lab-games"] { --topic-dark: #ce8cff; --topic-light: #8235b8; } /* arcade purple */
body[data-page="lab-life"] { --topic-dark: #f4cf82; --topic-light: #805e1d; } /* lamplight */
body[data-page="lab-llm"] { --topic-dark: #9dafff; --topic-light: #4957a8; } /* deep periwinkle */
body[data-page="lab-robots"] { --topic-dark: #e3aa83; --topic-light: #894d30; } /* copper */
body[data-page="lab-sites"] { --topic-dark: #80b3ff; --topic-light: #345caf; } /* interface cobalt */

body[data-page="access"] { --topic-dark: #7ddab7; --topic-light: #1d7056; } /* jade */
body[data-page="checklist"] { --topic-dark: #94dfa1; --topic-light: #346d40; } /* checkmark green */
body[data-page="courses"] { --topic-dark: #e0d578; --topic-light: #6c6216; } /* highlighter yellow */
body[data-page="partners"] { --topic-dark: #dfa1ad; --topic-light: #8a4658; } /* warm claret */
body[data-page="private-ai"] { --topic-dark: #92b5c2; --topic-light: #365f6e; } /* archive steel */
body[data-page="razbor"] { --topic-dark: #f1a36a; --topic-light: #934b23; } /* amber marker */
body[data-page="voice"] { --topic-dark: #79e6e8; --topic-light: #08717d; } /* cyan waveform */

body[data-page="policy"] { --topic-dark: #afbecd; --topic-light: #4c6071; } /* slate */
body[data-page="consent"] { --topic-dark: #a3c8be; --topic-light: #47695f; } /* eucalyptus */
body[data-page="terms"] { --topic-dark: #c6b7a3; --topic-light: #665b49; } /* parchment */
body[data-page="404"] { --topic-dark: #efa19f; --topic-light: #944743; } /* signal red */
body[data-page="catch"] { --topic-dark: #ffcf67; --topic-light: #845b04; } /* golden particles */
body[data-page="flight"] { --topic-dark: #a6d9ff; --topic-light: #36678a; } /* flight sky */
body[data-page="pairs"] { --topic-dark: #ddb0f3; --topic-light: #845497; } /* lilac tiles */
body[data-page="snake"] { --topic-dark: #e4ce62; --topic-light: #736313; } /* pyramid brass */

body[data-page] { --topic-ink: var(--topic-dark); }
html[data-theme="light"] body[data-page] { --topic-ink: var(--topic-light); }

/* Keep the two-part reading rhythm. A single-part headline takes the same accent. */
html[data-theme] body[data-page] #main-content h1 .hl2,
html[data-theme] body[data-page] #main-content h1:not(:has(.hl2)),
html[data-theme] body.km-game-page #ov h1 b {
  color: var(--topic-ink)!important;
  -webkit-text-fill-color: currentColor!important;
  background-image: none!important;
}

/* An opaque hairline carries the exact title ink. The halo falls outside the picture. */
html[data-theme] body[data-page] #main-content .km-film-feature > video {
  box-shadow: 0 0 0 2px var(--topic-ink),
              0 0 14px 1px color-mix(in srgb, var(--topic-ink) 32%, transparent),
              0 8px 30px -4px color-mix(in srgb, var(--topic-ink) 19%, transparent);
}
html[data-theme] body[data-page] dialog.km-film-dialog[open] {
  border-color: var(--topic-ink)!important;
  box-shadow: 0 0 0 1px var(--topic-ink), 0 0 24px color-mix(in srgb, var(--topic-ink) 30%, transparent), 0 26px 100px #07030d44!important;
}
@media (forced-colors: active) {
  html[data-theme] body[data-page] #main-content .km-film-feature > video { outline: 1px solid CanvasText; }
}
