/* ==========================================================================
   VERSER UI KIT: DESIGN TOKENS

   Three tiers, read top to bottom:
     Tier 1  raw palette. Named colours, stacks and steps with no meaning (--verser-purple-500).
     Tier 2  meaning. What a value is for (--surface-panel, --accent, --danger, --radius-md, --density).
     Tier 3  per component (--verser-chip-fill, --verser-sheet-radius). Tier 3 reads tier 2 only, never a raw value.

   Then the app's own token names (--a, --b, --bad, --glass-panel, --r-panel, --font...), kept because every
   stylesheet in the app reads them. Each one points at tier 2, so it computes exactly what it did before under the
   default theme, and follows whatever theme is chosen.

   Themes (ui/themes/*.css) set tier 1 and tier 2 values only: colours, radius, density, fonts. Never a component
   rule and never a tier 3 token. The default theme is ui/themes/youverse.css; config.js THEME picks one, and an
   inline script in index.html puts it on <html data-theme="..."> before first paint.

   Glass: the kit's card, nav and overlay (--vx-card, --vx-nav, --vx-overlay) are the tints and the solid colour; the surfaces
   (--surface-thin/nav/panel/modal) are what components read, and the fallbacks at the end of this file swap them
   to the solid colour when there is no backdrop-filter or the user asked for less transparency.
   ========================================================================== */

