/* Targeted appearance layer. The approved light palette/layout remains in style.css. */
.theme-toggle{position:relative;isolation:isolate;flex-shrink:0;display:inline-flex;align-items:center;justify-content:space-around;width:76px;min-width:76px;height:44px;padding:5px;border:1px solid #a9b8de;border-radius:24px;background:#e9eefc;color:#46577e;box-shadow:inset 0 1px 3px #203b7010}
.theme-toggle[hidden]{display:none}
.theme-toggle svg{width:20px;height:20px;z-index:1;pointer-events:none}
.theme-toggle .theme-sun{color:#2855f5}
.theme-thumb{position:absolute;left:4px;top:4px;width:34px;height:34px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #203b7025;transition:transform .18s ease}
.theme-toggle[aria-checked=true] .theme-thumb{transform:translateX(32px)}
.theme-toggle:hover{border-color:#2855f5}
.scope-strip>span:first-child{max-width:620px;text-wrap:balance}
@media(max-width:760px){nav{gap:12px}.source-header nav .source-back{display:block;font-size:11px;max-width:110px;line-height:1.5}.theme-toggle{width:68px;min-width:68px}.theme-toggle[aria-checked=true] .theme-thumb{transform:translateX(24px)}}
@media(max-width:360px){header nav{gap:8px}nav .nav-cta{padding-inline:9px}.theme-toggle{width:64px;min-width:64px}.theme-toggle[aria-checked=true] .theme-thumb{transform:translateX(20px)}}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}}
html[data-theme=dark]{--paper:#0d1424;--ink:#edf1fa;--muted:#b1bdd3;--line:#35435e;--blue:#91acff;--surface:#151f33;--raised:#1d2b45}
html[data-theme=dark] .theme-toggle{background:#17243f;border-color:#6378a2;color:#b5c7ed}
html[data-theme=dark] .theme-thumb{background:#2855f5;box-shadow:0 2px 7px #0005}
html[data-theme=dark] .theme-moon{color:white}
html[data-theme=dark] .theme-sun{color:#b5c7ed}
/* Approved geometry and blue rays; white lettering on the transparent dark asset. */
html[data-theme=dark] .logo:has(.supplied-logo){background:transparent;border:0;border-radius:0;box-shadow:none}
html[data-theme=dark] .button,html[data-theme=dark] .demo-bottom button,
html[data-theme=dark] .timeline button[aria-pressed=true],html[data-theme=dark] .view-switch button[aria-pressed=true],html[data-theme=dark] .ranking-periods button[aria-pressed=true]{background:#2855f5;border-color:#2855f5;color:#fff}
html[data-theme=dark] .button:hover,html[data-theme=dark] .demo-bottom button:hover{background:#244ce0}
html[data-theme=dark] .secondary{background:transparent;border-color:#6b80a6;color:var(--ink)}
html[data-theme=dark] .secondary:hover{background:var(--raised)}
html[data-theme=dark] .demo-section{background:#101a2c;border-color:var(--line)}
html[data-theme=dark] .workspace,html[data-theme=dark] .lens-controls button,html[data-theme=dark] .score-dial>div{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] .ranking-panel{background:var(--surface)}
html[data-theme=dark] .lab-body .signals,html[data-theme=dark] .view-switch,html[data-theme=dark] .ranking-periods,
html[data-theme=dark] .spark-history,html[data-theme=dark] .momentum-panel{background:var(--raised);color:var(--ink)}
html[data-theme=dark] .view-switch button{color:var(--ink)}
html[data-theme=dark] .simulation-note,html[data-theme=dark] .timeline button,
html[data-theme=dark] .lens-controls button[aria-pressed=true],html[data-theme=dark] .signals .readiness-stars,
html[data-theme=dark] .data-table td.selected,html[data-theme=dark] .data-table th[aria-current],html[data-theme=dark] tr.current{background:#1d2d50;color:#c5d4ff;border-color:#617ebd}
html[data-theme=dark] .flow-board{background:linear-gradient(145deg,#1b2a46,#151f33);border-color:#45608f}
html[data-theme=dark] .signal-map{background:#1d2b45}
html[data-theme=dark] .signal-map svg ellipse{stroke:#526c9e}
html[data-theme=dark] .signal-map svg path{stroke:#8fa7f0}
html[data-theme=dark] .map-tag,html[data-theme=dark] .map-caption,html[data-theme=dark] .flow-history button{color:#c1d2fa}
html[data-theme=dark] .flow-labels{fill:#c1d2fa}
html[data-theme=dark] .flow-tracks path{stroke:#334b72}
html[data-theme=dark] .flow-ribbons .sell-ribbon{stroke:#b0bee0}
html[data-theme=dark] .flow-history{border-color:var(--line)}
html[data-theme=dark] .flow-history i{background:#6381be}
html[data-theme=dark] .score-dial{background:conic-gradient(var(--blue) var(--score),#354563 0)}
html[data-theme=dark] .readiness-grid>div{border-color:#526a96}
html[data-theme=dark] .trade-checks ul,html[data-theme=dark] .check-pass{color:#a7e4ce}
html[data-theme=dark] .scope-strip .scope-label{border-color:#53627e}
html[data-theme=dark] #waitlist-email{background:var(--surface);color:var(--ink);border-color:#7687a6}
html[data-theme=dark] #waitlist-email::placeholder{color:var(--muted)}
#waitlist input:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
html[data-theme=dark] input[type=checkbox]{accent-color:#2855f5}
html[data-theme=dark] .skip{background:var(--surface)}
/* Token pixels and the approved arrangement stay untouched on quiet navy cards. */
html[data-theme=dark] .art-card{background:#1c2c49;color:var(--ink);border-color:#50658a;box-shadow:0 20px 35px -24px #000b}
html[data-theme=dark] .orbit{border-color:#657fbd66}
html[data-theme=dark] .identity img,html[data-theme=dark] .ranking-identity img{background:#e9edf5}
