/* Agent Task Lock: the one design source. tokens.css, Nov 5, 2026.

   Taken from the real app screens on dogfood-2026-11-05 (app/ui: gradea.css, system.css,
   buttons.css, dark.css, tokens.css), with the replaced rules dropped (DESIGN-LAW section 8)
   and the working choices in CONFLICTS-DECIDED.md applied. Status: Proposed. No surface loads
   it yet. SURFACES.md lists, per surface, what changes so each one does.

   Rules in force: set sizes, never ratios or clamp(); nothing under 15px (dense table data is
   the only exception, and it is not given a token here); Manrope only; no hairlines (lines only
   for fields, the secondary button ring, focus, and real tables); every button a pill, every
   icon button a circle; status words in ink or secondary, colour only as a fill, icon or dot;
   #007AFF is the brand diamond and nothing else.

   Values that are not in the app (the marketing site's type scale and section spacing) come
   from DESIGN-LAW V-7 and V-16 and are marked "site". */
/* the shared token file built from design/tokens.json (DTCG, Style Dictionary 5) in the app repo; this file adds the site-only values */
@import url("/design/tokens.css");

:root{
  color-scheme:light;

  /* ---------- type: Manrope, tabular figures ---------- */
  --font:"Manrope",sans-serif;
  --fw-body:500;                 /* app body. Site reading text uses 400 (--fw-read) */
  --fw-read:400;
  --fw-strong:600;               /* row titles, buttons, nav, tabs, labels, site H3 */
  --fw-head:700;                 /* page titles, H1, H2 (CF-10) */
  --ls-head:-0.01em;             /* titles of 20 and up. Never positive tracking, never caps */

  /* app scale (C-009, A-1). Three sizes. Smaller things read quieter by colour, never by size. */
  --fs-moment:28px;  --lh-moment:34px;   /* full-window moments only: first run, empty app, first receipt */
  --fs-title:20px;   --lh-title:26px;    /* page title (one line), inspector, sheet and dialog titles */
  --fs-body:15px;    --lh-body:22px;     /* everything else: body, rows, labels, buttons, tabs, captions */

  /* site scale (V-7, site). Desktop values; phone values below 700px further down. */
  --fs-h1:52px;    --lh-h1:56px;
  --fs-h2:36px;    --lh-h2:42px;
  --fs-h3:24px;    --lh-h3:32px;
  --fs-lead:21px;  --lh-lead:32px;
  --fs-read:18px;  --lh-read:29px;       /* site body */
  --fs-small:15px; --lh-small:22px;      /* site small, labels and buttons */

  /* ---------- colour: light (default) ---------- */
  --c-ink:#0B0D10;              /* CF-2: one ink. The app's #101418 moves to this */
  --c-sec:#3A3F47;              /* secondary text. Nothing lighter on white (V-7, READ) */
  --c-on-pri:#FFFFFF;
  --c-canvas:#F1F2F4;           /* window behind the sheet */
  --c-sheet:#FFFFFF;            /* main work plane (A-6) */
  --c-pane:#F7F8F9;             /* side-details plane, flush right and bottom (A-6). = canvas 55% into sheet */
  --c-hover:#F5F5F6;
  --c-sel:#E4E8EE;              /* selected row or place */
  --c-press:#D6DCE4;
  --c-line:#C3C8CE;             /* ONLY: field outline (CF-5, open B-12), secondary button ring (CF-11) */
  --c-focus:#0B4FA8;            /* 2px focus ring, offset 2 */
  --c-diamond:#007AFF;          /* the brand diamond only */
  --c-scrim:rgba(11,13,16,.38);

  /* status (owner, 2026-10-22). -fill: the exact colour for fills, dots, icons, bars.
     -text: the 7:1 shade, only where a word must carry the state (a refusal, a danger button).
     Rows don't colour their status words (H-3, CF-4). */
  --c-wait-fill:#0B4FA8;   --c-wait-text:#0B4FA8;    /* Steel Azure: waiting, links, active */
  --c-kept-fill:#2FBF71;   --c-kept-text:#19653C;    /* Emerald: kept, protected */
  --c-stop-fill:#E63946;   --c-stop-text:#B01622;    /* Punch Red: thrown away, stopped, danger */
  --c-back-fill:#F4D35E;   --c-back-text:#6D5607;    /* Royal Gold: sent back, needs you */
  --c-on-fill:#0B0D10;                               /* words on the Emerald or Gold fill */
  --c-danger-btn:#B01622;                            /* red button with words: white text */

  /* ---------- shape ---------- */
  --r-pill:999px;               /* every button, chip, segmented track and option, select */
  --r-circle:50%;               /* every icon-only button, step marker, avatar */
  --r-field:8px;                /* text inputs and textareas */
  --r-float:8px;                /* raised menus, popovers, dialogs, the one in-place error */
  --r-mark:4px;                 /* checkbox, focus ring on a non-pill */
  /* no other radius. A rounded tinted box around a group is a card (A-4, V-19): don't */

  /* ---------- controls ---------- */
  --btn-h:44px;  --btn-px:20px;  --btn-fs:15px;  --btn-fw:600;
  --btn-sm-h:36px; --btn-sm-px:14px;             /* small button, chip, option inside a track, sidebar place */
  --btn-gap:12px;
  --field-h:44px; --field-px:12px;               /* D-2 (Nov 10): 44 everywhere, the button height */
  /* primary: --c-ink fill, --c-on-pri text, one per view.
     secondary: --c-sheet fill, inset 0 0 0 1px var(--c-line), --c-ink text (CF-11).
     quiet action standing alone: the secondary pill, never bare text (A-1). */

  /* ---------- spacing: the one scale (round-theme, Nov 9). Every margin, padding and gap on the
     site is one of these steps; tests/site-current.test.js fails on any other value.
     Measured on every page at 390, 1024 and 1440: sections sit 64 + 64 apart (48 + 48 under 700px),
     so 48 and 64 are steps and 56 is not. 2px is only for hairline offsets inside the app window. ---------- */
  --sp-2:2px; --sp-4:4px; --sp-8:8px; --sp-12:12px; --sp-16:16px; --sp-20:20px; --sp-24:24px;
  --sp-32:32px; --sp-40:40px; --sp-48:48px; --sp-64:64px; --sp-96:96px; --sp-128:128px;

  /* app layout (system.css page anatomy, C-014) */
  --side-w:224px;               /* sidebar */
  --top-h:56px;                 /* toolbar */
  --page-pt:24px; --page-px:32px; --page-pb:40px;   /* one page margin, every screen */
  --title-gap:16px;             /* page header to content */
  --w-wide:1120px; --w-read:760px;                  /* the two narrower page widths; full is the third */
  --insp-w:400px;               /* side pane; 360px under 1180px */
  --row-1:48px; --row-2:56px;   /* one-line and two-line rows */
  --icon:16px; --icon-stroke:1.5;
  --dia:8px;                    /* the needs-you diamond, left column only (H-3) */
  --shadow-float:0 1px 2px rgba(16,20,24,.08),0 12px 32px rgba(25,40,65,.16);   /* floating things only */

  /* site spacing (V-16, site) */
  --site-section:128px;         /* 96px under 700px */
  --site-note-h2:32px; --site-h2-lead:16px; --site-lead-actions:40px;
  --site-actions-fine:20px; --site-para:16px;
  --site-max:1120px;

  /* ---------- motion: only on a change; nothing with reduced motion ---------- */
  --mo-ease:cubic-bezier(.2,0,0,1);
  --mo-press:100ms; --mo-sel:120ms; --mo-hover:150ms; --mo-insp:180ms; --mo-stop:200ms; --mo-appear:240ms; --mo-stagger:60ms;
}

