/* ==========================================================================
   VERSER KIT (frontend/kit, prefix vx-). One stylesheet, one script (kit.js). Plug in:

     <link rel="stylesheet" href="./kit/kit.css">
     <script src="./kit/kit.js" defer></script>

   Modes: <html data-mode="og|light|dark"> (OG when absent). Every colour below is set per mode as --vx-* and the
   components read only those. Nothing here depends on the old kit (ui/); both can load on one page.

   Parts
     Type        .vx-title (two-tone: <b>subject</b><span>qualifier</span>), .vx-num (Doto figure), .vx-eyebrow, .vx-caption
     Surfaces    .vx-card (glass in OG, paper in Light, graphite in Dark), .vx-panel (+ .vx-panel-head), .vx-well
     Controls    .vx-btn (primary | secondary | ghost | glow; sm; icon), .vx-ring (dotted round button), .vx-chip,
                 .vx-seg, .vx-field (+ input), .vx-switch, .vx-check
     Status      .vx-pill (data-tone), .vx-dot, .vx-avatar (+ data-status), .vx-badge
     Lists       .vx-rows / .vx-row (icon, text, action), .vx-person, .vx-table (+ .vx-tr-open; data-pin: pinned first column), .vx-dl, .vx-timeline
     Shell       .vx-nav (sidebar items), .vx-tabbar (phone), .vx-status-bar (Working · 3h 12m)
     Agent       .vx-think (+ .vx-steps, .vx-tool), .vx-approve, .vx-prompt, .vx-bubble
     Drawn       <vx-kpi>, <vx-dots>, <vx-glowbar>, <vx-capsules>, <vx-field>, <vx-band>, <vx-loader>, <vx-icon>
   ========================================================================== */

@font-face{font-family:"Doto";src:url("../fonts/Doto-Variable.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"VX Inter";src:url("../fonts/InterVariable.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"VX Mono";src:url("../fonts/JetBrainsMono-Variable.woff2") format("woff2");font-weight:100 800;font-display:swap}

/* ---------------------------------------------------------------- tokens
   One token block, three tiers (10 Nov). Below this block no rule writes a colour, and the sizes a part uses are
   tokens here.
     Tier 1  raw values per mode: the neutrals (--vx-raw-*), the 13 hues with -soft and -text, the OG backdrop and its
             stops (--vx-bg-*), the glow strength. Only this tier changes between OG, Light and Dark.
     Tier 2  roles, written once for every mode: surfaces, text, lines, focus, status, agent, overlays, shadows; and the
             scales (type, weight, radius, control height, spacing, blur, duration, easing).
     Tier 3  per component (--vx-btn-*, --vx-kpi-*, --vx-sheet-*, ...), after tier 2. Each reads tier 2 only, and each
             component's section header lists its tier-3 tokens.
   Components read tier 2 or tier 3, never tier 1. ui/themes/* (client brands) may override tier 1 or tier 2 only. */
:root{
  /* ---- tier 1, the same in every mode */
  --vx-raw-white:#FFFFFF;--vx-raw-black:#0A0A0B;--vx-raw-mask:#000000;--vx-raw-shade:rgba(0,0,0,.2);--vx-raw-shade-2:rgba(0,0,0,.3);
  /* a drawn glyph used as a mask (its colour comes from the part): the clear cross of a search field */
  --vx-raw-clear: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='%23fff'/%3E%3Cpath d='m8.5 8.5 7 7m0-7-7 7' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='10' fill='%23000' mask='url(%23m)'/%3E%3C/svg%3E");
}
/* ---- tier 1, OG: the flowing YouVerse backdrop under frosted glass; white text; the hues run bright. */
:root,:root[data-mode="og"]{
  color-scheme:dark;
  --vx-raw-floor:#1A0A4A;--vx-raw-card:rgba(255,255,255,.075);--vx-raw-card-ghost:rgba(255,255,255,.05);--vx-raw-well:rgba(255,255,255,.07);
  --vx-raw-nav:rgba(12,0,54,.28);--vx-raw-raised:rgba(255,255,255,.14);--vx-raw-nav-current:rgba(255,255,255,.14);--vx-raw-rim:rgba(255,255,255,.14);
  --vx-raw-ink:#FFFFFF;--vx-raw-ink-2:rgba(255,255,255,.86);--vx-raw-nav-ink:var(--vx-raw-ink);--vx-raw-ink-3:rgba(255,255,255,.8);--vx-raw-hair:rgba(255,255,255,.12);--vx-raw-hair-2:rgba(255,255,255,.26);
  --vx-raw-on-ink:#1A0A4A;--vx-raw-focus:#FFFFFF;
  --vx-raw-off:rgba(255,255,255,.1);--vx-raw-mid:rgba(255,255,255,.22);--vx-raw-knob:#FFFFFF;
  --vx-raw-overlay:#2A0F5E;--vx-raw-pop:#2A0F5E;--vx-raw-pop-2:#2A0F5E;--vx-raw-cover:#2A0F5E;--vx-raw-card-solid:rgba(26,10,74,.55);
  --vx-raw-scrim:rgba(5,3,15,.45);--vx-raw-blur:blur(28px) saturate(1.5);--vx-raw-nav-current-shadow:none;
  /* a card's glass takes the glow down a little (and up in colour), so its quiet words (eyebrow, help) hold 4.5:1 */
  --vx-raw-card-blur:blur(28px) saturate(1.6) brightness(.8);
  --vx-amber:#FFBE55;--vx-amber-soft:rgba(255,190,85,.18);--vx-amber-text:#FFD48F;
  --vx-pink:#FF86C8;--vx-pink-soft:rgba(255,134,200,.2);--vx-pink-text:#FFBEE1;
  --vx-red:#FF5E72;--vx-red-soft:rgba(255,94,114,.2);--vx-red-text:#FFB6BF;
  --vx-blue:#6FD0FF;--vx-blue-soft:rgba(111,208,255,.18);--vx-blue-text:#A8E3FF;
  --vx-green:#8EF06A;--vx-green-soft:rgba(142,240,106,.16);--vx-green-text:#BDF7A6;
  --vx-violet:#BBA2FF;--vx-violet-soft:rgba(187,162,255,.2);--vx-violet-text:#D6C9FF;
  --vx-orange:#FF9A5A;--vx-orange-soft:rgba(255,154,90,.18);--vx-orange-text:#FFC4A0;
  --vx-yellow:#FFE15A;--vx-yellow-soft:rgba(255,225,90,.17);--vx-yellow-text:#FFF0A8;
  --vx-lime:#C8F560;--vx-lime-soft:rgba(200,245,96,.16);--vx-lime-text:#E2FBA8;
  --vx-teal:#4FE3C1;--vx-teal-soft:rgba(79,227,193,.17);--vx-teal-text:#A6F2E0;
  --vx-cyan:#5CE6FF;--vx-cyan-soft:rgba(92,230,255,.17);--vx-cyan-text:#ABF3FF;
  --vx-indigo:#8E9BFF;--vx-indigo-soft:rgba(142,155,255,.2);--vx-indigo-text:#C3CAFF;
  --vx-magenta:#F06BFF;--vx-magenta-soft:rgba(240,107,255,.2);--vx-magenta-text:#F8B9FF;
  --vx-raw-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 14px 34px -16px rgba(12,0,54,.55);
  --vx-raw-lift:0 24px 60px -20px rgba(12,0,54,.7);
  /* drawn glyphs (url() cannot read a variable): the select chevron in ink-2, the tick in on-ink */
  --vx-raw-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EEF0FA' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --vx-raw-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A0A4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  --vx-glow:1;
  /* The backdrop's base stops (top, middle, end): contrast.py measures OG text against the lightest and the darkest. */
  --vx-bg-top:#5C108A;--vx-bg-mid:#2A0B74;--vx-bg-end:#1A0A4A;
  --vx-bg:radial-gradient(ellipse 64vmax 26vmax at -6% 8%,rgba(255,122,46,.7),rgba(255,122,46,.28) 40%,rgba(255,122,46,0) 100%),
    radial-gradient(ellipse 64vmax 24vmax at 24% 12%,rgba(226,80,47,.7),rgba(226,80,47,.28) 40%,rgba(226,80,47,0) 100%),
    radial-gradient(ellipse 64vmax 24vmax at 52% 24%,rgba(255,61,168,.4),rgba(255,61,168,.16) 40%,rgba(255,61,168,0) 100%),
    radial-gradient(ellipse 64vmax 26vmax at 80% 30%,rgba(192,42,72,.6),rgba(192,42,72,.24) 40%,rgba(192,42,72,0) 100%),
    radial-gradient(ellipse 56vmax 20vmax at -4% 62%,rgba(123,77,255,.4),rgba(123,77,255,.16) 40%,rgba(123,77,255,0) 100%),
    radial-gradient(ellipse 56vmax 20vmax at 26% 52%,rgba(150,20,102,.5),rgba(150,20,102,.2) 40%,rgba(150,20,102,0) 100%),
    radial-gradient(ellipse 60vmax 22vmax at 70% 84%,rgba(123,77,255,.32),rgba(123,77,255,.13) 40%,rgba(123,77,255,0) 100%),
    radial-gradient(ellipse 60vmax 22vmax at 102% 78%,rgba(0,216,245,.3),rgba(0,216,245,.12) 40%,rgba(0,216,245,0) 100%),
    linear-gradient(180deg,var(--vx-bg-top) 0%,var(--vx-bg-mid) 45%,var(--vx-bg-end) 100%);
  /* status marks (dots, a switch or box that is on): the hues; on Light a shade darker so a mark holds 3:1 on paper */
  /* the glow over the agent's stage (the portrait's backdrop) */
  --vx-raw-stage-glow:rgba(255,122,46,.6);
  /* a short veil of the floor behind the stage's name, status and actions, so their words hold 4.5:1 on the glow */
  --vx-raw-stage-veil:color-mix(in srgb,var(--vx-raw-floor) 62%,transparent);--vx-raw-stage-veil-mid:color-mix(in srgb,var(--vx-raw-floor) 40%,transparent);
  --vx-raw-success:var(--vx-green);--vx-raw-warn:var(--vx-amber);--vx-raw-danger:var(--vx-red);--vx-raw-agent:var(--vx-pink);
  --vx-raw-track:var(--vx-raw-off);--vx-raw-track-done:var(--vx-raw-mid);
}
/* ---- tier 1, Light */
:root[data-mode="light"]{
  color-scheme:light;
  --vx-raw-floor:#F1F1F2;--vx-raw-card:#FFFFFF;--vx-raw-card-ghost:#FFFFFF;--vx-raw-well:#F4F4F5;--vx-raw-nav:#F7F7F8;--vx-raw-raised:#FFFFFF;
  --vx-raw-nav-current:#FFFFFF;--vx-raw-rim:transparent;
  --vx-raw-ink:#0D0D0F;--vx-raw-ink-2:#55555C;--vx-raw-nav-ink:var(--vx-raw-ink-2);--vx-raw-ink-3:#6D6D74;--vx-raw-hair:#E9E9EC;--vx-raw-hair-2:#DADADF;
  --vx-raw-on-ink:#FFFFFF;--vx-raw-focus:#0D0D0F;
  --vx-raw-off:#E6E7EA;--vx-raw-mid:#D4D6DB;--vx-raw-knob:#FFFFFF;
  --vx-raw-overlay:#FFFFFF;--vx-raw-pop:#FFFFFF;--vx-raw-pop-2:#FFFFFF;--vx-raw-cover:#FFFFFF;--vx-raw-card-solid:#FFFFFF;
  --vx-raw-scrim:rgba(5,3,15,.45);--vx-raw-blur:none;--vx-raw-card-blur:none;--vx-raw-nav-current-shadow:var(--vx-raw-shadow);
  --vx-amber:#F2A93B;--vx-amber-soft:#FCEFD9;--vx-amber-text:#9A5A06;
  --vx-pink:#F48FB8;--vx-pink-soft:#FDE6EF;--vx-pink-text:#B32D6C;
  --vx-red:#F2545B;--vx-red-soft:#FDE3E4;--vx-red-text:#BC1F29;
  --vx-blue:#5FA8F5;--vx-blue-soft:#E2EFFD;--vx-blue-text:#1A64C4;
  --vx-green:#7CC24A;--vx-green-soft:#E8F5DD;--vx-green-text:#3A7212;
  --vx-violet:#A98BF5;--vx-violet-soft:#EFEAFD;--vx-violet-text:#5E3BC9;
  --vx-orange:#F7894A;--vx-orange-soft:#FEEBDD;--vx-orange-text:#A8470D;
  --vx-yellow:#F5C518;--vx-yellow-soft:#FDF6D3;--vx-yellow-text:#7D6200;
  --vx-lime:#9BD43B;--vx-lime-soft:#EEF8DC;--vx-lime-text:#4A6E0B;
  --vx-teal:#2EC4A0;--vx-teal-soft:#DBF6EF;--vx-teal-text:#0E7259;
  --vx-cyan:#34BFE0;--vx-cyan-soft:#DCF3FA;--vx-cyan-text:#0B6B85;
  --vx-indigo:#6E78F0;--vx-indigo-soft:#E7E9FD;--vx-indigo-text:#3A43B8;
  --vx-magenta:#D45CE8;--vx-magenta-soft:#F8E4FB;--vx-magenta-text:#8E2AA1;
  --vx-raw-shadow:0 1px 2px rgba(13,13,15,.04),0 8px 28px -12px rgba(13,13,15,.10);
  --vx-raw-lift:0 18px 50px -18px rgba(13,13,15,.22);
  /* drawn glyphs (url() cannot read a variable): the select chevron in ink-2, the tick in on-ink */
  --vx-raw-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355555C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --vx-raw-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  --vx-glow:0;
  --vx-bg:linear-gradient(#F1F1F2,#F1F1F2);
  /* status marks (dots, a switch or box that is on): a shade under the hue, so a mark holds 3:1 on paper */
  /* the glow over the agent's stage (the portrait's backdrop) */
  --vx-raw-stage-glow:transparent;
  --vx-raw-stage-veil:transparent;--vx-raw-stage-veil-mid:transparent;
  --vx-raw-success:#62993A;--vx-raw-warn:#B8802D;--vx-raw-danger:var(--vx-red);--vx-raw-agent:#C37293;
  /* a progress track on paper: the track a shade deeper than the hairline, its done part 3:1 on a card */
  --vx-raw-track:var(--vx-raw-mid);--vx-raw-track-done:#87878F;
}
/* ---- tier 1, Dark */
:root[data-mode="dark"]{
  color-scheme:dark;
  --vx-raw-floor:#0A0A0B;--vx-raw-card:#141416;--vx-raw-card-ghost:#1B1B1E;--vx-raw-well:#1C1C1F;--vx-raw-nav:#0F0F11;--vx-raw-raised:#1C1C1F;
  --vx-raw-nav-current:#1C1C1F;--vx-raw-rim:rgba(255,255,255,.04);
  --vx-raw-ink:#F4F4F5;--vx-raw-ink-2:#A6A6AE;--vx-raw-nav-ink:var(--vx-raw-ink-2);--vx-raw-ink-3:#83838B;--vx-raw-hair:#232327;--vx-raw-hair-2:#2E2E33;
  --vx-raw-on-ink:#0A0A0B;--vx-raw-focus:#F4F4F5;
  --vx-raw-off:#232327;--vx-raw-mid:#34343A;--vx-raw-knob:#FFFFFF;
  --vx-raw-overlay:#121214;--vx-raw-pop:#141416;--vx-raw-pop-2:#161618;--vx-raw-cover:#141416;--vx-raw-card-solid:#141416;
  --vx-raw-scrim:rgba(5,3,15,.45);--vx-raw-blur:none;--vx-raw-card-blur:none;--vx-raw-nav-current-shadow:var(--vx-raw-shadow);
  --vx-amber:#FFB547;--vx-amber-soft:rgba(255,181,71,.12);--vx-amber-text:#FFC772;
  --vx-pink:#FF8FC0;--vx-pink-soft:rgba(255,143,192,.13);--vx-pink-text:#FFA9CE;
  --vx-red:#FF5A63;--vx-red-soft:rgba(255,90,99,.13);--vx-red-text:#FF8A90;
  --vx-blue:#6DB6FF;--vx-blue-soft:rgba(109,182,255,.13);--vx-blue-text:#8EC6FF;
  --vx-green:#8BDB52;--vx-green-soft:rgba(139,219,82,.12);--vx-green-text:#A6E57A;
  --vx-violet:#B79BFF;--vx-violet-soft:rgba(183,155,255,.13);--vx-violet-text:#CBB7FF;
  --vx-orange:#FF9550;--vx-orange-soft:rgba(255,149,80,.13);--vx-orange-text:#FFB585;
  --vx-yellow:#FFD84D;--vx-yellow-soft:rgba(255,216,77,.12);--vx-yellow-text:#FFE48A;
  --vx-lime:#BEF264;--vx-lime-soft:rgba(190,242,100,.12);--vx-lime-text:#D4F79A;
  --vx-teal:#3DDBB4;--vx-teal-soft:rgba(61,219,180,.12);--vx-teal-text:#7DE8CD;
  --vx-cyan:#4FD8F5;--vx-cyan-soft:rgba(79,216,245,.12);--vx-cyan-text:#8CE6FA;
  --vx-indigo:#8B93FF;--vx-indigo-soft:rgba(139,147,255,.14);--vx-indigo-text:#B0B6FF;
  --vx-magenta:#E879F9;--vx-magenta-soft:rgba(232,121,249,.13);--vx-magenta-text:#F0A6FB;
  --vx-raw-shadow:0 0 0 1px rgba(255,255,255,.035) inset,0 12px 32px -14px rgba(0,0,0,.8);
  --vx-raw-lift:0 24px 60px -20px rgba(0,0,0,.9);
  /* drawn glyphs (url() cannot read a variable): the select chevron in ink-2, the tick in on-ink */
  --vx-raw-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A6A6AE' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --vx-raw-tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
  --vx-glow:1;
  --vx-bg:linear-gradient(#0A0A0B,#0A0A0B);
  /* status marks (dots, a switch or box that is on): the hues; on Light a shade darker so a mark holds 3:1 on paper */
  /* the glow over the agent's stage (the portrait's backdrop) */
  --vx-raw-stage-glow:rgba(255,143,192,.14);
  --vx-raw-stage-veil:transparent;--vx-raw-stage-veil-mid:transparent;
  --vx-raw-success:var(--vx-green);--vx-raw-warn:var(--vx-amber);--vx-raw-danger:var(--vx-red);--vx-raw-agent:var(--vx-pink);
  --vx-raw-track:var(--vx-raw-off);--vx-raw-track-done:var(--vx-raw-mid);
}
:root{
  /* ---- tier 2: roles, the same lines for every mode (they read tier 1) */
  --vx-floor:var(--vx-raw-floor);--vx-card:var(--vx-raw-card);--vx-card-ghost:var(--vx-raw-card-ghost);--vx-well:var(--vx-raw-well);
  --vx-nav:var(--vx-raw-nav);--vx-nav-ink:var(--vx-raw-nav-ink);--vx-raised:var(--vx-raw-raised);--vx-rim:var(--vx-raw-rim);--vx-nav-current:var(--vx-raw-nav-current);
  --vx-ink:var(--vx-raw-ink);--vx-ink-2:var(--vx-raw-ink-2);--vx-ink-3:var(--vx-raw-ink-3);
  --vx-hair:var(--vx-raw-hair);--vx-hair-2:var(--vx-raw-hair-2);
  --vx-on-ink:var(--vx-raw-on-ink);--vx-focus:var(--vx-raw-focus);
  --vx-off:var(--vx-raw-off);--vx-mid:var(--vx-raw-mid);--vx-knob:var(--vx-raw-knob);
  /* the floors of what floats: sheet, dialog and palette; menus and pickers; search results; the phone search cover */
  --vx-overlay:var(--vx-raw-overlay);--vx-pop:var(--vx-raw-pop);--vx-pop-2:var(--vx-raw-pop-2);--vx-cover:var(--vx-raw-cover);
  --vx-card-solid:var(--vx-raw-card-solid);--vx-nav-current-shadow:var(--vx-raw-nav-current-shadow);--vx-scrim:var(--vx-raw-scrim);
  /* dark text on a bright hue (a ticked box, a count badge, a done step); white initials on an avatar's hue */
  --vx-on-hue:var(--vx-raw-black);--vx-on-avatar:var(--vx-raw-white);
  --vx-shadow:var(--vx-raw-shadow);--vx-lift:var(--vx-raw-lift);
  --vx-knob-shadow:0 1px 3px var(--vx-raw-shade);--vx-knob-edge:var(--vx-raw-shade);--vx-thumb-shadow:0 1px 4px var(--vx-raw-shade-2);
  --vx-mask:var(--vx-raw-mask);
  /* a progress track (stages) and its done part */
  --vx-track:var(--vx-raw-track);--vx-track-done:var(--vx-raw-track-done);
  --vx-stage-glow:var(--vx-raw-stage-glow);--vx-stage-veil:var(--vx-raw-stage-veil);--vx-stage-veil-mid:var(--vx-raw-stage-veil-mid);
  --vx-chevron:var(--vx-raw-chevron);--vx-tick:var(--vx-raw-tick);--vx-clear-glyph:var(--vx-raw-clear);
  /* the hues as roles: the data-tone / data-hue palettes, the drawn parts' default hues and the art (empty states,
     the beam, the glow button); the glow strength and the backdrop, so no part reads tier 1 */
  --vx-hue-amber:var(--vx-amber);--vx-hue-amber-soft:var(--vx-amber-soft);--vx-hue-amber-text:var(--vx-amber-text);--vx-hue-pink:var(--vx-pink);--vx-hue-pink-soft:var(--vx-pink-soft);--vx-hue-pink-text:var(--vx-pink-text);--vx-hue-red:var(--vx-red);--vx-hue-red-soft:var(--vx-red-soft);--vx-hue-red-text:var(--vx-red-text);
  --vx-hue-blue:var(--vx-blue);--vx-hue-blue-soft:var(--vx-blue-soft);--vx-hue-blue-text:var(--vx-blue-text);--vx-hue-green:var(--vx-green);--vx-hue-green-soft:var(--vx-green-soft);--vx-hue-green-text:var(--vx-green-text);--vx-hue-violet:var(--vx-violet);--vx-hue-violet-soft:var(--vx-violet-soft);--vx-hue-violet-text:var(--vx-violet-text);
  --vx-hue-orange:var(--vx-orange);--vx-hue-orange-soft:var(--vx-orange-soft);--vx-hue-orange-text:var(--vx-orange-text);--vx-hue-yellow:var(--vx-yellow);--vx-hue-yellow-soft:var(--vx-yellow-soft);--vx-hue-yellow-text:var(--vx-yellow-text);--vx-hue-lime:var(--vx-lime);--vx-hue-lime-soft:var(--vx-lime-soft);--vx-hue-lime-text:var(--vx-lime-text);
  --vx-hue-teal:var(--vx-teal);--vx-hue-teal-soft:var(--vx-teal-soft);--vx-hue-teal-text:var(--vx-teal-text);--vx-hue-cyan:var(--vx-cyan);--vx-hue-cyan-soft:var(--vx-cyan-soft);--vx-hue-cyan-text:var(--vx-cyan-text);--vx-hue-indigo:var(--vx-indigo);--vx-hue-indigo-soft:var(--vx-indigo-soft);--vx-hue-indigo-text:var(--vx-indigo-text);
  --vx-hue-magenta:var(--vx-magenta);--vx-hue-magenta-soft:var(--vx-magenta-soft);--vx-hue-magenta-text:var(--vx-magenta-text);
  --vx-glow-k:var(--vx-glow);--vx-backdrop:var(--vx-bg);
  /* status and the agent */
  --vx-success:var(--vx-raw-success);--vx-success-soft:var(--vx-green-soft);--vx-success-text:var(--vx-green-text);
  --vx-warn:var(--vx-raw-warn);--vx-warn-soft:var(--vx-amber-soft);--vx-warn-text:var(--vx-amber-text);
  --vx-danger:var(--vx-raw-danger);--vx-danger-soft:var(--vx-red-soft);--vx-danger-text:var(--vx-red-text);
  --vx-info:var(--vx-blue);--vx-info-soft:var(--vx-blue-soft);--vx-info-text:var(--vx-blue-text);
  --vx-agent:var(--vx-raw-agent);--vx-agent-soft:var(--vx-pink-soft);--vx-agent-text:var(--vx-pink-text);
  /* type */
  /* Arabic: the self-hosted IBM Plex Sans Arabic (index.html, split by unicode-range) after the Latin face, so Arabic on a kit
     surface is Plex, never the system's font, and every English word keeps its face */
  --vx-font:"VX Inter","IBM Plex Sans Arabic",system-ui,-apple-system,sans-serif;
  --vx-font-mono:"VX Mono","IBM Plex Sans Arabic",ui-monospace,monospace;
  --vx-font-num:"Doto","VX Mono",monospace;
  --vx-fs-1:10.5px;--vx-fs-2:11px;--vx-fs-3:11.5px;--vx-fs-4:12px;--vx-fs-5:12.5px;--vx-fs-6:13px;--vx-fs-7:13.5px;--vx-fs-8:14px;
  --vx-fs-9:14.5px;--vx-fs-10:15px;--vx-fs-11:15.5px;--vx-fs-12:16px;--vx-fs-13:17px;--vx-fs-14:22px;
  --vx-fs-xs:var(--vx-fs-5);--vx-fs-sm:var(--vx-fs-8);--vx-fs-md:var(--vx-fs-10);
  --vx-fs-title-sm:16px;--vx-fs-title:20px;--vx-fs-title-lg:30px;--vx-fs-title-xl:44px;
  --vx-fs-num-sm:24px;--vx-fs-num-md:40px;--vx-fs-num:60px;--vx-fs-num-xl:76px;
  --vx-fw-regular:400;--vx-fw-medium:500;--vx-fw-semibold:600;--vx-fw-bold:700;
  /* radius */
  --vx-r-tick:2px;--vx-r-3xs:6px;--vx-r-2xs:8px;--vx-r-xs:10px;--vx-r-s:12px;--vx-r-sm:14px;--vx-r-md:18px;--vx-r-lg:24px;--vx-r-xl:28px;
  --vx-r-pill:999px;--vx-r-round:50%;
  /* control heights: one scale (sm 36, md 44, field 48); a fine pointer takes md to 40 (below) */
  --vx-h-sm:36px;--vx-h:44px;--vx-h-field:48px;
  /* icon sizes: one scale for a part's icon (xs a small button's or a pager's, sm a row's or a field's, md the nav's, lg a
     drop zone's) */
  --vx-icon-xs:16px;--vx-icon-sm:18px;--vx-icon-md:20px;--vx-icon-lg:28px;
  /* spacing steps: the 4px grid with the half steps the parts use */
  --vx-sp-0h:2px;--vx-sp-1:4px;--vx-sp-1h:6px;--vx-sp-2:8px;--vx-sp-2h:10px;--vx-sp-3:12px;--vx-sp-3h:14px;--vx-sp-4:16px;
  --vx-sp-4h:18px;--vx-sp-5:20px;--vx-sp-5h:22px;--vx-sp-6:24px;--vx-sp-7:28px;--vx-sp-8:32px;--vx-sp-9:36px;
  /* blur and motion */
  --vx-blur:var(--vx-raw-blur);--vx-blur-card:var(--vx-raw-card-blur);--vx-blur-pop:blur(30px) saturate(1.5);--vx-blur-glow:blur(4px);
  --vx-ease:cubic-bezier(.23,1,.32,1);--vx-ease-std:ease;--vx-ease-io:ease-in-out;
  --vx-dur-tap:120ms;--vx-dur-fast:140ms;--vx-dur-quick:160ms;--vx-dur-pop:180ms;--vx-dur-mid:200ms;--vx-dur-toast:260ms;--vx-dur-delay:300ms;--vx-dur-sheet:320ms;--vx-dur-grow:400ms;
  --vx-loop-caret:1s;--vx-loop-loader:1.2s;--vx-loop-shine:1.4s;--vx-loop-shimmer:2.6s;--vx-loop-beam:4s;
  --vx-fast:var(--vx-dur-fast);
  /* ---- tier 3: per component (each reads tier 2) */
  --vx-card-r:var(--vx-r-xl);--vx-card-bg:var(--vx-card);--vx-card-fg:var(--vx-ink);--vx-card-shadow:var(--vx-shadow),inset 0 0 0 1px var(--vx-rim);--vx-card-blur:var(--vx-blur-card);
  --vx-btn-h:var(--vx-h);--vx-btn-h-sm:var(--vx-h-sm);--vx-btn-px:var(--vx-sp-5);--vx-btn-px-sm:var(--vx-sp-3h);--vx-btn-r:var(--vx-r-pill);--vx-btn-fs:var(--vx-fs-md);--vx-btn-fs-sm:var(--vx-fs-sm);--vx-btn-fw:var(--vx-fw-semibold);--vx-btn-icon:var(--vx-icon-sm);--vx-btn-bg:var(--vx-card);--vx-btn-fg:var(--vx-ink);--vx-btn-edge:var(--vx-hair-2);--vx-btn-primary-bg:var(--vx-ink);--vx-btn-primary-fg:var(--vx-on-ink);--vx-btn-ghost-hover:var(--vx-well);--vx-btn-danger-bg:var(--vx-danger-soft);--vx-btn-danger-fg:var(--vx-danger-text);
  --vx-ring-size:42px;--vx-ring-edge:var(--vx-hair-2);
  --vx-chip-h:var(--vx-h-sm);--vx-chip-px:var(--vx-sp-3h);--vx-chip-r:var(--vx-r-pill);--vx-chip-bg:var(--vx-card);--vx-chip-edge:var(--vx-hair);--vx-chip-fg:var(--vx-ink-2);--vx-chip-on-bg:var(--vx-ink);--vx-chip-on-fg:var(--vx-on-ink);
  --vx-seg-h:var(--vx-h-sm);--vx-seg-bg:var(--vx-well);--vx-seg-on-bg:var(--vx-raised);--vx-seg-on-fg:var(--vx-ink);
  --vx-input-h:var(--vx-h-field);--vx-input-r:var(--vx-r-md);--vx-input-bg:var(--vx-card);--vx-input-edge:var(--vx-hair);--vx-input-focus-edge:var(--vx-ink);--vx-field-clear-size:18px;--vx-field-clear-fg:var(--vx-ink-3);--vx-field-clear-hover:var(--vx-ink-2);
  --vx-switch-w:46px;--vx-switch-h:28px;--vx-switch-hit:var(--vx-sp-2);--vx-switch-edge:0;--vx-switch-off:var(--vx-off);--vx-switch-on:var(--vx-success);--vx-switch-knob:var(--vx-knob);--vx-switch-knob-shadow:var(--vx-knob-shadow);--vx-switch-knob-edge:var(--vx-knob-edge);
  --vx-check-size:22px;--vx-check-r:var(--vx-r-2xs);--vx-check-on:var(--vx-success);--vx-check-mark:var(--vx-on-hue);
  --vx-pill-h:26px;--vx-pill-bg:var(--vx-well);--vx-pill-fg:var(--vx-ink-2);
  --vx-badge-size:20px;--vx-badge-bg:var(--vx-agent);--vx-badge-fg:var(--vx-on-hue);
  --vx-avatar-size:36px;--vx-avatar-bg:var(--vx-hue-violet);--vx-avatar-fg:var(--vx-on-avatar);--vx-avatar-ring:var(--vx-floor);
  --vx-row-line:var(--vx-hair);--vx-row-pad-y:var(--vx-sp-3);--vx-row-icon-size:36px;--vx-row-icon-r:var(--vx-r-s);--vx-row-icon-bg:var(--vx-well);--vx-row-icon-fg:var(--vx-ink-2);
  --vx-nav-item-h:42px;--vx-nav-item-r:var(--vx-r-sm);--vx-nav-item-fg:var(--vx-nav-ink);--vx-nav-item-on-bg:var(--vx-nav-current);--vx-nav-item-on-fg:var(--vx-ink);--vx-nav-item-on-shadow:var(--vx-nav-current-shadow);
  --vx-nav-item-hover:var(--vx-well);--vx-nav-item-locked:.32;--vx-nav-item-danger-fg:var(--vx-danger-text);--vx-nav-item-icon:var(--vx-icon-md);
  --vx-nav-fold-indent:calc(var(--vx-sp-3) + var(--vx-nav-item-icon) + var(--vx-sp-3));--vx-nav-fold-row-h:38px;--vx-nav-fold-guide:var(--vx-hair);--vx-nav-fold-now-fg:var(--vx-ink-3);
  --vx-nav-stack-h:58px;--vx-nav-me-bg:var(--vx-well);--vx-nav-me-r:var(--vx-r-md);--vx-nav-me-hit-edge:var(--vx-hair-2);
  --vx-tabbar-bg:var(--vx-nav);--vx-tabbar-edge:var(--vx-hair);--vx-tab-fg:var(--vx-ink-3);--vx-tab-on-fg:var(--vx-ink);
  --vx-kpi-h:248px;--vx-kpi-h-sm:200px;--vx-kpi-r:var(--vx-r-xl);--vx-kpi-r-sm:var(--vx-r-lg);--vx-kpi-bg:var(--vx-card);--vx-kpi-gap:16px;
  --vx-glowbar-r:var(--vx-r-md);--vx-glowbar-blur:var(--vx-blur-glow);
  --vx-pop-bg:var(--vx-pop);--vx-pop-r:var(--vx-r-md);--vx-pop-edge:var(--vx-hair);
  --vx-scrim-bg:var(--vx-scrim);
  --vx-sheet-bg:var(--vx-overlay);--vx-sheet-r:var(--vx-r-xl);--vx-sheet-w:440px;--vx-sheet-edge:var(--vx-hair);
  --vx-dialog-bg:var(--vx-overlay);--vx-dialog-r:var(--vx-r-xl);--vx-dialog-w:440px;
  --vx-toast-bg:var(--vx-ink);--vx-toast-fg:var(--vx-on-ink);--vx-toast-btn-bg:color-mix(in srgb,var(--vx-on-ink) 14%,transparent);
  --vx-tip-bg:var(--vx-ink);--vx-tip-fg:var(--vx-on-ink);--vx-tip-r:var(--vx-r-xs);
  --vx-command-bg:var(--vx-overlay);--vx-command-r:var(--vx-r-lg);--vx-command-w:620px;
  --vx-cal-cell-bg:var(--vx-card-solid);--vx-cal-event-r:var(--vx-r-3xs);
  --vx-tabs-px:var(--vx-sp-3h);--vx-tabs-px-snug:var(--vx-sp-1h);--vx-tabs-fs:var(--vx-fs-10);--vx-tabs-fs-snug:var(--vx-fs-9);--vx-tabs-fade:var(--vx-sp-7);--vx-tabs-sticky-bg:var(--vx-nav);--vx-tabs-sticky-blur:var(--vx-blur);--vx-tabs-sticky-reach:0px;--vx-tabs-sticky-bleed:0px;--vx-tabs-sticky-gap:0px;--vx-tabs-sticky-in:40px;--vx-tabs-sticky-full:120px;
  --vx-steps-bar-done:var(--vx-success);--vx-steps-bar-done-fg:var(--vx-on-hue);--vx-steps-bar-todo-edge:var(--vx-ink-3);--vx-stages-todo:var(--vx-track);--vx-stages-done:var(--vx-track-done);
  --vx-slider-thumb:var(--vx-knob);--vx-slider-thumb-shadow:var(--vx-thumb-shadow);
  --vx-bubble-r:var(--vx-r-lg);--vx-bubble-tail-r:var(--vx-r-3xs);--vx-bubble-bg:var(--vx-ink);--vx-bubble-fg:var(--vx-on-ink);
  --vx-prompt-r:var(--vx-r-xl);
  --vx-fab-size:56px;--vx-fab-r:var(--vx-r-md);--vx-fab-bg:var(--vx-ink);--vx-fab-fg:var(--vx-on-ink);
  --vx-selbar-bg:var(--vx-ink);--vx-selbar-fg:var(--vx-on-ink);--vx-selbar-btn-bg:color-mix(in srgb,var(--vx-on-ink) 12%,transparent);--vx-selbar-primary-bg:var(--vx-on-ink);--vx-selbar-primary-fg:var(--vx-ink);
  --vx-beam-mask:linear-gradient(var(--vx-mask) 0 0);
  --vx-back-h:44px;--vx-back-r:var(--vx-r-sm);--vx-back-gap:var(--vx-sp-0h);--vx-back-pad-start:0px;--vx-back-pad-end:var(--vx-sp-2h);--vx-back-fg:var(--vx-ink-2);--vx-back-fs:var(--vx-fs-10);--vx-back-fw:var(--vx-fw-medium);--vx-back-icon:var(--vx-icon-md);--vx-back-stroke:1.75;--vx-back-pressed:.72;
  --vx-searchbar-h:38px;--vx-sb-max:620px;--vx-appbar-sb-max:560px;--vx-sb-results-bg:var(--vx-pop-2);--vx-sb-cover:var(--vx-cover);--vx-sb-option-r:var(--vx-r-s);
}
@media (pointer:fine){:root{--vx-h:40px}}
/* A finger gets 44px nav rows (the touch target); a mouse keeps the reference's 42 and 38. */
@media (pointer:coarse){:root{--vx-nav-item-h:44px;--vx-nav-fold-row-h:44px;--vx-seg-h:var(--vx-h)}}
/* DELEG8: fixed media colours match the approved robot intro artwork. */
:root{--vx-deleg8-intro-floor:#0d0e10;--vx-deleg8-intro-ink:#f7f4ff;--vx-deleg8-intro-action:#eee8fa;--vx-deleg8-character-edge:#ab92ef;--vx-deleg8-character-fill:#8b6fdb;--vx-deleg8-character-focus:#c4b1ff;--vx-deleg8-bot-body:#7b65e6;--vx-deleg8-bot-body-light:#b8a8fb;--vx-deleg8-bot-body-dark:#4f3fae;--vx-deleg8-bot-screen:#0b0e18;--vx-deleg8-bot-eye:#efeaff;--vx-deleg8-bot-stem:#6b6878;--vx-deleg8-bot-mug:#c4743a;--vx-deleg8-bot-mug-rim:#e2a36f;--vx-deleg8-bot-coffee:#3b2418;--vx-deleg8-bot-steam:#e9e6f2;}

/* DELEG8 sign-in: the named screenshot's fixed maroon/lavender art direction. */
:root{--vx-deleg8-auth-plum:#20102e;--vx-deleg8-auth-maroon:#4c172b;--vx-deleg8-auth-purple:#1a1237;--vx-deleg8-auth-mauve:#705c73;--vx-deleg8-auth-lavender:#a5b8f5;--vx-deleg8-auth-periwinkle:#859fff;--vx-deleg8-auth-wine:#53092f;--vx-deleg8-auth-blue:#7186ef;--vx-deleg8-auth-card:rgba(167,155,223,.19);--vx-deleg8-auth-card-edge:rgba(255,255,255,.055);--vx-deleg8-auth-white:#ffffff;--vx-deleg8-auth-muted:rgba(255,255,255,.72);--vx-deleg8-auth-profile:rgba(255,255,255,.11);--vx-deleg8-auth-profile-ink:rgba(255,255,255,.34);--vx-deleg8-auth-line:rgba(255,255,255,.62);--vx-deleg8-auth-shadow:rgba(18,5,31,.16);}

/* A page that is only the kit paints its own floor: <body class="vx-page">. Inside the app the app's backdrop stays. */
.vx-page{margin:0;min-block-size:100dvh;background:var(--vx-backdrop);color:var(--vx-ink);font-family:var(--vx-font);-webkit-font-smoothing:antialiased}

/* ---------------------------------------------------------------- type */
.vx-title{margin:0;font-family:var(--vx-font-display);font-weight:var(--vx-fw-semibold);letter-spacing:normal;line-height:1.35;font-size:min(var(--_ts,var(--vx-fs-title)),var(--vx-fs-title))}
.vx-title>b,.vx-title>strong{display:block;font-weight:inherit;color:var(--vx-ink)}
.vx-title>span{display:block;color:var(--vx-ink-3)}
.vx-title[data-size="sm"]{--_ts:var(--vx-fs-title-sm)}.vx-title[data-size="lg"]{--_ts:var(--vx-fs-title-lg)}.vx-title[data-size="xl"]{--_ts:var(--vx-fs-title-xl)}
.vx-title:is(:lang(ar),:dir(rtl)){letter-spacing:0}
.vx-num{font-family:var(--vx-font-num);font-weight:700;font-variation-settings:"ROND" 100;line-height:.82;letter-spacing:-.02em;
  color:var(--vx-ink);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:var(--_ns,var(--vx-fs-num))}
.vx-num[data-size="sm"]{--_ns:var(--vx-fs-num-sm)}.vx-num[data-size="md"]{--_ns:var(--vx-fs-num-md)}.vx-num[data-size="xl"]{--_ns:var(--vx-fs-num-xl)}
.vx-num .vx-punct{margin-inline:-.1em}
.vx-eyebrow{margin:0;font:var(--vx-fw-semibold) var(--vx-fs-6)/1.3 var(--vx-font);color:var(--vx-ink-3)}
.vx-caption{font:var(--vx-fw-semibold) var(--vx-fs-10)/1.25 var(--vx-font);color:var(--vx-ink-3)}
.vx-mono{font-family:var(--vx-font-mono)}

/* ---------------------------------------------------------------- surfaces */
/* tier 3: --vx-card-r --vx-card-bg --vx-card-fg --vx-card-shadow --vx-card-blur */
.vx-card{box-sizing:border-box;background:var(--vx-card-bg);border-radius:var(--vx-card-r);color:var(--vx-card-fg);
  box-shadow:var(--vx-card-shadow);-webkit-backdrop-filter:var(--vx-card-blur);backdrop-filter:var(--vx-card-blur)}
/* A card that is a button (a figure that opens its list) draws no browser border: its rim is the inset in --vx-card-shadow. */
button.vx-card{border:0}
.vx-panel{box-sizing:border-box;display:grid;gap:var(--vx-sp-3);align-content:start;padding:var(--vx-sp-5) var(--vx-sp-5h)}
.vx-panel-head{display:flex;align-items:center;justify-content:space-between;gap:var(--vx-sp-3);min-inline-size:0}
.vx-well{background:var(--vx-well);border-radius:var(--vx-r-md)}

/* ---------------------------------------------------------------- controls */
/* tier 3: --vx-btn-h --vx-btn-h-sm --vx-btn-px --vx-btn-px-sm --vx-btn-r --vx-btn-fs --vx-btn-fs-sm --vx-btn-fw --vx-btn-icon --vx-btn-bg --vx-btn-fg --vx-btn-edge --vx-btn-primary-bg --vx-btn-primary-fg --vx-btn-ghost-hover --vx-btn-danger-bg --vx-btn-danger-fg */
.vx-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:var(--vx-sp-2);block-size:var(--vx-btn-h);padding-inline:var(--vx-btn-px);margin:0;
  border-radius:var(--vx-btn-r);border:1px solid transparent;font:var(--vx-btn-fw) var(--vx-btn-fs)/1 var(--vx-font);letter-spacing:-.01em;white-space:nowrap;cursor:pointer;
  background:var(--vx-btn-bg);color:var(--vx-btn-fg);text-decoration:none;-webkit-tap-highlight-color:transparent;
  transition:transform var(--vx-dur-fast) var(--vx-ease),background-color var(--vx-dur-quick) var(--vx-ease-std),box-shadow var(--vx-dur-mid) var(--vx-ease-std)}
.vx-btn:active{transform:scale(.97)}
.vx-btn:focus-visible,.vx-chip:focus-visible,.vx-ring:focus-visible,.vx-seg>button:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}
.vx-btn:disabled{opacity:.45;cursor:default;transform:none}
.vx-btn>svg,.vx-btn>vx-icon{inline-size:var(--vx-btn-icon);block-size:var(--vx-btn-icon);flex:none}
.vx-btn[data-variant="primary"]{background:var(--vx-btn-primary-bg);color:var(--vx-btn-primary-fg)}
.vx-btn[data-variant="secondary"],.vx-btn:not([data-variant]){border-color:var(--vx-btn-edge);-webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur)}
.vx-btn[data-variant="ghost"]{background:transparent;border-color:transparent}
.vx-btn[data-variant="glow"]{border-color:var(--vx-hair);box-shadow:0 0 0 1px var(--vx-hair),0 8px 26px -8px color-mix(in srgb,var(--vx-hue-pink) 70%,transparent)}
.vx-btn[data-variant="danger"]{background:var(--vx-btn-danger-bg);color:var(--vx-btn-danger-fg)}
.vx-btn[data-size="sm"]{block-size:var(--vx-btn-h-sm);padding-inline:var(--vx-btn-px-sm);font-size:var(--vx-btn-fs-sm)}
.vx-btn[data-icon]{flex:none;inline-size:var(--vx-btn-h);padding:0}   /* never squeezed by a long neighbour, in either direction */
.vx-btn[data-icon][data-size="sm"]{inline-size:var(--vx-btn-h-sm)}
.vx-btn[data-block]{display:flex;inline-size:100%}
@media (hover:hover){.vx-btn[data-variant="ghost"]:hover{background:var(--vx-btn-ghost-hover)}}

/* tier 3: --vx-ring-size --vx-ring-edge */
.vx-ring{box-sizing:border-box;flex:none;display:grid;place-items:center;inline-size:var(--vx-ring-size);block-size:var(--vx-ring-size);padding:0;margin:0;border-radius:var(--vx-r-round);
  border:1.5px dotted var(--vx-ring-edge);background:transparent;color:var(--vx-ink);cursor:pointer;transition:transform var(--vx-dur-fast) var(--vx-ease),background-color var(--vx-dur-quick) var(--vx-ease-std)}
.vx-ring:active{transform:scale(.94)}
@media (hover:hover) and (pointer:fine){.vx-ring:hover{background:var(--vx-well)}}
.vx-ring>svg,.vx-ring>vx-icon{inline-size:var(--vx-icon-sm);block-size:var(--vx-icon-sm)}
.vx-ring[aria-pressed="true"] svg{fill:currentColor}

/* tier 3: --vx-chip-h --vx-chip-px --vx-chip-r --vx-chip-bg --vx-chip-edge --vx-chip-fg --vx-chip-on-bg --vx-chip-on-fg */
.vx-chip{box-sizing:border-box;display:inline-flex;align-items:center;gap:var(--vx-sp-2);block-size:var(--vx-chip-h);padding-inline:var(--vx-chip-px);margin:0;border-radius:var(--vx-chip-r);
  background:var(--vx-chip-bg);border:1px solid var(--vx-chip-edge);font:var(--vx-fw-semibold) var(--vx-fs-8)/1 var(--vx-font);color:var(--vx-chip-fg);cursor:pointer;white-space:nowrap;
  -webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur)}
.vx-chip[aria-pressed="true"],.vx-chip[aria-selected="true"]{background:var(--vx-chip-on-bg);border-color:var(--vx-chip-on-bg);color:var(--vx-chip-on-fg)}
.vx-chip>.vx-dot{inline-size:7px;block-size:7px}

/* tier 3: --vx-seg-h --vx-seg-bg --vx-seg-on-bg --vx-seg-on-fg (a finger gets --vx-h, 44px) */
.vx-seg{display:inline-grid;grid-auto-flow:column;padding:var(--vx-sp-1);border-radius:var(--vx-r-pill);background:var(--vx-seg-bg)}
.vx-seg>button{block-size:var(--vx-seg-h);padding-inline:var(--vx-sp-4h);border:0;border-radius:var(--vx-r-pill);background:transparent;font:var(--vx-fw-semibold) var(--vx-fs-8)/1 var(--vx-font);color:var(--vx-ink-2);cursor:pointer}
.vx-seg>button[aria-selected="true"],.vx-seg>button[aria-pressed="true"]{background:var(--vx-seg-on-bg);color:var(--vx-seg-on-fg);box-shadow:var(--vx-shadow)}

/* tier 3: --vx-input-h --vx-input-r --vx-input-bg --vx-input-edge --vx-input-focus-edge --vx-field-clear-size --vx-field-clear-fg --vx-field-clear-hover
   data-clear="own": the field has its own clear button, so a type="search" input hides the kit's × (one clear). */
.vx-field{box-sizing:border-box;display:flex;align-items:center;gap:var(--vx-sp-2h);block-size:var(--vx-input-h);padding-inline:var(--vx-sp-4);border-radius:var(--vx-input-r);
  background:var(--vx-input-bg);border:1px solid var(--vx-input-edge);color:var(--vx-ink-3);font:var(--vx-fw-regular) var(--vx-fs-10) var(--vx-font);
  -webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur);transition:border-color var(--vx-dur-quick) var(--vx-ease-std),box-shadow var(--vx-dur-quick) var(--vx-ease-std)}
