/* static/css/tokens.css: the shared design tokens as CSS custom properties.
 * Regenerate with: venv/bin/python scripts/ux/build_token_css.py
 * core.tests.test_design_tokens fails when this file is out of date.
 * The legacy colour themes set the semantic --cs-color-* tokens from their own
 * palettes in static/css/themes.css ("Semantic design tokens" section). */
/* Generated from docs/ux/design-tokens.json v1.0.0 — do not edit. */
:root {
  --cs-space-0: 0px;
  --cs-space-1: 4px;
  --cs-space-2: 8px;
  --cs-space-3: 12px;
  --cs-space-4: 16px;
  --cs-space-5: 20px;
  --cs-space-6: 24px;
  --cs-space-8: 32px;
  --cs-space-10: 40px;
  --cs-space-12: 48px;
  --cs-space-16: 64px;
  --cs-font-family-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cs-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --cs-font-weight-regular: 400;
  --cs-font-weight-medium: 500;
  --cs-font-weight-semibold: 600;
  --cs-font-weight-bold: 700;
  --cs-font-size-xs: 12px;
  --cs-font-size-sm: 13px;
  --cs-font-size-md: 14px;
  --cs-font-size-lg: 16px;
  --cs-font-size-xl: 18px;
  --cs-font-size-2xl: 22px;
  --cs-font-size-3xl: 26px;
  --cs-font-size-kpi: 28px;
  --cs-font-line-height-tight: 1.25;
  --cs-font-line-height-snug: 1.375;
  --cs-font-line-height-normal: 1.5;
  --cs-radius-none: 0px;
  --cs-radius-sm: 4px;
  --cs-radius-md: 6px;
  --cs-radius-lg: 8px;
  --cs-radius-xl: 12px;
  --cs-radius-pill: 999px;
  --cs-border-width-hairline: 1px;
  --cs-border-width-thick: 2px;
  --cs-border-width-indicator: 3px;
  --cs-border-width-focus: 2px;
  --cs-border-width-focus-offset: 2px;
  --cs-breakpoint-xs: 390px;
  --cs-breakpoint-md: 768px;
  --cs-breakpoint-lg: 1280px;
  --cs-breakpoint-xl: 1440px;
  --cs-breakpoint-2xl: 1920px;
  --cs-breakpoint-3xl: 2560px;
  --cs-z-base: 0;
  --cs-z-raised: 1;
  --cs-z-dropdown: 1000;
  --cs-z-sticky: 1020;
  --cs-z-header: 1030;
  --cs-z-nav: 1040;
  --cs-z-nav-flyout: 1045;
  --cs-z-backdrop: 1050;
  --cs-z-dialog: 1055;
  --cs-z-command-palette: 1060;
  --cs-z-popover: 1070;
  --cs-z-tooltip: 1080;
  --cs-z-toast: 1090;
  --cs-z-skip-link: 1100;
  --cs-layout-sidebar-width: 248px;
  --cs-layout-rail-width: 64px;
  --cs-layout-topbar-height: 56px;
  --cs-layout-content-max-form: 960px;
  --cs-layout-content-max-reading: 760px;
  --cs-layout-dialog-sm: 400px;
  --cs-layout-dialog-md: 560px;
  --cs-layout-dialog-lg: 800px;
  --cs-layout-drawer-width: 480px;
  --cs-motion-duration-instant: 0ms;
  --cs-motion-duration-fast: 120ms;
  --cs-motion-duration-base: 180ms;
  --cs-motion-duration-slow: 260ms;
  --cs-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --cs-motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
}
:root, [data-cs-theme="light"] {
  --cs-color-bg-page: #f4f7fb;
  --cs-color-bg-surface: #ffffff;
  --cs-color-bg-raised: #ffffff;
  --cs-color-bg-sunken: #eef2f7;
  --cs-color-bg-hover: #eef2f7;
  --cs-color-bg-selected: #e8f0fe;
  --cs-color-bg-backdrop: #0b122099;
  --cs-color-text-primary: #172033;
  --cs-color-text-secondary: #3f4a5c;
  --cs-color-text-muted: #5b6576;
  --cs-color-text-disabled: #8a94a6;
  --cs-color-text-link: #1d4ed8;
  --cs-color-text-link-hover: #1e40af;
  --cs-color-text-inverse: #ffffff;
  --cs-color-border-subtle: #dce3ec;
  --cs-color-border-default: #c5ced9;
  --cs-color-border-strong: #7a8597;
  --cs-color-focus-ring: #2563eb;
  --cs-color-focus-ring-danger: #b91c1c;
  --cs-color-action-primary-bg: #2563eb;
  --cs-color-action-primary-bg-hover: #1d4ed8;
  --cs-color-action-primary-bg-active: #1e40af;
  --cs-color-action-primary-text: #ffffff;
  --cs-color-action-secondary-bg: #ffffff;
  --cs-color-action-secondary-bg-hover: #eef2f7;
  --cs-color-action-secondary-bg-active: #e6ebf1;
  --cs-color-action-secondary-text: #172033;
  --cs-color-action-secondary-border: #7a8597;
  --cs-color-action-ghost-bg-hover: #eef2f7;
  --cs-color-action-ghost-bg-active: #e6ebf1;
  --cs-color-action-ghost-text: #3f4a5c;
  --cs-color-action-danger-bg: #dc2626;
  --cs-color-action-danger-bg-hover: #b91c1c;
  --cs-color-action-danger-bg-active: #991b1b;
  --cs-color-action-danger-text: #ffffff;
  --cs-color-action-disabled-bg: #e6ebf1;
  --cs-color-action-disabled-text: #5b6576;
  --cs-color-action-disabled-border: #dce3ec;
  --cs-color-accent-solid: #0f766e;
  --cs-color-accent-on-solid: #ffffff;
  --cs-color-accent-text: #0f766e;
  --cs-color-accent-graphic: #0d9488;
  --cs-color-status-success-solid: #15803d;
  --cs-color-status-success-on-solid: #ffffff;
  --cs-color-status-success-text: #15803d;
  --cs-color-status-success-graphic: #15803d;
  --cs-color-status-success-subtle: #dcfce7;
  --cs-color-status-success-border: #16a34a;
  --cs-color-status-warning-solid: #b45309;
  --cs-color-status-warning-on-solid: #ffffff;
  --cs-color-status-warning-text: #92400e;
  --cs-color-status-warning-graphic: #b45309;
  --cs-color-status-warning-subtle: #fef3c7;
  --cs-color-status-warning-border: #d97706;
  --cs-color-status-danger-solid: #dc2626;
  --cs-color-status-danger-on-solid: #ffffff;
  --cs-color-status-danger-text: #b91c1c;
  --cs-color-status-danger-graphic: #dc2626;
  --cs-color-status-danger-subtle: #fee2e2;
  --cs-color-status-danger-border: #dc2626;
  --cs-color-status-info-solid: #0369a1;
  --cs-color-status-info-on-solid: #ffffff;
  --cs-color-status-info-text: #0369a1;
  --cs-color-status-info-graphic: #0284c7;
  --cs-color-status-info-subtle: #e0f2fe;
  --cs-color-status-info-border: #0284c7;
  --cs-color-status-pending-solid: #7c3aed;
  --cs-color-status-pending-on-solid: #ffffff;
  --cs-color-status-pending-text: #6d28d9;
  --cs-color-status-pending-graphic: #7c3aed;
  --cs-color-status-pending-subtle: #ede9fe;
  --cs-color-status-pending-border: #7c3aed;
  --cs-color-status-neutral-solid: #3f4a5c;
  --cs-color-status-neutral-on-solid: #ffffff;
  --cs-color-status-neutral-text: #3f4a5c;
  --cs-color-status-neutral-graphic: #5b6576;
  --cs-color-status-neutral-subtle: #eef2f7;
  --cs-color-status-neutral-border: #c5ced9;
  --cs-color-nav-bg: #14243a;
  --cs-color-nav-bg-raised: #1b2f4b;
  --cs-color-nav-hover: #1b2f4b;
  --cs-color-nav-active-bg: #133a44;
  --cs-color-nav-border: #24395a;
  --cs-color-nav-text: #cbd5e1;
  --cs-color-nav-text-muted: #94a3b8;
  --cs-color-nav-text-strong: #f8fafc;
  --cs-color-nav-active-text: #5eead4;
  --cs-color-nav-active-indicator: #2dd4bf;
  --cs-color-nav-focus: #7dd3fc;
  --cs-color-chart-1: #2563eb;
  --cs-color-chart-2: #0d9488;
  --cs-color-chart-3: #b45309;
  --cs-color-chart-4: #7c3aed;
  --cs-color-chart-5: #db2777;
  --cs-color-chart-6: #0e7490;
  --cs-color-chart-7: #4d7c0f;
  --cs-color-chart-8: #64748b;
  --cs-color-chart-grid: #dce3ec;
  --cs-color-chart-axis: #5b6576;
  --cs-shadow-0: none;
  --cs-shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06);
  --cs-shadow-2: 0 4px 12px rgba(16, 24, 40, 0.10);
  --cs-shadow-3: 0 12px 32px rgba(16, 24, 40, 0.16);
}
[data-cs-theme="dark"] {
  --cs-color-bg-page: #0b1220;
  --cs-color-bg-surface: #152033;
  --cs-color-bg-raised: #1b2f4b;
  --cs-color-bg-sunken: #0b1220;
  --cs-color-bg-hover: #1b2f4b;
  --cs-color-bg-selected: #1b3358;
  --cs-color-bg-backdrop: #000000a6;
  --cs-color-text-primary: #e2e8f0;
  --cs-color-text-secondary: #b8c2d1;
  --cs-color-text-muted: #94a3b8;
  --cs-color-text-disabled: #7c8799;
  --cs-color-text-link: #93c5fd;
  --cs-color-text-link-hover: #bfdbfe;
  --cs-color-text-inverse: #0b1220;
  --cs-color-border-subtle: #24395a;
  --cs-color-border-default: #2b3a55;
  --cs-color-border-strong: #6b7a92;
  --cs-color-focus-ring: #60a5fa;
  --cs-color-focus-ring-danger: #f87171;
  --cs-color-action-primary-bg: #2563eb;
  --cs-color-action-primary-bg-hover: #1d4ed8;
  --cs-color-action-primary-bg-active: #1e40af;
  --cs-color-action-primary-text: #ffffff;
  --cs-color-action-secondary-bg: #152033;
  --cs-color-action-secondary-bg-hover: #1b2f4b;
  --cs-color-action-secondary-bg-active: #24395a;
  --cs-color-action-secondary-text: #e2e8f0;
  --cs-color-action-secondary-border: #6b7a92;
  --cs-color-action-ghost-bg-hover: #1b2f4b;
  --cs-color-action-ghost-bg-active: #24395a;
  --cs-color-action-ghost-text: #b8c2d1;
  --cs-color-action-danger-bg: #dc2626;
  --cs-color-action-danger-bg-hover: #b91c1c;
  --cs-color-action-danger-bg-active: #991b1b;
  --cs-color-action-danger-text: #ffffff;
  --cs-color-action-disabled-bg: #1b2f4b;
  --cs-color-action-disabled-text: #7c8799;
  --cs-color-action-disabled-border: #24395a;
  --cs-color-accent-solid: #0f766e;
  --cs-color-accent-on-solid: #ffffff;
  --cs-color-accent-text: #2dd4bf;
  --cs-color-accent-graphic: #14b8a6;
  --cs-color-status-success-solid: #15803d;
  --cs-color-status-success-on-solid: #ffffff;
  --cs-color-status-success-text: #4ade80;
  --cs-color-status-success-graphic: #4ade80;
  --cs-color-status-success-subtle: #0f2a1d;
  --cs-color-status-success-border: #15803d;
  --cs-color-status-warning-solid: #b45309;
  --cs-color-status-warning-on-solid: #ffffff;
  --cs-color-status-warning-text: #fbbf24;
  --cs-color-status-warning-graphic: #fbbf24;
  --cs-color-status-warning-subtle: #2e2410;
  --cs-color-status-warning-border: #b45309;
  --cs-color-status-danger-solid: #dc2626;
  --cs-color-status-danger-on-solid: #ffffff;
  --cs-color-status-danger-text: #f87171;
  --cs-color-status-danger-graphic: #f87171;
  --cs-color-status-danger-subtle: #301619;
  --cs-color-status-danger-border: #b91c1c;
  --cs-color-status-info-solid: #0369a1;
  --cs-color-status-info-on-solid: #ffffff;
  --cs-color-status-info-text: #38bdf8;
  --cs-color-status-info-graphic: #38bdf8;
  --cs-color-status-info-subtle: #0f2433;
  --cs-color-status-info-border: #0369a1;
  --cs-color-status-pending-solid: #7c3aed;
  --cs-color-status-pending-on-solid: #ffffff;
  --cs-color-status-pending-text: #a78bfa;
  --cs-color-status-pending-graphic: #a78bfa;
  --cs-color-status-pending-subtle: #251a40;
  --cs-color-status-pending-border: #7c3aed;
  --cs-color-status-neutral-solid: #3f4a5c;
  --cs-color-status-neutral-on-solid: #ffffff;
  --cs-color-status-neutral-text: #94a3b8;
  --cs-color-status-neutral-graphic: #94a3b8;
  --cs-color-status-neutral-subtle: #1b2f4b;
  --cs-color-status-neutral-border: #2b3a55;
  --cs-color-nav-bg: #14243a;
  --cs-color-nav-bg-raised: #1b2f4b;
  --cs-color-nav-hover: #1b2f4b;
  --cs-color-nav-active-bg: #133a44;
  --cs-color-nav-border: #24395a;
  --cs-color-nav-text: #cbd5e1;
  --cs-color-nav-text-muted: #94a3b8;
  --cs-color-nav-text-strong: #f8fafc;
  --cs-color-nav-active-text: #5eead4;
  --cs-color-nav-active-indicator: #2dd4bf;
  --cs-color-nav-focus: #7dd3fc;
  --cs-color-chart-1: #60a5fa;
  --cs-color-chart-2: #2dd4bf;
  --cs-color-chart-3: #fbbf24;
  --cs-color-chart-4: #a78bfa;
  --cs-color-chart-5: #f472b6;
  --cs-color-chart-6: #22d3ee;
  --cs-color-chart-7: #a3e635;
  --cs-color-chart-8: #94a3b8;
  --cs-color-chart-grid: #24395a;
  --cs-color-chart-axis: #94a3b8;
  --cs-shadow-0: none;
  --cs-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --cs-shadow-2: 0 8px 24px rgba(0, 0, 0, 0.45);
  --cs-shadow-3: 0 16px 48px rgba(0, 0, 0, 0.55);
}
:root, [data-density="compact"] {
  --cs-control-height: 36px;
  --cs-control-height-sm: 28px;
  --cs-icon-button: 32px;
  --cs-row-height: 36px;
  --cs-cell-padding-y: 6px;
  --cs-cell-padding-x: 12px;
  --cs-card-padding: 16px;
  --cs-card-header-padding-y: 8px;
  --cs-section-gap: 12px;
  --cs-page-gutter: 16px;
}
[data-density="comfortable"] {
  --cs-control-height: 40px;
  --cs-control-height-sm: 32px;
  --cs-icon-button: 40px;
  --cs-row-height: 48px;
  --cs-cell-padding-y: 12px;
  --cs-cell-padding-x: 16px;
  --cs-card-padding: 20px;
  --cs-card-header-padding-y: 12px;
  --cs-section-gap: 20px;
  --cs-page-gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root[data-cs-theme="system"] {
    --cs-color-bg-page: #0b1220;
    --cs-color-bg-surface: #152033;
    --cs-color-bg-raised: #1b2f4b;
    --cs-color-bg-sunken: #0b1220;
    --cs-color-bg-hover: #1b2f4b;
    --cs-color-bg-selected: #1b3358;
    --cs-color-bg-backdrop: #000000a6;
    --cs-color-text-primary: #e2e8f0;
    --cs-color-text-secondary: #b8c2d1;
    --cs-color-text-muted: #94a3b8;
    --cs-color-text-disabled: #7c8799;
    --cs-color-text-link: #93c5fd;
    --cs-color-text-link-hover: #bfdbfe;
    --cs-color-text-inverse: #0b1220;
    --cs-color-border-subtle: #24395a;
    --cs-color-border-default: #2b3a55;
    --cs-color-border-strong: #6b7a92;
    --cs-color-focus-ring: #60a5fa;
    --cs-color-focus-ring-danger: #f87171;
    --cs-color-action-primary-bg: #2563eb;
    --cs-color-action-primary-bg-hover: #1d4ed8;
    --cs-color-action-primary-bg-active: #1e40af;
    --cs-color-action-primary-text: #ffffff;
    --cs-color-action-secondary-bg: #152033;
    --cs-color-action-secondary-bg-hover: #1b2f4b;
    --cs-color-action-secondary-bg-active: #24395a;
    --cs-color-action-secondary-text: #e2e8f0;
    --cs-color-action-secondary-border: #6b7a92;
    --cs-color-action-ghost-bg-hover: #1b2f4b;
    --cs-color-action-ghost-bg-active: #24395a;
    --cs-color-action-ghost-text: #b8c2d1;
    --cs-color-action-danger-bg: #dc2626;
    --cs-color-action-danger-bg-hover: #b91c1c;
    --cs-color-action-danger-bg-active: #991b1b;
    --cs-color-action-danger-text: #ffffff;
    --cs-color-action-disabled-bg: #1b2f4b;
    --cs-color-action-disabled-text: #7c8799;
    --cs-color-action-disabled-border: #24395a;
    --cs-color-accent-solid: #0f766e;
    --cs-color-accent-on-solid: #ffffff;
    --cs-color-accent-text: #2dd4bf;
    --cs-color-accent-graphic: #14b8a6;
    --cs-color-status-success-solid: #15803d;
    --cs-color-status-success-on-solid: #ffffff;
    --cs-color-status-success-text: #4ade80;
    --cs-color-status-success-graphic: #4ade80;
    --cs-color-status-success-subtle: #0f2a1d;
    --cs-color-status-success-border: #15803d;
    --cs-color-status-warning-solid: #b45309;
    --cs-color-status-warning-on-solid: #ffffff;
    --cs-color-status-warning-text: #fbbf24;
    --cs-color-status-warning-graphic: #fbbf24;
    --cs-color-status-warning-subtle: #2e2410;
    --cs-color-status-warning-border: #b45309;
    --cs-color-status-danger-solid: #dc2626;
    --cs-color-status-danger-on-solid: #ffffff;
    --cs-color-status-danger-text: #f87171;
    --cs-color-status-danger-graphic: #f87171;
    --cs-color-status-danger-subtle: #301619;
    --cs-color-status-danger-border: #b91c1c;
    --cs-color-status-info-solid: #0369a1;
    --cs-color-status-info-on-solid: #ffffff;
    --cs-color-status-info-text: #38bdf8;
    --cs-color-status-info-graphic: #38bdf8;
    --cs-color-status-info-subtle: #0f2433;
    --cs-color-status-info-border: #0369a1;
    --cs-color-status-pending-solid: #7c3aed;
    --cs-color-status-pending-on-solid: #ffffff;
    --cs-color-status-pending-text: #a78bfa;
    --cs-color-status-pending-graphic: #a78bfa;
    --cs-color-status-pending-subtle: #251a40;
    --cs-color-status-pending-border: #7c3aed;
    --cs-color-status-neutral-solid: #3f4a5c;
    --cs-color-status-neutral-on-solid: #ffffff;
    --cs-color-status-neutral-text: #94a3b8;
    --cs-color-status-neutral-graphic: #94a3b8;
    --cs-color-status-neutral-subtle: #1b2f4b;
    --cs-color-status-neutral-border: #2b3a55;
    --cs-color-nav-bg: #14243a;
    --cs-color-nav-bg-raised: #1b2f4b;
    --cs-color-nav-hover: #1b2f4b;
    --cs-color-nav-active-bg: #133a44;
    --cs-color-nav-border: #24395a;
    --cs-color-nav-text: #cbd5e1;
    --cs-color-nav-text-muted: #94a3b8;
    --cs-color-nav-text-strong: #f8fafc;
    --cs-color-nav-active-text: #5eead4;
    --cs-color-nav-active-indicator: #2dd4bf;
    --cs-color-nav-focus: #7dd3fc;
    --cs-color-chart-1: #60a5fa;
    --cs-color-chart-2: #2dd4bf;
    --cs-color-chart-3: #fbbf24;
    --cs-color-chart-4: #a78bfa;
    --cs-color-chart-5: #f472b6;
    --cs-color-chart-6: #22d3ee;
    --cs-color-chart-7: #a3e635;
    --cs-color-chart-8: #94a3b8;
    --cs-color-chart-grid: #24395a;
    --cs-color-chart-axis: #94a3b8;
    --cs-shadow-0: none;
    --cs-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
    --cs-shadow-2: 0 8px 24px rgba(0, 0, 0, 0.45);
    --cs-shadow-3: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}
@media (max-width: 767.98px) {
  :root {
    --cs-control-height: 44px;
    --cs-icon-button: 44px;
    --cs-row-height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --cs-motion-duration-fast: 0ms;
    --cs-motion-duration-base: 0ms;
    --cs-motion-duration-slow: 0ms;
  }
}
