
:root {
  --ink: #172033;
  --ink-soft: #5f687a;
  --navy: #15213f;
  --navy-2: #23345f;
  --paper: #f6f2e9;
  --paper-2: #fffdf8;
  --line: #ded7c8;
  --accent: #ff7a45;
  --accent-soft: #fff0e8;
  --good: #18794e;
  --good-bg: #e9f7f0;
  --bad: #b42318;
  --bad-bg: #fff0ee;
  --blue-bg: #edf3ff;
  --shadow: 0 18px 48px rgba(21,33,63,.10);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; min-height:100%; }
body {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,122,69,.10), transparent 26rem),
    linear-gradient(180deg, #fbf8f1 0%, #f5f0e6 100%);
}
button, select, input { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.brandbar {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.brand {
  display:flex;
  align-items:center;
  gap:14px;
}
.logo {
  width:54px; height:54px; border-radius:17px;
  display:grid; place-items:center;
  background:var(--navy); color:#fff;
  font-weight:900; letter-spacing:.04em;
  box-shadow:var(--shadow);
}
.kicker { color:var(--accent); font-size:12px; font-weight:800; letter-spacing:.12em; }
h1 { margin:2px 0 0; font-size:clamp(24px,4vw,34px); letter-spacing:-.04em; }
.subtitle { margin-top:4px; color:var(--ink-soft); font-size:14px; }
.status {
  display:flex; align-items:center; gap:7px;
  min-height:38px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.68);
  color:var(--ink-soft);
  font-size:12px;
  white-space:nowrap;
}
.dot { width:8px; height:8px; border-radius:50%; background:#a4a9b3; }
.dot.live { background:#1f9d63; }
.dot.seed { background:#f59e0b; }

.panel {
  background:rgba(255,253,248,.92);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  padding:22px;
  margin-bottom:16px;
}
.hero {
  padding:26px;
  background:
    linear-gradient(135deg, rgba(21,33,63,.98), rgba(35,52,95,.96));
  color:#fff;
  border:0;
}
.hero h2 { margin:0 0 8px; font-size:clamp(26px,5vw,42px); letter-spacing:-.05em; }
.hero p { margin:0; color:rgba(255,255,255,.76); line-height:1.7; }
.hero .mini { margin-top:16px; display:flex; gap:8px; flex-wrap:wrap; }
.pill {
  padding:7px 10px; border-radius:999px; font-size:12px;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.14);
}

.section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.section-title h3 { margin:0; font-size:18px; letter-spacing:-.03em; }
.muted { color:var(--ink-soft); font-size:13px; line-height:1.6; }

.set-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.set-card {
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:14px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.set-card input { margin-top:4px; accent-color:var(--navy); }
.set-card strong { display:block; font-size:14px; }
.set-card small { display:block; color:var(--ink-soft); margin-top:3px; line-height:1.4; }

.control-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.control label { display:block; font-size:12px; font-weight:800; color:var(--ink-soft); margin-bottom:7px; }
.control select {
  width:100%; border:1px solid var(--line); border-radius:14px; background:#fff;
  color:var(--ink); padding:12px 13px; outline:none;
}
.actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.btn {
  border:0; border-radius:14px; padding:12px 16px;
  background:var(--navy); color:#fff; font-weight:800;
}
.btn:hover { filter:brightness(1.05); }
.btn.secondary { background:#fff; color:var(--navy); border:1px solid var(--line); }
.btn.accent { background:var(--accent); }
.btn.danger { background:#fff; color:var(--bad); border:1px solid #f0c9c5; }
.btn:disabled { opacity:.45; cursor:not-allowed; }

.quick-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.quick {
  border:1px solid var(--line); border-radius:18px; background:#fff; padding:16px;
}
.quick strong { display:block; font-size:16px; margin-bottom:5px; }
.quick .metric { font-size:26px; font-weight:900; color:var(--navy); margin:8px 0 2px; }

.top-wrong { margin:10px 0 0; padding:0; list-style:none; }
.top-wrong li {
  display:flex; justify-content:space-between; gap:12px; padding:8px 0;
  border-top:1px dashed var(--line); font-size:13px;
}
.top-wrong b { color:var(--bad); }

.exam-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.progress-wrap { flex:1; }
.progress-label { display:flex; justify-content:space-between; font-size:12px; color:var(--ink-soft); margin-bottom:7px; }
.progress { height:8px; border-radius:99px; background:#e7e1d6; overflow:hidden; }
.progress > div { height:100%; background:var(--accent); border-radius:99px; }
.question-card { padding:28px; }
.direction {
  display:inline-block; padding:6px 9px; border-radius:999px;
  background:var(--blue-bg); color:var(--navy); font-size:12px; font-weight:800;
}
.prompt {
  margin:20px 0 22px; font-size:clamp(26px,5vw,42px); font-weight:900;
  letter-spacing:-.04em; line-height:1.25; word-break:keep-all;
}
.choices { display:grid; gap:10px; }
.choice {
  width:100%; text-align:left; border:1px solid var(--line); background:#fff;
  border-radius:16px; padding:15px 16px; color:var(--ink);
  display:flex; gap:12px; align-items:flex-start;
}
.choice:hover { border-color:#b9bfd0; }
.choice.selected { border-color:var(--navy); box-shadow:0 0 0 2px rgba(21,33,63,.08); background:#f8faff; }
.choice .num {
  width:25px; height:25px; flex:0 0 25px; display:grid; place-items:center;
  border-radius:8px; background:#f1eee6; font-size:12px; font-weight:900;
}
.exam-actions { display:flex; justify-content:space-between; gap:10px; margin-top:18px; }

.result-score { text-align:center; padding:14px 0 20px; }
.result-score .big { font-size:56px; font-weight:950; color:var(--navy); letter-spacing:-.06em; }
.result-score .small { color:var(--ink-soft); margin-top:4px; }
.result-badges { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:14px; }
.badge { padding:8px 11px; border-radius:999px; font-size:13px; font-weight:800; }
.badge.good { color:var(--good); background:var(--good-bg); }
.badge.bad { color:var(--bad); background:var(--bad-bg); }

.review-list { display:grid; gap:8px; margin-top:16px; }
.review-row { padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.review-row strong { display:block; }
.review-row small { color:var(--ink-soft); }

.notice {
  padding:12px 14px; border-radius:14px; margin-bottom:14px;
  background:#fff8dd; border:1px solid #f1d990; color:#6b5600; font-size:13px; line-height:1.55;
}

.footer {
  text-align:center; margin-top:20px; color:#8a8f9d; font-size:12px;
}
.linklike { border:0; background:transparent; padding:0; color:var(--navy); font-weight:800; }
.spacer { height:4px; }

@media (max-width:700px) {
  .shell { width:min(100% - 20px,960px); padding-top:18px; }
  .brandbar { align-items:center; }
  .logo { width:48px; height:48px; border-radius:15px; }
  .status { font-size:11px; padding:7px 9px; }
  .panel { padding:17px; border-radius:20px; }
  .hero { padding:21px; }
  .set-grid, .control-grid, .quick-grid { grid-template-columns:1fr; }
  .question-card { padding:20px 17px; }
  .prompt { margin-top:16px; }
}
