/* Reading surfaces share clean warm paper; semantic feedback keeps its own contrast. */
html[data-color-theme=light]{color-scheme:light;--bg:#faf7f2;--card:#faf7f2;--text:#303833;--muted:#596156;--line:#d4d0c8;--accent:#3d6351;--purple:#604e71;--warm:#8d4a2e;--soft:#f0eae2;--panel-fill:#faf7f2;--panel-stroke:#d4d0c8;--panel-shadow:0 10px 30px #40334c08;--surface:#faf7f2;--paper:#faf7f2;--ink:#303833;--blue:#604e71;--blue-soft:#604e7110;--green:#3d6351;--green-soft:#3d635110;--amber:#8d4a2e;--amber-soft:#8d4a2e10;--shadow:0 10px 32px #40334c10}
html[data-color-theme] .ambient{background:var(--ambient)}
html[data-color-theme] :is(#menu,#profile,#memory-editor,.home-picker-menu,.auth-panel){background:var(--paper);border-color:var(--panel-stroke);box-shadow:0 20px 70px #3d304b22}
html[data-color-theme] dialog::backdrop{background:var(--backdrop)}
html[data-color-theme] :is(.home-picker,.subject-switch,.picker-subjects,.picker-modes,.memory-filter,.memory-ribbon,.module-chip,.menu-section,.settings-group,.preference-options,.question-map-toolbar,.map-filters,.map-preview,.map-cell){background:var(--header);border-color:var(--line);color:var(--text);box-shadow:none}
html[data-color-theme] :is(.option,.memory-options .option){background:var(--paper);border-color:var(--line);color:var(--text);box-shadow:none}
html[data-color-theme] .option:hover:enabled{background:#dcd7df;border-color:var(--purple)}
html[data-color-theme] .option.selected{background:var(--select-fill);border-color:var(--purple)}
html[data-color-theme] :is(.option .letter,.memory-options .letter){color:var(--muted);border-color:var(--line);background:transparent}
html[data-color-theme] .option.selected:not(.right):not(.wrong) .letter{background:var(--purple);border-color:var(--purple);color:var(--on-primary)}
html[data-color-theme] :is(.option.right,.memory-options .option.right){border-color:var(--success);background:var(--success-fill);color:var(--text);box-shadow:inset 3px 0 var(--accent)}
html[data-color-theme] .option.right .letter{background:var(--accent);border-color:var(--accent);color:var(--on-primary)}
html[data-color-theme] :is(.option.wrong,.memory-options .option.wrong){background:var(--error-fill);border-color:var(--line);color:var(--text)}
html[data-color-theme] :is(.option.wrong .letter,.option.wrong .mark){color:var(--warm)}
html[data-color-theme] :is(.material,.knowledge-panel,.knowledge-node,.knowledge-source,.knowledge-branch,.knowledge-preview,.memory-answer,.calendar-detail,.profile-section,.pace-matrix,.memory-empty,.auth-tile,.exam-review){background:var(--panel-fill);border-color:var(--panel-stroke);color:var(--text);box-shadow:none}
html[data-color-theme] :is(.material .rich,.rich,.feedback summary,.response-coach,.preference-preview,.menu-section>summary strong,.sheet-head strong,.study-links strong,.question-title,#topic,.calendar-period,.profile-heading,.knowledge-panel>summary,.knowledge-content,.knowledge-content summary,.auth-field label,.auth-brand,.auth-panel h1){color:var(--text)}
html[data-color-theme] :is(.fineprint,.source,.menu-section>summary small,.preference-content legend,.study-links small,.letter,.subject-caption,.calendar-legend,.profile-caption){color:var(--muted)}
html[data-color-theme] :is(.rich td,.rich th){border-color:var(--line)}
/* Formula bitmaps contain dark ink; screen/invert is only readable at night. */
html[data-color-theme=light] .rich img.formula-image{filter:none;mix-blend-mode:multiply}
html[data-color-theme] :is(.controls,.reading .study-layout>.controls){background:transparent}
html[data-color-theme] .reading #review{background:var(--paper);border-color:var(--line)}
html[data-color-theme] :is(.reading .outcome,.reading .outcome[data-signature=reflect]){background:var(--header);border-color:var(--line);box-shadow:none}
html[data-color-theme] :is(.primary,.question-continue,.memory-continue,.memory-ratings .primary,.auth-submit,.authored-report-primary){color:var(--on-primary);background:var(--accent);border-color:transparent;box-shadow:none}
html[data-color-theme] :is(.next-button,.next-button:hover:enabled){background:var(--purple);color:var(--on-primary);box-shadow:none}
html[data-color-theme] :is(.secondary,.icon-button,.subtle,.preference-options button,.subject-switch button,.picker-subjects button,.picker-modes a,.module-chip,.memory-filter button){color:var(--muted)}
html[data-color-theme] :is(.preference-options button[aria-pressed=true],.subject-switch button[aria-pressed=true],.picker-subjects button[aria-pressed=true],.picker-modes a[aria-current=page],.module-chip[aria-pressed=true],.memory-filter button[aria-pressed=true]){color:var(--purple);background:var(--select-fill);border-color:var(--line);box-shadow:none}
html[data-color-theme] :is(.menu-review,.preference-preview,.menu-section[open]){background:var(--paper);border-color:var(--line)}
html[data-color-theme] :is(input,select,textarea,.auth-field input,.vocabulary-settings input,.vocabulary-settings select){background:var(--paper);color:var(--text);border-color:var(--line)}
html[data-color-theme] :is(.notice,.position-conflict){background:var(--paper);color:var(--text);border-color:var(--purple);box-shadow:0 12px 36px color-mix(in srgb,var(--text) 10%,transparent)}
html[data-color-theme] :is(.reward,.reward[data-strength="3"]){background:var(--success-fill);color:var(--accent)}
html[data-color-theme] .reward[data-strength="0"]{background:#d8cfde;color:var(--text)}
html[data-color-theme] .outcome[data-expression=care] strong{color:var(--care)}
html[data-color-theme] .response-detail{color:var(--muted)}
html[data-color-theme] :is(.calendar-day,.range-switch,.profile-jumps button,.map-card,.map-preview-question,.map-empty){background:var(--header);color:var(--text);border-color:var(--line)}
html[data-color-theme] :is(.calendar-day[data-level="1"],.calendar-day[data-level="2"]){background:var(--select-fill);color:var(--text)}
html[data-color-theme] :is(.calendar-day[data-level="3"],.calendar-day[data-level="4"]){background:var(--select-fill);color:var(--text)}
html[data-color-theme] .calendar-day[data-level="5"]{background:var(--purple);color:var(--on-primary)}
html[data-color-theme] :is(.auth-orbit,.auth-tile){border-color:var(--line);color:var(--purple)}
html[data-color-theme] .auth-glow{opacity:.3}
html[data-color-theme].embedded-tool :is(.panel,.arena,.coach-card,.curtain-card,.stat,.coach-box,.material-block,.datum,.trend,.stats-section){background:var(--panel-fill);border-color:var(--line);color:var(--ink)}
html[data-color-theme].embedded-tool :is(.mobile-tabs,.curtain){background:var(--bg);color:var(--ink)}
html[data-color-theme].embedded-tool :is(.btn-primary,.primary,.next){background:var(--green);color:var(--on-primary);box-shadow:none}
html[data-color-theme].embedded-tool .tab.is-active{background:var(--select-fill);color:var(--purple)}
html[data-color-theme] #home-navigation,html[data-color-theme] #memory>.sheet-head{background:color-mix(in srgb,var(--bg) 94%,transparent);border-color:var(--line)}

/* Reading paper and report bands carry the hierarchy without a white page wash. */
html[data-color-theme] :is(.question-card,.memory-card,#memory.vocabulary-flow .vocabulary-card){background:var(--paper);border-color:var(--panel-stroke);box-shadow:0 8px 28px color-mix(in srgb,var(--text) 4%,transparent)}
html[data-color-theme] :is(.question-card,.memory-card)::before{height:3px;background:var(--purple);box-shadow:none}
html[data-color-theme] :is(.option,.memory-card .memory-options .option,#memory.vocabulary-flow .memory-options .option){background:var(--day-option-fill,var(--paper));border-color:var(--day-option-stroke,var(--line));box-shadow:var(--day-option-shadow,none)}
html[data-color-theme] .option:hover:enabled{--day-option-fill:var(--soft);--day-option-stroke:var(--purple)}
html[data-color-theme] .option.selected,html[data-color-theme] .option.selected:hover:enabled{--day-option-fill:var(--select-fill);--day-option-stroke:var(--line);--day-option-shadow:inset 3px 0 var(--purple)}
html[data-color-theme] .option.right{--day-option-fill:var(--success-fill);--day-option-stroke:var(--success);--day-option-shadow:inset 3px 0 var(--accent)}
html[data-color-theme] .option.wrong{--day-option-fill:var(--error-fill);--day-option-stroke:var(--line);--day-option-shadow:inset 3px 0 var(--warm)}
html[data-color-theme] :is(#home-navigation,#memory>.sheet-head,#profile .sheet-head){background:var(--header);border-color:var(--line)}
html[data-color-theme] .home-picker{background:var(--header);border-color:var(--line);box-shadow:0 1px 2px color-mix(in srgb,var(--text) 4%,transparent)}
html[data-color-theme] :is(.profile-overview,.insight-section,.memory-answer,#memory.vocabulary-flow .vocabulary-review){background:var(--panel-fill);border-color:var(--panel-stroke);box-shadow:none}
html[data-color-theme] :is(.calendar-detail b,.calendar-detail>strong,.pace-total b,.pace-values,.calendar-scale-label,.overview-metric strong,.profile-overview strong,.vocabulary-card>.eyebrow){color:var(--text)}
html[data-color-theme] :is(.pace-correct,.pace-matrix td,.pace-matrix th){color:var(--text)}
html[data-color-theme] .pace-wrong{color:var(--purple)}
html[data-color-theme] .pace-fill.pace-correct{background:var(--accent)}
html[data-color-theme] .pace-fill.pace-wrong{background:var(--purple)}
html[data-color-theme] .calendar-scale-ramp{background:linear-gradient(90deg,var(--header),var(--accent))}
html[data-color-theme] .calendar-day[data-empty=true] :is(.calendar-date,.calendar-count){color:var(--muted)}
html[data-color-theme] #exam-mode{max-width:820px;background:var(--bg);border-inline:1px solid var(--line);padding-top:24px}
html[data-color-theme] .exam-heading{padding:0 0 18px;border-bottom:1px solid var(--line)}
html[data-color-theme] .exam-heading .eyebrow{display:flex;align-items:center;gap:12px;font-size:12px}
html[data-color-theme] .exam-heading .eyebrow::before{content:'';width:23px;height:3px;background:var(--purple);border-radius:2px}
html[data-color-theme] .exam-heading h1{margin:14px 0 9px;letter-spacing:.025em}
html[data-color-theme] .exam-heading .fineprint{margin-bottom:0}
html[data-color-theme] .exam-toolbar{padding-top:16px;border-bottom:0}
html[data-color-theme] .exam-question{background:var(--paper);padding:24px;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 20px color-mix(in srgb,var(--text) 3%,transparent)}
html[data-color-theme] .exam-question>.question-title{color:var(--purple);font-size:12px;letter-spacing:.04em;margin-top:0}
html[data-color-theme] .exam-sheet{margin-bottom:20px;border-color:var(--line)}
html[data-color-theme] .exam-intro{padding:28px 0 24px;border-bottom:1px solid var(--line);margin-top:12px}
html[data-color-theme] .exam-score{margin:24px 0 0;padding:26px 28px;background:var(--score-fill);border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0;gap:22px}
html[data-color-theme] .exam-score strong{font-size:72px;letter-spacing:-.035em;color:var(--accent)}
html[data-color-theme] .exam-score span{color:var(--muted)}
html[data-color-theme] .exam-metrics{padding:21px 28px;background:var(--score-soft);border:1px solid var(--line);border-top:1px solid var(--line);border-radius:0 0 18px 18px;gap:16px}
html[data-color-theme] .exam-metrics>div+div{border-left:1px solid var(--line);padding-left:18px}
html[data-color-theme] .exam-metrics strong{font-size:23px;color:var(--text)}
html[data-color-theme] .exam-result-row{padding-block:16px;transition:background-color .15s}
html[data-color-theme] .exam-result-row:hover{background:var(--header)}
html[data-color-theme] .exam-result-row>b{font-size:13px;color:var(--purple)}
html[data-color-theme] .exam-time-track{height:5px;background:var(--line)}
html[data-color-theme] :is(button,a,input,select,summary):focus-visible{outline-color:var(--purple)}
@media(max-width:600px){html[data-color-theme] #exam-mode{padding-top:19px;border-inline:0}html[data-color-theme] .exam-question{padding:20px 16px;margin-inline:-5px;border-radius:13px}html[data-color-theme] .exam-score{padding:22px 20px;gap:12px}html[data-color-theme] .exam-score strong{font-size:60px}html[data-color-theme] .exam-metrics{padding:20px;gap:20px 12px}html[data-color-theme] .exam-metrics>div+div{padding-left:14px}html[data-color-theme] .exam-metrics>div:nth-child(3){border-left:0;padding-left:0}}
@media(prefers-reduced-motion:reduce){html[data-color-theme] .exam-result-row{transition:none}}

html[data-color-theme] *{scrollbar-color:var(--scroll-thumb) var(--bg)}
@media(min-width:760px){html[data-color-theme] .exam-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:20px}html[data-color-theme] .exam-heading .eyebrow{grid-column:1/-1}html[data-color-theme] .exam-heading .fineprint{margin:0;text-align:right}html[data-color-theme] .exam-heading h1{font-size:27px}}

html[data-color-theme] #menu-preferences>#data-settings{background:var(--soft);border-color:var(--line)}
html[data-color-theme] :is(.menu-review-metrics strong,.menu-review-content strong,.menu-review-note,.menu-review-note strong,.profile-today strong,.insight-heading h2,.focus-row strong,.review-evidence strong){color:var(--text)}
html[data-color-theme] :is(.menu-review-metrics span,.menu-review-note,.module-selection .eyebrow,.preference-content legend){color:var(--muted)}
html[data-color-theme] :is(.overview-metric small,.profile-empty,.stats-caution,.pace-reading,.focus-advice){color:var(--muted)}
html[data-color-theme] :is(.module-line b,.review-evidence .module-line b,#profile .chart-count){color:var(--text)}
html[data-color-theme] :is(.range-switch button[aria-pressed=true],.focus-tag){background:var(--select-fill);color:var(--purple)}
html[data-color-theme] .focus-row[data-lane=fluency] .focus-tag{background:var(--success-fill);color:var(--accent)}
html[data-color-theme] .calendar-day[aria-pressed=true]{outline-color:var(--purple)}
html[data-color-theme] .calendar-day.today{border-color:var(--purple)}
html[data-color-theme] :is(.action-row .icon-button:not(.next-button),.review-button){color:var(--muted);border-color:var(--line);background:var(--header)}
html[data-color-theme] .review-button[aria-pressed=true]{color:var(--purple);border-color:var(--line);background:var(--select-fill)}
html[data-color-theme] .outcome[data-expression]{--response-color:var(--success)}
html[data-color-theme] .outcome[data-expression=care]{--response-color:var(--care)}
html[data-color-theme] :is(.outcome small,.exercise-cue,.question-meta){color:var(--muted)}
html[data-color-theme] .evidence-grid strong{color:var(--purple)}

html[data-color-theme] .pace-accuracy{color:var(--muted)}
html[data-color-theme] .map-cell[data-status=correct]{background:var(--success-fill);border-color:var(--line);color:var(--accent)}
html[data-color-theme] .map-cell[data-status=weak]{background:var(--select-fill);border-color:var(--line);color:var(--purple)}
html[data-color-theme] .map-cell[data-status=unseen]{background:var(--paper);border-color:var(--line);color:var(--muted)}
html[data-color-theme] #memory .vocabulary-lookup .memory-filter button{background:var(--paper);color:var(--muted);border-color:var(--line)}html[data-color-theme] #memory .vocabulary-lookup .memory-filter button[aria-pressed=true]{background:var(--select-fill);color:var(--purple);border-color:var(--line)}

/* One palette owns all sticky surfaces. No inherited night bands in lighter modes. */
html[data-color-theme] :is(#home-navigation,.home-navigation,.session-strip,#memory>.sheet-head,#profile>.sheet-head,#knowledge-review>.sheet-head,#menu>.sheet-head,.menu-footer,.memory-editor-footer,.exam-run-head,.exam-dock.exam-actions){background:var(--header);color:var(--text);border-color:var(--line);box-shadow:none}
html[data-color-theme] :is(#menu,#profile,#memory-editor,.home-picker-menu,dialog.fenbi-comment-sheet,.exam-answer-sheet){background:var(--paper);color:var(--text);border-color:var(--line)}
html[data-color-theme] :is(.memory-actions,#memory.vocabulary-flow .memory-actions){background:var(--paper);border-color:var(--line)}
html[data-color-theme] :is(.memory-queue button,.memory-filter button,.preference-options,.preference-preview,.home-picker,.subject-switch,.settings-group,#menu-preferences>#data-settings,#tools .tool-tabs){background:var(--header);color:var(--text);border-color:var(--line)}
html[data-color-theme] :is(.memory-queue button[aria-pressed=true],.memory-filter button[aria-pressed=true],.preference-options button[aria-pressed=true],.picker-modes a[aria-current=page]){background:var(--select-fill);color:var(--text);border-color:var(--purple)}
html[data-color-theme] :is(.primary,.question-continue,.memory-continue,.memory-ratings .primary,.auth-submit,.authored-report-primary,.next-button){background:var(--primary-fill);color:var(--on-primary);border-color:transparent}
html[data-color-theme] :is(.next-button:not(.answered),.next-button:not(.answered):hover:enabled){background:var(--next-fill);color:var(--on-next)}
html[data-color-theme] :is(.next-button.answered,.next-button.answered:hover:enabled){background:var(--primary-fill);color:var(--on-primary)}
html[data-color-theme] :is(.knowledge-group,.knowledge-provenance,.study-branch,.study-original,.study-gap,.study-boundaries,.study-note,.study-context,.knowledge-connection,.knowledge-question-focus,.memory-excerpt,.course-options>p,.course-exam-entry){background:var(--paper);color:var(--text);border-color:var(--line)}
html[data-color-theme] :is(.study-search input,#memory-form textarea,.vocabulary-settings input,.vocabulary-settings select){background:var(--paper);color:var(--text);border-color:var(--line)}
html[data-color-theme] :is(.memory-answer .memory-contrast,.course-point-cue,.course-flow,.course-contrast>strong,.course-exam-entry,.course-options>p,.course-answer,.course-warning,.knowledge-concept-cue){color:var(--text)!important}
html[data-color-theme] :is(.exam-score strong,.exam-score span,.exam-metrics strong){color:var(--text)}
html[data-color-theme] .exam-score{background:var(--score-fill)}
html[data-color-theme] .exam-metrics{background:var(--score-soft)}
html[data-color-theme] .exam-score *,html[data-color-theme] .exam-metrics *{color:var(--text)}
html[data-color-theme] .exam-error,html[data-color-theme] .startup-loading[data-state=failed]{background:var(--error-fill);color:var(--text);border-color:var(--line)}
html[data-color-theme] .exam-time-track{background:var(--line)}
html[data-color-theme] .continue-pull{background:var(--paper);color:var(--text)}
html[data-color-theme] dialog::backdrop{background:var(--backdrop)}
html[data-color-theme] *{scrollbar-color:var(--scroll-thumb) transparent;scrollbar-width:thin}
html[data-color-theme] ::-webkit-scrollbar{width:6px;height:6px}
html[data-color-theme] ::-webkit-scrollbar-track{background:transparent}
html[data-color-theme] ::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:1px solid var(--paper);border-radius:6px}
html[data-color-theme] .ambient::after{background:none}
html[data-theme=solar] :is(body,.topbar,#home-navigation,.session-strip,.question-card,.memory-card,#menu,#profile,#memory-editor,.exam-run-head,.exam-dock){transition:none}
[data-preference=theme]{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-status{font-size:12px;line-height:1.8;margin:-2px 0 18px}
@media(prefers-reduced-motion:reduce){html[data-theme=solar] :is(body,.topbar,#home-navigation,.session-strip,.question-card,.memory-card,#menu,#profile,#memory-editor,.exam-run-head,.exam-dock){transition:none}}

html[data-color-theme] .menu-review-head button{color:var(--purple)}

/* These study controls used night-only text colors, which disappear in daylight. */
html[data-color-theme=light] :is(.study-map-chip,.study-library-link,.study-branch>summary,.study-original>summary,.study-gap>summary,.study-boundaries>summary,.knowledge-cards>summary,.knowledge-source-choice,.knowledge-image-link,.study-boundaries a){color:var(--purple)}
html[data-color-theme=light] :is(.study-system h3,.study-note h4,.knowledge-sources h5,.knowledge-connections h5,.knowledge-connections h3){color:var(--text)}
html[data-color-theme=light] :is(.study-theme span,.study-cue,.study-note strong,.knowledge-cards button small){color:var(--muted)}
html[data-color-theme=light] :is(.study-map-chip,.knowledge-source-choice){background:var(--soft);border-color:var(--line)}
html[data-color-theme=light] .knowledge-source-choice[aria-pressed=true]{background:var(--select-fill);border-color:var(--purple);color:var(--text)}
html[data-color-theme=light] #profile-button{color:var(--purple)}

/* Active controls must read as actions, not disabled captions. */
html[data-color-theme] :is(.secondary,.subtle,.home-picker,.preference-options button,.module-chip){color:var(--text)}
html[data-color-theme] .source :is(summary,p){opacity:1}
html[data-color-theme] .option.selected:not(.right):not(.wrong) .letter{background:var(--next-fill);color:var(--on-next)}
@media(max-width:760px){html[data-color-theme] #home-navigation .home-picker{border-color:transparent;box-shadow:none}#home-picker>span{font-size:14px}}

/* One reading sheet from material through explanation; actions stay outside the prose. */
html[data-color-theme] #feed .study-layout{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:28px 32px;box-shadow:none}
html[data-color-theme] #feed .question-card{margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
html[data-color-theme] #feed .question-card::before{display:none}
html[data-color-theme] #feed .material{margin:20px 0 26px;padding:0 0 18px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
html[data-color-theme] #feed .material>summary{min-height:44px;padding:8px 0;color:var(--muted)}
html[data-color-theme] #feed .material>.rich{padding:0;margin-top:8px;color:var(--text)}
html[data-color-theme] #feed .option{border-width:1px;border-radius:12px;padding:16px 18px;min-height:52px}
html[data-color-theme] #feed .study-layout>.controls{margin-top:20px;padding:0;background:transparent}
html[data-color-theme] #feed .outcome{background:transparent;border:0;border-radius:0;padding:8px 0;box-shadow:none}
html[data-color-theme] #feed #review:not(:empty){margin:22px 0 0;padding:20px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
html[data-color-theme] #feed #review .solution{margin:0;padding:0;border:0;border-radius:0;background:transparent}
html[data-color-theme] #feed #review .solution>summary{margin:0 0 12px;padding:8px 0;min-height:44px;color:var(--text)}
#feed .review-navigation{display:flex;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
#feed .review-navigation[hidden]{display:none}
#feed #review-next{display:flex;align-items:center;justify-content:center;gap:10px;min-width:148px;min-height:48px;margin:0}
#feed #review-next svg{width:18px;height:18px}
@media(max-width:760px){
 html[data-color-theme] #feed .reading{padding:18px 16px 28px;background:var(--paper)}
 html[data-color-theme] #feed .study-layout{border:0;border-radius:0;padding:0}
 html[data-color-theme] #feed .material{margin-top:14px}
 html[data-color-theme] #feed .option{padding:14px 12px}
 #feed #review-next{width:100%}
}
/* Browser-saved credentials must follow the current reading palette too. */
html[data-color-theme] .auth-field input:autofill{color:var(--text);background:var(--paper)}
html[data-color-theme] .auth-field input:-webkit-autofill{-webkit-text-fill-color:var(--text);box-shadow:0 0 0 1000px var(--paper) inset;caret-color:var(--text)}

/* Opaque reading surfaces. Transient answer impacts keep their original motion. */
html[data-color-theme] .ambient,html[data-color-theme] .ambient::after,html[data-color-theme] .exam-presentation::before{display:none!important}
html[data-color-theme] :is(.study-overview,.study-theme,.study-branch,.study-note,.study-original,.knowledge-panel,.knowledge-group,.knowledge-provenance,.knowledge-connection,.course-contrasts,.course-method,.course-variation,.course-options>p,.profile-overview,.insight-section,.menu-review,.fenbi-media,.preference-preview,.vocabulary-card,.map-preview,.question-card){background:var(--paper);background-image:none;box-shadow:none;border-color:var(--line)}
html[data-color-theme] :is(dialog,#menu,#profile,#memory-editor,#tools,.home-picker-menu,.fenbi-comment-sheet){background:var(--paper);background-image:none;box-shadow:none}
html[data-color-theme] :is(.app-header,.session-strip,#home-navigation,#knowledge-review>.sheet-head,#memory>.sheet-head,.exam-dock,.controls){background:var(--header);background-image:none;backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-color-theme] .secondary{background:var(--soft);background-image:none;color:var(--text);border-color:var(--line);box-shadow:none}
html[data-color-theme] :is(.module-chip[aria-pressed=true],.menu-section[open],.practice-entry>a){background:var(--soft);background-image:none}
html[data-color-theme] :is(.primary,.next-button.answered,.reward){background:var(--primary-fill);background-image:none;color:var(--on-primary);box-shadow:none}
html[data-color-theme] :is(dialog,.fenbi-comment-sheet)::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-color-theme] .is-switching .reading{opacity:1;filter:none}
