/* 版面沿用「WealthPro 財務健康檢查」：白底銀行網站式克制設計。
   白色頂欄、灰色色帶、1px 細線、直角；只用 WealthPro 綠作標記，熒光綠只出現在黑底上。 */
:root {
  --black: #1A1A1A; --text: #333333; --muted: #666666;
  --band: #F4F4F4; --band-2: #EDEDED; --line: #D9D9D9; --line-2: #EBEBEB; --field: #8C8C8C;
  --accent: #03B243; --accent-hi: #14C454; --accent-ink: #0B7A35; --accent-wash: #EAF7EF; --neon: #2BFF56; --accent-rgb: 3, 178, 67;
  --good: #0B7A35; --warn: #A15C00; --bad: #B42318; --signal: #C2410C;
  --good-wash: #E8F5EC; --warn-wash: #FFF3E0; --bad-wash: #FDECEA; --signal-wash: #FDF1EB;
  --f-sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --f-num: "Source Sans 3", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --topH: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--f-sans); font-size: 15.5px; line-height: 1.7; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
main { max-width: 560px; margin: 0 auto; padding: 0 16px 24px; }
[hidden] { display: none !important; }
.section-head, .card, #report, #wizard, #m-detail { scroll-margin-top: calc(var(--topH) + 12px); }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
::selection { background: var(--accent-wash); color: var(--black); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num, input[type=number] { font-family: var(--f-num); font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ── 頂欄 ── */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  height: var(--topH); padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar .brand { display: flex; align-items: center; flex: none; }
.topbar .logo { height: 26px; width: auto; display: block; }
.topbar .product { padding-left: 14px; border-left: 1px solid var(--line); font-size: 14px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.banner {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px;
  background: var(--band); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--accent);
}

/* ── 首頁：三大功能 ── */
.hero.home { padding: 30px 0 22px; }
.hero.home h1 { font-size: clamp(30px, 8vw, 40px); }
.features { display: grid; gap: 10px; }
.feature {
  position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start;
  width: 100%; padding: 18px 18px 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s; animation: rise .5s var(--ease) both;
}
.feature:nth-child(2) { animation-delay: .06s; } .feature:nth-child(3) { animation-delay: .12s; }
.feature:first-child { border-top: 3px solid var(--black); }
.feature .num { grid-row: 1 / 4; font: 300 32px/1 var(--f-num); color: var(--accent-ink); }
.feature h3 { margin: 0 0 4px; font-size: 17.5px; font-weight: 600; }
.feature p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.feature .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--black); }
.feature .go::after { content: ""; width: 18px; height: 2px; background: var(--accent); transition: width .25s var(--ease); }
.feature:hover { border-color: var(--black); }
.feature:hover .go::after { width: 28px; }
.source-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.features .source-note { grid-column: 1 / -1; margin-top: 2px; }
.section-head { margin: 34px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-head h2 { font-weight: 300; font-size: 26px; margin: 0; }
.section-head h2::before { display: none; }

/* ── 章節標題 ── */
.hero { padding: 26px 0 22px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: var(--f-num); font-weight: 600; font-size: 13px; letter-spacing: .16em; color: var(--accent-ink); line-height: 1; }
.eyebrow::after { content: ""; width: 36px; height: 2px; background: var(--accent); }
h1 { margin: 0; font-weight: 300; font-size: clamp(28px, 7.4vw, 36px); line-height: 1.3; letter-spacing: .02em; color: var(--black); }
.lead { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 14px 0 12px 14px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: var(--f-num); font-weight: 300; font-size: 30px; line-height: 1; color: var(--black); }
.facts span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-weight: 500; font-size: 18px; line-height: 1.4; color: var(--black); }
h2:not(:has(.badge))::before { content: ""; width: 4px; height: 18px; background: var(--accent); flex: none; }
h3 { margin: 0 0 6px; font-weight: 500; font-size: 16.5px; color: var(--black); }
.badge { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--black); color: var(--neon); font: 600 15px var(--f-num); letter-spacing: .04em; }

