/* Knoqd design tokens. The one source for app, portals and emails. */
:root {
  color-scheme: light;
  /* Colour */
  --ink: #000000;
  --canvas: #F1F1EF;          /* neutral, staff app. Public pages and email use warm */
  --surface: #FFFFFF;         /* cards */
  --surface-2: #F6F7F7;       /* row pills, inputs on cards */
  --muted: #565950;           /* secondary text, >=4.5:1 on canvas, surface-2 and status tints */
  --line: rgba(0, 0, 0, .08); /* hairlines */
  --lime: #C6EF4E;            /* fill with ink text, or figure on ink. Never text on light */
  --side: #000000;            /* sidebar and bottom bar */
  --side-text: #FFFFFF;
  --side-muted: #A3A3A3;
  --side-hover: #1C1C1C;
  --pink: #FFD7DF;            /* emergency, overdue, expired, declined */
  --peach: #FFE2C8;           /* awaiting approval, expiring, pending review */
  --lavender: #E3DCFF;        /* dispatching, assigned, booked, in progress */
  --mint: #D4F5E2;            /* completed, closed, valid, approved */
  --pink-wash: #FFF1F4;       /* emergency row background */
  --alert-line: #E5486E;      /* emergency left accent, non-text only */

  /* Type */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-12: .75rem; --fs-14: .875rem; --fs-16: 1rem; --fs-20: 1.25rem; --fs-28: 1.75rem; --fs-40: 2.5rem;
  --track-tight: -0.02em;

  /* Space (4px grid) */
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-48: 48px;

  /* Radii */
  --r-12: 12px; --r-20: 20px; --r-28: 28px; --r-pill: 999px;

  /* Depth: two levels only */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .08), 0 12px 32px rgba(0, 0, 0, .14);

  /* Shell */
  --side-w: 248px;
  --side-w-collapsed: 76px;
  --tap: 44px;
}
:root[data-canvas="warm"] { --canvas: #EAECDF; }
