/* ServiceCrewHQ design tokens. Source of truth: docs/DESIGN.md.
   site/tokens.css must stay byte-identical to this file (npm test checks). */
:root{
  color-scheme:light dark;
  /* Neutrals (light) */
  --bg:#F5F5F7;--bg-deep:#EDEDF0;--surface:#FFFFFF;--raised:#F0F0F2;
  --line:rgba(29,29,31,.10);--line-strong:rgba(29,29,31,.18);
  --text:#1D1D1F;--text-2:#4A4A4F;--text-3:#6E6E73;
  /* Accent: safety orange */
  --accent:#FF7A2F;--accent-ink:#C2410C;--on-accent:#1D1D1F;--accent-soft:rgba(255,122,47,.12);
  /* Status */
  --good:#1A7F45;--good-soft:rgba(26,127,69,.10);
  --warn:#A15C07;--warn-soft:rgba(161,92,7,.10);
  --bad:#C4271D;--bad-soft:rgba(196,39,29,.10);
  --focus:#0A66D9;
  /* Crew lanes (schedule only; edges and soft tints, never text) */
  --crew-1:#3B7DD8;--crew-2:#2A9D8F;--crew-3:#5A9E4B;--crew-4:#8B6FD6;
  --crew-5:#C9568F;--crew-6:#64748B;--crew-7:#9C6B3F;--crew-8:#8A8F2E;
  /* Materials */
  --material:rgba(245,245,247,.72);--material-blur:saturate(180%) blur(20px);--scrim:rgba(0,0,0,.32);
  --shadow-1:0 1px 2px rgba(0,0,0,.06);
  --shadow-2:0 8px 24px rgba(0,0,0,.10),0 1px 2px rgba(0,0,0,.06);
  /* Type */
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,"Segoe UI Variable Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-display:-apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,"Segoe UI Variable Display","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
  --fs-display:clamp(2.5rem,6vw,4.5rem);--fs-large:2.125rem;--fs-title1:1.75rem;--fs-title2:1.375rem;--fs-title3:1.125rem;
  --fs-body:1.0625rem;--fs-callout:.9375rem;--fs-subhead:.875rem;--fs-footnote:.8125rem;--fs-caption:.75rem;
  /* Space (4px grid) */
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px;--s10:40px;--s12:48px;--s16:64px;--s20:80px;--s24:96px;--s32:128px;
  /* Radius */
  --r-chip:6px;--r-control:10px;--r-card:14px;--r-sheet:20px;--r-pill:999px;
  /* Sizes */
  --control-h:36px;--touch:44px;--row-h:44px;--bar-h:56px;--sidebar-w:248px;--rail-w:72px;--content-max:1440px;
  /* Motion */
  --ease:cubic-bezier(.32,.72,0,1);--ease-out:cubic-bezier(.25,1,.5,1);
  --dur-press:100ms;--dur-quick:160ms;--dur-enter:260ms;--dur-sheet:380ms;
}
@media (max-width:599px){:root{--control-h:44px;--row-h:56px;--bar-h:52px}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  color-scheme:dark;
  --bg:#111113;--bg-deep:#0B0B0C;--surface:#1C1C1E;--raised:#2C2C2E;
  --line:rgba(245,245,247,.10);--line-strong:rgba(245,245,247,.18);
  --text:#F5F5F7;--text-2:#AEAEB2;--text-3:#8E8E93;
  --accent:#FF8A45;--accent-ink:#FF9A5C;--on-accent:#111113;--accent-soft:rgba(255,138,69,.16);
  --good:#4CC38A;--good-soft:rgba(76,195,138,.14);--warn:#F5A524;--warn-soft:rgba(245,165,36,.14);
  --bad:#F2555A;--bad-soft:rgba(242,85,90,.14);--focus:#4C9BFF;
  --material:rgba(28,28,30,.72);--shadow-1:none;--shadow-2:0 8px 24px rgba(0,0,0,.5);
}}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#111113;--bg-deep:#0B0B0C;--surface:#1C1C1E;--raised:#2C2C2E;
  --line:rgba(245,245,247,.10);--line-strong:rgba(245,245,247,.18);
  --text:#F5F5F7;--text-2:#AEAEB2;--text-3:#8E8E93;
  --accent:#FF8A45;--accent-ink:#FF9A5C;--on-accent:#111113;--accent-soft:rgba(255,138,69,.16);
  --good:#4CC38A;--good-soft:rgba(76,195,138,.14);--warn:#F5A524;--warn-soft:rgba(245,165,36,.14);
  --bad:#F2555A;--bad-soft:rgba(242,85,90,.14);--focus:#4C9BFF;
  --material:rgba(28,28,30,.72);--shadow-1:none;--shadow-2:0 8px 24px rgba(0,0,0,.5);
}
@media (prefers-contrast:more){:root{--line:var(--line-strong);--material:var(--surface)}}
@media (prefers-reduced-transparency:reduce){:root{--material:var(--surface);--material-blur:none}}
@media (prefers-reduced-motion:reduce){:root{--dur-enter:160ms;--dur-sheet:160ms}}
