/* Shared display preference. Artwork and learning records are never recolored. */
html[data-theme=dark]{color-scheme:dark;--bg:#0f0f0f;--ink:#f1f1f1;--muted:#aaaaaa;--line:#333333;--lime:#a394ff;--green:#99cd87;--blue:#94b7ff;--lx-surface:#1c1c1c;--lx-copy:#aaaaaa;--lx-paper:#1c1c1c;--lx-bg:#0f0f0f;--lx-soft:#252525;--lx-sub:#aaaaaa;--lx-line:#353535;--lx-good:#a2da8e;--lx-lime:#a394ff;--lx-lime-ink:#20192e;--lx-process:#99d4ed;--lx-process-bg:#1d3d48;--lx-event:#f4c590;--lx-event-bg:#493723;--lx-ink:#f1f1f1}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] :is(.sidebar,.topbar){background:#181818;border-color:#333333;color:#f1f1f1}html[data-theme=dark] .sidebar .brand{color:#edf5e6}html[data-theme=dark] .sidebar .brand-mark{background:#a394ff;color:#1a3728}html[data-theme=dark] .sidebar :is(.side-caption,.side-link,.nav-btn){color:#aaaaaa}html[data-theme=dark] .sidebar .nav-btn.active{color:#d5efb1;background:#30482b;box-shadow:inset 3px 0 #a394ff}html[data-theme=dark] .sidebar .nav-btn:not(.active):hover{background:#263c2f;color:#edf5e6}html[data-theme=dark] .sidebar .language-switch{background:#252525;border-color:#3b5240;color:#ededed}html[data-theme=dark] .sidebar .language-switch :is(small,b){color:#b4c7a7}
html[data-theme=dark] :is(.lx-theme-button,.lx-settings-button,.topbar .avatar){background:#2a4030;color:#d6edb7;border-color:#49613e}html[data-theme=dark] .xp-pill{background:#2b4127;color:#d1edaf}html[data-theme=dark] .streak{color:#d9bb80}html[data-theme=dark] .workspace>footer{color:#acbda6;border-color:#333333}html[data-theme=dark] .account-test-badge{background:#2a4028;color:#cee5a9}
html[data-theme=dark] :is(.panel,.lx-empty,.lx-info,.lx-settings details,.lx-record-confirm,.secondary,.white-btn,.filter-btn,.search,.word-card,.game-card,.story-card,.route,.modal,.study,.de-card,.de-empty,.de-word,.de-stats article,.language-option,.yds-skill-row,.yds-achievements,.yds-learning-summary,.yds-question-tools,.yds-learn-apply,.gs-task-card,.gs-trail button,.gs-options button,.gr-text-card,.gr-unit,.gr-rule,.gr-review-card,.gr-source-card,.reading-card,.arc-card,.arc-control-panel){background:var(--lx-surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,select,textarea){background:#0f0f0f;color:#f1f1f1;border-color:#47604b}html[data-theme=dark] .primary{background:#a394ff;color:#183a29}html[data-theme=dark] .primary:hover{background:#d7ff91}html[data-theme=dark] :is(.filter-btn.active,.lx-secondary-nav .current){background:#314b2c;color:#d9efc4;border-color:#59734c}html[data-theme=dark] .secondary:hover{background:#2b4031}html[data-theme=dark] .text-btn{color:#b6d49b}
html[data-theme=dark] :is(.status-tag,.circle-icon,.day-box){background:#2a3b30;color:#becfba}html[data-theme=dark] :is(.status-tag.mastered,.day-box.done,.badge.earned){background:#304827;color:#d0eeaa;border-color:#547c3b}html[data-theme=dark] .status-tag.learning{background:#493b26;color:#f0d5a1}html[data-theme=dark] :is(.badge,.list-row,.date-chip){border-color:#3d5142}html[data-theme=dark] :is(.game-card p,.game-card small,.story-card p,.word-card p,.list-row small,.stat-label,.page-head p,.lx-settings p){color:#aaaaaa}
/* Today's learning world */
html[data-theme=dark] .lx-home-v2 .eyebrow{color:#b1c798}html[data-theme=dark] .lx-welcome>div>p:last-child{color:#adbf9e}html[data-theme=dark] .lx-rhythm-chip{background:#3a3522;border-color:#65552d}html[data-theme=dark] .lx-rhythm-chip strong{color:#f1d79a}html[data-theme=dark] .lx-rhythm-chip small{color:#ccbd90}html[data-theme=dark] .lx-rhythm-chip svg{color:#e5bf6c}html[data-theme=dark] :is(.lx-memory-strip,.lx-path-panel,.lx-rhythm-panel){background:#1c1c1c;border-color:#344b38}html[data-theme=dark] .lx-memory-strip svg{color:#a9c98c}html[data-theme=dark] .lx-memory-strip small{color:#bdcbae}html[data-theme=dark] .lx-strip-journey{color:#d1ebaa}
html[data-theme=dark] .lx-missions>header>span{color:#b3c99d}html[data-theme=dark] .lx-mission{background:linear-gradient(145deg,#2c432d,#203528);border-color:#4a633b;box-shadow:0 4px 0 #152a1c;color:#e2f0d4}html[data-theme=dark] .lx-mission.lavender{background:linear-gradient(145deg,#3b3249,#2c283a);border-color:#635472;box-shadow:0 4px 0 #211c2e;color:#ede0fc}html[data-theme=dark] .lx-mission.peach{background:linear-gradient(145deg,#493c29,#342e22);border-color:#685639;box-shadow:0 4px 0 #282115;color:#f4e2bd}html[data-theme=dark] .lx-mission.optional{background:linear-gradient(145deg,#29392e,#203026);border-color:#42553d;box-shadow:0 4px 0 #15251c;color:#c5d4b7}html[data-theme=dark] .lx-mission.done{border-color:#9bbe69;box-shadow:0 4px 0 #476038}html[data-theme=dark] .lx-mission.done .lx-mission-state{color:#dbf4b1}html[data-theme=dark] .lx-mission-cta{border-color:#d0e6ba28}
html[data-theme=dark] .lx-voyage{background:radial-gradient(ellipse at 78% 40%,#3c5133,#2b402b 40%,#223a2b 75%);border-color:#4a643d}html[data-theme=dark] .lx-voyage h2{color:#edf4df}html[data-theme=dark] .lx-voyage h2 em{color:#c9e69f}html[data-theme=dark] .lx-voyage p{color:#c0d1ad}html[data-theme=dark] .lx-live-tag{background:#1c302bbf;color:#d5eeb6;border-color:#5b7146}html[data-theme=dark] .lx-live-tag i{background:#caef8a}html[data-theme=dark] .lx-start{background:#a394ff;color:#183c2b;box-shadow:0 4px 0 #6f9244}html[data-theme=dark] .lx-start:hover{background:#d7ff91}html[data-theme=dark] .lx-voyage-action>span{color:#c1d5a7}html[data-theme=dark] .lx-world-label{background:#263d2bf0;border-color:#688155;color:#def0c4}
html[data-theme=dark] .lx-board-head>div>p:last-child{color:#afc29f}html[data-theme=dark] .lx-route-count{color:#d0edaa}html[data-theme=dark] .lx-route-count small{color:#a1b78e}html[data-theme=dark] .lx-map-scene::before{background:radial-gradient(ellipse,#5b794633,transparent 72%)}html[data-theme=dark] .lx-map-reward{background:#463c23;border-color:#75633a;color:#f7dd9a}html[data-theme=dark] .lx-map-legend{color:#bbccab}html[data-theme=dark] .lx-map-legend .lit{color:#d6eead}html[data-theme=dark] .lx-route-track{background:#30422c}html[data-theme=dark] .lx-route-track i{background:#b6de75}html[data-theme=dark] .lx-path-note{color:#b1c39e;border-color:#344b38}html[data-theme=dark] .lx-level-band strong{color:#d0eab0}html[data-theme=dark] .lx-level-band :is(small,span){color:#afc69a}html[data-theme=dark] .lx-level-meter{background:#33472d}html[data-theme=dark] .lx-level-meter i{background:#b6de75}html[data-theme=dark] .lx-level-link{color:#d3ebac}
html[data-theme=dark] .lx-rhythm-panel .text-btn{color:#c5dba8}html[data-theme=dark] .lx-goal-ring{background:conic-gradient(#b5dc79 var(--progress),#344a30 0)}html[data-theme=dark] .lx-goal-ring::before{background:#1c1c1c}html[data-theme=dark] .lx-goal-ring span{color:#e0f0c8}html[data-theme=dark] .lx-goal-ring small{color:#b9cba5}html[data-theme=dark] .lx-goal-display :is(strong,p){color:#c4d6b2}html[data-theme=dark] .lx-week span{background:#30412c}html[data-theme=dark] .lx-week i{background:#adc978}html[data-theme=dark] .lx-week :is(small,.today small){color:#c0d2aa}html[data-theme=dark] .lx-rhythm-note{color:#b1c29e}html[data-theme=dark] .lx-prize-panel{background:#343044;border-color:#514660}html[data-theme=dark] .lx-prize-panel h2{color:#eadcf6}html[data-theme=dark] .lx-prize-panel>p{color:#c9bed5}html[data-theme=dark] .lx-prize-heading>span:last-child{color:#c9bed5}html[data-theme=dark] .lx-prize-progress b{color:#dbc8ef}html[data-theme=dark] .lx-prize-panel .lx-meter{background:#534666}html[data-theme=dark] .lx-prize-panel .lx-meter i{background:#c9a4ee}html[data-theme=dark] .lx-prize-panel .text-btn{color:#dbc3f3}
html[data-theme=dark] .lx-destination.lavender{background:#373044;border-color:#514460;color:#ecdef7}html[data-theme=dark] .lx-destination.mint{background:#252525;border-color:#425d40;color:#d6ebc5}html[data-theme=dark] .lx-destination.peach{background:#423624;border-color:#625034;color:#f5dfb3}html[data-theme=dark] .lx-destination p{opacity:1;color:inherit}html[data-theme=dark] .lx-discover>header>span{color:#b4c7a5}html[data-theme=dark] :is(.lx-progress-legend,.lx-availability,.lx-motion-toggle){color:#abc29a}
/* Grammar, reading and games share these surfaces. Semantic feedback stays distinct. */
html[data-theme=dark] :is(.gs-compass,.gs-time-map,.gs-meaning-map,.gs-task-note,.gr-scene-links button,.de-quick button,.lx-video-entry,.arc-scope,.arc-preferences,.arc-categories button){background:#252525;border-color:#435a3e;color:#dddddd}html[data-theme=dark] #grammar-scene-workspace{--lx-bg:#0f0f0f;--lx-paper:#1c1c1c;--lx-ink:#f1f1f1;--lx-sub:#aaaaaa;--lx-line:#353535;--lx-soft:#252525;--lx-good:#a2da8e;--lx-lime:#a394ff;--lx-lime-ink:#20192e;--lx-process:#99d4ed;--lx-process-bg:#1d3d48;--lx-event:#f4c590;--lx-event-bg:#493723}html[data-theme=dark] :is(.gs-options button.correct,.feedback.correct,.de-feedback.correct){background:#2e482e;color:#d5eec3;border-color:#6b9855}html[data-theme=dark] :is(.gs-options button.wrong,.gs-feedback.retry,.feedback.wrong,.de-feedback.wrong){background:#4b3327;color:#f5d3b5;border-color:#9a6846}html[data-theme=dark] :is(.answer-option,.gr-option,.option,.de-option){background:#252525;color:#ededed;border-color:#4b6049}html[data-theme=dark] :is(.arc-categories button.active,.arc-scope button.active){background:#405d30;color:#e2f4c5}html[data-theme=dark] .lx-secondary-nav button{background:#252525;color:#d1e3c1}
@media(max-width:760px){html[data-theme=dark] #navigation{background:#181818;border-color:#42583b}html[data-theme=dark] .sidebar .nav-btn.active{background:#a394ff;color:#173829;box-shadow:none}}
/* Legacy module cards remain readable when navigating away from Today. */
html[data-theme=dark] :is(.j-week,.j-quest,.j-badge,.j-medal,.j-theme,.j-records>section,.j-runbar,.lab-home,.lab-text-card,.lab-practice-card,.lab-progress-card,.lab-passage,.lab-support,.lab-question,.lab-finish,.lab-source-card,.lab-journal,.lab-stat-grid>div,.lab-skill-card,.lab-research article,.arc-empty,.arc-invite,.arc-board,.arc-swipe-card,.arc-match-tile,.arc-memory .wp-memory-cards div,.gr-home,.gr-shortcut,.gr-topic,.gr-game,.gr-test,.gr-exam,.gr-mixed-call,.gr-learning,.gr-work,.gr-learn-side,.gr-question,.gr-result,.gr-stats section,.gr-text-intro,.gr-contrast){background:#1c1c1c;color:#ededed;border-color:#353535}
html[data-theme=dark] :is(.j-week,.j-quest,.j-badge,.j-theme,.j-records,.lab-home,.lab-text-card,.lab-progress-card,.lab-passage,.lab-question,.lab-finish,.lab-source-card,.lab-journal,.lab-stat-grid,.lab-skill-card,.lab-research,.arc-empty,.arc-invite,.arc-board,.arc-swipe-card,.gr-home,.gr-shortcut,.gr-topic,.gr-game,.gr-test,.gr-exam,.gr-mixed-call,.gr-learning,.gr-work,.gr-learn-side,.gr-question,.gr-result,.gr-stats,.gr-text-intro,.gr-contrast) :is(h2,h3,p,small,blockquote,label){color:#bbbbbb}
html[data-theme=dark] :is(.lab-intro,.lab-note,.lab-reading-goal,.lab-evidence-pick,.lab-hidden-text,.lab-model,.gr-formula,.gr-intent,.gr-hint,.gr-coverage,.gr-context-title){background:#252525;color:#dddddd;border-color:#49613e}
html[data-theme=dark] :is(.lab-option,.lab-tools button,.lab-support-actions button,.lab-confidence button,.lab-evidence-numbers button,.gr-tab,.gr-option,.arc-options .option,.arc-options .letter,.arc-auto-controls button,.j-focus button){background:#252525;color:#ededed;border-color:#435b3d}
html[data-theme=dark] :is(.j-quest.claimed,.j-badge.pinned,.lab-option.correct,.lab-sentence.evidence,.lab-feedback,.arc-options .correct,.arc-feedback,.arc-board .wp-link.correct,.arc-match-tile.matched,.gr-option.right,.gr-feedback,.gs-feedback,.gr-result-icon){background:#304b2e;color:#daf0bd;border-color:#618d46}
html[data-theme=dark] :is(.lab-option.incorrect,.lab-feedback.needs-work,.arc-options .incorrect,.arc-feedback.needs-work,.arc-board .wp-link.incorrect,.gr-option.wrong,.gr-feedback.is-wrong){background:#4a3327;color:#f2d2af;border-color:#9b704c}
html[data-theme=dark] :is(.lab-option.selected,.gr-option.selected,.arc-match-tile.selected){background:#364e32;border-color:#a0c875;color:#edffdb}
html[data-theme=dark] :is(.j-week-days span,.lab-chip,.lab-sentence-number,.gr-chip,.gr-blank,.gr-option>span,.j-reward-chip,.j-light-total,.arc-preferences>div>button){background:#2b412e;color:#cde3b9;border-color:#4c6341}
html[data-theme=dark] :is(.j-week-days span.done,.j-quest.claimed>button){background:#a394ff;color:#20192e}html[data-theme=dark] .j-quest.claimed>button{border-color:#a0c875}
html[data-theme=dark] :is(.gr-meter,.j-meter,.lab-session-progress,.lab-skill-meter,.arc-card-track){background:#303030}html[data-theme=dark] .j-star small{background:#20372a;color:#dae9c9}
html[data-theme=dark] :is(.lab-home,.lab-text-card,.lab-question,.lab-source-card,.gr-topic,.gr-question,.gr-home,.arc-card) :is(strong,span){color:inherit}
html[data-theme=dark] :is(.gr-text-meta,.gr-text-preview,.gr-text-targets>span,.de-card blockquote,.de-word p,.de-word small){color:#aaaaaa}html[data-theme=dark] .gr-text-targets>span{background:#252525}
html[data-theme=dark] #grammar-scene-workspace{color-scheme:dark;--lx-good-bg:#2b432d;--lx-error:#f6baa3;--lx-error-bg:#4a3027}
html[data-theme=dark] .lab-tab{background:#252525;color:#d3e5c1;border-color:#43583d}html[data-theme=dark] .lab-tab.active{background:#a394ff;color:#20192e}html[data-theme=dark] :is(.lab-kicker,.lab-passage footer,.lab-passage footer small){color:#b2cbb1}html[data-theme=dark] .lab-flow span{color:#b4c8b0}html[data-theme=dark] .lab-flow span:first-child{color:#d4edac}
/* Exam routes and the shared quick-learning lesson templates. */
html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root){--ink:#f1f1f1;--muted:#aaaaaa;--green:#a3d48b;--lime:#a394ff;--paper:#0f0f0f;--line:#353535;--bad:#f1b39c;color:#f1f1f1;background:#0f0f0f}
html[data-theme=dark] :is(.yds-hub-nav,.yds-launch,.yds-launch-questions,.yds-launch-mocks,.ex-skill-card,.ex-route,.ex-area,.ex-badge,.ex-weight,.ex-growth,.ex-exam-map,.mx-ready,.mx-feature,.ex-quick-learn,.yds-tense-learn,.yds-modals-learn,.yds-voice-learn,.yds-preposition-learn,.yds-conditionals-learn){background:#1c1c1c;border-color:#353535;color:#ededed}
html[data-theme=dark] :is(.yds-hub-nav,.yds-launch,.ex-skill-card,.ex-route,.ex-area,.ex-badge,.ex-growth,.ex-exam-map,.mx-ready,.mx-feature) :is(h2,h3,p,small,span){color:#aaaaaa}html[data-theme=dark] .yds-hub-nav button.active{background:#a394ff;color:#20192e}html[data-theme=dark] .yds-hub-nav button{color:#cbdfba}
html[data-theme=dark] :is(.ex-option,.ex-quick button,.ex-gap,.ex-index,.mx-count,.mx-pills span,.yds-method-weights span){background:#252525;color:#ededed;border-color:#4a6241}html[data-theme=dark] .ex-option b{background:#3f5635;color:#e0f1c5}html[data-theme=dark] :is(.ex-option.correct,.ex-feedback,.ex-area.ready,.ex-badge.earned){background:#304e2c;color:#dbefbe;border-color:#6e9455}html[data-theme=dark] :is(.ex-option.incorrect,.ex-feedback.incorrect){background:#4c3328;color:#f4d3b4;border-color:#9c7151}html[data-theme=dark] .ex-option.selected{background:#3a5632;color:#e7f7d1}html[data-theme=dark] .ex-meter{background:#303030}
html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root) :is(.hero,.tabs button,.stat,.routecard,.coursebox,.pair,.entry,.form,.choice,.refs,.empty,.testbox,.reviewcard,.scorelist div,.resetbox,.rail summary,.railbody,.miniinfo,.loadingbox){background:#1c1c1c;color:#ededed;border-color:#41573e}
html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root) :is(h1,h2,h3,p,small,label){color:inherit}html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root) :is(.trap,.celebrate){background:#443823;color:#efd7a8;border-color:#6b5735}html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root) :is(.feedback,.choice.correct){background:#2e472c;color:#e0f0c4;border-color:#6b8b50}html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root) :is(.feedback.bad,.choice.wrong){background:#4b3126;color:#f1d2b6;border-color:#9c704a}html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root) :is(.choice.picked,.steps .on,.routeitem.on){background:#3a542f;color:#e5f4cf;border-color:#81a85c}html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root) .primary{background:#a394ff;color:#20192e}html[data-theme=dark] :is(.yc-root,.yp-root,.yt-root,.yv-root,.ym-root,.yk-root) :is(.tabs button.on,.questionnav .answered){background:#324b2a;color:#dff1c5}
html[data-theme=dark] :is(.yt-answer,.yp-answer,.yv-answer,.ym-answer,.yk-answer,.yt-chip,.yp-chip,.yv-chip,.ym-chip,.yk-chip,.yt-context,.yp-context,.yv-context,.ym-context,.yk-context,.yt-timeline,.yv-timeline,.ym-timeline,.yk-timeline){background:#252525;color:#dddddd;border-color:#4a6040}
html[data-theme=dark] .gs-studio{--gs-ink:#f1f1f1;--gs-green:#afd59d;--gs-purple:#d5bbed}html[data-theme=dark] .gs-feedback p{color:#cee1c1}
