/* KDS · design tokens. The ONLY place colours live.
   Two official themes, chosen by Josh on 2026-10-30 09:34:
     [data-theme="light"] = palette 2 "Soft Apple"
     [data-theme="dark"]  = palette 5 "Graphite"
   Per-tenant branding: set --accent / --on-accent (and optionally --font-ui) on a
   [data-tenant="…"] block, see bottom. Keep --on-accent on --accent at >= 7:1. */

:root{
  --font-ui:"Inter","Noto Sans Hebrew",system-ui,sans-serif;
  --font-num:"Inter",system-ui,sans-serif;
  --w-regular:500; --w-bold:700;
  --card-radius:24px;
  --bar-w:1rem;      /* status bar along the top of a ticket (dark theme) */
  --items-top:1rem;  /* gap between ticket header and first item */
}

/* ── Light · Soft Apple ───────────────────────────────────────────────
   Apple greys, white cards. Status = soft tinted header strip with deep text. */
:root,[data-theme="light"]{
  color-scheme:light;
  --items-top:3rem;  /* tinted header strip needs air before the first item */
  --screen:#F2F2F7; --screen-ink:#1C1C1E; --screen-ink-2:#3A3A3C;
  --card:#FFFFFF; --card-ink:#1C1C1E; --card-ink-2:#48484A; --card-edge:#E5E5EA;
  --card-shadow:0 1px 2px rgba(0,0,0,.04),0 6px 20px rgba(0,0,0,.05);
  --quiet:#E5E5EA; --on-quiet:#1C1C1E;
  --theme-accent:#1C1C1E; --theme-on-accent:#FFFFFF;
  --ok-dot:#1A7A3E; --off-dot:#A11D1D;
  --ok-strip:#E8F5EC;   --ok-head:#0F5130;   --ok-type:#0F5130;   --ok-pill:transparent; --ok-pill-ink:#0F5130;   --ok-bar:transparent;
  --new-strip:#E9F0FB;  --new-head:#0B4A9C;  --new-type:#0B4A9C;  --new-pill:#0B4A9C;    --new-pill-ink:#FFFFFF;  --new-bar:transparent;
  --warn-strip:#E5E5EA; --warn-head:#1C1C1E; --warn-type:#1C1C1E; --warn-pill:#1C1C1E;   --warn-pill-ink:#FFFFFF; --warn-bar:transparent;
  --late-strip:#FDECEC; --late-head:#961B1B; --late-type:#961B1B; --late-pill:#961B1B;   --late-pill-ink:#FFFFFF; --late-bar:transparent;
}

/* ── Dark · Graphite ──────────────────────────────────────────────────
   Graphite cards, near-white text. Status = thin top bar + solid timer pill
   (muted emerald new, white 8+ min, red 12+ min; no orange/amber, Josh). */
[data-theme="dark"]{
  color-scheme:dark;
  --items-top:1rem;
  --screen:#111214; --screen-ink:#F4F4F5; --screen-ink-2:#B4B6BC;
  --card:#1C1D21; --card-ink:#F4F4F5; --card-ink-2:#B6B8BF; --card-edge:#2C2E34;
  --card-shadow:none;
  --quiet:#26282D; --on-quiet:#F4F4F5;
  --theme-accent:#303238; --theme-on-accent:#F4F4F5;   /* Done: tonal graphite (Josh 2026-10-30 09:42), 11.7:1 */
  --theme-accent-edge:#44474F; --theme-accent-edge-w:1px;
  --ok-dot:#5DBB90; --off-dot:#FF6961;
  --ok-strip:#1C1D21;   --ok-head:#F4F4F5;   --ok-type:#B6B8BF;   --ok-pill:#2C2E34;   --ok-pill-ink:#F4F4F5;   --ok-bar:transparent;
  --new-strip:#1C1D21;  --new-head:#F4F4F5;  --new-type:#B6B8BF;  --new-pill:#5DBB90;  --new-pill-ink:#111214;  --new-bar:#5DBB90;
  --warn-strip:#1C1D21; --warn-head:#F4F4F5; --warn-type:#B6B8BF; --warn-pill:#F4F4F5; --warn-pill-ink:#111214; --warn-bar:#F4F4F5;
  --late-strip:#1C1D21; --late-head:#F4F4F5; --late-type:#B6B8BF; --late-pill:#FF6961; --late-pill-ink:#111214; --late-bar:#FF6961;
}