.vx-field:focus-within{border-color:var(--vx-input-focus-edge);box-shadow:0 0 0 4px var(--vx-well)}
.vx-field>input,.vx-field>textarea{all:unset;flex:1;min-inline-size:0;color:var(--vx-ink);font:inherit}
.vx-field>input{inline-size:0;align-self:stretch}   /* the whole field's height takes the tap */
.vx-field{min-inline-size:0}
.vx-field>input::placeholder{color:var(--vx-ink-3)}
.vx-field>svg,.vx-field>vx-icon{inline-size:var(--vx-icon-sm);block-size:var(--vx-icon-sm);flex:none}
/* A search field's clear (×) is the kit's, in the field's quiet ink, in every mode (not the browser's blue one). */
.vx-field input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.vx-field input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;inline-size:var(--vx-field-clear-size);block-size:var(--vx-field-clear-size);margin:0;cursor:pointer;
  background:var(--vx-field-clear-fg);-webkit-mask:var(--vx-clear-glyph) center/contain no-repeat;mask:var(--vx-clear-glyph) center/contain no-repeat}
@media (hover:hover){.vx-field input[type="search"]::-webkit-search-cancel-button:hover{background:var(--vx-field-clear-hover)}}
.vx-field[data-clear="own"] input[type="search"]::-webkit-search-cancel-button{display:none}

/* tier 3: --vx-switch-w --vx-switch-h --vx-switch-hit --vx-switch-edge --vx-switch-off --vx-switch-on --vx-switch-knob --vx-switch-knob-shadow --vx-switch-knob-edge (the old kit's drawn knob) */
.vx-switch{appearance:none;-webkit-appearance:none;position:relative;flex:none;inline-size:var(--vx-switch-w);block-size:var(--vx-switch-h);margin:0;border:var(--vx-switch-edge);border-radius:var(--vx-r-pill);background:var(--vx-switch-off);cursor:pointer;transition:background-color var(--vx-dur-mid) var(--vx-ease-std)}
.vx-switch::after{content:"";position:absolute;inset-block-start:3px;inset-inline-start:3px;inline-size:22px;block-size:22px;border-radius:var(--vx-r-round);background:var(--vx-switch-knob);box-shadow:var(--vx-switch-knob-shadow);transition:transform var(--vx-dur-mid) var(--vx-ease)}
/* the touch target: the track grows by --vx-switch-hit on every side to 44px (::after is the knob) */
.vx-switch::before{content:"";position:absolute;inset:calc(-1 * var(--vx-switch-hit))}
.vx-switch:checked{background:var(--vx-switch-on);box-shadow:0 0 16px -2px color-mix(in srgb,var(--vx-switch-on) calc(var(--vx-glow-k) * 70%),transparent)}
.vx-switch:checked::after{transform:translateX(18px)}
.vx-switch:checked:dir(rtl)::after{transform:translateX(-18px)}
.vx-switch:focus-visible,.vx-check:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}
/* tier 3: --vx-check-size --vx-check-r --vx-check-on --vx-check-mark */
.vx-check{appearance:none;-webkit-appearance:none;flex:none;inline-size:var(--vx-check-size);block-size:var(--vx-check-size);margin:0;border-radius:var(--vx-check-r);border:1.5px solid var(--vx-hair-2);background:transparent;cursor:pointer;display:grid;place-items:center}
.vx-check:is(:checked,[aria-checked="true"]){background:var(--vx-check-on);border-color:var(--vx-check-on);box-shadow:0 0 12px -2px color-mix(in srgb,var(--vx-check-on) calc(var(--vx-glow-k) * 80%),transparent)}
.vx-check:is(:checked,[aria-checked="true"])::after{content:"";inline-size:10px;block-size:6px;border:2px solid var(--vx-check-mark);border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg)}
/* .vx-check on a <button role="checkbox"> (a tick that acts at once, e.g. a task done): aria-checked draws it, a press sinks it. */
button.vx-check{padding:0;transition:transform var(--vx-dur-fast) var(--vx-ease),background-color var(--vx-dur-quick) var(--vx-ease-std)}
button.vx-check:active{transform:scale(.92)}
@media (prefers-reduced-motion:reduce){button.vx-check{transition:background-color var(--vx-dur-quick) var(--vx-ease-std)}button.vx-check:active{transform:none}}

/* ---------------------------------------------------------------- status */
.vx-dot{display:inline-block;flex:none;inline-size:8px;block-size:8px;border-radius:var(--vx-r-round);background:var(--_c,var(--vx-ink-3))}
.vx-dot[data-glow]{box-shadow:0 0 10px var(--_c)}
[data-tone="green"]{--_c:var(--vx-hue-green);--_s:var(--vx-hue-green-soft);--_t:var(--vx-hue-green-text)}
[data-tone="amber"]{--_c:var(--vx-hue-amber);--_s:var(--vx-hue-amber-soft);--_t:var(--vx-hue-amber-text)}
[data-tone="red"]{--_c:var(--vx-hue-red);--_s:var(--vx-hue-red-soft);--_t:var(--vx-hue-red-text)}
[data-tone="blue"]{--_c:var(--vx-hue-blue);--_s:var(--vx-hue-blue-soft);--_t:var(--vx-hue-blue-text)}
[data-tone="pink"]{--_c:var(--vx-hue-pink);--_s:var(--vx-hue-pink-soft);--_t:var(--vx-hue-pink-text)}
[data-tone="violet"]{--_c:var(--vx-hue-violet);--_s:var(--vx-hue-violet-soft);--_t:var(--vx-hue-violet-text)}
[data-tone="orange"]{--_c:var(--vx-hue-orange);--_s:var(--vx-hue-orange-soft);--_t:var(--vx-hue-orange-text)}
[data-tone="yellow"]{--_c:var(--vx-hue-yellow);--_s:var(--vx-hue-yellow-soft);--_t:var(--vx-hue-yellow-text)}
[data-tone="lime"]{--_c:var(--vx-hue-lime);--_s:var(--vx-hue-lime-soft);--_t:var(--vx-hue-lime-text)}
[data-tone="teal"]{--_c:var(--vx-hue-teal);--_s:var(--vx-hue-teal-soft);--_t:var(--vx-hue-teal-text)}
[data-tone="cyan"]{--_c:var(--vx-hue-cyan);--_s:var(--vx-hue-cyan-soft);--_t:var(--vx-hue-cyan-text)}
[data-tone="indigo"]{--_c:var(--vx-hue-indigo);--_s:var(--vx-hue-indigo-soft);--_t:var(--vx-hue-indigo-text)}
[data-tone="magenta"]{--_c:var(--vx-hue-magenta);--_s:var(--vx-hue-magenta-soft);--_t:var(--vx-hue-magenta-text)}
/* tier 3: --vx-pill-h --vx-pill-bg --vx-pill-fg */
.vx-pill{display:inline-flex;align-items:center;gap:var(--vx-sp-1h);block-size:var(--vx-pill-h);padding-inline:var(--vx-sp-2h);border-radius:var(--vx-r-pill);font:var(--vx-fw-semibold) var(--vx-fs-5)/1 var(--vx-font);white-space:nowrap;
  background:var(--_s,var(--vx-pill-bg));color:var(--_t,var(--vx-pill-fg))}
.vx-pill::before{content:"";inline-size:6px;block-size:6px;border-radius:var(--vx-r-round);background:currentColor;box-shadow:0 0 8px currentColor}
.vx-pill[data-plain]::before{display:none}
/* tier 3: --vx-badge-size --vx-badge-bg --vx-badge-fg */
.vx-badge{display:inline-grid;place-items:center;min-inline-size:var(--vx-badge-size);block-size:var(--vx-badge-size);padding-inline:var(--vx-sp-1h);box-sizing:border-box;border-radius:var(--vx-r-pill);
  background:var(--vx-badge-bg);color:var(--vx-badge-fg);font:var(--vx-fw-bold) var(--vx-fs-3)/1 var(--vx-font)}
/* tier 3: --vx-avatar-size --vx-avatar-bg --vx-avatar-fg --vx-avatar-ring */
.vx-avatar{position:relative;display:inline-grid;place-items:center;flex:none;inline-size:var(--_a,var(--vx-avatar-size));block-size:var(--_a,var(--vx-avatar-size));border-radius:var(--vx-r-round);
  background:var(--_c,var(--vx-avatar-bg));color:var(--vx-avatar-fg);font:700 calc(var(--_a,var(--vx-avatar-size)) * .36) var(--vx-font);overflow:visible}
.vx-avatar[data-size="sm"]{--_a:30px}.vx-avatar[data-size="lg"]{--_a:48px}
.vx-avatar>img{inline-size:100%;block-size:100%;border-radius:var(--vx-r-round);object-fit:cover}
.vx-avatar[data-status]::after{content:"";position:absolute;inset-block-end:-1px;inset-inline-end:-1px;inline-size:11px;block-size:11px;border-radius:var(--vx-r-round);
  border:2px solid var(--vx-avatar-ring);background:var(--vx-ink-3)}
.vx-avatar[data-status="working"]::after{background:var(--vx-success)}
.vx-avatar[data-status="break"]::after{background:var(--vx-warn)}
.vx-avatar[data-status="away"]::after{background:var(--vx-danger)}

