:root {
  --graff: #075844;
  --graff-deep: #053e32;
  --graff-soft: #edf5f1;
  --champagne: #c6a15e;
  --champagne-deep: #a77f3d;
  --page: #f4f7f5;
  --surface: #fff;
  --ink: #17211e;
  --muted: #72807a;
  --quiet: #97a29d;
  --line: #dfe8e3;
  --line-strong: #cbd8d1;
  --radius: 8px;
  --topbar: 70px;
}

* { box-sizing: border-box; }
html { background: var(--graff-deep); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.finance-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  color: #fff;
  background: var(--graff-deep);
  border-bottom: 1px solid rgba(198,161,94,.52);
}
.finance-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.finance-brand img { width: 28px; height: 28px; }
.finance-brand span { font-size: 21px; font-weight: 760; }
.finance-brand > i { width: 1px; height: 24px; margin: 0 6px; background: rgba(255,255,255,.25); }
.finance-brand strong { color: rgba(255,255,255,.82); font-size: 14px; font-weight: 580; }
.finance-account {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  text-decoration: none;
}
.finance-account span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--graff-deep);
  background: var(--champagne);
  border-radius: 50%;
  font-weight: 750;
}
.finance-account b { font-weight: 620; }
.finance-shell {
  display: grid;
  min-height: calc(100vh - var(--topbar));
  grid-template-columns: 340px minmax(0, 1fr);
}
.assumption-rail {
  padding: 26px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.mobile-title { display: none; }
.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.rail-heading > div { display: flex; flex-direction: column; gap: 4px; }
.rail-heading span { color: var(--champagne-deep); font-size: 11px; font-weight: 720; }
.rail-heading strong { font-size: 18px; }
.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--graff);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.icon-button svg { width: 17px; height: 17px; }
.finance-fields { display: grid; gap: 17px; }
.finance-fields label { display: grid; gap: 7px; }
.finance-fields label > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}
.finance-fields label > span svg { width: 15px; height: 15px; color: var(--graff); }
.finance-fields input, .finance-fields select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.finance-fields label > small { margin-top: -3px; color: var(--quiet); font-size: 10px; }
.input-with-unit { position: relative; display: block !important; }
.input-with-unit input, .input-with-unit select { padding-right: 52px; }
.input-with-unit > i {
  position: absolute;
  top: 0;
  right: 12px;
  display: flex;
  height: 42px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  pointer-events: none;
}
.offer-summary {
  margin-top: 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.offer-summary > div {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
}
.offer-summary span { color: var(--muted); }
.offer-summary strong { color: var(--graff-deep); font-weight: 680; }
.offer-summary p {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--graff-soft);
  border-left: 2px solid var(--champagne);
  font-size: 10px;
  line-height: 1.7;
}
.rail-note {
  display: flex;
  gap: 7px;
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.6;
}
.rail-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.finance-results {
  min-width: 0;
  padding: 26px clamp(22px, 3vw, 46px) 54px;
}
.funding-band {
  display: grid;
  min-height: 138px;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 38px;
  padding: 25px clamp(28px, 4vw, 58px);
  color: #fff;
  background: var(--graff-deep);
  border-left: 4px solid var(--champagne);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(5,62,50,.13);
}
.funding-band > div { min-width: 0; }
.funding-band div > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}
.funding-band span svg { width: 18px; height: 18px; color: var(--champagne); }
.funding-band div > strong {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 7px;
  color: var(--champagne);
  font-weight: 600;
}
.funding-band strong b {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.funding-band strong i { color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.funding-band small { display: block; margin-top: 9px; color: rgba(255,255,255,.62); font-size: 10px; }
.funding-divider { width: 1px; height: 76px; background: rgba(198,161,94,.55); }
.holding-cost-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.holding-cost-strip > div { padding: 15px 20px; border-right: 1px solid var(--line); }
.holding-cost-strip > div:last-child { border-right: 0; }
.holding-cost-strip span, .holding-cost-strip small { display: block; color: var(--muted); font-size: 10px; }
.holding-cost-strip strong { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; color: var(--graff-deep); font-size: 20px; font-variant-numeric: tabular-nums; }
.holding-cost-strip strong i { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 600; }
.holding-cost-strip small { margin-top: 5px; }
.exit-analysis {
  margin-top: 18px;
  padding: 23px 24px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.analysis-head h1 { margin: 0; color: var(--graff-deep); font-size: 19px; }
.analysis-head p { display: flex; align-items: center; gap: 9px; margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.analysis-head p i { width: 1px; height: 12px; background: var(--line-strong); }
.segmented-control {
  display: grid;
  width: 300px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--graff);
  border-radius: 5px;
  overflow: hidden;
}
.segmented-control button {
  min-height: 36px;
  color: var(--graff);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--graff);
  font-size: 12px;
  font-weight: 650;
}
.segmented-control button:last-child { border-right: 0; }
.segmented-control button.is-active { color: #fff; background: var(--graff); }
.segmented-control button:disabled { color: var(--quiet); background: #f4f6f5; cursor: not-allowed; }
.stress-panel {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(340px, 1.4fr);
  gap: 16px 28px;
  align-items: end;
  margin-top: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stress-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.stress-heading > div { display: grid; gap: 4px; }
.stress-heading span { color: var(--champagne-deep); font-size: 9px; font-weight: 720; }
.stress-heading strong { color: var(--graff-deep); font-size: 15px; }
.stress-heading b { color: var(--muted); font-size: 10px; font-weight: 650; white-space: nowrap; }
.stress-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stress-controls label { display: grid; gap: 6px; }
.stress-controls span { color: var(--muted); font-size: 9px; }
.stress-controls select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 11px;
}
.stress-comparison {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--graff-soft);
  border-left: 2px solid var(--champagne);
}
.stress-comparison > div { min-width: 0; padding: 12px 16px; border-right: 1px solid var(--line-strong); }
.stress-comparison > div:last-child { border-right: 0; }
.stress-comparison span, .stress-comparison small { display: block; color: var(--muted); font-size: 9px; }
.stress-comparison strong { display: block; margin-top: 4px; color: var(--graff-deep); font-size: 15px; }
.stress-comparison small { margin-top: 3px; color: #9a6b2c; }
.year-control { margin-top: 24px; }
.year-control > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.year-control span { color: var(--muted); font-size: 11px; }
.year-control strong { color: var(--champagne-deep); font-size: 13px; }
#exitYear {
  width: 100%;
  margin: 14px 0 0;
  accent-color: var(--champagne);
}
.year-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.year-ticks span.is-selected { color: var(--champagne-deep); font-weight: 720; }
.chart-wrap {
  width: 100%;
  height: 280px;
  margin-top: 4px;
  overflow: hidden;
}
#financingChart { display: block; width: 100%; height: 100%; }
.chart-legend {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 34px;
  padding: 0 76px 10px;
  color: var(--muted);
  font-size: 10px;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-line { display: inline-block; width: 24px; height: 2px; }
.legend-line-net { background: var(--graff); }
.legend-line-irr { background: var(--champagne-deep); }
.legend-line-stress-net { height: 0; border-top: 2px dashed #3d8c78; }
.legend-line-stress-irr { height: 0; border-top: 2px dashed #d8ad63; }
.exit-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.exit-metrics > div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.exit-metrics > div:last-child { border-right: 0; }
.exit-metrics span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.exit-metrics span svg { width: 16px; height: 16px; color: var(--graff); }
.exit-metrics strong { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; color: var(--champagne-deep); font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.exit-metrics strong i { color: var(--muted); font-size: 9px; font-style: normal; }
.exit-metrics small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.decision-strip > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.decision-strip span { display: block; color: var(--muted); font-size: 9px; }
.decision-strip strong { display: block; margin-top: 4px; color: var(--graff-deep); font-size: 13px; }
.decision-actions {
  display: flex;
  gap: 8px;
  padding: 8px 12px !important;
  border-right: 0 !important;
}
.decision-strip button, .financing-preview-modal footer a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  color: #fff;
  background: var(--graff);
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}
.decision-strip button svg { width: 15px; height: 15px; }
.decision-strip button:first-child { color: var(--graff); background: #fff; border: 1px solid var(--graff); }
.advisor-detail {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.advisor-detail summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  list-style: none;
  cursor: pointer;
}
.advisor-detail summary::-webkit-details-marker { display: none; }
.advisor-detail summary span { display: flex; flex-direction: column; gap: 2px; }
.advisor-detail summary small { color: var(--champagne-deep); font-size: 9px; }
.advisor-detail summary strong { font-size: 14px; }
.advisor-detail[open] summary > svg { transform: rotate(180deg); }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.advisor-detail table { width: 100%; min-width: 760px; border-collapse: collapse; }
.advisor-detail th, .advisor-detail td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); font-size: 10px; white-space: nowrap; }
.advisor-detail th:first-child, .advisor-detail td:first-child { text-align: left; }
.advisor-detail th { color: var(--muted); background: #f8faf9; font-weight: 620; }
.advisor-detail td { font-variant-numeric: tabular-nums; }
.advisor-detail tr.is-selected td { color: var(--graff-deep); background: var(--graff-soft); font-weight: 680; }
.advisor-detail tr.is-selected td:first-child { box-shadow: inset 3px 0 var(--champagne); }
.finance-source {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto)) 1fr;
  align-items: start;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 9px;
}
.finance-source div { display: flex; flex-direction: column; gap: 4px; }
.finance-source strong { color: var(--ink); font-weight: 620; white-space: nowrap; }
.finance-source p { margin: 0; line-height: 1.7; }
.finance-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  padding: 11px 15px;
  color: #fff;
  background: var(--graff-deep);
  border: 1px solid var(--champagne);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(5,62,50,.22);
  font-size: 11px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .18s ease;
}
.finance-toast.is-visible { opacity: 1; transform: translateY(0); }
.financing-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 29, 23, .72);
  backdrop-filter: blur(4px);
}
.financing-preview-modal {
  display: flex;
  width: min(100%, 700px);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  overflow: hidden;
}
.financing-preview-modal > header,
.financing-preview-modal > footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.financing-preview-modal > header h2 { margin: 0; color: var(--graff-deep); font-size: 16px; }
.financing-preview-modal > header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.financing-preview-modal > header button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 26px;
}
.financing-preview-body {
  min-height: 0;
  padding: 18px;
  background: var(--page);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.financing-preview-body img {
  display: block;
  width: min(100%, 540px);
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 8px 30px rgba(5,62,50,.14);
}
.financing-preview-modal > footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; }
.financing-preview-modal footer a { min-width: 128px; }
.financing-export-stage { position: fixed; top: 0; left: -14000px; }
.financing-export-sheet {
  display: flex;
  width: 1080px;
  min-height: 1920px;
  flex-direction: column;
  padding: 76px 72px 68px;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow: visible;
}
.financing-export-sheet > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 34px;
  border-bottom: 4px solid var(--graff);
}
.export-brand { display: flex; align-items: center; gap: 18px; }
.export-brand img { width: 66px; height: 66px; }
.export-brand > div { display: grid; gap: 4px; }
.export-brand strong { color: var(--graff); font-size: 38px; }
.export-brand span { color: var(--champagne-deep); font-size: 16px; font-weight: 720; }
.financing-export-sheet > header h1 { margin: 0; font-size: 42px; }
.export-offer { padding: 44px 0 34px; }
.export-offer > span, .export-section-title span { color: var(--champagne-deep); font-size: 18px; font-weight: 720; }
.export-offer h2 { margin: 10px 0 30px; color: var(--graff-deep); font-size: 34px; line-height: 1.35; }
.export-offer > div {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.export-offer p { display: grid; gap: 8px; margin: 0; padding: 22px 24px; border-right: 2px solid var(--line); }
.export-offer p:last-child { border-right: 0; }
.export-offer p span { color: var(--muted); font-size: 17px; }
.export-offer p strong { color: var(--ink); font-size: 24px; }
.export-funding {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  color: #fff;
  background: var(--graff-deep);
  border-left: 6px solid var(--champagne);
}
.export-funding > div { padding: 38px 42px; border-right: 1px solid rgba(255,255,255,.24); }
.export-funding > div:last-child { border-right: 0; }
.export-funding span { color: rgba(255,255,255,.68); font-size: 20px; }
.export-funding strong { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; color: var(--champagne); }
.export-funding b { font-family: Georgia, "Times New Roman", serif; font-size: 52px; font-weight: 500; }
.export-funding i { color: #fff; font-size: 17px; font-style: normal; }
.export-funding small { display: block; margin-top: 10px; color: rgba(255,255,255,.66); font-size: 15px; }
.export-holding-cost { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 30px; background: var(--graff-soft); border-left: 5px solid var(--champagne); }
.export-holding-cost > span { color: var(--champagne-deep); font-size: 18px; font-weight: 720; white-space: nowrap; }
.export-holding-cost strong { color: var(--graff-deep); font-size: 21px; text-align: right; }
.export-holding-cost b { font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; }
.export-holding-cost i { margin: 0 9px; color: var(--champagne-deep); font-style: normal; }
.export-exit, .export-stress { padding: 44px 0 0; }
.export-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.export-section-title h2 { margin: 7px 0 0; color: var(--graff-deep); font-size: 30px; }
.export-section-title > b { color: var(--muted); font-size: 18px; }
.export-exit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
  border-top: 2px solid var(--line);
}
.export-exit-grid > div {
  position: relative;
  min-height: 150px;
  padding: 28px 26px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.export-exit-grid > div:nth-child(2n) { border-right: 0; }
.export-exit-grid span, .export-stress-grid span { display: block; color: var(--muted); font-size: 18px; }
.export-exit-grid strong { display: inline-block; margin-top: 14px; color: var(--champagne-deep); font-size: 39px; }
.export-exit-grid small { margin-left: 10px; color: var(--muted); font-size: 16px; }
.export-chart { padding-top: 38px; }
.export-chart > svg { display: block; width: 100%; height: 300px; margin-top: 18px; }
.export-stress {
  margin-top: 38px;
  padding: 32px 34px;
  background: var(--graff-soft);
  border-left: 5px solid var(--champagne);
}
.export-stress-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.export-stress-grid > div { padding-right: 24px; border-right: 2px solid var(--line-strong); }
.export-stress-grid > div:not(:first-child) { padding-left: 24px; }
.export-stress-grid > div:last-child { border-right: 0; }
.export-stress-grid strong { display: block; margin-top: 12px; color: var(--graff-deep); font-size: 27px; }
.financing-export-sheet > footer { margin-top: auto; padding-top: 28px; border-top: 3px solid var(--line); }
.financing-export-sheet > footer p { margin: 0 0 10px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.financing-export-sheet > footer small { display: block; margin-top: 18px; color: var(--quiet); font-size: 15px; }

@media (max-width: 980px) {
  .finance-shell { grid-template-columns: 300px minmax(0, 1fr); }
  .assumption-rail { padding: 24px 18px; }
  .finance-results { padding-inline: 20px; }
  .funding-band { gap: 24px; padding-inline: 30px; }
  .funding-band strong b { font-size: 32px; }
}

@media (max-width: 760px) {
  :root { --topbar: 0px; }
  .finance-topbar { display: none; }
  .finance-shell { display: block; min-height: 100vh; }
  .assumption-rail {
    padding: 0 20px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-title {
    display: grid;
    min-height: calc(66px + env(safe-area-inset-top));
    grid-template-columns: 40px 1fr 40px;
    align-items: end;
    margin: 0 -20px 24px;
    padding: env(safe-area-inset-top) 20px 14px;
    color: #fff;
    background: var(--graff-deep);
  }
  .mobile-title a { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; }
  .mobile-title h1 { align-self: center; margin: 0; text-align: center; font-size: 16px; }
  .rail-heading { margin-bottom: 20px; }
  .finance-fields { gap: 18px; }
  .finance-fields input, .finance-fields select { height: 46px; font-size: 14px; }
  .input-with-unit > i { height: 46px; }
  .offer-summary { margin-top: 26px; }
  .finance-results {
    padding: 18px 16px;
    padding-bottom: calc(36px + env(safe-area-inset-bottom));
  }
  .funding-band {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
  .funding-divider { width: 100%; height: 1px; }
  .funding-band strong b { font-size: 36px; }
  .holding-cost-strip { grid-template-columns: 1fr; }
  .holding-cost-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .holding-cost-strip > div:last-child { border-bottom: 0; }
  .exit-analysis { padding: 20px 16px 0; }
  .analysis-head { display: block; }
  .segmented-control { width: 100%; margin-top: 18px; }
  .stress-panel { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .stress-controls { grid-template-columns: 1fr 1fr; }
  .stress-comparison { grid-template-columns: 1fr; }
  .stress-comparison > div { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .stress-comparison > div:last-child { border-bottom: 0; }
  .year-control { margin-top: 25px; }
  .chart-wrap { width: auto; height: 230px; margin: 8px -8px 0; }
  .chart-legend { flex-wrap: wrap; gap: 9px 20px; min-height: 32px; padding: 0 40px 9px; }
  .exit-metrics { grid-template-columns: 1fr; }
  .exit-metrics > div { padding: 15px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .exit-metrics > div:last-child { border-bottom: 0; }
  .exit-metrics strong { font-size: 23px; }
  .export-holding-cost { display: block; }
  .decision-strip { grid-template-columns: repeat(3, 1fr); }
  .decision-strip > div { padding: 13px 10px; text-align: center; }
  .decision-strip > div:nth-child(3) { border-right: 0; }
  .decision-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); padding: 10px !important; }
  .decision-strip button { min-height: 46px; border-radius: 5px; }
  .advisor-detail { margin-top: 16px; }
  .advisor-detail:not([open]) .table-scroll { display: none; }
  .finance-source { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .finance-source p { grid-column: 1 / -1; padding-top: 4px; }
  .finance-toast { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; text-align: center; }
  .financing-modal-backdrop { align-items: end; padding: 0; }
  .financing-preview-modal { width: 100%; max-height: 94vh; border-radius: 8px 8px 0 0; }
  .financing-preview-body { padding: 14px 18px; }
  .financing-preview-modal > footer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .financing-preview-modal footer a { width: 100%; }
}