:root{
  /* ------------------------------------------------------------------------
     TIER 1: RAW PALETTE
     ------------------------------------------------------------------------ */
  /* Backdrop hues, sampled from the lead's reference image */
  --verser-crimson-500:#B43938;
  --verser-night-950:#0C0036;
  /* The magenta of the flowing backdrop at full strength */
  --verser-flow-magenta:#FF40A0;
  /* Neutrals */
  --verser-white:#FFFFFF;
  /* The brand's purples and cyans, and the live reds */
  --verser-purple-500:#8B5CF6;--verser-purple-600:#7C3AED;--verser-teal-700:#0E7490;--verser-sky-400:#21D4FD;
  --verser-red-500:#E5484D;--verser-red-600:#C8343A;
  /* White at fixed strengths */
  --verser-white-a06:rgba(255,255,255,.06);
  /* Sky (33,212,253) at a fixed strength */
  --verser-sky-a34:rgba(33,212,253,.34);
  /* Black and the near-blacks: shadows on photos and video, a fade mask's solid stop, text on white paper, dark text on
     the mint, the reel viewer's night; and the sign-in providers' own colours. */
  --verser-black:#000000;--verser-ink-950:#111111;--verser-mint-950:#04241C;--verser-mint-975:#04211A;--verser-reel-950:#0A0422;
  --verser-google-ink:#1F1F1F;--verser-google-edge:#747775;
  /* The Parley arena's own palette (Verser's "Let's argue" battle): periwinkle and cyan for the top agent, orchid and
     fuchsia for the bottom one, gold for the win, over a void night. */
  --verser-periwinkle-100:#DBE3FF;--verser-periwinkle-300:#8FA6FF;
  --verser-periwinkle-500:#6E8BFF;--verser-orchid-100:#F0E0FF;--verser-orchid-300:#C89BFF;--verser-orchid-500:#A855F7;
  --verser-fuchsia-500:#EC4899;--verser-cyan-150:#7FF0FF;--verser-cyan-250:#7FE9F5;--verser-cyan-400:#22D3EE;
  --verser-gold-400:#FBBF24;
  --verser-void-950:#070512;
  /* Type stacks (the new design, 27 Oct). Syne for the big headers (Alexandria carries their Arabic), Inter for the body,
     JetBrains Mono for every small and secondary line and the figures; IBM Plex Sans Arabic carries Arabic in the other two. */
  --verser-stack-syne:"Syne","Alexandria","IBM Plex Sans Arabic",-apple-system,system-ui,sans-serif;
  --verser-stack-inter:"Inter","IBM Plex Sans Arabic",-apple-system,"SF Pro Text","Segoe UI",system-ui,sans-serif;
  --verser-stack-jetbrains-mono:"JetBrains Mono","IBM Plex Sans Arabic","SF Mono",ui-monospace,Menlo,monospace;
  /* The spacing unit every step is a multiple of */
  --verser-unit:4px;

  /* ------------------------------------------------------------------------
     TIER 2: MEANING
     ------------------------------------------------------------------------ */
  /* Surfaces: the kit's floor, cards and overlay (--vx-floor, --vx-card, --vx-overlay); the modal tint and the clear glass
     stay names of their own, so a theme can set them apart from the card. */
  --glass-tint-modal:var(--vx-card);
  --surface-thin:var(--vx-card-ghost);--surface-nav:var(--vx-nav);
  --surface-panel:var(--vx-card);--surface-modal:var(--glass-tint-modal);
  /* Chat bubbles and the composer on the Live stage: clear glass, lighter blur. */
  --surface-clear:var(--vx-card-ghost);
  /* Flat fills for everything that sits inside glass, three levels */
  --surface-fill-1:var(--vx-well);--surface-fill-2:var(--vx-off);--surface-fill-3:color-mix(in srgb,var(--vx-ink) 13%,transparent);
  --surface-row:transparent;--surface-chip:var(--vx-well);
  --surface-pressed:color-mix(in srgb,var(--vx-ink) 12%,transparent);
  --surface-gloss:linear-gradient(180deg,var(--vx-card-ghost) 0%,transparent 38%);
  --surface-fog:linear-gradient(transparent,transparent);
  --scrim:var(--vx-scrim);
  --blur:var(--vx-blur);--blur-sheet:blur(32px);--blur-chat:blur(12px);

  /* Text */
  --text:var(--vx-ink);--text-secondary:var(--vx-ink-2);--text-muted:var(--vx-ink-2);
  --text-disabled:color-mix(in srgb,var(--vx-ink-3) 75%,transparent);
  /* The soft night shadow under text and icons that sit straight on the stage. */
  --text-shadow:color-mix(in srgb,var(--vx-floor) 60%,transparent);

  /* Accents, one job each. Accent: the user's controls (the kit's ink; a theme may give it a hue). Agent: the agent only. */
  --accent:var(--vx-ink);--on-accent:var(--vx-on-ink);--on-agent:var(--vx-on-hue);
  --accent-fill:linear-gradient(var(--vx-ink),var(--vx-ink));
  /* The one solid control: bone on glass. */
  --primary:var(--vx-ink);--primary-hover:var(--vx-ink);--on-primary:var(--vx-on-ink);
  /* The brand: the app icon's gradient, on the Verser mark. */
  --brand-from:var(--verser-purple-500);--brand-to:var(--verser-sky-400);
  /* The Verser mark (the pour): the brand colours running top to bottom, purple into a cyan drop. */
  --mark-from:var(--brand-from);--mark-mid:color-mix(in srgb,var(--brand-from) 50%,var(--brand-to));--mark-to:var(--brand-to);--mark-glow:var(--verser-sky-a34);
  --brand-glow:var(--verser-sky-a34);
  /* The edge of the logo's tile: ui/components/logo reads it, and the logo's files stay as they are. */
  --brand-edge:var(--vx-hair-2);
  --logo:linear-gradient(135deg,var(--verser-purple-600),var(--verser-teal-700));

  /* Status. Danger and warn are the dots, bars, rims and fills, and hold 3:1 on every part of the backdrop; warn is for
     warnings only. Text in those tones takes the light tints, which hold 4.5:1 as text on the ember, the warmest part
     of the backdrop (so does the link). */
  --success:var(--vx-success);--warn:var(--vx-warn);--danger:var(--vx-danger);
  --danger-text:var(--vx-danger-text);--warn-text:var(--vx-warn-text);
  --notice:var(--vx-agent);--on-notice:var(--vx-on-hue);
  /* A project's lifecycle (2 Nov 2026): one muted hue per status, all from the palette above, each with its own glyph
     (#i-lifecycle-*), so the colour is never the only signal. */
  --lifecycle-on-hold:var(--warn);--lifecycle-completed:var(--success);--lifecycle-cancelled:var(--text-disabled);
  /* On air: the LIVE pill, the live dot and a live agent's card edge. */
  --live:var(--verser-red-500);--live-fill:var(--verser-red-600);--on-live:var(--verser-white);

  /* Borders */
  --hairline:var(--vx-hair);
  --border-field:var(--vx-hair);--border-row:var(--hairline);

  /* Focus. One ring for every control, outside the control. White: it holds 3:1 on every part of the backdrop, the
     ember included (violet-400 got 2:1 there). */
  --focus-ring:var(--vx-focus);--focus-ring-width:2px;--focus-ring-offset:2px;
  /* The violet edge of a kit chip or option that is picked and of a field being typed in (once the ring's colour). */
  --selected-edge:var(--vx-ink);
  --glow-agent:color-mix(in srgb,var(--vx-agent) 26%,transparent);--glow-agent-soft:color-mix(in srgb,var(--vx-agent) 8%,transparent);

  /* Controls: tracks, handles, tabs */
  --track:var(--vx-off);--track-fill:var(--vx-ink);

  /* Shape. Radius steps; a theme may change any of them. */
  --radius-xs:var(--vx-r-xs);--radius-sm:var(--vx-r-sm);--radius-md:var(--vx-r-sm);--radius-pill:var(--vx-r-pill);
  /* The small steps under xs (ticks, bars, tags, thumbnails), and round: a circle whatever the size. */
  --radius-2xs:var(--vx-r-2xs);--radius-3xs:var(--vx-r-3xs);--radius-4xs:4px;--radius-5xs:3px;--radius-6xs:var(--vx-r-tick);--radius-round:var(--vx-r-round);

  /* Density: one multiplier the kit components scale padding and height by (1 = the YouVerse spacing). */
  --density:1;
  --space-1:calc(var(--verser-unit) * 1 * var(--density));--space-2:calc(var(--verser-unit) * 2 * var(--density));
  --space-3:calc(var(--verser-unit) * 3 * var(--density));--space-4:calc(var(--verser-unit) * 4 * var(--density));
  --space-5:calc(var(--verser-unit) * 5 * var(--density));--space-6:calc(var(--verser-unit) * 6 * var(--density));
  --space-8:calc(var(--verser-unit) * 8 * var(--density));--space-10:calc(var(--verser-unit) * 10 * var(--density));
  /* Fluid scale (the lead, 27 Oct: "shrink accordingly, grow"). Sizes that glide between a 320px phone and a ~700px
     column instead of jumping at single widths (no more one-off max-width:359px patches). The vw steps follow the
     window; the cqi steps follow the card they sit in (a container), so a card squeezed beside the desktop dock sizes by
     its own width, not the window's. Each holds inside its min and max. */
  --fluid-gap:clamp(8px, 4.6px + 1.06vw, 12px);
  --fluid-gutter:clamp(12px, 8.6px + 1.06vw, 16px);
  --fluid-text-title:clamp(20px, 16.6px + 1.06vw, 24px);
  /* The responsive grid (ui/components/grid): a column never gets narrower than --grid-min; under that the row drops a column. */
  --grid-min:160px;--grid-gap:var(--fluid-gap);
  /* Control heights. Touch targets never drop under --tap-min, whatever the density. */
  --tap-min:44px;--control-height:calc(44px * var(--density));--control-height-sm:calc(36px * var(--density));

  /* Type */
  /* Display: big headers only. UI: the body. Mono: eyebrows, section heads, sub-lines, meta, notes, pills, counts, times, figures. */
  --font-ui:var(--verser-stack-inter);--font-display:var(--verser-stack-syne);--font-mono:var(--verser-stack-jetbrains-mono);
  /* The brand face: the Verser wordmark (Syne), the same stack as the big headers. */
  --font-brand:var(--verser-stack-syne);
  /* Mono labels in right-to-left text: IBM Plex Sans Arabic comes before the theme's mono font, so Arabic letters join. */
  --font-mono-rtl:"IBM Plex Sans Arabic",var(--font-mono);
  /* Big figures (2 Nov, the lead's B3): the mono with a plain zero. JetBrains Mono's zero carries a dot, which at 30px and
     up reads as a symbol ("Tasks completed 0"); "Verser Figure Zero" is that zero with the dot taken out and covers only
     U+0030, so every other figure stays JetBrains Mono. Only for large figures: small meta and codes keep the dotted
     zero, which tells 0 from O. */
  --font-figure:"Verser Figure Zero",var(--font-mono);
  /* Full sentences (2 Nov, the lead's B1): empty-state lines, card sub-lines that describe, helper text and hints are
     in the UI face at --font-size-small. The mono stays for what is read at a glance, not read through: figures,
     times, dates, counts, codes, meta labels (a role, a status, "Sara Noor · Waiting for verification"). */
  --font-sentence:var(--font-ui);
  /* Type sizes (the lead, 29 Oct: "everything for the UI should be from the kit, nothing hardcoded"). Every text size a
     screen sets is one of these steps. Reading is the size long text is read at (transcripts, minutes, summaries) and
     every input's (16px keeps iOS from zooming); title and display glide with the window. */
  --font-size-caption:var(--vx-fs-2);      /* pills, badges, counts on tabs */
  --font-size-meta:var(--vx-fs-5);       /* mono meta: times, dates, durations, eyebrows */
  --font-size-small:var(--vx-fs-7);      /* secondary lines, helper text, warnings */
  --font-size-body:var(--vx-fs-10);         /* row titles, list text, buttons */
  --font-size-reading:var(--vx-fs-12);      /* long text and inputs */
  --font-size-heading:18px;      /* a section's heading inside a page or a card */
  --font-size-title:var(--fluid-text-title);                 /* 20 to 24: sheet and card titles */
  --font-size-display:clamp(26px, 21.4px + 1.4vw, 30px);     /* page and document titles, in the display face */
  --line-height-tight:1.15;--line-height-snug:1.35;--line-height-body:1.5;
  /* Hairlines and rims: the one border width (the focus ring has its own, --focus-ring-width). */
  --border-width:1px;

  /* Shadows carry the night hue and stay soft: glass is lifted by its rim, not by a drop shadow.
     Small for controls; large for floating layers (panels, sheets, nav) only. */

  /* Motion: enter/exit, moving on screen, bottom sheets; and three durations. */
  --ease-out:var(--vx-ease);--ease-in-out:cubic-bezier(0.77, 0, 0.175, 1);--ease-drawer:cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast:120ms;--duration-base:200ms;--duration-slow:300ms;

  /* Layout */
  --phone:460px;
  /* Home on a desktop splits into two columns (the width is written into desktop.css's and workspace.css's @container
     rules): the numbers with Team pulse under them in the wider start column, My tasks in the end one (30 Oct).
     --desk-home-lead-rows: grid rows kept for the parts above Team pulse and My tasks (eleven today). */
  --desk-home-start:1.2fr;--desk-home-end:1fr;--desk-home-lead-rows:12;
  /* Home's least height on a desktop (B5): the window less the desktop page's top and bottom room (desktop.css .phone). */
  --desk-home-fill:calc(100dvh - 96px);
  /* Home's work status turns into the pill beside the greeting (the width is written into desktop.css's @container
     rule), one width in every state, set at the greeting's height. */
  --desk-work-pill-w:340px;--desk-work-pill-top:18px;
  /* Phone or desktop layout (27 Oct, the lead: "the side bar is only on the phone screen"). The desktop layout (body.desk)
     takes every window at least 720px wide, touch tablets included; a phone on its side (under 501px tall with a touch
     screen) keeps the phone layout. Media queries cannot read a variable: the one source is DESK_MEDIA in workspace.js
     (DESKTOP MODE); desktop.css and the kit's sheet, dialog and chip write the same numbers. Under 1024px the rail
     compacts to --desk-rail-compact (icon over a small label); under 1200px the open dock floats over the middle instead
     of taking a column, and starts collapsed. */
  --desk-rail-full:248px;--desk-rail-compact:84px;
  --desk-dock:400px;
  /* What a sheet keeps clear of on the desktop: the dock's chat window (its 360px and its 24px from the edge) and, with
     the dock collapsed, its small text box (24px up, about 52px tall) under a tall sheet. */
  --desk-dock-chat-room:384px;--desk-dock-min-room:100px;
  --desk-dock-inset:var(--vx-sp-6);--desk-dock-min-w:316px;--desk-dock-chat-w:360px;   /* the folded box and the chat window: their corner inset and widths */
  /* Projects (2026-10-30): a project card's (and a project Overview column's) narrowest width on the desktop; the task
     pane on a project's page clears the collapsed dock's small box by this much. */
  --desk-project-card-min:320px;--desk-dock-min-clear:66px;
  /* How far the round + and the Drive tray stand up while the dock is folded, clear of its small box (24px up, about
     52px tall); a side pane's cap counts it too ([data-pane-fit]: --vx-fab-lift). */
  --desk-fab-lift:64px;
  --icon-size-sm:14px;--icon-size-md:18px;
  /* The floating agent button (ui/components/fab): its size, its inset from the screen's side (inside the phone column
     on a wide screen), its line from the bottom (the old nav line: --nav-bottom + 92px), the gap kept above it, and the
     reserve: the bottom room a phone page keeps so its last row scrolls clear of the button and of a screen's round +,
     which sits on the same line. Every page or floating bar that clears the button uses --verser-fab-reserve. */
  --verser-fab-size:56px;
  --verser-fab-inset:max(16px,calc(50% - var(--phone) / 2 + 16px));
  --verser-fab-bottom:calc(var(--nav-bottom) + 92px);
  --verser-fab-gap:16px;
  --verser-fab-reserve:calc(var(--verser-fab-bottom) + var(--verser-fab-size) + var(--verser-fab-gap));
  /* A task row in a desktop list (desktop.css .task-row, the Projects split): the gap between its parts, its padding,
     and the initials of someone else's row. */
  --verser-task-row-gap:10px;--verser-task-row-padding-block:9px;--verser-task-row-padding-inline:10px;
  --verser-task-row-avatar-size:26px;

  /* Art direction: the backdrop and the stage. A theme may replace any of these whole. */
  /* The stage wears the same flowing light as the backdrop, with the ember glow over the head. */
  --stage:var(--vx-bg);
  --stage-glow:radial-gradient(ellipse 85% 55% at 50% 6%,var(--vx-stage-glow) 0%,transparent 100%);
  --story-top-scrim:linear-gradient(180deg,color-mix(in srgb,var(--vx-floor) 50%,transparent) 0%,color-mix(in srgb,var(--vx-floor) 24%,transparent) 55%,transparent 100%);
  --story-foot-scrim:linear-gradient(0deg,color-mix(in srgb,var(--vx-floor) 55%,transparent) 0%,color-mix(in srgb,var(--vx-floor) 30%,transparent) 55%,transparent 100%);
  --story-fade:linear-gradient(180deg,transparent 0,black 20px);
  --story-fade-ends:linear-gradient(180deg,transparent 0,black 20px,black calc(100% - 16px),transparent 100%);
  /* The veil the agent's stage puts under its glass (bubbles, chips): the floor of the mode. */
  --story-head-veil-w:420px;--story-head-veil-h:380px;--story-head-veil-h-dock:200px;
  --stage-scrim:linear-gradient(0deg,color-mix(in srgb,var(--vx-floor) 90%,transparent) 0%,color-mix(in srgb,var(--vx-floor) 84%,transparent) 22%,color-mix(in srgb,var(--vx-floor) 66%,transparent) 42%,color-mix(in srgb,var(--vx-floor) 42%,transparent) 60%,color-mix(in srgb,var(--vx-floor) 20%,transparent) 76%,color-mix(in srgb,var(--vx-floor) 6%,transparent) 90%,transparent 100%);
  /* A night veil over the top of the screen, so eyebrows, errors, links and placeholders there read at AA on the ember. */
  --top-scrim:linear-gradient(180deg,color-mix(in srgb,var(--vx-floor) calc(var(--vx-glow) * 48%),transparent) 0,color-mix(in srgb,var(--vx-floor) calc(var(--vx-glow) * 40%),transparent) 200px,transparent 400px);
  /* The page backdrop: the night veil over the kit's flowing YouVerse light (--vx-bg, per mode). */
  --backdrop:var(--top-scrim),var(--vx-bg);
  /* The page backdrop's tone (2 Nov, the lead's B2): about 20% less saturated than the flowing light at full strength,
     so the glass cards separate from the page while the hues and their order stay the same. Applied as a filter on the
     page's one fixed backdrop layer (and the boot screen's), never on the stage behind the agent's face. */
  --backdrop-tone:none;
  /* Icons drawn as data URIs. url() cannot read a variable, so their stroke colours are written in; a theme with a
     light surface replaces the whole value. */
  --check-mark:var(--vx-tick);

  /* Mask shapes (29 Oct, the ERP kit additions). Used as CSS masks only, so only their alpha counts and the colour
     comes from the element's own background (a theme colour): an approval step's done tick and declined cross cut
     out of a filled dot, and the dependency badge's link and lock. */
  --icon-step-done:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='white'/%3E%3Cpath d='m7 12.4 3.3 3.3L17.2 8.8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='12' fill='white' mask='url(%23m)'/%3E%3C/svg%3E");
  --icon-step-declined:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='white'/%3E%3Cpath d='m8.2 8.2 7.6 7.6m0-7.6-7.6 7.6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='12' fill='white' mask='url(%23m)'/%3E%3C/svg%3E");
  --icon-link:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E");
  --icon-lock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  /* Kit cleanup milestone 3 (27 Oct): the colours app stylesheets wrote by hand, each given a meaning here. */
  /* Over photos, video and paper: these do not follow the theme, because what is under them does not. */
  --on-media:var(--verser-white);--media-shadow:var(--verser-black);--media-scrim:var(--verser-reel-950);
  --paper-text:var(--verser-ink-950);
  /* A fade mask's solid stop: only its alpha counts. */
  --mask-opaque:var(--verser-black);
  /* Dark text on the mint (a listening mic, the back-to-the-call bar). */
  --on-success:var(--verser-mint-950);--on-success-deep:var(--verser-mint-975);
  /* Sign in with Google and Apple keep their own colours. */
  --sso-google-fill:var(--verser-white);--sso-google-edge:var(--verser-google-edge);--sso-google-text:var(--verser-google-ink);
  --sso-apple-edge:var(--verser-white);--sso-apple-text:var(--verser-black);
  /* A picked card's edge; the sheen that crosses Get started; the sign-up art's plates. */
  --border-selected:color-mix(in srgb,var(--text) 55%,transparent);
  --sheen:color-mix(in srgb,var(--verser-white) 32%,transparent);
  --art-line:color-mix(in srgb,var(--vx-ink) 40%,transparent);--art-fill:color-mix(in srgb,var(--vx-ink) 10%,transparent);
  /* A floating control's shadow (Tasks' add button, the desktop dock's launcher), a panel's shadow on the edge it
     slides from, and a strong shadow under text on the stage. */
  --shadow-float:var(--vx-lift);
  --shadow-edge:color-mix(in srgb,var(--vx-floor) 70%,transparent);
  --text-shadow-strong:color-mix(in srgb,var(--vx-floor) 75%,transparent);
  /* The Parley arena: its own dark stage (parley.css). A = the top agent, B = the bottom one. */
  --parley-stage:var(--verser-void-950);--parley-light:var(--verser-white);--parley-shadow:var(--verser-black);
  --parley-a:var(--verser-periwinkle-500);--parley-a-2:var(--verser-cyan-400);--parley-a-name:var(--verser-periwinkle-300);
  --parley-a-tag:var(--verser-periwinkle-100);--parley-b:var(--verser-orchid-500);--parley-b-2:var(--verser-fuchsia-500);
  --parley-b-name:var(--verser-orchid-300);--parley-b-tag:var(--verser-orchid-100);
  --parley-you-name:var(--verser-cyan-250);--parley-spark:var(--verser-cyan-150);
  --parley-gold:var(--verser-gold-400);

  /* ------------------------------------------------------------------------
     TIER 3: PER COMPONENT (read tier 2 only)
     ------------------------------------------------------------------------ */
  /* Button */
  --verser-button-height:max(var(--tap-min),var(--control-height));--verser-button-padding-inline:var(--space-4);
  --verser-button-gap:var(--space-2);--verser-button-radius:var(--radius-sm);
  --verser-button-fill:var(--surface-fill-2);--verser-button-text:var(--text);--verser-button-border:var(--vx-hair);
  --verser-button-shadow:none;--verser-button-pressed:var(--surface-pressed);
  --verser-button-font:var(--font-ui);--verser-button-font-size:var(--font-size-small);--verser-button-font-weight:500;
  --verser-button-icon-size:20px;--verser-button-disabled-opacity:.45;--verser-button-disabled-text:var(--text-disabled);
  --verser-button-primary-fill:var(--primary);--verser-button-primary-fill-hover:var(--primary-hover);--verser-button-primary-text:var(--on-primary);

  --verser-button-tone-fill:var(--surface-chip);--verser-button-danger-text:var(--danger-text);
  --verser-button-press-scale:.97;--verser-button-duration:var(--duration-fast);
  --verser-button-wrap-padding-block:var(--space-2);
  /* Button, nav variant (data-variant="nav": a row of the menu drawer and the desktop rail). No fill at rest; the lit
     row takes the tab's fill and edge; pressed and hovered a faint fill. Edit mode's switch is the field switch's look. */
  --verser-button-nav-height:max(var(--tap-min),calc(48px * var(--density)));
  --verser-button-nav-padding-block:0px;--verser-button-nav-padding-inline:calc(var(--space-3) - 1px);
  --verser-button-nav-gap:var(--space-4);--verser-button-nav-radius:var(--radius-sm);
  --verser-button-nav-fill:transparent;--verser-button-nav-text:var(--text);
  --verser-button-nav-current-fill:var(--vx-nav-current);--verser-button-nav-current-edge:var(--vx-hair);
  --verser-button-nav-hover:var(--surface-fill-1);--verser-button-nav-pressed:var(--surface-fill-1);--verser-button-nav-press-scale:.985;
  --verser-button-nav-font-size:var(--font-size-reading);--verser-button-nav-font-weight:500;--verser-button-nav-line-height:1.2;
  --verser-button-nav-icon-size:22px;--verser-button-nav-locked-opacity:.32;
  --verser-button-nav-direction:row;--verser-button-nav-justify:flex-start;--verser-button-nav-text-align:start;
  --verser-button-nav-white-space:nowrap;--verser-button-nav-overflow-wrap:normal;
  --verser-button-nav-switch-width:38px;--verser-button-nav-switch-height:22px;--verser-button-nav-switch-track:var(--vx-switch-off);
  --verser-button-nav-switch-on:var(--vx-switch-on);--verser-button-nav-switch-thumb:var(--vx-switch-knob);
  /* Nav sizes: short (a short window), sm (a pointer: the desktop rail), stacked (the compact rail: the icon over a small
     label). A context points the nav tokens above at these. */


  /* Icon button */
  --verser-icon-button-size:max(var(--tap-min),var(--control-height));--verser-icon-button-radius:var(--radius-pill);
  --verser-icon-button-fill:var(--surface-fill-1);--verser-icon-button-fill-hover:var(--surface-fill-2);
  --verser-icon-button-text:var(--text);--verser-icon-button-border:var(--vx-hair);--verser-icon-button-icon-size:20px;

  /* Chip (filters, quick picks) */
  --verser-chip-height:max(var(--tap-min),var(--control-height));--verser-chip-height-desk:var(--control-height-sm);
  --verser-chip-padding-inline:calc(var(--space-3) + 2px);--verser-chip-gap:calc(var(--space-1) + 2px);
  --verser-chip-radius:var(--radius-pill);--verser-chip-fill:var(--surface-fill-1);--verser-chip-fill-hover:var(--surface-fill-2);
  --verser-chip-gloss:var(--surface-gloss);--verser-chip-text:var(--text);--verser-chip-border:var(--vx-hair);
  --verser-chip-on-fill:var(--surface-pressed);--verser-chip-on-border:var(--selected-edge);--verser-chip-on-text:var(--text);
  --verser-chip-font:var(--font-ui);--verser-chip-font-size:var(--font-size-small);--verser-chip-font-weight:600;
  --verser-chip-mono-font:var(--font-mono);--verser-chip-mono-font-size:var(--font-size-meta);--verser-chip-icon-size:16px;

  /* Pill (status with a dot) */
  --verser-pill-height:22px;--verser-pill-padding-inline-start:9px;--verser-pill-padding-inline-end:9px;
  --verser-pill-radius:var(--radius-pill);--verser-pill-fill:var(--surface-chip);--verser-pill-text:var(--text-secondary);
  --verser-pill-border:var(--vx-hair);--verser-pill-font:var(--font-mono);--verser-pill-font-size:var(--font-size-caption);
  --verser-pill-dot-size:7px;--verser-pill-dot:var(--text-secondary);--verser-pill-dot-ok:var(--success);
  --verser-pill-dot-warn:var(--warn);
  --verser-pill-live-fill:var(--live-fill);--verser-pill-live-text:var(--on-live);

  /* Week strip: today's chip in the kit's ink (paper on OG and Dark, black on Light) */

  /* Badge (a count) */
  --verser-badge-size:18px;--verser-badge-padding-inline:5px;--verser-badge-radius:var(--radius-pill);
  --verser-badge-fill:var(--notice);--verser-badge-text:var(--on-notice);
  --verser-badge-font:var(--font-mono);--verser-badge-font-size:var(--font-size-caption);
  --verser-logo-from:var(--mark-from);--verser-logo-mid:var(--mark-mid);--verser-logo-to:var(--mark-to);--verser-logo-glow:var(--mark-glow);
  --verser-logo-text:var(--text);--verser-logo-sub:var(--text-secondary);--verser-logo-font:var(--font-brand);
  --verser-logo-tile-fill:var(--surface-modal);--verser-logo-tile-edge:var(--brand-edge);

  /* Card (flat, inside glass) and glass card (a panel straight on the backdrop) */
  --verser-card-padding:calc(var(--space-3) + 2px);--verser-card-radius:var(--radius-sm);
  --verser-card-fill:var(--surface-fill-1);--verser-card-border:var(--hairline);--verser-card-text:var(--text);
  --verser-card-sub-text:var(--text-secondary);--verser-card-on-fill:var(--surface-fill-2);--verser-card-on-border:color-mix(in srgb,var(--text) 55%,transparent);
  --verser-card-glass-padding-block:calc(var(--space-4) + 2px);--verser-card-glass-padding-inline:var(--space-4);
  --verser-card-glass-radius:var(--vx-r-lg);--verser-card-glass-fill:var(--surface-panel);--verser-card-glass-gloss:var(--surface-gloss);
  --verser-card-glass-fog:var(--surface-fog);--verser-card-glass-border:var(--vx-hair);
  --verser-card-glass-shadow:var(--vx-shadow);--verser-card-glass-blur:var(--blur);

  /* Grid (ui/components/grid): the narrowest a column gets before the row drops one, and the gap. Per use, a grid sets its own. */
  --verser-grid-min:var(--grid-min);--verser-grid-gap:var(--grid-gap);
  --verser-tile-min:136px;      /* a tile (Drive folders, Studio cards): two across down to a 320px phone */
  --verser-pair-min:132px;      /* a pair of fields or buttons side by side (.row2, .cards) */

  /* The gap between Home's columns on a desktop (desktop.css, home-today.css); the KPI row has the kit's own gap. */
  --verser-stat-gap:var(--space-3);
  /* Team pulse on Home (workspace.css), compact: a 32px avatar, a row the tap target tall with the name and the day on
     one line; two, three or four columns side by side as the card widens (its container queries, 300px a column). */
  --verser-pulse-col-gap:var(--space-5);--verser-pulse-line-gap:var(--space-2);

  /* Responsive, milestone 2 (27 Oct). Container queries cannot read a variable, so a width a screen's @container rule
     is written with is recorded here and written out beside it; keep the two in step. */
  /* Tasks' filter chips on a phone: from the tight row of a 375px phone (all four and the search icon on one line) to
     the full chips at 440px, gliding in between instead of jumping at 400px. Every step is reached together, so the row
     never needs more room than the screen gains. */
  --verser-tasks-filter-font-size:clamp(13px, 10.12px + .77vw, 13.5px);
  --verser-tasks-filter-padding-inline:clamp(5px, 7.69vw - 23.85px, 10px);
  --verser-tasks-filter-gap:clamp(4px, 3.08vw - 7.54px, 6px);
  --verser-tasks-filter-menu-start:clamp(6px, 6.15vw - 17.08px, 10px);
  --verser-tasks-filter-menu-end:clamp(18px, 12.31vw - 28.15px, 26px);
  --verser-tasks-filter-chevron-inset:clamp(5px, 4.62vw - 12.31px, 8px);
  --verser-tasks-filter-chevron-size:clamp(11px, 3.08vw - .54px, 13px);
  /* A Toolbox tile's state line on a desktop: by the tile's own width (cqi), so "Not set up on this server" keeps one
     line in a 215px tile; a longer one wraps evenly. */
  /* A screen's title (Tasks, Toolbox, Agent Hub): 34px from a 360px phone up, down to 28px at 300px, so a title and its
     button (the Toolbox's Edit menu) share the row instead of the title breaking mid-word ("Toolbo / x"). */
  --verser-page-title-size:clamp(24px, 7.2vw, 28px);

  /* Row card (a glass card holding a list of rows) */
  --verser-row-card-padding-block:var(--space-1);--verser-row-card-padding-inline:var(--space-4);
  --verser-row-card-radius:var(--vx-r-lg);--verser-row-card-fill:var(--surface-panel);--verser-row-card-gloss:var(--surface-gloss);
  --verser-row-card-border:var(--vx-hair);--verser-row-card-divider:var(--border-row);--verser-row-card-row-fill:var(--surface-row);
  --verser-row-card-shadow:var(--vx-shadow);--verser-row-card-blur:var(--blur);--verser-row-card-row-height:max(var(--tap-min),calc(66px * var(--density)));
  --verser-row-card-row-padding-block:var(--space-3);
  --verser-row-card-stack-gap:var(--space-3);

  /* Section head (eyebrow, count, trailing action) */
  --verser-section-head-text:var(--text-muted);--verser-section-head-count:var(--text-secondary);
  --verser-section-head-font-size:var(--font-size-meta);--verser-section-head-font-weight:500;--verser-section-head-gap:var(--space-2);
  --verser-section-head-margin-block:var(--space-4) var(--space-2);

  /* Empty state */
  --verser-empty-padding-block:calc(var(--space-8) + 4px) var(--space-8);--verser-empty-padding-inline:var(--space-5);
  --verser-empty-icon-size:48px;--verser-empty-icon-fill:var(--surface-fill-1);--verser-empty-icon-border:var(--vx-hair);
  --verser-empty-title-size:var(--font-size-body);--verser-empty-title-text:var(--text);--verser-empty-text:var(--text-secondary);

  /* Loading */
  --verser-loading-track:var(--surface-fill-2);--verser-loading-label-color:var(--text-secondary);--verser-loading-duration:1.2s;
  --verser-loading-bar-height:3px;--verser-loading-label-size:var(--font-size-caption);--verser-loading-label-tracking:.12em;

  /* Avatar */
  --verser-avatar-size:44px;--verser-avatar-size-sm:32px;--verser-avatar-radius:50%;
  --verser-avatar-fill:var(--surface-fill-2);--verser-avatar-border:var(--vx-hair);--verser-avatar-text:var(--text);
  --verser-avatar-agent-radius:var(--radius-sm);--verser-avatar-agent-fill:var(--vx-agent-soft);--verser-avatar-agent-ring:var(--vx-agent);
  --verser-avatar-thing-fill:var(--vx-off);--verser-avatar-thing-border:var(--vx-hair);

  /* Form field: input, textarea, select, label, helper, error */
  --verser-field-height:max(var(--tap-min),calc(52px * var(--density)));--verser-field-padding-inline:calc(var(--space-3) + 2px);
  --verser-field-radius:var(--radius-sm);--verser-field-fill:var(--surface-fill-2);--verser-field-text:var(--text);
  --verser-field-border:var(--border-field);--verser-field-placeholder:var(--vx-ink-3);
  --verser-field-font:var(--font-ui);--verser-field-font-size:var(--font-size-reading);
  --verser-field-focus-border:var(--selected-edge);--verser-field-invalid-border:var(--danger);
  --verser-field-textarea-min-height:calc(122px * var(--density));
  --verser-field-label-text:var(--text-secondary);--verser-field-label-font-size:var(--font-size-small);--verser-field-label-font-weight:500;
  --verser-field-helper-text:var(--text-secondary);--verser-field-helper-font-size:var(--font-size-meta);
  --verser-field-error-text:var(--danger-text);
  --verser-field-select-chevron:var(--vx-chevron);--verser-field-select-chevron-size:20px;
  /* Switch, checkbox, radio */
  --verser-field-switch-width:38px;--verser-field-switch-height:22px;--verser-field-switch-track:var(--vx-switch-off);
  --verser-field-switch-on:var(--vx-switch-on);--verser-field-switch-thumb:var(--vx-switch-knob);
  --verser-field-check-size:22px;--verser-field-check-radius:6px;--verser-field-check-fill:var(--surface-fill-1);
  --verser-field-check-border:color-mix(in srgb,var(--text-secondary) 65%,transparent);--verser-field-check-on:var(--accent-fill);--verser-field-check-mark:var(--check-mark);
  --verser-field-radio-dot:var(--accent);

  /* Search field */
  --verser-search-height:max(var(--tap-min),var(--control-height));--verser-search-padding-inline:calc(var(--space-3) + 2px);
  --verser-search-radius:var(--radius-pill);--verser-search-fill:var(--surface-fill-1);--verser-search-border:var(--vx-hair);
  --verser-search-text:var(--text);--verser-search-icon:var(--text-secondary);--verser-search-icon-size:18px;

  /* Banner (a message across a screen, with a tone) */
  --verser-banner-padding:var(--space-4);--verser-banner-radius:var(--vx-r-lg);--verser-banner-fill:var(--surface-panel);
  --verser-banner-border:var(--vx-hair);--verser-banner-text:var(--text);
  --verser-banner-tone-info:var(--vx-agent);--verser-banner-tone-success:var(--success);
  --verser-banner-tone-warn:var(--warn);--verser-banner-tone-danger:var(--danger);

  /* Sheet: a bottom sheet on a phone, a side panel on desktop */
  --verser-sheet-fill:var(--surface-modal);--verser-sheet-gloss:var(--surface-gloss);--verser-sheet-fog:var(--surface-fog);
  --verser-sheet-border:var(--vx-hair);--verser-sheet-shadow:var(--vx-shadow);--verser-sheet-blur:var(--blur);
  --verser-sheet-radius:var(--vx-r-lg);--verser-sheet-padding-inline:var(--space-4);
  --verser-sheet-max-inline-size:var(--phone);--verser-sheet-max-block-size:88dvh;--verser-sheet-side-inline-size:420px;
  --verser-sheet-scrim:var(--scrim);--verser-sheet-handle:var(--vx-hair-2);--verser-sheet-divider:var(--hairline);
  --verser-sheet-title-size:var(--font-size-heading);--verser-sheet-duration:var(--duration-slow);--verser-sheet-ease:var(--ease-drawer);
  /* Sheet, modal variant (a centred form modal on desktop) */
  --verser-sheet-subtitle-size:var(--font-size-small);--verser-sheet-modal-inline-size:600px;--verser-sheet-modal-max-block-size:780px;
  --verser-sheet-modal-radius:var(--vx-r-xl);--verser-sheet-modal-padding-inline:var(--space-6);--verser-sheet-modal-padding-phone:var(--space-5);
  --verser-sheet-modal-title-size:var(--font-size-heading);--verser-sheet-modal-blur:var(--blur-sheet);
  --verser-sheet-modal-shadow:var(--vx-shadow);--verser-sheet-modal-duration:220ms;--verser-sheet-modal-exit-duration:150ms;
  --verser-sheet-form-gap:var(--space-5);
  /* Sheet, classic variant (the app's openSheet: a bottom sheet on a phone, a centred 520px dialog on the desktop). Its
     glass blur and its desktop exit are the modal's (--verser-sheet-modal-blur, --verser-sheet-modal-exit-duration). */
  --verser-sheet-classic-z:60;--verser-sheet-classic-padding-block-end:14px;
  --verser-sheet-classic-title-line-height:1.15;
  --verser-sheet-classic-wide-inline-size:520px;--verser-sheet-classic-wide-max-block-size:min(88dvh,820px);
  --verser-sheet-classic-min-inline-size:320px;
  /* Sheet on the desktop, both host-form variants: the room around it, and what keeps it clear of the app's edges
     (--verser-sheet-inset-end defaults to --verser-overlay-inset-end; the app sets it and --verser-sheet-inset-block-end
     in desktop.css). */
  --verser-sheet-wide-padding:var(--space-8);
  /* Sheet, side variant (data-variant="side": a full-height panel from the inline-start edge over its own scrim, or
     pinned in place; the menu drawer and the desktop rail). Its glass is the sheet's (--verser-sheet-fill, -gloss, -fog,
     -blur, -border, -shadow, -radius). --verser-sheet-side-inline-size above is the bottom sheet's desktop width, not
     this. slide 0 with shut-opacity 0 fades it in place instead of sliding. */
  --verser-sheet-side-z:75;--verser-sheet-side-pinned-z:44;
  --verser-sheet-side-panel-inline-size:min(320px,calc(100vw - 56px));--verser-sheet-side-inset-start:0px;
  --verser-sheet-side-padding-block-start:calc(env(safe-area-inset-top,0px) + 18px);
  --verser-sheet-side-padding-block-end:max(12px,env(safe-area-inset-bottom));--verser-sheet-side-padding-inline:12px;
  --verser-sheet-side-shut-gap:24px;--verser-sheet-side-slide:1;--verser-sheet-side-shut-opacity:1;
  --verser-sheet-side-enter-duration:300ms;--verser-sheet-side-exit-duration:220ms;--verser-sheet-side-fade-duration:200ms;
  --verser-sheet-side-pinned-inline-size:248px;
  --verser-sheet-side-pinned-padding-block-start:calc(env(safe-area-inset-top,0px) + 20px);--verser-sheet-side-pinned-padding-block-end:14px;

  /* Dialog (a confirm, over a sheet or a screen) */
  --verser-dialog-fill:var(--vx-overlay);--verser-dialog-gloss:var(--surface-gloss);--verser-dialog-border:var(--vx-hair);
  --verser-dialog-shadow:var(--vx-shadow);--verser-dialog-radius:var(--vx-r-md);--verser-dialog-padding:var(--space-4);
  --verser-dialog-max-inline-size:420px;--verser-dialog-scrim:var(--scrim);--verser-dialog-duration:var(--duration-base);

  /* Toast */
  --verser-toast-fill:var(--vx-overlay);--verser-toast-gloss:var(--surface-gloss);--verser-toast-border:var(--vx-hair);
  --verser-toast-shadow:var(--vx-shadow);--verser-toast-blur:var(--blur);--verser-toast-radius:var(--radius-sm);
  --verser-toast-text:var(--text);--verser-toast-font-size:var(--font-size-small);--verser-toast-line-height:1.45;--verser-toast-max-inline-size:280px;
  --verser-toast-gutter:24px;--verser-toast-padding-block:11px;--verser-toast-padding-inline-start:14px;--verser-toast-padding-inline-end:40px;
  --verser-toast-inset-block-start:calc(max(12px,env(safe-area-inset-top,0px)) + 68px);
  --verser-toast-inset-inline-end:max(12px,env(safe-area-inset-right,0px));--verser-toast-z-index:72;
  --verser-toast-action-fill:var(--text);--verser-toast-action-text:var(--vx-floor);--verser-toast-close:var(--text-secondary);
  --verser-toast-duration:220ms;--verser-toast-slide-duration:280ms;--verser-toast-exit-duration:180ms;--verser-toast-exit-slide-duration:200ms;

  /* Menu and popover */
  --verser-menu-fill:var(--vx-overlay);--verser-menu-gloss:var(--surface-gloss);--verser-menu-border:var(--vx-hair);
  --verser-menu-shadow:var(--vx-shadow);--verser-menu-radius:var(--radius-md);--verser-menu-padding:var(--space-1);
  --verser-menu-item-height:max(var(--tap-min),var(--control-height));--verser-menu-item-padding-inline:var(--space-3);
  --verser-menu-item-radius:var(--radius-xs);--verser-menu-item-text:var(--text);
  --verser-menu-divider:var(--hairline);

  /* Side panel: a panel that extends from a main area's end edge (desktop) or its bottom edge (phone) and makes it
     narrower or shorter, never covering it. Read by ui/components/side-panel/side-panel.css. */
  --verser-side-panel-size:320px;--verser-side-panel-gap:var(--space-2);--verser-side-panel-radius:var(--r-panel);
  --verser-side-panel-border:var(--line);--verser-side-panel-fill:var(--glass-panel);--verser-side-panel-shadow:var(--shadow);
  --verser-side-panel-padding:var(--space-3);
  --verser-side-panel-slide:16px;--verser-side-panel-duration:var(--duration-base);--verser-side-panel-ease:var(--ease-drawer);
  --verser-side-panel-stack-size:min(56dvh,480px);

  /* Pipeline, read by ui/components/pipeline/pipeline.css: a board of whole columns ([data-fit]) gives each column at
     least this; its column counts are worked out from it (two columns from 2 x this + the gap). */
  --verser-pipeline-fit-col-min:232px;

  /* Tabs, line (3+ sections of one screen) */
  /* read by ui/components/tabs/tabs.css (.tabs-line, .tab-line) */
  --verser-tabs-line-height:48px;--verser-tabs-line-text:var(--eyebrow);
  --verser-tabs-line-active-text:var(--text);--verser-tabs-line-indicator:var(--text);--verser-tabs-line-indicator-size:3px;
  --verser-tabs-line-border:var(--hairline);--verser-tabs-line-hover:var(--fill-1);
  --verser-seg-compact-max:280px;   /* a two-choice segmented control that does not stretch across a wide page */
  --verser-tabs-line-font-size:var(--font-size-body);--verser-tabs-line-font-weight:600;--verser-tabs-line-radius:var(--r-small);
  --verser-tabs-line-margin-top:12px;
  /* A snug scrolling row (.tabs-line.scrolls.snug) on a phone: each tab's side padding, so five tabs fit 360px. */
  --verser-tabs-line-snug-padding-inline:calc(var(--space-1) * 1.5);
  /* A line tab's side room: each tab is as wide as its label plus this (B4, 2 Nov). */
  --verser-tabs-line-padding-inline:var(--space-3);
  /* Tabs, stuck at the top while the page scrolls. On a phone the glass reaches up over the status bar and the nav row
     (the menu button's top and size plus a small gap), so the tabs stick just under ☰ (or Back) and nothing scrolls
     visibly between the status bar and the tabs. */
  --verser-tabs-sticky-fill:color-mix(in srgb,var(--vx-overlay) 72%,transparent);--verser-tabs-sticky-blur:var(--blur-sheet);
  --verser-tabs-sticky-gap:6px;
  --verser-tabs-sticky-reach:calc(var(--verser-nav-top) + var(--verser-nav-size) + var(--verser-tabs-sticky-gap));
  /* Phone nav (the lead, 2026-10-27, iOS style): a plain ☰ at the top start corner on a main page; on a sub-page Back
     ("‹ Toolbox", link colour) takes the same spot and ☰ steps aside (the left-edge swipe still opens the menu).
     Neither has a capsule. Once the page scrolls, one glass bar (the stuck tabs' glass) fills in behind them with the
     page's name centred. The row's top is the safe area (at least 12px) plus 2px. */
  --verser-nav-top:calc(max(12px,env(safe-area-inset-top,0px)) + 2px);--verser-nav-size:var(--tap-min);
  /* -8px: the menu glyph's lines (4 units into its 26px icon) and Back's chevron start on the page's 16px gutter,
     the start edge of the greeting, the page heads and the cards (layout pass, A9). */
  --verser-nav-inset:-8px;
  --verser-nav-menu-text:var(--text);--verser-nav-menu-icon-size:26px;--verser-nav-menu-stroke:2.5;
  --verser-nav-pressed-opacity:.6;

  --verser-nav-bar-height:calc(var(--verser-nav-top) + var(--verser-nav-size) + var(--verser-tabs-sticky-gap));
  --verser-nav-bar-fade:160ms;
  /* Split (ui/components/split): a section list beside its pane (Settings); a push list under the wide width */
  --verser-split-wide-min:600px;--verser-split-gap:var(--space-5);--verser-split-nav-size:200px;
  --verser-split-tab-gap:2px;--verser-split-tab-height:var(--tap-min);--verser-split-tab-height-narrow:56px;
  --verser-split-tab-radius:var(--radius-md);--verser-split-tab-font-size:var(--font-size-body);--verser-split-tab-font-weight:600;
  --verser-split-tab-text:var(--vx-ink);--verser-split-tab-active-text:var(--text);
  --verser-split-tab-active-fill:var(--vx-nav-current);--verser-split-tab-active-border:var(--vx-hair);
  --verser-split-tab-hover:var(--surface-fill-1);--verser-split-tab-pressed:var(--surface-fill-2);
  --verser-split-icon-size:20px;--verser-split-sub-size:var(--font-size-meta);--verser-split-sub-text:var(--text-secondary);
  --verser-split-divider:var(--hairline);--verser-split-shift:16px;
  /* Sheet, wide modal (data-size="wide"): a two-pane modal on the desktop */
  --verser-sheet-modal-wide-inline-size:880px;--verser-sheet-modal-wide-block-size:640px;
  /* Sheet, side size (data-size="side", B6): a modal drawn as a full-height side sheet on the desktop (Settings) */
  --verser-sheet-modal-side-inline-size:760px;
  /* Tabs, segmented (a 2-way scope switch) */
  --verser-tabs-seg-font-size:var(--font-size-small);

  /* Select (a field that opens a menu) */
  --verser-select-height:var(--verser-field-height);--verser-select-fill:var(--surface-fill-2);
  --verser-select-border:var(--border-field);--verser-select-radius:var(--radius-sm);--verser-select-text:var(--text);
  --verser-select-chevron:var(--vx-chevron);--verser-select-chevron-size:20px;
  --verser-select-padding-inline-end:calc(var(--space-10) + 4px);
  --verser-select-option-on-fill:var(--surface-pressed);
  /* Button sizes, link variant, hover */
  --verser-button-height-sm:var(--control-height-sm);--verser-button-height-lg:max(var(--tap-min),calc(52px * var(--density)));
  --verser-button-font-size-sm:var(--font-size-small);--verser-button-font-size-lg:var(--font-size-body);--verser-button-primary-font-weight:600;
  --verser-button-hover:var(--surface-fill-1);--verser-button-link-text:var(--vx-violet-text);
  /* Icon button */
  --verser-icon-button-ghost-text:var(--text-secondary);--verser-icon-button-square-radius:var(--radius-sm);
  --verser-icon-button-size-sm:var(--control-height-sm);--verser-icon-button-size-lg:calc(56px * var(--density));
  /* Chip */
  --verser-chip-height-sm:calc(32px * var(--density));
  --verser-chip-tone-accent:color-mix(in srgb,var(--accent) 55%,var(--text));--verser-chip-tone-agent:var(--vx-agent);
  --verser-chip-tone-success:var(--success);--verser-chip-tone-warn:var(--warn);--verser-chip-tone-danger:var(--danger);
  --verser-chip-menu-padding-inline-start:10px;--verser-chip-menu-padding-inline-end:26px;--verser-chip-menu-max-inline-size:none;
  --verser-chip-menu-chevron:var(--vx-chevron);--verser-chip-menu-chevron-size:13px;--verser-chip-menu-chevron-inset:8px;
  --verser-chip-menu-chevron-color:var(--text-secondary);
  /* Pill */
  --verser-pill-padding-block:3px;--verser-pill-gap:6px;--verser-pill-font-weight:600;
  --verser-pill-tone-accent:color-mix(in srgb,var(--accent) 55%,var(--text));--verser-pill-tone-danger:var(--danger);
  --verser-pill-filled-fill:var(--surface-fill-2);--verser-pill-filled-border:var(--vx-hair);--verser-pill-filled-text:var(--text-secondary);
  --verser-pill-filled-quiet-fill:var(--surface-fill-1);--verser-pill-filled-tint:16%;
  --verser-pill-filled-danger-fill:var(--crimson);--verser-pill-filled-danger-text:var(--text);
  /* Badge */
  --verser-badge-font-weight:600;
  --verser-badge-neutral-fill:var(--surface-fill-2);--verser-badge-neutral-text:var(--text-secondary);
  --verser-badge-accent-fill:var(--accent);--verser-badge-accent-text:var(--on-accent);
  --verser-badge-agent-fill:var(--vx-agent);--verser-badge-agent-text:var(--on-agent);
  --verser-badge-danger-fill:var(--live-fill);--verser-badge-danger-text:var(--on-live);
  /* Card, tile role */
  --verser-card-tile-radius:var(--vx-r-md);--verser-card-tile-padding:calc(var(--space-3) + 2px);
  --verser-card-tile-min-height:calc(124px * var(--density));--verser-card-tile-border:var(--hairline);
  /* Row card */
  --verser-row-card-gap:calc(var(--space-3) + 2px);--verser-row-card-icon-size:44px;
  --verser-row-card-title-size:var(--font-size-small);--verser-row-card-sub-size:var(--font-size-meta);
  /* Section head */
  --verser-section-head-font:var(--font-mono);--verser-section-head-letter-spacing:0;--verser-section-head-min-height:40px;
  --verser-section-head-fold-min-height:var(--tap-min);--verser-section-head-fold-padding-inline:var(--space-1);
  --verser-section-head-fold-radius:var(--radius-sm);--verser-section-head-chev-size:18px;--verser-section-head-chev:var(--text-secondary);
  /* Empty state, loading, avatar */
  --verser-empty-text-measure:36ch;
  --verser-loading-min-block-size:120px;
  /* Loading, skeleton variant (2 Nov): placeholders in the final shape of what is loading, so nothing moves when it lands. */
  --verser-skeleton-fill:var(--surface-fill-1);--verser-skeleton-shine:var(--verser-white-a06);--verser-skeleton-radius:var(--radius-3xs);
  --verser-skeleton-line-height:12px;--verser-skeleton-row-height:max(var(--tap-min),calc(66px * var(--density)));
  --verser-skeleton-card-height:calc(124px * var(--density));--verser-skeleton-gap:var(--space-3);--verser-skeleton-duration:1.2s;
  --verser-avatar-size-xs:24px;--verser-avatar-size-lg:56px;--verser-avatar-size-xl:64px;
  /* Field, search, banner */
  --verser-field-gap:var(--space-1);
  --verser-search-filled-fill:var(--surface-fill-2);
  --verser-banner-tone-accent:var(--accent);
  /* Overlays (E): the stack base sits above the app's drawer (75), confirm bar (72) and tour (92), below the app's menu
     selects (#tasksMenu, 150) so a select inside a kit sheet still opens over it. Each layer is one step above the last;
     toasts sit above every layer. The inset keeps a docked panel at the inline end visible beside a desktop side sheet. */
  --verser-z-overlay:100;--verser-z-overlay-step:2;--verser-z-toast:145;
  --verser-overlay-inset-end:0px;--verser-overlay-inset-start:0px;--verser-overlay-scrim-duration:var(--duration-base);
  --verser-sheet-exit-duration:220ms;--verser-dialog-exit-duration:150ms;
  /* A modal that covers the whole app, the desktop dock included (the wide Settings modal, or data-cover="all"): above
     the dock (30, 46, and 61 collapsed) and below the toasts (72) and the drawer (75). */
  --verser-sheet-cover-z:66;
  /* Menu and popover */
  --verser-menu-min-inline-size:216px;--verser-menu-item-font-size:var(--font-size-body);--verser-menu-item-font-weight:600;
  --verser-menu-check:var(--primary);
  --verser-popover-padding:var(--space-4);
  /* Tabs */
  --verser-tabs-line-indicator-max:56px;--verser-tabs-seg-thumb-duration:240ms;--verser-tabs-line-fade-size:28px;
  /* Select */
  --verser-select-placeholder:var(--vx-ink-3);--verser-select-option-active-fill:var(--surface-fill-1);
  --verser-select-option-active-border:var(--selected-edge);
  /* One-off shapes the app's screens draw (milestone 3, 27 Oct): written once here, so a theme or the kit can reach them. */
  --verser-avatar-preview-radius:32px;           /* the new agent's portrait while it is made */
  --verser-stage-device-radius:min(14vw,58px);   /* the Live stage's frame follows a phone's own screen corners */
  --verser-bubble-tail-radius:5px;               /* the corner a stage chat bubble points from */
  --verser-phone-frame-radius:48px 48px 0 0;     /* the phone outline round the app on a wide screen */
  --verser-agent-fab-panel-radius:26px;--verser-agent-fab-input-radius:20px;   /* the floating agent's panel and its text box */
  --verser-reel-tile-radius:16px;                /* a reel in the Hub feed on a desktop */
  --verser-dock-min-radius:26px;                 /* the desktop dock collapsed to its text box */

  /* ------------------------------------------------------------------------
     THE APP'S TOKEN NAMES. Read by index.html and every app stylesheet; each points at tier 1 or 2 and computes
     what it did before. Names shared with tier 2 (--text, --warn, --hairline, --scrim, --primary,
     --live, --track, --stage, --backdrop, the eases...) are defined once, above.
     ------------------------------------------------------------------------ */
  /* Backdrop hues */
  --crimson:var(--verser-crimson-500);
  --night:var(--verser-night-950);
  --night-floor:var(--vx-floor);
  /* Text */
  --text-2:var(--text-secondary);--muted:var(--text-2);--eyebrow:var(--text-muted);
  --placeholder:var(--vx-ink-3);--disabled-text:var(--text-disabled);--link:var(--vx-violet-text);
  /* Accents */
  --a:var(--accent);--a-fill:var(--accent-fill);
  --b:var(--vx-agent);
  --green:var(--success);--pink:var(--notice);--bad:var(--danger);
  /* Glass */
  --glass-thin:var(--surface-thin);--glass-nav:var(--surface-nav);--glass-panel:var(--surface-panel);
  --glass-modal:var(--surface-modal);--glass-solid:var(--vx-overlay);
  --fog:var(--surface-fog);--gloss:var(--surface-gloss);
  --line:var(--vx-hair);
  --shadow:var(--vx-shadow);--shadow-control:var(--vx-shadow);
  /* Fills */
  --fill-1:var(--surface-fill-1);--fill-2:var(--surface-fill-2);--fill-3:var(--surface-fill-3);
  --row-fill:var(--surface-row);--row-edge:var(--border-row);--icon-fill:var(--vx-off);--icon-edge:var(--vx-hair);
  --chip-fill:var(--surface-chip);--agent-fill:var(--vx-agent-soft);
  --field-edge:var(--border-field);--tab-edge:var(--vx-hair);--pressed:var(--surface-pressed);
  /* Focus ring */
  --ring:var(--focus-ring);--ring-glow:var(--glow-agent);--ring-glow-soft:var(--glow-agent-soft);
  --ring-width:var(--focus-ring-width);--ring-offset:var(--focus-ring-offset);
  /* Shape and type */
  --r-panel:var(--vx-r-lg);--r-compact:var(--vx-r-md);--r-row:var(--radius-md);
  --r-avatar:var(--radius-sm);--r-inner:var(--radius-sm);--r-btn:var(--radius-sm);--r-small:var(--radius-xs);--r-pill:var(--radius-pill);
  --font:var(--font-ui);--display:var(--font-display);--mono:var(--font-mono);
}

