:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-muted: #f2f5f8;
    --surface-selected: #eef5ff;
    --border: #dfe5ec;
    --border-strong: #cbd4df;
    --text-primary: #172033;
    --text-secondary: #4c596d;
    --text-muted: #7b8798;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eef5ff;
    --success: #07845a;
    --success-soft: #eaf8f2;
    --warning: #b76405;
    --warning-soft: #fff7e8;
    --danger: #c9362b;
    --danger-soft: #fff0ee;
    --info: #166ba8;
    --info-soft: #edf7ff;
    --radius-sm: 4px;
    --radius-md: 7px;
    --radius-lg: 10px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --topbar-height: 48px;
    --nav-width: 196px;

    /* Legacy aliases retained for page-level styles. */
    --ink: var(--text-primary);
    --muted: var(--text-secondary);
    --subtle: var(--text-muted);
    --line: var(--border);
    --line-strong: var(--border-strong);
    --canvas: var(--bg);
    --surface-soft: var(--surface-muted);
    --primary: var(--accent);
    --primary-hover: var(--accent-hover);
    --primary-soft: var(--accent-soft);
}

* { box-sizing: border-box; }
html { min-width: 320px; max-width: 100%; overflow-x: hidden; color-scheme: light; }
body { margin: 0; min-width: 320px; color: var(--text-primary); background: var(--bg); font-family: Inter, Pretendard, "Noto Sans KR", "Segoe UI", sans-serif; font-size: 13px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a, input, select, textarea, summary { outline-offset: 2px; }
:focus-visible { outline: 2px solid rgba(37, 99, 235, .58); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
h2 { margin-bottom: 0; font-size: 15px; line-height: 1.35; }
h3 { margin-bottom: 0; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
