/* A single cascade order: feature layouts → tokens → components → app layout. */
@layer legacy, tokens, components, shell, responsive;
@layer tokens {
  :root {
    color-scheme: dark;
    --bg-void: #0b0d12;
    --bg-panel: #171b23;
    --bg-panel-raised: #202530;
    --bg-panel-hover: #272d39;
    --bg-subtle: #11151d;
    --surface-2: var(--bg-panel-raised);
    --border-subtle: #2b313d;
    --border-strong: #444e60;
    --text-primary: #f4f5f7;
    --text-secondary: #b0b8c7;
    --text-tertiary: #a0aaba;
    --accent: #9aafff;
    --accent-dim: #9aafff;
    --accent-soft: #252f49;
    --accent-glow: #35456b;
    --danger: #f28c94;
    --danger-soft: #3c252d;
    --warn: #e8b96e;
    --warn-soft: #372d21;
    --success: #7ad5b2;
    --success-soft: #20382f;
    --font-body: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
    --font-display: var(--font-body);
    --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-sheet: 24px;
    --control-sm: 44px;
    --control-md: 46px;
    --control-lg: 50px;
    --shadow-panel: none;
    --sidebar-w: 248px;
    --topbar-h: 76px;
    --content-readable: 1440px;
    --ease: cubic-bezier(.2,.7,.25,1);
    --duration-fast: 140ms;
    --duration-enter: 200ms;
    --bottom-nav-h: 70px;
  }
}
