/*
 * FriedLiver design tokens, Design System v2 "Beacon": the only file that holds raw colours, sizes,
 * shadows, blur and motion curves. Spec: ~/code/FriedLiver-Code-design/COMPONENTS.md v2 (§1 tokens;
 * mirrored in docs/design/COMPONENTS.md).
 *
 * Colours are the editor theme's own --vscode-* keys, each with its FriedLiver Dark (v2) value as the
 * fallback, so FriedLiver Light, the older FriedLiver themes, VS Code's 2026 themes and High Contrast
 * all follow the theme. The palette is designed in OKLCH (extensions/friedliver-theme/palette.json,
 * the source of truth; the hex here is what the theme generator writes). components.css builds every
 * control from these; webview.css (layout) may only read them (test/designSystem.test.ts enforces it).
 *
 * v2 keeps every v1 token name (B2 migrates components onto the new families without breaking a
 * stylesheet in between) and adds: --accent-bg/-fg/-hover/-press (the one accent), --r-10/-14 and the
 * --r-float/--r-dialog families, the type ramp in px (--t-xs…--t-display) with tracking, --sp-10/-12,
 * --rim (the glass edge light), the springs (--spring-snap/--spring-pop), --press-scale and the
 * --dur-out hover trail.
 */

/* tokens:start */
:root {
  /* Surfaces: 60% page, 30% raised content, floating layers above. v3 "Mono": neutral black and grey, OKLCH
     with zero chroma (dark): page .195, input .235, float .245, code .155, shell .15 (the workbench chrome
     and the details zones; webviews sit on the page). */
  --bg: var(--vscode-editor-background, #151515);
  --input-bg: var(--vscode-input-background, #1e1e1e);
  /* A field's edge reads 3:1 on the page (WCAG 1.4.11). */
  --field-border: color-mix(in srgb, var(--fg-2) 55%, transparent);
  --thumb: #ffffff;
  --menu-bg: var(--vscode-menu-background, #232323);
  --dialog-bg: var(--vscode-editorWidget-background, #232323);
  --code-bg: var(--vscode-textCodeBlock-background, #0f0f0f);
  --inline-code-bg: var(--vscode-textPreformat-background, #202020);
  --tool-bg: var(--bg);
  /* State fills are the strong text colour at a low alpha, so they read on every surface they land on. */
  --sel-bg: var(--vscode-list-activeSelectionBackground, #fbfbfb1c);
  --hover-bg: color-mix(in srgb, var(--sel-fg) 6%, transparent);
  --ghost-hover: color-mix(in srgb, var(--sel-fg) 8%, transparent);
  --pill-bg: color-mix(in srgb, var(--fg) 9%, transparent);
  --pill-hover: color-mix(in srgb, var(--fg) 14%, transparent);
  --pill-active: color-mix(in srgb, var(--fg) 19%, transparent);
  /* A selected segment: a raised chip in both themes (dark: the float tone; light: white). */
  --seg-on: var(--menu-bg);
  --chip-bg: color-mix(in srgb, var(--input-bg) 85%, var(--fg-2));
  --overlay: #000000b3;
  /* Glass: floating surfaces only (menus, popovers, palette, toasts, sheets, dialogs). Off in High
     Contrast and under prefers-reduced-transparency, where the alpha goes to 100%. */
  --glass-alpha: 78%;
  --glass-bg: color-mix(in srgb, var(--menu-bg) var(--glass-alpha), transparent);
  --glass-dialog-bg: color-mix(in srgb, var(--dialog-bg) var(--glass-alpha), transparent);
  --glass-blur: blur(24px) saturate(160%);
  /* The glass edge light: a 1px inner highlight along a floating surface's top edge (dark only). */
  --rim: inset 0 1px 0 0 #ffffff12;

  /* Lines: one hairline weight; containers 10% of the text colour, rows 6%. */
  --border: var(--vscode-inlineChatInput-border, var(--vscode-input-border, var(--vscode-widget-border, #262626)));
  --hairline: color-mix(in srgb, var(--border) 60%, transparent);
  --dialog-border: color-mix(in srgb, var(--sel-fg) 12%, transparent);
  --option-ring: #ffffff1a;
  /* Every control's border: none you can see, except in High Contrast (the theme's contrast border). */
  --ctl-border: transparent;
  --ctl-border-active: transparent;
  /* High Contrast draws selection and hover as outlines (fills are off there). */
  --sel-outline: none;
  /* Selected rows, tabs and nav items carry a 2px leading bar in the strong text colour (3:1+ on every surface). */
  --sel-bar: inset 2px 0 0 var(--sel-fg);
  --hover-outline: none;
  --line: 1px;
  --line-half: 0.5px;

  /* Text: five colours. OKLCH (dark) .975 / .925 / .735 / .62 */
  --sel-fg: var(--vscode-list-activeSelectionForeground, #fbfbfb);
  --fg: var(--vscode-foreground, #e9e9e9);
  --fg-2: var(--vscode-descriptionForeground, #adadad);
  --fg-50: color-mix(in srgb, var(--fg) 62%, transparent);
  --placeholder: var(--vscode-input-placeholderForeground, #888888);
  --disabled: var(--vscode-disabledForeground, #888888);
  --link: var(--vscode-textLink-foreground, #67b0f9);
  --inline-code-fg: var(--vscode-textPreformat-foreground, #c7c7c7);

  /* The one accent (v3 "Mono"): white with black ink in dark (oklch .94, 16:1), black with white ink in light
     (oklch .2, 18:1). It marks the next key action on a surface (the one primary, the composer's send when
     there is something to send) and the "on" of a switch or checkbox. Status, focus and links never take
     it; the FriedLiver mark keeps its own --brand orange and is never a control. */
  --accent-bg: var(--vscode-button-background, #ebebeb);
  --accent-fg: var(--vscode-button-foreground, #0a0a0a);
  --accent-hover: var(--vscode-button-hoverBackground, #ffffff);
  --accent-press: color-mix(in srgb, var(--accent-bg) 88%, var(--bg));
  --accent: var(--fl-accent, var(--accent-bg));
  --send-bg: var(--fl-accent, var(--accent-bg));
  --send-fg: var(--accent-fg);
  --focus-border: var(--vscode-focusBorder, #e4e4e4);
  /* Switches, checkboxes and radios take the accent when on, with a white knob or check (every platform's convention). */
  --button-bg: var(--accent-bg);
  --button-fg: var(--accent-fg);
  --error: var(--vscode-errorForeground, #f86970);
  --warn: var(--vscode-editorWarning-foreground, #f1bf5b);
  --toggle-on: var(--button-bg);
  /* A switch's knob when on: the accent's own ink (black on the white accent in dark, white on black in light). */
  --toggle-thumb: var(--accent-fg);
  --effort-fill: var(--vscode-inputOption-activeBorder, #353535);
  /* The one primary per surface is the accent. */
  --primary-bg: var(--accent-bg);
  --primary-fg: var(--accent-fg);
  /* Tints: a tone at 14% (rest) and 22% (hover) over whatever is under it. */
  --tint: 14%;
  --tint-hover: 22%;
  /* How much of a tone its text keeps (the rest is --fg), so toned text reads 4.5:1 on its tint: 75% dark, 40% light. */
  --tone-ink: 75%;
  /* The composer's mic: a bare glyph at rest; while it listens, the brand-blue pill (#0078d4, white 4.53:1). */
  --mic-idle: #fff;
  --mic-bg: #0078d4;
  --mic-hover: #026ec1;
  --mic-fg: #fff;
  /* "Needs you" and links: the decision blue, oklch(.74 .13 250) dark / (.53 .16 256) light, in small marks
     only (the bullseye, a count, a link); it never fills a button or rings a card. Keyboard focus is a
     neutral ring (focusBorder, oklch(.88 .005 60) dark / (.3 .006 70) light), 3:1 on every surface and on
     the accent fill, so it never reads as an error or a selection. */
  --decision: var(--vscode-friedliver-decision, var(--vscode-notificationsInfoIcon-foreground, var(--vscode-charts-blue, #67b0f9)));
  --decision-fg: var(--vscode-friedliver-decisionForeground, var(--bg));
  --decision-soft: color-mix(in srgb, var(--decision) 12%, transparent);
  --decision-line: color-mix(in srgb, var(--decision) 50%, transparent);
  /* Focus rings drop the theme's transparency so they stay visible on any surface. */
  --focus: rgb(from var(--focus-border) r g b / 1);
  --focus-w: 2px;
  --focus-off: 2px;
  --focus-halo: 0 0 0 3px color-mix(in srgb, var(--focus) 24%, transparent);

  /* Status (COMPONENTS.md v2 §2.23; owner, 2026-10-20): working is the neutral --fg-2 on an open arc that
     turns; green is kept for done and success; needs-you blue; failed
     red. Each also has its own shape: needs-you a bullseye, working an open arc, done a check, failed ⊗,
     idle a hollow ring, so colour is never the only signal (WCAG 1.4.1). */
  --status-working: var(--fg-2);
  --status-done: var(--vscode-charts-green, #67d283);
  --status-failed: var(--error);
  --status-waiting: var(--decision);
  --dot-idle: color-mix(in srgb, var(--fg-2) 45%, transparent);
  --tl-success: var(--vscode-charts-green, #67d283);
  --tl-default: var(--fg-2);
  --added: var(--vscode-gitDecoration-addedResourceForeground, #67d283);
  --removed: var(--vscode-gitDecoration-deletedResourceForeground, #f86970);
  --recording: var(--vscode-charts-blue, #67b0f9);

  /* Agents */
  --hue-claude: var(--vscode-friedliver-agentClaude, var(--vscode-charts-orange, #ebaf86));
  --hue-codex: var(--vscode-friedliver-agentCodex, var(--vscode-charts-green, #8bd9c9));
  --hue-gemini: var(--vscode-friedliver-agentGemini, var(--vscode-charts-blue, #a9b6f5));
  --hue-demo: var(--fg-2);
  /* The agents' logos in their vendors' colours (ui/logos.ts). OpenAI's mark is monochrome: the text colour. */
  --logo-claude: #d97757;
  --logo-openai: var(--fg);
  --logo-gemini: #8e75b2;
  /* GitHub's marks are monochrome too. */
  --logo-github: var(--fg);
  /* The FriedLiver mark only (oklch .72 .14 52 dark / .62 .15 48 light): never a control, never a status. */
  --brand: #e2884f;

  /* Type: Geist for the UI, Geist Mono for code (both OFL, bundled). One base size (Cmd/Ctrl + = - 0
     scales --fl-font-size), em steps for components, px steps for page-level type. */
  --font: var(--vscode-chat-font-family, 'Geist', system-ui, sans-serif);
  --mono: var(--vscode-editor-font-family, 'Geist Mono', ui-monospace, monospace);
  --fl-font-size: var(--vscode-chat-font-size, 13px);
  --fs: var(--fl-font-size);
  --fs-mono: var(--vscode-editor-font-size, 12px);
  /* The em steps compound when components nest (a pill in a small button in a step row); the floor keeps
     the smallest text at 10px instead of letting it fall to 8.5. */
  --t-min: 10px;
  --t-100: 1em;
  --t-90: max(0.9em, var(--t-min));
  --t-85: max(0.85em, var(--t-min));
  --t-80: max(0.8em, var(--t-min));
  --t-75: max(0.75em, var(--t-min));
  --t-xs: 11px;
  --t-sm: 12px;
  --t-md: 13px;
  --t-lg: 14px;
  /* A view's title (a chat's head, a discussion's sides). */
  --t-lead: 15px;
  --t-title: 16px;
  /* A conclusion's headline (/discuss §2.30) and a page title (settings, welcome sections). */
  --t-hero: 20px;
  --t-display: 28px;
  --t-touch: 16px;
  /* Tracking: 0 at 13px and below; titles tighten (Geist's display optics). */
  --track-0: 0;
  --track-title: -0.011em;
  --track-display: -0.022em;
  --w-regular: 400;
  --w-medium: 500;
  --w-strong: 600;
  --w-bold: 700;
  --lh: 1.5;
  --lh-tight: 1.2;
  --lh-code: 1.6;

  /* Shape (the 4px grid; concentric: inner radius = outer − inset) */
  --r-1: 1px;
  --r-3: 3px;
  --r-4: 4px;
  --r-5: 5px;
  --r-6: 6px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-14: 14px;
  --r-pill: 9999px;
  --r-round: 50%;
  /* Families (COMPONENTS.md v2 §1.4): controls and rows r6, containers r10, floating r12, dialogs and the palette r14. */
  --r-ctl: var(--r-6);
  --r-row: var(--r-6);
  --r-box: var(--r-10);
  --r-float: var(--r-12);
  --r-dialog: var(--r-14);
  --sp-half: 2px;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  /* Control heights: 2xs counts, xs pills, sm dense rows, md the composer's 26, lg one call to action and palette rows, touch the phone. */
  --h-2xs: 16px;
  --h-xs: 18px;
  --h-sm: 22px;
  --h-md: 26px;
  --h-lg: 32px;
  /* Palette and welcome list rows (two-part rows: a title and its context). */
  --h-xl: 40px;
  --h-touch: 44px;
  /* Icon boxes: the glyph's square. Stroke is 1.5px at every size (vector-effect: non-scaling-stroke). */
  --i-xs: 12px;
  --i-sm: 14px;
  --i-md: 16px;
  --i-lg: 20px;
  --i-xl: 24px;
  --i-stroke: 1.5px;
  /* Layout spacing: the chat's side gutter (16 when narrow), the tab strip, and the space above a new turn. */
  --gutter: 20px;
  --tab-h: 32px;
  /* A chat tab's widths (§2.18 Fit; TAB_MIN in src/shared/view.ts). */
  --tab-max: 220px;
  /* /discuss (§2.30). */
  --discuss-who-w: 96px;
  --discuss-lane-h: 48px;
  --discuss-lane-h-compact: 40px;
  --discuss-marker: 28px;
  --discuss-tag-w: 168px;
  --tab-min: 112px;
  --tab-min-compact: 88px;
  --tab-open-min: 184px;
  --turn-gap: 8px;
  /* Floating widths (v2: tokens, not literals). */
  --w-tip: 280px;
  --w-menu: 380px;
  --w-toast: 400px;
  --w-dialog: 560px;
  --w-dialog-wide: 880px;
  --w-palette: 640px;

  /* v3 "Mono" zones (COMPONENTS.md §0.2). Every kind of place has its own tone, edge and type, so where
     you type, what you read, what the agent did and the details around it never look alike:
       prompt   the brightest, lifted box with a visible edge and a glow on focus: the one place you type;
       you      your messages: a raised bubble at the right, like every conversation you know;
       reply    the agent's words: no box, larger type and a longer line height, the thing you read;
       steps    what the agent did: small, secondary, on a hairline spine, out of reading's way;
       details  the context rail and the tab strip: recessed to the shell tone, eyebrow labels. */
  --zone-shell: var(--vscode-sideBar-background, #0b0b0b);
  --zone-prompt-bg: color-mix(in srgb, var(--sel-fg) 5%, var(--input-bg));
  --zone-prompt-edge: color-mix(in srgb, var(--sel-fg) 16%, transparent);
  --zone-prompt-edge-focus: color-mix(in srgb, var(--sel-fg) 42%, transparent);
  --zone-prompt-glow: 0 0 0 4px color-mix(in srgb, var(--sel-fg) 8%, transparent);
  --zone-prompt-lift: 0 -12px 32px -8px #000000cc, 0 2px 6px #00000066;
  --zone-prompt-fade: 40px;
  --zone-you-bg: color-mix(in srgb, var(--sel-fg) 10%, var(--bg));
  --zone-you-edge: color-mix(in srgb, var(--sel-fg) 8%, transparent);
  --zone-step-spine: color-mix(in srgb, var(--fg-2) 22%, transparent);
  --zone-needs-bar: inset 3px 0 0 var(--decision);
  --zone-ask-bar: inset 2px 0 0 var(--zone-prompt-edge-focus);
  --w-bubble: 80%;
  /* The longest line of running text on a full-width page: the page keeps its width, a paragraph stays readable. */
  --w-prose: 96ch;
  --r-bubble: 16px;
  --r-bubble-tail: 6px;
  /* Type per zone, all relative to the chat's base size (--fs, which Cmd/Ctrl + = - 0 scales): the prompt at
     the base, the reply one step up (two on a wide page), steps and details one step down, the details'
     section labels two steps down as eyebrows. */
  --t-prompt: var(--fs);
  --t-reply: calc(var(--fs) + 1px);
  --t-reply-wide: calc(var(--fs) + 2px);
  --lh-reply: 1.65;
  --t-step: calc(var(--fs) - 1px);
  --t-eyebrow: calc(var(--fs) - 2px);
  --track-eyebrow: 0.07em;
  --font-features: 'ss01', 'ss02', 'cv01', 'calt', 'kern';
  --font-features-mono: 'calt', 'liga', 'zero';

  /* Elevation: inline things are flat; floating surfaces lift, with a short contact shadow under a
     long ambient one. */
  --elev-0: none;
  --elev-1: 0 1px 2px #0000003d;
  --elev-2: 0 1px 2px #00000033, 0 4px 12px -2px #00000052;
  --elev-3: 0 2px 6px #00000040, 0 16px 40px -8px #00000080;
  --elev-4: 0 4px 12px #0000004d, 0 32px 80px -16px #00000099;
  --shadow-composer: var(--elev-1);
  --shadow-thumb: 0 1px 2px #0000004d;
  --shadow-ctx: var(--elev-2);
  --shadow-tip: 0 2px 8px #00000052;
  --shadow-sheet: 0 -8px 32px #00000066;
  --shadow-flash: 0 0 0 4px var(--focus);
  --shadow-flash-end: 0 0 0 4px transparent;
  /* The top-edge light on a filled button (primary, brand). */
  --sheen: inset 0 1px 0 #ffffff26;

  /* Layers */
  --z-content: 1;
  --z-sticky: 2;
  --z-sticky-open: 3;
  --z-footer: 6;
  --z-menu: 10;
  --z-composer: 20;
  --z-toast: 900;
  --z-overlay: 1000;
  --z-tip: 1100;

  /* Motion. Hover lights instantly and fades out over --dur-out (a short trail); presses scale to
     --press-scale; things that open spring in (snap: critically damped; pop: 1.5% overshoot), things
     that close fade out on --ease-out. Springs are damped-spring samples as CSS linear(). */
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 260ms;
  --dur-out: 120ms;
  --dur-spring: 240ms;
  --dur-pop: 340ms;
  --dur-hold: 600ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-linear: linear;
  /* stiffness 800, damping 57 (zeta 1.0) */
  --spring-snap: linear(0, 0.068, 0.209, 0.364, 0.506, 0.626, 0.722, 0.796, 0.852, 0.894, 0.925, 0.947, 0.963, 0.974, 0.982, 0.987, 0.991, 0.994, 0.996, 0.997, 1);
  /* stiffness 560, damping 38 (zeta 0.8, 1.5% overshoot) */
  --spring-pop: linear(0, 0.065, 0.209, 0.378, 0.539, 0.678, 0.789, 0.872, 0.93, 0.969, 0.993, 1.006, 1.013, 1.015, 1.014, 1.012, 1.009, 1.007, 1.005, 1.003, 1);
  --press-scale: 0.97;
  --rise: 6px;
  --open-scale: 0.98;
  --fade-menu: fadeIn 0.18s ease-out;
  --fade-banner: fadeIn 0.2s ease-out;
  --ease-toggle: 0.18s;
}
/* tokens:end */
@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
}
/* Light themes: shadows soften and gain a 1px ring, glass is denser, the rim light is off. */
body.vscode-light,
body.vscode-high-contrast-light {
  --option-ring: #0000001a;
  --decision-soft: color-mix(in srgb, var(--decision) 9%, transparent);
  --decision-line: color-mix(in srgb, var(--decision) 50%, transparent);
  /* A field's edge reads 3:1 on the page (WCAG 1.4.11). */
  --field-border: color-mix(in srgb, var(--fg-2) 72%, transparent);
  /* A white knob on the dark "on" track, ringed so it reads off a light page. */
  --thumb: #ffffff;
  --shadow-thumb: 0 0 0 1px #00000026, 0 1px 2px #00000029;
  --mic-idle: var(--fg);
  --brand: #c4622a;
  /* Neutral text at 62% lands at 4.48:1 on the light page; 66% keeps menu titles and key hints at 4.5:1+. */
  --fg-50: color-mix(in srgb, var(--fg) 66%, transparent);
  --rim: inset 0 0 0 0 transparent;
  --elev-1: 0 0 0 1px #0000000f, 0 1px 2px #0000000f;
  --elev-2: 0 0 0 1px #00000014, 0 4px 12px -2px #0000001f;
  --elev-3: 0 0 0 1px #00000014, 0 2px 6px #0000000f, 0 16px 40px -8px #00000033;
  --elev-4: 0 0 0 1px #00000014, 0 4px 12px #00000014, 0 32px 80px -16px #0000003d;
  --shadow-tip: 0 0 0 1px #00000014, 0 2px 8px #0000001f;
  --overlay: #00000047;
  --glass-alpha: 84%;
  --tone-ink: 40%;
  --seg-on: #ffffff;
  --zone-shell: var(--vscode-sideBar-background, #f5f5f5);
  --zone-prompt-bg: #ffffff;
  --zone-prompt-edge: color-mix(in srgb, var(--sel-fg) 18%, transparent);
  --zone-prompt-edge-focus: color-mix(in srgb, var(--sel-fg) 55%, transparent);
  --zone-prompt-glow: 0 0 0 4px color-mix(in srgb, var(--sel-fg) 7%, transparent);
  --zone-prompt-lift: 0 -8px 24px -10px #00000026, 0 1px 3px #0000001a;
  --zone-you-bg: color-mix(in srgb, var(--sel-fg) 6%, var(--bg));
  --zone-ask-bar: inset 2px 0 0 var(--zone-prompt-edge-focus);
  /* Derived tokens resolve where they are declared: restated here so they take this block's values. */
  --glass-bg: color-mix(in srgb, var(--menu-bg) var(--glass-alpha), transparent);
  --glass-dialog-bg: color-mix(in srgb, var(--dialog-bg) var(--glass-alpha), transparent);
}
/* Windows (and Linux): the platform layer. The host sets data-platform on the webview body; the workbench
   copy maps it to .monaco-workbench.windows/.linux. Fluent's corner ramp (4 controls, 8 surfaces) and an
   underline focus on fields. Keys render as one "Ctrl+Shift+A" cap (§2.25). */
body[data-platform='windows'],
body[data-platform='linux'] {
  --r-ctl: var(--r-4);
  --r-row: var(--r-4);
  --r-box: var(--r-8);
  --r-float: var(--r-8);
  --r-dialog: var(--r-8);
}
/* High Contrast: every control and container shows the theme's contrast border; the active one its
   active border. No glass, no shadows, no tints standing in for edges, no motion beyond fades. */
body.vscode-high-contrast,
body.vscode-high-contrast-light {
  --border: var(--vscode-contrastBorder, #6fc3df);
  --hairline: var(--border);
  --dialog-border: var(--border);
  --ctl-border: var(--border);
  --field-border: var(--border);
  --ctl-border-active: var(--vscode-contrastActiveBorder, #f38518);
  --focus: var(--vscode-contrastActiveBorder, var(--vscode-focusBorder, #f38518));
  --focus-halo: 0 0 0 0 transparent;
  /* Selection is the contrast border; only keyboard focus is the active (orange) border, 2px. */
  --sel-outline: 1px solid var(--border);
  --hover-outline: 1px dashed var(--ctl-border-active);
  --sel-bg: transparent;
  --hover-bg: transparent;
  --pill-bg: transparent;
  --pill-hover: transparent;
  --pill-active: transparent;
  --glass-alpha: 100%;
  --glass-blur: none;
  --rim: inset 0 0 0 0 transparent;
  --elev-1: none;
  --elev-2: none;
  --elev-3: none;
  --elev-4: none;
  --primary-bg: var(--fg);
  --primary-fg: var(--bg);
  --zone-prompt-edge: var(--border);
  --zone-prompt-edge-focus: var(--ctl-border-active);
  --zone-prompt-lift: none;
  --zone-prompt-glow: 0 0 0 0 transparent;
  --zone-you-edge: var(--border);
  --zone-you-bg: transparent;
  --zone-prompt-bg: var(--input-bg);
  --zone-shell: var(--bg);
  --zone-ask-bar: inset 2px 0 0 var(--zone-prompt-edge-focus);
  --seg-on: transparent;
  --ghost-hover: transparent;
  --press-scale: 1;
  /* Derived tokens resolve where they are declared: restated here so they take this block's values. */
  --glass-bg: color-mix(in srgb, var(--menu-bg) var(--glass-alpha), transparent);
  --glass-dialog-bg: color-mix(in srgb, var(--dialog-bg) var(--glass-alpha), transparent);
}
@media (prefers-reduced-transparency: reduce) {
  :root,
  body {
    --glass-alpha: 100%;
    --glass-blur: none;
    /* Derived tokens resolve where they are declared: restated here so they take this block's values. */
    --glass-bg: color-mix(in srgb, var(--menu-bg) var(--glass-alpha), transparent);
    --glass-dialog-bg: color-mix(in srgb, var(--dialog-bg) var(--glass-alpha), transparent);
  }
}
/* Reduced motion: springs and scale become plain fades; nothing travels. */
@media (prefers-reduced-motion: reduce) {
  :root,
  body {
    --spring-snap: linear;
    --spring-pop: linear;
    --press-scale: 1;
    --rise: 0px;
    --open-scale: 1;
    --dur-spring: 1ms;
    --dur-pop: 1ms;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise)) scale(var(--open-scale));
  }
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(340%);
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}
