:root {
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --line-height-xs: 1rem;
  --line-height-sm: 1.25rem;
  --line-height-md: 1.5rem;
  --line-height-lg: 1.625rem;
  --line-height-xl: 1.875rem;
  --line-height-2xl: 2.25rem;
  --line-height-3xl: 2.75rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --elevation-flat: none;
  --elevation-raised: 0 1px 2px rgba(21, 23, 44, 0.06), 0 1px 1px rgba(21, 23, 44, 0.04);
  --elevation-floating: 0 12px 32px rgba(0, 0, 70, 0.14), 0 2px 6px rgba(21, 23, 44, 0.08);
  --z-base: 0;
  --z-sticky: 10;
  --z-rail: 20;
  --z-overlay: 40;
  --z-dialog: 50;
  --z-toast: 60;
  --layout-rail-width: 248px;
  --layout-top-bar-height: 64px;
  --layout-content-max-width: 1180px;
  --layout-readable-width: 680px;
  --layout-touch-target: 48px;
  --layout-control-height: 44px;
  --layout-control-height-compact: 36px;
  --breakpoint-compact: 640px;
  --breakpoint-medium: 960px;
  --breakpoint-wide: 1280px;
  --motion-quick: 120ms;
  --motion-standard: 200ms;
  --motion-gentle: 320ms;
  --motion-easing: cubic-bezier(0.2, 0, 0, 1);
  --text-display-size: var(--font-size-3xl);
  --text-display-line-height: var(--line-height-3xl);
  --text-display-weight: var(--font-weight-semibold);
  --text-display-tracking: -0.025rem;
  --text-title-size: var(--font-size-2xl);
  --text-title-line-height: var(--line-height-2xl);
  --text-title-weight: var(--font-weight-semibold);
  --text-title-tracking: -0.025rem;
  --text-heading-size: var(--font-size-lg);
  --text-heading-line-height: var(--line-height-lg);
  --text-heading-weight: var(--font-weight-semibold);
  --text-heading-tracking: 0rem;
  --text-body-size: var(--font-size-md);
  --text-body-line-height: var(--line-height-md);
  --text-body-weight: var(--font-weight-regular);
  --text-body-tracking: 0rem;
  --text-body-strong-size: var(--font-size-md);
  --text-body-strong-line-height: var(--line-height-md);
  --text-body-strong-weight: var(--font-weight-semibold);
  --text-body-strong-tracking: 0rem;
  --text-label-size: var(--font-size-sm);
  --text-label-line-height: var(--line-height-sm);
  --text-label-weight: var(--font-weight-medium);
  --text-label-tracking: 0rem;
  --text-caption-size: var(--font-size-xs);
  --text-caption-line-height: var(--line-height-xs);
  --text-caption-weight: var(--font-weight-regular);
  --text-caption-tracking: 0rem;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --color-canvas: #F4F5FA;
  --color-surface: #FFFFFF;
  --color-surface-raised: #FFFFFF;
  --color-surface-sunken: #EAEBF3;
  --color-overlay: rgba(10, 11, 31, 0.48);
  --color-text-primary: #15172C;
  --color-text-secondary: #4B4E68;
  --color-text-muted: #5E6180;
  --color-text-on-brand: #FFFFFF;
  --color-text-link: #0000D6;
  --color-border-subtle: #EAEBF3;
  --color-border-default: #D9DBE8;
  --color-border-strong: #BFC2D4;
  --color-brand: #0000FF;
  --color-brand-hover: #0000D6;
  --color-brand-pressed: #0000A8;
  --color-brand-subtle: #F3F3FF;
  --color-brand-subtle-text: #0000A8;
  --color-focus-ring: #999CFC;
  --color-selection: #CCCDFD;
  --color-progress: #999CFC;
  --tone-neutral-fg: #363851;
  --tone-neutral-bg: #EAEBF3;
  --tone-neutral-border: #D9DBE8;
  --tone-brand-fg: #0000A8;
  --tone-brand-bg: #E6E7FE;
  --tone-brand-border: #CCCDFD;
  --tone-success-fg: #0E7A54;
  --tone-success-bg: #DDF4E9;
  --tone-success-border: #B9E6D2;
  --tone-warning-fg: #9A5B00;
  --tone-warning-bg: #FCEFD6;
  --tone-warning-border: #F3D9A6;
  --tone-danger-fg: #C42B1C;
  --tone-danger-bg: #FBE3E1;
  --tone-danger-border: #F5C2BD;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-canvas: #0A0B1F;
    --color-surface: #15172C;
    --color-surface-raised: #23253C;
    --color-surface-sunken: #06071A;
    --color-overlay: rgba(0, 0, 0, 0.64);
    --color-text-primary: #FAFAFD;
    --color-text-secondary: #BFC2D4;
    --color-text-muted: #9093AC;
    --color-text-on-brand: #FFFFFF;
    --color-text-link: #B3B5FC;
    --color-border-subtle: #23253C;
    --color-border-default: #363851;
    --color-border-strong: #4B4E68;
    --color-brand: #5458FE;
    --color-brand-hover: #999CFC;
    --color-brand-pressed: #0000FF;
    --color-brand-subtle: #13154A;
    --color-brand-subtle-text: #CCCDFD;
    --color-focus-ring: #B3B5FC;
    --color-selection: #0000A8;
    --color-progress: #999CFC;
    --tone-neutral-fg: #D9DBE8;
    --tone-neutral-bg: #23253C;
    --tone-neutral-border: #363851;
    --tone-brand-fg: #CCCDFD;
    --tone-brand-bg: #16185A;
    --tone-brand-border: #00007A;
    --tone-success-fg: #4CC896;
    --tone-success-bg: #0B3D2C;
    --tone-success-border: #165C43;
    --tone-warning-fg: #F3B23E;
    --tone-warning-bg: #4A2C00;
    --tone-warning-border: #6B4300;
    --tone-danger-fg: #F27264;
    --tone-danger-bg: #5C140D;
    --tone-danger-border: #86231A;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --color-canvas: #0A0B1F;
  --color-surface: #15172C;
  --color-surface-raised: #23253C;
  --color-surface-sunken: #06071A;
  --color-overlay: rgba(0, 0, 0, 0.64);
  --color-text-primary: #FAFAFD;
  --color-text-secondary: #BFC2D4;
  --color-text-muted: #9093AC;
  --color-text-on-brand: #FFFFFF;
  --color-text-link: #B3B5FC;
  --color-border-subtle: #23253C;
  --color-border-default: #363851;
  --color-border-strong: #4B4E68;
  --color-brand: #5458FE;
  --color-brand-hover: #999CFC;
  --color-brand-pressed: #0000FF;
  --color-brand-subtle: #13154A;
  --color-brand-subtle-text: #CCCDFD;
  --color-focus-ring: #B3B5FC;
  --color-selection: #0000A8;
  --color-progress: #999CFC;
  --tone-neutral-fg: #D9DBE8;
  --tone-neutral-bg: #23253C;
  --tone-neutral-border: #363851;
  --tone-brand-fg: #CCCDFD;
  --tone-brand-bg: #16185A;
  --tone-brand-border: #00007A;
  --tone-success-fg: #4CC896;
  --tone-success-bg: #0B3D2C;
  --tone-success-border: #165C43;
  --tone-warning-fg: #F3B23E;
  --tone-warning-bg: #4A2C00;
  --tone-warning-border: #6B4300;
  --tone-danger-fg: #F27264;
  --tone-danger-bg: #5C140D;
  --tone-danger-border: #86231A;
  color-scheme: dark;
}