/* ---------------------------------------------------------------- lists */
/* tier 3: --vx-row-line --vx-row-pad-y --vx-row-icon-size --vx-row-icon-r --vx-row-icon-bg --vx-row-icon-fg */
.vx-rows{display:grid}
.vx-row{display:flex;align-items:center;gap:var(--vx-sp-3);min-inline-size:0;padding-block:var(--vx-row-pad-y);border-block-start:1px solid var(--vx-row-line)}
/* The first row keeps its 1px line, only unseen, so every row of a list is the same height. */
.vx-rows>.vx-row:first-child{border-block-start-color:transparent}
.vx-row-icon{display:grid;place-items:center;flex:none;inline-size:var(--vx-row-icon-size);block-size:var(--vx-row-icon-size);border-radius:var(--vx-row-icon-r);background:var(--vx-row-icon-bg);color:var(--vx-row-icon-fg)}
.vx-row-icon>svg,.vx-row-icon>vx-icon{inline-size:var(--vx-icon-sm);block-size:var(--vx-icon-sm)}
.vx-row-text{flex:1;min-inline-size:0}
.vx-row-text>b{display:block;font:var(--vx-fw-semibold) var(--vx-fs-9)/1.3 var(--vx-font);color:var(--vx-ink)}
/* a pill in a row's title sits on the title's line without making that row taller than its neighbours */
.vx-row-text>b .vx-pill{vertical-align:middle;margin-block:calc((1lh - var(--vx-pill-h)) / 2)}
.vx-row-text>span{display:block;font:var(--vx-fw-regular) var(--vx-fs-6)/1.35 var(--vx-font);color:var(--vx-ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* A row whose text opens the item while the row keeps other buttons: the text is the button, drawn as the row's text. */
button.vx-row-text{display:block;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer}
button.vx-row-text:focus-visible,button.vx-row:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px;border-radius:var(--vx-r-xs)}
button.vx-row{inline-size:100%;margin:0;padding-inline:0;background:none;border-inline:0;border-block-end:0;color:inherit;font:inherit;text-align:start;cursor:pointer;transition:opacity var(--vx-dur-tap) var(--vx-ease)}
.vx-person{display:flex;align-items:center;gap:var(--vx-sp-2h);min-inline-size:0;padding:var(--vx-sp-2h);border-radius:var(--vx-r-md);background:var(--vx-well)}
.vx-person>div>b{display:block;font:var(--vx-fw-semibold) var(--vx-fs-7)/1.3 var(--vx-font)}.vx-person>div>span{display:block;font:var(--vx-fw-regular) var(--vx-fs-4)/1.3 var(--vx-font);color:var(--vx-ink-3)}
.vx-table{display:grid;padding:var(--vx-sp-1h) var(--vx-sp-2);font:var(--vx-fw-regular) var(--vx-fs-8)/1.35 var(--vx-font);overflow-x:auto;overscroll-behavior-x:contain}
.vx-table>.vx-tr{min-inline-size:var(--vx-table-min,0)}
@media (max-width:719px){.vx-table{--vx-table-min:560px}}
.vx-tr{display:grid;grid-template-columns:var(--vx-cols,repeat(4,1fr));gap:var(--vx-sp-3h);align-items:center;padding:var(--vx-sp-3) var(--vx-sp-3h);border-radius:var(--vx-r-sm)}
.vx-tr[data-head]{font:var(--vx-fw-semibold) var(--vx-fs-5) var(--vx-font);color:var(--vx-ink-3);padding-block:var(--vx-sp-3) var(--vx-sp-2)}
.vx-tr:not([data-head])+.vx-tr{box-shadow:0 -1px 0 var(--vx-hair)}
.vx-tr[aria-selected="true"],.vx-tr[aria-selected="true"]+.vx-tr{box-shadow:none}
.vx-tr[aria-selected="true"]{background:var(--vx-well)}
.vx-tr b{font-weight:600}.vx-tr small{display:block;color:var(--vx-ink-3);font-size:var(--vx-fs-xs);margin-block-start:var(--vx-sp-0h)}
.vx-tr [data-num]{font-variant-numeric:tabular-nums;font-weight:600}
.vx-dl{display:grid;grid-template-columns:auto 1fr;gap:var(--vx-sp-2h) var(--vx-sp-4h);margin:0;font:var(--vx-fw-regular) var(--vx-fs-8) var(--vx-font)}
.vx-dl>dt{color:var(--vx-ink-3)}.vx-dl>dd{margin:0;font-weight:600;text-align:end}
.vx-timeline{display:grid;gap:var(--vx-sp-3);margin:0;padding:0;list-style:none}
.vx-timeline>li{display:flex;gap:var(--vx-sp-2h);font:var(--vx-fw-regular) var(--vx-fs-7)/1.4 var(--vx-font);color:var(--vx-ink-2)}
.vx-timeline>li>.vx-dot{margin-block-start:var(--vx-sp-1h)}

/* ---------------------------------------------------------------- shell */
/* tier 3: --vx-nav-item-h --vx-nav-item-r --vx-nav-item-fg --vx-nav-item-on-bg --vx-nav-item-on-fg --vx-nav-item-on-shadow */
.vx-nav{display:grid;gap:var(--vx-sp-1)}
.vx-nav-item{box-sizing:border-box;display:flex;align-items:center;gap:var(--vx-sp-3);block-size:var(--vx-nav-item-h);padding-inline:var(--vx-sp-3);border:0;border-radius:var(--vx-nav-item-r);background:none;
  color:var(--vx-nav-item-fg);font:var(--vx-fw-semibold) var(--vx-fs-9) var(--vx-font);text-decoration:none;cursor:pointer;inline-size:100%;text-align:start}
.vx-nav-item>svg,.vx-nav-item>vx-icon{inline-size:var(--vx-icon-md);block-size:var(--vx-icon-md);flex:none}
.vx-nav-item[aria-current="page"]{background:var(--vx-nav-item-on-bg);color:var(--vx-nav-item-on-fg);box-shadow:var(--vx-nav-item-on-shadow)}
.vx-nav-count{margin-inline-start:auto;font:var(--vx-fw-semibold) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}
.vx-nav-group{padding:var(--vx-sp-4h) var(--vx-sp-3) var(--vx-sp-1h);font:var(--vx-fw-semibold) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}
/* The app's rail (10 Nov, the shell on the kit): row states, a label that ellipsizes, a danger row (Sign out), a fold (a
   row that opens rows under it: HR, Projects, Sales), a stacked rail (icon over a short name, in a narrow window) and the
   person's card at the foot.
   tier 3: --vx-nav-item-hover --vx-nav-item-locked --vx-nav-item-danger-fg --vx-nav-item-icon --vx-nav-fold-indent
           --vx-nav-fold-row-h --vx-nav-fold-guide --vx-nav-fold-now-fg --vx-nav-stack-h --vx-nav-me-bg --vx-nav-me-r
           --vx-nav-me-hit-edge
   Row:    <button class="vx-nav-item">svg<span class="vx-nav-label">Name</span>[<span class="vx-badge">2</span>]</button>
           aria-current="page" lights it, aria-disabled="true" locks it, data-tone="danger" (Sign out).
   Fold:   <div class="vx-nav-fold" [data-open="false"] [data-current] [data-mode="flyout"] [data-instant]>
             <button class="vx-nav-item vx-nav-fold-head" aria-expanded aria-controls>svg<span class="vx-nav-label">…</span>
               <span class="vx-nav-fold-now"></span><svg class="vx-nav-fold-chev">…</svg></button>
             <div class="vx-nav-fold-rows" role="group"><div class="vx-nav-fold-inner"> rows </div></div></div>
           The page's script opens and shuts it (aria-expanded, data-open, inert on the rows shut); Enter and Space are the
           head button's own. Shut with the lit row inside (data-current) the head takes the lit look and names the row in
           -now. data-instant skips the motion (a keyboard toggle, the first paint). data-mode="flyout": the rows stay out
           and the head opens a menu beside it (.vx-nav-fold-at is the point it opens from). Mirrors in Arabic.
   Stack:  .vx-nav[data-stacked]: each row its icon over its name, centred; a badge sits on the icon's corner.
   Card:   <button class="vx-nav-me"><span class="vx-avatar">AK</span><span class="vx-nav-me-text"><b>Name</b>
             <small>Role</small></span></button>; data-hit marks it as a search match, data-compact shows the
           picture alone (a stacked rail). */
.vx-nav-item{position:relative}
.vx-nav-item>svg{inline-size:var(--vx-nav-item-icon);block-size:var(--vx-nav-item-icon)}
.vx-nav-item:focus-visible,.vx-nav-me:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-2px}
@media (hover:hover){.vx-nav-item:not([aria-current="page"],[aria-disabled="true"]):hover,.vx-nav-me:hover{background:var(--vx-nav-item-hover);color:var(--vx-nav-item-on-fg)}}
.vx-nav-item[aria-disabled="true"]{opacity:var(--vx-nav-item-locked);cursor:default}
.vx-nav-item[data-tone="danger"]{color:var(--vx-nav-item-danger-fg)}
.vx-nav-label{flex:0 1 auto;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-nav-item>.vx-badge{margin-inline-start:auto}
.vx-nav-fold{display:grid;gap:var(--vx-sp-0h)}
.vx-nav-fold-head{padding-inline-end:calc(var(--vx-sp-2) + 16px + var(--vx-sp-2))}
.vx-nav-fold-now{min-inline-size:0;margin-inline-start:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--vx-nav-fold-now-fg);font:var(--vx-fw-regular) var(--vx-fs-6) var(--vx-font)}
.vx-nav-fold:not([data-open="false"]) .vx-nav-fold-now{display:none}
.vx-nav-item>.vx-nav-fold-chev{position:absolute;inset-block:0;inset-inline-end:var(--vx-sp-2);margin-block:auto;inline-size:16px;block-size:16px;color:var(--vx-ink-3);transform:rotate(90deg);transition:transform var(--vx-dur-quick) var(--vx-ease)}
.vx-nav-fold[data-open="false"] .vx-nav-fold-chev{transform:rotate(0deg)}
.vx-nav-fold-chev:dir(rtl){scale:-1 1}
.vx-nav-fold:is([data-open="false"],[data-mode="flyout"])[data-current]>.vx-nav-fold-head{background:var(--vx-nav-item-on-bg);color:var(--vx-nav-item-on-fg);box-shadow:var(--vx-nav-item-on-shadow)}
.vx-nav-fold-rows{display:grid;grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows var(--vx-dur-quick) var(--vx-ease),opacity var(--vx-dur-quick) var(--vx-ease),visibility 0s}
.vx-nav-fold[data-open="false"] .vx-nav-fold-rows{grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows var(--vx-dur-quick) var(--vx-ease),opacity var(--vx-dur-quick) var(--vx-ease),visibility 0s linear var(--vx-dur-quick)}
.vx-nav-fold-inner{position:relative;display:grid;gap:var(--vx-sp-0h);min-block-size:0;overflow:hidden;padding-inline-start:calc(var(--vx-nav-fold-indent) - var(--vx-sp-3))}
.vx-nav-fold-inner::before{content:"";position:absolute;inset-block:var(--vx-sp-1h);inset-inline-start:calc(var(--vx-sp-3) + var(--vx-nav-item-icon) / 2);inline-size:1px;background:var(--vx-nav-fold-guide);pointer-events:none}
.vx-nav-fold-inner>.vx-nav-item{block-size:var(--vx-nav-fold-row-h);font-weight:var(--vx-fw-medium)}
.vx-nav-fold[data-instant] :is(.vx-nav-fold-rows,.vx-nav-fold-chev){transition:none}
.vx-nav-fold[data-mode="flyout"] :is(.vx-nav-fold-rows,.vx-nav-fold-chev,.vx-nav-fold-now){display:none}
.vx-nav-fold-at{position:absolute;inset-block-start:0;inset-inline-end:calc(-1 * var(--vx-sp-2));inline-size:0;block-size:0;pointer-events:none}
.vx-nav[data-stacked] .vx-nav-item{flex-direction:column;justify-content:center;gap:var(--vx-sp-1);block-size:auto;min-block-size:var(--vx-nav-stack-h);padding:var(--vx-sp-1) var(--vx-sp-0h);text-align:center;font-size:var(--vx-fs-2);line-height:1.15}
.vx-nav[data-stacked] .vx-nav-label{white-space:normal;overflow-wrap:anywhere}
.vx-nav[data-stacked] .vx-nav-item>.vx-badge{position:absolute;inset-block-start:var(--vx-sp-1);inset-inline-end:var(--vx-sp-1);margin:0}
.vx-nav[data-stacked] .vx-nav-fold-head{padding-inline-end:var(--vx-sp-0h)}
.vx-nav[data-stacked] .vx-nav-fold[data-mode="flyout"] .vx-nav-fold-head>.vx-nav-label{display:none}
.vx-nav[data-stacked] .vx-nav-fold[data-mode="flyout"] .vx-nav-fold-head::after{content:attr(data-short);display:block;min-inline-size:0;overflow:hidden;text-overflow:ellipsis}
.vx-nav-me{box-sizing:border-box;display:flex;align-items:center;gap:var(--vx-sp-3);inline-size:100%;padding:var(--vx-sp-2);border:1px solid transparent;border-radius:var(--vx-nav-me-r);background:var(--vx-nav-me-bg);color:var(--vx-ink);font:inherit;text-align:start;cursor:pointer}
.vx-nav-me[data-hit]{border-color:var(--vx-nav-me-hit-edge)}
.vx-nav-me-text{flex:1 1 auto;min-inline-size:0}
.vx-nav-me-text>b,.vx-nav-me-text>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-nav-me-text>b{font:var(--vx-fw-semibold) var(--vx-fs-8)/1.3 var(--vx-font)}
.vx-nav-me-text>small{font:var(--vx-fw-regular) var(--vx-fs-5)/1.3 var(--vx-font);color:var(--vx-ink-3)}
.vx-nav-me-text>small:empty{display:none}
/* data-compact: the picture alone, centred (a stacked rail). */
.vx-nav-me[data-compact]{justify-content:center;padding:var(--vx-sp-1)}
.vx-nav-me[data-compact]>.vx-nav-me-text{display:none}
@media (prefers-reduced-motion:reduce){.vx-nav-fold-rows,.vx-nav-fold[data-open="false"] .vx-nav-fold-rows,.vx-nav-fold-chev{transition:none}}
/* tier 3: --vx-tabbar-bg --vx-tabbar-edge --vx-tab-fg --vx-tab-on-fg */
.vx-tabbar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--vx-tabbar-bg);
  border-block-start:1px solid var(--vx-tabbar-edge);-webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur)}
.vx-tab{display:grid;justify-items:center;gap:var(--vx-sp-1);padding:var(--vx-sp-1) 0;border:0;background:none;font:var(--vx-fw-semibold) var(--vx-fs-2) var(--vx-font);color:var(--vx-tab-fg);cursor:pointer}
.vx-tab>svg,.vx-tab>vx-icon{inline-size:24px;block-size:24px}
.vx-tab[aria-current="page"]{color:var(--vx-tab-on-fg)}
.vx-status-bar{box-sizing:border-box;display:inline-flex;align-items:center;gap:var(--vx-sp-3);inline-size:max-content;max-inline-size:100%;justify-self:start;align-self:start;padding:var(--vx-sp-1h);padding-inline-start:var(--vx-sp-4);border-radius:var(--vx-r-pill)}
.vx-status-bar>.vx-status-time{font-variant-numeric:tabular-nums}
.vx-status-bar>.vx-btn{margin-inline-start:var(--vx-sp-0h)}
.vx-status-bar>b{font:var(--vx-fw-semibold) var(--vx-fs-10) var(--vx-font);white-space:nowrap}.vx-status-bar>span{font:var(--vx-fw-medium) var(--vx-fs-8) var(--vx-font);color:var(--vx-ink-3);white-space:nowrap}
.vx-status-bar>.vx-dot{inline-size:10px;block-size:10px}
.vx-page-dots{display:flex;justify-content:center;gap:var(--vx-sp-1h)}
.vx-page-dots>i{inline-size:6px;block-size:6px;border-radius:var(--vx-r-pill);background:var(--vx-mid);transition:inline-size var(--vx-dur-mid) var(--vx-ease)}
.vx-page-dots>i[aria-current="true"]{inline-size:18px;background:var(--vx-ink)}

/* ---------------------------------------------------------------- agent */
.vx-think{display:grid;gap:var(--vx-sp-3);padding:var(--vx-sp-4h) var(--vx-sp-5);border-radius:var(--vx-r-lg)}
.vx-think-head{display:flex;align-items:center;gap:var(--vx-sp-3);font:var(--vx-fw-semibold) var(--vx-fs-10) var(--vx-font)}
.vx-think-head>small{margin-inline-start:auto;font:var(--vx-fw-medium) var(--vx-fs-5) var(--vx-font-mono);color:var(--vx-ink-3)}
.vx-steps{margin:0;margin-inline-start:9px;padding:0;padding-inline-start:var(--vx-sp-3h);list-style:none;display:grid;gap:var(--vx-sp-2);border-inline-start:1px dashed var(--vx-hair-2)}
.vx-steps>li{font:var(--vx-fw-regular) var(--vx-fs-8)/1.4 var(--vx-font);color:var(--vx-ink-2)}
.vx-steps>li>b{color:var(--vx-ink);font-weight:600}
.vx-tools{display:flex;flex-wrap:wrap;gap:var(--vx-sp-2)}
.vx-tool{display:inline-flex;align-items:center;gap:var(--vx-sp-2);block-size:28px;padding-inline:var(--vx-sp-2h);border-radius:var(--vx-r-xs);background:var(--vx-well);font:var(--vx-fw-medium) var(--vx-fs-5) var(--vx-font-mono);color:var(--vx-ink-2)}
.vx-tool::before{content:"";inline-size:6px;block-size:6px;border-radius:var(--vx-r-round);background:var(--vx-success);box-shadow:0 0 8px var(--vx-success)}
.vx-tool[data-state="running"]::before{background:var(--vx-warn);box-shadow:0 0 8px var(--vx-warn)}
.vx-tool[data-state="failed"]::before{background:var(--vx-danger);box-shadow:0 0 8px var(--vx-danger)}
.vx-approve{display:grid;gap:var(--vx-sp-3h);padding:var(--vx-sp-4h) var(--vx-sp-5);border-radius:var(--vx-r-lg)}
.vx-approve>p{margin:0;font:var(--vx-fw-regular) var(--vx-fs-10)/1.45 var(--vx-font);color:var(--vx-ink-2)}
.vx-approve>p b{color:var(--vx-ink)}
.vx-actions{display:flex;flex-wrap:wrap;gap:var(--vx-sp-2h);align-items:center}
/* tier 3: --vx-bubble-r --vx-bubble-tail-r --vx-bubble-bg --vx-bubble-fg */
.vx-bubble{max-inline-size:min(70%,560px);padding:13px 17px;border-radius:var(--vx-bubble-r) var(--vx-bubble-r) var(--vx-bubble-tail-r) var(--vx-bubble-r);background:var(--vx-bubble-bg);color:var(--vx-bubble-fg);font:var(--vx-fw-regular) var(--vx-fs-10)/1.45 var(--vx-font);justify-self:end}
.vx-bubble:dir(rtl){border-radius:var(--vx-bubble-r) var(--vx-bubble-r) var(--vx-bubble-r) var(--vx-bubble-tail-r)}
.vx-reply{display:grid;gap:var(--vx-sp-3);font:var(--vx-fw-regular) var(--vx-fs-10)/1.55 var(--vx-font);color:var(--vx-ink)}
.vx-reply>p{margin:0}
/* tier 3: --vx-prompt-r */
.vx-prompt{box-sizing:border-box;display:grid;gap:var(--vx-sp-2h);padding:var(--vx-sp-3h);padding-inline-start:var(--vx-sp-4h);border-radius:var(--vx-prompt-r)}
.vx-prompt-input{all:unset;font:var(--vx-fw-regular) var(--vx-fs-11)/1.5 var(--vx-font);color:var(--vx-ink);min-block-size:24px;max-block-size:200px;overflow:auto;white-space:pre-wrap}
.vx-prompt-input:empty::before{content:attr(data-placeholder);color:var(--vx-ink-3)}
.vx-mention{color:var(--vx-agent-text);background:var(--vx-agent-soft);padding:2px 7px;border-radius:var(--vx-r-2xs);font-weight:600}
.vx-prompt-foot{display:flex;align-items:center;gap:var(--vx-sp-2)}
.vx-prompt-foot>.vx-spacer{flex:1}

/* ---------------------------------------------------------------- drawn: KPI card */
/* tier 3: --vx-kpi-h --vx-kpi-h-sm --vx-kpi-r --vx-kpi-r-sm --vx-kpi-bg --vx-kpi-gap --vx-kpi-row-four */
vx-kpi{box-sizing:border-box;container-type:inline-size;position:relative;display:grid;grid-template-rows:auto 1fr auto auto;gap:var(--vx-sp-3h);min-inline-size:0;overflow:hidden;
  min-block-size:var(--vx-kpi-h);padding:var(--vx-sp-5h) var(--vx-sp-5h) var(--vx-sp-5);border-radius:var(--vx-kpi-r);background:var(--vx-kpi-bg);color:var(--vx-ink);
  box-shadow:var(--vx-shadow),inset 0 0 0 1px var(--vx-rim);-webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur)}
vx-kpi[data-size="sm"]{--vx-kpi-h:var(--vx-kpi-h-sm);padding:var(--vx-sp-4);gap:var(--vx-sp-2h);border-radius:var(--vx-kpi-r-sm)}
.vx-kpi-head{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--vx-sp-3);min-inline-size:0}
.vx-kpi-head>.vx-title{min-inline-size:0;--_ts:clamp(15px,9cqi,20px)}
.vx-kpi-figure{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--vx-sp-3);min-inline-size:0}
.vx-kpi-figure>.vx-caption{font-size:clamp(var(--vx-fs-4),6.5cqi,var(--vx-fs-10));min-inline-size:0}
.vx-kpi-figure>.vx-num{--_ns:clamp(34px,25cqi,60px)}
.vx-kpi-empty{font:var(--vx-fw-medium) var(--vx-fs-10)/1.3 var(--vx-font);color:var(--vx-ink-3)}
vx-kpi[data-size="sm"] .vx-ring{inline-size:34px;block-size:34px}
vx-kpi[data-size="sm"] .vx-ring>svg{inline-size:15px;block-size:15px}
vx-kpi[data-loading] .vx-kpi-figure,vx-kpi[data-loading] .vx-kpi-viz{opacity:0}
/* A card's figure and visual fade in when its numbers arrive (opacity only, so reduced motion keeps it; <vx-kpi> draws
   again only when an attribute changes, so a re-read with the same numbers does not replay it). */
@keyframes vx-kpi-in{from{opacity:0}}
vx-kpi:not([data-loading]) :is(.vx-kpi-figure>.vx-num,.vx-kpi-figure>.vx-kpi-empty,.vx-kpi-viz){animation:vx-kpi-in var(--vx-dur-mid) var(--vx-ease)}

/* the visuals (each role="img" with a label in words) */
vx-dots,vx-glowbar,vx-capsules,vx-field,vx-band{display:grid;min-inline-size:0}
vx-dots{grid-template-columns:repeat(var(--_cols,10),1fr);gap:var(--vx-sp-2) 0;justify-items:center;align-items:center}
vx-dots>i{display:block;border-radius:var(--vx-r-round);background:var(--_c,var(--vx-hue-amber));inline-size:var(--_d,clamp(8px,5.5cqi,16px));block-size:var(--_d,clamp(8px,5.5cqi,16px))}
vx-dots>i[data-v="1"]{--_d:clamp(5px,3.2cqi,9px)}
vx-dots>i[data-v="0"]{--_d:clamp(7px,4.4cqi,13px);background:var(--vx-off)}
vx-dots>i:not([data-v="0"]){box-shadow:0 0 10px -1px color-mix(in srgb,var(--_c,var(--vx-hue-amber)) calc(var(--vx-glow-k) * 100%),transparent)}
/* tier 3: --vx-glowbar-r --vx-glowbar-blur */
vx-glowbar{grid-template-columns:minmax(0,var(--_p,0%)) 1fr;gap:var(--vx-sp-2);block-size:var(--vx-bar-h,clamp(28px,18cqi,56px))}
vx-glowbar>i{display:block;border-radius:var(--vx-glowbar-r)}
vx-glowbar>i:first-child{background:var(--_c,var(--vx-hue-pink));filter:var(--vx-glowbar-blur);box-shadow:0 0 28px 2px color-mix(in srgb,var(--_c,var(--vx-hue-pink)) 55%,transparent)}
vx-glowbar>i:last-child{background:var(--_s,var(--vx-hue-pink-soft))}
vx-glowbar[data-empty]{grid-template-columns:1fr}
vx-glowbar[data-empty]>i:first-child{display:none}
vx-capsules{grid-template-rows:1fr auto;gap:var(--vx-sp-1h);block-size:var(--vx-capsules-h,clamp(48px,26cqi,66px))}
.vx-caps{display:grid;grid-template-columns:repeat(var(--_cols,7),1fr);gap:clamp(4px,3cqi,9px);align-items:end;min-block-size:0}
.vx-caps>*{display:block;box-sizing:border-box;inline-size:100%;max-inline-size:44px;justify-self:center;min-block-size:12px;padding:0;margin:0;border:0;
  border-radius:var(--vx-r-pill);background:var(--vx-off);font:inherit;color:inherit}
.vx-caps>[data-on]{background:var(--vx-mid)}
.vx-caps>[aria-current="true"]{background:var(--_c,var(--vx-hue-blue));box-shadow:0 0 22px -2px color-mix(in srgb,var(--_c,var(--vx-hue-blue)) 70%,transparent)}
.vx-caps>button{cursor:pointer;transform-origin:bottom;transition:transform var(--vx-dur-fast) var(--vx-ease)}
.vx-caps>button:active{transform:scaleY(.96)}
.vx-caps>button:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}
.vx-caps-labels{display:grid;grid-template-columns:repeat(var(--_cols,7),1fr);gap:clamp(4px,3cqi,9px);text-align:center;font:var(--vx-fw-semibold) var(--vx-fs-2)/1 var(--vx-font);color:var(--vx-ink-3)}
.vx-caps-labels>[aria-current="true"]{color:var(--vx-ink)}
vx-field,vx-band{grid-auto-flow:column;grid-auto-columns:1fr;justify-items:center;align-content:center;overflow:hidden}
vx-field{grid-template-rows:repeat(var(--_rows,7),1fr);gap:var(--vx-sp-1) 0;block-size:var(--vx-field-h,clamp(48px,26cqi,66px))}
vx-band{grid-template-rows:repeat(4,1fr);gap:var(--vx-sp-1) 0;block-size:32px}
vx-field>i,vx-band>i{inline-size:5px;block-size:5px;border-radius:var(--vx-r-round)}
[data-hue="amber"]{--_c:var(--vx-hue-amber);--_s:var(--vx-hue-amber-soft)}
[data-hue="pink"]{--_c:var(--vx-hue-pink);--_s:var(--vx-hue-pink-soft)}
[data-hue="red"]{--_c:var(--vx-hue-red);--_s:var(--vx-hue-red-soft)}
[data-hue="blue"]{--_c:var(--vx-hue-blue);--_s:var(--vx-hue-blue-soft)}
[data-hue="green"]{--_c:var(--vx-hue-green);--_s:var(--vx-hue-green-soft)}
[data-hue="violet"]{--_c:var(--vx-hue-violet);--_s:var(--vx-hue-violet-soft)}
[data-hue="orange"]{--_c:var(--vx-hue-orange);--_s:var(--vx-hue-orange-soft)}
[data-hue="yellow"]{--_c:var(--vx-hue-yellow);--_s:var(--vx-hue-yellow-soft)}
[data-hue="lime"]{--_c:var(--vx-hue-lime);--_s:var(--vx-hue-lime-soft)}
[data-hue="teal"]{--_c:var(--vx-hue-teal);--_s:var(--vx-hue-teal-soft)}
[data-hue="cyan"]{--_c:var(--vx-hue-cyan);--_s:var(--vx-hue-cyan-soft)}
[data-hue="indigo"]{--_c:var(--vx-hue-indigo);--_s:var(--vx-hue-indigo-soft)}
[data-hue="magenta"]{--_c:var(--vx-hue-magenta);--_s:var(--vx-hue-magenta-soft)}
vx-loader{display:inline-grid;grid-template-columns:repeat(4,5px);gap:3px}
vx-loader>i{inline-size:5px;block-size:5px;border-radius:var(--vx-r-round);background:var(--vx-ink-3);animation:vx-px var(--vx-loop-loader) var(--vx-ease-io) infinite}
@keyframes vx-px{0%,100%{opacity:.2}40%{opacity:1;background:var(--vx-hue-pink)}}
vx-icon{display:inline-grid;place-items:center;flex:none;inline-size:var(--vx-icon,20px);block-size:var(--vx-icon,20px);line-height:0}
vx-icon>svg{inline-size:100%;block-size:100%}
vx-icon[data-flip]:dir(rtl)>svg{transform:scaleX(-1)}

