html{color-scheme:light}
.theme-toggle{position:fixed;right:18px;bottom:18px;z-index:20;min-height:48px;min-width:100px;box-shadow:0 3px 16px #0003;border:1px solid var(--line);font-size:13px}
.content,.login-card{padding-bottom:85px}
html[data-theme="dark"]{color-scheme:dark;--ink:#e5edf8;--muted:#a8b7ca;--accent:#9aaaff;--line:#35455c;--bg:#0e1726;--surface:#172337;--soft:#223149}
html[data-theme="dark"] :is(.login-body,.sidebar,.topbar,.filters,.metric,.panel,.quick-actions a,.tabs a.active,.review-dialog){background:var(--surface)}
html[data-theme="dark"] :is(input,select,textarea,.button){background:#1b2a40;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .button:hover{background:#304365}
html[data-theme="dark"] .primary{background:#5065d9;border-color:#7284ed;color:#fff}
html[data-theme="dark"] .primary:hover{background:#4358cd}
html[data-theme="dark"] :is(th,.privacy-note,.form-note,.station-summary,.form-total,.attachment,.demo-accounts,.review-response,.action-deck,.turnout-metric,.org-avatar,.profile-avatar,.nav-link.active,.list-number){background:var(--soft);border-color:var(--line)}
html[data-theme="dark"] .nav-link:hover{background:#263850}
html[data-theme="dark"] :is(.meter,.bar-track,.tv-track){background:#35455c}
html[data-theme="dark"] .field-actions a{background:#243357;border-color:#425884}
html[data-theme="dark"] .field-actions a:nth-child(2){background:#3b3020;border-color:#6a5535}
html[data-theme="dark"] .field-actions a:nth-child(3){background:#18382e;border-color:#326953}
html[data-theme="dark"] :is(.warning,.field-warning,.needs_review,.new,.demo-pill){background:#3d301d;color:#ffd58b;border-color:#755e36}
html[data-theme="dark"] :is(.error){background:#482628;color:#ffbdba}
html[data-theme="dark"] :is(.success,.verified,.closed){background:#1c3b30;color:#9ce5bf}
html[data-theme="dark"] :is(.submitted,.investigating){background:#29355a;color:#bdcaff}
html[data-theme="dark"] :is(.neutral,.missing){background:#2c394c;color:#c0cbd9}
html[data-theme="dark"] .severity{color:#ffd58b}
html[data-theme="dark"] .attention-icon{background:#3d301d;color:#ffd58b}
html[data-theme="dark"] :is(.page-footer,.tv-metrics small){color:var(--muted)}
html[data-theme="dark"] .grid-line{stroke:#42536b}
html[data-theme="dark"] .line-chart text{fill:#b6c4d6}
html[data-theme="dark"] .trend-dot{stroke:var(--surface)}
html[data-theme="dark"] .tv-screen:fullscreen{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .review-dialog::backdrop{background:#000a}
@media(max-width:760px){.theme-toggle{right:12px;bottom:12px}}
@media print{.theme-toggle{display:none}}
