/* Lambda Lab — dark theme for the main site. Generated by tools-darkgen.py from styles.css, refinements.css and home.css; hand-tuned fixes live in theme.css. */
/* ---- styles.css */
html[data-theme="dark"]{color:#c0cce6;background:#181e2d;--muted:#9da7b7;--line:#29324b;--surface:#1d2335;--soft:#181e2c}
html[data-theme="dark"] button{background:none}
html[data-theme="dark"] .topbar{background:#1d2335}
html[data-theme="dark"] .brand{color:#c0cde6}
html[data-theme="dark"] .brand-icon{background:#284bd5;color:white}
html[data-theme="dark"] .top-caption{color:#9ba5b5}
html[data-theme="dark"] .level-tag{color:#a1aab8}
html[data-theme="dark"] .language-btn span{color:#959fae}
html[data-theme="dark"] .library{background:#1d2335}
html[data-theme="dark"] .eyebrow{color:#9ba5b3}
html[data-theme="dark"] .lesson.active{background:#181e2c;border-color:#252f4d}
html[data-theme="dark"] .lesson.active:before{background:var(--blue)}
html[data-theme="dark"] .lesson-symbol{border:1px solid #28324a;background:#1d2335}
html[data-theme="dark"] .biology{color:#dd7e94}
html[data-theme="dark"] .physics{color:#dfb57c}
html[data-theme="dark"] .chemistry{color:#9dd2cb}
html[data-theme="dark"] .lesson small{color:#9ba3b3}
html[data-theme="dark"] .lesson em{color:#97a0b0}
html[data-theme="dark"] .lesson-arrow{color:#8194c0}
html[data-theme="dark"] .tiny-lambda{color:#c1cadb}
html[data-theme="dark"] .library-bottom p{color:#9ba4b3}
html[data-theme="dark"] .text-button{color:#a0a9ba}
html[data-theme="dark"] .lesson-header p{color:#9ca5b3}
html[data-theme="dark"] .scene-badge{color:#9ba7b6;border:1px solid #28364f;background:#1d2335}
html[data-theme="dark"] .model-panel{background:#1d2335}
html[data-theme="dark"] .view-modes{background:#1c2334;border:1px solid #29334c;box-shadow:0 2px 5px rgba(0,0,0,0.0188)}
html[data-theme="dark"] .view-modes button{color:#9ba5b3}
html[data-theme="dark"] .view-modes button.selected{background:#12192f}
html[data-theme="dark"] .icon-button{color:#9aa6b8}
html[data-theme="dark"] .viewer-toolbar .icon-button{background:#1d2335}
html[data-theme="dark"] #loading{background:#181e2d}
html[data-theme="dark"] .loader{border:2px solid #283653}
html[data-theme="dark"] .axis-y{color:#9cbdab}
html[data-theme="dark"] .axis-z{color:#689ace}
html[data-theme="dark"] .axis-x{color:#c97e81}
html[data-theme="dark"] .viewer-hint{color:#969fae;background:#1d2335;border-top:1px solid #273149}
html[data-theme="dark"] .playback{background:#1d2335}
html[data-theme="dark"] .play-button{background:var(--blue);color:white}
html[data-theme="dark"] .playback-label span{color:#96a0af}
html[data-theme="dark"] .timeline{background:#141926}
html[data-theme="dark"] .timeline>div{background:#1f2b5c}
html[data-theme="dark"] .speed-label{color:#969fae}
html[data-theme="dark"] .speed-label select{background:#1d2335;color:#afb9ca}
html[data-theme="dark"] .control-panel{background:#1d2335}
html[data-theme="dark"] .panel-heading>span:last-child{color:#9aa6b7}
html[data-theme="dark"] .number-wrap{background:#19202f;border:1px solid #29324b}
html[data-theme="dark"] .number-wrap input{background:transparent;color:#b1bfdd}
html[data-theme="dark"] .number-wrap span{color:#98a3b3}
html[data-theme="dark"] .range-limits{color:#9aa4b2}
html[data-theme="dark"] .field-error{color:#d08993}
html[data-theme="dark"] .readouts{border:1px solid #28314a;background:#1a2131}
html[data-theme="dark"] .readout+.readout{border-inline-start:1px solid #26344e}
html[data-theme="dark"] .readout span{color:#8b97a9}
html[data-theme="dark"] .readout strong{color:#8ba0dd}
html[data-theme="dark"] .part-button{color:#9ea7b6}
html[data-theme="dark"] .part-button.selected{background:#181e2d;color:#7c94df}
html[data-theme="dark"] .part-button .part-dot{background:#56272b}
html[data-theme="dark"] .part-button.selected .part-dot{background:var(--blue)}
html[data-theme="dark"] .part-button>span:last-child{color:#a0abbc}
html[data-theme="dark"] .model-note{color:#929caf}
html[data-theme="dark"] .learn-panel{background:#1d2335}
html[data-theme="dark"] .section-number{border:1px solid #26314e}
html[data-theme="dark"] #explanation{color:#9ca5b5}
html[data-theme="dark"] .challenge{color:#a2acbc}
html[data-theme="dark"] .challenge strong{color:#8297d9}
html[data-theme="dark"] .part-label{background:#1d2335;color:#9fb0da;border:1px solid #26324f;box-shadow:0 4px 20px rgba(0,0,0,0.132)}
html[data-theme="dark"] .chart-container{color:#94a0b1}
html[data-theme="dark"] .toast{background:#203655;color:#fff}
html[data-theme="dark"] dialog{box-shadow:0 20px 80px rgba(0,0,0,0.301);color:#b6c2d5}
html[data-theme="dark"] dialog::backdrop{background:#17274450}
html[data-theme="dark"] .blueprint .part-label{background:#173d64;color:#bcf0ff;border-color:#427294}
html[data-theme="dark"] .equation{color:#97a7d2}
html[data-theme="dark"] .part-info{background:#19202f;color:#9ba7b6}
/* ---- refinements.css */
html[data-theme="dark"] .toggle-row{color:#9fabbc}
html[data-theme="dark"] .toggle-row small{color:#8c99aa}
html[data-theme="dark"] .tour-button{border:1px solid #26314e;background:#191f2f;color:#7c95df}
html[data-theme="dark"] .model-note{color:#9ba6b5}
html[data-theme="dark"] .eyebrow{color:#a0aab9}
html[data-theme="dark"] .lesson em{color:#9ca6b8}
html[data-theme="dark"] .narration-strip{background:#1b2132;border-top:1px solid #28314a}
html[data-theme="dark"] .narration-strip #audioSubject{color:#9ba3b3}
html[data-theme="dark"] .narration-strip #audioStatus{color:#a5afbe}
html[data-theme="dark"] .flow-guide{border-top:1px solid #28324a;background:#1b2233}
html[data-theme="dark"] .flow-heading>span,html[data-theme="dark"] .flow-legend,html[data-theme="dark"] .flow-actions small{color:#99a4b4}
html[data-theme="dark"] .poor{color:#81abe0}
html[data-theme="dark"] .rich{color:#df7c8f}
html[data-theme="dark"] .flow-steps button{border:1px solid #273750;background:#1d2335;color:#a4b3c6}
html[data-theme="dark"] .flow-steps button[aria-current=true]{background:#3156d9;border-color:#3156d9;color:white}
html[data-theme="dark"] .flow-detail{background:#1d2335;border:1px solid #26374f}
html[data-theme="dark"] .flow-detail p{color:#aab5c5}
html[data-theme="dark"] .flow-actions button{background:#1d2335;border:1px solid #273751;color:#7c92df}
html[data-theme="dark"] .flow-caption{border:1px solid #273650;background:rgba(29,35,53,0.941);box-shadow:0 4px 22px rgba(0,0,0,0.069)}
html[data-theme="dark"] .flow-caption button{background:#121930;color:#7c92df}
html[data-theme="dark"] .blueprint .flow-caption{background:#14283ff0;color:#f3f8ff;border-color:#45617b}
html[data-theme="dark"] .blueprint .flow-caption .poor{color:#7ab6ff}
html[data-theme="dark"] .blueprint .flow-caption .rich{color:#ff8393}
html[data-theme="dark"] .astronomy{color:#7c8cdf}
html[data-theme="dark"] .subject{background:#1d2335}
html[data-theme="dark"] .subject summary{color:#b4bed2}
html[data-theme="dark"] .subject summary::after{color:#8194c0}
html[data-theme="dark"] .subject-dot{background:currentColor}
html[data-theme="dark"] .subject.physics summary{color:#e2bb88}
html[data-theme="dark"] .subject.chemistry summary{color:#a3dcd4}
html[data-theme="dark"] .subject.biology summary{color:#d88699}
html[data-theme="dark"] .subject.astronomy summary{color:#7e8ddc}
html[data-theme="dark"] .subject.geography summary{color:#aad49e}
html[data-theme="dark"] .subject.mathematics summary{color:#9d85d6}
html[data-theme="dark"] .subject.history summary{color:#dab691}
html[data-theme="dark"] .subject.economics summary{color:#e1c787}
html[data-theme="dark"] .subject-count{color:#8c98ab;background:#161c29}
html[data-theme="dark"] .coming-soon{color:#98a3b4}
html[data-theme="dark"] .lesson-symbol.mathematics{color:#9d85d6}
html[data-theme="dark"] .lesson-symbol.geography{color:#aad49e}
html[data-theme="dark"] .lesson-symbol.history{color:#dab691}
html[data-theme="dark"] .lesson-symbol.economics{color:#e1c787}
html[data-theme="dark"] .workspace.is-full{background:#181e2d}
html[data-theme="dark"] .workspace.is-full #resetCamera{background:#3156d9;color:#fff;border-color:#3156d9}
html[data-theme="dark"] .choice{border:1px solid #26364f;background:#19202f;color:#a7b0c0}
html[data-theme="dark"] .choice.selected{background:#12192f;border-color:#2a3557}
html[data-theme="dark"] .lesson-search input{border:1px solid #26364f;background:#19202f;color:#bbc8de}
html[data-theme="dark"] .lesson-search input:focus{border-color:#2d395e;background:#1d2335;box-shadow:0 0 0 3px rgba(0,0,0,0.0612)}
html[data-theme="dark"] .ls-icon{color:#8b97a9}
html[data-theme="dark"] .lesson-search kbd{color:#95a1b3;border:1px solid #28364f;background:#1d2335}
html[data-theme="dark"] .sr-count{color:#9ba5b3}
html[data-theme="dark"] .sr-group{border:1px solid #28314a;background:#1b2233}
html[data-theme="dark"] .sr-label{color:#949fb0}
html[data-theme="dark"] .sr-item:hover,html[data-theme="dark"] .sr-item:focus-visible{background:#121930}
html[data-theme="dark"] .sr-item span{color:#adbcdc}
html[data-theme="dark"] .sr-item small{color:#96a1b1}
html[data-theme="dark"] .progress-card{border:1px solid #28314a;background:#1b2233}
html[data-theme="dark"] .pc-top{color:#9ba5b3}
html[data-theme="dark"] .pc-top strong{color:#889fe2}
html[data-theme="dark"] .pc-bar{background:#131823}
html[data-theme="dark"] .pc-bar>div{background:linear-gradient(90deg,#202f61,#22a06b)}
html[data-theme="dark"] .lp-check{background:#22a06b;color:#fff}
html[data-theme="dark"] .lesson.is-done strong{color:#9fe7c8}
html[data-theme="dark"] .subject-count.all-done{background:#0b1e14!important;color:#a0e8c5!important}
html[data-theme="dark"] .lesson-progress-panel{border:1px solid #28364f;background:#1d2335}
html[data-theme="dark"] .lpp-text{color:#9ba7b6}
html[data-theme="dark"] .lpp-text strong{color:#adbcdd}
html[data-theme="dark"] .lpp-bar{background:#131823}
html[data-theme="dark"] .lpp-bar>div{background:#1f2d5e}
html[data-theme="dark"] .finish-button{border:1px solid #283352;background:#191f2f;color:#7c92df}
html[data-theme="dark"] .finish-button.done{background:#0e2619;border-color:#2f6146;color:#a0e8c5}
html[data-theme="dark"] .reset-progress{color:#9aa5b5!important}
html[data-theme="dark"] .term{background:none;border-bottom:1.5px dotted #333f69}
html[data-theme="dark"] .term:hover,html[data-theme="dark"] .term:focus-visible{color:#7c92df}
html[data-theme="dark"] .glossary-pop{background:#1d2335;border:1px solid #26324f;box-shadow:0 12px 40px rgba(0,0,0,0.289);color:#b6c2d5}
html[data-theme="dark"] .gp-head strong{color:#99ace6}
html[data-theme="dark"] .gp-close{color:#939fb2}
html[data-theme="dark"] .gp-close:hover{background:#171c2a}
html[data-theme="dark"] .gp-lesson{color:#7c92df}
html[data-theme="dark"] .workspace.is-full #resetView{background:#1d2335}
html[data-theme="dark"] .scene-label{background:rgba(15,23,42,.78);border:1px solid rgba(36,44,66,0.14);box-shadow:0 2px 10px rgba(0,0,0,0.4);color:#f8fafc}
html[data-theme="dark"] .scene-label i{background:var(--dot,#1e395a);box-shadow:0 0 0 2px rgba(0,0,0,0.072)}
html[data-theme="dark"] .blueprint .scene-label{background:rgba(10,37,64,.85);border-color:rgba(47,79,98,0.35)}
@media(min-width:1051px){html[data-theme="dark"] .subject .lesson:hover:not(.active){background:#191f2e}html[data-theme="dark"] .subject .lesson .lesson-symbol{border:1px solid #28324b;background:#1b2132;box-shadow:0 1px 2px rgba(0,0,0,0.0816)}html[data-theme="dark"] .subject .lesson.active .lesson-symbol{background:#1d2335;border-color:#273150}html[data-theme="dark"] .subject .lesson .lesson-arrow{color:#a3b0c9}}
@media(min-width:1051px){html[data-theme="dark"] .library-toggle{background:#1d2335;color:#b4bed2;box-shadow:0 1px 2px rgba(0,0,0,0.0941)}html[data-theme="dark"] .library-toggle:hover{background:#181e2d;border-color:#273150}html[data-theme="dark"] .library-toggle:focus-visible{box-shadow:0 0 0 3px rgba(0,0,0,0.12)}html[data-theme="dark"] body.library-open .library-toggle{background:#181e2c;border-color:#273150}html[data-theme="dark"] body.library-open .library{box-shadow:14px 0 44px rgba(0,0,0,0.226)}html[data-theme="dark"] [dir=rtl] body.library-open .library{box-shadow:-14px 0 44px rgba(0,0,0,0.226)}html[data-theme="dark"] .library-backdrop{background:#0f1c3a}}
html[data-theme="dark"] .lab-card-body{background:rgba(29,35,53,0.94);box-shadow:0 10px 30px rgba(0,0,0,0.195);color:#bbc8de}
html[data-theme="dark"] .lab-card-toggle{background:#1d2335;color:#a9b4c6;box-shadow:-4px 4px 12px rgba(0,0,0,0.125)}
html[data-theme="dark"] .lab-card.is-flash .lab-card-body{box-shadow:0 0 0 3px rgba(0,0,0,0.2),0 10px 30px rgba(0,0,0,0.195)}
html[data-theme="dark"] .lab-card h4{color:#bdcae1}
html[data-theme="dark"] .lab-card-sub{color:#a1a9b9}
html[data-theme="dark"] .lab-strip{border:1px solid #29334c}
html[data-theme="dark"] .lab-strip-scale{color:#949fb0}
html[data-theme="dark"] .lab-card dt{color:#a1a9b9}
html[data-theme="dark"] .lab-card dd{color:#bdcae1}
html[data-theme="dark"] .lab-card-warn{color:#e18e86}
html[data-theme="dark"] .lab-chip{color:#fff}
html[data-theme="dark"] .lab-obj{color:#bdcae1}
html[data-theme="dark"] .lab-obj small{color:#949fb0}
html[data-theme="dark"] .lab-bar{background:#141926}
html[data-theme="dark"] .lab-swatch{border:1px solid #313c50}
html[data-theme="dark"] .lab-looks{color:#bdcae1}
html[data-theme="dark"] .lab-looks.is-black{color:#e18e86}
html[data-theme="dark"] .lab-card-note{color:#949fb0}
html[data-theme="dark"] .lab-diagram-slot{background:#1d2a24}
html[data-theme="dark"] .lab-mbar span{color:#a9b4c6}
html[data-theme="dark"] .lab-mbar b{color:#bdcae1}
html[data-theme="dark"] .lab-mbar i{background:#141926}
html[data-theme="dark"] .lab-verdict{color:#e18e86}
html[data-theme="dark"] .lab-verdict.is-ok{color:#9fe7c8}
html[data-theme="dark"] .lab-order{color:#7c92df}
html[data-theme="dark"] .lab-ebar i{background:#141926}
html[data-theme="dark"] .lab-ebar-val{color:#bdcae1}
html[data-theme="dark"] .lab-ebar-name{color:#a1a9b9}
html[data-theme="dark"] .sc-here em{color:#7c92df}
html[data-theme="dark"] .sc-here strong{color:#b0c0e5}
html[data-theme="dark"] .sc-here span{color:#a1a9b9}
html[data-theme="dark"] .sc-fact{color:#b3c0d6;background:#181e2d}
html[data-theme="dark"] .sc-compare b{color:#dfa37c}
html[data-theme="dark"] .sc-compare span{color:#a9b3c4}
html[data-theme="dark"] .sc-go{border:1px solid #283352;background:#191f2f;color:#7c92df}
html[data-theme="dark"] .sc-go:hover{background:#11192d}
html[data-theme="dark"] .sc-caption strong{color:#c0cce6;text-shadow:0 1px 12px rgba(0,0,0,0.48)}
html[data-theme="dark"] .sc-caption span{color:#7c92df;background:rgba(29,35,53,0.851)}
html[data-theme="dark"] .sc-caption.is-dark strong{color:#fff;text-shadow:0 1px 12px #000000}
html[data-theme="dark"] .sc-caption.is-dark span{background:rgba(29,35,53,0.149);color:#dbe6ff}
html[data-theme="dark"] .sc-ladder{background:rgba(29,35,53,0.902);border:1px solid #28364f;box-shadow:0 6px 20px rgba(0,0,0,0.163)}
html[data-theme="dark"] .sc-ladder.is-dark{background:#0d1426e6;border-color:#2a3654}
html[data-theme="dark"] .sc-step{background:#3156d9;color:#fff}
html[data-theme="dark"] .sc-step:hover{background:#2849c2}
html[data-theme="dark"] .sc-stops::before{background:#1e2a3c}
html[data-theme="dark"] .sc-ladder.is-dark .sc-stops::before{background:#34415f}
html[data-theme="dark"] .sc-stop{background:none;color:#a1a9b9}
html[data-theme="dark"] .sc-stop i{background:#1d2335;border:2px solid #33425a}
html[data-theme="dark"] .sc-stop:hover{color:#7c92df}
html[data-theme="dark"] .sc-stop.is-past i{background:#1a294f;border-color:#2e3c60}
html[data-theme="dark"] .sc-stop.is-on i{background:#3156d9;border-color:#3156d9;box-shadow:0 0 0 4px rgba(0,0,0,0.12)}
html[data-theme="dark"] .sc-stop.is-on{color:#7c92df}
html[data-theme="dark"] .sc-ladder.is-dark .sc-stop{color:#9aa8c4}
html[data-theme="dark"] .sc-ladder.is-dark .sc-stop i{background:#0d1426;border-color:#4a5a80}
html[data-theme="dark"] .sc-ladder.is-dark .sc-stop.is-past i{background:#5f78c0;border-color:#3b4b7a}
html[data-theme="dark"] .sc-ladder.is-dark .sc-stop.is-on{color:#fff}
html[data-theme="dark"] .sc-ladder.is-dark .sc-stop.is-on i{background:#1c2853;border-color:#303c64}
html[data-theme="dark"] .br-test{color:#fff;background:#3156d9}
html[data-theme="dark"] .br-test[data-state="wait"]{background:#c62f2f}
html[data-theme="dark"] .br-test[data-state="go"]{background:#18a957}
html[data-theme="dark"] .br-test[data-state="early"]{background:#8a5a12}
html[data-theme="dark"] .br-test[data-state="result"]{background:#1f2d45}
html[data-theme="dark"] .br-results{color:#a9b3c4}
html[data-theme="dark"] .br-results i{background:#151a28;color:#b3c0d6}
html[data-theme="dark"] .br-results i.is-last{background:#3156d9;color:#fff}
html[data-theme="dark"] .br-stages li{color:#b0bacb}
html[data-theme="dark"] .br-stages li b{color:#bdcae1}
html[data-theme="dark"] .br-compare{color:#b0bacb}
html[data-theme="dark"] .br-compare b{color:#bdcae1}
html[data-theme="dark"] .wm-timeline{background:rgba(29,35,53,0.922);border:1px solid #28364f;box-shadow:0 6px 20px rgba(0,0,0,0.163)}
html[data-theme="dark"] .wm-step{background:#3156d9;color:#fff}
html[data-theme="dark"] .wm-step:hover{background:#2849c2}
html[data-theme="dark"] .wm-ticks i{background:#263143}
html[data-theme="dark"] .wm-ticks i.is-on{background:#e0752f}
html[data-theme="dark"] .wm-ticks em{color:#9ba5b4}
html[data-theme="dark"] .wm-year strong{color:#b0c0e5}
html[data-theme="dark"] .wm-year span{color:#9ba5b4}
html[data-theme="dark"] .wm-cap{color:#b3c0d6}
html[data-theme="dark"] .wm-hint{color:#9ba5b4}
html[data-theme="dark"] .wm-sel{background:#191f2f;border:1px solid #263250}
html[data-theme="dark"] .wm-sel strong{color:#b0c0e5}
html[data-theme="dark"] .wm-sel span{color:#a9b3c4}
html[data-theme="dark"] .wm-sel button{background:none;color:#7c92df}
html[data-theme="dark"] .wm-row{background:none;color:#b3c0d6}
html[data-theme="dark"] .wm-row:hover,html[data-theme="dark"] .wm-row.is-on{background:#191f2f;border-color:#263250}
html[data-theme="dark"] .wm-row b{color:#bdcae1}
html[data-theme="dark"] .wm-tip{background:rgba(24,31,43,.92);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,0.352)}
html[data-theme="dark"] .wm-tip span{color:#c7d2e3}
html[data-theme="dark"] .rk-bar{background:rgba(29,35,53,0.922);border:1px solid #28364f;box-shadow:0 6px 20px rgba(0,0,0,0.163)}
html[data-theme="dark"] .rk-launch{background:linear-gradient(135deg,#ff6a3d,#e0302a);color:#fff;box-shadow:0 4px 14px rgba(0,0,0,0.151)}
html[data-theme="dark"] .rk-back{background:#151a27;color:#bbc7df}
html[data-theme="dark"] .rk-clock strong{color:#c0cce7}
html[data-theme="dark"] .rk-clock span{color:#a8b0c1}
html[data-theme="dark"] .rk-warp{color:#a8b0c1}
html[data-theme="dark"] .rk-flash{background:#1d2335}
html[data-theme="dark"] .rk-grid span{color:#a8b0c1}
html[data-theme="dark"] .rk-grid b{color:#c0cce7}
html[data-theme="dark"] .rk-grid b.rk-bad{color:#e08080}
html[data-theme="dark"] .rk-grid b.rk-warn{color:#e5c596}
html[data-theme="dark"] .rk-meter{background:#121722}
html[data-theme="dark"] .rk-meter i{background:linear-gradient(90deg,#4f7fe0,#35b36b)}
html[data-theme="dark"] .rk-meter i.is-low{background:linear-gradient(90deg,#f0a64a,#e0574a)}
html[data-theme="dark"] .rk-meter em{color:#a2b6d8}
html[data-theme="dark"] .rk-meter em::after{background:#35507f}
html[data-theme="dark"] .rk-meter em.is-esc{color:#b286d9}
html[data-theme="dark"] .rk-meter em.is-esc::after{background:#7a3fb0}
html[data-theme="dark"] .rk-result{background:#171c2b;border-left:4px solid #4a5263}
html[data-theme="dark"] .rk-result strong{color:#c0cce7}
html[data-theme="dark"] .rk-result.is-orbit{background:#131824;border-color:#2e9e5b}
html[data-theme="dark"] .rk-result.is-escape{background:#151a28;border-color:#7a3fb0}
html[data-theme="dark"] .rk-result.is-crash,html[data-theme="dark"] .rk-result.is-burnup,html[data-theme="dark"] .rk-result.is-heavy{background:#2c1411;border-color:#d64533}
html[data-theme="dark"] .rk-result.is-suborbital{background:#2a2010;border-color:#e39b2d}
html[data-theme="dark"] .rk-best{background:#28220f;color:#ece3be}
html[data-theme="dark"] .rk-best em{color:#e4b990}
html[data-theme="dark"] .rk-down{color:#e5c596}
html[data-theme="dark"] .im-bar{background:rgba(29,35,53,0.922);border:1px solid #28364f;box-shadow:0 6px 20px rgba(0,0,0,0.163)}
html[data-theme="dark"] .im-go{background:linear-gradient(135deg,#3f6ee8,#2447c2);color:#fff}
html[data-theme="dark"] .im-vac{background:#131823;color:#9fe7bd}
html[data-theme="dark"] .im-tools button{background:#161c29;color:#bbc7df}
html[data-theme="dark"] .im-tools button small{color:#a0a9b9}
html[data-theme="dark"] .im-tools button.is-on{border-color:#3156d9;background:#121930}
html[data-theme="dark"] .im-dot.n{background:#2d1c50}
html[data-theme="dark"] .im-dot.m{background:#573d1d}
html[data-theme="dark"] .im-dot.a{background:#615120}
html[data-theme="dark"] .im-meters span{color:#a8b0c1}
html[data-theme="dark"] .im-meters b{background:#10141e}
html[data-theme="dark"] .im-meters i{background:#203160}
html[data-theme="dark"] .im-meters i.im-ab{background:#e2b53a}
html[data-theme="dark"] .im-msg{color:#e9d0b2;background:#241f0e;border:1px solid #5f532e;box-shadow:0 4px 12px rgba(0,0,0,0.125)}
html[data-theme="dark"] .rk-grid small{color:#8b97ab}
html[data-theme="dark"] .language-switch{background:#151a27;border:1px solid #28364f}
html[data-theme="dark"] .language-switch button{background:transparent;color:#a8b0c1}
html[data-theme="dark"] .language-switch button.is-on{background:#1d2335;color:#b0c0e5;box-shadow:0 1px 4px rgba(0,0,0,0.213)}
html[data-theme="dark"] .language-switch button:hover:not(.is-on){color:#b0c0e5}
html[data-theme="dark"] .part-pointer .pp-line{background:#3156d9;box-shadow:0 0 0 1px rgba(0,0,0,0.42)}
html[data-theme="dark"] .part-pointer .pp-dot{border:2px solid #242c42;background:#3156d9;box-shadow:0 0 0 3px rgba(0,0,0,0.21),0 1px 4px rgba(0,0,0,0.48)}
html[data-theme="dark"] .hub-link{color:#c7d1eb;background:linear-gradient(135deg,rgba(47,91,234,.12),rgba(124,58,237,.12));border:1px solid rgba(80,58,120,0.22)}
html[data-theme="dark"] .hub-link:hover{box-shadow:0 8px 20px rgba(0,0,0,0.09)}
html[data-theme="dark"] .hub-link small{color:#a3adbd}
html[data-theme="dark"] .h-btn.chem{background:linear-gradient(135deg,#2f5bea,#7c3aed);color:#fff}
html[data-theme="dark"] .h-btn.phys{background:linear-gradient(135deg,#0ea5e9,#2563eb);color:#fff}
/* ---- home.css */
html[data-theme="dark"] .home{--ink:#c0cce6;--mut:#9fa9b8}
html[data-theme="dark"] .h-hero{background:#1b2132;border:1px solid #25334e}
html[data-theme="dark"] .h-blobs span:nth-child(1){background:#162042}
html[data-theme="dark"] .h-blobs span:nth-child(2){background:#462d17}
html[data-theme="dark"] .h-blobs span:nth-child(3){background:#174637}
html[data-theme="dark"] .h-eyebrow{color:#7c92df}
html[data-theme="dark"] .h-hero h1 span{background:linear-gradient(90deg,#3156d9,#8a4fd8 55%,#e0752f);-webkit-background-clip:text;background-clip:text}
html[data-theme="dark"] .h-hero p{color:#a9b4c4}
html[data-theme="dark"] .h-btn{color:#b2c0e1;background:#1d2335;border:1px solid #273752}
html[data-theme="dark"] .h-btn:hover{box-shadow:0 10px 24px rgba(0,0,0,0.195)}
html[data-theme="dark"] .h-btn.primary{background:#3156d9;border-color:#3156d9;color:#fff}
html[data-theme="dark"] .h-btn.primary:hover{background:#2849c2}
html[data-theme="dark"] .h-stats>div{background:#1d2335;border:1px solid #28324b}
html[data-theme="dark"] .h-stats strong{color:#b0c0e5}
html[data-theme="dark"] .h-rib-item{border:1px solid #29334c;background:#1d2335;color:#b3c0d6}
html[data-theme="dark"] .h-rib-item i{background:var(--c)}
html[data-theme="dark"] .h-tabs{background:#1d2335;border:1px solid #28324b}
html[data-theme="dark"] .h-tab-pill{background:color-mix(in srgb,var(--c,#3156d9) 13%,#1d2335);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c,rgba(0,0,0,0.6)) 30%,transparent)}
html[data-theme="dark"] .h-tab{background:none;color:#a9b3c4}
html[data-theme="dark"] .h-tab i{background:var(--c)}
html[data-theme="dark"] .h-tab b{color:#8a97ab;background:#161c29}
html[data-theme="dark"] .h-tab.is-on b{background:#1d2335}
@media(max-width:1000px){html[data-theme="dark"] .h-tab.is-on{background:color-mix(in srgb,var(--c) 13%,#1d2335)}}
html[data-theme="dark"] .h-card{--mx:50%;--my:50%;background:#1d2335;border:1px solid #28324b}
html[data-theme="dark"] .h-card::before{background:radial-gradient(420px circle at var(--mx) var(--my),color-mix(in srgb,var(--c) 16%,transparent),transparent 60%)}
html[data-theme="dark"] .h-card::after{background:radial-gradient(260px circle at var(--mx) var(--my),var(--c),transparent 70%)}
html[data-theme="dark"] .h-card:hover,html[data-theme="dark"] .h-card:focus-visible{box-shadow:0 22px 44px -18px color-mix(in srgb,var(--c) 45%,#000000)}
html[data-theme="dark"] .h-card-art{background:radial-gradient(circle at 30% 20%,color-mix(in srgb,var(--c) 22%,#1d2335),color-mix(in srgb,var(--c) 7%,#1d2335) 70%)}
html[data-theme="dark"] .h-card-art::before{background-image:radial-gradient(color-mix(in srgb,var(--c) 35%,transparent) 1px,transparent 1.2px)}
html[data-theme="dark"] .h-card-subject i{background:var(--c)}
html[data-theme="dark"] .h-card strong{color:#bdcae5}
html[data-theme="dark"] .h-card em{color:#a2acbc}
html[data-theme="dark"] .h-card-meta span{color:#9ea8b8;background:#171d2b}
html[data-theme="dark"] .h-today{color:#fff;background:linear-gradient(90deg,#3156d9,#8a4fd8)}
html[data-theme="dark"] .h-new{color:#fff;background:#e0752f;box-shadow:0 4px 10px rgba(0,0,0,0.2)}
html[data-theme="dark"] .h-page{border:1px solid #273650;background:#1d2335;color:#adb7c9}
html[data-theme="dark"] .h-page:hover:not(:disabled){border-color:#2b385a;color:#7c92df;box-shadow:0 8px 18px rgba(0,0,0,0.144)}
html[data-theme="dark"] .h-page.is-on{background:#3156d9;border-color:#3156d9;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,0.151)}
html[data-theme="dark"] .h-pages-info{color:#949fb1}
html[data-theme="dark"] .h-foot{border-top:1px solid #28324b}
html[data-theme="dark"] .h-foot-brand{color:#bbc7e3}
html[data-theme="dark"] .h-foot nav button{background:none;color:#a3aebe}
html[data-theme="dark"] .h-foot nav button:hover{background:color-mix(in srgb,var(--c) 10%,#1d2335)}
html[data-theme="dark"] .h-foot p{color:#95a1b3}
