:root {
    --color-background: #eef1f4;
    --color-surface: #ffffff;
    --color-surface-muted: #f5f6f7;

    --color-border: #c9ced4;
    --color-border-light: #dfe3e7;

    --color-text: #202428;
    --color-text-muted: #606870;
    --color-text-light: #7a828a;

    --color-primary: #245ea8;
    --color-primary-hover: #1c4d8d;
    --color-primary-active: #173f73;

    --color-secondary: #e3e6e9;
    --color-secondary-hover: #d5d9dd;

    --color-success: #2f6f44;
    --color-success-background: #edf6f0;

    --color-warning: #8a6116;
    --color-warning-background: #fff7e6;

    --color-error: #a63737;
    --color-error-background: #fbeeee;

    --sidebar-width: 230px;
    --topbar-height: 74px;

    --radius-small: 3px;
    --radius-medium: 5px;

    --shadow-panel: 0 1px 3px rgba(0, 0, 0, 0.08);

    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-5: 24px;
    --spacing-6: 32px;
}

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

html {
    min-height: 100%;
    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-background);
}

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

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

button {
    cursor: pointer;
}

a {
    color: var(--color-primary);
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 4px;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
}

h2 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    line-height: 1.55;
}

code {
    padding: 2px 5px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-small);
    background: var(--color-surface-muted);
    font-family: Consolas, monospace;
    font-size: 0.9em;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid rgba(36, 94, 168, 0.3);
    outline-offset: 2px;
}