/* Generated by scripts/assets/css.mjs from /website/styles.css. Do not edit; run npm run assets:css. */
/* /website/tokens/fonts.css */
/* Geist (SIL OFL 1.1). Static WOFF2, latin. Website uses no Geist Mono. */
@font-face { font-family: "Geist"; src: url("/website/assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/website/assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/website/assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Metric-matched fallback to limit layout shift while Geist loads (Batch 3, 04.02). */
@font-face { font-family: "Geist Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 22%; line-gap-override: 0%; }

/* /website/tokens/tokens.css */
/* Design system tokens. Generated from tokens.json, 21 Oct 2026; v1.1 additions 22 Oct 2026.
   Set on <html> before first paint (data-theme may also be set on any subtree; semantic and component tokens re-resolve there) (Match system is resolved by script):
     data-theme="light | dark"
     data-contrast="standard | more"
     data-density="compact | default | comfortable"   (also per view)
     data-motion="full | reduced"
   Forced colours and the reduced-motion fallback use media queries. */

:root, [data-theme] {
  color-scheme: light;
  /* color */
  --color-neutral-0: #FFFFFF;
  --color-neutral-25: #F5F8FA;
  --color-neutral-50: #EEF2F5;
  --color-neutral-100: #E4EAEE;
  --color-neutral-200: #D3DCE1;
  --color-neutral-300: #B6C2C9;
  --color-neutral-400: #93A1A9;
  --color-neutral-500: #5E6D76;
  --color-neutral-600: #4C5B64;
  --color-neutral-700: #3A4950;
  --color-neutral-800: #2B3941;
  --color-neutral-900: #1A2830;
  --color-neutral-925: #121F27;
  --color-neutral-950: #0B1A22;
  --color-neutral-975: #071116;
  --color-sky-50: #F2F8FE;
  --color-sky-100: #E6F1FC;
  --color-sky-200: #CDE5FA;
  --color-sky-300: #A9D6F8;
  --color-sky-400: #6FB2EC;
  --color-sky-500: #3289D9;
  --color-sky-600: #0A62B8;
  --color-sky-700: #0A5096;
  --color-sky-800: #0C3F75;
  --color-sky-900: #0D3158;
  --color-sky-950: #0A2039;
  --color-mint-50: #EFFCF7;
  --color-mint-100: #D3F6EA;
  --color-mint-200: #A8EDD6;
  --color-mint-300: #6FE2BF;
  --color-mint-400: #2FD3A4;
  --color-mint-500: #17B58A;
  --color-mint-600: #0A9170;
  --color-mint-700: #0A7A5C;
  --color-mint-800: #0B5F49;
  --color-mint-900: #0B4A3A;
  --color-mint-950: #062B22;
  --color-success-50: #EEF8F2;
  --color-success-100: #D6F0E0;
  --color-success-200: #B5E3C7;
  --color-success-300: #8FD3AB;
  --color-success-400: #70BE90;
  --color-success-500: #4AA470;
  --color-success-600: #16884F;
  --color-success-700: #0F6E40;
  --color-success-800: #0C5432;
  --color-success-900: #114128;
  --color-success-950: #0B2818;
  --color-warning-50: #FDF7EC;
  --color-warning-100: #F8EEDB;
  --color-warning-200: #F3DCB0;
  --color-warning-300: #EBC77F;
  --color-warning-400: #DEB165;
  --color-warning-500: #CB9645;
  --color-warning-600: #B7791F;
  --color-warning-700: #94600F;
  --color-warning-800: #7A5410;
  --color-warning-900: #573B0D;
  --color-warning-950: #342306;
  --color-danger-50: #FDF3F3;
  --color-danger-100: #FAE1E1;
  --color-danger-200: #F8C4C4;
  --color-danger-300: #F0A3A3;
  --color-danger-400: #E78685;
  --color-danger-500: #D66362;
  --color-danger-600: #C23B3B;
  --color-danger-700: #A12F2F;
  --color-danger-800: #7F2424;
  --color-danger-900: #601F1E;
  --color-danger-950: #3C1311;
  --color-viz-light-1: #0A62B8;
  --color-viz-light-2: #D86D16;
  --color-viz-light-3: #655901;
  --color-viz-light-4: #00A2AF;
  --color-viz-light-5: #7673DF;
  --color-viz-light-6: #8F2770;
  --color-viz-dark-1: #6FB2EC;
  --color-viz-dark-2: #FFC29E;
  --color-viz-dark-3: #B5A332;
  --color-viz-dark-4: #4AE9F9;
  --color-viz-dark-5: #8687DF;
  --color-viz-dark-6: #C770A8;
  --color-viz-orange-300: #F6C4A6;
  --color-viz-orange-500: #C96618;
  --color-viz-orange-700: #7F3B00;
  --color-alpha-ink-4: rgba(11, 26, 34, 0.04);
  --color-alpha-ink-8: rgba(11, 26, 34, 0.08);
  --color-alpha-ink-12: rgba(11, 26, 34, 0.12);
  --color-alpha-ink-16: rgba(11, 26, 34, 0.16);
  --color-alpha-ink-24: rgba(11, 26, 34, 0.24);
  --color-alpha-ink-40: rgba(11, 26, 34, 0.4);
  --color-alpha-ink-64: rgba(11, 26, 34, 0.64);
  --color-alpha-white-4: rgba(255, 255, 255, 0.04);
  --color-alpha-white-8: rgba(255, 255, 255, 0.08);
  --color-alpha-white-12: rgba(255, 255, 255, 0.12);
  --color-alpha-white-16: rgba(255, 255, 255, 0.16);
  --color-alpha-white-24: rgba(255, 255, 255, 0.24);
  --color-alpha-white-40: rgba(255, 255, 255, 0.4);
  --color-alpha-white-64: rgba(255, 255, 255, 0.64);
  --color-alpha-black-60: rgba(0, 0, 0, 0.6);
  /* font */
  --font-family-sans: Geist, "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: var(--font-family-sans); /* Website: no Geist Mono (30 Oct 2026). Kept as an alias so any stray use renders Geist. */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-size-2xs: 0.6875rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-md: 0.875rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-2xl: 1.25rem;
  --font-size-3xl: 1.5rem;
  --font-size-4xl: 1.875rem;
  --font-size-5xl: 2.25rem;
  --font-size-6xl: 3rem;
  --font-size-7xl: 3.75rem;
  --font-size-8xl: 4.5rem;
  --font-measure-narrow: 45ch;
  --font-measure-default: 65ch;
  --font-measure-wide: 75ch;
  /* space */
  --space-0: 0rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-0-5: 0.125rem;
  --space-1-5: 0.375rem;
  /* size */
  --size-control-xs: 24px;
  --size-control-sm: 28px;
  --size-control-md: 32px;
  --size-control-lg: 40px;
  --size-control-xl: 48px;
  --size-icon-12: 12px;
  --size-icon-16: 16px;
  --size-icon-20: 20px;
  --size-icon-24: 24px;
  --size-icon-32: 32px;
  --size-avatar-20: 20px;
  --size-avatar-24: 24px;
  --size-avatar-32: 32px;
  --size-avatar-40: 40px;
  --size-avatar-56: 56px;
  --size-avatar-80: 80px;
  --size-hit-target-pointer: 24px;
  --size-hit-target-touch: 44px;
  /* radius */
  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;
  /* border */
  --border-width-0: 0px;
  --border-width-1: 1px;
  --border-width-2: 2px;
  /* shadow */
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(11,26,34,0.06), 0 1px 1px rgba(11,26,34,0.04);
  --shadow-2: 0 4px 12px rgba(11,26,34,0.08), 0 1px 3px rgba(11,26,34,0.06);
  --shadow-3: 0 8px 24px rgba(11,26,34,0.1), 0 2px 6px rgba(11,26,34,0.06);
  --shadow-4: 0 16px 48px rgba(11,26,34,0.14), 0 4px 12px rgba(11,26,34,0.08);
  --shadow-5: 0 24px 64px rgba(11,26,34,0.18), 0 6px 16px rgba(11,26,34,0.1);
  --shadow-inset: inset 0 1px 2px rgba(11,26,34,0.08);
  /* blur */
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  /* breakpoint */
  --breakpoint-sm: 40rem;
  --breakpoint-md: 48rem;
  --breakpoint-lg: 64rem;
  --breakpoint-xl: 80rem;
  --breakpoint-2xl: 96rem;
  /* z */
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-overlay: 1200;
  --z-modal: 1300;
  --z-popover: 1400;
  --z-toast: 1500;
  --z-tooltip: 1600;
  /* icon */
  --icon-size-xs: var(--size-icon-12);
  --icon-size-sm: var(--size-icon-16);
  --icon-size-md: var(--size-icon-20);
  --icon-size-lg: var(--size-icon-24);
  --icon-size-xl: var(--size-icon-32);
  --icon-stroke-default: 1.5;
  --icon-stroke-display: 2;
  --icon-gap-sm: var(--space-1-5);
  --icon-gap-md: var(--space-2);
  --icon-signal-dot-size: 6px;
  --icon-signal-dot-ring: 2px;
  /* motion */
  --motion-duration-instant: 0ms;
  --motion-duration-fast: 100ms;
  --motion-duration-base: 150ms;
  --motion-duration-moderate: 200ms;
  --motion-duration-slow: 300ms;
  --motion-duration-slower: 500ms;
  --motion-duration-linger: 1600ms;
  --motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
  --motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
  --motion-easing-emphasised: cubic-bezier(0.05, 0.7, 0.1, 1);
  --motion-easing-linear: cubic-bezier(0, 0, 1, 1);
  --motion-distance-sm: 4px;
  --motion-distance-md: 8px;
  --motion-scale-enter: 0.98;
  --motion-scale-press: 0.98;
  --motion-delay-tooltip: 400ms;
  --motion-delay-stagger: 40ms;
  --motion-delay-highlight-hold: 400ms;
  --motion-loop-spin: 800ms;
  --motion-loop-shimmer: 1600ms;
  --motion-loop-pulse: 1200ms;
  --motion-loop-indeterminate: 1400ms;
  /* color */
  --color-text-primary: var(--color-neutral-950);
  --color-text-secondary: var(--color-neutral-600);
  --color-text-tertiary: var(--color-neutral-500);
  --color-text-disabled: var(--color-neutral-400);
  --color-text-inverse: var(--color-neutral-0);
  --color-text-link: var(--color-sky-600);
  --color-text-link-hover: var(--color-sky-700);
  --color-text-success: var(--color-success-700);
  --color-text-warning: var(--color-warning-800);
  --color-text-danger: var(--color-danger-700);
  --color-text-ai: var(--color-mint-700);
  --color-surface-canvas: var(--color-neutral-25);
  --color-surface-default: var(--color-neutral-0);
  --color-surface-sunken: var(--color-neutral-50);
  --color-surface-hover: var(--color-neutral-50);
  --color-surface-selected: var(--color-sky-100);
  --color-surface-inverse: var(--color-neutral-950);
  --color-surface-ai: var(--color-mint-50);
  --color-surface-success: var(--color-success-100);
  --color-surface-warning: var(--color-warning-100);
  --color-surface-danger: var(--color-danger-100);
  --color-surface-raised: var(--color-neutral-0);
  --color-surface-overlay: var(--color-neutral-0);
  --color-surface-pressed: var(--color-neutral-100);
  --color-surface-highlight: var(--color-sky-100);
  --color-surface-drop: var(--color-sky-50);
  --color-surface-scrim: var(--color-overlay-scrim);
  --color-border-subtle: var(--color-neutral-100);
  --color-border-default: var(--color-neutral-200);
  --color-border-strong: var(--color-neutral-300);
  --color-border-focus: var(--color-sky-600);
  --color-border-selected: var(--color-sky-600);
  --color-border-success: var(--color-success-300);
  --color-border-warning: var(--color-warning-300);
  --color-border-danger: var(--color-danger-600);
  --color-border-drop: var(--color-sky-600);
  --color-action-primary-bg: var(--color-neutral-950);
  --color-action-primary-bg-hover: var(--color-neutral-800);
  --color-action-primary-bg-pressed: var(--color-neutral-700);
  --color-action-primary-fg: var(--color-neutral-0);
  --color-action-secondary-bg: var(--color-neutral-0);
  --color-action-secondary-bg-hover: var(--color-neutral-50);
  --color-action-secondary-border: var(--color-neutral-200);
  --color-action-secondary-bg-pressed: var(--color-neutral-100);
  --color-action-danger-bg: var(--color-danger-600);
  --color-action-danger-bg-hover: var(--color-danger-700);
  --color-action-disabled-bg: var(--color-neutral-100);
  --color-action-disabled-fg: var(--color-neutral-400);
  --color-signal-live: var(--color-mint-400);
  --color-icon-default: var(--color-text-secondary);
  --color-icon-active: var(--color-text-primary);
  --color-icon-selected: var(--color-sky-600);
  --color-icon-muted: var(--color-text-tertiary);
  --color-icon-disabled: var(--color-text-disabled);
  --color-icon-on-accent: var(--color-neutral-0);
  --color-icon-success: var(--color-text-success);
  --color-icon-warning: var(--color-text-warning);
  --color-icon-danger: var(--color-text-danger);
  --color-icon-info: var(--color-text-link);
  --color-overlay-scrim: var(--color-alpha-ink-40);
  --color-overlay-protect: var(--color-alpha-ink-64);
  --color-overlay-hover: var(--color-alpha-ink-8);
  --color-overlay-pressed: var(--color-alpha-ink-12);
  --color-selection-bg: var(--color-sky-200);
  --color-selection-fg: var(--color-text-primary);
  --color-mark-bg: var(--color-warning-200);
  --color-mark-current: var(--color-warning-300);
  --color-mark-current-ring: var(--color-warning-600);
  --color-mark-fg: var(--color-text-primary);
  --color-mention-bg: var(--color-sky-100);
  --color-mention-fg: var(--color-sky-700);
  --color-chart-series-1: var(--color-viz-light-1);
  --color-chart-series-2: var(--color-viz-light-2);
  --color-chart-series-3: var(--color-viz-light-3);
  --color-chart-series-4: var(--color-viz-light-4);
  --color-chart-series-5: var(--color-viz-light-5);
  --color-chart-series-6: var(--color-viz-light-6);
  --color-chart-sequential-1: var(--color-sky-200);
  --color-chart-sequential-2: var(--color-sky-400);
  --color-chart-sequential-3: var(--color-sky-500);
  --color-chart-sequential-4: var(--color-sky-600);
  --color-chart-sequential-5: var(--color-sky-800);
  --color-chart-diverging-neg3: var(--color-viz-orange-700);
  --color-chart-diverging-neg2: var(--color-viz-orange-500);
  --color-chart-diverging-neg1: var(--color-viz-orange-300);
  --color-chart-diverging-mid: var(--color-neutral-100);
  --color-chart-diverging-pos1: var(--color-sky-300);
  --color-chart-diverging-pos2: var(--color-sky-500);
  --color-chart-diverging-pos3: var(--color-sky-700);
  --color-chart-grid: var(--color-neutral-100);
  --color-chart-axis: var(--color-neutral-300);
  --color-chart-label: var(--color-text-secondary);
  --color-chart-context: var(--color-neutral-300);
  --color-chart-other: var(--color-neutral-500);
  --color-chart-benchmark: var(--color-neutral-950);
  --color-chart-highlight: var(--color-chart-series-1);
  /* space */
  --space-inset-control: var(--space-1-5) var(--space-3);
  --space-inset-card: var(--space-4);
  --space-inset-card-web: var(--space-6);
  --space-inset-content: var(--space-6);
  --space-stack-field: var(--space-1);
  --space-stack-item: var(--space-3);
  --space-stack-group: var(--space-8);
  --space-stack-section: var(--space-12);
  --space-inline-icon: var(--space-2);
  --space-inline-item: var(--space-3);
  /* radius */
  --radius-control: var(--radius-md);
  --radius-container: var(--radius-lg);
  --radius-container-web: var(--radius-xl);
  --radius-pill: var(--radius-full);
  /* elevation */
  --elevation-card: var(--shadow-0);
  --elevation-hover: var(--shadow-1);
  --elevation-menu: var(--shadow-2);
  --elevation-popover: var(--shadow-3);
  --elevation-modal: var(--shadow-4);
  --elevation-toast: var(--shadow-5);
  --elevation-drag: var(--shadow-3);
  /* focus */
  --focus-width: 2px;
  --focus-offset: 2px;
  --focus-color: var(--color-sky-600);
  /* density */
  --density-control: 32px;
  --density-row: 40px;
  --density-cell-x: 12px;
  --density-inset: 24px;
  --density-stack: 12px;
  /* typography */
  --typography-display-xl: var(--font-weight-medium) var(--font-size-8xl)/72px var(--font-family-sans);
  --typography-display-xl-tracking: -0.04em;
  --typography-display-l: var(--font-weight-medium) var(--font-size-7xl)/64px var(--font-family-sans);
  --typography-display-l-tracking: -0.035em;
  --typography-display-m: var(--font-weight-medium) var(--font-size-6xl)/52px var(--font-family-sans);
  --typography-display-m-tracking: -0.03em;
  --typography-heading-1: var(--font-weight-medium) var(--font-size-5xl)/40px var(--font-family-sans);
  --typography-heading-1-tracking: -0.025em;
  --typography-heading-2: var(--font-weight-medium) var(--font-size-4xl)/36px var(--font-family-sans);
  --typography-heading-2-tracking: -0.02em;
  --typography-heading-3: var(--font-weight-medium) var(--font-size-3xl)/32px var(--font-family-sans);
  --typography-heading-3-tracking: -0.015em;
  --typography-heading-4: var(--font-weight-medium) var(--font-size-2xl)/28px var(--font-family-sans);
  --typography-heading-4-tracking: -0.01em;
  --typography-heading-5: var(--font-weight-medium) var(--font-size-xl)/28px var(--font-family-sans);
  --typography-heading-5-tracking: -0.005em;
  --typography-title: var(--font-weight-medium) var(--font-size-lg)/24px var(--font-family-sans);
  --typography-title-tracking: 0em;
  --typography-body-l: var(--font-weight-regular) var(--font-size-xl)/28px var(--font-family-sans);
  --typography-body-l-tracking: 0em;
  --typography-body-m: var(--font-weight-regular) var(--font-size-lg)/24px var(--font-family-sans);
  --typography-body-m-tracking: 0em;
  --typography-body-s: var(--font-weight-regular) var(--font-size-md)/20px var(--font-family-sans);
  --typography-body-s-tracking: 0em;
  --typography-label-m: var(--font-weight-medium) var(--font-size-md)/20px var(--font-family-sans);
  --typography-label-m-tracking: 0em;
  --typography-label-s: var(--font-weight-medium) var(--font-size-sm)/16px var(--font-family-sans);
  --typography-label-s-tracking: 0em;
  --typography-caption: var(--font-weight-regular) var(--font-size-xs)/16px var(--font-family-sans);
  --typography-caption-tracking: 0em;
  --typography-overline: var(--font-weight-medium) var(--font-size-2xs)/16px var(--font-family-sans);
  --typography-overline-tracking: 0.06em;
  --typography-overline-case: uppercase;
  --typography-code: var(--font-weight-regular) var(--font-size-sm)/20px var(--font-family-sans);
  --typography-code-tracking: 0em;
  /* motion */
  --motion-hover: var(--motion-duration-fast) var(--motion-easing-standard);
  --motion-press: var(--motion-duration-fast) var(--motion-easing-enter);
  --motion-tooltip-enter: var(--motion-duration-fast) var(--motion-easing-enter);
  --motion-tooltip-exit: var(--motion-duration-instant) var(--motion-easing-exit);
  --motion-menu-enter: var(--motion-duration-base) var(--motion-easing-enter);
  --motion-menu-exit: var(--motion-duration-fast) var(--motion-easing-standard);
  --motion-popover-enter: var(--motion-duration-moderate) var(--motion-easing-enter);
  --motion-popover-exit: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-toast-enter: var(--motion-duration-moderate) var(--motion-easing-enter);
  --motion-toast-exit: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-modal-enter: var(--motion-duration-slow) var(--motion-easing-emphasised);
  --motion-modal-exit: var(--motion-duration-moderate) var(--motion-easing-exit);
  --motion-drawer-enter: var(--motion-duration-slow) var(--motion-easing-emphasised);
  --motion-drawer-exit: var(--motion-duration-moderate) var(--motion-easing-exit);
  --motion-banner-enter: var(--motion-duration-moderate) var(--motion-easing-standard);
  --motion-banner-exit: var(--motion-duration-base) var(--motion-easing-exit);
  --motion-expand: var(--motion-duration-moderate) var(--motion-easing-standard);
  --motion-reorder: var(--motion-duration-moderate) var(--motion-easing-standard);
  --motion-tab-indicator: var(--motion-duration-moderate) var(--motion-easing-standard);
  --motion-switch-thumb: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-highlight-hold: var(--motion-delay-highlight-hold);
  --motion-highlight-fade: var(--motion-duration-linger) var(--motion-easing-standard);
  --motion-offset-sm: var(--motion-distance-sm);
  --motion-offset-md: var(--motion-distance-md);
  --motion-enter-scale: var(--motion-scale-enter);
  --motion-indicator-spin: var(--motion-loop-spin);
  --motion-indicator-shimmer: var(--motion-loop-shimmer);
  --motion-indicator-pulse: var(--motion-loop-pulse);
  --motion-indicator-indeterminate: var(--motion-loop-indeterminate);
  /* cursor */
  --cursor-action: pointer;
  --cursor-static: default;
  --cursor-text: text;
  --cursor-drag: grab;
  --cursor-dragging: grabbing;
  --cursor-refuse: not-allowed;
  --cursor-resize: col-resize;
  --cursor-busy: progress;
  /* chart */
  --chart-forecast-band-opacity: 0.16;
  --chart-forecast-dash: 4 3;
}

/* Theme: dark */
[data-theme="dark"] {
  color-scheme: dark;
  --color-text-primary: var(--color-neutral-50);
  --color-text-secondary: var(--color-neutral-300);
  --color-text-tertiary: var(--color-neutral-400);
  --color-text-disabled: var(--color-neutral-600);
  --color-text-inverse: var(--color-neutral-950);
  --color-text-link: var(--color-sky-400);
  --color-text-link-hover: var(--color-sky-300);
  --color-text-success: var(--color-success-300);
  --color-text-warning: var(--color-warning-300);
  --color-text-danger: var(--color-danger-300);
  --color-text-ai: var(--color-mint-300);
  --color-surface-canvas: var(--color-neutral-975);
  --color-surface-default: var(--color-neutral-925);
  --color-surface-sunken: var(--color-neutral-950);
  --color-surface-hover: var(--color-neutral-900);
  --color-surface-selected: var(--color-sky-900);
  --color-surface-inverse: var(--color-neutral-0);
  --color-surface-ai: var(--color-mint-950);
  --color-surface-success: var(--color-success-950);
  --color-surface-warning: var(--color-warning-950);
  --color-surface-danger: var(--color-danger-950);
  --color-border-subtle: var(--color-neutral-900);
  --color-border-default: var(--color-neutral-800);
  --color-border-strong: var(--color-neutral-700);
  --color-border-focus: var(--color-sky-400);
  --color-border-selected: var(--color-sky-400);
  --color-border-success: var(--color-success-700);
  --color-border-warning: var(--color-warning-700);
  --color-border-danger: var(--color-danger-500);
  --color-action-primary-bg: var(--color-neutral-0);
  --color-action-primary-bg-hover: var(--color-neutral-100);
  --color-action-primary-bg-pressed: var(--color-neutral-200);
  --color-action-primary-fg: var(--color-neutral-950);
  --color-action-secondary-bg: var(--color-neutral-925);
  --color-action-secondary-bg-hover: var(--color-neutral-900);
  --color-action-secondary-border: var(--color-neutral-700);
  --color-action-disabled-bg: var(--color-neutral-900);
  --color-action-disabled-fg: var(--color-neutral-600);
  --color-surface-raised: var(--color-neutral-900);
  --color-surface-overlay: var(--color-neutral-800);
  --focus-color: var(--color-sky-400);
  --color-icon-selected: var(--color-sky-300);
  --color-icon-on-accent: var(--color-neutral-950);
  --color-surface-pressed: var(--color-neutral-800);
  --color-action-secondary-bg-pressed: var(--color-neutral-800);
  --color-surface-highlight: var(--color-sky-900);
  --color-surface-drop: var(--color-sky-950);
  --color-border-drop: var(--color-sky-400);
  --color-overlay-scrim: var(--color-alpha-black-60);
  --color-overlay-hover: var(--color-alpha-white-8);
  --color-overlay-pressed: var(--color-alpha-white-12);
  --color-selection-bg: var(--color-sky-800);
  --color-mark-bg: var(--color-warning-900);
  --color-mark-current: var(--color-warning-700);
  --color-mark-current-ring: var(--color-warning-400);
  --color-mention-bg: var(--color-sky-900);
  --color-mention-fg: var(--color-sky-300);
  --color-chart-series-1: var(--color-viz-dark-1);
  --color-chart-series-2: var(--color-viz-dark-2);
  --color-chart-series-3: var(--color-viz-dark-3);
  --color-chart-series-4: var(--color-viz-dark-4);
  --color-chart-series-5: var(--color-viz-dark-5);
  --color-chart-series-6: var(--color-viz-dark-6);
  --color-chart-sequential-1: var(--color-sky-900);
  --color-chart-sequential-2: var(--color-sky-700);
  --color-chart-sequential-3: var(--color-sky-500);
  --color-chart-sequential-4: var(--color-sky-400);
  --color-chart-sequential-5: var(--color-sky-200);
  --color-chart-diverging-neg3: var(--color-viz-orange-300);
  --color-chart-diverging-neg2: var(--color-viz-orange-500);
  --color-chart-diverging-neg1: var(--color-viz-orange-700);
  --color-chart-diverging-mid: var(--color-neutral-800);
  --color-chart-diverging-pos1: var(--color-sky-700);
  --color-chart-diverging-pos2: var(--color-sky-500);
  --color-chart-diverging-pos3: var(--color-sky-300);
  --color-chart-grid: var(--color-neutral-900);
  --color-chart-axis: var(--color-neutral-700);
  --color-chart-context: var(--color-neutral-700);
  --color-chart-other: var(--color-neutral-400);
  --color-chart-benchmark: var(--color-neutral-50);
}

/* Increased contrast */
[data-contrast="more"] {
  --color-text-secondary: var(--color-neutral-800);
  --color-text-tertiary: var(--color-neutral-700);
  --color-text-link: var(--color-sky-700);
  --color-text-link-hover: var(--color-sky-800);
  --color-text-danger: var(--color-danger-800);
  --color-text-ai: var(--color-mint-800);
  --color-action-disabled-fg: var(--color-neutral-500);
  --color-action-secondary-border: var(--color-neutral-500);
  --color-border-subtle: var(--color-neutral-300);
  --color-border-default: var(--color-neutral-500);
  --color-border-strong: var(--color-neutral-700);
  --color-border-danger: var(--color-danger-700);
  --color-surface-hover: var(--color-neutral-100);
  --color-surface-selected: var(--color-sky-200);
  --focus-width: 3px;
}

/* Increased contrast in dark */
[data-theme="dark"][data-contrast="more"],
[data-contrast="more"] [data-theme="dark"] {
  --color-text-primary: var(--color-neutral-0);
  --color-text-secondary: var(--color-neutral-100);
  --color-text-tertiary: var(--color-neutral-200);
  --color-text-link: var(--color-sky-300);
  --color-text-link-hover: var(--color-sky-200);
  --color-text-danger: var(--color-danger-200);
  --color-text-ai: var(--color-mint-200);
  --color-action-disabled-fg: var(--color-neutral-400);
  --color-action-secondary-border: var(--color-neutral-500);
  --color-border-subtle: var(--color-neutral-700);
  --color-border-default: var(--color-neutral-500);
  --color-border-strong: var(--color-neutral-400);
  --color-border-danger: var(--color-danger-400);
  --color-surface-hover: var(--color-neutral-800);
  --color-surface-selected: var(--color-sky-800);
  --focus-width: 3px;
}

/* Density */
[data-density="compact"] {
  --density-control: 28px;
  --density-row: 32px;
  --density-cell-x: 8px;
  --density-inset: 16px;
  --density-stack: 8px;
}
[data-density="comfortable"] {
  --density-control: 40px;
  --density-row: 48px;
  --density-cell-x: 16px;
  --density-inset: 32px;
  --density-stack: 16px;
}

/* Reduced motion: setting, with an OS fallback before any script runs */
[data-motion="reduced"] {
  --motion-indicator-spin: var(--motion-duration-linger);
  --motion-offset-sm: 0px;
  --motion-offset-md: 0px;
  --motion-enter-scale: 1;
  --motion-indicator-shimmer: 0ms;
  --motion-indicator-pulse: 0ms;
  --motion-indicator-indeterminate: 0ms;
  --motion-popover-enter: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-toast-enter: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-modal-enter: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-modal-exit: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-drawer-enter: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-drawer-exit: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-banner-enter: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-expand: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-reorder: var(--motion-duration-base) var(--motion-easing-standard);
  --motion-tab-indicator: var(--motion-duration-base) var(--motion-easing-standard);
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) {
    --motion-indicator-spin: var(--motion-duration-linger);
    --motion-offset-sm: 0px;
    --motion-offset-md: 0px;
    --motion-enter-scale: 1;
    --motion-indicator-shimmer: 0ms;
    --motion-indicator-pulse: 0ms;
    --motion-indicator-indeterminate: 0ms;
    --motion-popover-enter: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-toast-enter: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-modal-enter: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-modal-exit: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-drawer-enter: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-drawer-exit: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-banner-enter: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-expand: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-reorder: var(--motion-duration-base) var(--motion-easing-standard);
    --motion-tab-indicator: var(--motion-duration-base) var(--motion-easing-standard);
  }
}

/* Forced colours: Windows contrast themes. Keep real borders and outlines; use forced-color-adjust: none only where Batch 8 allows it. */
@media (forced-colors: active) {
  :root, :root[data-theme][data-contrast], [data-theme], [data-contrast] [data-theme] {
    --color-text-primary: CanvasText;
    --color-text-secondary: CanvasText;
    --color-text-tertiary: CanvasText;
    --color-text-disabled: GrayText;
    --color-text-inverse: Canvas;
    --color-text-link: LinkText;
    --color-text-link-hover: LinkText;
    --color-text-success: CanvasText;
    --color-text-warning: CanvasText;
    --color-text-danger: CanvasText;
    --color-text-ai: CanvasText;
    --color-surface-canvas: Canvas;
    --color-surface-default: Canvas;
    --color-surface-sunken: Canvas;
    --color-surface-hover: Canvas;
    --color-surface-selected: Highlight;
    --color-surface-inverse: CanvasText;
    --color-surface-ai: Canvas;
    --color-surface-success: Canvas;
    --color-surface-warning: Canvas;
    --color-surface-danger: Canvas;
    --color-surface-raised: Canvas;
    --color-surface-overlay: Canvas;
    --color-surface-pressed: Canvas;
    --color-surface-highlight: Canvas;
    --color-surface-drop: Canvas;
    --color-border-subtle: CanvasText;
    --color-border-default: CanvasText;
    --color-border-strong: CanvasText;
    --color-border-focus: Highlight;
    --color-border-selected: Highlight;
    --color-border-success: CanvasText;
    --color-border-warning: CanvasText;
    --color-border-danger: CanvasText;
    --color-border-drop: Highlight;
    --color-action-primary-bg: ButtonText;
    --color-action-primary-bg-hover: ButtonText;
    --color-action-primary-bg-pressed: ButtonText;
    --color-action-primary-fg: ButtonFace;
    --color-action-secondary-bg: ButtonFace;
    --color-action-secondary-bg-hover: ButtonFace;
    --color-action-secondary-border: ButtonBorder;
    --color-action-secondary-bg-pressed: ButtonFace;
    --color-action-danger-bg: ButtonText;
    --color-action-danger-bg-hover: ButtonText;
    --color-action-disabled-bg: Canvas;
    --color-action-disabled-fg: GrayText;
    --color-signal-live: Highlight;
    --color-icon-default: CanvasText;
    --color-icon-active: CanvasText;
    --color-icon-selected: HighlightText;
    --color-icon-muted: CanvasText;
    --color-icon-disabled: GrayText;
    --color-icon-on-accent: ButtonFace;
    --color-icon-success: CanvasText;
    --color-icon-warning: CanvasText;
    --color-icon-danger: CanvasText;
    --color-icon-info: CanvasText;
    --color-selection-bg: Highlight;
    --color-selection-fg: HighlightText;
    --color-mark-bg: Mark;
    --color-mark-current: Mark;
    --color-mark-current-ring: CanvasText;
    --color-mark-fg: MarkText;
    --color-mention-bg: Canvas;
    --color-mention-fg: LinkText;
    --focus-color: Highlight;
  }
}

/* Batch 9 · new semantic tokens */
:root, [data-theme] {
  --color-border-control: var(--color-neutral-500);
  --color-action-selected-bg: var(--color-sky-600);
  --color-action-selected-bg-hover: var(--color-sky-700);
  --color-action-selected-fg: var(--color-neutral-0);
}
[data-theme="dark"] {
  --color-border-control: var(--color-neutral-400);
  --color-action-selected-bg: var(--color-sky-400);
  --color-action-selected-bg-hover: var(--color-sky-300);
  --color-action-selected-fg: var(--color-neutral-950);
}
@media (forced-colors: active) {
  :root, [data-theme] {
    --color-border-control: CanvasText;
    --color-action-selected-bg: Highlight;
    --color-action-selected-bg-hover: Highlight;
    --color-action-selected-fg: HighlightText;
  }
}

/* Component tokens · Batch 9. They reference semantic tokens, so every mode applies. Re-declared on every mode scope so nested previews resolve. */
:root, [data-theme], [data-density], [data-contrast] {
  --button-radius: var(--radius-control);
  --button-border-width: 1px;
  --button-height-xs: var(--size-control-xs);
  --button-height-sm: var(--size-control-sm);
  --button-height-md: var(--density-control);
  --button-height-lg: var(--size-control-lg);
  --button-height-xl: var(--size-control-xl);
  --button-primary-bg: var(--color-action-primary-bg);
  --button-primary-bg-hover: var(--color-action-primary-bg-hover);
  --button-primary-bg-pressed: var(--color-action-primary-bg-pressed);
  --button-primary-fg: var(--color-action-primary-fg);
  --button-secondary-bg: var(--color-action-secondary-bg);
  --button-secondary-bg-hover: var(--color-action-secondary-bg-hover);
  --button-secondary-bg-pressed: var(--color-action-secondary-bg-pressed);
  --button-secondary-border: var(--color-action-secondary-border);
  --button-secondary-fg: var(--color-text-primary);
  --button-ghost-bg-hover: var(--color-surface-hover);
  --button-ghost-bg-pressed: var(--color-surface-pressed);
  --button-ghost-fg: var(--color-text-primary);
  --button-danger-bg: var(--color-action-danger-bg);
  --button-danger-bg-hover: var(--color-action-danger-bg-hover);
  --button-danger-bg-pressed: var(--color-danger-800);
  --button-danger-fg: var(--color-neutral-0);
  --button-link-fg: var(--color-text-link);
  --button-link-fg-hover: var(--color-text-link-hover);
  --button-disabled-bg: var(--color-action-disabled-bg);
  --button-disabled-fg: var(--color-action-disabled-fg);
  --button-pressed-scale: var(--motion-scale-press);
  --icon-button-toggled-bg: var(--color-surface-selected);
  --icon-button-toggled-fg: var(--color-icon-selected);
  --input-height: var(--density-control);
  --input-radius: var(--radius-control);
  --input-padding-x: 10px;
  --input-bg: var(--color-surface-default);
  --input-fg: var(--color-text-primary);
  --input-placeholder: var(--color-text-tertiary);
  --input-border: var(--color-border-default);
  --input-border-hover: var(--color-border-strong);
  --input-border-focus: var(--color-border-focus);
  --input-border-error: var(--color-border-danger);
  --input-disabled-bg: var(--color-action-disabled-bg);
  --input-disabled-fg: var(--color-text-disabled);
  --input-readonly-bg: var(--color-surface-sunken);
  --input-ai-bg: var(--color-surface-ai);
  --input-ai-helper: var(--color-text-ai);
  --select-menu-bg: var(--color-surface-overlay);
  --select-menu-shadow: var(--elevation-menu);
  --select-menu-max-height: 320px;
  --select-option-bg-highlight: var(--color-surface-hover);
  --select-option-check: var(--color-icon-selected);
  --control-border: var(--color-border-control);
  --control-border-hover: var(--color-text-primary);
  --control-checked-bg: var(--color-action-selected-bg);
  --control-checked-bg-hover: var(--color-action-selected-bg-hover);
  --control-checked-fg: var(--color-action-selected-fg);
  --checkbox-size: 16px;
  --checkbox-radius: var(--radius-xs);
  --checkbox-border-width: 1px;
  --switch-width: 32px;
  --switch-height: 18px;
  --switch-thumb: 14px;
}

/* Component tokens · Batch 10 */
:root, [data-theme], [data-density], [data-contrast] {
  --segmented-track-bg: var(--color-surface-default);
  --segmented-track-border: var(--color-border-default);
  --segmented-item-fg: var(--color-text-secondary);
  --segmented-item-bg-hover: var(--color-surface-hover);
  --segmented-item-selected-bg: var(--color-surface-selected);
  --segmented-item-selected-border: var(--color-border-selected);
  --segmented-item-selected-fg: var(--color-text-primary);
  --segmented-padding: 2px;
  --segmented-item-radius: 8px;
  --split-divider-gap: 1px;
  --menu-bg: var(--color-surface-overlay);
  --menu-shadow: var(--elevation-menu);
  --menu-radius: var(--radius-control);
  --menu-item-bg-highlight: var(--color-surface-hover);
  --menu-item-fg-danger: var(--color-text-danger);
  --menu-item-radius: var(--radius-sm);
  --menu-max-width: 320px;
  --link-fg: var(--color-text-link);
  --link-fg-hover: var(--color-text-link-hover);
  --link-underline-offset: 3px;
  --link-underline-thickness: 1px;
  --bulk-bar-bg: var(--color-surface-selected);
  --sticky-bar-bg: var(--color-surface-default);
  --sticky-bar-border: var(--color-border-subtle);
  --copy-feedback-duration: 1500ms;
  --combobox-match-bg: var(--color-mark-bg);
  --combobox-match-fg: var(--color-mark-fg);
  --combobox-debounce: 250ms;
  --chip-bg: var(--color-surface-hover);
  --chip-fg: var(--color-text-primary);
  --chip-radius: var(--radius-sm);
  --chip-remove: var(--color-icon-default);
  --chip-remove-bg-hover: var(--color-surface-pressed);
}

/* Audit fixes · dark elevation (Batch 4: 2–3× light opacity plus a 6% white top edge) */
[data-theme="dark"] {
  --elevation-hover: 0 1px 2px rgba(0,0,0,0.18), 0 1px 1px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  --elevation-menu: 0 4px 12px rgba(0,0,0,0.24), 0 1px 3px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
  --elevation-popover: 0 8px 24px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
  --elevation-modal: 0 16px 48px rgba(0,0,0,0.42), 0 4px 12px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.06);
  --elevation-toast: 0 24px 64px rgba(0,0,0,0.54), 0 6px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  --elevation-drag: 0 8px 24px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Batch 11 · new semantic tokens */
:root, [data-theme] {
  --color-surface-info: var(--color-sky-50);
  --color-border-info: var(--color-sky-200);
  --color-border-danger-subtle: var(--color-danger-300);
  --color-border-ai: var(--color-mint-200);
  --color-signal-unsaved: var(--color-warning-600);
}
[data-theme="dark"] {
  --color-surface-info: var(--color-sky-950);
  --color-border-info: var(--color-sky-800);
  --color-border-danger-subtle: var(--color-danger-800);
  --color-border-ai: var(--color-mint-900);
  --color-signal-unsaved: var(--color-warning-400);
}
@media (forced-colors: active) {
  :root, [data-theme] {
    --color-surface-info: Canvas;
    --color-border-info: CanvasText;
    --color-border-danger-subtle: CanvasText;
    --color-border-ai: CanvasText;
    --color-signal-unsaved: CanvasText;
  }
}

/* v1.1 · new tokens (22 Oct 2026) */
:root, [data-theme] {
  --color-horizon-mid: #E3F2FD;
  --color-logo: var(--color-neutral-950);
  --color-text-inverse-secondary: var(--color-neutral-300);
  --gradient-horizon: linear-gradient(150deg, var(--color-sky-300) 0%, var(--color-horizon-mid) 50%, var(--color-mint-100) 100%);
  --typography-display-web: var(--font-weight-medium) clamp(2.75rem, 1.75rem + 4.4vw, 5.75rem)/1 var(--font-family-sans);
  --typography-display-web-tracking: -0.04em;
  --typography-heading-web: var(--font-weight-medium) clamp(1.875rem, 1.375rem + 1.8vw, 3rem)/1.1 var(--font-family-sans);
  --typography-heading-web-tracking: -0.03em;
}
[data-theme="dark"] {
  --color-logo: var(--color-neutral-0);
  --color-text-inverse-secondary: var(--color-neutral-600);
}
[data-contrast="more"] {
  --color-text-inverse-secondary: var(--color-neutral-200);
}
[data-theme="dark"][data-contrast="more"],
[data-contrast="more"] [data-theme="dark"] {
  --color-text-inverse-secondary: var(--color-neutral-700);
}
@media (forced-colors: active) {
  :root, [data-theme] {
    --color-logo: CanvasText;
    --color-text-inverse-secondary: Canvas;
  }
}

/* /website/tokens/components.css */
/* Component tokens · Batch 11–16 (closing the Blueprint). Generated into tokens.json `component`.
   They reference semantic tokens only, so every mode (theme, contrast, density, motion) applies. */
:root, [data-theme], [data-density], [data-contrast] {
  /* inputs III */
  --slider-track-height: 4px;
  --slider-track-bg: var(--color-border-default);
  --slider-fill: var(--color-action-selected-bg);
  --slider-thumb-size: 16px;
  --slider-thumb-bg: var(--color-surface-default);
  --slider-thumb-border: var(--color-action-selected-bg);
  --slider-mark: var(--color-border-strong);
  --number-stepper-width: 24px;
  --calendar-cell: 32px;
  --calendar-day-radius: var(--radius-sm);
  --calendar-today-ring: var(--color-border-strong);
  --calendar-selected-bg: var(--color-action-selected-bg);
  --calendar-selected-fg: var(--color-action-selected-fg);
  --calendar-range-bg: var(--color-surface-selected);
  --calendar-bg: var(--color-surface-overlay);
  --calendar-shadow: var(--elevation-popover);
  --upload-zone-bg: var(--color-surface-default);
  --upload-zone-border: var(--color-border-strong);
  --upload-zone-bg-drop: var(--color-surface-drop);
  --upload-zone-border-drop: var(--color-border-drop);
  --upload-zone-radius: var(--radius-container);
  --upload-progress-fill: var(--color-action-selected-bg);
  --search-shortcut-bg: var(--color-surface-sunken);
  --search-shortcut-fg: var(--color-text-tertiary);
  --otp-cell-width: 40px;
  --otp-cell-height: 48px;
  --otp-gap: var(--space-2);
  --editor-toolbar-bg: var(--color-surface-default);
  --editor-toolbar-border: var(--color-border-subtle);
  --editor-min-height: 120px;
  --swatch-size: 20px;
  --tag-dot-size: 8px;
  /* form structure */
  --field-gap: var(--space-stack-field);
  --field-stack: var(--space-stack-item);
  --field-label-fg: var(--color-text-primary);
  --field-helper-fg: var(--color-text-secondary);
  --field-error-fg: var(--color-text-danger);
  --field-optional-fg: var(--color-text-tertiary);
  --fieldset-gap: var(--space-stack-group);
  --form-max-width: 640px;
  --error-summary-bg: var(--color-surface-danger);
  --error-summary-border: var(--color-border-danger);
  --unsaved-dot: var(--color-signal-unsaved);
  /* navigation */
  --topbar-height: 56px;
  --topbar-bg: var(--color-surface-default);
  --topbar-border: var(--color-border-subtle);
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 56px;
  --sidebar-bg: var(--color-surface-default);
  --sidebar-border: var(--color-border-subtle);
  --sidebar-item-height: var(--density-control);
  --sidebar-item-radius: var(--radius-sm);
  --sidebar-item-fg: var(--color-text-secondary);
  --sidebar-item-bg-hover: var(--color-surface-hover);
  --sidebar-item-active-bg: var(--color-surface-selected);
  --sidebar-item-active-fg: var(--color-text-primary);
  --sidebar-item-active-icon: var(--color-icon-selected);
  --tabs-height: var(--density-row);
  --tabs-border: var(--color-border-subtle);
  --tabs-fg: var(--color-text-secondary);
  --tabs-fg-active: var(--color-text-primary);
  --tabs-indicator: var(--color-action-selected-bg);
  --tabs-indicator-height: 2px;
  --breadcrumb-fg: var(--color-text-secondary);
  --breadcrumb-separator: var(--color-icon-muted);
  --pagination-item: var(--size-control-md);
  --stepper-dot: 24px;
  --stepper-line: var(--color-border-default);
  --stepper-done-bg: var(--color-action-primary-bg);
  --stepper-current-border: var(--color-action-selected-bg);
  --command-width: 640px;
  --command-max-height: 440px;
  --bottom-nav-height: 56px;
  --page-title-height: 56px;
  --context-panel-width: 360px;
  --context-panel-width-max: 420px;
  --filter-bar-height: 48px;
  /* data display */
  --table-row-height: var(--density-row);
  --table-cell-x: var(--density-cell-x);
  --table-header-bg: var(--color-surface-default);
  --table-header-fg: var(--color-text-secondary);
  --table-border: var(--color-border-subtle);
  --table-row-bg-hover: var(--color-surface-hover);
  --table-row-bg-selected: var(--color-surface-selected);
  --card-bg: var(--color-surface-default);
  --card-border: var(--color-border-subtle);
  --card-radius: var(--radius-container);
  --card-radius-web: var(--radius-container-web);
  --card-padding: var(--space-inset-card);
  --card-shadow-hover: var(--elevation-hover);
  --card-pressed-scale: 0.99;
  --badge-height: 20px;
  --badge-radius: var(--radius-xs);
  --badge-count-bg: var(--color-action-primary-bg);
  --badge-count-fg: var(--color-action-primary-fg);
  --tag-height: 24px;
  --tag-radius: var(--radius-sm);
  --avatar-person-radius: var(--radius-full);
  --avatar-org-radius: var(--radius-sm);
  --avatar-bg: var(--color-surface-sunken);
  --avatar-fg: var(--color-text-secondary);
  --avatar-ring: var(--color-surface-default);
  --tooltip-bg: var(--color-surface-inverse);
  --tooltip-fg: var(--color-text-inverse);
  --tooltip-fg-secondary: var(--color-text-inverse-secondary);
  --tooltip-radius: var(--radius-sm);
  --tooltip-max-width: 240px;
  --popover-bg: var(--color-surface-overlay);
  --popover-shadow: var(--elevation-popover);
  --popover-radius: var(--radius-container);
  --popover-offset: 8px;
  --accordion-border: var(--color-border-subtle);
  --tree-indent: 16px;
  --stat-delta-up: var(--color-text-success);
  --stat-delta-down: var(--color-text-danger);
  --dl-label-width: 160px;
  --timeline-line: var(--color-border-default);
  --code-bg: var(--color-surface-sunken);
  --code-border: var(--color-border-subtle);
  --kbd-bg: var(--color-surface-default);
  --kbd-border: var(--color-border-default);
  --divider: var(--color-border-subtle);
  /* feedback */
  --alert-radius: var(--radius-control);
  --alert-info-bg: var(--color-surface-info);
  --alert-info-border: var(--color-border-info);
  --alert-success-bg: var(--color-surface-success);
  --alert-success-border: var(--color-border-success);
  --alert-warning-bg: var(--color-surface-warning);
  --alert-warning-border: var(--color-border-warning);
  --alert-danger-bg: var(--color-surface-danger);
  --alert-danger-border: var(--color-border-danger-subtle);
  --toast-bg: var(--color-surface-inverse);
  --toast-fg: var(--color-text-inverse);
  --toast-fg-secondary: var(--color-text-inverse-secondary);
  --toast-radius: var(--radius-control);
  --toast-width: 360px;
  --toast-duration: 5000ms;
  --toast-duration-action: 8000ms;
  --progress-height: 4px;
  --progress-track: var(--color-border-subtle);
  --progress-fill: var(--color-action-selected-bg);
  --spinner-track: var(--color-border-default);
  --spinner-head: var(--color-text-primary);
  --skeleton-bg: var(--color-surface-sunken);
  --skeleton-shine: var(--color-surface-hover);
  --empty-max-width: 400px;
  --notification-unread: var(--color-action-selected-bg);
  /* overlays */
  --modal-width-sm: 400px;
  --modal-width-md: 560px;
  --modal-width-lg: 800px;
  --modal-radius: var(--radius-container);
  --modal-bg: var(--color-surface-overlay);
  --modal-shadow: var(--elevation-modal);
  --modal-padding: var(--space-6);
  --drawer-width-sm: 360px;
  --drawer-width-md: 480px;
  --drawer-width-lg: 640px;
  --drawer-bg: var(--color-surface-overlay);
  --drawer-shadow: var(--elevation-modal);
  --sheet-radius: var(--radius-container);
  --sheet-handle: var(--color-border-strong);
  --scrim: var(--color-overlay-scrim);
  --floating-offset: 4px;
  /* AI */
  --ai-dot: var(--color-signal-live);
  --ai-surface: var(--color-surface-ai);
  --ai-fg: var(--color-text-ai);
  --ai-border: var(--color-border-ai);
  --ai-highlight: var(--color-surface-highlight);
  --citation-bg: var(--color-surface-sunken);
  --citation-fg: var(--color-text-secondary);
  /* charts */
  --chart-line-width: 2px;
  --chart-bar-radius: 2px;
  --chart-label-size: var(--font-size-xs);
}

/* /website/tokens/base.css */
/* Base element rules. Tokens only; no raw values. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--color-border-strong) transparent; }
body {
  margin: 0;
  background: var(--color-surface-canvas);
  color: var(--color-text-primary);
  font: var(--typography-body-m);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
}
input, textarea, [contenteditable] { caret-color: var(--color-border-focus); }
::selection { background: var(--color-selection-bg); color: var(--color-selection-fg); }
:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
a { color: var(--color-text-link); text-decoration: underline; text-decoration-thickness: var(--link-underline-thickness); text-underline-offset: var(--link-underline-offset); }
@media (hover: hover) { a:hover { color: var(--color-text-link-hover); } }
mark { background: var(--color-mark-bg); color: var(--color-mark-fg); border-radius: 2px; }
code, kbd, samp { font-family: var(--font-family-sans); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.num, [data-num] { font-variant-numeric: tabular-nums; }
/* Reduced motion is carried by tokens (tokens.css: distances 0, scale 1, loops slowed or stopped, enters capped at 150ms), never by forcing every duration. */
/* Search fields draw their own clear button; hide the native one so there is only one. */
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
/* Text that may hold an unbroken URL, e-mail or file name: wrap it anywhere rather than overflow. Never break-all. */
.ot-wrap { overflow-wrap: anywhere; min-width: 0; }
/* Read by screen readers, not shown. */
.ot-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* /website/tokens/motion.css */
/* Motion and interaction layer. Shared keyframes, presence (enter/exit) states, hover and press recipes, the AI highlight.
   Tokens only. Durations and curves come from --motion-*; reduced motion is handled by the token overrides in tokens.css
   (distances go to 0, scale to 1, loops slow down or stop), so these rules need no reduced-motion copies of their own.
   Rules: enter from a nearby, already visible state; exits one step faster; scale never below --motion-enter-scale (0.98);
   no springs or overshoot; surfaces opened from the keyboard (⌘K) and tooltips appear without travel. */

/* Keyframes. Every exit name ends in -out: usePresence waits for those before unmounting. */
@keyframes ot-fade-in { from { opacity: 0; } }
@keyframes ot-fade-out { to { opacity: 0; } }
/* Menus, popovers, listboxes, date pickers, modals: scale from the trigger side (set transform-origin on the element). */
@keyframes ot-pop-in { from { opacity: 0; transform: scale(var(--motion-enter-scale)); } }
@keyframes ot-pop-out { to { opacity: 0; transform: scale(var(--motion-enter-scale)); } }
/* Toasts, bottom sheets, bars that rise from the bottom edge. Set --ot-rise: var(--motion-offset-sm) for the 4px banner travel. */
@keyframes ot-rise-in { from { opacity: 0; transform: translateY(var(--ot-rise, var(--motion-offset-md))); } }
@keyframes ot-rise-out { to { opacity: 0; transform: translateY(var(--ot-rise, var(--motion-offset-md))); } }
/* Drawers, from the edge they are docked to. */
@keyframes ot-slide-in-right { from { opacity: 0; transform: translateX(var(--motion-offset-md)); } }
@keyframes ot-slide-out-right { to { opacity: 0; transform: translateX(var(--motion-offset-md)); } }
@keyframes ot-slide-in-left { from { opacity: 0; transform: translateX(calc(-1 * var(--motion-offset-md))); } }
@keyframes ot-slide-out-left { to { opacity: 0; transform: translateX(calc(-1 * var(--motion-offset-md))); } }
@keyframes ot-spin { to { transform: rotate(360deg); } }
/* Loops: indeterminate progress, skeleton shine, streaming caret. Their reduced-motion rules live with the components (they stop or hide). */
@keyframes ot-indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes ot-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes ot-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
/* Live signal (AIDot pulse). The duration token is 0 under reduced motion, so the dot holds still. */
@keyframes ot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Origins for popups by placement, so a menu grows out of the button that opened it. */
[data-placement^="bottom-start"], [data-placement="bottom"][data-align="start"] { transform-origin: top left; }
[data-placement^="bottom-end"], [data-placement="bottom"][data-align="end"] { transform-origin: top right; }
[data-placement^="top-start"] { transform-origin: bottom left; }
[data-placement^="top-end"] { transform-origin: bottom right; }
[data-placement="right"] { transform-origin: left top; }
[data-placement="left"] { transform-origin: right top; }

/* While a surface is leaving it no longer takes clicks. */
[data-state="closed"] { pointer-events: none; }

/* Hover and press.
   .ot-hover gives a quiet surface step on hover (only where a real pointer can hover, so a tap never leaves a stuck hover)
   and the pressed surface on :active. Set --ot-bg for the resting fill, --ot-hover-bg / --ot-press-bg to override. */
.ot-hover {
  background-color: var(--ot-bg, transparent);
  transition: background-color var(--motion-hover), color var(--motion-hover), border-color var(--motion-hover), box-shadow var(--motion-hover);
}
@media (hover: hover) and (pointer: fine) {
  .ot-hover:hover:not(:disabled):not([aria-disabled="true"]) { background-color: var(--ot-hover-bg, var(--color-surface-hover)); }
}
.ot-hover:active:not(:disabled):not([aria-disabled="true"]) { background-color: var(--ot-press-bg, var(--color-surface-pressed)); transition-duration: 0ms; }
/* Pressable cards and rows may also settle by 1% (within the 0.98 floor). */
.ot-press { transition: transform var(--motion-press); }
.ot-press:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(var(--card-pressed-scale)); }

/* Expand and collapse (accordions, tree nodes, "Why this", nav groups). The region stays in the DOM (inert while closed) so aria-controls
   stays valid; its rows open from 0fr to 1fr while the content fades and settles 4px. Under reduced motion only the fade remains. */
.ot-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--motion-expand); }
.ot-collapse[data-open] { grid-template-rows: 1fr; }
.ot-collapse > * { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(calc(-1 * var(--motion-offset-sm))); transition: opacity var(--motion-expand), transform var(--motion-expand); }
.ot-collapse[data-open] > * { opacity: 1; transform: none; }
[data-motion="reduced"] .ot-collapse { transition: none; }
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) .ot-collapse { transition: none; } }

/* AI highlight: a value Ontelis just changed holds the AI tint, then fades (hold 400 + fade 1600). Pair it with the Mint dot. */
@keyframes ot-ai-changed { from { background-color: var(--ai-highlight); } to { background-color: transparent; } }
.ot-ai-changed { animation: ot-ai-changed var(--motion-highlight-fade) var(--motion-highlight-hold) both; border-radius: var(--radius-xs); }

/* Truncation that can still be read: pair with a title attribute (or Tooltip) carrying the full text. */
.ot-truncate { display: inline-block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
