/* S0018 tokens, Industrial HMI base. Components reference these only; never hard-code colours. */
:root {
  --bg: #14181d; --surface: #1c222a; --surface-2: #242c36; --border: #6f7f90;
  --text: #e8edf2; --text-dim: #b4bfca; --accent: #4cc2ff; --accent-ink: #04202e;
  --ok: #5bd48a; --warn: #ffc247; --err: #ff7a70; --focus: #ffffff;
  --font: system-ui, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, Consolas, monospace;
  --r: 4px; --gap: 12px; --topbar-h: 64px; --left-w: 240px; --right-w: 320px;
  --scan: 0; --pix: 0; --vig: 0;
}
:root[data-theme="light"] {
  --bg: #eef1f4; --surface: #ffffff; --surface-2: #e2e7ec; --border: #5b6672;
  --text: #11161b; --text-dim: #3c4752; --accent: #004f7a; --accent-ink: #ffffff;
  --ok: #0b6b34; --warn: #7a4a00; --err: #a31a10; --focus: #000000;
}
:root[data-theme="amber"] {
  --bg: #0d0a04; --surface: #17110a; --surface-2: #231a0d; --border: #8a6a2a;
  --text: #ffd27a; --text-dim: #d9ae5a; --accent: #ffb000; --accent-ink: #1a1000;
  --ok: #9be37a; --warn: #ffe08a; --err: #ff8f6a; --focus: #ffffff;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #eef1f4; --surface: #ffffff; --surface-2: #e2e7ec; --border: #5b6672;
    --text: #11161b; --text-dim: #3c4752; --accent: #004f7a; --accent-ink: #ffffff;
    --ok: #0b6b34; --warn: #7a4a00; --err: #a31a10; --focus: #000000;
  }
}
