:root {
  --bg: #f7f8fa; --surface: #ffffff; --surface-2: #f1f4f7; --text: #0f172a; --muted: #5b6575; --line: #e2e7ee;
  --brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #e6f4f2; --accent: #1d4ed8; --danger: #b91c1c;
  --warn: #b45309; --ok: #047857; --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 24px rgba(15, 23, 42, .06);
  --font: "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1016; --surface: #121a23; --surface-2: #18222d; --text: #e6edf5; --muted: #98a4b3; --line: #243140;
    --brand: #2dd4bf; --brand-ink: #062a26; --brand-soft: #10302d; --accent: #7aa2ff; --danger: #f87171;
    --warn: #fbbf24; --ok: #34d399; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); letter-spacing: -0.01em; }
a { color: var(--accent); }
img, video { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); font-size: 14px; }
.logo small { color: var(--muted); font-weight: 500; }
nav.links { display: flex; gap: 16px; font-size: 14px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.4vw, 30px); }
h3 { font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
section { padding: 48px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font: 600 15px var(--font); padding: 11px 18px; border-radius: 10px;
  cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: 13px; }
.btn.block { width: 100%; }
input, select, textarea { width: 100%; font: 15px var(--font); color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text); font-size: 14px; }
label.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 140px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.pill.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.pill.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pill.gray { background: var(--surface-2); color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 99px;
  padding: 8px 14px; font: 600 14px var(--font); cursor: pointer; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cmp th, table.cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp th { color: var(--muted); font-weight: 600; }
table.cmp td.us { background: var(--brand-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.step[hidden] { display: none; }
.step h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 13px; margin-right: 8px; }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.cand { border: 2px solid var(--line); border-radius: 12px; padding: 6px; background: var(--surface); cursor: pointer; text-align: center; font-size: 12px; }
.cand img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.cand[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.notice { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.notice.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 10px; z-index: 99; max-width: calc(100% - 32px); font-size: 14px; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; max-width: 760px; width: calc(100% - 32px);
  background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog .dlg-body { padding: 20px; max-height: 70vh; overflow: auto; font-size: 14px; }
dialog .dlg-foot { padding: 12px 20px; border-top: 1px solid var(--line); text-align: right; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.dot.off { background: var(--danger); }
.kpi { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.list { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.hidden { display: none !important; }
@media (max-width: 640px) {
  nav.links { display: none; }
  section { padding: 32px 0; }
  .card { padding: 16px; }
}
