/* tokens.css - the shared style tokens for Render Relay's phone page: the starter block of
   ~/.claude/skills/iphone-look/references/web-style.md section 10 (light + dark colours, shape, spacing scale on the
   4 px unit, type, motion, z layers), copied once, with ONE change: every rule is scoped to the new looks.
   Current stays pixel-identical: nothing here applies unless <html data-look="a"> or "b" (look.js sets it; the
   switch lives in the "New look" card). app.css does not use any of these names (checked 2026-11-23), but a scope
   keeps it that way. The new looks' rules (app.css, html[data-look="a"] ...) read these variables, never raw hex.
   His words: "take grid lines to literally everything in order to ensure it's all properly aligned". Spacing is
   --s-1 (4) .. --s-7 (48), 12 columns, gutter 16 (24 from 900 px), side margin 16 / 20 (414 px) / 32 (900 px).
   The grid overlay (grid-overlay.js/.css) does NOT need this file: it carries its own fallbacks, so ?grid=1 works
   under Current too. tests/align/align-check.mjs skips this file when it asks "has a look been built yet?". */
html[data-look="a"], html[data-look="b"] {
  color-scheme: light dark;
  --bg: #f2f2f7; --card: #ffffff; --card-2: #f2f2f7; --card-3: #e5e5ea; --round: #ffffff;
  --text: #000000; --text-2: #6c6c70; --text-3: #c7c7cc; --sep: #c6c6c8; --sep-strong: #aeaeb2;
  --fill: rgba(120,120,128,.12); --fill-2: rgba(120,120,128,.20); --press: rgba(0,0,0,.06); --scrim: rgba(0,0,0,.32);
  --shadow-card: 0 1px 2px rgba(0,0,0,.04);
  --shadow-pop: 0 12px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  --green: #34c759; --red: #ff3b30; --orange: #ff9500; --yellow: #ffcc00; --blue: #007aff; --purple: #af52de;
  --pink: #ff2d55; --teal: #30b0c7; --grey: #8e8e93; --indigo: #5856d6; --cyan: #32ade6;
  --warn-text: #c93400; --ok-text: #1f8a3b;
  --accent: var(--blue); --accent-ink: #ffffff; --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --sheet: #ffffff; --seg-on: #ffffff; --menu-bg: rgba(250,250,252,.96); --toast-bg: #2c2c2e; --toast-ink: #ffffff;
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.72));
  --glass-rim: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.06), inset 0 0 0 .5px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.14);
  --glass-solid: #e6e6ea; --glass-pill: rgba(0,0,0,.075); --tab-idle: #3c3c43;
  --fade-0: rgba(242,242,247,0); --fade-72: rgba(242,242,247,.72); --rim: 0 1px 2px rgba(0,0,0,.08);
  /* shape (radii are Apple-measured and exempt from the 4 px grid) */
  --radius-card: 26px; --radius-sm: 17px; --radius-row: 14px; --side: 16px; --gap: 24px; --tab-h: 62px;
  --sidebar-w: 232px; --panel-w: 440px; --col-w: 720px;
  /* spacing scale, 4 px unit (the grid rule) and columns */
  --u: 4px; --cols: 12;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --gutter: 16px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --font: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --fs-title: 34px; --fs-section: 22px; --fs-body: 17px; --fs-sub: 15px; --fs-foot: 13px; --fs-cap: 12px; --fs-tab: 10px;
  --ease-out: cubic-bezier(.23,1,.32,1); --ease-in-out: cubic-bezier(.77,0,.175,1); --ease-drawer: cubic-bezier(.32,.72,0,1);
  --t-fast: 140ms; --t-med: 220ms; --t-sheet: 320ms;
  --z-fade: 19; --z-tabbar: 20; --z-sheet: 40; --z-modal: 70; --z-menu: 80; --z-toast: 90;
  /* Burn Week 05 round 2 (02-direction.md section 5): the names every phone piece writes against.
     Identity = the Render Relay mark's red, the logo only; never a button, never a status. */
  --id: #ff3535;
  /* Status dots, bars and ticks (3:1 on --card) and the words (4.5:1 on --card, --bg and a 16% tint of the status):
     tests/web/look-tabs.test.mjs checks every pair, light + dark. Three values differ from web-style (they failed 4.5:1 on
     the status tint): --ok-text and --warn-text are deeper (light), --bad-text mixes 70% black (light) / 80% white (dark). */
  --st-bad: var(--red);
  --st-ok: color-mix(in srgb, var(--green) 70%, #000);
  --st-wait: color-mix(in srgb, var(--grey) 85%, #000);
  --st-work: var(--text-2);
  --st-warn: color-mix(in srgb, var(--orange) 75%, #000);
  --ok-text: #146a2a; --warn-text: #b02e00;
  --bad-text: color-mix(in srgb, var(--red) 70%, #000);
  /* the look's own density: A is grouped cards (row 64, gap 24, radius 26), B is separate tiles (row 56, gap 16, radius 14) */
  --row-h: 64px; --pad-card: 16px; --gap: 24px; --ctl-h: 40px; --tile-r: 26px;
  --knob: #ffffff; --knob-shadow: 0 2px 6px rgba(0,0,0,.25);
  /* Round 3: system blue is 4.0:1 on white, so TEXT actions (links, sheet buttons, the Re-upload word, the current tab) read
     --accent-text and a FILLED button under white words reads --accent-btn; --accent itself stays the system blue for everything
     that is not words (focus ring, caret, selection). Light = darker blue, dark = lighter blue; tests/web/look-tabs.test.mjs
     checks 4.5:1 on every surface they sit on. */
  --accent-text: color-mix(in srgb, var(--accent) 70%, #000);
  --accent-btn: color-mix(in srgb, var(--accent) 85%, #000);
}
html[data-look="b"] { --row-h: 56px; --gap: 16px; --tile-r: 14px; }
@media (min-width: 414px) { html[data-look="a"], html[data-look="b"] { --side: 20px; } }
@media (min-width: 900px) { html[data-look="a"], html[data-look="b"] { --side: 32px; --gutter: 24px; } }
@media (prefers-color-scheme: dark) {
  html[data-look="a"], html[data-look="b"] {
    --bg: #000000; --card: #1c1c1e; --card-2: #2c2c2e; --card-3: #313034; --round: #1f1f1f;
    --text: #ffffff; --text-2: #98989f; --text-3: #5c5c62; --sep: #38383a; --sep-strong: #48484a;
    --fill: rgba(120,120,128,.24); --fill-2: rgba(120,120,128,.36); --press: rgba(255,255,255,.08); --scrim: rgba(0,0,0,.55);
    --shadow-card: none;
    --shadow-pop: 0 14px 44px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
    --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --yellow: #ffd60a; --blue: #0a84ff; --purple: #bf5af2;
    --pink: #ff375f; --teal: #63e6e2; --indigo: #5e5ce6; --cyan: #64d2ff;
    --warn-text: #ff9f0a; --ok-text: #30d158;
    --st-wait: var(--grey); --st-ok: var(--green); --st-warn: var(--orange); --bad-text: color-mix(in srgb, var(--red) 80%, #fff);
    --accent-text: color-mix(in srgb, var(--accent) 70%, #fff);
    --sheet: #1c1c1e; --seg-on: #636366; --menu-bg: rgba(44,44,46,.96); --toast-bg: #3a3a3c;
    --glass-bg: linear-gradient(180deg, rgba(140,140,146,.34), rgba(140,140,146,.42));
    --glass-rim: inset 0 1px 0 rgba(255,255,255,.24), inset 0 3px 3px -2px rgba(255,255,255,.12), inset 0 -1px 0 rgba(255,255,255,.32),
      inset 0 -3px 3px -2px rgba(255,255,255,.12), inset 0 0 0 .5px rgba(255,255,255,.10), 0 8px 24px rgba(0,0,0,.35);
    --glass-solid: #353537; --glass-pill: rgba(0,0,0,.48); --tab-idle: #fefefe;
    --fade-0: rgba(0,0,0,0); --fade-72: rgba(0,0,0,.72); --rim: inset 0 1px 0 rgba(255,255,255,.10);
  }
}
