/* AuraDesk Design System v1.0 — Canonical Design Tokens (/assets/aura-tokens.css) */
:root {
  /* Brand Palette (Dusty Rose) */
  --brand: #9A4A5B;
  --brand-hover: #833B4B;
  --brand-soft: #F9EBEF;
  --brand-border: #E5CFD4;

  /* Surfaces & Borders */
  --bg: #FAF7F6;
  --surface: #FFFFFF;
  --surface-subtle: #FBF6F5;
  --border: #EAE0DE;
  --border-strong: #DAC9C6;

  /* 3-Tier Text Grayscale */
  --text-primary: #2A1F23;
  --text-secondary: #6D5B62;
  --text-muted: #9C8A90;

  /* Semantic Status Colors */
  --ok: #2D7A5C;
  --ok-soft: #EAF6F0;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --danger: #C43B43;
  --danger-soft: #FCEEEF;

  /* L1–L5 Tier & Churn Colors */
  --tier-l1: #8A787E;
  --tier-l1-soft: #F5F0F1;
  --tier-l2: #5C7A89;
  --tier-l2-soft: #EEF4F7;
  --tier-l3: #B45309;
  --tier-l3-soft: #FEF4E6;
  --tier-l4: #9A4A5B;
  --tier-l4-soft: #F9EBEF;
  --tier-l5: #5D3D35;
  --tier-l5-soft: #F3EAE6;
  --tier-churn: #C43B43;
  --tier-churn-soft: #FCEEEF;

  /* Typography Scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13.5px;
  --fs-base: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 22px;

  /* Radii & Spacing */
  --radius-sm: 8px;
  --radius-ctrl: 10px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-card: 20px;
  --space-page-x: 32px;
  --space-page-y: 20px;
  --header-height: 56px;
  --sidebar-width: 232px;

  /* Elevation Shadows */
  --shadow-card: 0 1px 4px rgba(42, 31, 35, 0.03);
  --shadow-popover: 0 8px 24px rgba(42, 31, 35, 0.12);
  --shadow-modal: 0 20px 50px rgba(42, 31, 35, 0.22);

  /* Global Z-Index Ladder (Strict Hierarchy) */
  --z-base: 1;
  --z-header: 90;
  --z-drawer: 200;
  --z-popover: 300;
  --z-modal: 1000;
  --z-toast: 99999;

  /* Motion Tokens */
  --motion-fast: 130ms;
  --motion-base: 220ms;
  --motion-slow: 360ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-base: 0ms;
    --motion-slow: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
