/* Shared presentation for the four NASH calculation modules. */
:root {
  --navy: #0b2039;
  --ink: #17324b;
  --blue: #007f72;
  --cyan: #06a88e;
  --border: #dce5ee;
  --muted: #60718a;
  --bg: #f3f6f9;
  --card-shadow: 0 4px 20px #102c4610;
  -webkit-font-smoothing: antialiased;
}
body { line-height: 1.5; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { transition: background .16s, border-color .16s, box-shadow .16s; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #06a88e;
  outline-offset: 3px;
}
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
input::placeholder { color: #60718a; font-size: 13px; }
button, input, select { min-height: 44px; }
input[type=checkbox] { min-height: 18px; width: 18px; height: 18px; flex-shrink: 0; }
input[type=range] { min-height: 28px; cursor: pointer; }
input[type=number], .big-amount, .planner-profit, .yield-total strong,
.simple-total-breakdown strong, .yield-metrics strong, .allocation-card strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.sidebar {
  width: 224px;
  padding: 30px 16px 22px;
  background: linear-gradient(160deg, #102c46 0%, #0b2039 55%, #081a30 100%);
  border-right: 1px solid #1a3850;
}
.brand { gap: 11px; padding: 0 12px 35px; }
.brand img { width: 45px; height: 43px; }
.brand strong { font-size: 24px; letter-spacing: 1.8px; }
.brand span { color: #b2c7db; font-size: 12px; letter-spacing: 2px; }
.nav-label { padding: 0 15px 14px; font-size: 11px; letter-spacing: 1.5px; color: #a3bbd0; }
.nav-item { position: relative; min-height: 54px; padding: 14px 15px; gap: 11px; border-radius: 12px; color: #b7cbdc; margin-bottom: 8px; font-size: 14px; }
.nav-icon { width: 21px; height: 21px; display: flex; align-items: center; flex-shrink: 0; }
.nav-icon svg { width: 21px; height: 21px; }
.nav-item:hover { background: #1b3b52; color: white; }
.nav-item.active { background: #164b52; color: #fff; box-shadow: none; }
.nav-item.active:before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: #5be0b4; }
.nav-item.active .nav-icon { color: #78e4c1; }
.nav-code { margin-left: auto; font-size: 10px; opacity: 1; color: #aee4d4; white-space: nowrap; }
.side-note { margin-top: 34px; padding: 24px 15px; border-color: #294259; }
.note-label, .side-note small { color: #a3bbd0; }
.side-note p { color: #d4e2ed; font-size: 13px; line-height: 2.2; }
.side-footer { color: #d1e1ec; font-size: 12px; padding: 16px 15px 0; }
.side-footer span { color: #a3bbd0; font-size: 11px; }
.workspace { margin-left: 224px; }
.topbar { height: 68px; padding: 0 32px; background: #ffffffd9; font-size: 13px; }
.topbar div { font-weight: 600; letter-spacing: .3px; }
.topbar div>span { font-weight: 400; }
.status-pill { border-radius: 20px; padding: 6px 12px; background: #fff7e8; border-color: #e9d9b5; color: #795720; font-size: 11px; }
main { max-width: 1500px; padding: 32px 32px 28px; }
.page-heading { margin-bottom: 24px; align-items: flex-start; }
.eyebrow { color: var(--blue); font-size: 11px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.eyebrow:before { content: ""; display: block; width: 19px; height: 3px; border-radius: 2px; background: var(--cyan); }
h1 { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.5px; margin: 9px 0 12px; color: #102c45; }
.page-heading p { line-height: 1.8; font-size: 13px; max-width: 820px; }
h2 { font-size: 18px; line-height: 1.5; font-weight: 650; letter-spacing: -.2px; }
.quiet-button { border-radius: 10px; margin-top: 8px; font-size: 13px; box-shadow: 0 2px 4px #102c4605; }
.quiet-button:hover { border-color: #93bdb5; background: #f6fbf9; }
.notice { padding: 15px 18px; background: #eef7f5; border-color: #d4e7e2; border-radius: 12px; gap: 12px; margin-bottom: 24px; }
.notice-symbol { color: var(--blue); border-color: var(--blue); margin-top: 3px; font-family: Georgia, serif; font-weight: 700; }
.notice strong { color: #23514e; font-size: 13px; }
.notice p { color: #526d73; font-size: 12px; }
.panel { border-radius: 18px; box-shadow: var(--card-shadow); }
.surface-grid { gap: 24px; grid-template-columns: 310px minmax(0,1fr); }
.planner-grid { grid-template-columns: 310px minmax(0,1fr); }
.form-panel, .allocation-hero, .ledger, .chart-panel, .comparison-panel, .account-yield-panel, .yield-panel { padding: 24px; }
.panel-title { margin-bottom: 22px; gap: 12px; }
.panel-title small { font-size: 11px; white-space: nowrap; }
.form-panel .panel-title { align-items: flex-start; }
.form-panel .panel-title small { padding-top: 5px; }
label { font-size: 13px; font-weight: 500; color: #4b6076; }
label small, .fineprint, .section-caption, .sources p { color: var(--muted); font-weight: 400; }
label small, .fineprint { font-size: 12px; line-height: 1.85; }
label .suffix-input, label select { margin-top: 9px; }
.suffix-input { min-height: 48px; border-radius: 10px; border-color: #d4dfe9; transition: border-color .16s, box-shadow .16s; }
.suffix-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #007f7214; }
.suffix-input input:focus { outline: 0; }
input[type=number] { padding: 12px 13px; font-size: 15px; }
.suffix-input span { padding-right: 13px; font-size: 11px; color: #60718a; }
select { min-height: 48px; padding: 11px 12px; border-radius: 10px; font-size: 14px; border-color: #d4dfe9; }
select:disabled { background: #f3f6f9; color: #60718a; }
.input-group { margin: 20px 0; }
.amount-input input { font-size: 30px; font-weight: 650; padding: 15px 13px; }
.preset-row { gap: 8px; margin-top: 12px; }
.preset-row button { padding: 5px 12px; min-height: 44px; border-radius: 7px; font-size: 12px; background: #f1f5f8; color: #526b83; }
.preset-row button:hover { color: var(--blue); border-color: #bcd7d0; background: #edf8f4; }
.pair-fields { gap: 14px; }
.primary-button { min-height: 48px; border-radius: 10px; background: var(--blue); font-size: 14px; letter-spacing: .3px; box-shadow: 0 3px 8px #007f721a; margin-top: 18px; }
.primary-button:hover { background: #00695f; box-shadow: 0 4px 12px #007f7225; }
.check-label { font-weight: 400; line-height: 1.7; }
.rules-panel summary { padding: 19px 24px; }
.rules-body { padding: 22px 24px; }
.rules-panel summary:after { color: var(--blue); }
.good-note, .grade-budget { border-radius: 10px; background: #eef8f4; border-color: #d3e8de; color: #32695e; }
.grade-budget.over-budget { background: #fff6e8; color: #80551e; }
.form-error { border-radius: 10px; }
.allocation-hero { position: relative; overflow: hidden; border-top: 3px solid #06a88e; }
.allocation-summary strong { font-size: 25px; font-weight: 650; color: #102c45; }
.allocation-summary p { font-size: 13px; margin: 10px 0 16px; }
.plan-adjust { font-size: 12px; margin-bottom: 20px; color: var(--blue); text-underline-offset: 3px; }
.plan-adjust:hover { text-decoration: underline; }
.allocation-flow { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.allocation-card { position: relative; background: #f3f8f7; border: 1px solid #d9e7e3; border-top: 1px solid #d9e7e3; border-radius: 12px; padding: 17px 14px; }
.allocation-card span { font-size: 12px; color: #47685f; line-height: 1.8; }
.allocation-card strong { font-size: 26px; color: #075d55; font-weight: 650; letter-spacing: -.5px; margin-top: 15px; }
.allocation-card small { color: #60718a; font-size: 11px; margin-top: 8px; }
#grade-report .allocation-card:not(:last-child):after { content: "→"; position: absolute; right: -15px; top: calc(50% - 13px); color: #689e91; font-size: 19px; z-index: 1; }
.layout-reason { font-size: 12px; line-height: 1.9; color: #60718a; padding: 18px 0; }
.layout-reason b { color: #40596e; }
.uplift-row { gap: 20px; padding-top: 18px; }
.uplift-row small { font-size: 12px; }
.uplift-row strong { color: #007f72; font-size: 23px; margin-top: 7px; }
.result-panel { padding: 28px; border-radius: 18px; border: 1px solid #15324a; background: var(--navy); }
.result-kicker, .result-sub, .result-metrics small, .result-tag, .big-amount .unit, .planner-profit span, .empty-result p { color: #b9cedf; }
.result-tag { border-color: #3b566e; border-radius: 5px; }
.big-amount { font-size: 42px; font-weight: 650; letter-spacing: -1px; line-height: 1.4; }
.result-metrics { border-color: #2e485e; padding-top: 22px; margin-top: 24px; }
.result-metrics strong { font-size: 19px; }
.planner-profit { font-size: 33px; line-height: 1.5; }
.planner-benefit { color: #99ddc5; border-color: #2e485e; }
.empty-result h3 { font-size: 23px; }
.chart-key span:before, .chart polyline:first-of-type { background: #007f72; stroke: #007f72; }
.chart-key span:last-child:before, .chart polyline:last-of-type { background: #3590b8; stroke: #3590b8; }
.chart text { fill: #60718a; }
.ledger dl>div, .yield-ledger>div { border-color: #e7edf2; }
.ledger dd { color: #17324b; }
.table-wrap { border-radius: 10px; scrollbar-width: thin; scrollbar-color: #b9cec9 #f4f8f7; }
th { background: #f3f6f8; color: #526b80; font-size: 12px; padding: 13px 12px; }
td { font-size: 13px; padding: 13px 12px; border-color: #e7edf2; }
tbody tr:last-child td { border-bottom: 0; }
.selected-row { background: #edf8f4; }
.row-badge { background: #eaf7f1; border-color: #cae6d9; color: #176755; border-radius: 5px; font-size: 11px; padding: 3px 7px; }
.select-row, .add-button { border-color: #bad9ce; color: #007f72; border-radius: 8px; background: #f3faf7; }
.select-row:hover, .add-button:hover { background: #e5f3ec; }
.remove-button { color: #9f4659; min-width: 44px; }
.account-chip, .tree-node { border-color: #d3e6de; color: #426e64; background: #f0f8f4; border-radius: 10px; }
.tree-line { background: #91bcb0; }
.planner-boundaries { padding: 20px 24px; color: #60718a; }
.page-footer { color: #60718a; font-size: 12px; line-height: 1.8; align-items: center; }
.text-button { color: #007f72; font-size: 12px; min-height: 44px; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.sources { border-radius: 18px; }
.simple-calculator { margin-top: 24px; border-top: 1px solid var(--border); }
.simple-calculator>.panel-title { margin-bottom: 9px; }
.simple-calculator .panel-title a { font-size: 12px; color: var(--blue); padding: 8px 0; }
.simple-yield-intro { margin-bottom: 22px; font-size: 13px; }
.simple-yield-grid { grid-template-columns: minmax(260px,.9fr) minmax(0,1.1fr); gap: 26px; align-items: start; }
.simple-yield-controls { padding: 22px; background: #f5f8fa; border: 1px solid #e2e9ef; border-radius: 14px; }
.simple-principal { padding: 0 0 20px; border-bottom: 1px solid #dde6ed; background: transparent; border-radius: 0; margin-bottom: 20px; }
.simple-principal small { font-size: 12px; }
.simple-principal strong { font-size: 28px; font-weight: 650; letter-spacing: -.5px; margin-top: 6px; }
.simple-principal em { margin-left: 4px; font-size: 11px; font-weight: 500; }
.yield-term-buttons { gap: 6px; margin: 10px 0 22px; }
.yield-term-buttons button { background: white; border-radius: 8px; min-height: 44px; padding: 10px 2px; font-size: 12px; color: #51697f; }
.yield-term-buttons button:hover { background: #edf7f3; border-color: #a9d0c5; }
.yield-term-buttons button[aria-pressed=true] { color: white; border-color: var(--blue); background: var(--blue); font-weight: 600; }
.simple-rate-fields { gap: 12px; }
.simple-rate-fields input { font-size: 21px; padding: 12px; font-weight: 600; }
.simple-yield-controls .fineprint { font-size: 11px; color: #60718a; margin-top: 12px; }
.simple-yield-controls .input-group { margin: 20px 0 12px; }
.simple-holding { font-size: 12px; color: #4b6076; }
.yield-day-buttons { margin-top: 6px; margin-bottom: 20px; gap: 9px; }
.yield-day-buttons button { flex: 1; padding: 7px 8px; min-height: 44px; font-size: 12px; background: white; border-radius: 8px; }
.yield-day-buttons button:hover { border-color: #a9d0c5; color: var(--blue); }
.simple-yield-controls .primary-button { margin-top: 18px; }
.yield-kicker { padding: 2px 0 10px; font-size: 12px; font-weight: 500; }
.yield-total { padding: 24px; margin-top: 0; border-radius: 14px; border-top: 3px solid #24b998; background: var(--navy); }
.yield-total small { color: #bfd1df; font-size: 12px; }
.yield-total strong { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.35; letter-spacing: -.6px; font-weight: 650; margin-top: 12px; }
.yield-total em { color: #bfd1df; font-size: 11px; margin-left: 3px; font-weight: 400; letter-spacing: 0; }
.yield-total p { color: #bfd1df; font-size: 12px; line-height: 1.85; margin-top: 14px; }
.simple-total-breakdown { padding: 0; border: 0; gap: 12px; margin: 16px 0; }
.simple-total-breakdown>div { background: #f2f7f5; padding: 15px; border-radius: 10px; border: 1px solid #dce9e3; }
.simple-total-breakdown small { font-size: 11px; }
.simple-total-breakdown strong { font-size: 23px; letter-spacing: -.4px; margin-top: 7px; }
.simple-total-breakdown>div:last-child strong { color: #007f72; }
.simple-daily-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 20px; }
.simple-daily-metrics>div { border: 1px solid #e2e9ef; padding: 13px 12px; border-radius: 10px; background: #fbfcfd; }
.simple-daily-metrics small { font-size: 11px; min-height: 36px; line-height: 1.7; }
.simple-daily-metrics strong { font-size: 21px; margin-top: 5px; line-height: 1.4; font-weight: 650; letter-spacing: -.3px; }
.simple-daily-metrics>div:last-child { background: #f0f8f4; border-color: #d5e7dd; }
.simple-daily-metrics>div:last-child strong { color: #007f72; }
.yield-detail { padding-top: 15px; margin-top: 0; }
.yield-detail summary { font-size: 12px; color: var(--blue); }
.yield-detail .fineprint { font-size: 11px; }
.yield-ledger { margin-top: 14px; }
.yield-ledger>div { padding: 11px 0; }
.yield-empty { min-height: 360px; display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px dashed #c5d7d3; border-radius: 14px; background: #fbfdfc; }
.yield-empty h3 { font-size: 18px; color: #234a46; }
.simple-empty-amount { font-weight: 400; color: #90b4a8; padding: 12px; }
.account-yield-panel { margin-top: 20px; }
.simple-account-details>summary, .simple-layout-details>summary, .simple-comparison>summary { font-size: 14px; color: #36556a; font-weight: 500; }
.simple-account-details>summary::marker, .simple-layout-details>summary::marker, .simple-comparison>summary::marker { color: #007f72; }
.simple-layout-details>summary { padding: 22px 24px; }
#grade-layout-details { margin-top: 16px; }
.simple-comparison { margin-top: 16px; }
.simple-layout-details>.panel { box-shadow: none; }
.account-yield-cards article { border-radius: 12px; }
.account-yield-cards header { background: #f2f8f5; padding: 14px; }
.account-yields td small, .account-yield-cards dd small { font-size: 11px; }
.account-yield-total, .account-yields tfoot { background: #edf8f2; border-radius: 10px; }
@media (min-width: 1550px) {
  main { padding-top: 38px; }
  .surface-grid, .planner-grid { grid-template-columns: 340px minmax(0,1fr); }
}
@media (max-width: 1190px) {
  .sidebar { width: 208px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 208px; }
  main { padding: 28px 24px; }
  .topbar { padding: 0 24px; }
  .surface-grid, .planner-grid { grid-template-columns: 280px minmax(0,1fr); }
  .form-panel, .allocation-hero { padding: 22px; }
  .form-panel .panel-title { flex-wrap: wrap; gap: 3px; }
  .allocation-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #grade-report .allocation-flow { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .allocation-card { padding: 15px 12px; }
  .allocation-card strong { font-size: 22px; }
  .simple-yield-grid { grid-template-columns: 1fr 1.15fr; gap: 22px; }
  .simple-yield-controls { padding: 18px; }
  .simple-daily-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 681px) and (max-width: 970px) {
  .sidebar { width: 92px; padding: 24px 9px 18px; }
  .workspace { margin-left: 92px; }
  .brand { padding: 0 0 26px; justify-content: center; }
  .brand img { width: 44px; height: 40px; }
  .brand div, .nav-label, .side-note, .side-footer, .nav-code { display: none; }
  .nav-item { flex-direction: column; gap: 7px; justify-content: center; min-height: 76px; padding: 12px 3px; font-size: 11px; border-radius: 12px; }
  .nav-item.active:before { top: 23px; bottom: 23px; }
}
@media (max-width: 970px) {
  .surface-grid, .planner-grid { grid-template-columns: 1fr; }
  .allocation-flow { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .allocation-card strong { font-size: 26px; }
  .simple-yield-grid { grid-template-columns: 1fr; gap: 24px; }
  .simple-yield-controls { padding: 22px; }
  .simple-daily-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .yield-total strong { font-size: 34px; }
  .team-report { grid-template-columns: 1fr; }
  .topbar { height: 60px; }
  .form-panel .panel-title { flex-wrap: nowrap; gap: 10px; }
}
@media (max-width: 680px) {
  .sidebar { position: static; width: 100%; padding: 17px 16px 12px; border: 0; }
  .workspace { margin-left: 0; }
  .brand { padding: 0 3px 17px; gap: 10px; }
  .brand img { width: 38px; height: 34px; }
  .brand div { display: flex; align-items: baseline; gap: 10px; }
  .brand strong { font-size: 21px; }
  .brand span { font-size: 11px; letter-spacing: 1px; }
  .nav-label, .side-note, .side-footer, .nav-code { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .sidebar .nav-item { padding: 11px 12px; margin: 0; min-height: 44px; justify-content: flex-start; border-radius: 9px; gap: 10px; font-size: 12px; background: #ffffff08; }
  .sidebar .nav-item.active { background: #164b52; }
  .nav-item.active:before { top: 13px; bottom: 13px; }
  .nav-icon, .nav-icon svg { width: 18px; height: 18px; }
  .topbar { height: 50px; padding: 0 18px; font-size: 11px; }
  .status-pill { padding: 5px 9px; font-size: 10px; }
  main { padding: 25px 16px 22px; }
  .page-heading { margin-bottom: 20px; gap: 10px; }
  h1 { font-size: 25px; line-height: 1.35; margin-bottom: 9px; }
  h2 { font-size: 17px; }
  .eyebrow { font-size: 10px; }
  .page-heading p { font-size: 12px; }
  .quiet-button { min-height: 44px; font-size: 11px; padding: 8px 10px; }
  .notice { padding: 13px 14px; margin-bottom: 20px; }
  .notice strong { font-size: 12px; }
  .notice p { font-size: 11px; }
  .panel { border-radius: 15px; }
  .form-panel, .allocation-hero, .ledger, .chart-panel, .comparison-panel, .account-yield-panel, .yield-panel { padding: 20px; }
  .surface-grid { gap: 18px; }
  .planner-grid .report-column { grid-row: 1; }
  .planner-grid .form-panel { grid-row: 2; }
  .allocation-summary strong { font-size: 23px; }
  .allocation-flow, #grade-report .allocation-flow { grid-template-columns: 1fr; gap: 15px; }
  .allocation-card { padding: 13px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; align-items: center; }
  .allocation-card span { font-size: 12px; }
  .allocation-card strong { grid-row: span 2; font-size: 25px; margin-top: 0; }
  .allocation-card small { margin: 0; font-size: 11px; }
  #grade-report .allocation-card:not(:last-child):after { content: "↓"; right: auto; left: calc(50% - 5px); top: auto; bottom: -19px; font-size: 17px; }
  .uplift-row { grid-template-columns: 1fr; gap: 18px; }
  .uplift-row strong { font-size: 22px; }
  .layout-reason { padding: 17px 0; font-size: 12px; }
  .simple-calculator { margin-top: 18px; }
  .simple-calculator .panel-title { gap: 5px; }
  .simple-calculator .panel-title a { font-size: 11px; padding: 0; }
  .simple-yield-intro { font-size: 12px; margin-bottom: 18px; }
  .simple-yield-controls { padding: 17px; border-radius: 12px; }
  .simple-principal strong { font-size: 28px; }
  .yield-term-buttons { gap: 5px; }
  .simple-rate-fields { gap: 10px; }
  .simple-rate-fields input { font-size: 20px; padding: 11px 10px; }
  .simple-yield-controls .fineprint { font-size: 11px; }
  .yield-kicker { font-size: 11px; }
  .yield-total { padding: 20px; border-radius: 12px; }
  .yield-total strong { font-size: 30px; }
  .yield-total p { font-size: 11px; }
  .simple-total-breakdown { gap: 10px; }
  .simple-total-breakdown>div { padding: 13px 11px; }
  .simple-total-breakdown strong { font-size: 21px; }
  .simple-daily-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .simple-daily-metrics>div { padding: 12px 11px; }
  .simple-daily-metrics strong { font-size: 21px; }
  .simple-daily-metrics small { font-size: 11px; }
  .yield-empty { min-height: 250px; }
  .simple-empty-amount { padding: 12px; }
  .result-panel { padding: 22px; }
  .result-metrics { gap: 14px; }
  .big-amount { font-size: 34px; }
  .big-amount .unit { display: inline-block; font-size: 12px; }
  .planner-profit { font-size: 28px; }
  .account-yield-panel { margin-top: 16px; }
  .simple-layout-details>summary { padding: 20px; }
  .simple-account-details>summary, .simple-layout-details>summary, .simple-comparison>summary { font-size: 13px; }
  .page-footer { margin-top: 20px; font-size: 11px; gap: 9px; }
  .text-button { font-size: 11px; }
  .team-inputs { grid-template-columns: 1fr; }
  .rules-panel summary, .rules-body { padding: 18px; }
  .rule-table .suffix-input { min-width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; scroll-behavior: auto !important; }
}

/* Readable supporting text and compact account details. */
.page-heading p, .section-caption, .rules-intro { font-size: 14px; }
label, .check-label { font-size: 14px; }
label small, .fineprint, .notice p { font-size: 13px; }
.panel-title small, .suffix-input span, .nav-code, .side-footer span,
.nav-label, .status-pill, .simple-principal small, .simple-principal em,
.simple-total-breakdown small, .simple-daily-metrics small,
.yield-kicker, .simple-yield-controls .fineprint, .simple-holding,
.yield-total p, .yield-total em, .yield-detail .fineprint,
.account-yields td small, .allocation-card small, .row-badge {
  font-size: 12px;
}
.notice-details { margin-top: 8px; font-size: 13px; }
.notice-details summary { cursor: pointer; color: #007f72; padding: 4px 0; min-height: 32px; }
.notice-details[open] summary { margin-bottom: 4px; }
.notice-details p { max-width: 880px; margin-top: 0; }
.account-yield-cards { gap: 16px; }
.account-yield-cards article { background: white; }
.account-yield-cards article.core-account { border-color: #98cbbc; }
.account-yield-cards header { display: block; padding: 16px; background: #f5f8fa; }
.account-yield-cards .core-account header { background: #eef8f3; }
.account-card-identity { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.account-card-identity b { font-size: 15px; color: #17324b; }
.account-card-identity small { font-size: 12px; color: #60718a; }
.core-account .account-card-identity small { color: #007f72; }
.account-yield-cards header>span { display: block; font-size: 12px; margin-top: 6px; }
.account-card-summary { padding: 16px 16px 12px; }
.account-card-summary small { display: block; font-size: 12px; color: #60718a; }
.account-card-summary strong { display: block; font-size: 26px; line-height: 1.5; color: #007f72; margin-top: 4px; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.account-card-summary em { font-style: normal; font-size: 12px; font-weight: 400; }
.account-card-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 4px 16px 18px; }
.account-card-metrics small { display: block; font-size: 12px; color: #60718a; line-height: 1.75; }
.account-card-metrics b { display: block; font-size: 17px; font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.account-card-detail { border-top: 1px solid #e2e9ef; padding: 0 16px; }
.account-card-detail>summary { min-height: 44px; padding: 12px 0; font-size: 13px; color: #007f72; cursor: pointer; }
.account-yield-cards .account-card-detail dl { padding: 0 0 10px; }
.account-yield-cards .account-card-detail dl>div { display: block; padding: 11px 0; font-size: 13px; }
.account-yield-cards .account-card-detail dt { color: #60718a; }
.account-yield-cards .account-card-detail dd { max-width: none; text-align: left; margin-top: 6px; line-height: 1.9; color: #17324b; }
.account-yield-cards .account-card-detail dl>div:last-child { border-bottom: 0; }
.account-yield-total { font-size: 14px; padding: 16px; }
@media (max-width: 680px) {
  input[type=number], select, .team-table select { font-size: 16px; }
  .amount-input input { font-size: 30px; }
  .simple-rate-fields input { font-size: 22px; }
  .sidebar .nav-item, .yield-term-buttons button, .yield-day-buttons button,
  .simple-calculator .panel-title a, .quiet-button, .notice strong,
  .allocation-card span, .simple-yield-intro { font-size: 13px; }
  .notice p, .page-heading p { font-size: 13px; }
  .simple-calculator .yield-term-buttons button { font-size: 13px; }
  .simple-calculator .panel-title { align-items: center; }
  .simple-calculator .panel-title a { padding: 6px 0; }
  .simple-yield-controls .fineprint, .yield-total p, .yield-detail .fineprint { font-size: 12px; }
  .simple-daily-metrics small { min-height: 41px; }
  .result-metrics small { font-size: 12px; }
  .panel-title { flex-wrap: wrap; }
  .form-panel .panel-title { flex-wrap: wrap; }
  .status-pill, .page-footer, .text-button { font-size: 12px; }
  .team-table, .team-table tbody { display: block; min-width: 0; width: 100%; }
  .team-table thead { display: none; }
  .team-table tbody { display: grid; gap: 16px; }
  .team-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 12px; padding: 16px; border: 1px solid #dce5ee; border-radius: 12px; background: #f7fafb; }
  .team-table tr:before { content: "成员组 " attr(data-member); grid-column: 1 / -1; font-size: 15px; color: #17324b; font-weight: 600; padding-bottom: 2px; }
  .team-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .team-table td[data-label]:before { content: attr(data-label); display: block; font-size: 13px; line-height: 1.8; color: #4b6076; margin-bottom: 7px; }
  .team-table td:nth-child(3), .team-table td:nth-child(4) { grid-column: 1 / -1; }
  .team-table td .suffix-input, .team-table td select { width: 100%; min-width: 0; margin-top: 0; }
  .team-table .team-row-action { display: flex; justify-content: flex-end; align-items: flex-end; }
  .team-table .remove-button { min-height: 48px; border: 1px solid #ead7dd; background: #fff8fa; border-radius: 9px; padding: 8px 12px; font-size: 13px; }
  .team-controls { flex-wrap: wrap; gap: 10px; }
  .team-controls .fineprint { width: 100%; }
  .team-extra .pair-fields { grid-template-columns: 1fr; }
  .ledger dl>div { font-size: 13px; }
  .ledger dd { text-align: right; max-width: 58%; overflow-wrap: anywhere; }
  .simple-total-breakdown strong { font-size: 22px; }
}

/* Experience switch and explicit referral branches. */
.topbar .topbar-brand{display:flex;align-items:center;gap:10px;min-width:0}
.topbar .topbar-brand img{object-fit:contain;flex-shrink:0}
.topbar .topbar-brand>span{margin:0}
.topbar-actions{display:flex;align-items:center;gap:14px}
.experience-switch{display:flex;gap:3px;background:#edf3f3;border:1px solid #d9e6e4;border-radius:12px;padding:4px;flex-shrink:0}
.experience-switch button{background:transparent;border:0;border-radius:8px;padding:9px 15px;color:#5a7078;font-size:13px;white-space:nowrap}
.experience-switch button[aria-pressed="true"]{background:white;color:#087c70;box-shadow:0 2px 6px #123e3d0d;font-weight:650}
.planner-tree-cores{display:flex;align-items:center;gap:12px;max-width:550px}
.planner-tree-cores .allocation-card{flex:1;min-width:0}
.planner-tree-arrow{color:#65998e;font-size:23px}
.planner-tree-branch-label{color:#507b75;font-size:13px;line-height:1.7;margin:17px 0 12px;padding-left:12px;border-left:2px solid #a8d3c9}
.planner-tree-leaves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.planner-tree .allocation-card strong{font-size:clamp(17px,1.8vw,25px);overflow-wrap:anywhere}
@media(max-width:680px){.topbar{gap:10px;min-height:68px;height:auto;padding-top:10px;padding-bottom:10px}.topbar-actions>.status-pill,.topbar-brand>#breadcrumb,.topbar-brand>span{display:none}.experience-switch button{padding:9px 12px}.planner-tree-leaves{grid-template-columns:repeat(2,minmax(0,1fr))}.planner-tree-cores{gap:8px}.planner-tree .allocation-card{padding:14px 10px}.planner-tree .allocation-card span{font-size:11px}}
