:root {
  --color-bg: #060914;
  --color-bg-elevated: #0a1020;
  --color-surface: rgba(15, 23, 43, 0.78);
  --color-surface-solid: #111a2d;
  --color-surface-hover: #16223a;
  --color-border: rgba(155, 176, 221, 0.14);
  --color-border-strong: rgba(155, 176, 221, 0.24);
  --color-text: #f7f9ff;
  --color-text-muted: #98a6c3;
  --color-text-subtle: #687791;
  --color-primary: #7c5cff;
  --color-primary-strong: #967cff;
  --color-accent: #21b8ff;
  --color-cyan: #50e5ff;
  --color-success: #31d8a0;
  --color-warning: #ffb84d;
  --color-danger: #ff6882;
  --gradient-brand: linear-gradient(135deg, #8b63ff 0%, #526dff 48%, #24c5ff 100%);
  --gradient-panel: linear-gradient(145deg, rgba(24, 34, 62, 0.8), rgba(9, 15, 30, 0.88));
  --gradient-hero: radial-gradient(circle at 12% 0%, rgba(124, 92, 255, .18), transparent 30%), radial-gradient(circle at 88% 18%, rgba(33, 184, 255, .14), transparent 26%);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --radius-sm: .625rem;
  --radius-md: .875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .18);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, .38);
  --shadow-glow: 0 0 42px rgba(93, 101, 255, .2);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 4vw, 2.5rem);
  --text-hero: clamp(2.15rem, 6vw, 4.6rem);
  --sidebar-width: 15.5rem;
  --right-panel-width: 19rem;
  --topbar-height: 4.5rem;
  --bottom-nav-height: 4.75rem;
  --z-base: 1;
  --z-sticky: 20;
  --z-overlay: 50;
  --z-toast: 80;
  --z-chat-content: 5;
  --z-composer: 10;
  --z-bottom-nav: 20;
  --z-drawer: 100;
  --z-modal: 110;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --bp-tablet: 48rem;
  --bp-desktop: 72rem;
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-standard: 0ms; }
}
