/* HazPDF: navy ink, blue actions, quiet slate surfaces. */
/* HazPDF Premium Design System Tokens */
:root {
    --bg-canvas: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-dim: #f1f5f9;
    --bg-surface-selected: #e0f2fe;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --color-primary: #137BEC;
    --color-primary-hover: #0b4f8a;
    --color-primary-soft: #e0f2fe;
    
    --color-success: #16a34a;
    --color-warning: #ea580c;
    --color-danger: #dc2626;
    
    --hue-organize: #0284c7;
    --hue-merge: #4f46e5;
    --hue-split: #0ea5e9;
    --hue-compress: #0d9488;
    --hue-edit: #2563eb;
    --hue-protect: #7c3aed;
    --hue-convert: #e11d48;
    --hue-ai: #d97706;
    --hue-ai-light: #fef3c7;

    --overlay: rgb(15 23 42 / 40%);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    
    --text-caption: 0.75rem;
    --text-small: 0.8125rem;
    --text-body: 0.9375rem;
    --text-section: 1.125rem;
    --text-title: 1.5rem;
    
    --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-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-pill: 9999px;
    
    --shadow-paper: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-popover: 0 8px 32px rgba(15, 23, 42, 0.08);
    --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.02);
    
    --control-height: 40px;
    --container-width: 1280px;
    
    --z-header: 30;
    --z-toolbar: 40;
    --z-popover: 60;
    --z-sheet: 80;
    --z-modal: 100;
    --z-toast: 120;
    
    --motion-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Compatibility Aliases for existing UI */
    --radius-control: var(--radius-sm);
    --radius-card: var(--radius-md);
    --radius-modal: var(--radius-lg);
    --radius-pill: 9999px;
    --background: var(--bg-canvas);
    --surface: var(--bg-surface);
    --surface-secondary: var(--bg-surface-dim);
    --surface-selected: var(--bg-surface-selected);
    --border: var(--border-subtle);
    --text-main: var(--text-primary);
    --accent: var(--color-primary);
    --accent-hover: var(--color-primary-hover);
    --accent-bright: var(--color-primary);
    --accent-soft: var(--color-primary-soft);
    --success: var(--color-success);
    --warning: var(--color-warning);
    --danger: var(--color-danger);
    --bg-primary: var(--bg-canvas);
    --bg-dim: var(--bg-surface-dim);
    --border-color: var(--border-subtle);
    --border-focus: var(--color-primary);
    --grad-primary: var(--color-primary);
    --grad-card-hover: var(--bg-surface-selected);
    --shadow-hover: var(--shadow-paper);
    
    /* Stitch Specific Tokens */
    --stitch-canvas-bg: var(--bg-canvas);
    --stitch-sidebar-bg: var(--bg-surface);
    --stitch-surface: var(--bg-surface);
    --stitch-surface-soft: var(--bg-surface-dim);
    --stitch-surface-dim: var(--bg-surface-dim);
    --stitch-border: var(--border-subtle);
    --stitch-border-subtle: var(--border-subtle);
    --stitch-text-dark: var(--text-primary);
    --stitch-text-muted: var(--text-muted);
    --stitch-blue-primary: var(--color-primary);
    --stitch-blue-hover: var(--color-primary-hover);
    --stitch-blue-accent: var(--color-primary);
    --stitch-blue-tint: var(--bg-surface-selected);
    --stitch-grad-btn: var(--color-primary);
    --stitch-shadow-paper: var(--shadow-paper);
    --stitch-shadow-popover: var(--shadow-popover);
    --stitch-ring-glow: 0 0 0 2px var(--color-primary-soft);
}
