/* =========================================================
   주식·배당·ISA·건보료 통합 절세 계산기 — style.css
   ========================================================= */

:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #fbfcfb;
  --ink: #10161c;
  --ink-2: #3b4653;
  --ink-3: #5b6573;   /* 흰 배경 5.9:1, 회색·연초록 배경 5.2:1 이상 (WCAG AA) */
  --line: #e3e8e6;
  --line-strong: #d2dad6;
  --brand: #0b6b57;
  --brand-2: #0f8a6f;
  --brand-mid: #0d7a63; /* 흰 글씨 배경용: 5.3:1 */
  --brand-ink: #06453a;
  --brand-soft: #e9f5f1;
  --brand-soft-2: #d7ede6;
  --gold: #8a5200;    /* 연노랑 배경 5.8:1 */
  --gold-soft: #fdf3e3;
  --warn: #a8580a;
  --warn-soft: #fdf1e5;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .04), 0 8px 24px -12px rgba(16, 24, 32, .14);
  --shadow-lg: 0 2px 4px rgba(16, 24, 32, .05), 0 24px 48px -24px rgba(16, 24, 32, .25);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; font-weight: 750; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
b, strong { font-weight: 700; }
small { font-size: .82em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(145deg, var(--brand-mid), var(--brand));
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -0.03em;
}
.brand-text { font-weight: 800; font-size: 15.5px; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 6px; }
.brand-text small { font-weight: 600; font-size: 11px; color: var(--ink-3); letter-spacing: 0; }

.site-nav {
  display: flex; gap: 4px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto; padding: 7px 11px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 85% -10%, #dff0ea 0%, rgba(223, 240, 234, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 44px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(11, 107, 87, .05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(11, 107, 87, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 70% 10%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 10%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(30px, 6.2vw, 46px);
  letter-spacing: -0.045em;
  font-weight: 820;
  color: #0a1f19;
}
.hero-lead {
  margin-top: 16px; max-width: 620px;
  font-size: clamp(15px, 2.6vw, 17px); color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-size: 15.5px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-mid), var(--brand));
  color: #fff; box-shadow: 0 8px 20px -10px rgba(11, 107, 87, .8);
}
.btn-primary:hover { box-shadow: 0 10px 26px -10px rgba(11, 107, 87, .9); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }

.chips {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin: 30px 0 0; padding: 0; list-style: none;
}
.chips li {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 13px; color: var(--ink-3);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}
.chips b { color: var(--brand-ink); font-size: 13.5px; }

/* ---------------- sections ---------------- */
.section { padding: 48px 0 8px; }
.section-head { margin-bottom: 18px; }
.step {
  display: block;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em;
  color: var(--brand); margin-bottom: 7px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(21px, 4vw, 27px); }
.section-head p { margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 720px; }

