/* ZenMinis design tokens: every colour, size, height, duration and shadow the app uses.
   Loaded before style.css (index.html, styleguide/index.html). Documented in styleguide/index.html,
   whose token check flags any token here it doesn't describe.
   Shared (owner, 2026-11-19, "copy plus check"): the website (zenminis-web) keeps an exact copy of this
   file and never edits it there; its check compares the copy with this file. Change tokens here only. */
:root{
  /* Dark only (owner, 2026-11-17): the light theme and its switch are gone. */
  --ground:#1B1E21; --panel:#24282C; --panel-2:#2B3035;
  --line:#3B4045; --line-soft:#32373C;
  --ink:#E8E6E0; --muted:#989EA4;
  /* Colour roles (owner, 2026-11-18; style guide https://claude.ai/artifact/SVuU7C3D1tSPGTM5RvYnBu).
     Each role has a fill (white on it), a text colour (words, lines, rings and icons on the dark panels)
     and a soft tint (backgrounds). Pick by meaning, never by look:
     success = it worked / it's there (ownership is a form of success: owned corners, in-place ticks,
       progress, Complete). White on the fill is 3.3:1, so only ticks, icons and big numbers on it.
     action  = you can act here / this is selected (main buttons, ✓, tools on, tabs, current page,
       picked options, option tick boxes, focus ring, guidance notices, highlights).
     neutral = no judgement (not owned, not set, disabled, information). --muted is its text colour.
     danger  = loss or a problem. --danger-fill is darker so white text on it reads (4.5:1).
     Not roles: the dark tools (--pill) and the card colours people choose (roles stop at a card's colour). */
  --success:#12A35A; --success-hover:#108E4E; --success-text:#4CC585; --success-soft:rgba(18,163,90,.14);
  --action:#127F86; --action-hover:#0F6E74; --action-text:#4FC3C9; --action-soft:rgba(79,195,201,.13);
  /* Secondary actions (owner, 2026-11-18, sketch styleguide/sketches/primary-secondary-actions.html, Dark grey):
     settings that refine, not what the screen is for. Option switches and option tick boxes when on, picked
     pills (except the defining Type and section kind pickers), the picked catalog, the Includes +. The action
     role stays for primary actions: finishing (✓, Create), defining choices (name, goals, type, kind), page tools,
     tabs, the current page. Fill (white on it), text (outlines), soft tint, like the roles above. */
  --secondary:#5A6168; --secondary-hover:#4C5359; --on-secondary:#FFFFFF; --secondary-text:#9EA4AA; --secondary-soft:rgba(158,164,170,.10);
  --neutral:#6E747A; --neutral-soft:rgba(152,158,164,.12);
  --off:#9BA1A8; /* unchosen goal tiles (solid, under a white ×) */
  /* The not-owned corner (owner, 2026-11-18, option D of styleguide/sketches/not-owned-corner.html): translucent,
     so it takes on the surface below and stays quiet on dark panels, photos and paints alike; shadow kept. */
  --corner-off:rgba(152,158,164,.30); --corner-off-hover:rgba(152,158,164,.50);
  --danger:#D2705A; --danger-fill:#C2553F; --danger-fill-hover:#A94A37; --danger-soft:rgba(210,112,90,.14);
  --on-fill:#FFFFFF; /* text and icons on a role's fill */
  /* On a card's own colour or picture (collection cards, the collection and home headers; style guide S4,
     2026-11-18). Roles stop at a card's colour: controls there are translucent black with white. */
  --on-colour-ink:#FFFFFF; --on-colour-fill:rgba(10,12,14,.32); --on-colour-fill-hover:rgba(10,12,14,.6);
  --on-colour-soft:.85; /* opacity of secondary text there (subtitles, goal names, small labels) */
  --ink-on-light:#22262B; /* dark text on a light paint or card colour */
  /* JS sets the card text colour inline with ON_COLOUR_INK / INK_ON_LIGHT (js/core.js): keep them equal. */
  --picture-shade:rgba(10,12,14,.5); /* darkening over a collection picture, so the white name reads */
  --backdrop:rgba(10,12,14,.55); /* behind a popup */
  --photo-bg:#FFFFFF; /* behind product photos: thumbnails, detail view, Includes, packaging */
  /* Shadows: lift = things sitting on a card's edge (fold button, Reorder arrows); fold = the owned corner;
     menu = ⋮ menus and search suggestions; popup = popups. */
  --shadow-lift:0 2px 6px rgba(0,0,0,.35); --shadow-fold:rgba(0,0,0,.45);
  --shadow-menu:0 10px 24px rgba(0,0,0,.4); --shadow-popup:0 18px 40px rgba(0,0,0,.28);
  /* Control heights (owner, 2026-11-18, style guide S2, sketch https://claude.ai/artifact/5qnm7mPxNsPn6G4XCLaoUh).
     Pick by job: action = popup buttons and fields (where you type or finish a task); tool = tools on the
     page (toolbar, filter selects, OWNED switch, pills, Add item, ⋮, fold button); compact = controls that
     come several in a row or sit in a popup header (page numbers, Reorder arrows, ✓ and Cancel, What's
     included pills, .btn.small); part = small parts inside a row (steppers, ×, the small switches).
     On touch screens each is 4px taller (the rule at the end of this file), and the smaller ones get an invisible
     44px tap area (see "Tap areas" at the end of style.css). */
  --h-action:40px; --h-tool:36px; --h-compact:32px; --h-part:24px;
  /* The app header's height (owner, 2026-11-20, sticky): 56 on wide screens, 52 on phones (≤600px). Things that
     stick below it (paint line headings, the server notice) and scroll-padding-top use it. */
  --h-head:56px; --h-head-sm:52px;
  /* Dimmed states (owner, 2026-11-18, style guide S3). --disabled: a control that can't be used right now,
     and a goal that isn't set; the text beside a disabled control turns --muted instead of fading, and a
     disabled control has no hover and the normal cursor. --faded: an item that isn't owned (tiles, rows,
     packaging cards, the Includes list). Missing thumbnails keep their own stronger look. Something that
     overlaps other content (the Reorder arrows on a card's edge) keeps its fill and fades only its glyph. */
  --disabled:.45; --faded:.62;
  /* Durations (owner, 2026-11-18, style guide S8): pick by job. quick 150ms = a control changes state (colours, knobs,
     chevrons, toasts); fold 250ms = something opens, closes or fades in (filter row, Reorder hint, crossfades, popup
     content); move 350ms = something changes shape or place (search growing, morphs, cards sliding, the Goals fold).
     Moves use --ease-out (settles softly), the rest --ease. Waits in JS use DUR_QUICK / DUR_FOLD / DUR_MOVE in
     js/core.js, kept equal to these. Not on the scale (attention, used once each): rings filling on the home page
     (1.1s, js/home.js), the Reorder arrow's pulse (1.5s), the new card's ring (2.4s). Reduced motion: all off. */
  --dur-quick:150ms; --dur-fold:250ms; --dur-move:350ms;
  --ease:ease; --ease-out:cubic-bezier(.2,.7,.2,1);
  /* Type scale (owner, 2026-11-18, style guide S7 option 1, sketch https://claude.ai/artifact/RSidu44ZK8e92FRgKxa7vC).
     Barlow (reading): body 16 (text, fields, buttons, item names; fields never below 16, or iPhone Safari zooms),
     secondary 14 (menus, notices, subtitles, pills, tick-box labels), small 12 (details, hints, counts, and every
     small-capital label and badge), micro 10 (tiny tags on pictures). Barlow Condensed (names, numbers): number 40
     (big header numbers), title 34 (section, collection and home names; title-sm 28 on phones), heading 22 (popup
     titles, paint line headings, card corner numbers), subheading 18 (tabs, home row names, goal names), badges 12.
     Not on the scale: numbers and labels in rings and cards (sized with them: cqw, px on the phone cards), the colour preview's sample,
     paint swatch labels, and glyphs set as text (×, +). */
  --fs-body:16px; --fs-secondary:14px; --fs-small:12px; --fs-micro:10px;
  --fs-number:40px; --fs-title:34px; --fs-title-sm:28px; --fs-heading:22px; --fs-subheading:18px;
  --radius:3px;
  --card-radius:6px; /* collection cards, the collection header and the home header */
  /* Dark pill buttons on the page (Reorder, ✓): a step darker than the page, with a faint edge so they
     still show, white text, darker on hover (owner, 2026-11-17). */
  --pill:#111315; --pill-hover:#0A0B0D; --pill-ink:#FFFFFF; --pill-edge:rgba(255,255,255,.07);
  color-scheme:dark;
}
/* Touch screens (owner, 2026-11-21, style guide S2, sketch https://claude.ai/artifact/CyKAEnsxpueb1893ik8pie): every
   control height +4px, as a thumb needs more room than a mouse pointer (action 44, tool 40, compact 36, part 28), and the
   phone header as tall as the wide one, so the larger tools fit. The 44px tap areas stay. Sizes inside a control (knobs,
   the avatar, the ⋮'s width) follow from these in style.css. */
@media (pointer:coarse){
  :root{--h-action:44px; --h-tool:40px; --h-compact:36px; --h-part:28px; --h-head-sm:56px}
}