/* Mono in right-to-left text (2 Nov, the live review C15). JetBrains Mono has no Arabic, so Arabic words in a mono label
   fell to IBM Plex Sans Arabic but kept the mono's wide space between them. "Verser Mono RTL" is the same font file with
   the space (and the no-break space) left out of its range: Latin letters and figures stay JetBrains Mono, Arabic letters
   and the spaces come from Plex Arabic. Set once at the root for Arabic, so no component has to swap faces on its own. */
@font-face{font-family:"Verser Mono RTL";src:url("../fonts/JetBrainsMono-Variable.woff2") format("woff2");font-weight:100 800;font-style:normal;font-display:swap;
  unicode-range:U+0021-007E,U+00A1-00FF,U+0100-024F,U+2010-2027,U+2030-205E,U+20A0-20CF,U+2190-21FF,U+2212}
@font-face{font-family:"Verser Figure Zero";src:url("../fonts/VerserFigureZero.woff2") format("woff2");font-weight:100 800;font-style:normal;font-display:swap;unicode-range:U+0030}
:root[dir="rtl"]{--font-mono:"Verser Mono RTL","IBM Plex Sans Arabic","SF Mono",ui-monospace,Menlo,monospace}

/* Fallbacks: no backdrop-filter, or the user asked for less transparency. Every glass level turns solid. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root{
  --surface-thin:var(--vx-overlay);--surface-nav:var(--vx-overlay);--surface-panel:var(--vx-overlay);--surface-modal:var(--vx-overlay);--surface-fog:linear-gradient(transparent,transparent);--surface-gloss:linear-gradient(transparent,transparent);--blur:none;--blur-sheet:none;
}}
@media (prefers-reduced-transparency:reduce){:root{
  --surface-thin:var(--vx-overlay);--surface-nav:var(--vx-overlay);--surface-panel:var(--vx-overlay);--surface-modal:var(--vx-overlay);--surface-fog:linear-gradient(transparent,transparent);--surface-gloss:linear-gradient(transparent,transparent);--blur:none;--blur-sheet:none;
}}
