  :root {
    --bg: #f4f5f8; --card: #ffffff; --fg: #1f2329; --muted: #5b6370; --line: #e4e7ec;
    --ink: #0f4c5c; --ink-fg: #ffffff; --accent: #0f766e; --soft: #e6f4f1; --hl: #ffe066;
    --paper: #f3faf8; --paper-line: rgba(15, 76, 92, 0.07); --margin: rgba(15, 118, 110, 0.35); --stamp: #0f766e; --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: #5fd3c3; --soft: #15302d; --hl: #6b5f12;
      --paper: #16262a; --paper-line: rgba(160, 230, 220, 0.06); --margin: rgba(95, 211, 195, 0.35); --stamp: #5fd3c3; --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: #5fd3c3; --soft: #15302d; --hl: #6b5f12;
    --paper: #16262a; --paper-line: rgba(160, 230, 220, 0.06); --margin: rgba(95, 211, 195, 0.35); --stamp: #5fd3c3; --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; }

/* 계산기 */
.calc label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: 15px; }
.calc label small { color: var(--muted); font-weight: 400; }
.calc input, .calc select { width: 100%; box-sizing: border-box; font-size: 17px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.calc input:focus, .calc select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .calc .grid { grid-template-columns: 1fr; } }
.calc .seg { display: flex; gap: 6px; }
.calc .seg label { position: relative; flex: 1; margin: 0; font-weight: 600; text-align: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.calc .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc .seg label:has(input:checked) { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.calc input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--accent); }
.calc .shift-out { font-weight: 800; color: var(--accent); }
.calc button.go-calc { width: 100%; margin-top: 20px; padding: 15px; font-size: 17px; font-weight: 800; border: 0; border-radius: 12px; background: var(--ink); color: var(--ink-fg); cursor: pointer; }
.result { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--soft); display: none; }
.result.show { display: block; }
.result .label { font-size: 15px; color: var(--muted); }
.result .big { font-size: 34px; font-weight: 900; color: var(--accent); line-height: 1.2; margin: 4px 0; }
.result .note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 0; font-size: 15px; }
.result dt { color: var(--muted); } .result dd { margin: 0; text-align: right; font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 9px 6px; text-align: right; white-space: nowrap; }
th { font-size: 13px; color: var(--muted); font-weight: 600; } th:first-child, td:first-child { text-align: left; }
td.good { color: var(--accent); font-weight: 800; }
.caption { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