/* KPI row: four across when there is room, two by two on a phone. */
/* Four across from 880px of row, two by two under it (never three and one): the track's minimum is a quarter of the
   row when (880px - 100%) is negative, half of it when positive. A screen whose middle column is narrower sets
   --vx-kpi-row-four on its own row (Home on a desktop with the rail and the dock), and data-compact gives such a row the
   small cards under 880px, as a phone's row has them under 600px. */
.vx-kpi-row{--_g:var(--vx-kpi-gap);display:grid;gap:var(--_g);container-type:inline-size;
  grid-template-columns:repeat(auto-fit,minmax(clamp(calc(25% - var(--_g) * .75),calc((var(--vx-kpi-row-four,880px) - 100%) * 1000),calc(50% - var(--_g) / 2)),1fr))}
@media (max-width:719px){.vx-kpi-row{--_g:var(--vx-sp-3)}}
@container (width < 600px){.vx-kpi-row>vx-kpi{--vx-kpi-h:var(--vx-kpi-h-sm);padding:var(--vx-sp-4);gap:var(--vx-sp-2h);border-radius:var(--vx-kpi-r-sm)}}
@container (width < 880px){.vx-kpi-row[data-compact]>vx-kpi{--vx-kpi-h:var(--vx-kpi-h-sm);padding:var(--vx-sp-4);gap:var(--vx-sp-2h);border-radius:var(--vx-kpi-r-sm)}
  .vx-kpi-row[data-compact]>vx-kpi .vx-kpi-head>.vx-title{--_ts:clamp(13px,8cqi,18px)}
  .vx-kpi-row[data-compact]>vx-kpi .vx-ring{inline-size:34px;block-size:34px}.vx-kpi-row[data-compact]>vx-kpi .vx-ring>svg{inline-size:15px;block-size:15px}}

@media (prefers-reduced-motion:reduce){
  .vx-btn,.vx-ring,.vx-switch,.vx-switch::after,.vx-caps>button,.vx-page-dots>i{transition:none}
  vx-loader>i{animation:none;opacity:.6}
}

/* ==========================================================================
   MORE PARTS (9 Nov, the lead: "we need every component we can get"). One of each kind; what the old kit had twice or
   three times (three steppers, two panels, banner and callout) is one part here.

     Layout      .vx-stack, .vx-cluster, .vx-grid, .vx-divider, .vx-section-head, .vx-toolbar
     Forms       .vx-form, .vx-label, .vx-help, .vx-error, .vx-field (prefix, suffix, textarea, invalid), .vx-select-native,
                 .vx-choice (radio and check cards; a <button> for a choice that acts at once), .vx-radio, .vx-slider, .vx-stepper, <vx-otp>, <vx-tags>, <vx-select>,
                 <vx-date>, .vx-drop (upload), .vx-inline (inline edit)
     Navigation  .vx-back (a page's Back: chevron + where it goes), .vx-tabs (underline), .vx-crumbs, .vx-pages (pagination), .vx-steps-bar (wizard), .vx-checklist,
                 .vx-accordion, .vx-fab, .vx-topbar
     Overlays    VX.menu, VX.sheet (bottom on a phone, side on a desktop), VX.dialog, VX.toast, [data-vx-tip] tooltip,
                 VX.command (palette)
     Feedback    .vx-callout (data-tone), .vx-empty, .vx-skeleton, .vx-progress, <vx-ring-progress>, .vx-notes
     Data        <vx-spark>, <vx-bars>, <vx-donut>, <vx-calendar>, .vx-rank, .vx-avatars, .vx-stages, <vx-amount>,
                 .vx-kbd, .vx-code
     AI          .vx-suggestions, .vx-context, .vx-insight, .vx-selection-bar, .vx-file, .vx-beam (border beam),
                 .vx-btn[data-variant="shimmer"], VX.stream (streaming text), VX.ticker (number ticker), .vx-agent-chip
   ========================================================================== */

/* ---------------------------------------------------------------- layout */
.vx-stack{display:grid;gap:var(--vx-gap,14px);align-content:start}
.vx-cluster{display:flex;flex-wrap:wrap;gap:var(--vx-gap,10px);align-items:center}
.vx-grid{display:grid;gap:var(--vx-gap,16px);grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--vx-min,260px)),1fr))}
.vx-divider{block-size:1px;border:0;margin:0;background:var(--vx-hair)}
.vx-divider[data-label]{display:flex;align-items:center;gap:var(--vx-sp-3);block-size:auto;background:none;font:var(--vx-fw-semibold) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}
.vx-divider[data-label]::before,.vx-divider[data-label]::after{content:"";flex:1;block-size:1px;background:var(--vx-hair)}
.vx-divider[data-label]::before{content:"";}
.vx-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--vx-sp-4);flex-wrap:wrap}
.vx-toolbar{display:flex;align-items:center;gap:var(--vx-sp-2);flex-wrap:wrap;padding:var(--vx-sp-1h);border-radius:var(--vx-r-pill)}
.vx-toolbar>.vx-spacer{flex:1}
.vx-topbar{position:relative;display:flex;align-items:center;gap:var(--vx-sp-3);padding:var(--vx-sp-3) var(--vx-sp-4);background:var(--vx-nav);border-block-end:1px solid var(--vx-hair);-webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur)}
.vx-topbar>.vx-title{flex:1;min-inline-size:0;text-align:center}

/* ---------------------------------------------------------------- forms */
.vx-form{display:grid;gap:var(--vx-sp-4h)}
.vx-form-row{display:grid;gap:var(--vx-sp-4);grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.vx-label{display:grid;gap:var(--vx-sp-2);font:var(--vx-fw-semibold) var(--vx-fs-8)/1.3 var(--vx-font);color:var(--vx-ink)}
.vx-label>small,.vx-help{font:var(--vx-fw-regular) var(--vx-fs-6)/1.4 var(--vx-font);color:var(--vx-ink-3)}
.vx-error{font:var(--vx-fw-medium) var(--vx-fs-6)/1.4 var(--vx-font);color:var(--vx-danger-text)}
.vx-error:empty{display:none}
.vx-field[aria-invalid="true"],.vx-field:has(>[aria-invalid="true"]){border-color:var(--vx-danger);box-shadow:0 0 0 4px var(--vx-danger-soft)}
.vx-field>.vx-affix{font:var(--vx-fw-medium) var(--vx-fs-8) var(--vx-font);color:var(--vx-ink-3);white-space:nowrap}
.vx-field>.vx-btn{margin-inline-end:-10px}
.vx-field[data-multiline]{block-size:auto;align-items:flex-start;padding-block:var(--vx-sp-3)}
.vx-field>textarea{min-block-size:88px;resize:vertical;line-height:1.5}
.vx-field[data-size="sm"]{block-size:var(--vx-h-sm);border-radius:var(--vx-r-sm);font-size:var(--vx-fs-8)}
@media (pointer:coarse){.vx-field[data-size="sm"]{block-size:var(--vx-h-field)}}   /* a finger: the full field height, so the input inside its edge keeps 44px */
.vx-select-native{appearance:none;-webkit-appearance:none;box-sizing:border-box;block-size:var(--vx-h-field);padding-inline:16px 40px;border-radius:var(--vx-r-md);
  border:1px solid var(--vx-hair);background:var(--vx-card) no-repeat right 14px center/16px;color:var(--vx-ink);font:var(--vx-fw-regular) var(--vx-fs-10) var(--vx-font);
  background-image:linear-gradient(45deg,transparent 50%,var(--vx-ink-3) 50%),linear-gradient(135deg,var(--vx-ink-3) 50%,transparent 50%);
  background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px,5px 5px}
.vx-select-native:dir(rtl){padding-inline:16px 40px;background-position:15px 50%,20px 50%}
.vx-radio{appearance:none;-webkit-appearance:none;flex:none;inline-size:22px;block-size:22px;margin:0;border-radius:var(--vx-r-round);border:1.5px solid var(--vx-hair-2);display:grid;place-items:center;cursor:pointer}
.vx-radio:checked{border-color:var(--vx-ink)}
.vx-radio:checked::after{content:"";inline-size:10px;block-size:10px;border-radius:var(--vx-r-round);background:var(--vx-ink)}
.vx-radio:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}
.vx-choice{position:relative;display:flex;gap:var(--vx-sp-3);align-items:flex-start;padding:var(--vx-sp-4);border-radius:var(--vx-r-lg);background:var(--vx-card);border:1px solid var(--vx-hair);cursor:pointer;
  -webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur);transition:border-color var(--vx-dur-quick) var(--vx-ease-std),box-shadow var(--vx-dur-quick) var(--vx-ease-std)}
.vx-choice:has(input:checked){border-color:var(--vx-ink);box-shadow:0 0 0 3px var(--vx-well)}
.vx-choice:has(input:focus-visible){outline:2px solid var(--vx-focus);outline-offset:2px}
.vx-choice b{display:block;font:var(--vx-fw-semibold) var(--vx-fs-10)/1.3 var(--vx-font)}.vx-choice span{display:block;font:var(--vx-fw-regular) var(--vx-fs-6)/1.4 var(--vx-font);color:var(--vx-ink-3)}
.vx-choice>input{margin-block-start:1px}
/* A choice that acts at once (a <button>, no radio): the same card; Enter and Space press it like any button. */
button.vx-choice{box-sizing:border-box;inline-size:100%;margin:0;color:var(--vx-ink);font:inherit;text-align:start;-webkit-tap-highlight-color:transparent}
button.vx-choice>div{min-inline-size:0}
button.vx-choice:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}
button.vx-choice:disabled{opacity:.6;cursor:default}
@media (hover:hover){button.vx-choice:not(:disabled):hover{border-color:var(--vx-hair-2)}}
/* tier 3: --vx-slider-thumb --vx-slider-thumb-shadow */
.vx-slider{appearance:none;-webkit-appearance:none;inline-size:100%;block-size:28px;margin:0;background:transparent;cursor:pointer;--_v:50%}
.vx-slider::-webkit-slider-runnable-track{block-size:8px;border-radius:var(--vx-r-pill);background:linear-gradient(90deg,var(--vx-ink) var(--_v),var(--vx-off) var(--_v))}
.vx-slider::-moz-range-track{block-size:8px;border-radius:var(--vx-r-pill);background:var(--vx-off)}
.vx-slider::-moz-range-progress{block-size:8px;border-radius:var(--vx-r-pill);background:var(--vx-ink)}
.vx-slider::-webkit-slider-thumb{-webkit-appearance:none;inline-size:24px;block-size:24px;margin-block-start:-8px;border-radius:var(--vx-r-round);background:var(--vx-slider-thumb);border:0;box-shadow:var(--vx-slider-thumb-shadow)}
.vx-slider::-moz-range-thumb{inline-size:24px;block-size:24px;border-radius:var(--vx-r-round);background:var(--vx-slider-thumb);border:0;box-shadow:var(--vx-slider-thumb-shadow)}
.vx-slider:focus-visible{outline:2px solid var(--vx-focus);outline-offset:4px;border-radius:var(--vx-r-pill)}
.vx-slider:dir(rtl)::-webkit-slider-runnable-track{background:linear-gradient(270deg,var(--vx-ink) var(--_v),var(--vx-off) var(--_v))}
.vx-stepper{display:inline-flex;align-items:center;gap:var(--vx-sp-1);padding:var(--vx-sp-1);border-radius:var(--vx-r-pill);background:var(--vx-well)}
.vx-stepper>input{all:unset;inline-size:4ch;text-align:center;font:var(--vx-fw-semibold) var(--vx-fs-12) var(--vx-font);color:var(--vx-ink);font-variant-numeric:tabular-nums}
.vx-stepper>.vx-btn{inline-size:var(--vx-h-sm);block-size:var(--vx-h-sm);padding:0;border-color:transparent;background:var(--vx-raised)}
vx-otp{display:inline-flex;gap:var(--vx-sp-2)}
vx-otp>input{box-sizing:border-box;inline-size:48px;block-size:56px;border-radius:var(--vx-r-sm);border:1px solid var(--vx-hair);background:var(--vx-card);color:var(--vx-ink);
  text-align:center;font:var(--vx-fw-bold) var(--vx-fs-14) var(--vx-font-mono);caret-color:var(--vx-agent)}
vx-otp>input:focus{outline:none;border-color:var(--vx-ink);box-shadow:0 0 0 4px var(--vx-well)}
vx-tags{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--vx-sp-1h);align-items:center;min-block-size:var(--vx-h-field);padding:var(--vx-sp-1h) var(--vx-sp-2h);border-radius:var(--vx-r-md);border:1px solid var(--vx-hair);background:var(--vx-card)}
vx-tags:focus-within{border-color:var(--vx-ink);box-shadow:0 0 0 4px var(--vx-well)}
vx-tags>input{all:unset;flex:1;min-inline-size:80px;block-size:32px;font:var(--vx-fw-regular) var(--vx-fs-10) var(--vx-font);color:var(--vx-ink)}
.vx-tag{display:inline-flex;align-items:center;gap:var(--vx-sp-1);block-size:30px;padding-inline:var(--vx-sp-3) var(--vx-sp-1);border-radius:var(--vx-r-pill);background:var(--vx-well);font:var(--vx-fw-semibold) var(--vx-fs-6) var(--vx-font);color:var(--vx-ink)}
.vx-tag>button{display:grid;place-items:center;inline-size:22px;block-size:22px;padding:0;border:0;border-radius:var(--vx-r-round);background:none;color:var(--vx-ink-3);cursor:pointer}
.vx-tag>button:hover{background:var(--vx-raised);color:var(--vx-ink)}
.vx-tag>button svg{inline-size:12px;block-size:12px}
.vx-drop{display:grid;justify-items:center;gap:var(--vx-sp-2);padding:var(--vx-sp-7) var(--vx-sp-5);border-radius:var(--vx-r-lg);border:1.5px dashed var(--vx-hair-2);text-align:center;color:var(--vx-ink-2);font:var(--vx-fw-regular) var(--vx-fs-8)/1.4 var(--vx-font);cursor:pointer;transition:border-color var(--vx-dur-quick) var(--vx-ease-std),background-color var(--vx-dur-quick) var(--vx-ease-std)}
.vx-drop[data-over]{border-color:var(--vx-ink);background:var(--vx-well)}
.vx-drop>b{color:var(--vx-ink);font-weight:600}
.vx-drop>vx-icon{--vx-icon:var(--vx-icon-lg);color:var(--vx-ink-3)}
.vx-inline{border-radius:var(--vx-r-2xs);padding:var(--vx-sp-0h) var(--vx-sp-1h);margin-inline:-6px;outline:none;cursor:text;transition:background-color var(--vx-dur-tap) var(--vx-ease-std)}
.vx-inline:hover{background:var(--vx-well)}
.vx-inline:focus{background:var(--vx-well);box-shadow:inset 0 -2px 0 var(--vx-ink)}

/* select / combobox */
vx-select{position:relative;display:block;min-inline-size:0}
.vx-select-btn{box-sizing:border-box;display:flex;align-items:center;gap:var(--vx-sp-2);inline-size:100%;min-block-size:var(--vx-h-field);padding:var(--vx-sp-1h) var(--vx-sp-3h);border-radius:var(--vx-r-md);border:1px solid var(--vx-hair);
  background:var(--vx-card);color:var(--vx-ink);font:var(--vx-fw-regular) var(--vx-fs-10) var(--vx-font);text-align:start;cursor:pointer;-webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur)}
.vx-select-btn:focus-visible{outline:none;border-color:var(--vx-ink);box-shadow:0 0 0 4px var(--vx-well)}
.vx-select-btn>.vx-select-value{flex:1;min-inline-size:0;display:flex;flex-wrap:wrap;gap:var(--vx-sp-1h);overflow:hidden}
.vx-select-btn>.vx-select-value:empty::before{content:attr(data-placeholder);color:var(--vx-ink-3)}
.vx-select-btn>svg{inline-size:var(--vx-icon-xs);block-size:var(--vx-icon-xs);color:var(--vx-ink-3);flex:none}
/* tier 3: --vx-pop-bg --vx-pop-r --vx-pop-edge */
.vx-pop{position:fixed;z-index:1000;box-sizing:border-box;min-inline-size:200px;max-block-size:min(360px,60vh);overflow:auto;padding:var(--vx-sp-1h);border-radius:var(--vx-pop-r);
  background:var(--vx-pop-bg);color:var(--vx-ink);box-shadow:var(--vx-lift),0 0 0 1px var(--vx-pop-edge);-webkit-backdrop-filter:var(--vx-blur-pop);backdrop-filter:var(--vx-blur-pop);
  transform-origin:top;animation:vx-pop-in var(--vx-dur-quick) var(--vx-ease)}
@keyframes vx-pop-in{from{opacity:0;transform:scale(.97) translateY(-4px)}}
.vx-pop[hidden]{display:none}
.vx-pop-search{position:sticky;inset-block-start:-6px;margin:-6px -6px 6px;padding:var(--vx-sp-2);background:inherit;border-block-end:1px solid var(--vx-hair)}
.vx-pop-search>input{all:unset;box-sizing:border-box;inline-size:100%;block-size:36px;padding-inline:var(--vx-sp-2h);border-radius:var(--vx-r-xs);background:var(--vx-well);font:var(--vx-fw-regular) var(--vx-fs-8) var(--vx-font);color:var(--vx-ink)}
.vx-option,.vx-menu-item{display:flex;align-items:center;gap:var(--vx-sp-2h);inline-size:100%;box-sizing:border-box;min-block-size:40px;padding:var(--vx-sp-2) var(--vx-sp-2h);border:0;border-radius:var(--vx-r-xs);background:none;
  color:var(--vx-ink);font:var(--vx-fw-medium) var(--vx-fs-8) var(--vx-font);text-align:start;cursor:pointer}
.vx-option[data-active],.vx-menu-item[data-active],.vx-option:hover,.vx-menu-item:hover{background:var(--vx-well)}
.vx-option[aria-selected="true"]::after{content:"";margin-inline-start:auto;inline-size:10px;block-size:6px;border:2px solid currentColor;border-top:0;border-right:0;transform:rotate(-45deg) translateY(-2px)}
.vx-option>small,.vx-menu-item>small{margin-inline-start:auto;color:var(--vx-ink-3);font:var(--vx-fw-medium) var(--vx-fs-4) var(--vx-font-mono)}
.vx-menu-item>svg{inline-size:var(--vx-icon-sm);block-size:var(--vx-icon-sm);color:var(--vx-ink-2);flex:none}
.vx-menu-item[data-tone="red"]{color:var(--vx-danger-text)}.vx-menu-item[data-tone="red"]>svg{color:currentColor}
.vx-menu-sep{block-size:1px;margin:6px 4px;background:var(--vx-hair)}
.vx-menu-label{padding:var(--vx-sp-2) var(--vx-sp-2h) var(--vx-sp-1);font:var(--vx-fw-semibold) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}
.vx-pop-empty{padding:var(--vx-sp-3h) var(--vx-sp-2h);font:var(--vx-fw-regular) var(--vx-fs-8) var(--vx-font);color:var(--vx-ink-3)}

/* date picker */
vx-date{position:relative;display:block}
/* tier 3: --vx-cal-cell-bg --vx-cal-event-r */
.vx-cal{display:grid;gap:var(--vx-sp-2);inline-size:max-content;padding:var(--vx-sp-1)}
.vx-cal-head{display:flex;align-items:center;justify-content:space-between;gap:var(--vx-sp-2);font:var(--vx-fw-bold) var(--vx-fs-10) var(--vx-font)}
.vx-cal-grid{display:grid;grid-template-columns:repeat(7,38px);gap:var(--vx-sp-0h)}
.vx-cal-grid>span{display:grid;place-items:center;block-size:28px;font:var(--vx-fw-semibold) var(--vx-fs-3) var(--vx-font);color:var(--vx-ink-3)}
.vx-cal-grid>button{block-size:38px;padding:0;border:0;border-radius:var(--vx-r-round);background:none;color:var(--vx-ink);font:var(--vx-fw-medium) var(--vx-fs-8) var(--vx-font);font-variant-numeric:tabular-nums;cursor:pointer}
.vx-cal-grid>button:hover{background:var(--vx-well)}
.vx-cal-grid>button[data-out]{color:var(--vx-ink-3);opacity:.5}
.vx-cal-grid>button[aria-current="date"]{box-shadow:inset 0 0 0 1.5px var(--vx-ink)}
.vx-cal-grid>button[aria-selected="true"]{background:var(--vx-ink);color:var(--vx-on-ink)}
.vx-cal-grid>button[data-range]{background:var(--vx-well);border-radius:0}
.vx-cal-grid>button:focus-visible{outline:2px solid var(--vx-focus);outline-offset:1px}

/* ---------------------------------------------------------------- navigation */
/* tier 3 (.vx-tabs, set in the kit-fix block at the end): --vx-tabs-px --vx-tabs-px-snug --vx-tabs-fs --vx-tabs-fs-snug --vx-tabs-fade
   --vx-tabs-sticky-bg --vx-tabs-sticky-blur --vx-tabs-sticky-reach --vx-tabs-sticky-bleed --vx-tabs-sticky-gap --vx-tabs-sticky-in --vx-tabs-sticky-full */
.vx-tabs{display:flex;gap:var(--vx-sp-1);border-block-end:1px solid var(--vx-hair);overflow-x:auto;scrollbar-width:none}
.vx-tabs>button,.vx-tabs>a{position:relative;flex:none;block-size:44px;padding-inline:var(--vx-sp-3h);border:0;background:none;color:var(--vx-ink-3);font:var(--vx-fw-semibold) var(--vx-fs-10) var(--vx-font);text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:var(--vx-sp-2)}
.vx-tabs>[aria-selected="true"],.vx-tabs>[aria-current="page"]{color:var(--vx-ink)}
.vx-tabs>[aria-selected="true"]::after,.vx-tabs>[aria-current="page"]::after{content:"";position:absolute;inset-inline:10px;inset-block-end:-1px;block-size:2px;border-radius:var(--vx-r-tick);background:var(--vx-ink)}
.vx-tabs>button:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-4px;border-radius:var(--vx-r-xs)}
.vx-tabs .vx-badge{min-inline-size:18px;block-size:18px;font-size:var(--vx-fs-2)}
.vx-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vx-sp-1h);margin:0;padding:0;list-style:none;font:var(--vx-fw-medium) var(--vx-fs-8) var(--vx-font);color:var(--vx-ink-3)}
.vx-crumbs>li{display:inline-flex;align-items:center;gap:var(--vx-sp-1h)}
.vx-crumbs>li+li::before{content:"/";color:var(--vx-hair-2)}
.vx-crumbs a{color:inherit;text-decoration:none}.vx-crumbs a:hover{color:var(--vx-ink)}
.vx-crumbs [aria-current="page"]{color:var(--vx-ink);font-weight:600}
/* tier 3: --vx-back-h --vx-back-r --vx-back-gap --vx-back-pad-start --vx-back-pad-end --vx-back-fg --vx-back-fs --vx-back-fw --vx-back-icon
   --vx-back-stroke --vx-back-pressed
   A page's Back: a chevron and the name of where it goes ("‹ Toolbox"), no capsule, a 44px target. The app places it
   (above the title on a desktop, fixed in the menu button's spot on a phone); the look is here. On a phone (the app's
   layout switch: under 720px wide, or short with a finger) it is iOS's: the link colour, a larger chevron. The
   chevron turns round in Arabic. The words end in an ellipsis when the name is long. */
.vx-back{box-sizing:border-box;flex:none;display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--vx-back-gap);inline-size:auto;min-inline-size:var(--vx-back-h);max-inline-size:100%;
  block-size:var(--vx-back-h);min-block-size:var(--vx-back-h);margin:0;padding-block:0;padding-inline:var(--vx-back-pad-start) var(--vx-back-pad-end);border:0;border-radius:var(--vx-back-r);
  background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--vx-back-fg);font:var(--vx-back-fw) var(--vx-back-fs)/1.2 var(--vx-font);
  text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity var(--vx-dur-tap) var(--vx-ease-std)}
.vx-back>svg,.vx-back>vx-icon{flex:none;inline-size:var(--vx-back-icon);block-size:var(--vx-back-icon);stroke-width:var(--vx-back-stroke)}
.vx-back>svg:dir(rtl){transform:scaleX(-1)}
.vx-back>span{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-back:active:not(:disabled){opacity:var(--vx-back-pressed);box-shadow:none}
.vx-back:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}
@media (max-width:719px),(max-height:500px) and (pointer:coarse){
  :root{--vx-back-pad-start:var(--vx-sp-0h);--vx-back-pad-end:var(--vx-sp-2);--vx-back-fg:var(--vx-hue-violet-text);--vx-back-fs:var(--vx-fs-12);--vx-back-icon:24px;--vx-back-stroke:2.25;--vx-back-pressed:.6}
}
.vx-pages{display:flex;align-items:center;gap:var(--vx-sp-1);flex-wrap:wrap}
.vx-pages>button{min-inline-size:36px;block-size:36px;padding-inline:var(--vx-sp-2);border:0;border-radius:var(--vx-r-pill);background:none;color:var(--vx-ink-2);font:var(--vx-fw-semibold) var(--vx-fs-8) var(--vx-font);font-variant-numeric:tabular-nums;cursor:pointer}
.vx-pages>button:hover{background:var(--vx-well)}
.vx-pages>button[aria-current="page"]{background:var(--vx-ink);color:var(--vx-on-ink)}
.vx-pages>button:disabled{opacity:.35;cursor:default}
.vx-pages>.vx-pages-gap{padding-inline:var(--vx-sp-1);color:var(--vx-ink-3)}
.vx-pages svg{inline-size:var(--vx-icon-xs);block-size:var(--vx-icon-xs);vertical-align:middle}
/* tier 3: --vx-steps-bar-done --vx-steps-bar-done-fg --vx-steps-bar-todo-edge (the step to come: kit-fix block at the end) */
.vx-steps-bar{display:flex;align-items:center;gap:var(--vx-sp-2h);margin:0;padding:0;list-style:none;counter-reset:vx-step}
.vx-steps-bar>li{display:flex;align-items:center;gap:var(--vx-sp-2h);flex:1;min-inline-size:0;font:var(--vx-fw-semibold) var(--vx-fs-8) var(--vx-font);color:var(--vx-ink-3);counter-increment:vx-step}
.vx-steps-bar>li::before{content:counter(vx-step);display:grid;place-items:center;flex:none;inline-size:28px;block-size:28px;border-radius:var(--vx-r-round);background:var(--vx-well);font:var(--vx-fw-bold) var(--vx-fs-6) var(--vx-font)}
.vx-steps-bar>li:not(:last-child)::after{content:"";flex:1;block-size:2px;border-radius:var(--vx-r-tick);background:var(--vx-off)}
.vx-steps-bar>li[data-state="done"]{color:var(--vx-ink-2)}
.vx-steps-bar>li[data-state="done"]::before{content:"✓";background:var(--vx-steps-bar-done);color:var(--vx-steps-bar-done-fg)}
.vx-steps-bar>li[data-state="done"]::after{background:var(--vx-steps-bar-done)}
.vx-steps-bar>li[aria-current="step"]{color:var(--vx-ink)}
.vx-steps-bar>li[aria-current="step"]::before{background:var(--vx-ink);color:var(--vx-on-ink)}
.vx-checklist{display:grid;gap:var(--vx-sp-0h);margin:0;padding:0;list-style:none}
.vx-checklist>li{display:flex;align-items:center;gap:var(--vx-sp-3);min-block-size:44px;padding-inline:var(--vx-sp-1);font:var(--vx-fw-medium) var(--vx-fs-10) var(--vx-font);color:var(--vx-ink)}
.vx-checklist>li:has(.vx-check:checked)>span{color:var(--vx-ink-3);text-decoration:line-through}
@media (pointer:coarse){.vx-checklist .vx-check{position:relative}.vx-checklist .vx-check::before{content:"";position:absolute;inset:calc((100% - var(--tap-min)) / 2)}}   /* a 44 hit area round the 22 tick */
.vx-checklist>li>small{margin-inline-start:auto;font:var(--vx-fw-medium) var(--vx-fs-5) var(--vx-font);color:var(--vx-ink-3)}
.vx-accordion{display:grid}
.vx-accordion>details{border-block-end:1px solid var(--vx-hair)}
.vx-accordion>details>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--vx-sp-3);min-block-size:52px;list-style:none;cursor:pointer;font:var(--vx-fw-semibold) var(--vx-fs-10) var(--vx-font);color:var(--vx-ink)}
.vx-accordion>details>summary::-webkit-details-marker{display:none}
/* The caret is drawn with physical sides (as the tick): logical ones swap in Arabic and the turned corner points sideways.
   Turned, its corner reaches past its own box by about a step's half: the end margin keeps that corner inside the row's end edge. */
