/* Design tokens. Every colour in the app comes from here, so light and dark
   stay in step and the map can read the same route colours. Text colours are
   checked for at least 4.5:1 contrast on the surfaces they sit on. */

:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #dde4ee;
  --text: #16263b;
  --text-2: #55657a;
  --accent: #1d4ed8;
  --accent-soft: #e8efff;
  --good: #0a6b4b;
  --good-soft: #e6f5ee;
  --warn: #8a5300;
  --warn-soft: #fdf1dc;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --shadow: 0 8px 28px rgb(22 38 59 / 14%);

  /* Route colours, shared with the map. */
  --route-assigned: #2563eb;
  --route-new: #c026d3;
  --route-after: #7c3aed;
  --route-empty: #64748b;
  --marker-driver: #16263b;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --fs-xs: 12px;
  --fs-s: 13px;
  --fs-m: 14px;
  --fs-l: 16px;
  --fs-xl: 20px;
  --radius: 8px;
  --appbar: 48px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e131a;
  --surface: #161d27;
  --surface-2: #1c2531;
  --border: #2a3544;
  --text: #e6ebf2;
  --text-2: #9aa8ba;
  --accent: #7aa7ff;
  --accent-soft: #1b2a47;
  --good: #4cc79a;
  --good-soft: #12352b;
  --warn: #f2b34b;
  --warn-soft: #3a2c10;
  --bad: #ff8a80;
  --bad-soft: #3d1a17;
  --shadow: 0 8px 28px rgb(0 0 0 / 50%);
  --route-assigned: #5b8dff;
  --route-new: #e668f2;
  --route-after: #a47bff;
  --route-empty: #8494a8;
  --marker-driver: #e6ebf2;
}
