html[data-theme="dark"]{color-scheme:dark;--bg:#151b24;--sidebar:#1c2531;--surface:#1c2531;--surface-2:#263344;--line:#3b4b5d;--text:#eef3f8;--muted:#b5c2d0;--cyan:#89bdf0;--green:#7ada9a;--amber:#f4c476;--red:#ff9393}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] :is(.sidebar,.topbar,.panel,.summary-grid,.station-card,.login-card,dialog,.settings-card,.search,input,select,.button,.icon-button){background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(th,.station-stats,.filter-tabs,.detail-item,.avatar,.launcher-preview){background:var(--surface-2);color:var(--text)}
html[data-theme="dark"] :is(.nav-item:hover,.nav-item.active,.filter-tabs button.active,.button:hover){background:var(--surface-2);color:var(--text)}
html[data-theme="dark"] :is(td,strong,h1,h2,h3,.resource-line,.station-stats strong){color:var(--text)}
html[data-theme="dark"] :is(.subtle,.eyebrow,.detail-item span,.station-card p,.station-stats span){color:var(--muted)}
html[data-theme="dark"] .button.primary{background:#346d9f;color:#fff}
/* Pair foreground and background on nested cards; corporate.css uses light literals. */
html[data-theme="dark"] :is(.station-stats>span,.allowed-apps label,.machine-icon,.activity-icon,.operator-content,#preview-apps>span){background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] :is(.station-card:hover,tbody tr:hover){background:var(--surface-2)}
html[data-theme="dark"] :is(#settings-message,.muted){color:var(--muted)}
html[data-theme="dark"] input::placeholder{color:var(--muted);opacity:1}
html[data-theme="dark"] #logo-placeholder{color:var(--text)}
html[data-theme="dark"] :is(.operator-preview,.login-shell){background:var(--bg);border-color:var(--line)}
html[data-theme="dark"] .toast{background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .status.offline{background:var(--surface-2);color:var(--muted)}
html[data-theme="dark"] .branding-fields input::file-selector-button{background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .button.primary:hover{background:#285c8e;color:#fff}
