:root {
    --app-bg: #f4f6f8;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-muted: #eef2f5;
    --text: #17202a;
    --text-muted: #667085;
    --border: #d9e0e7;

    --brand-primary: #1f2937;
    --brand-secondary: #64748b;
    --brand-accent: #2563eb;

    --success: #147a4d;
    --warning: #9a6700;
    --danger: #b42318;
    --info: #175cd3;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);

    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;

    --sidebar-width: 248px;
    --topbar-height: 68px;
    --mobile-nav-height: 68px;

    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --transition-fast: 160ms ease;
    --transition-normal: 220ms ease;
}

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

html {
    min-width: 320px;
    background: var(--app-bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--text);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand-accent) 70%, white);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}
