:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #17212b;
  --muted: #5b6875;
  --line: #d9e0e7;
  --accent: #0b5fff;
  --accent-text: #ffffff;
  --done: #1f8a4c;
  --error-bg: #fdecec;
  --error-text: #9b1c1c;
  --note-bg: #eef4ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419;
    --card: #182028;
    --text: #e8edf2;
    --muted: #9aa8b5;
    --line: #2b3742;
    --accent: #4d8dff;
    --accent-text: #0b1220;
    --done: #4cc38a;
    --error-bg: #3a1a1a;
    --error-text: #ffb4b4;
    --note-bg: #1b2a44;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.6;
}
.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}
.eyebrow { margin: 0; color: var(--accent); font-weight: 700; font-size: 14px; }
h1 { margin: 4px 0 20px; font-size: 26px; line-height: 1.3; }
h2 { margin: 0 0 8px; font-size: 18px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.note { background: var(--note-bg); border-radius: 10px; padding: 12px 14px; font-size: 14px; }

.steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 6px; }
.steps li { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.steps li::before {
  content: attr(data-n);
  display: grid; place-items: center;
  width: 28px; height: 28px; margin: 0 auto 4px;
  border-radius: 50%; border: 2px solid var(--line); font-weight: 700;
}
.steps li.active { color: var(--text); font-weight: 700; }
.steps li.active::before { border-color: var(--accent); color: var(--accent); }
.steps li.done { color: var(--done); }
.steps li.done::before { content: "✓"; border-color: var(--done); background: var(--done); color: var(--card); }

.btn, button {
  display: block; width: 100%;
  padding: 14px 16px; margin: 0 0 10px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: var(--accent-text);
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.btn.secondary, button.secondary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
button:disabled { opacity: .6; cursor: progress; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

label { display: block; margin: 0 0 14px; font-weight: 700; font-size: 14px; }
input {
  display: block; width: 100%; margin-top: 6px; padding: 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit;
}
.error { background: var(--error-bg); color: var(--error-text); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.linkish { background: none; color: var(--muted); font-weight: 400; font-size: 13px; text-decoration: underline; width: auto; padding: 4px 0; margin: 12px 0 0; display: inline-block; }
