/* The existing light literals stay as fallbacks. Dark palette is centralized. */
html[data-theme="dark"]{
 --theme-surface:#172235;--theme-surface-soft:#1d2a40;--theme-surface-raised:#25344b;--theme-surface-deep:#101a2b;
 --theme-text:#e5edf8;--theme-muted:#adbcd1;--theme-on-accent:#fff;
 --theme-border:#3b4b64;--theme-border-strong:#60728c;--theme-accent:#286be1;--theme-link:#8ab8ff;
 --theme-success:#71dcab;--theme-danger:#ff9cae;--theme-warning:#f4cf86;--theme-purple:#c6b2ff;
 --theme-info-soft:#203957;--theme-success-soft:#193b34;--theme-danger-soft:#482938;--theme-warning-soft:#3e3528;--theme-purple-soft:#332e50;
 --theme-success-solid:#186343;--theme-danger-solid:#a42c4c;--theme-warning-solid:#785518;--theme-purple-solid:#624ba6;
 --theme-shadow:#00000033;--theme-overlay:#07132199;
 --bg:#101a2b;--panel:#172235;--text:#e5edf8;--muted:#adbcd1;--line:#3b4b64;--brand:#286be1;--green:#71dcab;--red:#ff9cae;--orange:#f4cf86;--blue:#8ab8ff;
 --shell-page:#101a2b;--shell-card:#172235;--shell-text:#e5edf8;--shell-muted:#adbcd1;--shell-border:#3b4b64;
 --shell-accent:#8ab8ff;--shell-accent-soft:#203957;--shell-success:#71dcab;--shell-warning:#f4cf86;--shell-danger:#ff9cae;--shell-shadow:0 6px 20px #00000033;
 --bh-critical:#ff9cae;--bh-critical-bg:#482938;--bh-critical-line:#875064;
 --bh-warning:#f4cf86;--bh-warning-bg:#3e3528;--bh-warning-line:#796344;
 --bh-caution:#f4cf86;--bh-caution-bg:#3e3528;--bh-caution-line:#796344;
 --bh-technical:#8ab8ff;--bh-technical-bg:#203957;--bh-technical-line:#44678f;
 --bh-outside:#c6b2ff;--bh-outside-bg:#332e50;--bh-outside-line:#69558e;
 --bh-success:#71dcab;--bh-success-bg:#193b34;--bh-success-line:#3f7362;
 --bh-neutral:#adbcd1;--bh-neutral-bg:#1d2a40;--bh-neutral-line:#3b4b64;
 --v070-line:#3b4b64;--v070-muted:#adbcd1;--v070-red:#ff9cae;--v070-red-bg:#482938;--v070-green:#71dcab;--v070-green-bg:#193b34;--v070-amber:#f4cf86;--v070-amber-bg:#3e3528;
 color-scheme:dark;scrollbar-color:#60728c #172235;
}
html[data-theme="dark"] #authBootstrapScreen{background:var(--bg);color:var(--text)}
html[data-theme="dark"] body{background:var(--shell-page);color:var(--shell-text)}
html[data-theme="dark"] :is(input,select,textarea){color:var(--theme-text);background-color:var(--theme-surface);border-color:var(--theme-border)}
html[data-theme="dark"] ::placeholder{color:var(--theme-muted);opacity:1}
html[data-theme="dark"] option{background:var(--theme-surface);color:var(--theme-text)}
html[data-theme="dark"] :focus-visible{outline-color:var(--theme-link)!important}
html[data-theme="dark"] dialog{background:var(--theme-surface);color:var(--theme-text)}
html[data-theme="dark"] button.danger{background:var(--theme-danger-solid);color:var(--theme-on-accent)}
html[data-theme="dark"] .bh-profile-dialog::backdrop{background:var(--theme-overlay)}
html[data-theme="dark"] .pi-app{--pi-border:var(--theme-border);--pi-muted:var(--theme-muted);--pi-blue:var(--theme-link)}
html[data-theme="dark"] .pi-app .pi-primary{background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-on-accent)}
html[data-theme="dark"] .shell-problem-count-v060p{background:var(--theme-warning-solid)}
html[data-theme="dark"] .bh-problems-critical .shell-problem-count-v060p{background:var(--theme-danger-solid)}
html[data-theme="dark"] .bh-problems-technical .shell-problem-count-v060p{background:var(--theme-accent)}
html[data-theme="dark"] .bh-attention-count{background:var(--theme-danger-solid)}
html[data-theme="dark"] .event-row-icon{background:var(--bh-row-bg)!important;color:var(--bh-row-accent)!important}
/* Inline legacy graph/grid labels use currentColor. Series colours are unchanged. */
html[data-theme="dark"] svg text{fill:var(--theme-muted)}
html[data-theme="dark"] svg line[stroke="#e7ebf0"],html[data-theme="dark"] svg line[stroke="#e2e8f0"]{stroke:var(--theme-border)}
