.theme-toggle{padding:10px 14px;min-height:44px;border:1px solid var(--gold,#b99764);background:transparent;color:inherit;font:12px Tahoma;cursor:pointer}.theme-toggle:focus-visible{outline:2px solid #b99764;outline-offset:3px}
:root[data-theme=dark]{color-scheme:dark;--ink:#e8ede7;--paper:#102122;--line:#405352;--gold:#d2b37e}
:root[data-theme=dark] body{--paper:#102122;--ink:#e8ede7;--gold:#d2b37e;--line:#627a76;background:var(--paper);color:var(--ink)}
:root[data-theme=dark] :is(.legal-card,.pick-card,.law-entry,.law-hit,.tech-panel,.prompt-work,.quick-links a,.scoreboard,.saved-item,.checklist,.search-result,.live-score,.ambient-controls,.legal-note,.example,.strip,.service-card,.helper-section,.guide-excerpt,.task-card,#link-result){background:#1b3031!important;color:#e8ede7!important;border-color:#405352}
:root[data-theme=dark] :is(input:not([type=radio]):not([type=checkbox]),textarea,select,button){background:#172c2d!important;color:#edf2eb!important;border-color:#7b8c80!important}
:root[data-theme=dark] :is(p,small,label,.fine,.intro,.body-copy,.legal-intro,.english,.source,.pick-kind,.legal-category,.label,.ratio-table){color:#cbd7cc!important}
:root[data-theme=dark] a{color:#e0c18a}:root[data-theme=dark] .button{background:#1b4444;color:#fff}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=dark]){color-scheme:dark;--ink:#e8ede7;--paper:#102122;--line:#405352;--gold:#d2b37e}html:not([data-theme=light]):not([data-theme=dark]) body{--paper:#102122;--ink:#e8ede7;--gold:#d2b37e;--line:#627a76;background:var(--paper);color:var(--ink)}html:not([data-theme=light]):not([data-theme=dark]) :is(.legal-card,.pick-card,.law-entry,.law-hit,.tech-panel,.prompt-work,.quick-links a,.scoreboard,.saved-item,.checklist,.search-result,.live-score,.ambient-controls,.legal-note,.example,.strip,.service-card,.helper-section,.guide-excerpt,.task-card,#link-result){background:#1b3031!important;color:#e8ede7!important}html:not([data-theme=light]):not([data-theme=dark]) :is(input:not([type=radio]):not([type=checkbox]),textarea,select,button){background:#172c2d!important;color:#edf2eb!important}html:not([data-theme=light]):not([data-theme=dark]) :is(p,small,label,.fine,.intro,.body-copy,.legal-intro,.english,.source,.pick-kind,.legal-category,.label){color:#cbd7cc!important}html:not([data-theme=light]):not([data-theme=dark]) a{color:#e0c18a}}

:root[data-theme=dark] .brand-logo{filter:brightness(0) invert(1)}@media(prefers-color-scheme:dark){html:not([data-theme=light]):not([data-theme=dark]) .brand-logo{filter:brightness(0) invert(1)}}

/* Pair field colors with their actual background, including local tool palettes. */
:root{--readable-muted:#465850;--readable-accent:#765224;--readable-field:#fffdf7}
:root[data-theme=dark]{--readable-muted:#cbd7cc;--readable-accent:#e0c18a;--readable-field:#172c2d}
@media(prefers-color-scheme:dark){
  :root:not([data-theme=light]){--readable-muted:#cbd7cc;--readable-accent:#e0c18a;--readable-field:#172c2d}
}
body :is(.eyebrow,.legal-category,.pick-kind,.proof-layout legend){color:var(--readable-accent)}
body :is(.fine,.proof-note,.hint,.intro p,footer){color:var(--readable-muted)}
:where(input,textarea)::placeholder{color:var(--readable-muted);opacity:1}
.proof-layout fieldset label{display:flex;align-items:center;gap:.55rem;min-height:44px}
.proof-layout input[type=radio]{min-height:0;flex:0 0 auto;accent-color:var(--readable-accent)}
body .law-hit mark{background:#f0d690;color:#24291d}
body :is(.tone-1,.tone-2,.tone-3,.book-cover) :is(h3,small,span){color:#fff5e4}
body #interests :is(.label,.label small,.number){color:#e0c28f!important}
body #interests .interest p{color:#dce7df!important}
@media print{
  :root body{--readable-muted:#333;--readable-accent:#333}
}
