.goals .success{display:inline-block;padding:12px 16px;border:1px solid #b5dfc9;border-radius:10px;background:#edf9f1;color:#216348;font-weight:600;line-height:1.5;margin-bottom:18px}
.theme-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;border:0;background:transparent;color:#514077;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}
.theme-toggle[hidden]{display:none}.theme-track{width:34px;height:20px;padding:3px;border-radius:20px;background:#b7bdcb;display:inline-block;flex-shrink:0}.theme-track:before{content:'';display:block;width:14px;height:14px;border-radius:50%;background:white;transition:transform .15s}.theme-toggle[aria-checked=true] .theme-track{background:#8c70e7}.theme-toggle[aria-checked=true] .theme-track:before{transform:translateX(14px)}
@media(max-width:600px){header .primary-nav{gap:0;flex-wrap:wrap}.theme-toggle{font-size:13px;padding:8px}.primary-nav a{font-size:14px}}
html[data-theme=dark]{color-scheme:dark;background:#141823;color:#edf0f7;--line:#384153;--purple:#a98af8}
[data-theme=dark] body{background:#141823;color:#edf0f7}
[data-theme=dark] header,[data-theme=dark] .panel,[data-theme=dark] .surface,[data-theme=dark] .guide-article,[data-theme=dark] .instruction-cards article,[data-theme=dark] .guide-cards a,[data-theme=dark] .faq details,[data-theme=dark] .orientation-intro,[data-theme=dark] .cube-dialog{background:#202635;color:#edf0f7;border-color:var(--line)}
[data-theme=dark] .canvas{background:radial-gradient(ellipse at center,#2b2840,#1b2130)}
[data-theme=dark] .help,[data-theme=dark] .intro p:not(.eyebrow),[data-theme=dark] .guide-article p,[data-theme=dark] .guide-article li,[data-theme=dark] .support-content>p,[data-theme=dark] .guide-cards p,[data-theme=dark] .instruction-cards p,[data-theme=dark] .faq p,[data-theme=dark] .orientation-intro p,[data-theme=dark] .goal p,[data-theme=dark] .lesson-panel p{color:#c2cada}
[data-theme=dark] .kicker,[data-theme=dark] .canvas-caption,[data-theme=dark] .entry-help,[data-theme=dark] .colour-count,[data-theme=dark] .readout,[data-theme=dark] .subnote,[data-theme=dark] .site-footer,[data-theme=dark] .breadcrumbs,[data-theme=dark] .version,[data-theme=dark] details,[data-theme=dark] .marker-text small{color:#aeb9cd}
[data-theme=dark] .primary-nav a,[data-theme=dark] .theme-toggle,[data-theme=dark] .guide-article a,[data-theme=dark] .breadcrumbs a,[data-theme=dark] .site-footer a,[data-theme=dark] .guide-cards a span,[data-theme=dark] .mobile-help summary{color:#cbb8ff}
[data-theme=dark] .footer-column h2,[data-theme=dark] .orientation-marker{color:#edf0f7}
[data-theme=dark] .btn,[data-theme=dark] select,[data-theme=dark] .goal{background:#252d3e;color:#e0e6f2;border-color:#515c73}
[data-theme=dark] .btn.primary,[data-theme=dark] .stages .active b,[data-theme=dark] .move-list .current{background:#7654d4;color:#fff;border-color:#a98af8}
[data-theme=dark] .btn.text,[data-theme=dark] .face-nav{color:#c2cada}
[data-theme=dark] .goal.chosen,[data-theme=dark] .face-nav.active,[data-theme=dark] .notice,[data-theme=dark] .lesson-panel,[data-theme=dark] .starting-orientation,[data-theme=dark] .chip,[data-theme=dark] .primary-nav a:hover,[data-theme=dark] .instruction-number{background:#302943;color:#d4c5f6;border-color:#68518e}
[data-theme=dark] .goal.chosen{border-color:#b79bff}
[data-theme=dark] .notice b,[data-theme=dark] .starting-orientation strong,[data-theme=dark] .mobile-checkpoint{color:#dccfff}
[data-theme=dark] .marker-top,[data-theme=dark] .marker-left,[data-theme=dark] .marker-right{background:#252d3e;border-color:var(--line)}
[data-theme=dark] .surface-head,[data-theme=dark] .palette{border-color:var(--line)}
[data-theme=dark] .progress,[data-theme=dark] .move-list span{background:#343e51;color:#c8d1e2}
[data-theme=dark] .move-list .done,[data-theme=dark] .goals .success{background:#183e32;color:#b0efd0;border-color:#387a5d}
[data-theme=dark] .lesson-stages li{background:#292e40;color:#c4bdd7}
[data-theme=dark] .lesson-stages .current{background:#3c3054;color:#ece0ff;border-color:#9e7fcf}
[data-theme=dark] .lesson-stages .complete{color:#a1e2c7}
[data-theme=dark] .lesson-stages li>span{background:#48405c;color:#fff}
[data-theme=dark] .calculation-status{background:#302943;border-color:#8e72ba;color:#eee4ff}
[data-theme=dark] .calculation-status p{color:#d2c6e6}
[data-theme=dark] .status{color:#ffb69f}
[data-theme=dark] .policy-help{color:#c2cada!important}
/* CookieYes policies can supply their own light colours; keep that embed readable. */
[data-theme=dark] .cookie-policy-embed{background:#fff;color:#222;padding:20px;border-radius:12px;color-scheme:light}
[data-theme=dark] .cookie-policy-embed :is(p,li,h1,h2,h3,h4,span,div,td,th){color:#333!important}
[data-theme=dark] .cookie-policy-embed a{color:#6247b6!important}
@media(max-width:800px){[data-theme=dark] .solution .surface-head,[data-theme=dark] .mobile-instruction,[data-theme=dark] .solution .actions{background:#202635}[data-theme=dark] .mobile-help{background:#252b3a;border-color:var(--line)}}
@media(prefers-reduced-motion:reduce){.theme-track:before{transition:none}}
