:root {
  --fg: #1d2330; --muted: #667085; --line: #e4e7ec; --accent: #1f5fbf; --bg: #ffffff; --soft: #f6f8fb;
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e9ef; --muted: #98a2b3; --line: #2c3340; --accent: #7aa7ff; --bg: #12161d; --soft: #1a2029; }
}
body { margin: 0; color: var(--fg); background: var(--bg); line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site, footer.site, main { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.site { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
header.site .brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); }
header.site nav a { margin-left: 18px; }
footer.site { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 0.9rem; }
h1 { font-size: 1.7rem; margin: 28px 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.intro p { max-width: 760px; }
.stats { display: flex; gap: 28px; margin: 20px 0; }
.stats dt { color: var(--muted); font-size: 0.85rem; }
.stats dd { margin: 0; font-size: 1.5rem; font-weight: 600; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px 8px; margin: 22px 0; }
.badge { display: inline-block; font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); vertical-align: middle; }
.badge.preview { color: #a15c00; border-color: #f0c27a; }
.note { background: var(--soft); border-left: 3px solid var(--accent); padding: 8px 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.kv { width: auto; min-width: 420px; }
pre { background: var(--soft); padding: 12px; overflow-x: auto; font-size: 0.85rem; }
.citation { font-size: 0.9rem; color: var(--muted); }
.filter { margin: 12px 0; }

.goal { font-size: 2rem; margin: 4px 0 8px; }
.bar { height: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; max-width: 640px; }
.bar > div { height: 100%; background: var(--accent); }
.hours { display: flex; gap: 4px; align-items: flex-end; height: 120px; margin: 8px 0 24px; }
.hour { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hour > div { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 1px; }
.hour > span { font-size: 0.7rem; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
h3 { font-size: 1rem; margin: 18px 0 6px; }
