/* Onibat theme: the one token sheet for the public site, the customer and partner area, the
   pro console and the admin. Every colour of every surface is a var(--token) from this file.
   Light and dark follow the device; data-theme="light|dark" on <html> forces one (set from
   the `theme` cookie server-side, so the public site still runs without JavaScript).
   Brand orange #E26E3B is for the logo and illustrations; actions use --accent, darker in
   light mode for AA contrast with white text. See docs/REDESIGN.md. */
:root {
  color-scheme: light dark;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --sunken: #edf1f5;
  --line: #dce3ea;
  --text: #13233a;
  --muted: #566779;
  --accent: #c4561f;
  --accent-hover: #9c4216;
  --accent-text: #ffffff;
  --accent-soft: #fce9df;
  --brand: #e26e3b;
  --navy: #13233a;
  --navy-text: #ffffff;
  --steel: #3e5c7b;
  --steel-soft: #e3eaf2;
  --tile: #3e5c7b;
  --ok: #1f7a4a;
  --ok-soft: #e1f2e8;
  --warn: #a15c00;
  --warn-soft: #fbebd5;
  --danger: #b42318;
  --focus: #e26e3b;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgb(19 35 58 / 6%), 0 4px 16px rgb(19 35 58 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1a2b;
  --surface: #15243a;
  --sunken: #1b2d46;
  --line: #2a3f5a;
  --text: #eef2f6;
  --muted: #a9b7c6;
  --accent: #f0874f;
  --accent-hover: #f6a678;
  --accent-text: #0e1a2b;
  --accent-soft: #3a2418;
  --brand: #f0874f;
  --navy: #0b1524;
  --navy-text: #eef2f6;
  --steel: #7fa2c6;
  --steel-soft: #1e3048;
  --tile: #263d5a;
  --ok: #6fcf97;
  --ok-soft: #163222;
  --warn: #f2a65a;
  --warn-soft: #33240f;
  --danger: #ff8a80;
  --focus: #f0874f;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1a2b;
    --surface: #15243a;
    --sunken: #1b2d46;
    --line: #2a3f5a;
    --text: #eef2f6;
    --muted: #a9b7c6;
    --accent: #f0874f;
    --accent-hover: #f6a678;
    --accent-text: #0e1a2b;
    --accent-soft: #3a2418;
    --brand: #f0874f;
    --navy: #0b1524;
    --navy-text: #eef2f6;
    --steel: #7fa2c6;
    --steel-soft: #1e3048;
    --tile: #263d5a;
    --ok: #6fcf97;
    --ok-soft: #163222;
    --warn: #f2a65a;
    --warn-soft: #33240f;
    --danger: #ff8a80;
    --focus: #f0874f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
  }
}