.vx-accordion>details>summary::after{content:"";flex:none;inline-size:8px;block-size:8px;margin-inline-end:var(--vx-sp-0h);border:2px solid var(--vx-ink-3);border-top:0;border-left:0;transform:rotate(45deg) translate(-2px,-2px);transition:transform var(--vx-dur-mid) var(--vx-ease)}
.vx-accordion>details[open]>summary::after{transform:rotate(-135deg) translate(-2px,-2px)}
.vx-accordion>details>summary:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px;border-radius:var(--vx-r-2xs)}
.vx-accordion>details>div{padding-block-end:var(--vx-sp-4);font:var(--vx-fw-regular) var(--vx-fs-9)/1.55 var(--vx-font);color:var(--vx-ink-2)}
/* tier 3: --vx-fab-size --vx-fab-r --vx-fab-bg --vx-fab-fg */
.vx-fab{position:fixed;inset-block-end:calc(24px + env(safe-area-inset-bottom));inset-inline-end:24px;z-index:50;display:grid;place-items:center;inline-size:var(--vx-fab-size);block-size:var(--vx-fab-size);border-radius:var(--vx-fab-r);border:0;
  background:var(--vx-fab-bg);color:var(--vx-fab-fg);box-shadow:var(--vx-lift);cursor:pointer;transition:transform var(--vx-dur-fast) var(--vx-ease)}
.vx-fab:active{transform:scale(.95)}
.vx-fab[data-inline]{position:static}
.vx-fab>svg,.vx-fab>vx-icon{inline-size:24px;block-size:24px}

/* ---------------------------------------------------------------- overlays */
/* tier 3: --vx-scrim-bg */
.vx-scrim{position:fixed;inset:0;z-index:900;background:var(--vx-scrim-bg);animation:vx-fade var(--vx-dur-mid) var(--vx-ease-std)}
@keyframes vx-fade{from{opacity:0}}
/* tier 3: --vx-sheet-bg --vx-sheet-r --vx-sheet-w --vx-sheet-edge */
.vx-sheet{position:fixed;z-index:901;box-sizing:border-box;display:grid;grid-template-rows:auto 1fr auto;max-block-size:92dvh;color:var(--vx-ink);
  background:var(--vx-sheet-bg);box-shadow:var(--vx-lift),0 0 0 1px var(--vx-sheet-edge)}
.vx-sheet{inset-inline:0;inset-block-end:0;border-radius:var(--vx-sheet-r) var(--vx-sheet-r) 0 0;animation:vx-up var(--vx-dur-sheet) var(--vx-ease)}
@keyframes vx-up{from{transform:translateY(100%)}}
@media (min-width:720px){
  .vx-sheet{inset-block:12px;inset-inline:auto 12px;inline-size:min(var(--vx-sheet-w),calc(100vw - 24px));max-block-size:none;border-radius:var(--vx-sheet-r);animation:vx-side var(--vx-dur-sheet) var(--vx-ease)}
  .vx-sheet:dir(rtl){animation-name:vx-side-rtl}
}
@keyframes vx-side{from{transform:translateX(calc(100% + 24px))}}
@keyframes vx-side-rtl{from{transform:translateX(calc(-100% - 24px))}}
.vx-sheet-grip{justify-self:center;inline-size:40px;block-size:5px;margin-block-start:var(--vx-sp-2);border-radius:var(--vx-r-pill);background:var(--vx-hair-2)}
@media (min-width:720px){.vx-sheet-grip{display:none}}
.vx-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--vx-sp-3);padding:var(--vx-sp-4h) var(--vx-sp-5) var(--vx-sp-3)}
.vx-sheet-body{overflow:auto;padding:var(--vx-sp-1) var(--vx-sp-5) var(--vx-sp-5);overscroll-behavior:contain}
.vx-sheet-foot{display:flex;gap:var(--vx-sp-2h);justify-content:flex-end;padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-block-start:1px solid var(--vx-hair)}
/* tier 3: --vx-dialog-bg --vx-dialog-r --vx-dialog-w */
.vx-dialog{position:fixed;z-index:901;inset:0;margin:auto;box-sizing:border-box;inline-size:min(var(--vx-dialog-w),calc(100vw - 32px));block-size:max-content;max-block-size:calc(100dvh - 32px);overflow:auto;
  display:grid;gap:var(--vx-sp-3h);padding:var(--vx-sp-5h);border-radius:var(--vx-dialog-r);color:var(--vx-ink);background:var(--vx-dialog-bg);box-shadow:var(--vx-lift),0 0 0 1px var(--vx-hair);animation:vx-pop-in var(--vx-dur-mid) var(--vx-ease)}
.vx-dialog>p{margin:0;font:var(--vx-fw-regular) var(--vx-fs-10)/1.5 var(--vx-font);color:var(--vx-ink-2)}
.vx-dialog>.vx-actions{justify-content:flex-end}
/* tier 3: --vx-toast-bg --vx-toast-fg --vx-toast-btn-bg */
.vx-toasts{position:fixed;z-index:1100;inset-block-end:calc(20px + env(safe-area-inset-bottom));inset-inline:0;display:grid;justify-items:center;gap:var(--vx-sp-2);pointer-events:none}
.vx-toast{pointer-events:auto;display:flex;align-items:center;gap:var(--vx-sp-3);max-inline-size:min(520px,calc(100vw - 32px));padding:var(--vx-sp-2h) var(--vx-sp-2h) var(--vx-sp-2h) var(--vx-sp-4h);border-radius:var(--vx-r-pill);
  background:var(--vx-toast-bg);color:var(--vx-toast-fg);font:var(--vx-fw-medium) var(--vx-fs-9)/1.35 var(--vx-font);box-shadow:var(--vx-lift);animation:vx-toast var(--vx-dur-toast) var(--vx-ease)}
.vx-toast[data-tone]::before{content:"";flex:none;inline-size:8px;block-size:8px;border-radius:var(--vx-r-round);background:var(--_c);box-shadow:0 0 10px var(--_c)}
.vx-toast>button{flex:none;block-size:32px;padding-inline:var(--vx-sp-3);border:0;border-radius:var(--vx-r-pill);background:var(--vx-toast-btn-bg);color:inherit;font:var(--vx-fw-semibold) var(--vx-fs-7) var(--vx-font);cursor:pointer}
.vx-toast[data-leaving]{opacity:0;transform:translateY(8px);transition:opacity var(--vx-dur-mid) var(--vx-ease-std),transform var(--vx-dur-mid) var(--vx-ease-std)}
@keyframes vx-toast{from{opacity:0;transform:translateY(12px) scale(.97)}}
/* tier 3: --vx-tip-bg --vx-tip-fg --vx-tip-r */
[data-vx-tip]{position:relative}
[data-vx-tip]::after{content:attr(data-vx-tip);position:absolute;inset-block-end:calc(100% + 8px);inset-inline-start:50%;translate:-50% 0;z-index:60;padding:var(--vx-sp-1h) var(--vx-sp-2h);border-radius:var(--vx-tip-r);
  background:var(--vx-tip-bg);color:var(--vx-tip-fg);font:var(--vx-fw-medium) var(--vx-fs-5)/1.3 var(--vx-font);white-space:nowrap;pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity var(--vx-dur-fast) var(--vx-ease-std),transform var(--vx-dur-fast) var(--vx-ease-std)}
[data-vx-tip]:dir(rtl)::after{translate:50% 0}
[data-vx-tip]:hover::after,[data-vx-tip]:focus-visible::after{opacity:1;transform:none;transition-delay:var(--vx-dur-delay)}
/* tier 3: --vx-command-bg --vx-command-r --vx-command-w */
.vx-command{position:fixed;z-index:1001;inset-block-start:14vh;inset-inline:0;margin-inline:auto;inline-size:min(var(--vx-command-w),calc(100vw - 24px));display:grid;max-block-size:68vh;
  border-radius:var(--vx-command-r);background:var(--vx-command-bg);color:var(--vx-ink);box-shadow:var(--vx-lift),0 0 0 1px var(--vx-hair);overflow:hidden;animation:vx-pop-in var(--vx-dur-pop) var(--vx-ease)}
.vx-command-input{display:flex;align-items:center;gap:var(--vx-sp-3);padding:var(--vx-sp-4) var(--vx-sp-4h);border-block-end:1px solid var(--vx-hair)}
.vx-command-input>input{all:unset;flex:1;font:var(--vx-fw-regular) var(--vx-fs-13) var(--vx-font);color:var(--vx-ink)}
.vx-command-input>input::placeholder{color:var(--vx-ink-3)}
.vx-command-list{overflow:auto;padding:var(--vx-sp-2)}
.vx-command-foot{display:flex;gap:var(--vx-sp-3h);padding:var(--vx-sp-2h) var(--vx-sp-4h);border-block-start:1px solid var(--vx-hair);font:var(--vx-fw-medium) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}

/* ---------------------------------------------------------------- feedback */
.vx-callout{display:flex;gap:var(--vx-sp-3);align-items:flex-start;padding:var(--vx-sp-3h) var(--vx-sp-4);border-radius:var(--vx-r-md);background:var(--_s,var(--vx-well));color:var(--vx-ink)}
.vx-callout::before{content:"";flex:none;inline-size:8px;block-size:8px;margin-block-start:7px;border-radius:var(--vx-r-round);background:var(--_c,var(--vx-ink-3));box-shadow:0 0 10px var(--_c,transparent)}
.vx-callout>div{flex:1;min-inline-size:0;font:var(--vx-fw-regular) var(--vx-fs-8)/1.45 var(--vx-font);color:var(--vx-ink-2)}
.vx-callout b{display:block;color:var(--vx-ink);font-weight:600;margin-block-end:var(--vx-sp-0h)}
.vx-callout>.vx-btn{flex:none;align-self:center}
.vx-empty{display:grid;justify-items:center;gap:var(--vx-sp-2h);padding:var(--vx-sp-9) var(--vx-sp-5);text-align:center}
.vx-empty>.vx-empty-art{display:grid;grid-template-columns:repeat(5,8px);gap:var(--vx-sp-1h);margin-block-end:var(--vx-sp-1h)}
.vx-empty>.vx-empty-art>i{inline-size:8px;block-size:8px;border-radius:var(--vx-r-round);background:var(--vx-off)}
.vx-empty>.vx-empty-art>i:nth-child(7),.vx-empty>.vx-empty-art>i:nth-child(9),.vx-empty>.vx-empty-art>i:nth-child(13){background:var(--vx-hue-pink);box-shadow:0 0 10px var(--vx-hue-pink)}
.vx-empty>b{font:var(--vx-fw-bold) var(--vx-fs-13) var(--vx-font);color:var(--vx-ink)}
.vx-empty>p{margin:0;max-inline-size:36ch;font:var(--vx-fw-regular) var(--vx-fs-8)/1.5 var(--vx-font);color:var(--vx-ink-3)}
.vx-skeleton{display:block;border-radius:var(--vx-r-sm);background:linear-gradient(90deg,var(--vx-well) 0%,var(--vx-raised) 50%,var(--vx-well) 100%) 0 0/200% 100%;animation:vx-shine var(--vx-loop-shine) var(--vx-ease-io) infinite;block-size:var(--h,14px);inline-size:var(--w,100%)}
.vx-skeleton[data-round]{border-radius:var(--vx-r-round)}
@keyframes vx-shine{to{background-position:-200% 0}}
.vx-progress{display:block;block-size:var(--h,8px);border-radius:var(--vx-r-pill);background:var(--vx-off);overflow:hidden}
.vx-progress>i{display:block;block-size:100%;inline-size:var(--v,0%);border-radius:inherit;background:var(--_c,var(--vx-ink));box-shadow:0 0 14px -2px color-mix(in srgb,var(--_c,transparent) calc(var(--vx-glow-k) * 90%),transparent);transition:inline-size var(--vx-dur-grow) var(--vx-ease)}
.vx-progress[data-indeterminate]>i{inline-size:40%;animation:vx-indet var(--vx-loop-loader) var(--vx-ease) infinite}
@keyframes vx-indet{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
vx-ring-progress{display:inline-grid;place-items:center;position:relative;inline-size:var(--s,56px);block-size:var(--s,56px)}
vx-ring-progress>svg{position:absolute;inset:0;inline-size:100%;block-size:100%;transform:rotate(-90deg)}
vx-ring-progress>b{font:700 calc(var(--s,56px) * .26) var(--vx-font);font-variant-numeric:tabular-nums}
.vx-notes{display:grid}
.vx-note{display:flex;gap:var(--vx-sp-3);padding:var(--vx-sp-3) var(--vx-sp-1);border-block-start:1px solid var(--vx-hair)}
.vx-notes>.vx-note:first-child{border-block-start:0}
.vx-note[data-unread]::before{content:"";flex:none;inline-size:8px;block-size:8px;margin-block-start:7px;border-radius:var(--vx-r-round);background:var(--vx-agent);box-shadow:0 0 10px var(--vx-agent)}
.vx-note:not([data-unread])::before{content:"";flex:none;inline-size:8px}
.vx-note>div{flex:1;min-inline-size:0;font:var(--vx-fw-regular) var(--vx-fs-8)/1.45 var(--vx-font);color:var(--vx-ink-2)}
.vx-note b{color:var(--vx-ink);font-weight:600}
.vx-note time{display:block;margin-block-start:var(--vx-sp-0h);font:var(--vx-fw-medium) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}

/* ---------------------------------------------------------------- data */
vx-spark,vx-bars,vx-donut{display:block;min-inline-size:0}
vx-spark>svg,vx-bars>svg{display:block;inline-size:100%;block-size:var(--h,64px);overflow:visible}
vx-donut{inline-size:var(--s,140px);block-size:var(--s,140px);position:relative}
vx-donut>svg{inline-size:100%;block-size:100%;transform:rotate(-90deg)}
vx-donut>div{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
vx-donut>div>b{font:var(--vx-fw-bold) var(--vx-fs-14) var(--vx-font)}vx-donut>div>span{font:var(--vx-fw-medium) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}
.vx-legend{display:flex;flex-wrap:wrap;gap:var(--vx-sp-2h) var(--vx-sp-4);margin:0;padding:0;list-style:none;font:var(--vx-fw-medium) var(--vx-fs-6) var(--vx-font);color:var(--vx-ink-2)}
.vx-legend>li{display:inline-flex;align-items:center;gap:var(--vx-sp-2)}
.vx-legend>li>i{inline-size:8px;block-size:8px;border-radius:var(--vx-r-round);background:var(--_c)}
vx-calendar{display:grid;gap:var(--vx-sp-2h)}
.vx-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-radius:var(--vx-r-lg);overflow:hidden;gap:1px;background:var(--vx-hair)}
.vx-month>span{padding:var(--vx-sp-2);background:var(--vx-cal-cell-bg);font:var(--vx-fw-semibold) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3);text-align:center}
.vx-month>div{min-block-size:92px;padding:var(--vx-sp-1h);background:var(--vx-cal-cell-bg);display:grid;align-content:start;gap:var(--vx-sp-1)}
.vx-month>div>b{font:var(--vx-fw-semibold) var(--vx-fs-6) var(--vx-font);color:var(--vx-ink-2);font-variant-numeric:tabular-nums}
.vx-month>div[data-out]>b{color:var(--vx-ink-3);opacity:.5}
.vx-month>div[aria-current="date"]>b{display:grid;place-items:center;inline-size:24px;block-size:24px;border-radius:var(--vx-r-round);background:var(--vx-ink);color:var(--vx-on-ink)}
.vx-event{display:block;padding:3px 7px;border-radius:var(--vx-cal-event-r);background:var(--_s,var(--vx-well));color:var(--_t,var(--vx-ink));font:var(--vx-fw-semibold) var(--vx-fs-3)/1.3 var(--vx-font);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vx-rank{display:grid;gap:var(--vx-sp-1);margin:0;padding:0;list-style:none;counter-reset:vx-rank}
.vx-rank>li{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:var(--vx-sp-3);padding:var(--vx-sp-2) var(--vx-sp-1);counter-increment:vx-rank;font:var(--vx-fw-medium) var(--vx-fs-8) var(--vx-font)}
.vx-rank>li::before{content:counter(vx-rank);font:var(--vx-fw-bold) var(--vx-fs-6) var(--vx-font-mono);color:var(--vx-ink-3)}
.vx-rank>li>span{display:grid;gap:var(--vx-sp-1h);min-inline-size:0}
.vx-rank>li>span>.vx-progress{--h:6px}
.vx-rank>li>b{font-variant-numeric:tabular-nums}
.vx-avatars{display:inline-flex;align-items:center}
.vx-avatars>.vx-avatar{box-shadow:0 0 0 2px var(--vx-floor)}
.vx-avatars>.vx-avatar+.vx-avatar{margin-inline-start:-10px}
.vx-avatars>.vx-avatars-more{display:inline-grid;place-items:center;inline-size:var(--_a,36px);block-size:var(--_a,36px);margin-inline-start:-10px;border-radius:var(--vx-r-round);background:var(--vx-raised);color:var(--vx-ink-2);font:var(--vx-fw-bold) var(--vx-fs-4) var(--vx-font);box-shadow:0 0 0 2px var(--vx-floor)}
/* tier 3: --vx-stages-todo --vx-stages-done (read in the kit-fix block at the end) */
.vx-stages{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:var(--vx-sp-1);margin:0;padding:0;list-style:none}
.vx-stages>li{display:grid;gap:var(--vx-sp-1h);font:var(--vx-fw-semibold) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3);min-inline-size:0}
.vx-stages>li::before{content:"";block-size:6px;border-radius:var(--vx-r-pill);background:var(--vx-stages-todo)}
.vx-stages>li[data-state="done"]::before{background:var(--vx-stages-done)}
.vx-stages>li[aria-current="step"]{color:var(--vx-ink)}
.vx-stages>li[aria-current="step"]::before{background:var(--_c,var(--vx-hue-blue));box-shadow:0 0 12px -2px var(--_c,var(--vx-hue-blue))}
.vx-stages>li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
vx-amount{display:inline-flex;align-items:baseline;gap:var(--vx-sp-1h);font-variant-numeric:tabular-nums}
vx-amount>small{font:600 .55em var(--vx-font);color:var(--vx-ink-3);letter-spacing:.02em}
vx-amount[data-tone="red"]{color:var(--vx-danger-text)}vx-amount[data-tone="green"]{color:var(--vx-success-text)}
.vx-kbd{display:inline-grid;place-items:center;min-inline-size:22px;block-size:22px;padding-inline:var(--vx-sp-1h);box-sizing:border-box;border-radius:var(--vx-r-3xs);background:var(--vx-well);box-shadow:inset 0 -1px 0 var(--vx-hair-2);font:var(--vx-fw-semibold) var(--vx-fs-4) var(--vx-font-mono);color:var(--vx-ink-2)}
.vx-code{font:500 .9em var(--vx-font-mono);padding:var(--vx-sp-0h) var(--vx-sp-1h);border-radius:var(--vx-r-3xs);background:var(--vx-well);color:var(--vx-ink)}
pre.vx-code{display:block;margin:0;padding:var(--vx-sp-4) var(--vx-sp-4h);border-radius:var(--vx-r-md);overflow:auto;font-size:var(--vx-fs-6);line-height:1.6;white-space:pre}

/* ---------------------------------------------------------------- AI */
.vx-suggestions{display:flex;flex-wrap:wrap;gap:var(--vx-sp-2)}
.vx-suggestions>button{display:inline-flex;align-items:center;gap:var(--vx-sp-2);block-size:38px;padding-inline:var(--vx-sp-3h);border-radius:var(--vx-r-pill);border:1px solid var(--vx-hair);background:var(--vx-card);
  color:var(--vx-ink);font:var(--vx-fw-medium) var(--vx-fs-8) var(--vx-font);cursor:pointer;-webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur);transition:border-color var(--vx-dur-quick) var(--vx-ease-std),transform var(--vx-dur-fast) var(--vx-ease)}
.vx-suggestions>button:hover{border-color:var(--vx-hair-2)}
.vx-suggestions>button:active{transform:scale(.97)}
.vx-suggestions>button>svg,.vx-suggestions>button>vx-icon{inline-size:var(--vx-icon-xs);block-size:var(--vx-icon-xs);color:var(--vx-agent)}
.vx-context{display:flex;gap:var(--vx-sp-2);flex-wrap:wrap}
.vx-context>span{display:inline-flex;align-items:center;gap:var(--vx-sp-2);block-size:30px;padding-inline:var(--vx-sp-2h) var(--vx-sp-1h);border-radius:var(--vx-r-xs);background:var(--vx-well);font:var(--vx-fw-medium) var(--vx-fs-6) var(--vx-font);color:var(--vx-ink-2)}
.vx-context>span>svg,.vx-context>span>vx-icon{inline-size:15px;block-size:15px}
.vx-context>span>button{display:grid;place-items:center;inline-size:20px;block-size:20px;padding:0;border:0;border-radius:var(--vx-r-3xs);background:none;color:var(--vx-ink-3);cursor:pointer}
.vx-insight{position:relative;display:grid;gap:var(--vx-sp-2h);padding:var(--vx-sp-4h) var(--vx-sp-5);border-radius:var(--vx-r-lg);overflow:hidden}
.vx-insight-head{display:flex;align-items:center;gap:var(--vx-sp-2);font:var(--vx-fw-semibold) var(--vx-fs-5) var(--vx-font);color:var(--vx-agent-text)}
.vx-insight-head>vx-icon{--vx-icon:var(--vx-icon-xs)}
.vx-insight>p{margin:0;font:var(--vx-fw-medium) var(--vx-fs-12)/1.45 var(--vx-font);color:var(--vx-ink)}
.vx-insight>small{font:var(--vx-fw-regular) var(--vx-fs-6) var(--vx-font);color:var(--vx-ink-3)}
/* tier 3: --vx-selbar-bg --vx-selbar-fg --vx-selbar-btn-bg --vx-selbar-primary-bg --vx-selbar-primary-fg */
.vx-selection-bar{position:fixed;z-index:800;inset-block-end:calc(24px + env(safe-area-inset-bottom));inset-inline:0;margin-inline:auto;inline-size:max-content;max-inline-size:calc(100vw - 32px);
  display:flex;align-items:center;gap:var(--vx-sp-2);padding:var(--vx-sp-1h) var(--vx-sp-1h) var(--vx-sp-1h) var(--vx-sp-4h);border-radius:var(--vx-r-pill);background:var(--vx-selbar-bg);color:var(--vx-selbar-fg);box-shadow:var(--vx-lift);font:var(--vx-fw-semibold) var(--vx-fs-8) var(--vx-font);animation:vx-toast var(--vx-dur-toast) var(--vx-ease)}
.vx-selection-bar[data-inline]{position:static;margin-inline:0;animation:none}
.vx-selection-bar>.vx-btn{background:var(--vx-selbar-btn-bg);color:inherit;border-color:transparent}
.vx-selection-bar>.vx-btn[data-variant="primary"]{background:var(--vx-selbar-primary-bg);color:var(--vx-selbar-primary-fg)}
.vx-file{display:inline-flex;align-items:center;gap:var(--vx-sp-2h);max-inline-size:280px;padding:var(--vx-sp-2) var(--vx-sp-2h) var(--vx-sp-2) var(--vx-sp-2);border-radius:var(--vx-r-sm);background:var(--vx-well)}
.vx-file>.vx-file-ext{display:grid;place-items:center;flex:none;inline-size:34px;block-size:34px;border-radius:var(--vx-r-2xs);background:var(--_s,var(--vx-raised));color:var(--_t,var(--vx-ink));font:var(--vx-fw-bold) var(--vx-fs-1) var(--vx-font-mono);text-transform:uppercase}
.vx-file>span{min-inline-size:0}
.vx-file b{display:block;font:var(--vx-fw-semibold) var(--vx-fs-7) var(--vx-font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-file small{display:block;font:var(--vx-fw-regular) var(--vx-fs-4) var(--vx-font);color:var(--vx-ink-3)}
.vx-file>.vx-progress{--h:4px;inline-size:60px}
.vx-agent-chip{display:inline-flex;align-items:center;gap:var(--vx-sp-2);block-size:30px;padding-inline:var(--vx-sp-1) var(--vx-sp-3);border-radius:var(--vx-r-pill);background:var(--vx-well);font:var(--vx-fw-semibold) var(--vx-fs-6) var(--vx-font);color:var(--vx-ink)}
.vx-agent-chip>i{display:grid;grid-template-columns:repeat(3,4px);gap:var(--vx-sp-0h);place-content:center;inline-size:22px;block-size:22px;border-radius:var(--vx-r-round);background:var(--vx-raised)}
.vx-agent-chip>small{color:var(--vx-ink-3);font-weight:500}
/* Border beam: a light that runs round the edge of an agent card (decoration; still under reduced motion). */
/* tier 3: --vx-beam-mask */
.vx-beam{position:relative;isolation:isolate}
.vx-beam::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;pointer-events:none;
  background:conic-gradient(from var(--vx-beam-a,0deg),transparent 0 70%,var(--vx-hue-pink) 80%,var(--vx-hue-violet) 88%,var(--vx-hue-blue) 94%,transparent 100%);
  -webkit-mask:var(--vx-beam-mask) content-box,var(--vx-beam-mask);-webkit-mask-composite:xor;mask:var(--vx-beam-mask) content-box exclude,var(--vx-beam-mask);
  animation:vx-beam var(--vx-loop-beam) linear infinite}
@property --vx-beam-a{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes vx-beam{to{--vx-beam-a:360deg}}
.vx-btn[data-variant="shimmer"]{position:relative;overflow:hidden;background:var(--vx-ink);color:var(--vx-on-ink)}
.vx-btn[data-variant="shimmer"]::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,color-mix(in srgb,var(--vx-hue-pink) 55%,transparent) 50%,transparent 70%);transform:translateX(-100%);animation:vx-shimmer var(--vx-loop-shimmer) var(--vx-ease-io) infinite}
@keyframes vx-shimmer{60%,100%{transform:translateX(100%)}}
.vx-stream-caret{display:inline-block;inline-size:.5em;block-size:1em;margin-inline-start:var(--vx-sp-0h);vertical-align:-.15em;border-radius:var(--vx-r-tick);background:var(--vx-agent);animation:vx-caret var(--vx-loop-caret) steps(2) infinite}
@keyframes vx-caret{50%{opacity:0}}
.vx-dot-grid{background-image:radial-gradient(circle,var(--vx-hair-2) 1px,transparent 1.4px);background-size:16px 16px}

@media (prefers-reduced-motion:reduce){
  .vx-pop,.vx-dialog,.vx-sheet,.vx-toast,.vx-command,.vx-scrim,.vx-selection-bar{animation:none}
  .vx-skeleton,.vx-progress[data-indeterminate]>i,.vx-beam::before,.vx-btn[data-variant="shimmer"]::after,.vx-stream-caret{animation:none}
  [data-vx-tip]::after,.vx-accordion>details>summary::after,.vx-progress>i{transition:none}
}

/* ---------------------------------------------------------------- search bar (<vx-searchbar>, kit.js) */
/* Like VS Code's command centre (the lead, 9 Nov): one pill of its own in the top row, no panel round it. At rest it
   reads "Search Verser" and ⌘K centred; in use the scope chip comes in and the text starts at the edge. */
.vx-appbar{position:relative;z-index:60;display:grid;grid-template-columns:1fr minmax(0,var(--vx-searchbar-max,var(--vx-appbar-sb-max))) 1fr;align-items:center;gap:var(--vx-sp-4);min-block-size:56px;padding-inline:var(--vx-sp-4)}
.vx-appbar>:first-child{justify-self:start;display:flex;align-items:center;gap:var(--vx-sp-3)}
.vx-appbar>:last-child{justify-self:end;display:flex;align-items:center;gap:var(--vx-sp-2)}
vx-searchbar:not(:focus-within):not([data-busy]) .vx-sb-scope{display:none}
vx-searchbar:not(:focus-within):not([data-busy]) .vx-sb-field:has(.vx-sb-input:placeholder-shown){justify-content:center;padding-inline:var(--vx-sp-3h)}
vx-searchbar:not(:focus-within):not([data-busy]) .vx-sb-input:placeholder-shown{flex:0 1 auto;inline-size:auto;field-sizing:content;text-align:center}
.vx-sb-lead{flex:none;display:none;inline-size:16px;block-size:16px}
.vx-sb-lead>svg{display:block;inline-size:100%;block-size:100%}
vx-searchbar:not(:focus-within) .vx-sb-lead{display:block}
@media (hover:hover){.vx-sb-field:hover{border-color:var(--vx-hair-2)}}
/* The wide "Search Verser" field of a desktop top bar: a scope chip, the field, the ⌘K hint, and the results under it
   in sections. On a phone (under 720px) it is a search button that opens the field across the bar. */
/* tier 3: --vx-searchbar-h --vx-sb-max --vx-appbar-sb-max --vx-sb-results-bg --vx-sb-cover --vx-sb-option-r */
vx-searchbar{position:relative;display:block;inline-size:100%;max-inline-size:var(--vx-searchbar-max,var(--vx-sb-max))}
.vx-sb-field{box-sizing:border-box;min-inline-size:0;display:flex;align-items:center;gap:var(--vx-sp-2);block-size:var(--vx-searchbar-h);padding-inline:var(--vx-sp-1h) var(--vx-sp-3);border-radius:var(--vx-r-pill);
  background:var(--vx-card);border:1px solid var(--vx-hair);color:var(--vx-ink-3);-webkit-backdrop-filter:var(--vx-blur);backdrop-filter:var(--vx-blur);
  transition:border-color var(--vx-dur-quick) var(--vx-ease-std),box-shadow var(--vx-dur-quick) var(--vx-ease-std)}
