:root {
    /* Surface */
    --color-bg: #f8fafc;
    --color-bg-subtle: #f1f5f9;
    --color-paper: #ffffff;

    /* Ink */
    --color-ink: #0f172a;
    --color-ink-muted: #64748b;
    --color-ink-subtle: #94a3b8;

    /* Primary — teal */
    --color-primary: #0d9488;
    --color-primary-hover: #0f766e;
    --color-primary-subtle: #ccfbf1;

    /* Secondary */
    --color-secondary: #64748b;
    --color-secondary-hover: #475569;
    --color-secondary-subtle: #f1f5f9;

    /* Semantic */
    --color-success: #16a34a;
    --color-success-bg: #dcfce7;
    --color-warning: #ca8a04;
    --color-warning-bg: #fef9c3;
    --color-danger: #dc2626;
    --color-danger-bg: #fee2e2;

    /* Borders */
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;

    /* Sidebar */
    --sidebar-bg: #0f172a;
    --sidebar-fg: #cbd5e1;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(13, 148, 136, 0.15);
    --sidebar-active-fg: #2dd4bf;
    --sidebar-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

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

    /* Shadows */
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px rgb(0 0 0 / 0.06);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-ink);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.text-muted {
    color: var(--color-ink-muted) !important;
}

.mono {
    font-family: var(--font-mono);
}