/* ---------------- cards ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card-flush { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.card-head h3 { font-size: 16px; }
.card-tools { display: flex; gap: 6px; }

.link-btn {
  background: none; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 6px 11px; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.link-btn:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }

/* ---------------- fields ---------------- */
.field-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.field-grid-3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input,
.select-wrap select {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 14px;
  font-family: inherit;
  font-size: 17px; font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.select-wrap select {
  padding-right: 34px; font-size: 15px; font-weight: 600;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7684' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.input-wrap input:focus,
.select-wrap select:focus {
  outline: none;
  border-color: var(--brand-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 138, 111, .13);
}
.input-wrap input:hover { border-color: #b9c4c0; }
.unit {
  position: absolute; right: 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  pointer-events: none;
}
.field-accent input { border-color: var(--brand-soft-2); background: #fbfefd; }
.field-accent label::after {
  content: "특례";
  margin-left: 6px; font-size: 10.5px; font-weight: 700; color: var(--gold);
  background: var(--gold-soft); border-radius: 5px; padding: 1px 5px; vertical-align: 1px;
}
.hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------------- mini summary ---------------- */
.mini-summary {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.mini-item { display: flex; flex-direction: column; gap: 3px; }
.mini-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.mini-label small { font-weight: 500; }
.mini-item strong {
  font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.mini-item strong.is-calm { color: var(--brand); font-size: 16px; }
.mini-item strong.is-warn { color: var(--danger); font-size: 16px; }

/* ---------------- status banner ---------------- */
.status-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand-2);
  border-radius: 14px; padding: 15px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.status-banner.is-over { border-left-color: var(--danger); background: #fff8f7; }
.status-dot {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand-2); margin-top: 8px;
  box-shadow: 0 0 0 4px rgba(15, 138, 111, .14);
}
.status-banner.is-over .status-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.status-banner strong { font-size: 15.5px; display: block; }
.status-banner p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------------- compare ---------------- */
.compare-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.compare-card { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.compare-card.is-recommended { border-color: var(--brand-soft-2); box-shadow: 0 0 0 1px var(--brand-soft-2), var(--shadow); }
.compare-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.compare-card.is-recommended .compare-head { background: linear-gradient(180deg, #f2faf7, #fbfefd); }
.compare-tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand-ink); background: var(--brand-soft);
  border-radius: 6px; padding: 3px 8px; margin-bottom: 8px;
}
.compare-card:not(.is-recommended) .compare-tag { color: var(--ink-3); background: #f1f3f4; }
.compare-head h3 { font-size: 16.5px; }
.compare-head p { font-size: 13px; color: var(--ink-3); margin-top: 5px; }
.compare-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }

.big-number { display: flex; flex-direction: column; gap: 2px; }
.big-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.big-value {
  font-size: clamp(26px, 6vw, 32px); font-weight: 800; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.compare-card.is-recommended .big-value { color: var(--brand-ink); }
.big-sub { font-size: 12.5px; color: var(--ink-3); }

.breakdown { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.breakdown > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.breakdown dt { color: var(--ink-3); }
.breakdown dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

.flag {
  position: absolute; top: 14px; right: 14px;
  background: var(--brand); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
}

/* ---------------- verdict ---------------- */
.verdict {
  display: flex; gap: 12px; align-items: center;
  margin-top: 14px; padding: 16px 18px;
  background: linear-gradient(120deg, #0b6b57, #0e7f66);
  color: #fff; border-radius: 14px;
  box-shadow: 0 14px 30px -18px rgba(11, 107, 87, .9);
}
.verdict.is-neutral { background: linear-gradient(120deg, #45505c, #59646f); box-shadow: none; }
.verdict.is-negative { background: linear-gradient(120deg, #8a2c22, #a63a2d); box-shadow: 0 14px 30px -18px rgba(138, 44, 34, .8); }
.verdict-label {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  background: rgba(255, 255, 255, .18); padding: 4px 9px; border-radius: 6px;
}
.verdict-text { font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.verdict-text b { color: #fff; font-weight: 800; }

/* ---------------- notes ---------------- */
.note-card { margin-top: 14px; padding: 0; }
.note-card > summary,
.inline-note > summary,
.more-inputs > summary {
  cursor: pointer; list-style: none;
  padding: 16px 22px; font-size: 14px; font-weight: 700; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.note-card > summary::-webkit-details-marker,
.inline-note > summary::-webkit-details-marker,
.more-inputs > summary::-webkit-details-marker { display: none; }
.note-card > summary::before,
.inline-note > summary::before,
.more-inputs > summary::before {
  content: "+"; font-size: 15px; font-weight: 700; color: var(--brand-2);
  width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 5px; background: var(--brand-soft); flex: 0 0 auto;
}
.note-card[open] > summary::before,
.inline-note[open] > summary::before,
.more-inputs[open] > summary::before { content: "−"; }
.summary-hint {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  background: #f1f3f4; padding: 2px 7px; border-radius: 5px;
}
.note-body { padding: 0 22px 20px; }
.inline-note {
  margin-top: 16px; border-top: 1px dashed var(--line-strong);
}
.inline-note > summary { padding: 14px 0 6px; }
.inline-note .dot-list { padding-bottom: 4px; }

.dot-list { margin: 0; padding: 0 0 0 2px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dot-list li {
  position: relative; padding-left: 14px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.6;
}
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2); opacity: .55;
}

/* ---------------- result strip ---------------- */
.result-strip {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 20px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.result-cell {
  background: var(--surface); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.result-cell span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.result-cell strong {
  font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.result-cell.is-strong { background: #f7fbf9; }
.result-cell.is-strong strong { color: var(--brand-ink); }

.saving-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin-top: 14px; padding: 15px 18px;
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2);
  border-radius: 14px;
}
.saving-banner.is-flat { background: #f4f6f5; border-color: var(--line); }
.saving-label { font-size: 12.5px; font-weight: 700; color: var(--brand-ink); }
.saving-value { font-size: 22px; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.saving-desc { flex: 1 1 240px; font-size: 13px; color: var(--ink-2); }

.footnote { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.65; }
.footnote a { color: var(--brand); }

/* ---------------- segmented ---------------- */
.segmented {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 10px;
  background: #eef1f0; border-radius: 13px;
}
.segmented-sm { margin-bottom: 16px; }
.seg {
  flex: 1 1 0; min-height: 44px; padding: 8px 6px;
  border: 0; border-radius: 10px; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 650; color: var(--ink-3);
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.seg:hover { color: var(--ink); }
.seg.is-active {
  background: #fff; color: var(--brand-ink);
  box-shadow: 0 1px 3px rgba(16, 24, 32, .12);
}
.segmented-sm .seg { font-size: 13px; min-height: 40px; }

.more-inputs {
  border: 1px dashed var(--line-strong); border-radius: 13px;
  margin-bottom: 18px; background: var(--surface-2);
}
.more-inputs > summary { padding: 13px 16px; }
.more-inputs .field-grid { padding: 4px 16px 18px; }

/* ---------------- nhis result ---------------- */
.nhis-result { display: flex; flex-direction: column; gap: 16px; }

.nhis-hero {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(150deg, #f1faf7, #fbfefd);
  border: 1px solid var(--brand-soft-2);
}
.nhis-hero.is-bad { background: linear-gradient(150deg, #fdf3f2, #fffafa); border-color: #f6d6d3; }
.nhis-hero .label { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.nhis-hero .amount {
  display: block; margin-top: 2px;
  font-size: clamp(30px, 7vw, 38px); font-weight: 820; letter-spacing: -0.04em;
  color: var(--brand-ink); font-variant-numeric: tabular-nums;
}
.nhis-hero.is-bad .amount { color: var(--danger); }
.nhis-hero .sub { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }

.nhis-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.nhis-cell {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.nhis-cell span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.nhis-cell strong { font-size: 16px; font-variant-numeric: tabular-nums; }

.elig {
  display: flex ; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2);
}
.elig.is-ok { border-color: var(--brand-soft-2); background: #f6fcf9; }
.elig.is-out { border-color: #f6d6d3; background: #fff9f8; }
.elig-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; font-weight: 800;
  background: var(--brand-soft); color: var(--brand);
}
.elig.is-out .elig-icon { background: #fdeceb; color: var(--danger); }
.elig h3 { font-size: 15.5px; }
.elig p { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }

.check-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.check-row {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 13px; color: var(--ink-2);
}
.check-row .mark { flex: 0 0 auto; font-weight: 800; }
.check-row.is-pass .mark { color: var(--brand); }
.check-row.is-fail .mark { color: var(--danger); }
.check-row .val { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sub-title { font-size: 16px; margin-top: 24px; }
.sub-desc { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; margin-bottom: 12px; }

.scenario-table-wrap { margin-top: 8px; }

/* ---------------- tables ---------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; min-width: 520px;
}
.data-table caption { text-align: left; }
.data-table th, .data-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  white-space: nowrap; border-bottom: 1px solid var(--line-strong);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.data-table small { color: var(--ink-3); }
.table-empty { color: var(--ink-3); text-align: center !important; }
.card-flush .data-table th, .card-flush .data-table td { padding: 13px 18px; }
.card-flush .data-table { min-width: 640px; }

/* ---------------- cliff ---------------- */
.cliff {
  margin-top: 22px; padding: 16px 18px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2);
}
.cliff h3 { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.cliff h3::before {
  content: "!"; display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #e8ecea; color: var(--ink-3); font-size: 12px; font-weight: 800;
}
.cliff p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.cliff.is-hot { border-color: #f0c9c4; background: var(--danger-soft); }
.cliff.is-hot h3::before { background: var(--danger); color: #fff; }
.cliff.is-warm { border-color: #f3dcc0; background: var(--warn-soft); }
.cliff.is-warm h3::before { background: var(--warn); color: #fff; }

/* ---------------- faq ---------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item > summary {
  cursor: pointer; list-style: none;
  padding: 17px 20px; font-size: 15px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; margin-left: auto; flex: 0 0 auto;
  width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 9px; }
.faq-body p { font-size: 14px; color: var(--ink-2); line-height: 1.72; }

/* ---------------- ad slot ---------------- */
.ad-slot { margin: 32px auto; min-height: 90px; display: grid; place-items: center; }

/* ---------------- footer ---------------- */
.site-footer {
  margin-top: 56px; padding: 32px 0 44px;
  border-top: 1px solid var(--line); background: #fff;
}
.disclaimer { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.disclaimer strong { color: var(--ink); }
.footer-meta { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

/* ---------------- calc bar ---------------- */
.calc-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px;
}
.calc-bar-label { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.calc-bar .segmented { margin: 0; flex: 0 0 auto; }
.segmented-xs { padding: 3px; border-radius: 11px; }
.segmented-xs .seg { min-height: 34px; font-size: 12.5px; padding: 4px 12px; border-radius: 8px; }

/* ---------------- split card / pill ---------------- */
.card-split { margin-top: 14px; }
.card-desc { font-size: 14px; color: var(--ink-2); margin: -4px 0 18px; max-width: 760px; }
.pill {
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2); border-radius: 999px; padding: 3px 10px;
}
.field-grid-2 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------------- credit strip ---------------- */
.credit-strip {
  display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap;
  margin-top: 18px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
}
.credit-cell { display: flex; flex-direction: column; gap: 2px; flex: 1 1 130px; }
.credit-cell span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.credit-cell strong { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.credit-cell.is-strong strong { color: var(--brand-ink); }
.credit-arrow { display: grid; place-items: center; color: var(--ink-3); font-weight: 700; font-size: 14px; }

/* ---------------- triple comparison ---------------- */
.sub-title-sm { font-size: 14.5px; margin-top: 22px; }
.sub-note { font-weight: 500; font-size: 12.5px; color: var(--ink-3); margin-left: 6px; }
.sub-note b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tri-grid { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 10px; }
.tri-card {
  position: relative; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2);
}
.tri-card.is-best { border-color: var(--brand-soft-2); background: #f6fcf9; box-shadow: 0 0 0 1px var(--brand-soft-2); }
.tri-no {
  position: absolute; top: 12px; right: 14px;
  font-size: 12px; font-weight: 800; color: var(--ink-3);
}
.tri-card.is-best .tri-no { color: var(--brand); }
.tri-card h5 { font-size: 13.5px; margin: 0 0 8px; color: var(--ink-2); }
.tri-card dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.tri-card dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.tri-card dt { color: var(--ink-3); }
.tri-card dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.tri-card.is-best dd { color: var(--brand-ink); }

/* ---------------- quick set ---------------- */
.quick-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.quick-row .hint { flex: 1 1 200px; }

/* ---------------- before / after ---------------- */
.ba-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 18px; }
.ba-card {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--surface-2); display: flex; flex-direction: column;
}
.ba-card header { padding: 16px 18px 12px; border-bottom: 1px dashed var(--line-strong); }
.ba-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  padding: 2px 8px; border-radius: 5px; margin-bottom: 6px;
  color: var(--ink-3); background: #e9ecea;
}
.ba-card h3 { font-size: 15.5px; }
.ba-card header p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.ba-list { margin: 0; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.ba-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; }
.ba-list dt { color: var(--ink-3); }
.ba-list dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.ba-list .is-total { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.ba-list .is-total dt { color: var(--ink-2); font-weight: 700; }
.ba-list .is-net { margin-top: 2px; }
.ba-list .is-net dt { color: var(--brand-ink); font-weight: 700; }
.ba-list .is-net dd { font-size: 18px; font-weight: 820; color: var(--brand-ink); letter-spacing: -0.02em; }
.ba-after { background: linear-gradient(170deg, #f4fbf8, #fbfefd); border-color: var(--brand-soft-2); box-shadow: 0 0 0 1px var(--brand-soft-2); }
.ba-after .ba-tag { background: var(--brand); color: #fff; }
.ba-before .ba-list .is-net dd { color: var(--ink-2); }
.saving-big { margin-top: 16px; padding: 18px 20px; }
.saving-big .saving-value { font-size: 27px; }

/* ---------------- note variant ---------------- */
.elig.is-note { border-color: #f0dcbe; background: #fdf7ec; }
.elig.is-note .elig-icon { background: var(--gold-soft); color: var(--gold); }

/* ---------------- responsive ---------------- */
@media (min-width: 760px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0 8px; }
  .card { padding: 26px; }
  .hero { padding: 70px 0 56px; }
  .tri-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .hero h1 { letter-spacing: -0.05em; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .compare-head { padding: 17px 16px 12px; }
  .compare-body { padding: 16px 16px 18px; }
  .field-grid, .field-grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .field[for], .field-grid .field { min-width: 0; }
  .input-wrap input { font-size: 16px; padding-right: 42px; }
  .unit { right: 11px; font-size: 12px; }
  .seg { font-size: 13px; }
  .segmented-sm .seg { font-size: 12px; padding: 6px 4px; }
  .field:has(select) { grid-column: 1 / -1; }
  #isa .field-grid-3 .field { grid-column: 1 / -1; }
  .select-wrap select { font-size: 14px; }
  .scenario-table-wrap .data-table { min-width: 0; }
  .scenario-table-wrap .data-table th:nth-child(2),
  .scenario-table-wrap .data-table th:nth-child(3),
  .scenario-table-wrap .data-table td:nth-child(2),
  .scenario-table-wrap .data-table td:nth-child(3) { display: none; }
  .scenario-table-wrap .data-table th,
  .scenario-table-wrap .data-table td { padding: 11px 8px; font-size: 12.5px; }
  .card-flush .data-table { font-size: 12.5px; }
  .card-flush .data-table th, .card-flush .data-table td { padding: 11px 12px; }
  .oh { font-size: 15.5px; }
  .nhis-hero { padding: 16px; }
  .verdict { flex-direction: column; align-items: flex-start; gap: 7px; }
  .calc-bar { gap: 8px; }
  .calc-bar .segmented { width: 100%; }
  .segmented-xs .seg { font-size: 11.5px; padding: 4px 4px; }
  .credit-strip { flex-direction: column; gap: 10px; }
  .credit-arrow { display: none; }
  .credit-strip .credit-cell { flex: 0 0 auto; }
  .ba-list .is-net dd { font-size: 16.5px; }
  .saving-big .saving-value { font-size: 23px; }
  .card-desc { font-size: 13.5px; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 104px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 9px 0 7px; gap: 2px; }
  .brand-text { font-size: 15.5px; }
  .brand-mark { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  .site-nav { width: 100%; margin-left: 0; gap: 2px; }
  .site-nav a { font-size: 13px; padding: 6px 8px; }
  .hero { padding-top: 32px; }
  .section-head h2 { font-size: 19.5px; }
}

@media (max-width: 380px) {
  .field-grid, .field-grid-3 { grid-template-columns: 1fr; }
}

/* ---------------- motion / print ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .hero-actions, .chips, .link-btn, .segmented { display: none; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* =========================================================
   v1.1 — 접이식 단계 · 추천 배분 · NHIS 토글 · 실시간 요약 바
   ========================================================= */

[hidden] { display: none !important; }

/* ---------------- 단계 도구 모음 ---------------- */
.toolbar {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  justify-content: space-between;
  margin: 22px 0 0; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
}
.toolbar-text { font-size: 13px; color: var(--ink-3); }
.toolbar-text b { color: var(--ink-2); }

/* ---------------- 접이식 헤더 ---------------- */
.section-head .head-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px;
}
.section-head .head-meta .step { margin-bottom: 0; }
.head-pill {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2); border-radius: 999px;
  padding: 2px 9px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.head-pill.is-warn { color: var(--danger); background: var(--danger-soft); border-color: #f6d6d3; }
.head-pill.is-mute { color: var(--ink-3); background: #f1f3f4; border-color: var(--line); }

.head-toggle {
  all: unset;
  box-sizing: border-box;
  display: block; width: 100%; position: relative;
  padding-right: 42px; cursor: pointer;
  border-radius: 8px;
  color: inherit; font: inherit; letter-spacing: inherit;
}
.head-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 5px; }
.head-toggle .chev {
  position: absolute; right: 2px; top: 50%;
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2);
  transform: translateY(-50%);
}
.head-toggle .chev::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 7px; height: 7px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translate(-50%, -50%) rotate(-135deg);
  transition: transform .18s ease;
}
.section.is-collapsed .head-toggle .chev::before { transform: translate(-50%, -70%) rotate(45deg); }
.section.is-collapsed .section-head p { display: none; }
.section.is-collapsed .section-head { margin-bottom: 0; }
.section.is-collapsed { padding-bottom: 0; }
.step-body[hidden] { display: none !important; }

/* ---------------- STEP 05 — 건보료 반영 기준 토글 ---------------- */
.nhis-mode {
  margin: 4px 0 18px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2);
}
.nhis-mode-head { margin-bottom: 10px; }
.nhis-mode-title { font-size: 14.5px; color: var(--ink-2); }
.nhis-mode-desc { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.nhis-mode .segmented { margin-bottom: 8px; }
.nhis-mode-hint { font-size: 12.5px; font-weight: 600; color: var(--brand-ink); }
.nhis-mode-hint.is-include { color: var(--warn); }

.scenario-table-wrap .data-table tbody tr.is-active td { background: var(--brand-soft); font-weight: 700; }
.scenario-table-wrap .data-table tbody tr.is-active td:first-child { box-shadow: inset 3px 0 0 var(--brand-2); }

/* ---------------- STEP 06 — 원클릭 추천 배분 ---------------- */
.recommend-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px 18px; margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf8f4, #f8fdfb 65%);
  border: 1px solid var(--brand-soft-2);
}
.recommend-copy { flex: 1 1 260px; min-width: 0; }
.recommend-title {
  display: block; font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand); text-transform: uppercase;
}
.recommend-hint { margin-top: 4px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.btn-recommend {
  flex: 0 0 auto; min-height: 50px; font-size: 15.5px;
  padding: 0 20px;
  background: linear-gradient(180deg, var(--brand-mid), var(--brand));
  box-shadow: 0 12px 26px -14px rgba(11, 107, 87, .95);
}
.btn-recommend:hover { box-shadow: 0 14px 30px -14px rgba(11, 107, 87, 1); }
.recommend-live { margin: -8px 0 14px; font-size: 12.5px; font-weight: 650; color: var(--brand-ink); }
.recommend-live:empty { display: none; }
.badge-auto {
  display: inline-block; vertical-align: 1px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  color: #fff; background: var(--brand-mid);
  border-radius: 5px; padding: 2px 8px; margin-left: 6px;
}
.ba-after.is-auto { box-shadow: 0 0 0 2px var(--brand-2), 0 18px 40px -24px rgba(11, 107, 87, .8); }
.saving-banner.is-highlight {
  animation: bannerFlash 1.6s ease-out 2;
  border-color: var(--brand-2);
}
@keyframes bannerFlash {
  0% { background: #d6f2e8; box-shadow: 0 0 0 0 rgba(15, 138, 111, .45); }
  100% { background: var(--brand-soft); box-shadow: 0 0 0 14px rgba(15, 138, 111, 0); }
}

/* ---------------- 실시간 요약 바 ---------------- */
body.has-summary-bar { padding-bottom: 86px; }

.summary-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  animation: barIn .2s ease-out;
}
@keyframes barIn { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.summary-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 18px 44px -18px rgba(16, 24, 32, .45);
}
.summary-items {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px; flex: 1 1 auto; min-width: 0;
}
.summary-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.si-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink-3); white-space: nowrap;
}
.summary-item strong {
  font-size: 14.5px; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.summary-item strong.is-strong { color: var(--brand-ink); }
.summary-item strong.is-save { color: var(--brand); }
.bar-jump {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px;
  height: 40px; padding: 0 13px; border-radius: 11px;
  background: linear-gradient(180deg, var(--brand-mid), var(--brand));
  color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 800; letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(11, 107, 87, .9);
}
.bar-jump:hover { filter: brightness(1.05); }
.bar-jump .bar-arrow { font-weight: 700; }

@media (max-width: 560px) {
  body.has-summary-bar { padding-bottom: 82px; }
  .summary-bar { padding: 0 10px calc(8px + env(safe-area-inset-bottom)); }
  .summary-inner { gap: 8px; padding: 9px 10px 9px 13px; border-radius: 14px; }
  .summary-items { gap: 4px 8px; }
  .si-label { font-size: 9.5px; }
  .summary-item strong { font-size: 13px; }
  .bar-jump { height: 38px; padding: 0 10px; font-size: 11.5px; }
  .bar-jump .bar-arrow { display: none; }
  .btn-recommend { width: 100%; }
  .recommend-bar { padding: 14px; }
  .head-toggle .chev { width: 25px; height: 25px; }
  .toolbar { padding: 11px 13px; }
  .toolbar-text { font-size: 12.5px; }
}

@media (max-width: 380px) {
  .summary-item strong { font-size: 12px; }
  .si-label { font-size: 9px; }
  .bar-jump { padding: 0 8px; font-size: 11px; }
}

@media print {
  .summary-bar, .toolbar, .recommend-bar, .head-toggle .chev { display: none !important; }
  .step-body[hidden] { display: block !important; }
}

/* 앵커·요소 캡처 시 고정 헤더에 제목이 가리지 않도록 */
.section[id] { scroll-margin-top: 84px; }
@media (max-width: 560px) {
  .section[id] { scroll-margin-top: 112px; }
}

/* 아주 좁은 화면(≤420px)에서 세그먼트 버튼이 화면을 밀어내지 않도록 */
@media (max-width: 420px) {
  .seg { min-width: 0; }
  .segmented-sm .seg { white-space: normal; font-size: 11.5px; line-height: 1.3; padding: 6px 3px; }
  .segmented .seg { padding-left: 2px; padding-right: 2px; }
  .segmented-xs .seg { font-size: 11px; }
}

/* =========================================================
   v1.2 — 입력 편의 · 판정 배치 · 예시 표시 · 정책 메모
   ========================================================= */

/* ---------------- 숫자 입력: 오른쪽 정렬 · 16px 이상 ---------------- */
.input-wrap input { text-align: right; }
.field-helper input { text-align: right; }
.input-wrap input::placeholder { text-align: right; }

/* ---------------- 터치 영역 44px ---------------- */
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.head-toggle { display: flex; align-items: center; min-height: 44px; }
.link-btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.link-btn-sm { min-height: 36px; font-size: 12.5px; padding: 4px 9px; }
.faq-item > summary { min-height: 44px; }
.note-card > summary,
.inline-note > summary,
.more-inputs > summary { min-height: 44px; }

/* ---------------- 결론 배너: A/B 카드 위 ---------------- */
.verdict { margin: 0 0 14px; }
.calc-bar-note { font-size: 12px; color: var(--ink-3); }

/* ---------------- 예시 입력 중 배지 ---------------- */
.badge-example {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--gold); background: var(--gold-soft);
  border: 1px solid #f2ddb9; border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}
.badge-example::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: .8;
}

/* ---------------- 총급여 → 과세표준 도우미 ---------------- */
.field-helper {
  margin-top: 2px; padding: 10px 12px;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 6px;
}
.fh-title { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--brand); text-transform: uppercase; }
.fh-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fh-row input {
  flex: 1 1 90px; min-width: 0; height: 40px;
  padding: 0 8px; font-family: inherit; font-size: 16px; font-weight: 650;
  font-variant-numeric: tabular-nums; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 9px;
}
.fh-row input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(15, 138, 111, .13); }
.fh-unit { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.fh-result { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.fh-result.is-ready { color: var(--brand-ink); font-weight: 650; }
.fh-result.is-empty { color: var(--danger); }

/* ---------------- STEP 06 — 배분 미리보기 ---------------- */
.alloc-preview {
  margin: 12px 0 0; padding: 10px 14px;
  border-radius: 11px; background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2);
  font-size: 12.5px; font-weight: 650; color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 정책 메모 ---------------- */
.policy-note {
  margin-top: 14px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2);
}
.policy-note h3 {
  font-size: 14px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.policy-note .dot-list li { font-size: 13px; }

/* ---------------- 모바일: 입력·셀렉트 16px 이상 ---------------- */
@media (max-width: 520px) {
  .select-wrap select { font-size: 16px; }
  .fh-row input { font-size: 16px; }
  .field-helper { padding: 10px; }
  .policy-note { padding: 14px; }
}

/* =========================================================
   v1.3 — 상황별 프리셋 · 결과 링크 공유 · 피부양자 배지 · 추천 이유
   ========================================================= */

/* ---------------- STEP 01: 상황별 프리셋 ---------------- */
.badge-preset {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid var(--brand-soft-2); border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}

.preset-row {
  display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap;
  padding: 10px 12px; margin: -4px 0 16px;
  background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 12px;
}
.preset-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand); text-transform: uppercase; white-space: nowrap;
}
.preset-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.preset-chip {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  min-height: 36px; padding: 6px 12px; font-family: inherit;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.preset-chip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.preset-chip.is-active,
.preset-chip[aria-pressed="true"] {
  border-color: var(--brand-2); color: var(--brand-ink); background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(15, 138, 111, .15);
}
.preset-hint {
  flex: 1 1 100%; margin: 0;
  font-size: 11.5px; font-weight: 650; color: var(--ink-3); line-height: 1.5;
}

/* ---------------- STEP 06: 추천 이유 한 줄 ---------------- */
.recommend-reason {
  margin: -6px 0 16px; padding: 10px 13px;
  font-size: 12.5px; font-weight: 650; line-height: 1.55; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: 10px;
  border-left: 3px solid var(--brand-2);
}

/* ---------------- STEP 06: 결과 링크 복사 ---------------- */
.share-row {
  display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  margin-top: 14px;
}
.share-btn { min-height: 44px; font-size: 13.5px; font-weight: 700; }
.share-hint { flex: 1 1 240px; min-width: 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.share-note { margin-top: 8px; font-size: 12px; font-weight: 650; color: var(--brand-ink); }
.share-url {
  display: block; width: 100%; margin-top: 8px; padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.5; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px;
  resize: none; word-break: break-all;
}

/* ---------------- 토스트 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 70; max-width: calc(100vw - 24px);
  padding: 11px 16px; border-radius: 12px;
  background: rgba(16, 24, 32, .93); color: #fff;
  font-size: 13px; font-weight: 650; line-height: 1.45; text-align: center;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .6);
}

/* ---------------- STEP 05: 피부양자 자격 배지 (더 크게) ---------------- */
.elig.elig-hero { padding: 20px; border-width: 2px; gap: 14px; }
.elig.elig-hero h3 { font-size: 20px; letter-spacing: -0.02em; }
.elig.elig-hero .elig-icon {
  width: 44px; height: 44px; font-size: 21px;
  color: #fff; background: var(--brand-mid);
}
.elig.elig-hero.is-out .elig-icon { background: var(--danger); }
.elig-status {
  display: inline-block; margin-bottom: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff;
  background: var(--brand-mid);
}
.elig.elig-hero.is-out .elig-status { background: var(--danger); }

@media (max-width: 560px) {
  .toast { bottom: 88px; font-size: 12.5px; padding: 10px 14px; }
  .preset-row { padding: 9px 10px; }
  .preset-chip { min-height: 34px; padding: 5px 10px; font-size: 12px; }
  .elig.elig-hero { padding: 16px; }
  .elig.elig-hero h3 { font-size: 18px; }
}

/* ---------------- v5: 읽기 보조 · 되돌리기 · 공제 한도 안내 · 터치 영역 ---------------- */
.amount-read {
  display: block; margin-top: 4px; text-align: right;
  font-size: 12.5px; font-weight: 700; color: var(--brand-ink, #0b6b57);
  font-variant-numeric: tabular-nums;
}
.amount-read[hidden] { display: none; }
.toast { display: flex; align-items: center; gap: 12px; justify-content: center; }
.toast[hidden] { display: none; }
.toast-action {
  flex: 0 0 auto; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px;
  font: inherit; font-weight: 800; color: #0b1a14; background: #7ee2c2; cursor: pointer;
}
.toast-action[hidden] { display: none; }
.toast-action:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cap-note {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  font-size: 13px; line-height: 1.5; color: #7a4a00; background: #fff6e5; border: 1px solid #f3d9a4;
}
.cap-note[hidden] { display: none; }
.preset-chip { min-height: 40px; }
.segmented-xs .seg { min-height: 40px; }
.link-btn-sm { min-height: 40px; }
@media (max-width: 560px) {
  .preset-chip { min-height: 40px; }
}

/* ---------------- v6: 프리셋 결과 · 추천 이유 태그 ---------------- */
.preset-result { font-weight: 750; color: var(--brand-ink); }
.preset-jump { font-weight: 750; color: var(--brand); white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.reason-tag {
  display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: var(--brand-ink); background: #fff; border: 1px solid var(--brand-2);
}
.recommend-reason.is-recommended { font-size: 13.5px; border-left-width: 4px; box-shadow: 0 6px 18px -12px rgba(11, 107, 87, .45); }
.recommend-reason.is-recommended .reason-tag { color: #fff; background: var(--brand-mid); }
.card-tools { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.card-tools .link-btn { white-space: nowrap; }
@media (max-width: 560px) {
  .card-tools .badge-preset, .card-tools .badge-example { flex: 1 0 100%; order: -1; text-align: left; justify-self: start; width: max-content; max-width: 100%; }
}

/* ---------------- v7: 공유 링크 안내 배너 ---------------- */
.share-banner {
  margin: 0 0 14px; padding: 13px 14px; border-radius: 12px;
  background: #eef6ff; border: 1px solid #b9d6f5; color: #17324d;
  font-size: 13.5px; line-height: 1.55;
}
.share-banner[hidden] { display: none; }
.share-banner p { margin: 0; }
.share-banner-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.share-banner-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px;
  font-weight: 750; color: #fff; background: #1d5fa6; text-decoration: none;
}
.share-banner-close {
  min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #b9d6f5;
  font: inherit; font-weight: 650; color: #17324d; background: #fff; cursor: pointer;
}
.share-banner { scroll-margin-top: 96px; }

/* ---------------- v9: 히어로 프리셋 (첫 화면에서 바로 결과로) ---------------- */
.hero-presets {
  margin-top: 22px; padding: 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--brand-soft-2);
  box-shadow: 0 14px 30px -22px rgba(11, 107, 87, .55);
  max-width: 760px;
}
.hero-presets-title { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.hero-presets-title b { display: block; font-size: 15px; color: #0a1f19; margin-bottom: 2px; }
.hero-preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-preset {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 56px; padding: 10px 14px; border-radius: 12px;
  font: inherit; text-align: left; cursor: pointer;
  color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong);
  transition: border-color .15s, background .15s, transform .12s;
}
.hero-preset strong { font-size: 15px; font-weight: 780; color: var(--brand-ink); }
.hero-preset span { font-size: 12.5px; color: var(--ink-3); }
.hero-preset:hover { border-color: var(--brand); background: var(--brand-soft); }
.hero-preset:active { transform: translateY(1px); }
.hero-preset:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.hero-presets + .hero-actions { margin-top: 16px; }

@media (max-width: 760px) {
  .hero-preset-grid { grid-template-columns: 1fr; }
  .hero-preset { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; }
  .hero-preset strong { font-size: 14.5px; white-space: nowrap; }
  .hero-preset span { font-size: 12px; text-align: right; }
}
@media (max-width: 560px) {
  .hero { padding: 22px 0 28px; }
  .eyebrow { margin-bottom: 10px; font-size: 11.5px; }
  .hero h1 { font-size: 27px; }
  .hero-lead { margin-top: 10px; font-size: 14px; line-height: 1.55; }
  .hero-presets { margin-top: 16px; padding: 12px; }
  .hero-basis { display: none; }
  .hero-actions .btn { flex: 1 1 100%; min-height: 46px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; }
  .chips li { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 7px 11px; border-radius: 12px; font-size: 11.5px; line-height: 1.35; }
  .chips b { font-size: 13.5px; }
}
@media (max-width: 360px) {
  .hero-preset { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero-preset span { text-align: left; }
}
@media print { .hero-presets { display: none; } }
#baAfterCard { scroll-margin-top: 110px; }

/* ---------------- v11: 첫 화면 30초 계산 ---------------- */
.quick-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quick-type-btn {
  min-height: 44px; padding: 6px 8px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.25; cursor: pointer;
  color: var(--ink-2); background: #fff; border: 1.5px solid var(--line-strong);
}
.quick-type-btn.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.quick-type-btn:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.quick-dep {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 40px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.quick-dep[hidden] { display: none; }
.quick-dep input { width: 20px; height: 20px; accent-color: var(--brand); flex: 0 0 auto; }
.quick-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.quick-fields .field[hidden] { display: none; }
.quick-fields label { font-size: 13px; }
.quick-fields label small { font-weight: 500; color: var(--ink-3); }
.quick-error { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--danger, #b42318); }
.quick-error[hidden] { display: none; }
.quick-go { width: 100%; margin-top: 12px; min-height: 50px; font-size: 16px; }
.quick-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.quick-note a { color: var(--brand); font-weight: 700; }
@media (max-width: 760px) {
  .quick-fields { grid-template-columns: 1fr 1fr; }
  .quick-fields .quick-income { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .quick-type-btn { font-size: 13px; padding: 6px 4px; }
  .hero-presets-title span { font-size: 12.5px; }
}
@media (max-width: 360px) {
  .quick-type-btn { font-size: 12.5px; }
}
.quick-fields { align-items: end; }
.quick-fields label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-fields input::placeholder { font-size: 14px; }

/* =========================================================
   v12: 홈 카드 · 계산기별 화면 · 내 상황 · 전체 결과
   ========================================================= */
[data-view][hidden], .pf-group[hidden], #income [data-show][hidden],
[data-profile-strip][hidden], [data-profile-empty][hidden], .calc-result[hidden], .calc-need[hidden] { display: none !important; }
.summary-bar, .toolbar { display: none !important; }
body.has-summary-bar { padding-bottom: 0; }
main:focus, [data-view] h1:focus, [data-view] h2:focus { outline: none; }

.site-nav a.is-current { color: var(--brand-ink); background: var(--brand-soft); font-weight: 800; }

/* 뒤로 가기 */
.back-link {
  display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 6px -4px; padding: 0 8px;
  border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink-3); text-decoration: none;
}
.back-link:hover { color: var(--brand-ink); background: var(--brand-soft); }
.view.section { padding-top: 20px; }
#guide { padding-top: 20px; }
#guide > .section { padding-top: 16px; }
.head-title { display: inline; }

/* ---------- 홈 ---------- */
.home-hero { padding: 40px 0 72px; border-bottom: 0; }
.home-hero h1 { font-size: clamp(32px, 7vw, 50px); line-height: 1.12; }
.home-hero .hero-lead { max-width: 520px; }
.home-body { position: relative; margin-top: -48px; padding-bottom: 32px; }
.home-profile, .calc-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 18px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.home-profile:hover, .calc-card:hover { border-color: var(--brand-2); box-shadow: var(--shadow-lg); }
.home-profile:active, .calc-card:active { transform: translateY(1px); }
.home-profile:focus-visible, .calc-card:focus-visible, .sum-card:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.home-profile {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%); color: #fff; border-color: transparent;
}
.home-profile .calc-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.home-profile .calc-text strong { color: #fff; font-size: 18px; }
.home-profile .calc-text span { color: rgba(255, 255, 255, .96); }
.home-profile-cta {
  padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 800; white-space: nowrap;
  color: var(--brand-ink); background: #fff;
}
.calc-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  color: var(--brand); background: var(--brand-soft);
}
.calc-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calc-text strong { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #0a1f19; }
.calc-text > span { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.home-sub { margin: 28px 0 12px; font-size: 15px; font-weight: 800; color: var(--ink-2); }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-card { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; align-items: start; min-height: 168px; }
.calc-card .calc-icon { grid-column: 1; grid-row: 1; }
.calc-card .calc-text { grid-column: 1 / -1; grid-row: 2; }
.calc-card .calc-meta { grid-column: 1 / -1; grid-row: 3; align-self: end; display: flex; flex-wrap: wrap; gap: 6px; }
.calc-card .calc-arrow { grid-column: 2; grid-row: 1; font-size: 26px; line-height: 1; color: var(--ink-3); }
.calc-need {
  display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--warn); background: var(--warn-soft);
}
.calc-need.is-free { color: var(--brand-ink); background: var(--brand-soft); }
.calc-result {
  display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  color: #fff; background: var(--brand-mid);
}
.calc-card.is-featured { border: 2px solid var(--brand-2); background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%); }
.home-body .chips { margin-top: 26px; }
.home-links { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.home-links a { color: var(--ink-2); font-weight: 700; }

/* ---------- 내 상황 요약줄 · 미입력 안내 ---------- */
.profile-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 16px; padding: 10px 14px;
  border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); font-size: 14px;
}
.ps-label { font-size: 12px; font-weight: 800; color: #fff; background: var(--brand); padding: 2px 8px; border-radius: 999px; }
.ps-text { flex: 1 1 auto; min-width: 0; color: var(--brand-ink); font-weight: 650; }
.ps-edit { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; font-weight: 800; color: var(--brand); background: #fff; text-decoration: none; border: 1px solid var(--brand-soft-2); }
.profile-empty {
  margin: 0 0 16px; padding: 22px 18px; border-radius: 16px; text-align: center;
  background: var(--surface); border: 1.5px dashed var(--brand-soft-2);
}
.profile-empty strong { display: block; font-size: 17px; color: #0a1f19; }
.profile-empty p { margin: 6px 0 14px; font-size: 14px; color: var(--ink-3); }
.needs-profile .step-body, .needs-profile .head-pill { display: none !important; }

/* ---------- 내 상황 페이지 ---------- */
.pmode-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pmode-row .segmented { flex: 0 0 auto; margin: 0; min-width: 220px; }
.pmode-row .card-tools { margin-left: auto; }
.pmode-desc { margin: 10px 0 4px; font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.pf-group { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pf-title { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--ink-2); }
.ptype { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ptype-btn {
  min-height: 48px; padding: 6px 8px; border-radius: 12px;
  font: inherit; font-size: 14.5px; font-weight: 750; line-height: 1.25; cursor: pointer;
  color: var(--ink-2); background: #fff; border: 1.5px solid var(--line-strong);
}
.ptype-btn.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.ptype-btn:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.pf-check { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 44px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.pf-check input { width: 22px; height: 22px; accent-color: var(--brand); flex: 0 0 auto; }
.pf-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.pf-actions .btn { width: 100%; min-height: 52px; font-size: 16px; }
.pf-actions .hint { text-align: center; }
.profile-card .mini-summary { margin-top: 18px; }

/* ---------- 건보료: 유형 표시 ---------- */
.nhis-type-line { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }
.nhis-type-line b { color: var(--brand-ink); margin: 0 6px; }
.nhis-type-line a, .nhis-more-note a { font-weight: 700; color: var(--brand); }
.nhis-more-note { margin: 14px 0; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 전체 결과 ---------- */
.sum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sum-card {
  display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.sum-card:hover { border-color: var(--brand-2); }
.sum-title { font-size: 13.5px; font-weight: 800; color: var(--ink-3); }
.sum-value { font-size: 24px; font-weight: 850; letter-spacing: -0.02em; color: #0a1f19; font-variant-numeric: tabular-nums; }
.sum-label { font-size: 13px; color: var(--ink-3); }
.sum-note { margin-top: 4px; font-size: 13.5px; font-weight: 650; color: var(--brand-ink); }
.sum-more { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 800; color: var(--brand); }
.sum-card.is-featured { grid-column: 1 / -1; border: 2px solid var(--brand-2); background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 100%); }
.sum-card.is-featured .sum-value { color: var(--brand); font-size: 28px; }
.sum-card.is-warn .sum-value { color: var(--danger); }
.sum-card.is-empty .sum-value { color: var(--ink-3); font-size: 20px; }

@media (max-width: 760px) {
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .calc-card { min-height: 0; padding: 16px; gap: 10px; }
  .calc-card.is-featured { grid-column: 1 / -1; }
  .calc-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .home-hero { padding: 26px 0 64px; }
  .home-hero .hero-lead { font-size: 15px; }
  .home-profile { padding: 16px; gap: 12px; }
  .home-profile .calc-text strong { font-size: 17px; }
  .home-profile .calc-text span { font-size: 13px; }
  .calc-icon { width: 40px; height: 40px; border-radius: 12px; }
  .calc-icon svg { width: 21px; height: 21px; }
  .calc-text strong { font-size: 15.5px; }
  .calc-text > span { font-size: 12.5px; }
  .sum-grid { grid-template-columns: 1fr; }
  .sum-card.is-featured { grid-column: auto; }
  .ptype-btn { font-size: 13.5px; padding: 6px 4px; }
  .pmode-row .segmented { width: 100%; min-width: 0; }
  .pmode-row .card-tools { margin-left: 0; width: 100%; justify-content: flex-start; }
}
@media (max-width: 360px) {
  .home-profile { grid-template-columns: auto 1fr; }
  .home-profile-cta { grid-column: 1 / -1; justify-self: start; }
}
@media print {
  [data-view] { display: block !important; }
  .back-link, .profile-empty, .home-profile, .calc-grid { display: none !important; }
}

/* =========================================================
   v13: 내 상황 질문 카드 (있음 / 없음 / 모름)
   ========================================================= */
[data-when][hidden], .q-slot[hidden], .q-card[hidden] { display: none !important; }
.q-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.q-progress { font-size: 13px; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; }
.q-list, .q-slot { display: flex; flex-direction: column; gap: 12px; }
.q-slot { margin-bottom: 18px; }
.q-card {
  padding: 18px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.q-card.is-answered { border-color: var(--brand-soft-2); }
.q-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #0a1f19; }
.q-no {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: var(--ink-3); background: var(--bg); border: 1px solid var(--line-strong);
}
.q-card.is-answered .q-no { color: #fff; background: var(--brand); border-color: var(--brand); }
.q-desc { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.q-sub { margin: 16px 0 0; font-size: 14.5px; font-weight: 750; color: var(--ink-2); }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.q-chips-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.q-chip {
  min-height: 46px; min-width: 84px; padding: 8px 16px; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 750; cursor: pointer;
  color: var(--ink-2); background: #fff; border: 1.5px solid var(--line-strong);
  transition: background .12s, border-color .12s;
}
.q-chip:hover { border-color: var(--brand-2); }
.q-chip.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.q-chip:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.q-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; color: #7a4a00; background: #fff6e5; }
.q-body { margin-top: 4px; }
.q-fields { margin-top: 12px; }
.q-card .field-grid { gap: 12px; }
.profile-card { margin-top: 16px; }
.profile-card .mini-summary { margin-top: 0; }
@media (max-width: 560px) {
  .q-card { padding: 16px 14px; border-radius: 16px; }
  .q-title { font-size: 16px; align-items: flex-start; }
  .q-chip { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 14.5px; }
  .q-chips-3 .q-chip { font-size: 13.5px; }
  .q-toolbar .card-tools { width: 100%; justify-content: flex-start; }
}
.q-card .q-fields { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.q-slot .q-no { display: none; }
@media (max-width: 380px) { .q-card .q-fields { grid-template-columns: 1fr; } }


/* =========================================================
   v14: 접근성 — 터치 영역 44px (WCAG 2.5.5 권장)
   ========================================================= */
.brand { min-height: 44px; }
.back-link, .link-btn, .link-btn-sm, .ps-edit, .toast-action,
.segmented-sm .seg, .segmented-xs .seg, .seg, .share-banner-link, .share-banner-close,
.pf-check, .quick-dep { min-height: 44px; }
.ps-edit { padding: 0 14px; }
.toast-action { padding: 8px 14px; }
.calc-result { border-radius: 8px; padding: 4px 9px; font-size: 12px; line-height: 1.35; }

/* =========================================================
   v15: 메뉴 3개 · 짧은 첫 화면 · 결과 펼치기 · 홈 하단 FAQ
   ========================================================= */
/* 상단 메뉴 3개 */
.site-nav a { font-size: 14.5px; font-weight: 750; }

/* 홈: 한 화면 안에 */
.home .home-hero {
  margin: 0; padding: 26px 0 22px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 90% -10%, #dff0ea 0%, rgba(223, 240, 234, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
}
.home-inner { display: flex; flex-direction: column; align-items: flex-start; }
.home-inner .eyebrow { margin-bottom: 12px; }
.home-inner h1 { font-size: clamp(30px, 8vw, 48px); line-height: 1.12; letter-spacing: -0.045em; font-weight: 820; color: #0a1f19; }
.home-lead { margin: 12px 0 0; max-width: 520px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.home-cta {
  width: 100%; max-width: 520px; min-height: 60px; margin-top: 20px;
  font-size: 18px; border-radius: 16px; gap: 8px;
}
.home-resume { margin: 10px 0 0; max-width: 520px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.home-resume a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--brand); }
.home-resume[hidden] { display: none; }
.feat-title { margin: 22px 0 10px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.feat-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feat {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
}
.feat-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.feat-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.feat-text strong { font-size: 13.5px; font-weight: 800; color: #0a1f19; }
.feat-text span { font-size: 12px; color: var(--ink-3); }

/* 홈 하단: FAQ · 근거 (접이식) */
.home-more { padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.more-block { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.more-block > summary {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; cursor: pointer;
  font-size: 15px; font-weight: 800; color: var(--ink-2); list-style: none;
}
.more-block > summary::-webkit-details-marker { display: none; }
.more-block > summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--ink-3); }
.more-block[open] > summary::after { content: "−"; }
.more-count { font-size: 12px; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); padding: 1px 8px; border-radius: 999px; }
.home-more-sec { padding: 0 12px 14px; }
.home-more-sec .section-head { margin: 4px 4px 12px; }
.home-more-sec .section-head h2 { font-size: 18px; }

/* 전체 결과 */
.results > .section { padding-top: 18px; }
.res-sub { margin: 22px 0 10px; font-size: 16px; font-weight: 800; color: #0a1f19; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.results > .res-sub:first-child { margin-top: 4px; }
.res-hint { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.sum-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sum-card { padding: 14px; gap: 2px; }
.sum-value { font-size: 20px; }
.sum-card.is-featured .sum-value { font-size: 24px; }
.sum-note { font-size: 12.5px; }
.sum-label { font-size: 12px; }
.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.acc-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 56px; padding: 10px 16px;
  cursor: pointer; list-style: none;
}
.acc-head::-webkit-details-marker { display: none; }
.acc-head:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 16px; }
.acc-title { font-size: 16px; font-weight: 800; color: #0a1f19; }
.acc-head .head-pill { margin: 0; }
.acc-chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
.acc[open] .acc-chev { transform: rotate(-135deg); }
.acc-body { padding: 0 14px 16px; border-top: 1px solid var(--line); }
.acc-body > .section { padding: 12px 0 0; }
.acc-body .section-head h2 { font-size: 17px; }
.acc-body .section-head p { font-size: 13.5px; }
#acc-finance, #acc-overseas, #acc-isa, #acc-nhis, #alloc, #moreFaq, #moreBasis, #about, #privacy { scroll-margin-top: 110px; }

/* 바닥글: 소개 · 개인정보처리방침 */
.footer-policies { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.policy > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.policy-body { font-size: 13px; color: var(--ink-3); line-height: 1.65; padding-bottom: 8px; }
.policy-body p { margin: 0 0 8px; }
.policy-body a { color: var(--brand); }

@media (max-width: 760px) {
  .feat-list { grid-template-columns: 1fr 1fr; }
  .feat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .home .home-hero { padding: 18px 0 16px; }
  .home-inner .eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  .home-inner h1 { font-size: 30px; }
  .home-lead { font-size: 14.5px; margin-top: 8px; }
  .home-cta { margin-top: 16px; min-height: 58px; }
  .feat-title { margin: 18px 0 8px; }
  .feat { padding: 9px 10px; gap: 8px; }
  .feat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .feat-icon svg { width: 16px; height: 16px; }
  .feat-text strong { font-size: 13px; }
  .feat-text span { font-size: 11.5px; }
  .sum-grid { grid-template-columns: 1fr 1fr; }
  .sum-card.is-featured { grid-column: 1 / -1; }
  .acc-body { padding: 0 10px 14px; }
}
@media (max-width: 360px) {
  .feat-list { grid-template-columns: 1fr; }
}
@media print {
  .more-block, .acc { border: 0; box-shadow: none; }
}
.needs-profile .results { display: none !important; }

/* ---------------- v16: '있음'인데 금액 0원 안내 ---------------- */
.q-warn {
  margin: 10px 0 0; padding: 9px 12px 9px 34px; border-radius: 10px; position: relative;
  font-size: 13px; font-weight: 650; line-height: 1.5; color: #8a2a12; background: #fff1ec; border: 1px solid #f6cfc2;
}
.q-warn::before { content: "!"; position: absolute; left: 11px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; background: #b4421f; }
.q-warn[hidden], .miss-banner[hidden] { display: none !important; }
.miss-banner {
  margin: 0 0 14px; padding: 14px 16px; border-radius: 14px;
  background: #fff1ec; border: 1px solid #f6cfc2; color: #8a2a12;
}
.miss-banner strong { display: block; font-size: 15px; }
.miss-banner p { margin: 4px 0 8px; font-size: 13.5px; line-height: 1.55; }
.miss-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-weight: 800; color: #fff; background: #a33b1b; text-decoration: none; }

/* =========================================================
   v17: 홈 — 제목(상단 로고) · 설명 · 맨 아래 큰 입력 버튼, 한 화면
   ========================================================= */
.brand-text { font-size: 17px; }
.home-screen {
  min-height: calc(100vh - var(--hdr, 104px));
  min-height: calc(100svh - var(--hdr, 104px));
  display: flex;
  background:
    radial-gradient(120% 70% at 90% -10%, #dff0ea 0%, rgba(223, 240, 234, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
  border-bottom: 1px solid var(--line);
}
.home-screen-inner {
  flex: 1; display: flex; flex-direction: column; gap: 16px;
  max-width: 560px; padding-top: 22px; padding-bottom: 22px;
}
.home-head h1 { margin: 0; font-size: 23px; line-height: 1.35; font-weight: 820; letter-spacing: -0.03em; color: #0a1f19; }
.home-basis { margin: 6px 0 0; font-size: 13px; font-weight: 650; color: var(--ink-3); }
.home-screen .feat-list { grid-template-columns: 1fr; gap: 8px; }
.home-screen .feat-list .feat:last-child { grid-column: auto; }
.home-screen .feat { padding: 11px 14px; gap: 12px; border-radius: 14px; }
.home-screen .feat-icon { width: 38px; height: 38px; border-radius: 11px; }
.home-screen .feat-icon svg { width: 20px; height: 20px; }
.home-screen .feat-text strong { font-size: 15px; }
.home-screen .feat-text span { font-size: 13px; }
.home-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; }
.home-screen .home-cta {
  width: 100%; max-width: none; margin: 0; min-height: 72px; border-radius: 18px;
  font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 14px 30px -14px rgba(11, 107, 87, .9);
}
.home-screen .home-resume { max-width: none; margin: 6px 0 0; text-align: center; }
@media (max-height: 700px) {
  .home-screen-inner { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .home-head h1 { font-size: 21px; }
  .home-screen .feat { padding: 8px 12px; }
  .home-screen .feat-icon { width: 32px; height: 32px; }
  .home-screen .feat-text span { font-size: 12.5px; }
  .home-screen .home-cta { min-height: 64px; font-size: 20px; }
}
@media (max-width: 360px) {
  .brand-text { font-size: 15.5px; }
  .home-head h1 { font-size: 20px; }
}
@media (min-width: 761px) {
  .home-screen { min-height: 0; }
  .home-screen-inner { padding-top: 40px; padding-bottom: 40px; gap: 18px; }
  .home-bottom { margin-top: 10px; }
}

/* =========================================================
   v18: 비주얼 다듬기 — 로고 · 결과 예시 · 절약 포인트 색 · 테두리 정리 · 숫자 정렬
   ========================================================= */
:root {
  --save-ink: #7a4500;   /* 절약액 전용 색: 흰 배경 7.8:1, 연금색 배경 7.2:1 */
  --save-bg: #fff4d6;
  --save-line: #f1d48b;
}
main, .site-header { font-variant-numeric: tabular-nums; }

/* 로고 */
.brand-mark { display: inline-grid; place-items: center; }
.brand-mark svg { width: 70%; height: 70%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* 홈: 항목 아이콘에 은은한 구분색 */
.home-screen .feat:nth-child(1) .feat-icon { color: #0b6b57; background: #e3f3ed; }
.home-screen .feat:nth-child(2) .feat-icon { color: #1d5fa6; background: #e6effa; }
.home-screen .feat:nth-child(3) .feat-icon { color: #5b3fb0; background: #efeafb; }
.home-screen .feat:nth-child(4) .feat-icon { color: #b23a55; background: #fbe9ee; }
.home-screen .feat:nth-child(5) .feat-icon { color: #8a5200; background: #fdf1dc; }
.home-screen .feat { box-shadow: 0 1px 2px rgba(16, 24, 32, .04); }

/* 홈: 결과 예시 */
.home-preview {
  position: relative; padding: 14px 16px 14px; border-radius: 16px;
  background: linear-gradient(135deg, #fffaf0 0%, var(--save-bg) 100%); border: 1px solid var(--save-line);
}
.hp-tag {
  position: absolute; top: 12px; right: 12px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: #5c3400; background: #ffe7a8;
}
.hp-case { margin: 0; font-size: 13px; font-weight: 650; color: #5c4320; }
.hp-value { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: #3d2a0c; letter-spacing: -0.02em; }
.hp-value strong { font-size: 24px; font-weight: 850; color: var(--save-ink); }
.hp-note { margin: 4px 0 0; font-size: 12px; color: #6b5330; }
@media (max-height: 760px) { .home-preview { display: none; } }

/* 절약액: 포인트 색 */
.saving-big { background: linear-gradient(135deg, #fffaf0 0%, var(--save-bg) 100%); border-color: var(--save-line); }
.saving-big .saving-label { color: #5c3400; }
.saving-big .saving-value { color: var(--save-ink); }
.saving-big .saving-desc { color: #5c4320; }
.saving-big.is-flat { background: #f4f6f5; border-color: var(--line); }
.saving-big.is-flat .saving-value { color: var(--ink-2); }
.sum-card.is-featured { border: 1.5px solid var(--save-line); background: linear-gradient(135deg, #fffaf0 0%, var(--save-bg) 100%); }
.sum-card.is-featured .sum-value { color: var(--save-ink); }
.sum-card.is-featured .sum-note { color: #5c4320; }

/* 결과 화면: 겹친 테두리·그림자 걷어 내고 숫자를 주인공으로 */
.sum-card, .acc, .q-card, .profile-card { box-shadow: none; }
.sum-card { background: #fff; border-color: var(--line); }
.acc-body .card:not(.compare-card):not(.ba-card) { border: 0; box-shadow: none; background: transparent; padding: 0; }
.acc-body .card-split { padding-top: 16px; border-top: 1px solid var(--line); border-radius: 0; }
.results > .section > .step-body > .card { box-shadow: none; }
.compare-card, .ba-card { box-shadow: none; }
.sum-value, .big-value, .saving-value, .ba-list dd, .result-cell strong { letter-spacing: -0.02em; }
.saving-big.is-highlight { animation: bannerFlashSave 1.6s ease-out 2; border-color: #e0b54d; }
@keyframes bannerFlashSave {
  0% { background: #ffe9b0; box-shadow: 0 0 0 0 rgba(224, 181, 77, .5); }
  100% { background: var(--save-bg); box-shadow: 0 0 0 14px rgba(224, 181, 77, 0); }
}
@media (prefers-reduced-motion: reduce) { .saving-big.is-highlight { animation: none; } }

/* v19: 홈 이유 문구, 이자·배당 예시 */
.home-lead { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2, #33404d); font-weight: 560; }
.q-example { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.qe-col { border-radius: 10px; padding: 10px 11px; font-size: 13px; line-height: 1.45; }
.qe-in { background: #eef8f4; } .qe-out { background: #f4f5f7; }
.qe-h { margin: 0 0 4px; font-weight: 760; font-size: 13.5px; color: #0a1f19; }
.qe-h span { display: block; font-weight: 600; font-size: 12px; color: var(--brand-mid); }
.qe-out .qe-h { color: #3b4450; }
.qe-col ul { margin: 0; padding-left: 16px; } .qe-col li { margin: 2px 0; color: var(--ink-2, #33404d); }
.qe-col small { color: var(--ink-3); font-size: 12px; }
.qe-tip { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 359px) { .q-example { grid-template-columns: 1fr; } }
@media (max-height: 760px) { .home-lead { font-size: 13.5px; margin-top: 6px; } }
@media (max-width: 380px) { .home-lead { font-size: 13px; letter-spacing: -0.02em; } }

/* v19: 입력 전·해당 없음 카드는 한 줄로 작게 */
.sum-card.is-empty { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; row-gap: 2px; padding: 11px 14px; background: #f6f7f9; border-color: transparent; }
.sum-card.is-empty .sum-title { grid-column: 1; grid-row: 1; }
.sum-card.is-empty .sum-value { grid-column: 2; grid-row: 1; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.sum-card.is-empty .sum-label { grid-column: 1 / -1; grid-row: 2; font-size: 12.5px; color: var(--ink-3); }
.sum-card.is-empty .sum-note, .sum-card.is-empty .sum-more { display: none; }

/* v20: 지금 할 일 · 기준일 */
.res-asof { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.res-asof a { color: var(--brand-mid); font-weight: 650; }
.next-action { position: relative; display: block; margin: 4px 0 14px; padding: 14px 40px 14px 16px; border-radius: 14px; background: var(--brand, #0b5e4c); color: #fff; text-decoration: none; line-height: 1.5; }
.next-action:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.na-tag { display: inline-block; margin-bottom: 6px; padding: 2px 9px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 750; color: #fff; }
.na-text { display: block; font-size: 15.5px; font-weight: 600; color: #fff; }
.na-text b { color: #ffe39a; font-weight: 800; }
.na-more { display: block; margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.88); }
.na-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 24px; color: #fff; }
.res-asof-link { color: var(--brand-mid); font-weight: 650; white-space: nowrap; }

/* v21: 지금 그대로 두면 내는 돈 */
.total-burden { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; margin: 4px 0 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tb-label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.tb-value { font-size: 20px; font-weight: 820; color: #0a1f19; font-variant-numeric: tabular-nums; }
.tb-parts { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
/* v21: 실제 브라우저 높이(주소창 제외) 대응 */
@media (max-height: 860px) { .home-preview { display: none; } }
@media (max-height: 620px) {
  .home-screen-inner { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .home-head h1 { font-size: 19px; }
  .home-basis { display: none; }
  .home-lead { margin-top: 4px; }
  .feat-list { gap: 6px; }
  .home-screen .feat { padding: 6px 12px; }
  .home-screen .feat-icon { width: 28px; height: 28px; }
  .home-screen .home-cta { min-height: 54px; font-size: 18px; }
}
@media (max-height: 560px) { .home-head h1 { font-size: 18px; } .home-screen-inner { padding-top: 8px; } .home-screen .feat-text strong { font-size: 14px; } }

/* v22: 대략 범위 선택 · 찾는 곳 안내 */
.q-ref { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.q-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-range .q-chip { flex: none; width: 100%; font-size: 14px; }
.q-rangebox { margin-top: 2px; }
.q-sub-note { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.q-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--brand-mid); font-weight: 600; }
.q-find { margin: 10px 0 0; border-radius: 10px; background: #f4f6f8; }
.q-find > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 12px; font-size: 13.5px; font-weight: 700; color: var(--brand-mid); }
.q-find > summary::-webkit-details-marker { display: none; }
.q-find > summary::after { content: '+'; margin-left: auto; font-size: 18px; }
.q-find[open] > summary::after { content: '−'; }
.q-find ul { margin: 0; padding: 0 12px 12px 28px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.q-find li { margin: 4px 0; }
.range-note { margin: 8px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff6e5; color: #7a4a00; font-size: 13px; line-height: 1.5; }
.range-note a { color: #7a4a00; font-weight: 750; }
.total-burden.is-range .tb-value { grid-column: 1 / -1; grid-row: 2; }
.total-burden.is-range .tb-label { grid-column: 1 / -1; }

/* v23: 이자·배당 선택지 통일, 도움말은 선택지 아래로 */
.q-range .q-chip[data-qv="exact"] { font-weight: 750; }
.q-exactbox { margin-top: 4px; }
.q-help { margin: 12px 0 4px; }
.q-help .q-example { margin-top: 0; }

/* v25: 결과 화면 단순화 — 한눈에 보기 묶음, 계좌 배분 접기, 비교표 */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.glance { display: grid; gap: 10px; }
.glance .total-burden { margin: 0; }
.btn-recommend-big { display: flex; width: 100%; justify-content: center; align-items: center; min-height: 58px; margin: 16px 0 6px; font-size: 17px; font-weight: 800; border-radius: 14px; }
.recommend-hint { margin: 0 0 4px; font-size: 13px; color: var(--ink-3); text-align: center; }
.alloc-hint:empty { display: none; }
.ba-compare { margin: 14px 0 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.ba-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ba-tbl th, .ba-tbl td { padding: 10px 12px; font-size: 14px; text-align: right; border-bottom: 1px solid var(--line); }
.ba-tbl thead th { background: #f6f7f9; font-size: 13.5px; font-weight: 750; color: var(--ink); vertical-align: bottom; }
.ba-tbl thead th:last-child { background: #eef8f4; color: var(--brand-mid); }
.ba-tbl thead small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.ba-tbl tbody th { text-align: left; font-weight: 650; color: var(--ink-2); }
.ba-tbl td:last-child { background: #f7fcfa; font-weight: 650; }
.ba-tbl tr.is-total th, .ba-tbl tr.is-total td { font-weight: 800; color: var(--ink); border-bottom: 0; }
.ba-desc { margin: 0; padding: 9px 12px; font-size: 12.5px; color: var(--ink-3); background: #fafbfc; border-top: 1px solid var(--line); }
.ba-desc:empty { display: none; }
.alloc-gap { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff6e5; color: #6b4200; font-size: 13.5px; line-height: 1.55; }
.alloc-gap .link-btn { font-weight: 800; color: var(--brand-mid); text-decoration: underline; min-height: 0; padding: 0; background: none; border: 0; cursor: pointer; font-size: inherit; }
.calc-how { margin-top: 12px; }
.calc-how > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--brand-mid); }
.more-detail { margin-top: 12px; }
.more-detail > summary { cursor: pointer; list-style: none; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 14px; font-weight: 750; color: var(--brand-mid); }
.more-detail > summary::-webkit-details-marker { display: none; }
.more-detail > summary::after { content: '+'; margin-left: auto; font-size: 20px; }
.more-detail[open] > summary::after { content: '−'; }
.more-detail .more-body { padding: 0 14px 14px; display: grid; gap: 12px; }
.more-detail.more-inline { border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.more-detail .more-body > .card { margin: 0; box-shadow: none; }

/* v26: 입력 요약 한 줄, 계좌 최적화 상자 */
#summary .profile-strip { flex-wrap: nowrap; gap: 8px; margin: 0 0 14px; padding: 2px 2px 2px 12px; font-size: 13px; border-radius: 10px; }
#summary .ps-label { display: none; }
#summary .ps-text { font-size: 13px; font-weight: 600; line-height: 1.4; }
#summary .ps-edit { flex: none; min-height: 44px; padding: 0 10px; background: none; border: 0; font-size: 13px; font-weight: 750; color: var(--brand-mid); white-space: nowrap; }
#summary .ps-edit::after { content: ' ›'; }
.opt-box { margin: 16px 0 6px; border: 1.5px solid var(--save-line, #f1d48b); border-radius: 16px; background: var(--save-bg, #fff4d6); overflow: hidden; }
.opt-head { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; }
.opt-head::-webkit-details-marker { display: none; }
.opt-icon { font-size: 22px; }
.opt-title { display: flex; flex-direction: column; font-size: 16.5px; font-weight: 800; color: var(--save-ink, #7a4500); line-height: 1.3; }
.opt-title small { font-size: 12.5px; font-weight: 600; color: #8a5a12; }
.opt-head .head-pill { margin-left: auto; }
.opt-head .acc-chev { margin-left: 4px; }
.opt-box:not([open]) .opt-head .head-pill + .acc-chev, .opt-head .acc-chev { flex: none; }
.opt-body { padding: 4px 14px 16px; background: #fff; border-top: 1px solid var(--save-line, #f1d48b); }
.opt-body .btn-recommend-big { margin-top: 14px; }
.opt-body .saving-banner { margin-top: 12px; }
.alloc-edit { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.alloc-edit > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 14px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.alloc-edit > summary::-webkit-details-marker { display: none; }
.alloc-edit > summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--brand-mid); }
.alloc-edit[open] > summary::after { content: '−'; }
.alloc-edit > summary .summary-hint { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.alloc-edit-body { padding: 0 14px 14px; }
.recommend-live:empty { display: none; }
.recommend-live { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); text-align: center; }
.opt-box[open] .acc-chev { transform: rotate(-135deg); }
.opt-head .head-pill[hidden] + .acc-chev { margin-left: auto; }
.opt-body .recommend-live { font-weight: 500; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.ba-tbl th, .ba-tbl td { padding: 10px 10px; font-size: 13.5px; }
.ba-tbl td { white-space: nowrap; }
.ba-tbl tbody th { white-space: nowrap; }
.alloc-edit > summary .summary-hint { background: none; padding: 0; }

/* v27: 펼치는 요약 카드, 계좌 최적화 강조 */
.sum-card-x { padding: 0; display: block; }
.sum-card-x > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 14px; height: 100%; }
.sum-card-x > summary::-webkit-details-marker { display: none; }
.sum-card-x .sum-more::before { content: '자세히 보기 ▾'; }
.sum-card-x[open] .sum-more::before { content: '접기 ▴'; }
.sum-card-x[open] { grid-column: 1 / -1; border-color: var(--brand-2); }
.sum-body { padding: 0 14px 14px; }
.sum-rows { margin: 0; border-top: 1px dashed var(--line); padding-top: 8px; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid #f0f2f4; }
.sum-rows dt { color: var(--ink-2); }
.sum-rows dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-rows .is-total dt, .sum-rows .is-total dd { font-weight: 850; color: #0a1f19; }
.sum-rows .is-best dd { color: var(--brand-mid); }
.sum-rows .is-best dd::after { content: ' 유리'; font-size: 11.5px; }
.sum-rows .is-warn dd { color: var(--danger); }
.sum-foot { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.tb-label small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.opt-box { margin: 20px 0 8px; border: 2px solid var(--save-line, #f1d48b); border-radius: 18px; background: linear-gradient(160deg, #fffaf0 0%, var(--save-bg, #fff4d6) 100%); overflow: hidden; }
.opt-intro { padding: 18px 16px 16px; }
.opt-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--save-ink, #7a4500); color: #fff; font-size: 12px; font-weight: 800; }
.opt-intro h3 { margin: 8px 0 4px; font-size: 22px; font-weight: 850; color: var(--save-ink, #7a4500); letter-spacing: -0.02em; }
.opt-intro p { margin: 0; font-size: 14px; line-height: 1.55; color: #5c4a2a; }
.btn-opt { display: flex; width: 100%; justify-content: center; align-items: center; min-height: 60px; margin-top: 14px; font-size: 18px; font-weight: 850; border-radius: 14px; }
.opt-result { padding: 0 14px 16px; }
.opt-result .calc-panel { margin: 0; padding: 0; }
.opt-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin: 4px 0 12px; padding: 18px 12px; border-radius: 14px; background: #fff; border: 1.5px solid var(--save-line, #f1d48b); }
.opt-hero-k { font-size: 14px; font-weight: 700; color: #5c4a2a; }
.opt-hero-v { font-size: 34px; font-weight: 900; color: var(--save-ink, #7a4500); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.opt-fromto { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.opt-fromto s { color: var(--ink-3); }
.opt-fromto b { color: var(--brand-mid); font-size: 15.5px; }
.opt-fromto small { display: block; font-size: 12px; color: var(--ink-3); }
.opt-how { margin: 0 0 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.opt-how h4 { margin: 0 0 8px; font-size: 15px; font-weight: 850; color: var(--ink); }
.opt-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.opt-steps em { font-style: normal; font-weight: 800; color: var(--save-ink, #7a4500); white-space: nowrap; }
.opt-method { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.opt-method:empty { display: none; }
.btn-reopt { width: 100%; min-height: 48px; margin-top: 12px; }
.opt-result .ba-compare { margin-top: 0; }
.opt-result .ba-tbl { table-layout: fixed; }
.opt-result .ba-tbl th:first-child { width: 30%; white-space: normal; }
.opt-result .ba-tbl th, .opt-result .ba-tbl td { padding: 9px 8px; font-size: 13px; }
.opt-result .ba-tbl thead th { font-size: 12.5px; }
.opt-hero.is-highlight { animation: bannerFlashSave 1s ease; }
.acc-ba { padding: 4px 2px 0; }
.acc-ba-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; font-variant-numeric: tabular-nums; }
.acc-ba-grid > div { padding: 9px 10px; font-size: 13.5px; border-bottom: 1px solid #eef0f2; }
.acc-ba-h { background: #f6f7f9; font-size: 12.5px !important; font-weight: 750; color: var(--ink-3); text-align: right; }
.acc-ba-h.is-after { background: #eef8f4; color: var(--brand-mid); }
.acc-ba-k { color: var(--ink-2); font-weight: 650; }
.acc-ba-v { text-align: right; font-weight: 700; white-space: nowrap; }
.acc-ba-v.is-after { background: #f7fcfa; color: var(--brand-mid); font-weight: 800; }
.acc-ba-note { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.acc-more { margin-top: 12px; border-top: 1px solid var(--line); }
.acc-more > summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; font-size: 14px; font-weight: 750; color: var(--brand-mid); }
.acc-more > summary::-webkit-details-marker { display: none; }
.acc-more > summary::after { content: '+'; margin-left: auto; font-size: 20px; }
.acc-more[open] > summary::after { content: '−'; }
.sum-grid > .sum-card-x { display: block !important; height: auto; align-self: start; }
.sum-card-x > summary { height: auto; }
.sum-card-x[open] > summary { padding-bottom: 6px; }

/* v28: 설명 글씨 축소, 카드 높이 맞춤, '이렇게 하세요' */
#summary .section-head p { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
#summary .section-head p .res-asof-link { font-size: 13px; }
.sum-grid > .sum-card-x:not([open]) { align-self: stretch; }
.sum-card-x:not([open]) > summary { height: 100%; }
.sum-card-x > summary .sum-more { margin-top: auto; }
.opt-steps { list-style: none; padding: 0; counter-reset: optstep; gap: 10px; }
.opt-step { counter-increment: optstep; padding: 12px 12px 12px 44px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--save-line, #f1d48b); position: relative; }
.opt-step::before { content: counter(optstep); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--save-ink, #7a4500); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.opt-step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.opt-step-head strong { font-size: 17px; font-weight: 850; color: var(--ink); letter-spacing: -0.01em; }
.opt-step-save { font-size: 13px; font-weight: 800; color: var(--save-ink, #7a4500); background: #fff; border: 1px solid var(--save-line, #f1d48b); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.opt-step-why { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.sum-grid { align-items: start; }
.sum-grid > .sum-card-x:not([open]) { display: flex !important; flex-direction: column; }
.sum-card-x:not([open]) > summary { flex: 1 1 auto; }

/* v29: 제목·숫자 크게, 최적화 상자 항상 펼침 */
.tb-label { font-size: 17px !important; font-weight: 850 !important; color: var(--ink) !important; }
.tb-value { font-size: 26px !important; font-weight: 900 !important; }
.tb-parts { font-size: 12.5px; }
.sum-title { font-size: 15.5px !important; font-weight: 850 !important; color: var(--ink) !important; }
.sum-value { font-size: 23px !important; font-weight: 900 !important; margin-top: 2px; }
.sum-label { font-size: 12px !important; color: var(--ink-3); }
.sum-card.is-empty .sum-title { font-size: 14px !important; color: var(--ink-3) !important; }
.sum-card.is-empty .sum-value { font-size: 14px !important; }
.opt-intro .alloc-edit { margin-top: 10px; background: #fff; }
.opt-result { padding-top: 2px; }
@media (max-width: 370px) { .sum-value { font-size: 20px !important; } .tb-value { font-size: 23px !important; } }
.opt-step-empty { padding-left: 14px; background: #fff; border-style: dashed; }
.opt-step-empty::before { display: none; }
.opt-hero-v:empty { display: block; min-height: 44px; }
.opt-fromto:empty { display: none; }

/* v32: 한눈에 보기 디자인 시안 (data-skin) */
.sum-ico { display: none; }
.k-finance { --k: #0b6b57; --k-bg: #e3f3ed; --k-soft: #f3faf7; }
.k-nhis { --k: #b23a55; --k-bg: #fbe9ee; --k-soft: #fdf5f7; }
.k-overseas { --k: #1d5fa6; --k-bg: #e6effa; --k-soft: #f4f8fd; }
.k-isa { --k: #5b3fb0; --k-bg: #efeafb; --k-soft: #f8f6fd; }
.sum-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* A: 아이콘 칩 + 색 띠 */
[data-skin="a"] .sum-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--k); background: var(--k-bg); margin-bottom: 6px; }
[data-skin="a"] .sum-card-x { border-top: 4px solid var(--k); }
[data-skin="a"] .sum-card-x .sum-value { color: var(--k); }
[data-skin="a"] .total-burden { border-left: 5px solid #0a1f19; }

/* B: 컬러 타일 + 진한 총액 카드 */
[data-skin="b"] .sum-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--k); background: #fff; margin-bottom: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
[data-skin="b"] .sum-card-x { background: var(--k-bg); border-color: transparent; box-shadow: none; }
[data-skin="b"] .sum-card-x .sum-title { color: var(--k) !important; }
[data-skin="b"] .sum-card-x .sum-value { color: #10201b; }
[data-skin="b"] .sum-card-x .sum-label { color: #4a5560; }
[data-skin="b"] .sum-card-x .sum-note { color: var(--k); }
[data-skin="b"] .sum-card-x .sum-more { color: var(--k); }
[data-skin="b"] .total-burden { background: linear-gradient(135deg, #0b5e4c 0%, #0d7a63 100%); border: 0; color: #fff; }
[data-skin="b"] .total-burden .tb-label, [data-skin="b"] .total-burden .tb-value { color: #fff !important; }
[data-skin="b"] .total-burden .tb-label small, [data-skin="b"] .total-burden .tb-parts { color: rgba(255,255,255,.85) !important; }

/* C: 한 줄 리스트형 */
[data-skin="c"] .sum-grid { grid-template-columns: 1fr !important; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
[data-skin="c"] .sum-grid > .sum-card { min-height: 0 !important; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid #eef0f2; }
[data-skin="c"] .sum-grid > .sum-card:last-child { border-bottom: 0; }
[data-skin="c"] .sum-card-x > summary { display: grid !important; grid-template-columns: 44px 1fr auto; grid-template-areas: "ico title value" "ico label value" "ico note note" "ico more more"; column-gap: 12px; row-gap: 2px; align-items: center; }
[data-skin="c"] .sum-ico { display: inline-grid; grid-area: ico; align-self: start; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--k); background: var(--k-bg); }
[data-skin="c"] .sum-card-x .sum-title { grid-area: title; }
[data-skin="c"] .sum-card-x .sum-value { grid-area: value; text-align: right; font-size: 20px !important; color: var(--k); }
[data-skin="c"] .sum-card-x .sum-label { grid-area: label; }
[data-skin="c"] .sum-card-x .sum-note { grid-area: note; }
[data-skin="c"] .sum-card-x .sum-more { grid-area: more; padding-top: 2px; }
[data-skin="c"] .total-burden { background: #0a1f19; border: 0; }
[data-skin="c"] .total-burden .tb-label, [data-skin="c"] .total-burden .tb-value { color: #fff !important; }
[data-skin="c"] .total-burden .tb-label small, [data-skin="c"] .total-burden .tb-parts { color: rgba(255,255,255,.75) !important; }

/* v33: 시안 A 확정 — 총액 상자 크게·노란색, 제목 강조 */
[data-skin="a"] .total-burden {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 20px 20px 18px; border: 2px solid var(--save-line, #f1d48b); border-left-width: 2px;
  border-radius: 18px; background: linear-gradient(160deg, #fffaf0 0%, var(--save-bg, #fff4d6) 100%);
}
[data-skin="a"] .total-burden .tb-label { font-size: 20px !important; font-weight: 900 !important; color: var(--save-ink, #7a4500) !important; letter-spacing: -0.02em; }
[data-skin="a"] .total-burden .tb-label small { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--save-line, #f1d48b); font-size: 11.5px; font-weight: 750; color: #8a5a12 !important; letter-spacing: 0; vertical-align: 3px; }
[data-skin="a"] .total-burden .tb-value { font-size: 34px !important; font-weight: 900 !important; color: #2a1a00 !important; letter-spacing: -0.02em; margin: 2px 0; }
[data-skin="a"] .total-burden .tb-parts { font-size: 12.5px; color: #6b5a3a; line-height: 1.55; }
[data-skin="a"] .total-burden.is-range .tb-value { font-size: 28px !important; }
[data-skin="a"] .sum-card-x .sum-title { font-size: 17.5px !important; font-weight: 900 !important; color: #0f1720 !important; letter-spacing: -0.02em; }
[data-skin="a"] .sum-card-x .sum-label { font-size: 12px !important; color: #5f6b77 !important; margin-top: 2px; }
[data-skin="a"] .sum-card-x .sum-note { font-size: 12.5px; font-weight: 650; color: #3d4650; }
@media (max-width: 370px) { [data-skin="a"] .total-burden .tb-value { font-size: 29px !important; } [data-skin="a"] .sum-card-x .sum-title { font-size: 16px !important; } }

/* v34: 시안 D·E·F */
.tb-bar, .tb-legend { display: none; }
[data-skin="d"] .total-burden, [data-skin="e"] .total-burden, [data-skin="f"] .total-burden { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 20px; border-radius: 18px; }
[data-skin="d"] .tb-parts, [data-skin="e"] .tb-parts, [data-skin="f"] .tb-parts { display: none; }
.tb-bar { height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 12px 0 10px; }
.tb-seg { min-width: 6px; background: var(--k); }
.tb-legend { list-style: none; margin: 0; padding: 0; gap: 6px; flex-direction: column; }
.tb-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tb-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); flex: none; }
.tb-legend span { flex: 1; color: inherit; opacity: .85; }
.tb-legend b { font-weight: 800; font-variant-numeric: tabular-nums; }

/* D: 토스풍 미니멀 — 흰 바탕, 큰 숫자, 비율 막대 */
[data-skin="d"] .total-burden { background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(16,24,32,.06); }
[data-skin="d"] .tb-label { font-size: 16px !important; font-weight: 800 !important; color: #4b5563 !important; }
[data-skin="d"] .tb-label small { display: none; }
[data-skin="d"] .tb-value { font-size: 34px !important; color: #111827 !important; }
[data-skin="d"] .tb-bar, [data-skin="d"] .tb-legend { display: flex; }
[data-skin="d"] .tb-legend li { color: #374151; }
[data-skin="d"] .sum-card-x { border: 0; box-shadow: 0 4px 16px rgba(16,24,32,.06); border-radius: 18px; }
[data-skin="d"] .sum-card-x .sum-title { display: flex; align-items: center; gap: 7px; font-size: 15px !important; color: #4b5563 !important; font-weight: 800 !important; }
[data-skin="d"] .sum-card-x .sum-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
[data-skin="d"] .sum-card-x .sum-value { font-size: 24px !important; color: #111827 !important; margin: 4px 0 2px; }
[data-skin="d"] .sum-card-x .sum-label { color: #6b7280 !important; }

/* E: 진한 남색 히어로 + 흰 카드 왼쪽 색 막대 */
[data-skin="e"] .total-burden { background: linear-gradient(150deg, #13233f 0%, #1f3a63 100%); border: 0; color: #fff; }
[data-skin="e"] .tb-label { font-size: 16px !important; font-weight: 800 !important; color: #c9d6ea !important; }
[data-skin="e"] .tb-label small { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.12); color: #dbe5f3 !important; font-size: 11.5px; vertical-align: 2px; }
[data-skin="e"] .tb-value { font-size: 34px !important; color: #fff !important; }
[data-skin="e"] .tb-bar, [data-skin="e"] .tb-legend { display: flex; }
[data-skin="e"] .tb-bar { background: rgba(255,255,255,.12); }
[data-skin="e"] .tb-legend li { color: #e6edf7; }
[data-skin="e"] .k-finance { --k: #34c79a; } [data-skin="e"] .k-nhis { --k: #ff7a93; } [data-skin="e"] .k-overseas { --k: #6aa8ff; }
[data-skin="e"] .sum-card-x { border: 1px solid var(--line); border-left: 5px solid var(--k); border-radius: 14px; box-shadow: none; }
[data-skin="e"] .sum-card-x .sum-title { font-size: 16.5px !important; font-weight: 900 !important; color: #111827 !important; }
[data-skin="e"] .sum-card-x .sum-value { font-size: 23px !important; color: #13233f !important; }
[data-skin="e"] .sum-grid .k-finance { --k: #0b6b57; } [data-skin="e"] .sum-grid .k-nhis { --k: #b23a55; } [data-skin="e"] .sum-grid .k-overseas { --k: #1d5fa6; } [data-skin="e"] .sum-grid .k-isa { --k: #5b3fb0; }

/* F: 그린 브랜드 히어로 + 아이콘 타일 카드 */
[data-skin="f"] .total-burden { background: radial-gradient(120% 140% at 100% 0%, #13906f 0%, #0b5e4c 55%, #08473a 100%); border: 0; color: #fff; }
[data-skin="f"] .tb-label { font-size: 17px !important; font-weight: 850 !important; color: #d7f3ea !important; }
[data-skin="f"] .tb-label small { display: block; font-size: 12px; color: #a9ddcc !important; font-weight: 600; }
[data-skin="f"] .tb-value { font-size: 36px !important; color: #fff !important; }
[data-skin="f"] .tb-bar, [data-skin="f"] .tb-legend { display: flex; }
[data-skin="f"] .tb-bar { background: rgba(255,255,255,.15); }
[data-skin="f"] .total-burden .k-finance { --k: #ffd166; } [data-skin="f"] .total-burden .k-nhis { --k: #ff8fa3; } [data-skin="f"] .total-burden .k-overseas { --k: #8ecbff; }
[data-skin="f"] .tb-legend li { color: #eafaf4; }
[data-skin="f"] .sum-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--k); margin-bottom: 8px; }
[data-skin="f"] .sum-card-x { border: 1px solid #e8ecef; border-radius: 18px; box-shadow: 0 2px 8px rgba(16,24,32,.04); }
[data-skin="f"] .sum-card-x .sum-title { font-size: 16.5px !important; font-weight: 900 !important; color: #111827 !important; }
[data-skin="f"] .sum-card-x .sum-value { font-size: 23px !important; color: #111827 !important; }
.sum-card-x .sum-value { white-space: nowrap; }
[data-skin="d"] .sum-card-x .sum-value, [data-skin="e"] .sum-card-x .sum-value, [data-skin="f"] .sum-card-x .sum-value { font-size: 22px !important; }
@media (max-width: 370px) { [data-skin] .sum-card-x .sum-value { font-size: 19px !important; } }

/* v35: 시안 G·H·I + 공통(짧은 설명) */
.sum-label:empty { display: none; }
[data-skin="g"] .total-burden, [data-skin="h"] .total-burden, [data-skin="i"] .total-burden { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 20px; border-radius: 18px; }
[data-skin="g"] .tb-parts, [data-skin="h"] .tb-parts, [data-skin="i"] .tb-parts { display: none; }
[data-skin="g"] .tb-bar, [data-skin="g"] .tb-legend, [data-skin="h"] .tb-bar, [data-skin="h"] .tb-legend, [data-skin="i"] .tb-bar, [data-skin="i"] .tb-legend { display: flex; }

/* G: 한 장 리스트 (총액 + 항목을 한 패널처럼) */
[data-skin="g"] .glance { gap: 0; background: #fff; border-radius: 20px; box-shadow: 0 6px 22px rgba(16,24,32,.07); overflow: hidden; }
[data-skin="g"] .total-burden { background: #fff; border: 0; border-radius: 0; border-bottom: 8px solid #f3f5f7; }
[data-skin="g"] .tb-label { font-size: 15px !important; font-weight: 800 !important; color: #6b7280 !important; }
[data-skin="g"] .tb-label small { display: none; }
[data-skin="g"] .tb-value { font-size: 34px !important; color: #111827 !important; }
[data-skin="g"] .sum-grid { grid-template-columns: 1fr !important; gap: 0; }
[data-skin="g"] .sum-grid > .sum-card { min-height: 0 !important; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid #f0f2f4; }
[data-skin="g"] .sum-grid > .sum-card:last-child { border-bottom: 0; }
[data-skin="g"] .sum-card-x > summary { display: grid !important; grid-template-columns: 42px 1fr auto; grid-template-areas: "ico title value" "ico label label" "ico note note" "ico more more"; column-gap: 12px; row-gap: 1px; align-items: center; padding: 16px 18px; }
[data-skin="g"] .sum-ico { display: inline-grid; grid-area: ico; align-self: start; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--k); background: var(--k-bg); }
[data-skin="g"] .sum-card-x .sum-title { grid-area: title; font-size: 16px !important; font-weight: 850 !important; color: #111827 !important; }
[data-skin="g"] .sum-card-x .sum-value { grid-area: value; text-align: right; font-size: 18px !important; color: #111827 !important; }
[data-skin="g"] .sum-card-x .sum-label { grid-area: label; color: #6b7280 !important; }
[data-skin="g"] .sum-card-x .sum-note { grid-area: note; color: var(--brand-mid); }
[data-skin="g"] .sum-card-x .sum-more { grid-area: more; padding-top: 2px; font-size: 12.5px; }
[data-skin="g"] .tb-legend li { color: #374151; }

/* H: 파스텔 타일 (아이콘과 제목 한 줄) */
[data-skin="h"] .total-burden { background: linear-gradient(160deg, #eaf7f2 0%, #dff1ea 100%); border: 0; }
[data-skin="h"] .tb-label { font-size: 16px !important; font-weight: 850 !important; color: #0b5e4c !important; }
[data-skin="h"] .tb-label small { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #fff; color: #0b5e4c !important; font-size: 11.5px; vertical-align: 2px; }
[data-skin="h"] .tb-value { font-size: 34px !important; color: #0a2a22 !important; }
[data-skin="h"] .tb-bar { background: rgba(255,255,255,.7); }
[data-skin="h"] .tb-legend li { color: #1f3a33; }
[data-skin="h"] .sum-card-x { background: var(--k-soft); border: 1px solid var(--k-bg); box-shadow: none; border-radius: 18px; }
[data-skin="h"] .sum-card-x > summary { display: grid !important; grid-template-columns: 30px 1fr; grid-template-areas: "ico title" "value value" "label label" "note note" "more more"; column-gap: 8px; row-gap: 2px; align-items: center; }
[data-skin="h"] .sum-ico { display: inline-grid; grid-area: ico; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: var(--k); }
[data-skin="h"] .sum-ico svg { width: 17px; height: 17px; }
[data-skin="h"] .sum-card-x .sum-title { grid-area: title; font-size: 15.5px !important; font-weight: 850 !important; color: #111827 !important; }
[data-skin="h"] .sum-card-x .sum-value { grid-area: value; font-size: 22px !important; color: var(--k) !important; margin-top: 8px; }
[data-skin="h"] .sum-card-x .sum-label { grid-area: label; color: #5f6b77 !important; }
[data-skin="h"] .sum-card-x .sum-note { grid-area: note; color: #374151; }
[data-skin="h"] .sum-card-x .sum-more { grid-area: more; color: var(--k); }

/* I: 웜 골드 (최적화 상자와 같은 계열) */
[data-skin="i"] .total-burden { background: #fff; border: 1px solid #efe3c8; border-top: 6px solid #c98a1b; box-shadow: 0 6px 20px rgba(122,69,0,.07); }
[data-skin="i"] .tb-label { font-size: 16px !important; font-weight: 850 !important; color: #7a4500 !important; }
[data-skin="i"] .tb-label small { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #fff4d6; color: #7a4500 !important; font-size: 11.5px; vertical-align: 2px; }
[data-skin="i"] .tb-value { font-size: 34px !important; color: #1f1608 !important; }
[data-skin="i"] .total-burden .k-finance { --k: #7a4500; } [data-skin="i"] .total-burden .k-nhis { --k: #c98a1b; } [data-skin="i"] .total-burden .k-overseas { --k: #e8c27a; }
[data-skin="i"] .tb-bar { background: #f6efe0; }
[data-skin="i"] .tb-legend li { color: #4a3a22; }
[data-skin="i"] .sum-card-x { border: 1px solid #efe7d6; box-shadow: none; border-radius: 16px; background: #fffdf8; }
[data-skin="i"] .sum-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #7a4500; background: #fff4d6; margin-bottom: 6px; }
[data-skin="i"] .sum-ico svg { width: 18px; height: 18px; }
[data-skin="i"] .sum-card-x .sum-title { font-size: 16px !important; font-weight: 900 !important; color: #1f1608 !important; }
[data-skin="i"] .sum-card-x .sum-value { font-size: 22px !important; color: #1f1608 !important; }
[data-skin="i"] .sum-card-x .sum-label { color: #6b5a3a !important; }
[data-skin="i"] .sum-card-x .sum-note { color: #7a4500; }
[data-skin="i"] .sum-card-x .sum-more { color: #7a4500; }

/* v37: 확정 시안 — 카드는 ⑤ 웜 골드, 올해 낼 세금은 ② 남색 */
[data-skin="j"] .total-burden { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 20px; border-radius: 18px; }
[data-skin="j"] .tb-parts { display: none; }
[data-skin="j"] .sum-card-x .sum-value { font-size: 22px !important; }
[data-skin="j"] .total-burden { background: linear-gradient(150deg, #13233f 0%, #1f3a63 100%); border: 0; color: #fff; }
[data-skin="j"] .tb-label { font-size: 16px !important; font-weight: 800 !important; color: #c9d6ea !important; }
[data-skin="j"] .tb-label small { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.12); color: #dbe5f3 !important; font-size: 11.5px; vertical-align: 2px; }
[data-skin="j"] .tb-value { font-size: 34px !important; color: #fff !important; }
[data-skin="j"] .tb-bar, [data-skin="j"] .tb-legend { display: flex; }
[data-skin="j"] .tb-bar { background: rgba(255,255,255,.12); }
[data-skin="j"] .tb-legend li { color: #e6edf7; }
[data-skin="j"] .total-burden .k-finance { --k: #34c79a; } [data-skin="j"] .total-burden .k-nhis { --k: #ff7a93; } [data-skin="j"] .total-burden .k-overseas { --k: #6aa8ff; }
[data-skin="j"] .sum-card-x { border: 1px solid #efe7d6; box-shadow: none; border-radius: 16px; background: #fffdf8; }
[data-skin="j"] .sum-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #7a4500; background: #fff4d6; margin-bottom: 6px; }
[data-skin="j"] .sum-ico svg { width: 18px; height: 18px; }
[data-skin="j"] .sum-card-x .sum-title { font-size: 16px !important; font-weight: 900 !important; color: #1f1608 !important; }
[data-skin="j"] .sum-card-x .sum-value { font-size: 22px !important; color: #1f1608 !important; }
[data-skin="j"] .sum-card-x .sum-label { color: #6b5a3a !important; }
[data-skin="j"] .sum-card-x .sum-note { color: #7a4500; }
[data-skin="j"] .sum-card-x .sum-more { color: #7a4500; }
/* v37b: 좁은 폰에서 한눈에 보기가 옆으로 넘치지 않게 */
.glance { grid-template-columns: minmax(0, 1fr); }
.glance > * { min-width: 0; }
[data-skin="j"] .sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.sum-grid > .sum-card { min-width: 0; }
[data-skin="j"] .sum-card-x .sum-value { font-size: clamp(17px, 5.4vw, 22px) !important; }
[data-skin="j"] .tb-value { font-size: clamp(28px, 8.6vw, 34px) !important; }
@media (max-width: 340px) { [data-skin="j"] .sum-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* v38: 한눈에 보기 — 한 장 리스트 방식(색은 웜 골드 유지) */
[data-skin="j"] .sum-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0; background: #fffdf8; border: 1px solid #efe7d6; border-radius: 18px; overflow: hidden; }
[data-skin="j"] .sum-grid > .sum-card { min-height: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none; background: transparent; border-bottom: 1px solid #f1ead9 !important; }
[data-skin="j"] .sum-grid > .sum-card:last-child { border-bottom: 0 !important; }
[data-skin="j"] .sum-grid > .sum-card-x[open] { background: #fff; }
[data-skin="j"] .sum-card-x > summary { display: grid !important; grid-template-columns: 38px minmax(0, 1fr) auto 14px; grid-template-areas: "ico title value chev" "ico label label chev"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 15px 16px; min-height: 64px; }
[data-skin="j"] .sum-ico { grid-area: ico; align-self: center; margin: 0; width: 38px; height: 38px; }
[data-skin="j"] .sum-card-x .sum-title { grid-area: title; font-size: 15.5px !important; }
[data-skin="j"] .sum-card-x .sum-value { grid-area: value; text-align: right; font-size: clamp(16px, 4.8vw, 19px) !important; margin: 0; }
[data-skin="j"] .sum-card-x .sum-label { grid-area: label; margin: 0; }
[data-skin="j"] .sum-card-x .sum-note { grid-column: 2 / 4; font-size: 12px; }
[data-skin="j"] .sum-card-x .sum-more { grid-area: chev; margin: 0; padding: 0; align-self: center; }
[data-skin="j"] .sum-card-x .sum-more::before { content: ''; display: block; width: 8px; height: 8px; border-right: 2px solid #a98a55; border-bottom: 2px solid #a98a55; transform: rotate(45deg); transition: transform .15s; }
[data-skin="j"] .sum-card-x[open] .sum-more::before { content: ''; transform: rotate(-135deg); margin-top: 4px; }
[data-skin="j"] .sum-body { padding: 0 16px 14px 66px; }
[data-skin="j"] .sum-card.is-empty { background: transparent; }
.opt-extra { margin-top: 12px; padding: 12px; border-radius: 12px; background: #f7f9fb; border: 1px solid var(--line); }
.opt-extra h5 { margin: 0 0 6px; font-size: 13.5px; font-weight: 850; color: var(--ink); }
.opt-extra ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.opt-extra b { color: var(--ink); }
@media (max-width: 360px) { [data-skin="j"] .sum-body { padding-left: 16px; } }