.vx-sb-field:focus-within{border-color:var(--vx-hair-2);box-shadow:0 0 0 4px var(--vx-well),0 10px 30px -12px color-mix(in srgb,var(--vx-hue-pink) calc(var(--vx-glow-k) * 45%),transparent)}
.vx-sb-scope{flex:none;display:inline-flex;align-items:center;gap:var(--vx-sp-1h);block-size:32px;padding-inline:var(--vx-sp-3) var(--vx-sp-2);border:0;border-radius:var(--vx-r-pill);background:var(--vx-well);
  color:var(--vx-ink);font:var(--vx-fw-semibold) var(--vx-fs-6) var(--vx-font);cursor:pointer}
.vx-sb-scope>svg{inline-size:14px;block-size:14px;color:var(--vx-ink-3)}
.vx-sb-scope:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px}
.vx-sb-field>svg{flex:none;inline-size:var(--vx-icon-sm);block-size:var(--vx-icon-sm)}
.vx-sb-input{all:unset;flex:1;inline-size:0;min-inline-size:0;font:var(--vx-fw-regular) var(--vx-fs-10) var(--vx-font);color:var(--vx-ink)}
.vx-sb-input::placeholder{color:var(--vx-ink-3)}
.vx-sb-input::-webkit-search-cancel-button,.vx-sb-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.vx-sb-hint{flex:none;display:inline-flex;gap:3px;direction:ltr;transition:opacity var(--vx-dur-fast) var(--vx-ease-std)}
.vx-sb-field:focus-within .vx-sb-hint,.vx-sb-field:has(.vx-sb-input:not(:placeholder-shown)) .vx-sb-hint{opacity:0}
@media (pointer:coarse){.vx-sb-hint{display:none}}
.vx-sb-clear{flex:none;display:none;place-items:center;inline-size:26px;block-size:26px;padding:0;border:0;border-radius:var(--vx-r-round);background:var(--vx-well);color:var(--vx-ink-2);cursor:pointer}
.vx-sb-clear>svg{inline-size:13px;block-size:13px}
.vx-sb-field:has(.vx-sb-input:not(:placeholder-shown)) .vx-sb-clear{display:grid}
.vx-sb-open,.vx-sb-cancel{display:none}
.vx-sb-results{position:absolute;inset-block-start:calc(100% + 8px);inset-inline:0;z-index:70;box-sizing:border-box;max-block-size:min(460px,70dvh);overflow:auto;padding:var(--vx-sp-1h);
  border-radius:var(--vx-r-lg);background:var(--vx-sb-results-bg);color:var(--vx-ink);box-shadow:var(--vx-lift),0 0 0 1px var(--vx-hair);
  animation:vx-pop-in var(--vx-dur-quick) var(--vx-ease)}
.vx-sb-results[hidden]{display:none}
.vx-sb-section+.vx-sb-section{margin-block-start:var(--vx-sp-1);padding-block-start:var(--vx-sp-1);border-block-start:1px solid var(--vx-hair)}
.vx-sb-option{display:flex;align-items:center;gap:var(--vx-sp-3);min-block-size:48px;padding:var(--vx-sp-1h) var(--vx-sp-2h);border-radius:var(--vx-sb-option-r);cursor:pointer}
.vx-sb-option[data-active]{background:var(--vx-well)}
.vx-sb-option>.vx-row-icon{inline-size:32px;block-size:32px;border-radius:var(--vx-r-xs)}
.vx-sb-option>.vx-avatar{--_a:32px}
.vx-sb-option>span:not([class]){flex:1;min-inline-size:0}
.vx-sb-option b{display:block;font:var(--vx-fw-semibold) var(--vx-fs-9)/1.3 var(--vx-font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-sb-option small{display:block;font:var(--vx-fw-regular) var(--vx-fs-5)/1.3 var(--vx-font);color:var(--vx-ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-sb-option mark{background:none;color:var(--vx-agent-text);font-weight:700}
.vx-sb-option>.vx-pill{flex:none}
.vx-sb-all{display:flex;align-items:center;gap:var(--vx-sp-2h);inline-size:100%;box-sizing:border-box;min-block-size:44px;margin-block-start:var(--vx-sp-1);padding:var(--vx-sp-2) var(--vx-sp-2h);border:0;border-block-start:1px solid var(--vx-hair);
  border-radius:0 0 var(--vx-r-s) var(--vx-r-s);background:none;color:var(--vx-ink-2);font:var(--vx-fw-semibold) var(--vx-fs-8) var(--vx-font);text-align:start;cursor:pointer}
.vx-sb-all[data-active],.vx-sb-all:hover{color:var(--vx-ink);background:var(--vx-well)}
.vx-sb-all>svg{inline-size:var(--vx-icon-xs);block-size:var(--vx-icon-xs)}
.vx-sb-state{display:flex;align-items:center;gap:var(--vx-sp-2h);padding:var(--vx-sp-3h) var(--vx-sp-2h);font:var(--vx-fw-regular) var(--vx-fs-8) var(--vx-font);color:var(--vx-ink-3)}
.vx-sb-state[data-tone="error"]{color:var(--vx-danger-text)}
@media (max-width:719px){
  vx-searchbar{inline-size:auto}
  vx-searchbar:not([data-expanded]) .vx-sb-field{display:none}
  vx-searchbar:not([data-expanded]) .vx-sb-open{display:inline-flex}
  vx-searchbar[data-expanded]{position:absolute;inset:0;z-index:80;max-inline-size:none;display:flex;align-items:center;gap:var(--vx-sp-2);padding-inline:var(--vx-sp-2h);border-radius:inherit;background:var(--vx-sb-cover)}
  vx-searchbar[data-expanded] .vx-sb-field{flex:1}
  vx-searchbar[data-expanded] .vx-sb-cancel{flex:none}
  vx-searchbar[data-expanded] .vx-sb-cancel{display:inline-flex}
  vx-searchbar[data-expanded] .vx-sb-scope{display:none}
}
@media (prefers-reduced-motion:reduce){.vx-sb-results{animation:none}.vx-sb-hint,.vx-sb-field{transition:none}}

/* ---- added for agent-tools: .vx-check press feedback ---- */
/* The box answers the tap: the fill and rim ease in and the box gives a little under the finger. Reduced motion keeps
   the colour change and drops the movement. */
.vx-check{transition:background-color var(--vx-dur-tap) var(--vx-ease-std),border-color var(--vx-dur-tap) var(--vx-ease-std),transform var(--vx-dur-tap) var(--vx-ease)}
.vx-check:active{transform:scale(.9)}
@media (prefers-reduced-motion:reduce){.vx-check:active{transform:none}}

/* ---- added for hub: a multiline field's placeholder, in the same quiet ink as the input's (.vx-field>input::placeholder) ---- */
.vx-field>textarea::placeholder{color:var(--vx-ink-3)}

/* ---- added for auth: link button ---- */
/* .vx-btn[data-variant="link"]: an action that reads as a link inside a sentence or at the end of a label's line
   (Forgot PIN?, Create your Verser account, Back to sign in). No box: the link ink, underlined, the size of the words
   around it; padding taken back by a negative margin, so the tap area is 44px tall without moving the text (logical
   sides, so Arabic mirrors). Press dims it (no scale: the text must not jump); a waiting link (Send a new code in 60s)
   keeps its ink.
   tier 3: --vx-btn-link-fg --vx-btn-link-pad-y --vx-btn-link-pad-x --vx-btn-link-pressed */
:root{--vx-btn-link-fg:var(--vx-hue-violet-text);--vx-btn-link-pad-y:var(--vx-sp-3);--vx-btn-link-pad-x:var(--vx-sp-1h);--vx-btn-link-pressed:.6}
.vx-btn[data-variant="link"]{display:inline-flex;block-size:auto;min-block-size:0;margin-block:calc(-1 * var(--vx-btn-link-pad-y));margin-inline:calc(-1 * var(--vx-btn-link-pad-x));
  padding:var(--vx-btn-link-pad-y) var(--vx-btn-link-pad-x);border:0;border-radius:var(--vx-r-2xs);background:transparent;color:var(--vx-btn-link-fg);
  font-family:var(--vx-font);font-weight:var(--vx-fw-semibold);font-size:inherit;line-height:inherit;letter-spacing:0;white-space:normal;
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;-webkit-backdrop-filter:none;backdrop-filter:none;
  transition:opacity var(--vx-dur-tap) var(--vx-ease-std)}
.vx-btn[data-variant="link"]:active{transform:none;opacity:var(--vx-btn-link-pressed)}
.vx-btn[data-variant="link"]:disabled{opacity:1;cursor:default}
@media (hover:hover) and (pointer:fine){.vx-btn[data-variant="link"]:not(:disabled):hover{text-decoration-thickness:2px}}
/* ---- added for agent panel: .vx-agent-panel ---- */
/* tier 3 (each reads tier 2) */
:root{
  --vx-agent-panel-r:var(--vx-r-xl);--vx-agent-panel-pad:var(--vx-sp-4h);--vx-agent-panel-gap:var(--vx-sp-3);--vx-agent-face-size:64px;--vx-agent-face-r:var(--vx-r-md);
  --vx-agent-rail-w:72px;--vx-agent-rail-fg:var(--vx-ink-2);--vx-agent-rail-fs:var(--vx-fs-3);--vx-agent-rail-icon:var(--vx-icon-md);--vx-agent-rail-hover:var(--vx-well);
  --vx-agent-msg-r:var(--vx-r-md);--vx-agent-msg-tail-r:var(--vx-r-3xs);--vx-agent-msg-bg:var(--vx-well);--vx-agent-msg-fg:var(--vx-ink);--vx-agent-msg-fs:var(--vx-fs-10);
  --vx-agent-who-fs:var(--vx-fs-5);--vx-agent-who-fg:var(--vx-ink-3);--vx-agent-mine-bg:var(--vx-ink);--vx-agent-mine-fg:var(--vx-on-ink);
}
/* The agent panel (10 Nov; the mockups' dock, docs/ui-kit/mockups.html): the agent's own column on a .vx-card. The head
   (picture, name and role, its state, close), a rail of labelled shortcuts down the start edge beside the chat, a note
   line (the microphone), and the foot: the language as its own round button beside a pill prompt.
     <aside class="vx-card vx-agent-panel">
       <div class="vx-agent-head"><span class="vx-agent-face">…</span><div class="vx-agent-who"><h3 class="vx-title" data-size="sm">
         <b>Nour</b><span>Sales helper</span></h3><span class="vx-pill">…</span></div><button class="vx-btn" data-icon …>×</button></div>
       <div class="vx-agent-body"><div class="vx-agent-rail"><button>icon Label</button>…</div>
         <div class="vx-agent-chat"><div class="vx-agent-msg"><small>Nour</small><div>words</div></div>
           <div class="vx-agent-msg" data-from="me"><small>Alex</small><div>words</div></div></div></div>
       <div class="vx-callout vx-agent-note"><div>Microphone off.</div></div>
       <div class="vx-agent-foot"><button class="vx-btn" data-icon>EN</button><div class="vx-card vx-prompt">…<input>…</div></div>
     </aside>
   The agent's words sit at the start on a well, the tail at the top; the person's at the end in the main action's ink.
   The rail's buttons are plain buttons (Tab, Enter, Space); logical sides, so Arabic mirrors it. */
/* tier 3: --vx-agent-panel-r --vx-agent-panel-pad --vx-agent-panel-gap --vx-agent-face-size --vx-agent-face-r --vx-agent-rail-w --vx-agent-rail-fg
   --vx-agent-rail-fs --vx-agent-rail-icon --vx-agent-rail-hover --vx-agent-msg-r --vx-agent-msg-tail-r --vx-agent-msg-bg --vx-agent-msg-fg
   --vx-agent-msg-fs --vx-agent-who-fs --vx-agent-who-fg --vx-agent-mine-bg --vx-agent-mine-fg */
.vx-agent-panel{box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:var(--vx-agent-panel-gap);min-block-size:0;padding:var(--vx-agent-panel-pad);border-radius:var(--vx-agent-panel-r)}
.vx-agent-head{display:flex;align-items:flex-start;gap:var(--vx-sp-3);min-inline-size:0}
.vx-agent-face{flex:none;display:grid;place-items:center;inline-size:var(--vx-agent-face-size);block-size:var(--vx-agent-face-size);border-radius:var(--vx-agent-face-r);background:var(--vx-well);overflow:hidden}
.vx-agent-face>img{inline-size:100%;block-size:100%;object-fit:cover}
.vx-agent-who{flex:1;display:grid;justify-items:start;gap:var(--vx-sp-1h);min-inline-size:0}
.vx-agent-body{display:grid;grid-template-columns:var(--vx-agent-rail-w) minmax(0,1fr);gap:var(--vx-sp-3);min-block-size:0}
.vx-agent-rail{display:grid;align-content:start;gap:var(--vx-sp-1h)}
.vx-agent-rail>button{display:grid;justify-items:center;gap:var(--vx-sp-0h);padding:var(--vx-sp-2) 0;border:0;border-radius:var(--vx-r-sm);background:none;color:var(--vx-agent-rail-fg);
  font:var(--vx-fw-semibold) var(--vx-agent-rail-fs) var(--vx-font);cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background-color var(--vx-dur-quick) var(--vx-ease-std),transform var(--vx-dur-fast) var(--vx-ease)}
.vx-agent-rail>button>:is(svg,vx-icon){--vx-icon:var(--vx-agent-rail-icon);inline-size:var(--vx-agent-rail-icon);block-size:var(--vx-agent-rail-icon)}
.vx-agent-rail>button:active{transform:scale(.97)}
.vx-agent-rail>button[aria-pressed="true"]{background:var(--vx-agent-rail-hover);color:var(--vx-ink)}
.vx-agent-rail>button:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-2px}
@media (hover:hover) and (pointer:fine){.vx-agent-rail>button:hover{background:var(--vx-agent-rail-hover)}}
.vx-agent-chat{display:grid;align-content:end;gap:var(--vx-sp-2h);min-block-size:0;overflow-x:hidden;overflow-y:auto}
.vx-agent-msg{display:grid;gap:var(--vx-sp-1);justify-items:start;min-inline-size:0}
.vx-agent-msg>small{padding-inline:var(--vx-sp-1h);font:var(--vx-fw-semibold) var(--vx-agent-who-fs) var(--vx-font);color:var(--vx-agent-who-fg)}
.vx-agent-msg>div{max-inline-size:100%;padding:var(--vx-sp-3) var(--vx-sp-4);border-radius:var(--vx-agent-msg-r);border-start-start-radius:var(--vx-agent-msg-tail-r);
  background:var(--vx-agent-msg-bg);color:var(--vx-agent-msg-fg);font:var(--vx-fw-regular) var(--vx-agent-msg-fs)/1.45 var(--vx-font);overflow-wrap:anywhere}
.vx-agent-msg[data-from="me"]{justify-items:end}
.vx-agent-msg[data-from="me"]>div{border-start-start-radius:var(--vx-agent-msg-r);border-start-end-radius:var(--vx-agent-msg-tail-r);background:var(--vx-agent-mine-bg);color:var(--vx-agent-mine-fg)}
.vx-agent-note{padding-block:var(--vx-sp-2h)}
.vx-agent-foot{display:flex;align-items:center;gap:var(--vx-sp-2);min-inline-size:0}
.vx-agent-foot>.vx-prompt{flex:1;display:flex;align-items:center;gap:var(--vx-sp-1h);min-inline-size:0;padding:var(--vx-sp-1h);padding-inline-start:var(--vx-sp-3h);border-radius:var(--vx-r-pill)}
.vx-agent-foot>.vx-prompt:focus-within{outline:2px solid var(--vx-focus);outline-offset:2px}
.vx-agent-foot>.vx-prompt>input{all:unset;flex:1;min-inline-size:0;font:var(--vx-fw-regular) var(--vx-fs-10) var(--vx-font);color:var(--vx-ink)}
.vx-agent-foot>.vx-prompt>input::placeholder{color:var(--vx-ink-3)}
@media (prefers-reduced-motion:reduce){.vx-agent-rail>button:active{transform:none}}
/* ---- added for shared-parts: hosted overlays, the menu chip, touch hit areas ---- */
/* Hosted (data-hosted): a kit sheet, dialog or popover whose place, size and motion come from its host, the app's
   overlay stack (VerserUI.overlay with ui/components/sheet, dialog and menu: Escape and Back close the top layer, history,
   the page under a modal inert, focus trapped and given back, drag-down on a phone). The kit draws it; the host places
   and moves it, so it takes no offsets and no entry animation of its own. */
.vx-sheet[data-hosted],.vx-dialog[data-hosted],.vx-pop[data-hosted]{inset:auto;animation:none}
.vx-sheet[data-hosted],.vx-dialog[data-hosted]{z-index:auto}
.vx-sheet[data-hosted]:dir(rtl){animation:none}
/* The host places the dialog box (a phone's confirm sits at the bottom), so the kit's centring margin gives way. */
.vx-dialog[data-hosted]{margin:0}
/* tier 3: --vx-pop-hosted-z --vx-pop-hosted-min-w (a hosted popover keeps the app menu's floor and width; the overlay
   stack still raises it inline while open) */
:root{--vx-pop-hosted-z:150;--vx-pop-hosted-min-w:216px}
.vx-pop[data-hosted]{z-index:var(--vx-pop-hosted-z);min-inline-size:var(--vx-pop-hosted-min-w)}
/* Menu chip (.vx-chip[data-variant="menu"]): a chip that opens a menu, often in place of a native <select> (the app's
   select-pick: the select stays in the page as the value and fires the change). Wrap the label in .vx-chip-label to
   end a long one in an ellipsis. The chevron turns over while aria-expanded="true" and points down in both directions
   (no mirroring). data-selected: a set filter, in the chip's on look (a tap clears it). */
/* tier 3: --vx-chip-menu-max-w --vx-chip-chevron */
/* tier 3: --vx-chip-menu-fg (it shows a chosen value: the main ink, not the chip's quieter label ink) */
/* tier 3: --vx-chip-menu-bg (the solid card: a chosen value reads on the OG backdrop too; Light and Dark equal --vx-card) */
:root{--vx-chip-menu-max-w:260px;--vx-chip-chevron:var(--vx-ink-3);--vx-chip-menu-fg:var(--vx-ink);--vx-chip-menu-bg:var(--vx-card-solid)}
.vx-chip[data-variant="menu"]{position:relative;flex:none;max-inline-size:var(--vx-chip-menu-max-w);background:var(--vx-chip-menu-bg);padding-inline:var(--vx-chip-px) calc(var(--vx-chip-px) + 16px);color:var(--vx-chip-menu-fg);text-align:start}
.vx-chip[data-variant="menu"]>.vx-chip-label{min-inline-size:0;overflow:hidden;text-overflow:ellipsis}
.vx-chip[data-variant="menu"]::after{content:"";position:absolute;inset-block:0;inset-inline-end:var(--vx-sp-3h);margin-block:auto;inline-size:6px;block-size:6px;
  border:solid var(--vx-chip-chevron);border-width:0 1.6px 1.6px 0;translate:0 -2px;rotate:45deg;transition:rotate var(--vx-dur-quick) var(--vx-ease),translate var(--vx-dur-quick) var(--vx-ease);pointer-events:none}
.vx-chip[data-variant="menu"][aria-expanded="true"]::after{rotate:225deg;translate:0 1px}
.vx-chip[data-selected]:not([data-selected="false"]){background:var(--vx-chip-on-bg);border-color:var(--vx-chip-on-bg);color:var(--vx-chip-on-fg);--vx-chip-chevron:currentColor}
.vx-chip:disabled{opacity:.45;cursor:default}
.vx-chip{transition:transform var(--vx-dur-fast) var(--vx-ease),background-color var(--vx-dur-quick) var(--vx-ease-std),border-color var(--vx-dur-quick) var(--vx-ease-std)}
.vx-chip:active:not(:disabled){transform:scale(.97)}
@media (hover:hover) and (pointer:fine){.vx-chip:not([aria-pressed="true"]):not([aria-selected="true"]):not([data-selected]):not(:disabled):hover{background:var(--vx-well)}}
/* A finger gets 44px: menu rows grow to it here; chips, small buttons, steppers and page numbers are drawn 44px in the
   kit-fix block below (one rule set, no extra hit area on top). */
@media (pointer:coarse){
  .vx-menu-item,.vx-option{min-block-size:var(--vx-h)}
}
@media (prefers-reduced-motion:reduce){.vx-chip,.vx-chip[data-variant="menu"]::after{transition:none}.vx-chip:active:not(:disabled){transform:none}}
/* ---- added for kit-fix: touch sizes ----
   tier 3 (set here for a finger): --vx-chip-h --vx-btn-h-sm (both listed in their parts' headers)
   A finger gets 44px on the compact controls, drawn, as the nav rows, the segmented control and the small field already
   do: a chip, a small button (with or without words), a stepper's − and +, a page number. Drawn, not a wider invisible
   hit area: these sit close in rows and toolbars, where invisible areas would overlap their neighbours, and the screens'
   own 44px rules (Tasks' filter chips at 320 and 375) measure the box. A mouse keeps the compact 36px. */
@media (pointer:coarse){
  :root{--vx-chip-h:var(--vx-h);--vx-btn-h-sm:var(--vx-h)}
  .vx-stepper>.vx-btn{inline-size:var(--vx-h);block-size:var(--vx-h)}
  .vx-pages>button{min-inline-size:var(--vx-h);block-size:var(--vx-h)}
}

/* ---- added for kit-fix: tabs that fit a phone, and a sticky tab row ----
   tier 3: --vx-tabs-px --vx-tabs-px-snug --vx-tabs-fs --vx-tabs-fs-snug --vx-tabs-fade --vx-tabs-sticky-bg --vx-tabs-sticky-blur
           --vx-tabs-sticky-reach --vx-tabs-sticky-bleed --vx-tabs-sticky-gap --vx-tabs-sticky-in --vx-tabs-sticky-full
   A row keeps its look wherever it is: each tab as wide as its label, packed at the start (the lead, B4, 2 Nov). Only a
   row too long for its place is snug (measured by kit.js, data-snug; it was five tabs on a phone): less room at each tab's sides and none between
   them, the label half a point smaller, so five short tabs fit a 360px phone whole, in English and in Arabic (the old
   .tabs-line.snug of Projects). A row that is still too long scrolls sideways, never up and down, and fades each edge
   while there is more to see that way (its own scroll drives the fade, mirrored in Arabic). kit.js marks a row
   data-overflow only while a label really runs past the edge (more than the last tab's end padding), and only such a
   row fades: a row a few pixels over by that padding shows every label whole and keeps clean edges.
   Picking a tab brings it whole into view (kit.js).
   .vx-tabs[data-sticky]: the row sticks to the top of the scrolling page. At rest it is clear like any header; its glass
   (--vx-tabs-sticky-bg, the top bar's) comes in as the page scrolls from --vx-tabs-sticky-in to --vx-tabs-sticky-full.
   A screen whose menu row floats over the page sets --vx-tabs-sticky-reach (the app does on a phone: index.html): the
   glass reaches up that far over the band above the tabs, which lets taps through to what is under it. The kit works
   the reach into the row's top margin, so the space above a sticky row is --vx-tabs-sticky-gap: a view that makes its
   row sticky drops its own top margin on that row and sets the token instead, less what the element above already
   gives with its bottom margin (that margin no longer collapses into the row's; Approvals' status line gives 8px, so
   its gap would be 0). The tabs then sit where they did. A screen
   with side gutters sets --vx-tabs-sticky-bleed to them: the row runs edge to edge, its tabs where they were.
   Without scroll timelines, and under reduced motion, the glass is simply on (no change with the scroll) and the row
   sticks under that band instead of reaching over it. */
.vx-tabs{overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:var(--vx-tabs-fade)}
.vx-tabs>button,.vx-tabs>a{padding-inline:var(--vx-tabs-px);font-size:var(--vx-tabs-fs);scroll-snap-align:start}
.vx-tabs>[aria-selected="true"]::after,.vx-tabs>[aria-current="page"]::after{inset-inline:max(0px,calc(var(--vx-tabs-px) - var(--vx-sp-1)))}
/* (snug is measured now, not counted: .vx-tabs[data-snug] in the layout pass block at the end) */
@property --vx-tabs-fade-s{syntax:"<length>";inherits:false;initial-value:0px}
@property --vx-tabs-fade-e{syntax:"<length>";inherits:false;initial-value:0px}
@keyframes vx-tabs-fade{0%{--vx-tabs-fade-s:0px;--vx-tabs-fade-e:var(--vx-tabs-fade)}12%{--vx-tabs-fade-s:var(--vx-tabs-fade)}88%{--vx-tabs-fade-e:var(--vx-tabs-fade)}100%{--vx-tabs-fade-s:var(--vx-tabs-fade);--vx-tabs-fade-e:0px}}
@keyframes vx-tabs-stick{to{background-color:var(--vx-tabs-sticky-bg);-webkit-backdrop-filter:var(--vx-tabs-sticky-blur);backdrop-filter:var(--vx-tabs-sticky-blur)}}
.vx-tabs[data-sticky]{position:sticky;inset-block-start:var(--vx-tabs-sticky-reach);z-index:5;margin-block-start:var(--vx-tabs-sticky-gap);margin-inline:calc(-1 * var(--vx-tabs-sticky-bleed));padding-inline:max(0px,calc(var(--vx-tabs-sticky-bleed) - var(--vx-sp-1)));background-color:var(--vx-tabs-sticky-bg);-webkit-backdrop-filter:var(--vx-tabs-sticky-blur);backdrop-filter:var(--vx-tabs-sticky-blur)}
@supports (animation-timeline:scroll()){
  .vx-tabs{--_m:linear-gradient(to right,transparent 0,var(--vx-mask) var(--vx-tabs-fade-s),var(--vx-mask) calc(100% - var(--vx-tabs-fade-e)),transparent 100%);
    animation:vx-tabs-fade linear both;animation-timeline:scroll(self inline)}
  .vx-tabs[data-overflow]{-webkit-mask-image:var(--_m);mask-image:var(--_m)}
  .vx-tabs:dir(rtl){--_m:linear-gradient(to left,transparent 0,var(--vx-mask) var(--vx-tabs-fade-s),var(--vx-mask) calc(100% - var(--vx-tabs-fade-e)),transparent 100%)}
  .vx-tabs[data-sticky]{inset-block-start:0;margin-block-start:calc(var(--vx-tabs-sticky-gap) - var(--vx-tabs-sticky-reach));padding-block-start:var(--vx-tabs-sticky-reach);pointer-events:none;
    background-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;
    animation:vx-tabs-stick linear both,vx-tabs-fade linear both;animation-timeline:scroll(root),scroll(self inline);animation-range:var(--vx-tabs-sticky-in) var(--vx-tabs-sticky-full),normal}
  .vx-tabs[data-sticky]>*{pointer-events:auto}
  @media (prefers-reduced-motion:reduce){
    .vx-tabs[data-sticky]{inset-block-start:var(--vx-tabs-sticky-reach);margin-block-start:var(--vx-tabs-sticky-gap);padding-block-start:0;pointer-events:auto;
      background-color:var(--vx-tabs-sticky-bg);-webkit-backdrop-filter:var(--vx-tabs-sticky-blur);backdrop-filter:var(--vx-tabs-sticky-blur);
      animation:vx-tabs-fade linear both;animation-timeline:scroll(self inline)}
  }
}
/* A tab that is a link takes the same focus ring as a button tab. An idle tab brightens a step under a mouse and while
   pressed (a colour, no motion, so arrow keys stay instant). */
.vx-tabs>a:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-4px;border-radius:var(--vx-r-xs)}
.vx-tabs>:not([aria-selected="true"],[aria-current="page"]):active{color:var(--vx-ink-2)}
@media (hover:hover) and (pointer:fine){.vx-tabs>:not([aria-selected="true"],[aria-current="page"]):hover{color:var(--vx-ink-2)}}

/* ---- added for kit-fix: the KPI card's round button and hour capsules under a finger ----
   (no tier-3 tokens: the reach is --vx-h, 44px under a finger)
   Their drawn look stays (a 34 or 42px dotted ring; capsules a column wide). What a finger can hit grows with an
   invisible area of the control's own (::before, so a tap there is the control's): the ring's reaches 44 x 44 round its
   middle; each capsule's runs the whole column, half the gap to either neighbour, and 44px up from its foot however
   short the day was. Seven capsules share a card's width, so a column is narrower than 44 on a phone; the columns meet,
   so no tap between two days is lost. */
@media (pointer:coarse){
  .vx-ring{position:relative}
  .vx-ring::before{content:"";position:absolute;inset:min(0px,calc((100% - var(--vx-h)) / 2))}
  .vx-caps>button{position:relative}
  .vx-caps>button::before{content:"";position:absolute;inset-inline:calc(clamp(4px,3cqi,9px) / -2);inset-block-end:0;block-size:max(100%,var(--vx-h))}
}

/* ---- added for kit-fix: a row's sub-line that must be read whole ----
   .vx-row-text[data-wrap]: the line under the title wraps instead of ending in an ellipsis (a state that tells the
   person what to do, "Not available yet · ask your admin"). Rows of one list then differ in height by design. */
.vx-row-text[data-wrap]>span{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:break-word}

/* ---- added for kit-fix: a step still to come reads in every mode ----
   tier 3: --vx-steps-bar-todo-edge (.vx-steps-bar) --vx-stages-todo --vx-stages-done (.vx-stages)
   A wizard's step still to come is a ring in the quiet ink round its number (3:1 and more on a card in every mode; the
   well's fill alone all but vanished on paper and on graphite); a done step and the current one are filled, so no ring.
   A stage bar's track and its done part read the track roles: as before in OG and Dark, on paper the done part holds
   3:1 against the card and the track shows against it. */
.vx-steps-bar>li::before{box-shadow:inset 0 0 0 1.5px var(--vx-steps-bar-todo-edge)}
.vx-steps-bar>li:is([data-state="done"],[aria-current="step"])::before{box-shadow:none}
/* ---- added for attendance: .vx-tr-open ---- a name in a .vx-tr row that opens that row (a person's days): a bare button, so
   the row stays a table row. Dims while pressed; underline on hover only with a mouse. */
.vx-tr-open{display:block;min-inline-size:0;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity var(--vx-dur-fast) var(--vx-ease)}
.vx-tr-open:active{opacity:.7}
.vx-tr-open:focus-visible{outline:2px solid var(--vx-focus);outline-offset:2px;border-radius:var(--vx-r-xs)}
@media (hover:hover) and (pointer:fine){.vx-tr-open:hover b{text-decoration:underline;text-underline-offset:3px}}
@media (pointer:coarse){.vx-tr-open{position:relative}.vx-tr-open::before{content:"";position:absolute;inset-block:min(-4px,calc((100% - var(--vx-h)) / 2));inset-inline:0}}   /* a finger's 44px, however short the name */

/* ---- added for attendance: .vx-table[data-pin] ---- a real <table> in a .vx-card for figures by person and day: the first
   column stays pinned to the inline start (the right in Arabic) while the rest scrolls sideways, the head and total rows read as
   the table's own, today's column has a fill. Not a .vx-tr grid: those rows cannot keep columns aligned under a pinned name.
     <div class="vx-card vx-table" data-pin data-kind="days" role="region" tabindex="0" aria-label="Timesheet">
       <table><caption>Timesheet · 2–8 Nov</caption>
         <thead><tr><th scope="col">Person</th><th scope="col" data-align="end" aria-current="date"><span>Mon</span><span>9</span></th>…</tr></thead>
         <tbody><tr><th scope="row"><button class="vx-tr-open"><b>Sam</b><small>Sales</small></button></th>
           <td data-align="end">7:30</td><td data-align="end" data-zero>0:00</td><td data-align="end"><span data-word>Leave</span></td>…</tr></tbody>
         <tfoot><tr><th scope="row">Total</th>…</tr></tfoot></table></div>
   data-kind  days (a column per day: narrow, centred figures) | totals     td[data-zero] muted   td[data-strong] the row's total
   [data-today] today's column   [data-word] Leave / Absent in words (data-tone="amber" for a warning)   [data-note] a small line under a figure
   Tier-3: --vx-pin-w (the pinned column's least width), --vx-pin-cell-w (a day column's least width), --vx-pin-row-h, --vx-pin-bg (the
   pinned cells' opaque backing while the table is scrolled), --vx-pin-today-bg. The card is the default glass .vx-card; at rest the pinned
   cells are clear so the glass shows, and once the region has scrolled sideways kit.js sets data-scrolled on it (scrollLeft is negative in
   RTL in some engines; it is read as a distance) and the pinned cells take --vx-pin-bg, so no figure shows under the pinned name.
   Keyboard: the region takes focus and the arrow keys scroll it; a name is a .vx-tr-open button. */
:root{--vx-pin-w:132px;--vx-pin-cell-w:48px;--vx-pin-row-h:52px;--vx-pin-bg:var(--vx-pop);--vx-pin-today-bg:var(--vx-well)}
.vx-table[data-pin]{display:block;padding:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.vx-table[data-pin]:focus-visible{outline:2px solid var(--vx-focus);outline-offset:-2px}
.vx-table[data-pin]>table{inline-size:100%;border-collapse:separate;border-spacing:0;font:var(--vx-fw-regular) var(--vx-fs-8)/1.3 var(--vx-font);color:var(--vx-ink)}
.vx-table[data-pin] caption{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.vx-table[data-pin] :is(th,td){padding:var(--vx-sp-2) var(--vx-sp-2h);border-block-end:1px solid var(--vx-hair);text-align:start;vertical-align:middle;white-space:nowrap}
.vx-table[data-pin] :is(th,td)[data-align="end"]{text-align:end}
.vx-table[data-pin] thead th{padding-block:var(--vx-sp-3) var(--vx-sp-2);font:var(--vx-fw-semibold) var(--vx-fs-5)/1.25 var(--vx-font);color:var(--vx-ink-3);vertical-align:bottom}
.vx-table[data-pin] thead th>span{display:block}
.vx-table[data-pin] thead th[aria-current="date"]{color:var(--vx-ink);background:var(--vx-pin-today-bg)}
.vx-table[data-pin] tbody th{font-weight:var(--vx-fw-regular)}
.vx-table[data-pin] th small{display:block;margin-block-start:var(--vx-sp-0h);font:var(--vx-fw-regular) var(--vx-fs-4)/1.3 var(--vx-font-mono);color:var(--vx-ink-3)}
.vx-table[data-pin] td{block-size:var(--vx-pin-row-h);font-family:var(--vx-font-mono);font-variant-numeric:tabular-nums}
.vx-table[data-pin] td[data-zero]{color:var(--vx-ink-3)}
.vx-table[data-pin] td[data-strong]{font-weight:var(--vx-fw-semibold)}
.vx-table[data-pin] td[data-today]{background:var(--vx-pin-today-bg)}
.vx-table[data-pin][data-kind="days"] :is(th,td)[data-align="end"]{text-align:center;min-inline-size:var(--vx-pin-cell-w)}
.vx-table[data-pin] [data-word]{font:var(--vx-fw-semibold) var(--vx-fs-5)/1.2 var(--vx-font);color:var(--_t,var(--vx-ink-3))}
.vx-table[data-pin] [data-note]{display:block;font:var(--vx-fw-regular) var(--vx-fs-2)/1.2 var(--vx-font);color:var(--_t,var(--vx-ink-3))}
.vx-table[data-pin] :is(thead,tbody,tfoot) th:first-child{position:sticky;inset-inline-start:0;z-index:1;min-inline-size:var(--vx-pin-w);box-shadow:inset -1px 0 0 var(--vx-hair)}
.vx-table[data-pin] :is(thead,tbody,tfoot) th:first-child:dir(rtl){box-shadow:inset 1px 0 0 var(--vx-hair)}
.vx-table[data-pin][data-scrolled] :is(thead,tbody,tfoot) th:first-child{background:var(--vx-pin-bg)}
.vx-table[data-pin] tfoot :is(th,td){font-weight:var(--vx-fw-semibold);border-block-end:0}
/* ---- added for hub: a send button inside a field ([data-send]) is off while the field is empty, as the app composer's Send:
   quiet, and it takes no tap (the field needs a placeholder; :placeholder-shown). Enter in the empty field still reaches the
   screen, which says what is missing. ---- */
.vx-field:has(>input:placeholder-shown,>textarea:placeholder-shown)>.vx-btn[data-send]{opacity:.45;pointer-events:none}
/* ---- added for admin: a row that is a button answers a press ---- */
/* A pressed row dims, as the page's Back does (--vx-row-pressed, Back's value by default): feedback at once, no movement in a list; a keyboard
   press (Enter, Space) shows no motion because opacity has no travel. */
/* tier 3: --vx-row-pressed (follows Back's press unless a theme sets it apart) */
:root{--vx-row-pressed:var(--vx-back-pressed)}
button.vx-row:active{opacity:var(--vx-row-pressed)}
/* ---- added for agent-builder: a button pressed under reduced motion does not move; its colour still eases ---- */
@media (prefers-reduced-motion:reduce){
  .vx-btn{transition:background-color var(--vx-dur-quick) var(--vx-ease-std),box-shadow var(--vx-dur-mid) var(--vx-ease-std)}
  .vx-btn:active{transform:none}
}
/* ---- added for chat: a rail row lit by aria-current="true" (the room on screen in a list: a selection, not a page) ---- */
.vx-nav-item[aria-current="true"]{background:var(--vx-nav-item-on-bg);color:var(--vx-nav-item-on-fg);box-shadow:var(--vx-nav-item-on-shadow)}
@media (hover:hover){.vx-nav-item[aria-current="true"]:hover{background:var(--vx-nav-item-on-bg);color:var(--vx-nav-item-on-fg)}}
/* ---- added for layout pass: the page's create action ----
   A page's one create action (New task, New tool, Invite, New project ...) is the .vx-fab at the bottom end, at every
   size, with the action's words as its accessible name; the page head never holds a create action (an empty state may
   repeat it as a plain button). The app places it (beside the dock on a desktop). A create action that opens a menu
   (Invite: one person or many) opens it upward from the button. While the page cannot create yet (its list has not
   loaded) the button keeps its place, quiet and off, as a .vx-btn does. */
.vx-fab:disabled{opacity:.45;cursor:default;transform:none}
/* ---- added for layout pass: .vx-page-head and .vx-filter-bar ----
   tier 3: --vx-page-head-line --vx-page-head-gap --vx-page-head-end-gap --vx-page-head-icon
           --vx-filter-bar-gap --vx-filter-search-min --vx-filter-search-max
   One head for every page, built from the kit's parts, in this order:
     1. Back on a sub-page (.vx-back; the app places it: above the title on a desktop, in the menu's spot on a phone);
     2. the title row: [icon | none] [title] [flex] [end slot: at most two view controls, never a create action];
     3. an optional subtitle: one line, quiet, no buttons (.vx-page-head-sub, inside the title block);
     4. optional .vx-tabs; 5. one filter bar (.vx-filter-bar) under it, never inside a card.
     <div class="vx-page-head">
       <button class="vx-back">‹ My Verser</button>
       <div class="vx-page-head-title"><svg class="icon"/><div><h2>Inbox</h2><p class="vx-page-head-sub">Nour</p></div></div>
       <div class="vx-page-head-end"><button class="vx-chip" data-variant="menu">…</button></div>
     </div>
     <div class="vx-filter-bar">
       <label class="vx-field" data-size="sm">search</label><div class="vx-filter-chips">chips</div>
       <div class="vx-filter-end">scope / sort menu chips</div>
     </div>
   End-slot controls are the kit's compact controls, all one height: a small button (.vx-btn data-size="sm", with or
   without words) or a chip (a menu chip): 36 under a mouse, 44 under a finger, so each page part keeps one size per kind
   (kit-ux's kit-size). The title line is as tall as they are, so a control never pushes the title down and every
   page's title sits at the same height (a sub-page's only by its Back row). The filter bar wraps as blocks: the search, the chips as one group (it moves under the search as a whole
   and scrolls sideways if it is still too long), the scope and sort chips at the end. */
:root{--vx-page-head-line:var(--vx-chip-h);--vx-page-head-gap:var(--vx-sp-3);--vx-page-head-end-gap:var(--vx-sp-2);--vx-page-head-icon:26px;
  --vx-filter-bar-gap:var(--vx-sp-2);--vx-filter-search-min:280px;--vx-filter-search-max:340px}
.vx-page-head{display:flex;align-items:center;gap:var(--vx-page-head-gap);min-inline-size:0}
.vx-page-head>.vx-page-head-title{display:flex;align-items:center;gap:var(--vx-sp-2h);flex:1 1 auto;min-inline-size:0;min-block-size:var(--vx-page-head-line)}
.vx-page-head-title>svg,.vx-page-head-title>vx-icon{flex:none;inline-size:var(--vx-page-head-icon);block-size:var(--vx-page-head-icon)}
.vx-page-head-title>:not(svg,vx-icon){min-inline-size:0}
.vx-page-head-sub{margin:var(--vx-sp-0h) 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--vx-fw-regular) var(--vx-fs-5)/1.4 var(--vx-font);color:var(--vx-ink-3)}
.vx-page-head-sub:empty{display:none}
.vx-page-head-end{display:flex;align-items:center;gap:var(--vx-page-head-end-gap);flex:none;margin-inline-start:auto}
.vx-page-head>:is(.vx-btn,.vx-chip,.vx-page-head-end){flex:none}
/* End-slot controls placed straight in the head (a view adds them by script) stand as close as in .vx-page-head-end. */
.vx-page-head>:is(.vx-btn,.vx-chip)+:is(.vx-btn,.vx-chip){margin-inline-start:calc(var(--vx-page-head-end-gap) - var(--vx-page-head-gap))}
.vx-filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--vx-filter-bar-gap);min-inline-size:0}
.vx-filter-bar>.vx-field{flex:1 1 var(--vx-filter-search-min);max-inline-size:var(--vx-filter-search-max)}
/* (the chips' focus ring keeps its room inside the scroller: a step of padding, given back by the margin) */
.vx-filter-chips{display:flex;flex-wrap:nowrap;align-items:center;gap:var(--vx-filter-bar-gap);flex:0 1 auto;min-inline-size:0;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;
  padding:var(--vx-sp-1);margin:calc(-1 * var(--vx-sp-1))}
.vx-filter-chips>*{flex:none}
.vx-filter-end{display:flex;align-items:center;gap:var(--vx-filter-bar-gap);flex:none;margin-inline-start:auto}
/* A phone (the app's layout switch, as .vx-back): the search takes the whole row, the chips scroll under it. */
@media (max-width:719px),(max-height:500px) and (pointer:coarse){.vx-filter-bar>.vx-field{flex-basis:100%;max-inline-size:none}}
/* ---- added for layout pass: a form's full-width button ----
   tier 3: --vx-btn-block-max
   .vx-btn[data-block="form"]: a form's one button under its fields (Save tools, Save changes) is the column's full width
   on a phone and stops at --vx-btn-block-max on a wider column, at the form's start edge, so it never stretches a
   desktop's 800 to 1200px. A block button in a sheet or a dialog keeps their width (plain data-block). */
:root{--vx-btn-block-max:360px}
.vx-btn[data-block="form"]{max-inline-size:var(--vx-btn-block-max);justify-self:start}
/* ---- added for layout pass: a field's actions slot ----
   tier 3: --vx-field-actions-gap --vx-field-actions-inset
   .vx-field-actions: a field's trailing buttons (attach, send ...) as one group at its end, inside its edge: the group
   keeps its width, the input or textarea takes the rest, and the last button ends --vx-field-actions-inset from the
   field's rim (a lone .vx-btn straight in the field keeps its own pull to the edge). In a multiline field the group sits
   on the last line. */
:root{--vx-field-actions-gap:var(--vx-sp-1);--vx-field-actions-inset:var(--vx-sp-1h)}
.vx-field-actions{display:flex;align-items:center;gap:var(--vx-field-actions-gap);flex:none;margin-inline-end:calc(var(--vx-field-actions-inset) - var(--vx-sp-4))}
.vx-field-actions>.vx-btn{margin:0}
.vx-field[data-multiline]>.vx-field-actions{align-self:flex-end}
/* ---- added for layout pass: the boxed toast ----
   tier 3: --vx-toast-box-w --vx-toast-x-size (the close: a 44px target under a mouse too, it is small in a small box)
   .vx-toast[data-variant="box"]: a notice in a small box (the app's toast in the top end corner, the lead's "a box on the
   right with a little x"): its words in their own span (.vx-toast-text), the close (.vx-toast-x, a 44px target drawn as a
   small ×) beside them at the end, and an action (.vx-toast-act: Try again, Undo) under the words at their start, never
   in the middle of a wrapped sentence or between Arabic words. Fits its words up to --vx-toast-box-w. Its place and its
   motion are the host's. */
:root{--vx-toast-box-w:280px;--vx-toast-x-size:44px}
.vx-toast[data-variant="box"]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:0;box-sizing:border-box;inline-size:max-content;
  max-inline-size:min(var(--vx-toast-box-w),100vw - 2 * var(--vx-sp-3));padding:0;padding-inline-start:var(--vx-sp-3h);border-radius:var(--vx-r-md);
  font:var(--vx-fw-medium) var(--vx-fs-9)/1.45 var(--vx-font);text-align:start;animation:none}
