:root {
  --ink: #1b2730;
  --ink-2: #44525c;
  --ink-3: #5f6c75;
  --paper: #f2f4f1;
  --surface: #ffffff;
  --line: #dde2dc;
  --line-strong: #c2cac3;
  --green: #2f6b46;
  --green-ink: #22543a;
  --green-soft: #e2eee5;
  --amber: #d4972a;
  --amber-ink: #6e4a0b;
  --amber-soft: #f7edd8;
  --blue: #2f5f8e;
  --blue-ink: #224870;
  --blue-soft: #e3ebf4;
  --red: #b4462f;
  --red-ink: #8a3220;
  --red-soft: #f7e5e0;
  --spend-1: #c7cec8;
  --spend-2: #b2bab3;
  --spend-3: #9aa39c;
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5rem;
  --t-2xl: 1.875rem;
  --t-3xl: 2.375rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-sm);
  line-height: 1.6;
  caret-color: var(--green);
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
::selection { background: var(--green-soft); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* 상단 */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { color: var(--green); display: inline-flex; }
.brand-name { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.02em; }
.brand-tag {
  font-size: var(--t-xs); color: var(--ink-2); border: 1px solid var(--line-strong);
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.persona-picker { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: var(--ink-2); }
.persona-picker select {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
  padding: 7px 30px 7px 10px; font-size: var(--t-xs); color: var(--ink); max-width: 220px;
}

/* 버튼 */
.btn {
  border: 1px solid transparent; border-radius: var(--radius); padding: 10px 16px; cursor: pointer;
  font-size: var(--t-sm); font-weight: 600; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  min-height: 44px;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--green-ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover:not(:disabled) { color: var(--ink); background: var(--paper); }
.btn-block { width: 100%; }

/* 레이아웃 */
.layout {
  display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 24px;
  max-width: 1320px; margin: 0 auto; padding: 24px;
  align-items: start;
}
.ask-col { display: grid; gap: 16px; }
.layout[data-mode="result"] .ask-col { position: sticky; top: 84px; }

/* 질문 카드 */
.ask-card, .summary-card, .live, .results {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.ask-card { padding: 22px 22px 18px; }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--green); transition: width 220ms var(--ease); }
.progress-text { margin-top: 10px; font-size: var(--t-xs); color: var(--ink-3); }
.q-section { font-size: var(--t-xs); color: var(--green-ink); font-weight: 600; margin-top: 14px; }
.q-text { font-size: var(--t-xl); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; margin-top: 4px; text-wrap: balance; }
.q-why { margin-top: 8px; color: var(--ink-2); font-size: var(--t-sm); }
.q-body { margin-top: 18px; display: grid; gap: 10px; }

.input-row { display: flex; align-items: center; gap: 8px; }
.input-row input, .input-row select, .detail input, .detail select {
  flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 12px 14px; background: var(--surface); font-size: var(--t-lg); font-weight: 600;
  transition: border-color 160ms var(--ease);
}
.detail input, .detail select { font-size: var(--t-sm); padding: 9px 12px; font-weight: 500; }
.input-row input:focus, .detail input:focus, .detail select:focus, .input-row select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.input-row input[aria-invalid="true"] { border-color: var(--red); }
.unit { color: var(--ink-2); font-size: var(--t-sm); white-space: nowrap; }
.alt-label { font-size: var(--t-xs); color: var(--ink-2); margin-top: 4px; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.options.single-col { grid-template-columns: minmax(0, 1fr); }
.opt {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius);
  padding: 11px 12px; cursor: pointer; font-size: var(--t-sm); font-weight: 500; min-height: 46px;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.opt:hover { border-color: var(--ink-3); }
.opt .tick {
  width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.opt.multi .tick { border-radius: 5px; }
.opt[aria-checked="true"], .opt[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green-ink); }
.opt[aria-checked="true"] .tick, .opt[aria-pressed="true"] .tick { background: var(--green); border-color: var(--green); }
.opt .tick svg { opacity: 0; }
.opt[aria-checked="true"] .tick svg, .opt[aria-pressed="true"] .tick svg { opacity: 1; }

.detail {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; background: var(--paper);
}
.detail-title { font-weight: 600; font-size: var(--t-sm); }
.detail label { font-size: var(--t-xs); color: var(--ink-2); display: grid; gap: 4px; min-width: 0; }
.detail .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.detail .with-unit { display: flex; align-items: center; gap: 6px; min-width: 0; }
.detail .with-unit input, .detail .with-unit select { width: 100%; }

.field-error { min-height: 1.2em; margin-top: 10px; color: var(--red-ink); font-size: var(--t-xs); }
.ask-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; margin-top: 6px; }
.ask-nav #unknown-btn { justify-self: end; }

/* 입력 요약 */
.summary-card { padding: 18px; display: grid; gap: 12px; }
.summary-card h2 { font-size: var(--t-md); font-weight: 700; }
.summary-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: var(--t-xs); }
.summary-card dt { color: var(--ink-3); }
.summary-card dd { margin: 0; text-align: right; font-weight: 600; }
.whatif { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.whatif h3 { font-size: var(--t-sm); font-weight: 700; }
.whatif label { font-size: var(--t-xs); color: var(--ink-2); }
.whatif .input-row input { font-size: var(--t-md); padding: 9px 12px; }
.diff { display: grid; gap: 6px; font-size: var(--t-xs); margin-top: 4px; }
.diff li { list-style: none; }
.diff ul { margin: 0; padding: 0; display: grid; gap: 4px; }
.up { color: var(--green-ink); font-weight: 600; }
.down { color: var(--red-ink); font-weight: 600; }

/* 실시간 패널 */
.live { padding: 22px; display: grid; gap: 18px; }
.live h2, .results h2 { font-size: var(--t-md); font-weight: 700; }
.live-empty { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 12px 14px; }
.fact dt { font-size: var(--t-xs); color: var(--ink-3); }
.fact dd { margin: 2px 0 0; font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.01em; }
.finds { display: grid; gap: 8px; margin: 0; padding: 0; }
.finds li { list-style: none; display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.finds .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.preview { border: 1px solid var(--green); background: var(--green-soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; color: var(--green-ink); }
.preview strong { font-size: var(--t-md); }
.busy { opacity: 0.55; transition: opacity 160ms var(--ease); }

/* 월급 분배 띠 */
.band-wrap { display: grid; gap: 10px; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--t-xs); color: var(--ink-2); }
.band-head b { color: var(--ink); font-size: var(--t-sm); }
.band { display: flex; height: 52px; border-radius: 9px; overflow: hidden; gap: 2px; background: var(--surface); }
.seg {
  position: relative; min-width: 3px; display: flex; align-items: center; justify-content: center;
  font-size: var(--t-xs); font-weight: 600; white-space: nowrap; overflow: hidden; padding: 0 6px;
  transition: flex-basis 260ms var(--ease), opacity 160ms var(--ease);
  cursor: default;
}
.seg span { overflow: hidden; text-overflow: ellipsis; }
.band.dim .seg { opacity: 0.35; }
.band.dim .seg.hot { opacity: 1; }
.c-spend1 { background: var(--spend-1); color: var(--ink); }
.c-spend2 { background: var(--spend-2); color: var(--ink); }
.c-spend3 { background: var(--spend-3); color: #fff; }
.c-safe { background: var(--blue); color: #fff; }
.c-match { background: var(--amber); color: #2e1f03; }
.c-grow { background: var(--green); color: #fff; }
.c-debt { background: var(--red); color: #fff; }
.c-free { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }
.c-ghost { background: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; font-size: var(--t-xs); color: var(--ink-2); }
.legend li { list-style: none; display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* 결과 */
.results { padding: 28px; display: grid; gap: 0; }
.r-section { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.r-section:first-child { border-top: 0; padding-top: 0; }
.r-section > p.lead { color: var(--ink-2); }
.headline { font-size: var(--t-3xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.headline em { font-style: normal; color: var(--green); }
.who { color: var(--ink-2); font-size: var(--t-sm); }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t-md); }
.equation .term { display: inline-flex; align-items: center; gap: 6px; }
.equation .op { color: var(--ink-3); }
.risk-chip { display: inline-flex; gap: 6px; align-items: center; font-size: var(--t-xs); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.risk-confirm { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--t-xs); color: var(--ink-2); }
.risk-confirm .btn { min-height: 34px; padding: 5px 10px; font-size: var(--t-xs); }

.tabs { justify-self: start; display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 3px; gap: 3px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; cursor: pointer; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); min-height: 34px; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--pu-layer-card); }

table.alloc { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.alloc th { text-align: left; font-size: var(--t-xs); color: var(--ink-3); font-weight: 500; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); }
.alloc td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.alloc tr.hot td { background: var(--paper); }
.alloc .acct { font-weight: 600; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.alloc .amt { text-align: right; font-weight: 700; white-space: nowrap; }
.alloc .why { color: var(--ink-2); font-size: var(--t-xs); }
.alloc .lock { color: var(--ink-3); font-size: var(--t-xs); white-space: nowrap; }
.list { margin: 0; padding: 0; display: grid; gap: 10px; }
.list li { list-style: none; display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.list .ico { color: var(--ink-3); display: inline-flex; margin-top: 3px; }
.list.warn .ico { color: var(--amber-ink); }

.credit-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.credit-scale .cs { text-align: center; font-size: var(--t-xs); padding: 7px 2px; background: var(--paper); color: var(--ink-3); border-radius: 6px; white-space: nowrap; }
.credit-scale .cs:nth-child(1).on { background: var(--red); color: #fff; }
.credit-scale .cs:nth-child(2).on { background: var(--amber); color: #2e1f03; }
.credit-scale .cs:nth-child(3).on { background: var(--blue); color: #fff; }
.credit-scale .cs:nth-child(4).on, .credit-scale .cs:nth-child(5).on { background: var(--green); color: #fff; }
.credit-scale .cs.on { font-weight: 700; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; }
.compare .label { font-size: var(--t-xs); color: var(--ink-3); }
.compare .big { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; }
.compare .bad .big { color: var(--red-ink); }
.compare .good .big { color: var(--green-ink); }

.chart svg { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--ink-3); font-size: 12px; font-family: var(--font); }
.chart .l-now { stroke: var(--green); stroke-width: 3; fill: none; }
.chart .l-late { stroke: var(--ink-3); stroke-width: 2; fill: none; stroke-dasharray: 6 5; }
.chart .end-now { fill: var(--green-ink); font-weight: 700; font-size: 13px; }
.chart .end-late { fill: var(--ink-2); font-weight: 600; font-size: 13px; }
.note { font-size: var(--t-xs); color: var(--ink-3); }

.timeline { margin: 0; padding: 0; display: grid; }
.timeline li { list-style: none; display: grid; grid-template-columns: 64px 18px 1fr; gap: 10px; align-items: center; padding: 8px 0; position: relative; }
.timeline .age { font-weight: 700; text-align: right; }
.timeline .pin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--surface); justify-self: center; position: relative; z-index: 1; }
.timeline li::before { content: ""; position: absolute; left: 82px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li.k-money .pin { border-color: var(--green); }
.timeline li.k-goal .pin { border-color: var(--blue); }
.timeline li.k-deadline .pin { border-color: var(--amber); }
.timeline li.k-risk .pin { border-color: var(--red); }
.timeline li.gap { background: var(--red-soft); }
.timeline li.gap-head .label::after { content: " · 국민연금 전까지 현금흐름 공백"; color: var(--red-ink); font-size: var(--t-xs); }

.checklist { margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li { list-style: none; display: grid; grid-template-columns: 22px 96px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist input { width: 18px; height: 18px; accent-color: var(--green); margin: 2px 0 0; }
.checklist .when { font-size: var(--t-xs); color: var(--ink-2); font-weight: 600; padding-top: 2px; }
.checklist .where { font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; padding-top: 2px; }
.checklist li.done .task { text-decoration: line-through; color: var(--ink-3); }

details.rationale { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
details.rationale summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details.rationale[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details.rationale .inner { padding-bottom: 16px; display: grid; gap: 10px; font-size: var(--t-xs); color: var(--ink-2); }
.elig { margin: 0; padding: 0; display: grid; gap: 8px; }
.elig li { list-style: none; }
.elig b { color: var(--ink); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 1px 7px; border-radius: 5px; margin-right: 6px; }
.tag.yes { background: var(--green-soft); color: var(--green-ink); }
.tag.no { background: var(--paper); color: var(--ink-3); border: 1px solid var(--line); }
.tag.est { background: var(--amber-soft); color: var(--amber-ink); }

.error-box { border: 1px solid var(--red); background: var(--red-soft); color: var(--red-ink); border-radius: var(--radius); padding: 12px 14px; }

.disclaimer { max-width: 1320px; margin: 8px auto 40px; padding: 0 24px; color: var(--ink-3); font-size: var(--t-xs); }
.mobile-bar { display: none; }

/* 결과 모드: 질문 카드 대신 요약 */
.layout[data-mode="result"] .ask-card { display: none; }

/* 자동 재생 */
.btn-demo { min-height: 36px; padding: 6px 14px; font-size: var(--t-xs); }
body.demo-on { padding-bottom: 132px; }
body.demo-on .mobile-bar { display: none !important; }
.demo-caption {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20;
  width: min(980px, calc(100% - 32px)); background: #16191f; color: #fff; border-radius: var(--radius-lg);
  padding: 14px 16px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  box-shadow: 0 12px 32px rgba(27, 39, 48, 0.28); overflow: hidden;
}
.demo-meta { display: grid; gap: 2px; min-width: 0; max-width: 220px; }
.demo-title { font-size: var(--t-xs); font-weight: 700; color: #fff; }
.demo-count { font-size: var(--t-xs); color: #b8c3ca; white-space: nowrap; }
.demo-text { font-size: var(--t-md); line-height: 1.55; text-wrap: pretty; }
.demo-controls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.demo-controls button {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 8px;
  padding: 6px 10px; font-size: var(--t-xs); font-weight: 600; min-height: 34px; cursor: pointer;
}
.demo-controls button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.demo-controls button:disabled { opacity: 0.45; cursor: default; }
.demo-controls button:focus-visible { outline-color: var(--amber); }
.demo-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--amber); transition: width 300ms var(--ease); }
.demo-pulse { animation: demo-pulse 900ms var(--ease); }
@keyframes demo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 151, 42, 0.75); }
  100% { box-shadow: 0 0 0 12px rgba(212, 151, 42, 0); }
}
.demo-spot { outline: 2px solid var(--amber); outline-offset: 10px; border-radius: 12px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .ask-col { position: static; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .brand-tag { display: none; }
  .persona-picker span { display: none; }
  .results { padding: 20px; }
  .headline { font-size: var(--t-2xl); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact dd { font-size: var(--t-md); }
  .disclaimer { padding: 0 16px 72px; }
  .layout[data-mode="ask"] ~ .mobile-bar:not([hidden]) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 12px; font-size: var(--t-xs);
  }
  .layout[data-mode="result"] .ask-col { position: static; order: 2; }
  .layout[data-mode="result"] .live-col { order: 1; }
}
@media (max-width: 560px) {
  .demo-caption { grid-template-columns: minmax(0, 1fr); gap: 10px; bottom: 10px; }
  .btn-demo { display: none; }
  .brand-name, .topbar-actions .btn { white-space: nowrap; }
  .demo-controls { justify-content: flex-start; }
  .btn-demo { padding: 6px 10px; }
  .topbar { flex-wrap: nowrap; gap: 8px; }
  .brand-name { font-size: var(--t-md); }
  .persona-picker select { max-width: 132px; }
  .topbar-actions .btn { padding: 8px 10px; }
  .options { grid-template-columns: minmax(0, 1fr); }
  .q-text { font-size: var(--t-lg); }
  .compare { grid-template-columns: minmax(0, 1fr); }
  table.alloc thead { display: none; }
  table.alloc, .alloc tbody, .alloc tr, .alloc td { display: block; width: 100%; }
  .alloc tr { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  .alloc td { border: 0; padding: 0; }
  .alloc td.why, .alloc td.lock { grid-column: 1 / -1; }
  .checklist li { grid-template-columns: 22px 1fr; }
  .checklist .when { grid-column: 2; }
  .checklist .task { grid-column: 2; }
  .checklist .where { grid-column: 2; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .band { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* 화면 사이 이동(첫 설계 · 내 돈 비서 · 1년 시뮬레이션 · AI가 하는 일) */
.appnav { display: flex; gap: 2px; margin-right: auto; margin-left: 18px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.appnav::-webkit-scrollbar { display: none; }
.appnav a {
  flex: none; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none;
  font-size: var(--t-xs); font-weight: 600; min-height: 34px; display: inline-flex; align-items: center;
}
.appnav a:hover { color: var(--ink); background: var(--paper); }
.appnav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 -2px 0 var(--green); }
@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .appnav { order: 3; flex-basis: 100%; margin: 0 -8px; }
}
.next-links { display: flex; flex-wrap: wrap; gap: 8px; }
.next-links .btn { text-decoration: none; display: inline-flex; align-items: center; }
.asset-line { margin-top: 8px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.6; padding: 8px 12px; background: var(--paper); border-radius: 8px; }
.asset-line b { color: var(--ink); }

/* 여기까지로 결과 보기(남은 질문은 기본값) */
.early-link { margin-top: 10px; border: 0; background: none; padding: 6px 0; font: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--green-ink); cursor: pointer; display: inline-flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; min-height: 36px; text-align: left; }
.early-link .early-main { text-decoration: underline; text-underline-offset: 3px; }
.early-link .early-sub { font-weight: 400; color: var(--ink-3); font-size: var(--t-xs); }
