/*
 * tokens.css — the ONE source of the Smart Service QR design tokens (2026-10-09).
 * Loaded by every page before its own <style>. Pages and scripts use var(--…);
 * never paste a hex value that has a token here. Rationale: QR_code_Project/firebase/DESIGN.md.
 * SVG stroke/fill attributes cannot read var() — pass the token's hex there and
 * keep it equal to the value below.
 */
:root{
  /* surfaces */
  --bg:#F3F8FF;            /* page canvas: clinic-lobby light */
  --surface:#FFFFFF;       /* sheets, cards, bars */
  --line:#E8F1FA;          /* hairlines, neutral chip fill */

  /* ink */
  --ink:#061A46;           /* titles, primary text, primary pill */
  --ink-2:#0B2E8A;         /* links, selection outline, emphasis */
  --sub:#596a82;           /* secondary text — 5.5:1 on white */
  --sub-2:#5f7189;         /* tertiary text, labels, placeholders — 5.0:1 on white */

  /* accent (IMS blue) */
  --accent:#00A3E0;        /* icons, progress dots, highlights — never small body text */
  --accent-ink:#006D99;    /* accent-coloured text on --accent-tint — 5.1:1 */
  --accent-tint:#E3F4FF;   /* selected tiles, info chips, staff bar */

  /* status */
  --ok:#1e7f4a;   --ok-bg:#e6f4ec;
  --warn:#875c0c; --warn-bg:#fff1d9;
  --bad:#c0392b;  --bad-bg:#ffe7e4;

  /* repair urgency dots (soft forms of the LINE card header colours) */
  --urg-down:#EE675C; --urg-faulty:#FA903E; --urg-low:#669DF6;

  /* hub night — the dark header area (brand photo + navy) on the hub, record photo fallback */
  --night:#041231;         /* photo fallback behind the dark header */
  --night-2:#002C8D;       /* end of the navy gradient on the next-PM date block */
  --sky:#8FD6F5;           /* secondary text and icons on navy — 10.5:1 */
  --sky-2:#7FD8FF;         /* eyebrows, active links on navy */
  --sky-soft:#BFE8FB;      /* small print on navy */
  --sky-pale:#DFF4FF;      /* tile title on the equipment photo tile */
  --sky-mid:#9BD9F5;       /* tile subline on the equipment photo tile */
  --sky-tint:#CFEEFF;      /* round icon well on a light-blue row */

  /* light-side extras */
  --ink-3:#123F86;         /* service type line under a history title */
  --icon-sub:#5B7794;      /* row icons, unselected filter chip text — 4.7:1 on white */
  --rail:#D3E7FA;          /* timeline rail */
  --grab:#D7E7F3;          /* bottom-sheet grab handle */
  --field-line:#CFDBE8;    /* unselected radio ring on the repair form */
  --notify:#E5484D;        /* unread dot on the hub bell — not a status colour */

  /* hub stat tiles (amber = needs attention, a status) */
  --attn-bg:#FDF0DC; --attn-dot:#F0A52A; --attn-ink:#6B4A13;
  --warranty-ink:#476B9B;  /* label on the warranty tile (--accent-tint) — 4.9:1 */

  /* type */
  --font:'Google Sans Flex','Anuphan',system-ui,sans-serif;

  /* shape */
  --r-pill:999px;          /* buttons, chips, round icon buttons */
  --r-sheet:26px;          /* the white sheet over the hero; bottom sheets */
  --r-panel:20px;          /* big hub tiles: stat tiles, photo tiles, next-PM, history rows, request button */
  --r-card:16px;           /* tiles, rows, fields, cards */
  --r-icon:12px;           /* square icon wells (38–46px) inside rows */

  /* elevation — only for things that float over content */
  --lift-float:0 4px 14px rgba(9,30,63,.2);       /* round button on a photo */
  --lift-sheet:0 -12px 40px rgba(8,26,54,.22);    /* bottom sheet rising over the page */
  --lift-toast:0 10px 30px rgba(8,26,54,.3);      /* toast */
  --lift-dark:0 8px 24px rgba(3,17,40,.35);       /* search pill floating on the dark hub header */
}
