:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1b1f24;
  --muted: #5f6b78;
  --line: #e3e6ea;
  --accent: #1f6feb;
  --accent-soft: #e8f0fe;
  --warn: #b54708;
  --warn-soft: #fff4e5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --card: #1b2027;
    --text: #e9edf1;
    --muted: #9aa6b2;
    --line: #2c333c;
    --accent: #6ea8ff;
    --accent-soft: #1d2a3d;
    --warn: #f5a35b;
    --warn-soft: #2e2116;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.top, main, .foot { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 14px; }
.home { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
h1 { font-size: 24px; line-height: 1.35; margin: 10px 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 16px 0 6px; }
.by { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.by a { color: var(--accent); font-weight: 600; text-decoration: none; }
.lead { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 14px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.choice:first-of-type { border-top: 0; padding-top: 0; }
.choice input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.field { display: block; font-weight: 600; margin: 0 0 14px; }
.field:last-child { margin-bottom: 0; }
.money { display: flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 12px; }
.money:focus-within { border-color: var(--accent); }
.money input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 20px; font-weight: 700; text-align: right; padding: 10px 6px 10px 0; outline: none; }
.money em { font-style: normal; color: var(--muted); font-weight: 500; }
.hint, .tip { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.hint { text-align: right; min-height: 1em; }
.tip { margin: 8px 0 0; }
.result { background: var(--accent-soft); border-color: transparent; }
.big { font-size: 32px; font-weight: 800; margin: 0; color: var(--accent); line-height: 1.2; }
.sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.warn { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 8px 10px; font-size: 14px; margin: 10px 0 0; }
.rows { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.row span:first-child { flex: none; max-width: 55%; }
.row span:last-child { text-align: right; font-weight: 600; }
.row.strong { font-weight: 700; }
.seg { display: flex; gap: 8px; margin: 4px 0 0; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.plan { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan p { margin: 0; }
.plan b { font-size: 24px; color: var(--accent); }
.notice { font-size: 14px; color: var(--text); background: var(--card); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.how ul { padding-left: 18px; margin: 0; font-size: 14px; }
.how li { margin: 0 0 6px; }
.more a { display: block; color: var(--accent); font-weight: 600; text-decoration: none; }
.privacy { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0 8px; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding-bottom: 28px; }
.foot a { color: inherit; }
.pair { display: flex; gap: 10px; }
.pair .field { flex: 1; min-width: 0; }
.pair .money input { font-size: 18px; }
.money input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.label { font-weight: 600; margin: 0 0 6px; }
.seg span small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.seg input:checked + span small { color: inherit; }
.row.minus span:last-child { color: var(--warn); }
.tip.top0 { margin: 0 0 10px; }
.table-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp th, .cmp td { padding: 7px 3px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.cmp thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 12px; }
.cmp th[scope="row"], .cmp thead th:first-child { text-align: left; white-space: normal; font-weight: 500; min-width: 5em; }
.cmp tr.on th, .cmp tr.on td { font-weight: 800; color: var(--accent); }
.more h3 { margin-top: 14px; }
.more a + a { margin-top: 8px; }
.row.note { font-size: 13px; color: var(--muted); }
.row.note span:last-child { font-weight: 500; }