.vx-toast[data-variant="box"]>.vx-toast-text{grid-column:1;grid-row:1;min-inline-size:0;padding-block:var(--vx-sp-2h);overflow-wrap:anywhere}
.vx-toast[data-variant="box"]>.vx-toast-act{grid-column:1;grid-row:2;justify-self:start;block-size:auto;min-block-size:var(--vx-h);margin-block-end:var(--vx-sp-2h);
  padding-block:var(--vx-sp-1);padding-inline:var(--vx-sp-3);font:var(--vx-fw-semibold) var(--vx-fs-9)/1.2 var(--vx-font)}
.vx-toast[data-variant="box"]>.vx-toast-x{grid-column:2;grid-row:1;display:grid;place-items:center;inline-size:var(--vx-toast-x-size);block-size:var(--vx-toast-x-size);padding:0;background:none;
  color:color-mix(in srgb,var(--vx-toast-fg) 72%,transparent)}
/* ---- added for layout pass: the stacked rail's badge on its icon's corner ----
   On a stacked rail (a tablet's narrow rail) a row's count sits on its icon's top end corner, as on an app icon, and
   never runs over the icon: it may grow toward the row's end only, and a count longer than that room ends in an
   ellipsis (the app caps counts at 99+). */
.vx-nav[data-stacked] .vx-nav-item>.vx-badge{inset-inline-end:auto;inset-inline-start:calc(50% + var(--vx-nav-item-icon) / 2 - var(--vx-sp-1h));inset-block-start:var(--vx-sp-0h);
  display:block;max-inline-size:calc(50% - var(--vx-nav-item-icon) / 2 + var(--vx-sp-1h) - var(--vx-sp-0h));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  line-height:var(--vx-badge-size);text-align:center}
/* ---- added for layout pass: the agent panel's message card and its foot ----
   tier 3: --vx-agent-msg-pad-y --vx-agent-msg-pad-x --vx-agent-lang-size
   A message card's padding is the part's (a host drawing its own cards, the app's chat, reads the same two tokens). The
   sender's name is a row of its own above the card (.vx-agent-msg>small), as wide as the chat allows, never cut to the
   card's width: over a one-letter reply it still reads whole. A reply that failed keeps its card with a red dot before
   its words and no red edge. The foot's language button (its first .vx-btn) is one 44px round, centred on the prompt, in
   every variant (the open dock, the chat window, a phone). */
