html[data-dashboard-theme="dark"] { color-scheme: dark; background: #111820; }
html[data-dashboard-theme="dark"] body { background: #111820; color: #e6edf5; }
html[data-dashboard-theme="dark"] span,
html[data-dashboard-theme="dark"] .rig-overview td,
html[data-dashboard-theme="dark"] .rig-overview th,
html[data-dashboard-theme="dark"] .power-overview td,
html[data-dashboard-theme="dark"] .power-overview th { color: #e6edf5 !important; }
html[data-dashboard-theme="dark"] table { background: #18222e; color: #e6edf5; }
html[data-dashboard-theme="dark"] td,
html[data-dashboard-theme="dark"] th { border-color: #65758a !important; }
html[data-dashboard-theme="dark"] [data-theme-signal="true"] { color: #08121c !important; }
html[data-dashboard-theme="dark"] #btInformation { color: #e6edf5 !important; border-color: #a8b9cc !important; }
html[data-dashboard-theme="dark"] hr { border-color: #65758a; }
html[data-dashboard-theme="dark"] .power-overview h1 { color: #e6edf5; }
html[data-dashboard-theme="dark"] .power-overview td input {
    background-color: #283647; color: #e6edf5 !important;
}
/* Alarm classes and live red/green/yellow backgrounds retain their existing behavior. */
@keyframes wallboard-alarm-outline {
    0%, 49% { outline-color: red; }
    50%, 100% { outline-color: var(--dashboard-alarm-rest, white); }
}
html[data-dashboard-theme="dark"] { --dashboard-alarm-rest: #111820; }
