:root{--surface:#fff;--surface-soft:#f8faff;--accent-soft:#edf3ff;--success-soft:#e7f8f1;--warning-soft:#fff8e8;--danger-soft:#fff0f3;color-scheme:light}
:root[data-theme=dark]{--ink:#e5edf8;--muted:#a2b2c8;--line:#324259;--bg:#101927;--surface:#192638;--surface-soft:#203047;--accent-soft:#213a5b;--success-soft:#173c32;--warning-soft:#40351f;--danger-soft:#452633;--blue:#79acff;--green:#63d6ae;--orange:#ffd087;--red:#ff9caf;color-scheme:dark}
.nova-appearance{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;flex-shrink:0;margin-left:auto}.nova-appearance select{width:auto;max-width:180px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:7px 9px;font:inherit}.nova-appearance-floating{position:fixed;right:16px;top:12px;z-index:30;padding:6px 8px;border-radius:10px;background:var(--surface);border:1px solid var(--line)}.nova-appearance-portal{justify-content:flex-end;margin:-3px 0 14px}
[data-theme=dark] body{background:var(--bg);color:var(--ink)}
[data-theme=dark] .topbar{background:var(--surface)}
[data-theme=dark] :is(input,select,textarea,dialog){background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.driver-body,.setup-page,.setup-document){color:var(--ink);background:var(--bg)}
[data-theme=dark] .setup-document{background:var(--surface)}
[data-theme=dark] :is(.muted,.driver-card p,.driver-empty p,.driver-rate-grid small,.driver-metric small,.driver-metric em,.driver-hero-meta>small,.driver-update,.setup-document p,.setup-stamp,.setup-identity small,.download-page header p,.download-page footer,.download-page ol){color:var(--muted)}
[data-theme=dark] :is(.driver-status.online,.driver-connectors button.ready,.driver-station-summary.has-vacancy span){color:var(--green)}
[data-theme=dark] :is(.badge.green,.badge.orange,.badge.red,.badge.blue){color:var(--ink)}
[data-theme=dark] :is(.notice,.driver-trial,.driver-pill,.driver-demo-notice,.driver-consent-policy){color:var(--ink)}
[data-theme=dark] :is(.chart text,.gauge text){fill:var(--ink)}
[data-theme=dark] .chart line{stroke:var(--line)}
[data-theme=dark] .chart polygon{fill:var(--accent-soft)}
[data-theme=dark] .gauge path:first-child{stroke:var(--line)}
[data-theme=dark] .gauge path:nth-child(2){stroke:var(--blue)}
[data-theme=dark] :is(.theme-preview,.portal-preview){background:var(--surface-soft)}
[data-theme=dark] :is(.brand-mark,.nova-mark,.brand-logo){background:#fff;border-radius:6px}
[data-theme=dark] :is(button:not(.secondary):not(.subtle):not(.danger):not(.textbutton),.button-link){--blue:#2865c1}
[data-theme=dark] :is(.nav button,.portalnav button,.driver-user,.driver-filters button,.driver-connectors button){--blue:#79acff}
@media(max-width:640px){.topbar{gap:8px;flex-wrap:wrap;height:auto;min-height:64px;padding-top:10px;padding-bottom:10px}.nova-appearance>span{display:none}.nova-appearance select{max-width:154px;padding:7px 6px;font-size:10px}.nova-appearance-floating{top:8px;right:8px}}
@media print{.nova-appearance{display:none!important}:root[data-theme=dark]{--ink:#17263e;--muted:#718096;--line:#e6ecf5;--bg:#fff;--surface:#fff;--surface-soft:#f8faff;--accent-soft:#edf3ff;color-scheme:light}[data-theme=dark] body,[data-theme=dark] .setup-document{background:white;color:#17263e}}
[data-theme=dark] :is(.brand-mark,.brand-mark img){mix-blend-mode:normal!important}
[data-theme=dark] .driver-body .driver-app{background:var(--bg)}
[data-theme=dark] .driver-welcome p{color:var(--muted)}
[data-theme=dark] .driver-soc{background:var(--surface)}
[data-theme=dark] #toast{background:#e5edf8;color:#17263e}
.danger{background:var(--danger-soft)}
[data-theme=dark] .nav button.active{color:#91baff}
[data-theme=dark] a:not(.button-link):not(.download-primary):not(.app-update-download){color:#91baff}
[data-theme=dark] .badge.red{background:var(--danger-soft)}
[data-theme=dark] .badge.green{background:var(--success-soft)}
[data-theme=dark] .badge.orange{background:var(--warning-soft)}
.nova-fullscreen{display:grid;place-items:center;padding:7px;width:34px;height:34px;flex-shrink:0}.nova-fullscreen svg{width:18px;height:18px}.nova-appearance{gap:7px}.portal-header{position:sticky;top:0;z-index:5}.nova-appearance-portal{position:sticky;top:64px;z-index:5}
