/* Nino Workspace design tokens: the single source of colour, font family, type scale, radius, shadow and
   spacing. Every value below was already in production on 2026-11-02; nothing is invented, nothing is
   a signed-off design (none exists yet). scripts/check-design.js reads this file: a colour, font-family,
   font-size, border-radius or box-shadow literal in a UI source that is not defined here is off-token
   and must be in docs/design/design-ledger.json. See docs/design/README.md.

   Rule for what is here: a value used 3+ times across the UI sources (spacing: 20+), or defined as a
   variable by a page. Rarer values stay literal in their page and are listed in the ledger.
   Naming: colours by the role they play today; sizes and radii by their pixel value, because a
   semantic scale is a design decision that has not been made.

   Served at /workspace/assets/tokens.css and linked from every page. */

:root {
  /* ---- brand and surface ---- */
  --navy: #14304d;
  --blue: #2f5d8a;
  --tint: #e7edf3;
  --ink: #1b1a17;
  --paper: #faf9f6;
  --sage: #7f9c86;
  --white: #fff;
  --line: #dfe5ec;
  --line-field: #cfd8e2;          /* input / button / card borders (invoices, purchases, settings, ui) */
  --line-field-alt: #c8d3df;      /* the same role in the console, activation and bubble: a near-duplicate */
  --line-row: #f0f2f5;            /* table row rules (invoices, purchases, settings) */
  --line-faint: #eef1f4;          /* table row rules (activation, console, app) */
  --line-on-dark: rgba(255, 255, 255, .35);  /* outlined buttons on the navy bar */
  --surface-field: #fbfcfd;       /* input background (app) */

  /* ---- signed proposal colours (docs/design/proposal.json, signed off 2026-11-02; names provisional,
         near-duplicates stay separate; no page uses them until its own migration) ---- */
  --c-text-1f7a4d: #1f7a4d;
  --c-text-3c6d78: #3c6d78;
  --c-text-3d4a57: #3d4a57;
  --c-text-6b4500: #6b4500;
  --c-text-7a5a32: #7a5a32;
  --c-text-9b4a30: #9b4a30;
  --c-surface-1f8f4e: #1f8f4e;
  --c-surface-0e2238: #0e2238;
  --c-surface-2f7a4a: #2f7a4a;
  --c-surface-a50d26: #a50d26;
  --c-surface-b5402f: #b5402f;
  --c-surface-c8102e: #c8102e;
  --c-line-9fb3c8: #9fb3c8;
  --c-line-e6c3c3: #e6c3c3;
  --c-line-f0d49a: #f0d49a;
  --c-line-aaaaaa: #aaaaaa;
  --c-overlay-14304d-40: rgba(20,48,77,0.4);
  --c-overlay-7f9c86-45: rgba(127,156,134,0.45);
  --c-overlay-141e28-55: rgba(20,30,40,0.55);
  --c-overlay-ffffff-10: rgba(255,255,255,0.1);
  --c-overlay-ffffff-50: rgba(255,255,255,0.5);
  --c-overlay-2f5d8a-6: rgba(47,93,138,0.06);

  /* ---- text ---- */
  --muted: #6f6a5f;
  --ink-body: #3d3a34;
  --ink-soft: #5c574d;
  --ink-faint: #8a857b;

  /* ---- status ---- */
  --warn: #8a5a00;
  --warnbg: #fdf3dc;
  --ok: #3d6148;
  --okbg: #e6efe8;
  --ok-dark: #2f5038;
  --ok-soft: #eef4ef;
  --ok-line: #cfe0d3;
  --red: #a33;
  --redbg: #f8e5e5;
  --danger: #8a2b2b;              /* console destructive buttons and error text */
  --danger-ink: #8a1f1f;
  --danger-bg: #fbeaea;
  --hl: #e11d48;                  /* guide highlight ring */

  /* ---- printed documents (quote, order, invoice views in app.html and invoices.html) ---- */
  --doc-ink: #222;
  --doc-text: #333;
  --doc-sub: #555;
  --doc-muted: #777;
  --doc-faint: #999;
  --doc-rule: #ddd;

  /* ---- DIVERGENT: app.html renders these five differently from every other page.
         Kept apart so rendered output does not change; unifying them is a design decision. ---- */
  --app-muted: #5f6670;
  --app-warn: #a8641c;
  --app-warnbg: #fbf1e3;
  --app-ok: #4c7a59;
  --app-okbg: #e9f1eb;

  /* ---- font families ---- */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;                 /* app.html */
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;        /* app.html */
  --font-sans-plain: Inter, Arial, sans-serif;                                  /* every other page */
  --font-sans-system: Inter, system-ui, sans-serif;                             /* console, bubble */
  --font-serif-brand: 'Source Serif 4', Georgia, serif;                         /* headings of the other pages */
  --font-serif-basic: Georgia, serif;                                           /* console and activation headings */
  --font-mono: ui-monospace, Menlo, monospace;

  /* ---- type scale (px) ---- */
  --text-10: 10px;
  --text-10-5: 10.5px;
  --text-11: 11px;
  --text-11-5: 11.5px;
  --text-12: 12px;
  --text-12-5: 12.5px;
  --text-13: 13px;
  --text-13-5: 13.5px;
  --text-14: 14px;
  --text-15: 15px;
  --text-16: 16px;
  --text-17: 17px;
  --text-18: 18px;
  --text-20: 20px;
  --text-22: 22px;
  --text-24: 24px;
  --text-26: 26px;

  /* ---- radius ---- */
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-7: 7px;
  --radius-8: 8px;
  --radius-9: 9px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-14: 14px;
  --radius-pill: 99px;
  --radius-round: 50%;
  --radius-sheet: 20px 20px 0 0;  /* bottom sheet: rounded top corners (the bubble panel) */

  /* ---- shadow ---- */
  --shadow-login-card: 0 20px 50px rgba(0, 0, 0, .25);
  --shadow-down-md: 0 6px 16px rgba(20,48,77,0.3);
  --shadow-down-sm: 0 1px 1px rgba(0,0,0,0.08);
  --shadow-up-md: 0 -4px 14px rgba(20,48,77,0.25);
  --shadow-ring-e11d48-4px: 0 0 0 4px rgba(225,29,72,0.18);
  --shadow-ring-e11d48-8px: 0 0 0 8px rgba(225,29,72,0.06);
  --shadow-ring-ffffff-1px: 0 0 0 1px rgba(255,255,255,0.25);

  /* ---- spacing (px; values used 20+ times in padding, margin and gap) ---- */
  --space-2: 2px;
  --space-3: 3px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-26: 26px;
  --space-28: 28px;
  --space-30: 30px;
  --space-32: 32px;
  --space-34: 34px;
  --space-40: 40px;
  --space-44: 44px;

  /* ---- tap target ---- */
  --tap-min: 44px;
}
