[hidden] { display: none !important; }
:root {
  --ink: #16191f;
  --muted: #5b6270;
  --line: #d9dde4;
  --bg: #f5f6f8;
  --accent: #1f6f4a;
  --accent-soft: #e6f2ec;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;
  --danger: #a12a1f;
  --danger-bg: #fdecea;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Pretendard GOV Variable", "Pretendard GOV", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
header.site, main, footer { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.brand { font-weight: 800; color: var(--accent); text-decoration: none; font-size: 1.1rem; }
header nav a { margin-left: 16px; color: var(--muted); text-decoration: none; font-size: .92rem; }
h1 { font-size: 1.7rem; margin: 12px 0 4px; }
.lead { color: var(--muted); margin: 0 0 16px; }
h2 { font-size: 1.25rem; margin: 0 0 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.calc .panel { margin-bottom: 0; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 700; margin-bottom: 8px; }
label { display: block; font-size: .92rem; margin: 8px 0; }
select, .unit-input { width: 100%; margin-top: 4px; }
select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.unit-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.unit-input:focus-within, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.unit-input input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font: inherit; font-size: 1rem; text-align: right; background: transparent; outline: none; }
.unit-input i { font-style: normal; color: var(--muted); padding: 0 10px 0 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.seg small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg-sm span { padding: 7px 10px; font-size: .88rem; text-align: center; }
.seg-sm { margin-bottom: 4px; }

details { border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.hint { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }

.result { position: sticky; top: 12px; }
.big-label { margin: 0; color: var(--muted); font-size: .9rem; }
.big { margin: 2px 0 12px; font-size: 2.1rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sum th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 0; }
.sum td { text-align: right; padding: 6px 0; }
.sum tr.strong th, .sum tr.strong td { color: var(--ink); font-weight: 800; border-top: 1px solid var(--line); }
.alerts { list-style: none; padding: 0; margin: 12px 0 0; }
.alerts li { padding: 9px 11px; border-radius: 8px; font-size: .86rem; margin-top: 8px; background: var(--accent-soft); }
.alerts li.warn { background: var(--warn-bg); color: var(--warn); }
.alerts li.danger { background: var(--danger-bg); color: var(--danger); font-weight: 600; }

.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; font-size: .9rem; vertical-align: top; }
.grid thead th { color: var(--muted); font-weight: 600; }
.grid tr.current { background: var(--accent-soft); }
.compare { margin-top: 16px; overflow-x: auto; }
.goal-out { margin: 8px 0; font-size: 1.05rem; }
.goal-out strong { color: var(--accent); font-size: 1.3rem; }

.content { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.content h2 { margin-top: 28px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.faq h3 { color: var(--accent); }
.refs { font-size: .9rem; }
.note { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 12px; }
.ad-slot:empty { display: none; }
footer { color: var(--muted); font-size: .85rem; padding: 24px 16px 40px; }
a { color: var(--accent); }

/* 안내 글·부가 페이지 */
nav.crumb { font-size: .85rem; color: var(--muted); margin: 8px 0 12px; }
nav.crumb a { color: var(--muted); }
.content h1 { margin-top: 0; }
.content p, .content li { font-size: 1rem; }
.content table.grid { margin: 10px 0 16px; }
.content .toc { background: var(--bg); border-radius: 10px; padding: 12px 16px; font-size: .92rem; }
.content .toc ol { margin: 6px 0 0; padding-left: 20px; }
.content .box { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.content .warnbox { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.cta { margin: 26px 0 8px; }
.cta a { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px; border-radius: 10px; }
.others li { margin: 4px 0; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.guide-list span { color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); }

/* 종목 카드 */
.etf-card { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.etf-head span { color: var(--muted); font-size: .85rem; }
.etf-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 6px; }
.etf-card dl div { min-width: 0; }
.etf-card dt { font-size: .75rem; color: var(--muted); }
.etf-card dd { margin: 2px 0 0; font-weight: 700; font-size: .95rem; }
.etf-card details { font-size: .88rem; }
.etf-card .hint { margin: 6px 0 0; }
@media (max-width: 520px) { .etf-card dl { grid-template-columns: repeat(2, 1fr); } }

/* 빠른 입력 버튼 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .85rem; cursor: pointer; color: inherit; }
.chips button:hover { border-color: var(--accent); color: var(--accent); }
.etf-card dl { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .etf-card dl { grid-template-columns: repeat(2, 1fr); } }

/* ── 모바일 조작성 ── */
.mbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .mbar:not([hidden]) {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 50; border: 0; border-radius: 14px; padding: 12px 16px; background: var(--accent); color: #fff; font: inherit;
    box-shadow: 0 6px 20px rgba(0,0,0,.18); cursor: pointer; text-align: left;
  }
  .mbar span { font-size: .85rem; opacity: .9; }
  .mbar strong { font-size: 1.25rem; flex: 1; font-variant-numeric: tabular-nums; }
  .mbar em { font-style: normal; font-size: .8rem; opacity: .9; }
  .result { position: static; }
  /* 아이폰은 16px 미만 입력칸을 누르면 화면을 확대하므로 16px 이상 */
  select, .unit-input input, input { font-size: 16px; }
  select, .unit-input input { min-height: 46px; }
  .seg span { min-height: 48px; display: flex; flex-direction: column; justify-content: center; }
  .seg-sm span { min-height: 44px; }
  .chips { gap: 8px; }
  .chips button { padding: 9px 14px; font-size: .9rem; min-height: 40px; }
  details summary { padding: 10px 0; }
  .panel { padding: 14px; }
  h1 { font-size: 1.45rem; }
  header nav a { margin-left: 12px; }
  /* 넓은 표는 가로로 밀어서 보기 */
  table.grid { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .content { padding: 16px; }
}

/* 긴 종목 이름이 입력 영역을 넓히지 않게 (fieldset·grid 기본 min-width 해제) */
.calc > *, fieldset { min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }
.row > * { min-width: 0; }
.unit-input input { width: 100%; }

/* ── 시뮬레이터 ── */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #e9ecf0; padding: 4px; border-radius: 12px; margin: 14px 0 16px; }
.tabs button { border: 0; background: transparent; padding: 11px 8px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 8px; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
.range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: -4px; }
legend output { color: var(--accent); margin-left: 6px; }
.checks .check { display: flex; gap: 8px; align-items: center; margin: 6px 0; cursor: pointer; }
.checks input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; margin: 0 0 8px; align-items: center; }
.legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.legend b { font-variant-numeric: tabular-nums; }
.legend .when { color: var(--muted); margin-left: auto; font-size: .8rem; }
.chart-wrap { position: relative; touch-action: pan-y; }
#chart, #yChart { display: block; width: 100%; height: auto; }
#chart .ax, #yChart .ax { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.tip { position: absolute; top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: .8rem; box-shadow: 0 4px 14px rgba(0,0,0,.1); pointer-events: none; white-space: nowrap; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.tbl { overflow-x: auto; }
.tbl table.grid td, .tbl table.grid th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum tr.strong th, .sum tr.strong td { font-weight: 700; color: var(--ink); }
@media (max-width: 760px) {
  .seg4 span { padding: 6px 4px; }
  header nav a { margin-left: 10px; font-size: .85rem; }
}
@media (max-width: 400px) {
  header nav a[href="/about"] { display: none; }
}
.cta { display: flex; flex-wrap: wrap; gap: 8px; }
.cta a.ghost { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sim-cta { margin: 0 0 16px; }
.sim-cta a { width: 100%; text-align: center; }

/* ════════════════════════════════════════════════════════════════
   다크 스큐어모피즘 테마 (2026-12-04)
   어두운 리넨 바탕 + 스티치 가죽 패널 + 브러시드 메탈 버튼 + 결과는 메모지.
   이미지 파일 없이 CSS 그라디언트와 SVG 노이즈만 사용(라이선스 걱정 없음).
   ════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;
  --ink: #ece7de;
  --muted: #a8a196;
  --line: rgba(255,255,255,.09);
  --bg: #1d1e21;
  --accent: #e2b65c;           /* 황동 */
  --accent-soft: rgba(226,182,92,.12);
  --warn: #f0c36a;
  --warn-bg: rgba(240,195,106,.12);
  --danger: #ff8a7a;
  --danger-bg: rgba(255,120,100,.13);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --leather: #2a2623;
  --metal: linear-gradient(180deg, #fbfbfb 0%, #dcdcdc 48%, #c6c6c6 52%, #d9d9d9 100%);
  --metal-lines: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 2px, rgba(0,0,0,.035) 2px 3px);
  --brass: linear-gradient(180deg, #f6d68a 0%, #e2b65c 48%, #c99632 52%, #e0b25a 100%);
}
body {
  background:
    var(--noise),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 0%, #2c2d31 0%, #17181a 70%) fixed;
  background-color: #1b1c1f;
}
h1, h2, .brand { text-shadow: 0 -1px 0 rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06); }

/* 상단 바: 어두운 금속 */
header.site { max-width: none; padding: 0 max(16px, calc(50% - 464px));
  background: linear-gradient(180deg, #3a3b40 0%, #26272b 50%, #1f2023 51%, #232428 100%);
  border-bottom: 1px solid #0b0b0c; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 8px rgba(0,0,0,.5); }
.brand { color: #f1d48c; }
header nav a { color: #c9c3b8; text-shadow: 0 -1px 0 #000; }
header nav a:hover { color: #fff; }

/* 가죽 패널 + 바느질선 */
.panel, .content {
  background: var(--noise), linear-gradient(180deg, #332e2a 0%, #27231f 100%);
  background-color: var(--leather);
  border: 1px solid #0e0c0b; border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 22px rgba(0,0,0,.55);
  outline: 1.5px dashed rgba(236,220,190,.22); outline-offset: -8px;
}
.panel { padding: 20px; }

/* 입력칸: 가죽에 눌린 홈 */
select, .unit-input {
  background: #141416; border: 1px solid #0a0a0b; color: var(--ink);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.07);
}
.unit-input input, select { color: var(--ink); }
.unit-input:focus-within, select:focus { outline: 2px solid var(--accent); }
select option { background: #1d1e21; }

/* 브러시드 메탈 버튼 (세그먼트·빠른 입력·탭) */
.seg span, .chips button, .tabs button {
  background: var(--metal-lines), var(--metal); color: #2b2b2b; border: 1px solid #4a4a4a;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgba(0,0,0,.55);
}
.seg small { color: #5d5a55; }
.seg input:checked + span, .tabs button[aria-selected="true"] {
  background: var(--brass); color: #3a2709; border-color: #6b4a12;
  text-shadow: 0 1px 0 rgba(255,240,200,.6);
  box-shadow: inset 0 2px 5px rgba(90,55,0,.55), 0 1px 0 rgba(255,255,255,.08);
}
.chips button:hover { color: #000; border-color: #222; }
.tabs { background: #111113; box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06); }
.tabs button { color: #2b2b2b; }
input[type="range"], .checks input[type="checkbox"] { accent-color: #e2b65c; }

/* 결과: 가죽 덮개가 달린 노란 메모지 */
.result {
  --ink: #2c2418; --muted: #6e624f; --line: rgba(60,40,10,.14); --accent: #1f6b42;
  --accent-soft: rgba(31,107,66,.1); --warn: #7a4e00; --warn-bg: rgba(200,140,20,.16);
  --danger: #9b2418; --danger-bg: rgba(190,50,30,.12);
  color: var(--ink);
  background:
    linear-gradient(180deg, #7a4a29 0%, #5b3519 100%) top / 100% 20px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(70,110,160,.22) 29px 30px) 0 20px / 100% calc(100% - 20px) no-repeat,
    linear-gradient(90deg, transparent 0 34px, rgba(200,60,50,.35) 34px 35px, transparent 35px),
    linear-gradient(180deg, #fbf3d3, #f3e6b8);
  border-color: #3d2a17; outline-color: transparent; padding-top: 34px;
  box-shadow: 0 10px 24px rgba(0,0,0,.6), inset 0 -2px 0 rgba(0,0,0,.08);
}
.result .big { text-shadow: none; }
.result h2 { text-shadow: none; }

/* 종목 카드: 패널 안의 홈 */
.etf-card { background: rgba(0,0,0,.28); border: 1px solid #0d0c0b; box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.05); }
.content .toc { background: rgba(0,0,0,.28); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }
.content .box { background: var(--accent-soft); }

/* 황동 버튼 */
.cta a, .mbar:not([hidden]) {
  background: var(--brass); color: #3a2709; text-shadow: 0 1px 0 rgba(255,240,200,.6);
  border: 1px solid #6b4a12; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 10px rgba(0,0,0,.5);
}
.cta a.ghost { background: var(--metal-lines), var(--metal); color: #2b2b2b; box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(0,0,0,.5); border-color: #4a4a4a; }
.tip { background: #f6edcc; color: #2c2418; border-color: #3d2a17; }
.legend .when, #chart .ax { color: var(--muted); }
a { color: #e8c36d; }
footer, footer a, nav.crumb, nav.crumb a { color: #8f897f; }

/* 상단 메뉴 탭: 금속 바 아래에 붙은 가죽 탭. 지금 페이지는 황동 */
.mtabs { max-width: 960px; margin: 0 auto 4px; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs a {
  flex: 0 0 auto; padding: 9px 16px 10px; border-radius: 0 0 12px 12px; text-decoration: none; font-weight: 700; font-size: .92rem;
  color: #d8d2c7; text-shadow: 0 -1px 0 #000;
  background: var(--noise), linear-gradient(180deg, #24211e, #322c27); background-color: var(--leather);
  border: 1px solid #0e0c0b; border-top: 0; box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 -1px 0 rgba(255,255,255,.06);
}
.mtabs a:hover { color: #fff; }
.mtabs a[aria-current="page"] { background: var(--brass); color: #3a2709; text-shadow: 0 1px 0 rgba(255,240,200,.6); border-color: #6b4a12; }
@media (max-width: 760px) { .mtabs { gap: 3px; padding: 0 10px; } .mtabs a { padding: 9px 12px 10px; font-size: .86rem; } }

/* ── 정렬 다듬기 (2026-12-04) ── */
/* 한글은 단어 중간에서 줄을 바꾸지 않는다 (마지막 글자 한 자만 다음 줄로 떨어지는 것 방지) */
body { word-break: keep-all; overflow-wrap: break-word; }
/* 금속·황동 버튼: 가운데 광택 경계가 글자를 가로지르지 않게 부드럽게 */
:root {
  --metal: linear-gradient(180deg, #fdfdfd 0%, #e6e6e6 55%, #cfcfcf 100%);
  --brass: linear-gradient(180deg, #f7d991 0%, #e6b95e 55%, #cf9c3c 100%);
}
/* 선택 버튼: 한 줄이든 두 줄(제목+설명)이든 모두 가운데 정렬 */
.seg span { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 44px; line-height: 1.35; }
.seg small { margin-top: 2px; }
/* 빠른 입력 버튼: 글자를 정확히 가운데 */
.chips button { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; min-height: 32px; }
.mtabs a, .tabs button { text-align: center; line-height: 1.3; }
/* 메모지: 줄을 배경에 따로 긋지 않고 각 행의 밑줄로 그어 글자가 줄 위에 앉게. 빨간 여백선은 글자 왼쪽 바깥 */
.result {
  background:
    linear-gradient(180deg, #7a4a29 0%, #5b3519 100%) top / 100% 20px no-repeat,
    linear-gradient(90deg, transparent 0 24px, rgba(200,60,50,.4) 24px 25px, transparent 25px),
    linear-gradient(180deg, #fbf3d3, #f3e6b8);
  padding-left: 40px;
}
.result .sum th, .result .sum td { border-bottom: 1px solid rgba(70,110,160,.28); padding: 8px 0; vertical-align: baseline; }
.result .sum tr.strong th, .result .sum tr.strong td { border-top: 0; border-bottom: 2px solid rgba(70,110,160,.45); }
/* 표: 숫자 열은 오른쪽(머리글 포함, align.js가 .n 표시), 세로는 위쪽 맞춤 */
.grid th.n, .grid td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid th, .grid td { vertical-align: middle; }
/* 범례·안내 줄: 글자와 색 표시를 가운데 높이로 */
.legend span, .legend > * { display: inline-flex; align-items: center; }
.grid td.n + td:not(.n), .grid th.n + th:not(.n) { padding-left: 22px; }
.grid small.sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
/* 항목·값 표(종목 한눈에): 값은 오른쪽으로 모아 결과 메모지와 같은 읽기 방향 */
.grid.kv th { width: 45%; font-weight: 600; color: var(--muted); }
.grid.kv td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 표 첫 열(항목 이름)은 한 단어 안에서 끊지 않는다 */
.grid tbody th { white-space: nowrap; }
@media (max-width: 760px) {
  /* 두 줄 선택 버튼: 좁은 화면에서도 제목이 한 줄에 들어가게 */
  .seg span { padding: 8px 6px; font-size: .9rem; }
  .seg small { font-size: .72rem; }
  .seg4 span { font-size: .88rem; }
  /* 빠른 입력 버튼: 한 줄에 고르게 나눠 담는다 */
  .chips { flex-wrap: nowrap; gap: 6px; }
  .chips button { flex: 1 1 0; min-width: 0; padding: 9px 2px; font-size: .84rem; white-space: nowrap; }
}
/* 목표 금액 줄: 왼쪽(라벨+입력칸)과 같은 모양으로 라벨 아래 값, 값은 입력칸 높이 가운데 */
.goal-out { margin: 8px 0; font-size: .92rem; }
.goal-out strong { display: flex; align-items: center; min-height: 44px; margin-top: 4px; white-space: nowrap; }
@media (max-width: 760px) { .goal-out strong { min-height: 46px; font-size: 1.15rem; } }
/* 이동 버튼: 글자 가운데, 좁은 화면에선 줄마다 꽉 차게 */
.cta a { text-align: center; }
@media (max-width: 760px) { .cta a { flex: 1 1 100%; } }
/* 가정 빠른 버튼: "주가"·"배당" 줄마다 이름표 + 버튼. 과거 실제 성장률 버튼은 황동 테두리로 구분 */
.chip-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.chip-label { flex: 0 0 2.6em; font-size: .84rem; font-weight: 700; color: var(--muted); }
.chip-row .chips { flex: 1; margin: 0; flex-wrap: wrap; }
.chips button.past { border-color: #6b4a12; box-shadow: inset 0 0 0 1px #e2b65c, 0 2px 3px rgba(0,0,0,.55); }
@media (max-width: 760px) {
  .chip-row .chips { flex-wrap: wrap; }
  .chip-row .chips button { flex: 1 1 auto; padding: 9px 6px; }
}
/* 버튼이 두 줄로 넘어가도 이름표는 첫 줄 버튼과 같은 높이에 */
.chip-row { align-items: flex-start; }
.chip-label { line-height: 34px; }
@media (max-width: 760px) { .chip-label { line-height: 40px; } }

/* ── 입력칸·드롭다운 높이 통일 (2026-12-04) ──
   드롭다운과 숫자 칸 높이가 달라 같은 줄에서 라벨·칸 위치가 어긋났다. 높이를 같게 하고 위쪽 기준으로 정렬 */
select, .unit-input { height: 44px; min-height: 44px; margin-top: 6px; }
select { padding: 0 34px 0 12px; line-height: 44px; }
.unit-input input { height: 100%; min-height: 0; padding-top: 0; padding-bottom: 0; }
.row { align-items: start; }
.row > label { margin: 8px 0; }
/* 제목(legend) 바로 아래 칸은 라벨 글자가 없어도 다른 칸과 같은 간격 */
legend + label, legend + select, legend + .unit-input { margin-top: 0; }
legend + label > .unit-input { margin-top: 0; }
@media (max-width: 760px) {
  select, .unit-input { height: 48px; min-height: 48px; }
  select { line-height: 48px; }
}
/* 카드 간격 통일: 모든 카드·계산 묶음 사이는 16px */
.calc, .panel, .content { margin-bottom: 16px; }
.calc .panel { margin-bottom: 0; }
.calc { gap: 16px; }
/* 범례: 이름과 값 사이 띄어쓰기 유지 */
.legend span, .legend > * { gap: .35em; }
.legend i { margin-right: 0; }
/* 적금 vs ETF 비교표(메모지 안): 항목 | 적금 | ETF, 값은 오른쪽 */
.sum.vs td { width: 34%; padding-left: 8px; }
.sum.vs tr.head td { font-weight: 800; color: var(--ink); font-size: .9rem; }
.sum.vs tr.head th, .sum.vs tr.head td { border-bottom: 2px solid rgba(70,110,160,.45); }
.grid th small.sub { white-space: normal; }
.sum.vs th { white-space: nowrap; padding-right: 6px; }
@media (max-width: 760px) { .sum.vs { font-size: .84rem; } .sum.vs td { padding-left: 4px; } }
/* 필요한 투자금: 옆 입력칸과 같은 높이·위치에 오른쪽 정렬 */
.goal-out strong { justify-content: flex-end; height: 44px; margin-top: 6px; padding: 0 14px; border-radius: 12px; background: rgba(0,0,0,.22); box-shadow: inset 0 1px 3px rgba(0,0,0,.5); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .goal-out strong { height: 48px; } }
.sum.vs td small.sub { display: block; font-size: .74rem; font-weight: 400; color: var(--muted); }
.result .big { word-break: keep-all; }