:root{--vx-agent-msg-pad-y:var(--vx-sp-3);--vx-agent-msg-pad-x:var(--vx-sp-4);--vx-agent-lang-size:44px}
.vx-agent-msg>div{padding:var(--vx-agent-msg-pad-y) var(--vx-agent-msg-pad-x)}
.vx-agent-msg>small{max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-agent-msg[data-failed]>div::before{content:"";display:inline-block;inline-size:7px;block-size:7px;margin-inline-end:var(--vx-sp-2);border-radius:var(--vx-r-round);vertical-align:.1em;background:var(--vx-danger)}
.vx-agent-foot>.vx-btn[data-icon]:first-child{flex:none;align-self:center;inline-size:var(--vx-agent-lang-size);block-size:var(--vx-agent-lang-size);border-radius:var(--vx-r-pill)}
/* ---- added for layout pass: row text that holds any words ----
   A row's title (.vx-row-text>b) breaks a word with no break in it (an email, a link) rather than leaving its row, and
   stops at two lines with an ellipsis (a title that holds a pill keeps every line: the pill's box would be cut). Its
   title and its line under it set their own direction from their words (an English name in an Arabic row, an Arabic
   name in an English one, both cut at their own end), and anything cut says itself in full in a title (kit.js, the rows
   are watched as they are drawn). Each is only as wide as its words, at most the row's text, so one in the other
   script than the page's (WhatsApp on an Arabic page) still starts on the row's start edge with the others rather
   than against the far edge; a long one is cut at its own end as before. */
.vx-row-text>b{overflow-wrap:anywhere}
.vx-row-text>b:not(:has(.vx-pill)){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.vx-row-text>:is(b,span){unicode-bidi:plaintext;inline-size:fit-content;max-inline-size:100%}
/* ---- added for layout pass: a KPI card's figure never paints over its caption ----
   The figure row wraps: when the caption and the number do not fit side by side (a narrow card of a four-across row at
   1024 or 1440, a 99,999, a long Arabic caption) the number takes its own line under the caption, at the end as always,
   instead of drawing over it. Four across stays four across. (The compact ring keeps its 34px look; a finger's 44px
   area round it is the kit-fix block's.) */
.vx-kpi-figure{flex-wrap:wrap;row-gap:var(--vx-sp-1)}
.vx-kpi-figure>.vx-num{margin-inline-start:auto}
/* ---- added for layout pass: the check box in a row ----
   tier 3: --vx-check-line (the row title's line: its font size times its 1.3 line height)
   A check box in a row sits on the row title's first line (a title of two lines, or a title with lines under it, keeps
   the box beside its first words, not in the middle of the block), and a finger can hit it anywhere in a 44px square
   round it (drawn 22px; an invisible area of its own, so a tap there is the box's). */
:root{--vx-check-line:calc(var(--vx-fs-9) * 1.3)}
.vx-row>.vx-check{align-self:flex-start;margin-block-start:calc((var(--vx-check-line) - var(--vx-check-size)) / 2)}
/* A row whose words run past two lines (data-vx-tall, kit.js) keeps its controls after the words (a bin, Restore, an
   icon button) on the title's first line, as the check box: --vx-row-act-y centres each on that line and never takes
   it further up than the row's padding. Rows of one or two lines keep their controls centred, at their height. */
.vx-row[data-vx-tall]>.vx-row-text~:is(button,a,[role="button"]):not(.vx-check){align-self:flex-start;margin-block-start:var(--vx-row-act-y,0)}
@media (pointer:coarse){
  .vx-check{position:relative}
  .vx-check::before{content:"";position:absolute;inset:calc((var(--vx-check-size) - var(--vx-h)) / 2)}
}
/* ---- added for layout pass: a panel's empty list ----
   .vx-empty[data-size="list"]: the empty state of a list inside a panel (My tasks, Team pulse, a card's rows): where
   the rows would start, at their start edge, its line no larger than a row's title (never larger than the panel's own
   title), the note under it as a row's quiet line, an action after them at the start. The page-sized .vx-empty (the
   art, centred) stays for a page or a pane with nothing in it. */
.vx-empty[data-size="list"]{justify-items:start;gap:var(--vx-sp-1);padding:var(--vx-sp-3) 0;text-align:start}
.vx-empty[data-size="list"]>b{font:var(--vx-fw-semibold) var(--vx-fs-9)/1.3 var(--vx-font)}
.vx-empty[data-size="list"]>:is(p,span){max-inline-size:none;font:var(--vx-fw-regular) var(--vx-fs-6)/1.35 var(--vx-font);color:var(--vx-ink-3)}
.vx-empty[data-size="list"]>.vx-btn{margin-block-start:var(--vx-sp-1h)}
/* ---- added for layout pass: one anchor rule and one width for menus ----
   tier 3: --vx-pop-max-w
   A menu or popover opens on its trigger's start edge; when that would run it off the screen it takes the trigger's end
   edge instead (so it always lines up with one of the trigger's edges), and only if neither fits is it slid back inside
   the window. It is never wider than --vx-pop-max-w: a long choice ends in an ellipsis (with its words in a title)
   rather than widening the menu over the page or the dock. */
:root{--vx-pop-max-w:320px}
.vx-pop{max-inline-size:min(var(--vx-pop-max-w),100vw - 2 * var(--vx-sp-2))}
/* ---- added for layout pass: the page head on the page's edge ----
   The page head has no inline inset of its own: its icon (or its first word) starts, and its end slot ends, on the same
   edges as the page's cards, the round + and the toast. */
.vx-page-head{margin-inline:0}
/* ---- added for layout pass: list and detail panes (Chat, a split's two panes, Inbox, Drive places) ----
   tier 3: --vx-pane-head-h --vx-measure --vx-fab-reserve
   .vx-pane-head: the band at the top of a pane (a list's search, a detail's title): one height for both panes of a
     split (a field and a step above and below it), one hairline under it, its parts centred, a step in from each side,
     so the two hairlines meet in one line across the split.
   .vx-search-pair: a list's search and its one trailing action (New message): the small field and a small secondary
     icon button beside it, one height (36 under a mouse, 48 under a finger: the small field's touch height).
   .vx-row-skeleton: a row's loading shape (a round, a title line, a shorter line under it), the height of the rows it
     stands for, so nothing jumps when they arrive.
   .vx-fab-reserve: a list that scrolls to the page's foot keeps room at its end for the round button floating there
     (the + or the phone's agent), so its last row can scroll clear of it.
   --vx-measure: the reading measure of a message or a post (about 70 characters a line); .vx-bubble reads it too. */
:root{--vx-pane-head-h:calc(var(--vx-h-field) + 2 * var(--vx-sp-2));--vx-measure:70ch;--vx-fab-reserve:calc(var(--vx-sp-6) + var(--vx-fab-size) + var(--vx-sp-4))}
.vx-pane-head{box-sizing:border-box;display:flex;align-items:center;gap:var(--vx-sp-2);block-size:var(--vx-pane-head-h);min-inline-size:0;padding-block:0;padding-inline:var(--vx-sp-3);border-block-end:1px solid var(--vx-hair)}
.vx-search-pair{display:flex;align-items:center;gap:var(--vx-sp-2);flex:1;min-inline-size:0}
.vx-search-pair>.vx-field{flex:1;min-inline-size:0}
.vx-search-pair>.vx-btn[data-icon]{flex:none;--vx-btn-r:var(--vx-r-sm)}   /* the same corner as the small field beside it (the lead: "the new chat button next to it is weird") */
@media (pointer:coarse){.vx-search-pair>.vx-btn[data-icon]{inline-size:var(--vx-h-field);block-size:var(--vx-h-field)}}
.vx-row-skeleton{display:flex;align-items:center;gap:var(--vx-sp-3);padding-block:var(--vx-row-pad-y)}
.vx-row-skeleton>.vx-skeleton:first-child{--w:var(--vx-row-icon-size);--h:var(--vx-row-icon-size);flex:none;border-radius:var(--vx-r-round)}
.vx-row-skeleton>span{flex:1;display:grid;gap:var(--vx-sp-1h)}
.vx-row-skeleton>span>.vx-skeleton{--h:var(--vx-sp-3)}
.vx-row-skeleton>span>.vx-skeleton+.vx-skeleton{--w:60%;--h:var(--vx-sp-2h)}
.vx-fab-reserve{padding-block-end:calc(var(--vx-fab-reserve) + env(safe-area-inset-bottom))}
.vx-measure{max-inline-size:var(--vx-measure)}
.vx-bubble{max-inline-size:min(70%,var(--vx-measure))}
/* ---- added for layout pass: the agent panel's chat under its rail ----
   tier 3: --vx-agent-short (the stage height under which Debate and Tools fold into More)
   The rail of shortcuts is a row of the panel under the head, at the content's start edge; the chat is the next row and
   takes the panel's whole content width (the same start line as the rail, the note and the prompt). It grows up from
   the prompt and stops a gap under the rail's last button, so nothing in the chat sits beside the rail and no width is
   kept for it below the rail (the lead, round 4: "it should take all the screen but only reach a certain point ... since
   the tool buttons are there"). On a short panel (under --vx-agent-short) the app folds its rarer shortcuts into More so
   the chat keeps room. */
:root{--vx-agent-short:760px}
.vx-agent-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.vx-agent-body>.vx-agent-rail{justify-self:start;inline-size:var(--vx-agent-rail-w)}
/* ---- added for layout pass: the type roles (the lead, 11 Nov: "doto figures only for kpi cards. i want to use the
   mono font for other figures and small text") ----
   tier 2: --vx-font-display --vx-font-small --vx-font-fig --vx-font-kpi
   Headings and body Inter (the app's page titles; --vx-font-display and --vx-font), small text JetBrains Mono
   (--vx-font-small: eyebrows, captions, help and meta lines, timestamps, pills, badges and counts) and every figure
   outside a KPI card JetBrains Mono (--vx-font-fig: .vx-num and the like); Doto only inside the KPI part (--vx-font-kpi).
   Arabic is IBM Plex Sans Arabic after each Latin face, never the system's font. */
:root{--vx-font-display:var(--vx-font);--vx-font-small:var(--vx-font-mono);--vx-font-fig:var(--vx-font-mono);--vx-font-kpi:var(--vx-font-num)}
.vx-eyebrow,.vx-caption,.vx-help,.vx-label>small,.vx-row-text>span,.vx-pill,.vx-badge{font-family:var(--vx-font-small)}
.vx-num{font-family:var(--vx-font-fig)}
:is(vx-kpi,.vx-kpi-row) .vx-num{font-family:var(--vx-font-kpi)}

/* ---- added for tasks: [data-empty-when-hidden] (a field draws no box while its only control is hidden) ----
   Opt in, exact: only a field that says so, and only while its direct input is hidden (.hidden or [hidden]). Pick a date's
   day box in New task is the one user. */
.vx-field[data-empty-when-hidden]:has(>input.hidden,>input[hidden]){display:none}

/* ---- added for layout pass: one form rhythm ----
   The kit's form wherever a label sits beside its control rather than around it (New task, Edit task, a project's sheet,
   Set up your organization, Org info's sheets): a .vx-form holds groups --vx-sp-4h apart; a .vx-form-group is one label,
   its control and its help or error, --vx-sp-2 apart, as a wrapping .vx-label spaces its field. Nothing in a group keeps
   a block margin of its own. Inside a kit form a multi-line field's text sits on the field's padding: a legacy
   textarea.field there draws none of its own (its 13px/14px doubled the field's). Scoped to .vx-form, so the composers
   and every other multi-line field keep theirs. Sign in and Activate take the same 8 and 18 on their own form gap (index.html). */
.vx-form-group{display:grid;gap:var(--vx-sp-2);align-content:start;min-inline-size:0}
.vx-form .vx-form-group>*{margin-block:0}
:where(.vx-form) .vx-field[data-multiline]>textarea.field{padding:0}
/* A form's status line (p.note: Write's "Sent", a save that failed) stands one form gap under the last group, as the
   groups do: the note's own 10px top margin doubled the gap. */
:where(.vx-form)>p.note{margin:0}

/* ---- added for layout pass: data that holds any words ----
   .vx-dl: a value never pushes its row past the card: the value column may shrink to nothing, a long website,
   description or unbroken name wraps anywhere, and the label column keeps its words. On a wide column the list stops
   at --vx-measure, so a label and its value are read together rather than across an empty middle.
   .vx-btn[data-wrap]: a block button whose label carries data (Join <organization> as <role>) wraps onto more lines,
   balanced and centred, the button growing from its own height; a plain block button keeps one line.
   .vx-code holding a link takes dir="ltr" in its markup, so an Arabic page never right-aligns or reorders a URL;
   VX.iso(text) (kit.js) wraps a name, email or organization put into a sentence so it keeps its own direction. */
.vx-dl{grid-template-columns:auto minmax(0,1fr);max-inline-size:var(--vx-measure)}
/* tier 3: --vx-dl-label: the label column of lists whose labels line up down a page across cards (Organization's
   Details, Workday, Plan and AI cost: grid-template-columns:var(--vx-dl-label) minmax(0,1fr)); a longer label wraps. */
:root{--vx-dl-label:200px}
.vx-dl>dd{min-inline-size:0;overflow-wrap:anywhere}
.vx-btn[data-wrap]{block-size:auto;min-block-size:var(--vx-btn-h);min-inline-size:0;padding-block:var(--vx-sp-2);white-space:normal;text-wrap:balance;text-align:center;line-height:1.3;overflow-wrap:anywhere}
.vx-code[dir="ltr"]{text-align:start;unicode-bidi:isolate}

/* ---- added for layout pass: words that act get a finger's reach ----
   .vx-links: a sentence holding links (Terms and Privacy Policy under sign in). Under a finger each link reaches --vx-h
   (44px) tall and at least as wide, by an invisible ::after centred on its words: the line does not move.
   .vx-btn[data-variant="link"][data-reach="up"]: a link on a field's label line (Forgot PIN?). Its reach runs up from
   the field's top edge and never over the field: the label line sits --vx-sp-2 above the field (the form group's
   rhythm), the link's padding stops there, and the rest of the 44px is taken above its words.
   Words that act as a link in a line ([role="link"] on an inline <b> or <span>: a task's name in a project's History)
   get the same reach (a name that wraps onto a second line keeps its two lines' height and a 44 reach at its start). */
@media (pointer:coarse){
  :is(.vx-links a,:not(a,button,.vx-btn)[role="link"]){position:relative}
  :is(.vx-links a,:not(a,button,.vx-btn)[role="link"])::after{content:"";position:absolute;inset-block:min(0px,calc((100% - var(--vx-h)) / 2));inset-inline:min(0px,calc((100% - var(--vx-h)) / 2))}
}
.vx-btn[data-variant="link"][data-reach="up"]{padding-block:calc(var(--vx-h) - 1lh - var(--vx-sp-2)) var(--vx-sp-2);margin-block:calc(var(--vx-sp-2) + 1lh - var(--vx-h)) calc(-1 * var(--vx-sp-2))}

/* ---- added for layout pass: one shape for a list with nothing to show ----
   Empty and failed are the same block, .vx-empty, in the slot the list's rows take: a title line (<b>), the reason
   under it (<p>), and, for a failure (role="alert"), Try again as a small secondary button after the words. It is a
   .vx-card only where nothing under it is already a surface: inside a card, a panel or a split's pane it draws no
   second card (never a card in a card). VX.stateBlock(host, {...}) (kit.js) draws it and makes that choice; data-size
   "list" gives the start-aligned list size where the view's rows are short. While a list loads it shows the shape of
   what will land (.vx-row-skeleton rows for rows, a board's columns for a board), never a card where a row will be. */
.vx-empty>.vx-btn{margin-block-start:var(--vx-sp-1h)}
:is(.vx-card,.vx-panel,.vx-well) .vx-empty.vx-card{border-color:transparent;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}

/* ---- added for layout pass: .vx-table[data-pin]: the pinned name keeps to its column, one first-column inset, an end cue ----
   tier 3: --vx-pin-max (the pinned column's widest: 40% of the card)
   A pinned name and the line under it stop at --vx-pin-max and end in an ellipsis (kit.js titles a cut one), each read in
   its own direction (an Arabic name in an English table, an English email in an Arabic one) and aligned with the table,
   so one long name never pushes every figure out of the card. The first cell sits as far in from the card's start edge
   as a .vx-tr row's text does (the .vx-table grid's padding plus the row's; the last cell keeps its own, so a week
   that fit still fits), so moving between a day's rows and the
   week's table leaves the names where they were. While columns run past the card's end edge the table fades out at
   that edge (the tabs' fade, --vx-tabs-fade), and the fade goes as the last column comes into view (mirrored in Arabic;
   no fade where the table fits or without scroll timelines). A row-opening name (.vx-tr-open) reaches 44 under a finger
   however short its words. Each name is only as wide as its words, so one in the other script than the page's starts
   on the column's start edge with the rest.
   [data-hug] on a short table (a single day's four figures): the table is as wide as its columns, at the card's start,
   instead of spreading a few numbers across a wide card; once it runs past the card it scrolls as any other.
   .vx-table-skeleton: a pinned table's loading shape in the card it lands in: a head line and rows a --vx-pin-row-h
   tall, a name of two lines (at least --vx-pin-w) and five figures, so the table does not jump when it arrives. */
.vx-table[data-pin][data-hug]>table{inline-size:auto}
.vx-table-skeleton{display:grid;padding-block:var(--vx-sp-1h);padding-inline:var(--vx-sp-2)}
.vx-table-skeleton>span{display:grid;grid-template-columns:minmax(var(--vx-pin-w),2fr) repeat(5,minmax(0,1fr));align-items:center;gap:var(--vx-sp-4);
  block-size:var(--vx-pin-row-h);padding-inline:var(--vx-sp-3h) var(--vx-sp-2h);border-block-end:1px solid var(--vx-hair)}
.vx-table-skeleton>span:first-child{block-size:auto;padding-block:var(--vx-sp-3) var(--vx-sp-2)}
.vx-table-skeleton>span:last-child{border-block-end:0}
.vx-table-skeleton>span>.vx-skeleton{--h:var(--vx-sp-2h)}
.vx-table-skeleton>span>.vx-skeleton:first-child{--w:70%;--h:var(--vx-sp-3)}
.vx-table-skeleton>span:first-child>.vx-skeleton{--h:var(--vx-sp-2h);--w:60%}
:root{--vx-pin-max:40cqi}
.vx-table[data-pin]{container-type:inline-size}
.vx-table[data-pin] :is(thead,tbody,tfoot) th:first-child :is(b,small),.vx-table[data-pin] :is(thead,tbody,tfoot) th:first-child>span{display:block;inline-size:fit-content;max-inline-size:var(--vx-pin-max);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:plaintext;text-align:match-parent}
.vx-table[data-pin] tr>:is(th,td):first-child{padding-inline-start:calc(var(--vx-sp-2) + var(--vx-sp-3h))}
@property --vx-pin-fade{syntax:"<length>";inherits:false;initial-value:0px}
@keyframes vx-pin-cue{0%{--vx-pin-fade:var(--vx-tabs-fade);-webkit-mask-position:0 0;mask-position:0 0}88%{--vx-pin-fade:var(--vx-tabs-fade)}100%{--vx-pin-fade:0px;-webkit-mask-position:100% 0;mask-position:100% 0}}
@keyframes vx-pin-cue-rtl{0%{--vx-pin-fade:var(--vx-tabs-fade);-webkit-mask-position:100% 0;mask-position:100% 0}88%{--vx-pin-fade:var(--vx-tabs-fade)}100%{--vx-pin-fade:0px;-webkit-mask-position:0 0;mask-position:0 0}}
@supports (animation-timeline:scroll()){
  .vx-table[data-pin]>table{--_m:linear-gradient(to right,var(--vx-mask) calc(100% - var(--vx-pin-fade)),transparent);
    -webkit-mask:var(--_m) 0 0/100cqi 100% no-repeat;mask:var(--_m) 0 0/100cqi 100% no-repeat;animation:vx-pin-cue linear both;animation-timeline:scroll(nearest inline)}
  .vx-table[data-pin]>table:dir(rtl){--_m:linear-gradient(to left,var(--vx-mask) calc(100% - var(--vx-pin-fade)),transparent);animation-name:vx-pin-cue-rtl}
}

/* ---- added for layout pass: rows that hold a field, a callout's action, a section head's actions, a tab row's fit ----
   tier 3: --vx-callout-text-min
   .vx-btn[data-size="field"]: a button on a field's row (Show beside two dates, the photo button beside a prompt, Get
     code under a number) is the field's height, so the row has one height and one bottom edge; an icon one is square.
   .vx-callout with an action (.vx-btn): while its words keep --vx-callout-text-min the action stays at the end; in a
     narrower callout it goes under the words, at their start, instead of squeezing them into a column.
   .vx-section-head: the title takes the row and the actions sit after it, at the end; when the actions do not fit
     beside the title they move under it as one group at the inline start (a phone), never end-aligned on a row alone.
   .vx-tabs: whether a row fits is decided by measuring it once (kit.js): a row too long at the full padding is drawn
     snug (data-snug: the phone row's tighter padding and label size, no gap); one still too long scrolls with its edge
     fade (data-overflow). Under a finger a tab is at least 44 wide (a short label like "All" centred in it). */
:root{--vx-callout-text-min:24ch}
.vx-btn[data-size="field"]{block-size:var(--vx-h-field)}
.vx-btn[data-size="field"][data-icon]{inline-size:var(--vx-h-field)}
.vx-callout:has(>.vx-btn){flex-wrap:wrap;row-gap:var(--vx-sp-2h)}
.vx-callout:has(>.vx-btn)>div{flex:1 1 var(--vx-callout-text-min)}
/* (the callout keeps the dot's width and gap as start padding and pulls the dot back into it, so the words start there, a
   wrapped action starts under them and an action beside them sits one gap (--vx-sp-3) after them) */
.vx-callout:has(>.vx-btn){padding-inline-start:calc(var(--vx-sp-4) + var(--vx-sp-2) + var(--vx-sp-3))}
.vx-callout:has(>.vx-btn)::before{margin-inline-start:calc(-1 * (var(--vx-sp-2) + var(--vx-sp-3)))}
.vx-section-head{justify-content:flex-start}
.vx-section-head>:first-child{flex:1 1 auto;min-inline-size:0}
.vx-tabs[data-snug]{--vx-tabs-px:var(--vx-tabs-px-snug);--vx-tabs-fs:var(--vx-tabs-fs-snug);gap:0}
@media (pointer:coarse){.vx-tabs>:is(button,a){min-inline-size:var(--vx-h);justify-content:center}}

/* ---- added for layout pass: one tile size, one content width, ghost rows on the edge ----
   tier 3: --vx-tile-min --vx-content-max
   .vx-tiles: a grid of tiles or cards (Toolbox tools, Studio's cards, the admin hub, Projects' cards) as many to a row
     as fit at --vx-tile-min each, never fewer than one: three fit a 628px column, so a three-tile group never leaves an
     orphan beside an empty half row. A view's own grid reads the same token: repeat(auto-fill,minmax(min(100%,
     var(--vx-tile-min)),1fr)).
   .vx-content: a form, a settings list, a composer or a panel of words on a wide column stops at --vx-content-max at
     the column's start (pages fill the middle; the block is not centred), so a label and its control, or a line and its
     action, are read together rather than across an empty middle. Reading text inside keeps --vx-measure.
   [data-flush] on a row of ghost buttons: their words start on the column's edge, as the eyebrow and the field above
     them do (each button's start padding is the phone gutter, --vx-sp-4, and the row takes it back, so a button's box
     never runs past the screen's edge on a phone; a wrapped line starts there too).
   .vx-pill's gap between its dot and words is a step of the scale (--vx-sp-1h; it was 7px). */
:root{--vx-tile-min:200px;--vx-content-max:760px}
.vx-tiles{display:grid;gap:var(--vx-sp-3);grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--vx-tile-min)),1fr))}
.vx-tiles>*{min-inline-size:0}
.vx-content{max-inline-size:var(--vx-content-max)}
[data-flush]:has(>.vx-btn[data-variant="ghost"]){margin-inline-start:calc(-1 * var(--vx-sp-4))}
[data-flush]>.vx-btn[data-variant="ghost"]{padding-inline-start:var(--vx-sp-4)}
/* ---- added for layout pass: tiles that balance their last row ----
   [data-tile-balance] on a grid of tiles (the admin hub's five ways in): as many to a row as .vx-tiles fits (a
   --vx-tile-min tile and a --vx-sp-3 gap), but below five across the last row never leaves a tile alone or an empty
   slot: its tiles share the row (five go 3 + 2, the two wider; 2 + 2 + 1, the last across; four in three go 2 + 2).
   There the grid is twelve equal tracks and each tile spans its share; tiles with .hidden or [hidden] are not counted.
   The breakpoints are where .vx-tiles' auto-fill steps (2, 3, 4 and 5 tiles of 200 with their 12 gaps), so full rows
   keep the same widths. Where five fit (1048) the grid takes .vx-tiles' own tracks again, so the hub's five stand in one
   even row: a track is a twelfth of the grid below 1048 and --vx-tile-min from it (a grid's own width cannot pick its
   tracks in a container query, so the track's least width does the step; the 1048 in it is 5 x 200 + 4 x 12). */
[data-tile-balance]{container-type:inline-size;
  grid-template-columns:repeat(auto-fill,minmax(max(min(calc((100% - 11 * var(--vx-sp-3)) / 12 - .1px),var(--vx-tile-min)),min(var(--vx-tile-min),calc((100% - 1047.99px) * 100000))),1fr))}
[data-tile-balance]>*{grid-column:span 12;min-inline-size:0}
@container (412px <= width < 624px){
  [data-tile-balance]>*{grid-column:span 6}
  [data-tile-balance]:has(>:nth-child(odd of :not(.hidden,[hidden])):nth-last-child(1 of :not(.hidden,[hidden])))>:nth-last-child(1 of :not(.hidden,[hidden])){grid-column:span 12}
}
@container (624px <= width < 836px){
  [data-tile-balance]>*{grid-column:span 4}
  [data-tile-balance]:has(>:nth-child(3n+1 of :not(.hidden,[hidden])):nth-last-child(1 of :not(.hidden,[hidden])))>:nth-last-child(-n+4 of :not(.hidden,[hidden])),
  [data-tile-balance]:has(>:nth-child(3n+2 of :not(.hidden,[hidden])):nth-last-child(1 of :not(.hidden,[hidden])))>:nth-last-child(-n+2 of :not(.hidden,[hidden])){grid-column:span 6}
}
@container (836px <= width < 1048px){
  [data-tile-balance]>*{grid-column:span 3}
  [data-tile-balance]:has(>:nth-child(4n+1 of :not(.hidden,[hidden])):nth-last-child(1 of :not(.hidden,[hidden])))>:nth-last-child(-n+5 of :not(.hidden,[hidden])),
  [data-tile-balance]:has(>:nth-child(4n+3 of :not(.hidden,[hidden])):nth-last-child(1 of :not(.hidden,[hidden])))>:nth-last-child(-n+3 of :not(.hidden,[hidden])){grid-column:span 4}
  [data-tile-balance]:has(>:nth-child(4n+1 of :not(.hidden,[hidden])):nth-last-child(1 of :not(.hidden,[hidden])))>:nth-last-child(-n+2 of :not(.hidden,[hidden])),
  [data-tile-balance]:has(>:nth-child(4n+2 of :not(.hidden,[hidden])):nth-last-child(1 of :not(.hidden,[hidden])))>:nth-last-child(-n+2 of :not(.hidden,[hidden])){grid-column:span 6}
}
@container (1048px <= width){
  [data-tile-balance]>*{grid-column:auto}
}

/* ---- added for layout pass: one sheet system ----
   A kit select the app draws as its menu button (a .vx-select-native that also carries the older .field, so the button
   gets .verser-select in its classic look) keeps the kit select's size, inset, edge, fill and type: 48 tall like the
   .vx-field beside it in the same form, not the older field's 52. The rest of the rhythm is in sheet.css. */
.vx-select-native.verser-select{
  --verser-field-height:var(--vx-h-field);--verser-field-radius:var(--vx-r-md);--verser-field-padding-inline:var(--vx-sp-4);
  --verser-field-fill:var(--vx-card);--verser-field-border:var(--vx-hair);--verser-field-font-size:var(--vx-fs-10);
  min-block-size:var(--vx-h-field);border-radius:var(--vx-r-md);font-size:var(--vx-fs-10)
}

/* ---- added for layout pass: a page title of any length, a page's block rhythm, a menu chip's least width ----
   A page head's title (a record's name on its own page: a deal, a person, an agent) is said once and always readable:
   under a finger, where no tooltip can be reached, it shows every line; with a mouse it shows at most three lines and
   ends in an ellipsis, and while it is cut its title says it in full (kit.js). A word with no break in it (a link)
   breaks rather than leaving the head. Its icon stays on the first line: the icon and the
   title's first line are both centred in the head's line (--vx-page-head-line), so one line looks as before and a
   wrapped title keeps its icon beside its first words, not halfway down the block (a title with a subtitle under it, in
   a block of its own, keeps the head as it was)
   --vx-page-block-gap: the space between a page's blocks under its head (cards, lists, panels): one step on every page.
   A menu chip never gets narrower than --vx-chip-menu-min-w (or its row): its choice stays readable, cut with an
   ellipsis and said in full in its title (kit.js). */
:root{--vx-page-block-gap:var(--vx-sp-4);--vx-chip-menu-min-w:calc(var(--vx-sp-9) * 2)}
.vx-page-head .vx-page-head-title h2{overflow-wrap:anywhere}
@media (pointer:fine){.vx-page-head .vx-page-head-title h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}}
.vx-page-head>.vx-page-head-title:has(>svg,>vx-icon):has(>h2){align-items:flex-start}
.vx-page-head-title:has(>svg,>vx-icon):has(>h2)>:is(svg,vx-icon){margin-block-start:calc((var(--vx-page-head-line) - var(--vx-page-head-icon)) / 2)}
.vx-page-head .vx-page-head-title:has(>svg,>vx-icon)>h2{margin-block-start:max(0px,(var(--vx-page-head-line) - 1lh) / 2)}
.vx-chip[data-variant="menu"]{min-inline-size:min(100%,var(--vx-chip-menu-min-w))}

/* ---- added for layout pass: a sheet's list of actions, a file name that keeps its end, rows that scroll sideways ----
   A sheet of actions or places (a file's Move, Share, Delete; Drive's departments; a meeting row's ⋯) is a .vx-rows of
   button.vx-row: the kit's row icon, its title, the rows' hairlines; [data-tone="danger"] on a row is a destructive one
   (Delete), its words and icon in the danger ink.
   .vx-fname: a name on one line that keeps its end: <b class="vx-fname"><span>Budget 2026 final</span><span>.xlsx</span></b>.
   The first part ends in an ellipsis, the extension never does; a cut name says itself in full in its title (kit.js).
   A row that scrolls sideways ([data-scroll-cue], and every .vx-filter-chips row) fades at the side that has more,
   from its own scroll position (as the tab rows: no script), in the reading direction; a row that fits has no fade.
   Where the rows are written by someone else and their attributes are cleaned away (a document's tables), the block
   that holds them takes data-scroll-cue-tables instead and every <table> in it that scrolls sideways gets the cue.
   .vx-crumbs: a crumb is 44 under a finger. */
.vx-row[data-tone="danger"],.vx-row[data-tone="danger"] .vx-row-text>b,.vx-row[data-tone="danger"] .vx-row-icon{color:var(--vx-danger-text)}
.vx-fname[class]{display:flex;min-inline-size:0;max-inline-size:100%}   /* [class]: over an older list's own b{display:block} */
.vx-fname>span:first-child{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vx-fname>span+span{flex:none;white-space:nowrap}
@supports (animation-timeline:scroll()){
  :is([data-scroll-cue],.vx-filter-chips[data-overflow],[data-scroll-cue-tables] table){
    --_cue:linear-gradient(to right,transparent 0,var(--vx-mask) var(--vx-tabs-fade-s),var(--vx-mask) calc(100% - var(--vx-tabs-fade-e)),transparent 100%);
    -webkit-mask-image:var(--_cue);mask-image:var(--_cue);animation:vx-tabs-fade linear both;animation-timeline:scroll(self inline)
  }
  :is([data-scroll-cue],.vx-filter-chips[data-overflow],[data-scroll-cue-tables] table):dir(rtl){--_cue:linear-gradient(to left,transparent 0,var(--vx-mask) var(--vx-tabs-fade-s),var(--vx-mask) calc(100% - var(--vx-tabs-fade-e)),transparent 100%)}
}
@media (pointer:coarse){.vx-crumbs :is(a,button){display:inline-flex;align-items:center;min-block-size:var(--vx-h)}}

/* ---- added for layout pass: a help or error line has no margins of its own ----
   A <p class="vx-help"> or <p class="vx-error"> drops the browser's paragraph margins (1em above and below, off the
   scale): the space around it is its group's gap or its view's own step. Written with :where(p), so a view that gives
   one its own margin (a subtitle's step under its title) keeps it. */
:where(p):is(.vx-help,.vx-error){margin:0}

/* ---- added for layout pass: a side pane that ends above the round button ----
   tier 3: --vx-pane-top (where the pane sticks; default --vx-sp-4) --vx-fab-lift (how far an app stands its + up from
   its usual place, as over a folded agent box; default 0)
   [data-pane-fit] on a desktop page's sticky side pane (an inbox item, a file's preview): it is never taller than the
   window less its top and less --vx-fab-reserve and --vx-fab-lift, so the page's + (and the folded agent box under it)
   never sits on its words or its buttons; past that the pane scrolls inside. Its top is the lower of where it sticks
   and where it starts on the page, under its page's head (--vx-pane-at, set by kit.js), so it ends above the + before
   the page scrolls as well as after. */
@media (min-width:720px) and (min-height:501px),(min-width:720px) and (pointer:fine){
  [data-pane-fit]{max-block-size:calc(100dvh - max(var(--vx-pane-top,var(--vx-sp-4)),var(--vx-pane-at,0px)) - var(--vx-fab-reserve) - var(--vx-fab-lift,0px));overflow-y:auto;overscroll-behavior:contain}
}

/* ---- added for the final kit batch: a segmented switch in a page head ----
   A .vx-seg in a page head (Projects' Cards | Board) stands as tall as the chips and small buttons beside it, the head's
   one line (--vx-chip-h), under a mouse; under a finger its buttons keep the 44 reach. */
@media (pointer:fine){.vx-page-head .vx-seg{--vx-seg-h:calc(var(--vx-chip-h) - 2 * var(--vx-sp-1))}}

/* ---- added for the final kit batch: one page head on every page, a panel head's small action, the chip strip's end ----
   A page's title head (a .vx-page-head with its title block) is as tall and stands as far from the page's top and from
   what follows on every page, whether or not it has a control at its end and whether it sits straight in its screen or
   in a block of it (Studio's library): the screen's own head rule (44 tall, 2 over it, 12 under it) now holds for all.
   A panel head of an eyebrow and a small button (Organization info's Edit) stays the eyebrow's height: the button's extra height
   overlaps the space around the head instead of pushing the panel's first line down, under a mouse and under a finger.
   A chip strip keeps its focus ring's room at its start and ends on its column's edge: the room and the margin that gave
   it back at its end pushed the strip a step past its column, and the screen ran that step wider than the window. The
   chips stand where they did. */
:root{--vx-eyebrow-line:calc(var(--vx-fs-6) * 1.3)}
.vx-page-head:has(>.vx-page-head-title){min-block-size:var(--tap-min);margin-block:var(--vx-sp-0h) var(--vx-sp-3)}
.vx-panel-head:has(>.vx-eyebrow:first-child+.vx-btn[data-size="sm"]:last-child)>.vx-btn[data-size="sm"]{margin-block:calc((var(--vx-eyebrow-line) - var(--vx-btn-h-sm)) / 2)}
.vx-filter-chips{padding-inline-end:0;margin-inline-end:0;scroll-padding-inline:var(--vx-sp-1)}
/* A strip that fits (kit.js marks data-overflow only while its chips run past its end) is no scroller and has no fade,
   so its chips' focus rings are never cut and it keeps its size; one that scrolls keeps its focus ring's room inside
   (a zero-wide end whose margin leaves 4 after the gap), so it still ends on its column's edge and the page is no wider. */
.vx-filter-chips:not([data-overflow]){overflow:visible;-webkit-mask-image:none;mask-image:none}
.vx-filter-chips[data-overflow]::after{content:"";flex:none;inline-size:0;margin-inline-start:calc(var(--vx-sp-1) - var(--vx-filter-bar-gap))}

/* ---- added for the final kit batch (E, F): a group's heading inside a panel ----
   .vx-subhead: the heading of a group inside a panel that already has its eyebrow (calendar's Today and Upcoming under
   "Today and upcoming", agent tools' "Basic tools" under "Agent tools"). The nav's group heading in a panel: the eyebrow's
   face, weight and colour one step smaller, so the panel's own heading stays the first thing read. */
.vx-subhead{display:block;margin:0;font:var(--vx-fw-semibold) var(--vx-fs-4)/1.3 var(--vx-font-small);color:var(--vx-ink-3)}

/* ---- added for the final kit batch (E, F): a button's icon side ----
   tier 3: --vx-btn-px-icon
   A button with an icon and words (Newer, Older, Back to list) takes less room on the icon's side, the icon's own space
   standing in for the rest: a pager's two buttons leave room for "1–20 of 99,999" on one line. An icon button
   ([data-icon]) keeps its square. */
:root{--vx-btn-px-icon:var(--vx-sp-3)}
/* At the specificity of the button's own padding (one class; the small size's two), so a view's or a kit part's own
   padding (an icon-only Hub tool, a [data-flush] row's ghost button) still wins. */
.vx-btn:where(:not([data-icon]):has(>:is(svg,vx-icon):first-child:not(:last-child))),
.vx-btn[data-size=sm]:where(:not([data-icon]):has(>:is(svg,vx-icon):first-child:not(:last-child))){padding-inline-start:var(--vx-btn-px-icon)}
.vx-btn:where(:not([data-icon]):has(>:is(svg,vx-icon):last-child:not(:first-child))),
.vx-btn[data-size=sm]:where(:not([data-icon]):has(>:is(svg,vx-icon):last-child:not(:first-child))){padding-inline-end:var(--vx-btn-px-icon)}

/* ---- added for the final kit batch (E, F): the upload tray's width ----
   tier 3: --vx-tray-w (Drive's upload tray on a desktop, desktop.css) */
:root{--vx-tray-w:380px}

/* ---- added for the final kit batch (E, F): a file input in a field ----
   A file picker drawn as a field (input[type=file].field: New document from a file, a staff import, an HR letter) stands
   as tall as the fields round it, its Choose button a small control's height in the field's middle and the file's name
   on the same line, instead of both sitting on the field's top edge. The button keeps the browser's own look. */
input[type="file"].field{box-sizing:border-box;padding-block:calc((var(--verser-field-height,var(--vx-h-field)) - var(--vx-h-sm)) / 2 - 1px)}
input[type="file"].field::file-selector-button{box-sizing:border-box;block-size:var(--vx-h-sm);margin-block:0;vertical-align:middle}