/* ── 版塊 ── */
.card { background: #fff; border: 1px solid var(--line); padding: 20px 18px; margin: 0 0 18px; animation: rise .5s var(--ease) both; }
.card.soft { background: var(--band); border-color: var(--line-2); }
.hint { margin: -4px 0 14px; color: var(--muted); font-size: 13.5px; }
.hint.center { text-align: center; margin: 0 0 12px; }
.note { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* 輸入方式 */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice {
  display: grid; align-content: start; gap: 4px; padding: 16px 14px 14px; min-height: 112px; cursor: pointer; text-align: left;
  border: 1px solid var(--field); background: #fff; color: var(--text);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice svg { width: 26px; height: 26px; margin-bottom: 4px; color: var(--black); }
.choice span { font-weight: 600; font-size: 15.5px; color: var(--black); line-height: 1.4; }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.choice:hover { border-color: var(--black); background: var(--band); }
.choice:active { box-shadow: inset 0 0 0 1px var(--black); }
.choice:hover svg { color: var(--accent-ink); }
.textlink {
  display: block; margin: 16px auto 0; padding: 6px 0; border: 0; background: none; cursor: pointer;
  color: var(--black); font-size: 14.5px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent);
}
.textlink:hover { text-decoration-color: var(--black); }
.privacy { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.privacy svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-ink); }
.status { margin-top: 14px; padding: 12px 14px; background: var(--band); box-shadow: inset 4px 0 0 var(--accent); font-size: 14.5px; color: var(--black); }
.status.error { background: var(--bad-wash); box-shadow: inset 4px 0 0 var(--bad); color: var(--bad); }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--line); border-top-color: var(--black); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 供款計算 */
details.more, details.explain { margin-top: 12px; }
details.more > summary, details.explain > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
  font-size: 14px; font-weight: 600; color: var(--black);
}
details.more > summary::-webkit-details-marker, details.explain > summary::-webkit-details-marker { display: none; }
details.more > summary::before, details.explain > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--black); font: 600 13px/1 var(--f-num); }
details[open].more > summary::before, details[open].explain > summary::before { content: "−"; }
details.more .fields { margin-top: 10px; }
.contrib { margin-top: 16px; padding: 14px; background: var(--band); box-shadow: inset 4px 0 0 var(--accent); }
.contrib-eq { display: grid; }
.contrib-eq > span { display: none; }
.contrib-eq > div { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; }
.contrib-eq small { font-size: 13.5px; color: var(--text); }
.contrib-eq b { font: 600 17px/1.3 var(--f-num); color: var(--black); }
.contrib-eq .sum { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.contrib-eq .sum small { font-weight: 600; color: var(--black); }
.contrib-eq .sum b { font-size: 22px; }
.contrib .note { margin-top: 8px; }
.contrib-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.contrib-total span { font-size: 13.5px; color: var(--text); }
.contrib-total b { font: 300 28px/1.1 var(--f-num); color: var(--black); }
.contrib-total small { font-size: 13px; color: var(--muted); }
.rules { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; }
.rules th, .rules td { padding: 8px 6px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.rules th { font-weight: 600; color: var(--black); background: var(--band); }

/* 截圖教學 */
.guide { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.guide h3 { font-size: 15.5px; }
.guide-list { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: g; }
.guide-list li { position: relative; display: grid; gap: 2px; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--line-2); counter-increment: g; }
.guide-list li::before { content: counter(g); position: absolute; left: 0; top: 11px; display: grid; place-items: center; width: 26px; height: 26px; background: var(--black); color: var(--neon); font: 600 13px var(--f-num); }
.guide-list b { color: var(--black); font-size: 14.5px; }
.guide-list span { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.guide-video { display: block; width: 100%; margin-top: 14px; background: var(--black); }
.guide-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.guide-shots figure { margin: 0; }
.guide-shots img { display: block; width: 100%; border: 1px solid var(--line); }
.guide-shots figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); text-align: center; }

/* ── 表單 ── */
.fields { display: grid; gap: 12px; }
.fields.two { grid-template-columns: 1fr 1fr; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
input, select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 0; background: #fff;
  font-size: 16px; color: var(--black); transition: border-color .2s, box-shadow .2s;
}
input[type=number] { font-weight: 600; font-size: 17px; }
select {
  appearance: none; cursor: pointer; padding-right: 34px; font-size: 15px;
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 19px) 19px, calc(100% - 14px) 19px; background-size: 5px 5px; background-repeat: no-repeat;
}
input::placeholder { color: #767676; font-weight: 400; }
input:hover, select:hover { border-color: #4D4D4D; }
input:focus, select:focus { outline: 0; border-color: var(--black); box-shadow: 0 0 0 1px var(--black), 0 0 0 4px rgba(var(--accent-rgb), .28); }
input[type=search] { font-size: 15.5px; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--black); box-shadow: none; }

/* ── 按鈕 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 22px;
  border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  background: #fff; color: var(--black); box-shadow: inset 0 0 0 1px var(--black);
  font-weight: 600; font-size: 15.5px; line-height: 1.2; transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--band); }
.btn.primary, .btn.dark { position: relative; background: var(--black); color: #fff; box-shadow: none; padding-right: 64px; }
.btn.primary:hover, .btn.dark:hover { background: #333; }
.btn.primary::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 48px; background: var(--neon)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%230A0A0A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.btn.ghost { background: var(--band); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--black); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn[disabled] { background: #E6E6E6; color: #8C8C8C; box-shadow: none; cursor: not-allowed; pointer-events: none; }

/* ── 賬戶編輯 ── */
.account { border: 1px solid var(--line-2); background: #F7F7F7; padding: 14px 14px 10px; margin-bottom: 12px; animation: rise .4s var(--ease) both; }
.account-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.account-head .fields { grid-template-columns: 1fr 1fr; }
.holding { display: grid; grid-template-columns: 1fr 112px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.holding select, .holding input { height: 42px; font-size: 14px; padding: 0 10px; }
.holding select { padding-right: 30px; }
.holding.flag select { border-color: var(--signal); background-color: var(--signal-wash); }
.flag-note { grid-column: 1 / -1; margin: -4px 0 4px; font-size: 12.5px; color: var(--signal); font-weight: 600; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--bad); background: var(--bad-wash); }
.icon-btn svg { width: 16px; height: 16px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--black); font-weight: 600; color: var(--black); }
.total-row strong { font: 600 22px var(--f-num); }

/* ── 健康報告 ── */
.grade { position: relative; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--black); margin-bottom: 18px; animation: rise .5s var(--ease) both; }
.grade-top { padding: 30px 18px 10px; }
.grade-top .label { position: absolute; top: 0; right: 0; padding: 7px 14px; background: var(--black); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; box-shadow: inset 4px 0 0 var(--accent); }
.grade-top .value { margin: 6px 0 2px; font-weight: 300; font-size: 46px; line-height: 1.15; letter-spacing: .04em; color: var(--black); }
.grade-top .sub { font-family: var(--f-num); font-size: 15px; color: var(--muted); }
.grade.review .value { color: var(--bad); }
.grade.healthy .value { color: var(--good); }
.grade.great .value { color: var(--accent-ink); }
.grade.excellent .value { color: var(--black); text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.grade-body { padding: 4px 18px 18px; }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 10px 0 14px; }
.scale div { padding: 7px 2px; font-size: 12.5px; text-align: center; background: var(--band); color: var(--muted); }
.scale div.on { background: var(--black); color: #fff; font-weight: 600; box-shadow: inset 0 -3px 0 var(--neon); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 4px 0 8px; border-top: 1px solid var(--line-2); }
.stat { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.stat + .stat { padding-left: 14px; border-left: 1px solid var(--line-2); }
.stat small { display: block; color: var(--muted); font-size: 12.5px; }
.stat b { font: 300 26px var(--f-num); color: var(--black); }
.big { font: 300 40px var(--f-num); line-height: 1.1; color: var(--black); letter-spacing: -.01em; }
.pos { color: var(--good) !important; }
.neg { color: var(--bad) !important; }

.finding { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 18px 18px 16px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--line); animation: rise .5s var(--ease) both; }
.finding .ico { color: var(--accent-ink); padding-top: 2px; }
.finding.alert { box-shadow: inset 4px 0 0 var(--signal); }
.finding.alert .ico { color: var(--signal); }
.finding.good { box-shadow: inset 4px 0 0 var(--accent); }
.finding p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.8; }
.finding.wide { grid-template-columns: 1fr; box-shadow: none; }
.finding.wide .ico { display: none; }
.mixbar { display: flex; gap: 2px; height: 14px; margin: 14px 0 10px; overflow: hidden; }
.mixbar span { height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }

.hlist { margin-top: 8px; }
.hrow { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.hrow:first-child { padding-top: 6px; }
.hrow .fn { font-weight: 600; color: var(--black); }
.hrow .sc { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.hstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.hstats div { background: var(--band); padding: 6px 4px; text-align: center; }
.hstats small { display: block; font-size: 11.5px; color: var(--muted); }
.hstats b { font: 600 14px var(--f-num); color: var(--black); }

.gate { position: relative; }
.gate .blur { filter: blur(5px); pointer-events: none; user-select: none; max-height: 190px; overflow: hidden; opacity: .65; }
.gate .gate-card { position: relative; margin: -120px 0 18px; border-top: 4px solid var(--black); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .28); }
.gate .gate-card .note { margin: 0 0 14px; }

/* ── 退休計算機 ── */
.coverage { height: 10px; background: var(--line-2); overflow: hidden; margin: 16px 0 8px; }
.coverage span { display: block; height: 100%; background: var(--accent); transition: width 1s var(--ease); }
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; border: 1px solid var(--black); background: #fff; }
.segmented button { min-height: 42px; border: 0; background: none; cursor: pointer; font-weight: 500; font-size: 14.5px; color: var(--black); transition: background-color .25s, color .25s; }
.segmented button.on { background: var(--black); color: #fff; font-weight: 600; }
.assumptions { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.assumptions summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--black); padding: 4px 0; }
.assumptions .fields { margin-top: 10px; }

/* 表現評分 */
.score-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 2px; }
.score-num { font: 300 64px/1 var(--f-num); letter-spacing: -.02em; color: var(--black); }
.score-max { font: 400 18px var(--f-num); color: var(--muted); }
.score-band { margin-left: 4px; padding: 3px 12px; font-size: 17px; font-weight: 600; background: var(--black); color: #fff; box-shadow: inset 0 -3px 0 var(--neon); }
.band-top .score-num { text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.band-great .score-num { color: var(--accent-ink); }
.band-good .score-num { color: var(--good); }
.band-fair .score-num { color: var(--warn); }
.band-review .score-num { color: var(--bad); }
.band-review .score-band { background: var(--bad); box-shadow: none; }
.scale.five { grid-template-columns: repeat(5, 1fr); }
.scale.five div { line-height: 1.35; padding: 6px 1px; font-size: 12px; }
.scale.five small { display: block; font: 400 10.5px var(--f-num); opacity: .8; }
.parts { margin: 4px 0 12px; }
.part { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.part-head { display: flex; justify-content: space-between; align-items: baseline; }
.part-head > b { font-size: 14.5px; color: var(--black); }
.part-head span { font: 400 13px var(--f-num); color: var(--muted); }
.part-head span b { font: 600 17px var(--f-num); color: var(--black); }
.part-bar { height: 6px; margin: 6px 0; background: var(--line-2); }
.part-bar i { display: block; height: 100%; background: var(--accent); transition: width .8s var(--ease); }
.part p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* 退休預測拉桿 */
.projector { border-top: 4px solid var(--black); }
.projector h3 { font-weight: 400; font-size: 16.5px; }
.projector h3 b { font: 600 18px var(--f-num); color: var(--accent-ink); }
.pj-big { margin: 4px 0 2px; font: 300 46px/1.1 var(--f-num); color: var(--black); letter-spacing: -.01em; }
.pj-sub { margin: 0 0 14px; font-size: 13.5px; line-height: 1.75; color: var(--text); }
.pj-sub b { font-family: var(--f-num); color: var(--black); }
.pj-chart { margin: 0 0 14px; }
.pj-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pj-chart svg text { font: 11px var(--f-num); fill: var(--muted); stroke: none; }
.pj-chart svg text.gl { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.pj-chart .g { stroke: var(--line-2); stroke-width: 1; }
.pj-chart .axis { stroke: var(--field); stroke-width: 1; }
.pj-chart .a-val { fill: rgba(3, 178, 67, .16); }
.pj-chart .a-pri { fill: rgba(140, 140, 140, .28); }
.pj-chart .l-val { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.pj-chart .l-pri { fill: none; stroke: #8C8C8C; stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.pj-chart .dot { fill: var(--black); }
.pj-chart svg text.rate-k { font: 400 11px var(--f-sans); fill: var(--muted); letter-spacing: .04em; }
.pj-chart svg text.rate-v { font: 600 22px var(--f-num); fill: var(--accent-ink); }
.pj-bar { position: relative; display: flex; height: 16px; background: var(--line-2); }
.pj-bar span { display: block; height: 100%; transition: width .35s var(--ease); }
.pj-bar .base { background: #8C8C8C; }
.pj-bar .grow { background: var(--accent); }
.pj-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--black); transition: left .35s var(--ease); }
.pj-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 14px; font-size: 12px; color: var(--muted); }
.pj-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.pj-legend i.base { background: #8C8C8C; } .pj-legend i.grow { background: var(--accent); } .pj-legend i.mark { width: 2px; height: 12px; background: var(--black); }
#pj-range {
  --fill: 30%; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; appearance: none; -webkit-appearance: none; cursor: pointer;
}
#pj-range::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--black) var(--fill), var(--line) var(--fill)); }
#pj-range::-moz-range-track { height: 6px; background: var(--line); }
#pj-range::-moz-range-progress { height: 6px; background: var(--black); }
#pj-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; background: var(--neon); border: 3px solid var(--black); }
#pj-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 0; background: var(--neon); border: 3px solid var(--black); }
#pj-range:focus { box-shadow: none; }
#pj-range:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.pj-ticks { display: flex; justify-content: space-between; margin: 2px 0 12px; font: 12px var(--f-num); color: var(--muted); }
.projector .pj-presets { flex-wrap: nowrap; gap: 4px; margin-bottom: 4px; }
.projector .pj-presets button { min-width: 0; flex: 1 1 0; padding: 6px 2px; font-size: 13.5px; white-space: nowrap; }
.projector .pj-presets button:first-child { flex-grow: 1.6; }
.projector .btn { margin-top: 14px; }

.bridge { border-top: 4px solid var(--black); }
.bridge h3 { font-weight: 400; font-size: 19px; line-height: 1.5; }
.grade-body details.explain { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.grade-body details.explain .note { margin-top: 8px; }

/* ── 智能退休計算器 ── */
.wizard { border-top: 4px solid var(--black); }
.wiz-progress { height: 4px; margin: -4px -18px 14px; background: var(--line-2); }
.wiz-progress span { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.wiz-count { margin: 0 0 6px; font: 600 12.5px var(--f-num); letter-spacing: .12em; color: var(--accent-ink); }
.wizard h2 { font-weight: 400; font-size: 21px; }
.wizard h2::before { display: none; }
.why { margin: -4px 0 16px; padding: 10px 12px; background: var(--band); font-size: 13.5px; line-height: 1.75; color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.q { margin-bottom: 14px; }
.q-label { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-width: 64px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--field); background: #fff; cursor: pointer; font: 600 15px var(--f-num); color: var(--black); transition: background-color .2s, color .2s, border-color .2s; }
.chips button:hover { border-color: var(--black); }
.chips button.on { background: var(--black); border-color: var(--black); color: #fff; box-shadow: inset 0 -3px 0 var(--neon); }
.opts { display: grid; gap: 8px; margin: 12px 0; }
.opt { display: grid; gap: 2px; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer; border: 1px solid var(--field); background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.opt b { font-size: 15.5px; color: var(--black); }
.opt span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.opt:hover { border-color: var(--black); }
.opt.on { border-color: var(--black); box-shadow: inset 4px 0 0 var(--accent), 0 0 0 1px var(--black); background: #FAFAFA; }
.live { margin: 12px 0 0; font-size: 14px; line-height: 1.75; color: var(--text); }
.live:empty { display: none; }
.live b { font-family: var(--f-num); color: var(--black); }
.wiz-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 20px; }
.wiz-nav .btn.primary { justify-self: end; min-width: 60%; }
.wiz-done { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.wiz-done .textlink { margin: 0; }
.items { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.items th, .items td { padding: 8px 4px; border-bottom: 1px solid var(--line-2); text-align: right; }
.items th { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.items th:first-child, .items td:first-child { text-align: left; }
.items td { font-family: var(--f-num); font-weight: 600; color: var(--black); }
.items td:first-child { font-family: var(--f-sans); font-weight: 400; color: var(--text); }
.items tr.income td { color: var(--good); }
.stack { display: flex; gap: 2px; height: 14px; margin: 16px 0 10px; }
.stack span { height: 100%; }
.s0 { background: var(--black); } .s1 { background: var(--accent); } .s2 { background: #8C8C8C; }
.s3 { background: var(--signal); } .s4 { background: #C4C4C4; } .s5 { background: #E8A27A; }
.scen { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.scen-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.scen-head b { font: 600 18px var(--f-num); color: var(--black); }
.scen.main .scen-head span { font-weight: 600; color: var(--black); }
.scen-bar { position: relative; height: 10px; margin: 8px 0 6px; background: var(--line-2); }
.scen-bar span { display: block; height: 100%; background: #8C8C8C; transition: width .8s var(--ease); }
.scen.main .scen-bar span { background: var(--accent); }
.scen-bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--black); }
.scen-foot { font-size: 13px; color: var(--muted); }
.big small { font-size: 16px; font-weight: 400; color: var(--muted); }
.insight { background: var(--band); border-color: var(--line-2); box-shadow: inset 4px 0 0 var(--accent); }
.insight p { margin: 0 0 10px; font-size: 15px; line-height: 1.85; color: var(--text); }
.insight p:last-child { margin-bottom: 0; }
.ways { margin: 16px 0 14px; padding: 0; list-style: none; counter-reset: w; }
.ways li { position: relative; display: grid; gap: 2px; padding: 10px 0 10px 36px; border-bottom: 1px solid var(--line-2); counter-increment: w; }
.ways li::before { content: counter(w, decimal-leading-zero); position: absolute; left: 0; top: 10px; font: 600 15px var(--f-num); color: var(--accent-ink); }
.ways b { color: var(--black); font-size: 15px; }
.ways span { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
details.assumptions.card { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── 計劃排名 ── */
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.highlights { border-top: 4px solid var(--black); }
.highlights h3 { font-weight: 400; font-size: 19px; }
.facts-list { margin: 10px 0 0; padding: 0; list-style: none; }
.facts-list li { display: grid; gap: 2px; padding: 11px 0 11px 14px; border-bottom: 1px solid var(--line-2); box-shadow: inset 3px 0 0 var(--accent); margin-bottom: 6px; }
.facts-list b { font-size: 13px; color: var(--accent-ink); letter-spacing: .04em; }
.facts-list span { font-size: 14.5px; line-height: 1.8; color: var(--text); }
.rk-row { display: grid; grid-template-columns: 26px minmax(0, 1.25fr) minmax(0, 1fr) 58px; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.rk-row.b4 { background: linear-gradient(90deg, var(--band), transparent 70%); }
.rk-n { font: 600 13px var(--f-num); color: var(--muted); }
.rk-name { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--black); }
.rk-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.rk-name em { display: inline-block; margin-left: 6px; padding: 0 5px; font-style: normal; font-size: 10.5px; font-weight: 600; background: var(--black); color: #fff; }
.rk-track { height: 12px; background: var(--line-2); }
.rk-track i { display: block; height: 100%; background: #8C8C8C; }
.rk-track i.top { background: var(--accent); }
.rk-track i.neg { background: var(--signal); }
.rk-row > b { text-align: right; font: 600 14.5px var(--f-num); color: var(--black); }
.rank-teaser { margin-top: 18px; }
.mini-rank { margin: 8px 0 0; padding: 0; list-style: none; }
.mini-rank li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.mini-rank b { font: 600 17px var(--f-num); color: var(--black); }
.mini-rank li:first-child b { color: var(--accent-ink); }
.rank-teaser .textlink { margin-top: 12px; }

/* ── 按計劃比較 ── */
.card.flush { padding: 16px 0 12px; }
.matrix-tools { padding: 0 16px; }
.matrix-tools .hint { margin: 10px 0 12px; }
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.matrix { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13.5px; }
.matrix th, .matrix td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; text-align: right; }
.matrix thead th { position: sticky; top: 0; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 1px solid var(--line); }
.matrix thead th.on { color: var(--black); box-shadow: inset 0 -3px 0 var(--accent); }
.matrix .sticky { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; min-width: 118px; max-width: 132px; white-space: normal; border-right: 1px solid var(--line); }
.matrix thead .sticky { z-index: 2; cursor: default; }
.matrix tbody th b { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--black); }
.matrix tbody th small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.matrix td { font: 600 14px var(--f-num); color: var(--black); cursor: pointer; transition: background-color .15s; }
.matrix td:hover { background: var(--band); }
.matrix td.top { background: var(--accent-wash); color: var(--accent-ink); }
.matrix td.low { background: var(--signal-wash); color: var(--signal); }
.matrix td.na { color: #BDBDBD; font-weight: 400; cursor: default; }
.matrix-note { padding: 0 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head h3 { margin: 0; }
.card.detail .fund { border-color: var(--line-2); }

/* ── 市場走勢 ── */
.mk-axis { position: relative; height: 18px; margin-left: 38%; margin-right: 64px; font: 11px var(--f-num); color: var(--muted); }
.mk-axis span { position: absolute; transform: translateX(-50%); }
.mk-row { display: grid; grid-template-columns: 38% 1fr 64px; align-items: center; gap: 0; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; text-align: left; color: var(--text); }
.mk-row:hover { background: var(--band); }
.mk-label { font-size: 14px; color: var(--black); line-height: 1.3; padding-right: 8px; }
.mk-label small { display: block; font-size: 11.5px; color: var(--muted); }
.mk-track { position: relative; height: 22px; }
.mk-track i { position: absolute; display: block; }
.mk-track .zero { top: 0; bottom: 0; width: 1px; background: var(--field); }
.mk-track .range { top: 10px; height: 2px; background: var(--line); }
.mk-track .bar { top: 5px; height: 12px; background: var(--accent); }
.mk-track .bar.neg { background: var(--signal); }
.mk-row > b { text-align: right; font: 600 14.5px var(--f-num); }
.mk-years { display: grid; gap: 4px; margin-top: 12px; }
.mk-col { display: grid; gap: 3px; align-content: start; }
.mk-year { padding: 4px 0; text-align: center; font: 600 13px var(--f-num); color: var(--black); border-bottom: 2px solid var(--black); }
.mk-chip { padding: 5px 4px; text-align: center; cursor: pointer; transition: opacity .2s, box-shadow .2s; }
.mk-chip span { display: block; font-size: 11px; line-height: 1.3; color: var(--black); }
.mk-chip b { display: block; font: 600 12.5px var(--f-num); color: var(--black); }
.mk-years.focus .mk-chip { opacity: .28; }
.mk-years.focus .mk-chip.hl { opacity: 1; box-shadow: inset 0 0 0 2px var(--black); }

/* ── 基金比較 ── */
.filters input[type=search] { margin-bottom: 12px; }
.fund { background: #fff; border: 1px solid var(--line); padding: 16px; margin-bottom: 10px; }
.fund .name { font-weight: 600; font-size: 16px; color: var(--black); }
.fund .meta { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; background: var(--band); color: var(--muted); }
.tag.hot { background: var(--accent-wash); color: var(--accent-ink); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.metrics div { background: var(--band); padding: 8px 4px; text-align: center; }
.metrics small { display: block; font-size: 11.5px; color: var(--muted); }
.metrics b { font: 600 15px var(--f-num); color: var(--black); }

/* ── 我的 ── */
.refbox { padding: 12px 14px; border: 1px dashed var(--field); background: #F7F7F7; font: 600 14px var(--f-num); color: var(--black); word-break: break-all; }
.perks { margin: 0; padding: 0; list-style: none; }
.perks li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.perks li b { display: grid; place-items: center; width: 36px; height: 36px; background: var(--black); color: var(--neon); font: 600 17px var(--f-num); }

/* ── 披露 ── */
.disclosure { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.8; }

/* ── 底部分頁 ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 0 env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line);
}
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; padding: 0 2px; border: 0; background: none; cursor: pointer; font-size: 11.5px; letter-spacing: 0; white-space: nowrap; color: var(--muted); transition: color .2s; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button.on { color: var(--black); font-weight: 600; box-shadow: inset 0 3px 0 var(--accent); }
.tabbar button.on svg { color: var(--accent-ink); }

#toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 12px); padding: 12px 18px; background: var(--black); color: #fff; font-size: 14px; opacity: 0; transition: opacity .3s, transform .35s var(--ease); pointer-events: none; max-width: 90vw; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .35); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 報告預覽（電腦版右欄，未生成報告時） ── */
.check-side { min-width: 0; }
.report-empty, .retire-side { display: none; }
.report-empty { border-top: 4px solid var(--black); }
.report-empty h3 { font-weight: 400; font-size: 19px; line-height: 1.5; margin-bottom: 10px; }
.re-parts { margin: 4px 0 6px; padding: 0; list-style: none; }
.re-parts li { display: grid; grid-template-columns: 76px 1fr 30px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--black); }
.re-parts i { display: block; height: 6px; background: var(--accent); }
.re-parts b { text-align: right; font: 600 15px var(--f-num); color: var(--black); }
.report-empty .btn { margin-top: 18px; }
#report.quiet .grade, #report.quiet .card, #report.quiet .finding { animation: none; }

/* ── 退休計算器即時估算（電腦版右欄） ── */
.rp { border-top: 4px solid var(--black); }
.rp h3 { font-weight: 400; font-size: 18px; line-height: 1.5; }
.rp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.rp-row small { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.rp-row b { font: 300 27px/1.1 var(--f-num); color: var(--black); white-space: nowrap; }
.rp-cov { margin: 0; font-size: 14.5px; color: var(--text); }
.rp-cov b { font-family: var(--f-num); }

@media (max-width: 360px) {
  .fields.two { grid-template-columns: 1fr; }
  .holding { grid-template-columns: 1fr 96px 36px; }
  .facts b { font-size: 26px; }
}

/* ══ 平板（768px 或以上）：分頁移至頂欄，內容加闊 ══ */
@media screen and (min-width: 768px) {
  body { padding-bottom: 0; }
  main { max-width: 880px; padding: 0 24px 48px; }
  .topbar { padding: 0 24px; }
  .topbar .tabbar {
    position: static; display: flex; align-items: stretch; align-self: stretch; margin-left: auto;
    padding: 0; border: 0; background: none;
  }
  .topbar .tabbar button { flex-direction: row; gap: 8px; min-height: 0; padding: 0 12px; font-size: 14.5px; letter-spacing: .04em; }
  .topbar .tabbar button svg { display: none; }
  .topbar .tabbar button:hover { color: var(--black); }
  .topbar .tabbar button.on { box-shadow: inset 0 -3px 0 var(--accent); }
  #toast { bottom: 32px; }

  .hero { padding: 36px 0 26px; }
  .hero .lead { max-width: 660px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; align-content: start; }
  .feature .num { grid-row: auto; margin-bottom: 14px; }
  .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .segmented.three { max-width: 560px; }
  .filters .fields.two { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fund-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fund-list .fund { margin: 0; }
  #c-list { margin-bottom: 14px; }
  #me-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
  #me-body > .card { margin: 0; }
  #me-body > :only-child { grid-column: 1 / -1; max-width: 640px; }
}

/* ══ 電腦（1100px 或以上）：MacBook、Windows 手提及投影機 ══ */
@media screen and (min-width: 1100px) {
  main { max-width: 1248px; }
  .topbar { padding: 0 max(24px, calc((100% - 1200px) / 2)); }
  .topbar .tabbar button { padding: 0 16px; }
  .topbar .tabbar button svg { display: block; width: 18px; height: 18px; }
  .topbar .tabbar button.on svg { color: var(--accent-ink); }
  h1 { font-size: 40px; }
  .hero { padding: 44px 0 30px; }

  /* 首頁：左邊標題及排名，右邊三大功能 */
  .intro {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px;
    grid-template-areas: "hero feat" "rank feat"; grid-template-rows: auto 1fr; padding-top: 44px;
  }
  .intro .hero.home { grid-area: hero; padding: 4px 0 26px; }
  .hero.home h1 { font-size: 46px; }
  .intro .features { grid-area: feat; grid-template-columns: 1fr; align-content: start; }
  .intro .feature { grid-template-columns: 60px 1fr; padding: 22px 24px 20px; }
  .intro .feature .num { grid-row: 1 / 4; margin: 0; font-size: 38px; }
  .intro .rank-teaser { grid-area: rank; align-self: start; margin: 0; }
  .section-head { margin: 52px 0 22px; }

  /* 表現評分：左欄輸入，右欄報告固定在畫面 */
  .check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .check-side {
    position: sticky; top: calc(var(--topH) + 16px); max-height: calc(100vh - var(--topH) - 32px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  .report-empty { display: block; }
  .pj-chart svg text { font-size: 12px; }
  .pj-chart svg text.rate-k { font-size: 12px; }
  .pj-chart svg text.rate-v { font-size: 26px; }

  /* 退休計算器：左欄問卷，右欄即時估算；完成後結果分兩欄 */
  .retire-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
  .retire-side { display: block; position: sticky; top: calc(var(--topH) + 16px); }
  .rw-done .retire-layout { display: block; }
  .rw-done .retire-side { display: none; }
  #retire-result:not(:empty) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px;
    grid-template-areas: "month scen" "total gap" "insight insight" "fill assume";
  }
  #retire-result > * { margin: 0; }
  .rr-month { grid-area: month; } .rr-total { grid-area: total; } .rr-scen { grid-area: scen; } .gap-card { grid-area: gap; }
  #retire-result .insight { grid-area: insight; } .rr-fill { grid-area: fill; align-self: start; } #rw-assume { grid-area: assume; align-self: start; }
  #insight-body { column-count: 2; column-gap: 44px; }
  #insight-body p { break-inside: avoid; }

  /* 基金比較 */
  #c-rank-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
  #c-rank-wrap > .card { margin: 0; }
  #r-highlights { position: sticky; top: calc(var(--topH) + 16px); }
  .fund-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .matrix { width: 100%; }
  .matrix .sticky { min-width: 170px; max-width: 220px; }

  /* 市場走勢：板塊表現與歷年排行並排 */
  .mk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 18px; }
  .mk-grid > .card { margin: 0; }
}

/* ══ 大屏幕及投影機（1600px 或以上）：字體及數字放大 ══ */
@media screen and (min-width: 1600px) {
  body { font-size: 16.5px; }
  main { max-width: 1368px; }
  .topbar { padding: 0 max(24px, calc((100% - 1320px) / 2)); }
  .topbar .tabbar button { font-size: 15.5px; padding: 0 20px; }
  h1 { font-size: 44px; }
  .hero.home h1 { font-size: 52px; }
  .score-num { font-size: 80px; }
  .pj-big { font-size: 56px; }
  .big { font-size: 48px; }
  .rp-row b { font-size: 31px; }
}

@media print {
  body { padding: 0; }
  .topbar, .tabbar, .intro, .features, .section-head, .source-note, .hero.home, .view:not([data-view=check]), #step-input, #step-holdings, #step-profile, .no-print, #toast, .banner { display: none !important; }
  .gate .blur { filter: none; max-height: none; opacity: 1; }
  .gate .gate-card { display: none; }
  .card, .finding, .grade { animation: none; }
}
