/* Design Tokens — single source of truth */
:root {
    /* Surfaces */
    --surface-0: #ffffff;
    --surface-1: #f8f9fb;
    --surface-2: #f1f3f5;
    --surface-3: #e9ecef;

    /* Text */
    --text-primary: #1a1d21;
    --text-secondary: #495057;
    --text-tertiary: #868e96;

    /* Brand */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-subtle: #eff6ff;
    --accent-muted: #dbeafe;

    /* Semantic */
    --success: #059669;
    --success-subtle: #ecfdf5;
    --warning: #d97706;
    --warning-subtle: #fffbeb;
    --danger: #dc2626;
    --danger-subtle: #fef2f2;

    /* Legacy aliases (used by components not yet migrated) */
    --color-primary: var(--accent);
    --color-secondary: var(--text-primary);
    --color-accent: var(--warning);
    --color-success: var(--success);
    --color-danger: var(--danger);
    --color-text: var(--text-primary);
    --color-text-light: var(--text-tertiary);
    --color-bg: var(--surface-1);
    --color-card: var(--surface-0);
    --color-border: var(--surface-3);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, monospace;

    /* Layout */
    --header-height: 64px;
    --sidebar-width: 280px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}
