  :root {
    --bg: #f4f5f8; --card: #ffffff; --fg: #1f2329; --muted: #5b6370; --line: #e4e7ec;
    --ink: #24305e; --ink-fg: #ffffff; --accent: #2f5fd0; --soft: #eef1fb; --hl: #fee500;
    --paper: #fffdf5; --paper-line: rgba(36, 48, 94, 0.07); --margin: rgba(214, 69, 65, 0.35); --stamp: #d64541; --done: #127a3f; --done-bg: #ecf8f0;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #121418; --card: #1b1e23; --fg: #e9ecf1; --muted: #a3abb8; --line: #343a44;
      --ink: #fee500; --ink-fg: #191600; --accent: #8fb0ff; --soft: #1f2a44; --hl: #6b5f12;
      --paper: #1e2130; --paper-line: rgba(200, 210, 255, 0.06); --margin: rgba(255, 120, 110, 0.35); --stamp: #ff8a80; --done: #6fd39b; --done-bg: #16291e;
    }
  }
  :root[data-theme="dark"] {
    --bg: #121418; --card: #1b1e23; --fg: #e9ecf1; --muted: #a3abb8; --line: #343a44;
    --ink: #fee500; --ink-fg: #191600; --accent: #8fb0ff; --soft: #1f2a44; --hl: #6b5f12;
    --paper: #1e2130; --paper-line: rgba(200, 210, 255, 0.06); --margin: rgba(255, 120, 110, 0.35); --stamp: #ff8a80; --done: #6fd39b; --done-bg: #16291e;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; line-height: 1.65; word-break: keep-all; }
  main { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }

  /* 헤더: 알림장 표지 */
  header.hero {
    position: relative; margin-top: 20px; padding: 30px 20px 22px 40px; border-radius: 6px 18px 18px 6px;
    background:
      linear-gradient(90deg, transparent 25px, var(--margin) 25px, var(--margin) 27px, transparent 27px),
      repeating-linear-gradient(180deg, transparent 0 29px, var(--paper-line) 29px 30px), var(--paper);
    border: 1px solid var(--line);
  }
  header.hero .brand { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; }
  header.hero .stamp { color: var(--stamp); border: 2px solid var(--stamp); border-radius: 6px; padding: 0 8px; font-size: 12px; transform: rotate(-5deg); white-space: nowrap; }
  header.hero h1 { font-size: 27px; line-height: 1.35; margin: 14px 0 8px; letter-spacing: -0.03em; }
  header.hero h1 em { font-style: normal; background: linear-gradient(transparent 60%, var(--hl) 60%); }
  header.hero p { margin: 0; color: var(--muted); }

  .progress { margin-top: 16px; }
  .progress .bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
  .progress .bar i { display: block; height: 100%; width: 0; background: var(--done); transition: width .3s; }
  .progress small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
  .progress b { color: var(--done); }

  section.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 20px 0; }
  section.card h2 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
  section.card > p.lead { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

  /* 내 상황 고르기 */
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips button {
    font: inherit; font-size: 15px; padding: 8px 14px; border-radius: 99px; cursor: pointer;
    border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  }
  .chips button[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); font-weight: 700; }

  /* 체크리스트 카드 — 가로 2열, 단일 버튼 */
  .list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .item {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--fg); text-decoration: none; transition: opacity .2s;
  }
  .item.dim { opacity: 0.45; }
  .item.match { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
  .item .head { display: flex; gap: 10px; align-items: flex-start; }
  .item .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 21px; }
  .item .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .item strong { font-size: 15px; line-height: 1.35; letter-spacing: -0.02em; }
  .item .short { font-size: 13px; color: var(--muted); line-height: 1.4; }
  .item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .item .go { margin-top: auto; padding-top: 12px; }
  .item .go span { display: block; text-align: center; padding: 9px 6px; border-radius: 10px; background: var(--ink); color: var(--ink-fg); font-weight: 800; font-size: 14px; }
  .item .start, .item .done-badge { display: inline-block; font-size: 11px; font-weight: 800; border-radius: 5px; padding: 0 5px; margin-left: 2px; vertical-align: 1px; }
  .item .start { color: var(--stamp); border: 1.5px solid var(--stamp); }
  .item .done-badge { display: none; color: var(--done); border: 1.5px solid var(--done); background: var(--done-bg); }
  @media (max-width: 420px) {
    .item { padding: 12px 10px 10px; }
    .item .head { gap: 8px; }
    .item .ic { width: 32px; height: 32px; border-radius: 9px; font-size: 17px; }
    .item strong { font-size: 14px; }
  }
  .item.done { background: var(--done-bg); border-color: var(--done); }
  .item.done .done-badge { display: inline-block; }
  .item.done .start { display: none; }

  .calc-link { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--soft); text-decoration: none; color: var(--fg); }
  .calc-link + .calc-link { margin-top: 8px; }
  .calc-link b { display: block; font-size: 16px; }
  .calc-link span { font-size: 13px; color: var(--muted); }
  .calc-link .arr { margin-left: auto; color: var(--accent); font-weight: 800; }

  ol.calendar { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  @media (max-width: 480px) { ol.calendar { grid-template-columns: 1fr; } }
  ol.calendar li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
  ol.calendar b { display: block; color: var(--stamp); font-size: 15px; }
  ol.calendar span { font-size: 14px; }

  .warn { background: var(--paper); border: 1px dashed var(--stamp); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
  .warn strong { color: var(--stamp); }

  details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
  details.faq summary { font-weight: 700; cursor: pointer; }
  details.faq p { margin: 8px 0 0; }
  .ad { margin: 24px 0; min-height: 100px; }
  .ad.ad-top { margin: 16px 0 4px; min-height: 90px; }
  .disclaimer { font-size: 13px; color: var(--muted); }
  footer { text-align: center; font-size: 13px; color: var(--muted); padding: 24px 16px 40px; }
  footer a { color: var(--muted); }

/* ── 상세 페이지 ─────────────────────────────── */
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: inherit; text-decoration: none; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.facts span { font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); }
.facts b { color: var(--ink); }
ul.who { list-style: none; padding: 0; margin: 0; }
ul.who li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed var(--line); }
ul.who li:last-child { border-bottom: 0; }
ul.who li::before { content: "✓"; position: absolute; left: 4px; top: 7px; font-weight: 900; color: var(--stamp); }
.finds { display: flex; flex-wrap: wrap; gap: 8px; }
.finds span { padding: 6px 12px; border-radius: 10px; background: var(--soft); font-size: 14px; font-weight: 600; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px solid var(--line); }
ol.steps li:last-child { border-bottom: 0; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--ink-fg); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.two h3 { font-size: 16px; margin: 0 0 8px; }
.two ul { margin: 0; padding-left: 18px; font-size: 14px; }
.two li { margin: 4px 0; }
.more-all { display: block; text-align: center; margin-top: 12px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* 마지막: 공식 사이트로 이동 */
.final {
  margin: 28px 0 8px; padding: 22px 20px; border-radius: 18px; text-align: center;
  background: var(--paper); border: 2px solid var(--ink);
}
.final .final-kicker { font-size: 13px; font-weight: 800; color: var(--stamp); }
.final h2 { font-size: 21px; margin: 6px 0 4px; letter-spacing: -0.02em; }
.final p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.final a.official {
  display: block; padding: 16px; border-radius: 14px; background: var(--ink); color: var(--ink-fg);
  font-size: 18px; font-weight: 800; text-decoration: none;
}
.final small { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
