/* hnaconsole/theme-dark.css — the dark theme shared by every HNA console (Unity, config), 2026-10-10.
   One file, one palette: Unity imports it; the config pane inlines it (test_ui2 checks the inlined copy matches).
   Contract: the PREFERENCE (light | dark | auto) lives in localStorage "hna-theme" — the same key on /unity and /config,
   so the choice carries across the front door. A tiny script in <head> RESOLVES it before first paint and keeps it in
   step with the OS while the preference is auto: <html data-theme="light|dark"> always holds the resolved theme, so this
   file needs one block and no media query.
   Covers the union of both consoles' variables. Contrast: ink on page >= 13:1, ink-3 on surface >= 4.5:1, accent on
   surface >= 4.5:1. Status colours are lifted for a dark ground; soft fills are translucent so they sit on any surface. */
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f1115; --surface: #16191f; --surface-2: #1d2129; --surface-3: #252a33;
  --hairline: rgba(255,255,255,.09); --hairline-strong: rgba(255,255,255,.18);
  --ink: #ecebe7; --ink-2: #b9b7b0; --ink-3: #8f8d87; --muted: #8f8d87;
  --grid: #262a31; --axis: #3b4049;
  --accent: #5c9ef0; --accent-ink: #8dbaf5; --accent-soft: rgba(92,158,240,.16);
  --good: #4fc35c; --good-ink: #7fd889; --good-soft: rgba(79,195,92,.14);
  --warn: #e0a43a; --warn-soft: rgba(224,164,58,.15);
  --serious: #f0874f; --serious-soft: rgba(240,135,79,.15);
  --critical: #f26b6b; --critical-soft: rgba(242,107,107,.15);
  --bad: var(--critical); --bad-soft: var(--critical-soft);
  --on-ink: #0f1115; --ink-hover: #d6d4ce; --row-hover: #1b1f26;
  --brand-ink: #e8eef6; --brand-teal: #5ad0cb;
  --avatar-bg: #1e3f66; --avatar-ink: #ffffff; --logo-tile: transparent; --logo-filter: brightness(0) invert(1); --scrim: rgba(0,0,0,.55);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -16px rgba(0,0,0,.6);
  --shadow-pop: 0 12px 40px -12px rgba(0,0,0,.7), 0 0 0 1px var(--hairline);
  --shadow-panel: -8px 0 32px -16px rgba(0,0,0,.7);
}