/* site: phone sizes (V-7). Set sizes, no clamp() */
@media (max-width:699px){
  :root{
    --fs-h1:38px; --lh-h1:42px;
    --fs-h2:28px; --lh-h2:34px;
    --fs-h3:21px; --lh-h3:28px;
    --fs-lead:19px; --lh-lead:29px;
    --site-section:96px;
  }
}
@media (max-width:1179px){ :root{ --insp-w:360px; } }

/* ---------- colour: dark (a switch, never the default). From app/ui/dark.css. No navy ---------- */
[data-theme=dark]{
  color-scheme:dark;
  --c-ink:#ECEDEF;
  --c-sec:#C3C8CE;
  --c-on-pri:#111214;           /* primary is a light pill on dark */
  --c-canvas:#0F1011;
  --c-sheet:#1D1E21;
  --c-pane:#151618;             /* = canvas 55% into sheet, as in light */
  --c-hover:#232427;
  --c-sel:#2C2F35;
  --c-press:#36393F;
  --c-line:#5F6670;             /* field and secondary ring only; never text */
  --c-focus:#75ADF6;
  --c-scrim:rgba(0,0,0,.38);
  --c-wait-text:#75ADF6;
  --c-kept-text:#30C172;
  --c-stop-text:#F18D94;
  --c-back-text:#F4D35E;
  --shadow-float:0 12px 32px rgba(0,0,0,.45);
  /* fills, --c-on-fill, --c-diamond and --c-danger-btn stay the same */
}

@media (prefers-reduced-motion:reduce){
  :root{ --mo-press:0ms; --mo-sel:0ms; --mo-hover:0ms; --mo-insp:0ms; --mo-stop:0ms; --mo-appear:0ms; --mo-stagger:0ms; }
}

/* Native surfaces (iPhone SwiftUI, Safari host app) can't load this file. SURFACES.md gives the
   same values as Swift constants for Theme.swift. Swift uses pt at the same numbers. */