/* ── Brand accent (Done buttons). Defaults to the theme's ink; a tenant may override. */
:root{--accent:var(--theme-accent); --on-accent:var(--theme-on-accent);
  --accent-edge:var(--theme-accent-edge,transparent); --accent-edge-w:var(--theme-accent-edge-w,0px)}
/* Example tenant override (not active unless <html data-tenant="example">):
[data-tenant="example"][data-theme="light"]{--accent:#0B4A9C; --on-accent:#FFFFFF}
[data-tenant="example"][data-theme="dark"] {--accent:#9CC3F5; --on-accent:#111214} */

/* ── Live screen additions (apps/kitchen): crossed lines, other stations, printer banner, sheets. Same two themes. */
:root,[data-theme="light"]{
  --crossed:#AEAEB2; --other:#8E8E93; --rule:#E5E5EA;
  --pb-bg:#E5E5EA; --pb-edge:#D1D1D6; --pb-ink:#1C1C1E; --pb-ink-2:#3A3A3C; --pb-ic-bg:#FFFFFF; --pb-ic-ink:#1C1C1E; --pb-btn:#FFFFFF; --pb-btn-edge:#C7C7CC; --pb-dot:#1C1C1E;
  --chip:#FFFFFF; --chip-ink:#1C1C1E; --chip-edge:#AEAEB2; --chip-wait:#F2F2F7; --chip-wait-ink:#48484A;
  --sheet:#FFFFFF; --sheet-ink:#1C1C1E; --sheet-ink-2:#6E6E73; --sheet-ink-3:#8E8E93; --sheet-quiet:#F2F2F7; --sheet-edge:#E5E5EA; --sheet-sel:#1C1C1E; --sheet-off:#AEAEB2;
  --sheet-radio:#C7C7CC; --sheet-shadow:0 4rem 12rem rgba(0,0,0,.25); --scrim:rgba(28,28,30,.32); --seg-on:#FFFFFF; --seg-shadow:0 1px 4px rgba(0,0,0,.12);
  --go:#1C1C1E; --go-ink:#FFFFFF; --toast:#1C1C1E; --toast-ink:#FFFFFF; --conn-dot:#8E8E93; --conn-ink:#3A3A3C;
  --toggle-on:#1A7A3E; --toggle-off:#E5E5EA;
}
[data-theme="dark"]{
  --crossed:#5F6168; --other:#7D8088; --rule:#2C2E34;
  --pb-bg:#26282D; --pb-edge:#44474F; --pb-ink:#F4F4F5; --pb-ink-2:#B6B8BF; --pb-ic-bg:#303238; --pb-ic-ink:#F4F4F5; --pb-btn:#303238; --pb-btn-edge:#5F6168; --pb-dot:#F4F4F5;
  --chip:#303238; --chip-ink:#F4F4F5; --chip-edge:#5F6168; --chip-wait:#26282D; --chip-wait-ink:#B6B8BF;
  --sheet:#1C1D21; --sheet-ink:#F4F4F5; --sheet-ink-2:#B6B8BF; --sheet-ink-3:#8E9097; --sheet-quiet:#26282D; --sheet-edge:#2C2E34; --sheet-sel:#F4F4F5; --sheet-off:#5F6168;
  --sheet-radio:#5F6168; --sheet-shadow:0 4rem 12rem rgba(0,0,0,.6); --scrim:rgba(0,0,0,.55); --seg-on:#3A3C43; --seg-shadow:none;
  --go:#303238; --go-ink:#F4F4F5; --toast:#F4F4F5; --toast-ink:#111214; --conn-dot:#7D8088; --conn-ink:#B4B6BC;
  --toggle-on:#5DBB90; --toggle-off:#3A3C43;
}
