:root {
  --paper: #f4f0e8;
  --paper-light: #fbf9f4;
  --ink: #17251f;
  --muted: #6e756f;
  --line: #d8d3c8;
  --green: #174b3a;
  --green-soft: #d9e5dc;
  --orange: #d9673b;
  --orange-soft: #f2ded2;
  --white: #fff;
  --shadow: 0 18px 50px rgba(27, 40, 33, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, rgba(217, 103, 59, .08), transparent 22rem),
    var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar,
.hero,
.workspace,
.prepayment-section,
.principles,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--paper-light);
  background: var(--green);
  border-radius: 50% 50% 44% 44%;
  font-family: SimSun, serif;
}

.offline-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.offline-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4c8e69;
  box-shadow: 0 0 0 4px rgba(76, 142, 105, .13);
}

.hero {
  min-height: 410px;
  padding: 76px 0 62px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 80px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}

.hero h1 {
  margin: 0;
  font-family: SimSun, "Songti SC", serif;
  font-size: clamp(50px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-text {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-note {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}

.hero-note p {
  margin: 0;
  font-size: 13px;
}

.note-number,
.principle-number {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.input-panel {
  padding: 34px;
  color: var(--paper-light);
  background: var(--green);
}

.section-heading,
.result-intro,
.subheading,
.prepayment-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.section-heading {
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  font-size: 17px;
  font-weight: 700;
}

.section-heading small {
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 400;
}

.loan-group {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
}

.loan-group .field:last-child {
  margin-bottom: 0;
}

.loan-group-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.loan-group-title small {
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  font-weight: 400;
}

.provident-group {
  background: rgba(255, 255, 255, .04);
}

.field {
  margin-bottom: 24px;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.input-wrap:focus-within {
  border-color: var(--orange);
}

.input-wrap input {
  min-width: 0;
  width: 100%;
  padding: 7px 4px;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.input-wrap span {
  flex: none;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

input[type="number"]::-webkit-inner-spin-button {
  opacity: .4;
}

.field-hint {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 4px;
  color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 11px;
  text-align: center;
  transition: .2s ease;
}

.segmented input:checked + span {
  color: var(--ink);
  background: var(--paper-light);
  border-color: var(--paper-light);
  font-weight: 700;
}

.primary-btn,
.secondary-btn {
  border: 0;
  font-weight: 700;
}

.primary-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--orange);
  transition: transform .2s, background .2s;
}

.primary-btn:hover {
  background: #c85730;
  transform: translateY(-1px);
}

.form-error {
  min-height: 18px;
  margin: 9px 0 0;
  color: #ffd0be;
  font-size: 11px;
}

.result-panel {
  min-width: 0;
  padding: 38px 42px 42px;
}

.result-intro {
  margin-bottom: 24px;
}

.result-intro h2,
.prepayment-title h2,
.principles h2 {
  margin: 0;
  font-family: SimSun, "Songti SC", serif;
  font-size: 30px;
  font-weight: 400;
}

.result-intro .eyebrow,
.prepayment-title .eyebrow,
.principles .eyebrow {
  margin-bottom: 8px;
}

.status-badge,
.mini-badge {
  padding: 5px 10px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
}

.plan-card {
  min-height: 254px;
  padding: 25px;
  color: var(--white);
  background:
    linear-gradient(130deg, rgba(255,255,255,.04), transparent 45%),
    var(--green);
}

.plan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-label {
  color: rgba(255,255,255,.58);
  font-size: 10px;
  letter-spacing: .12em;
}

.method-tag {
  padding: 4px 8px;
  color: #fee8de;
  background: rgba(217, 103, 59, .3);
  font-size: 10px;
}

.term-display {
  margin: 10px 0 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.term-display strong {
  font-family: Georgia, serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
}

.term-display span {
  color: rgba(255,255,255,.7);
}

.plan-card > p {
  margin: 8px 0 20px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.loan-breakdown {
  display: inline-block;
  margin: -9px 0 15px;
  padding: 3px 8px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.08);
  font-size: 9px;
}

.key-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.17);
}

.key-metrics div {
  display: flex;
  flex-direction: column;
}

.key-metrics div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.17);
}

.key-metrics span,
.metric-card span {
  color: rgba(255,255,255,.55);
  font-size: 10px;
}

.key-metrics strong {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.metric-stack {
  display: grid;
  gap: 14px;
}

.metric-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  background: var(--orange-soft);
}

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  margin: 2px 0;
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.metric-card small {
  color: var(--muted);
  font-size: 10px;
}

.metric-card.dark {
  color: var(--paper-light);
  background: #24342d;
}

.metric-card.dark span,
.metric-card.dark small {
  color: rgba(255,255,255,.55);
}

.metric-card.dark strong {
  color: var(--paper-light);
}

.comparison-section {
  margin-top: 34px;
}

.subheading {
  align-items: end;
  margin-bottom: 14px;
}

.subheading h3 {
  margin: 0;
  font-size: 16px;
}

.subheading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.principal {
  background: var(--green);
}

.dot.interest {
  margin-left: 4px;
  background: var(--orange);
}

.comparison-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}

th {
  padding: 10px 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  text-align: left;
}

td {
  padding: 13px 8px;
  border-bottom: 1px solid #e5e1d8;
}

tr.is-best {
  background: rgba(217, 103, 59, .07);
}

#comparisonBody tr {
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

#comparisonBody tr:hover {
  background: rgba(23, 75, 58, .06);
}

#comparisonBody tr:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

#comparisonBody tr.is-selected {
  background: var(--orange-soft);
  box-shadow: inset 3px 0 0 var(--orange);
}

.term-cell strong {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.composition-bar {
  width: 96px;
  height: 7px;
  display: flex;
  overflow: hidden;
  background: #ddd;
}

.composition-bar .principal {
  background: var(--green);
}

.composition-bar .interest {
  background: var(--orange);
}

.table-badge {
  padding: 3px 7px;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 9px;
}

.table-muted {
  color: var(--muted);
  font-size: 9px;
}

.plan-select-btn {
  margin-left: 7px;
  padding: 3px 6px;
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(23, 75, 58, .35);
  font-size: 9px;
}

.plan-select-btn:hover:not(:disabled) {
  color: var(--white);
  background: var(--green);
}

.plan-select-btn:disabled {
  cursor: default;
  opacity: .5;
}

.prepayment-section {
  padding: 96px 0 90px;
}

.prepayment-title {
  align-items: end;
  margin-bottom: 30px;
}

.prepayment-title > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.strategy-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strategy-inputs {
  padding: 34px 34px 24px 0;
  border-right: 1px solid var(--line);
}

.strategy-inputs .input-wrap {
  color: var(--ink);
  border-color: var(--line);
}

.strategy-inputs .input-wrap span {
  color: var(--muted);
}

.secondary-btn {
  width: 100%;
  min-height: 45px;
  color: var(--paper-light);
  background: var(--green);
}

.strategy-inputs .form-error {
  color: #b44727;
}

.strategy-results {
  padding: 34px 0 28px 42px;
}

.strategy-summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.summary-icon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 50%;
  font-size: 22px;
}

.strategy-summary span,
.strategy-value span,
.strategy-meta span {
  color: var(--muted);
  font-size: 10px;
}

.strategy-summary h3 {
  margin: 0;
  font-family: SimSun, "Songti SC", serif;
  font-size: 23px;
  font-weight: 400;
}

.strategy-summary p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.strategy-summary .allocation-note {
  margin-top: 5px;
  color: var(--orange);
  font-weight: 700;
}

.strategy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.strategy-card {
  padding: 21px;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.strategy-card.recommended {
  border-top: 3px solid var(--orange);
}

.mini-badge {
  display: inline-block;
  color: var(--orange);
  background: var(--orange-soft);
}

.mini-badge.muted {
  color: var(--green);
  background: var(--green-soft);
}

.strategy-card h4 {
  margin: 13px 0 17px;
  font-size: 14px;
}

.strategy-value,
.strategy-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.strategy-value {
  padding-bottom: 13px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.strategy-value strong {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.strategy-meta strong {
  font-size: 11px;
}

.term-savings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.term-savings div {
  padding: 10px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.term-savings span {
  color: var(--muted);
  font-size: 9px;
}

.term-savings strong {
  color: var(--green);
  font-size: 11px;
}

.strategy-footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.forecast-section {
  margin-top: 0;
}

.forecast-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 25px;
}

.forecast-heading h2 {
  margin: 0;
  font-family: SimSun, "Songti SC", serif;
  font-size: 30px;
  font-weight: 400;
}

.forecast-heading .eyebrow {
  margin-bottom: 7px;
}

.forecast-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.forecast-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.forecast-inputs {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.forecast-inputs .field {
  margin-bottom: 18px;
}

.light-input {
  color: var(--ink);
  border-color: var(--line);
}

.light-input span {
  color: var(--muted);
}

.forecast-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: #b44727;
  font-size: 10px;
}

.forecast-result {
  padding: 30px 34px;
}

.forecast-recommendation {
  padding-bottom: 22px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.forecast-recommendation span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
}

.forecast-recommendation strong {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}

.forecast-recommendation p {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 700;
}

.forecast-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.forecast-metrics div {
  padding: 13px;
  background: var(--paper);
}

.forecast-metrics span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.forecast-metrics strong {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.forecast-chart-heading {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.forecast-chart-heading small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 400;
}

.forecast-bars {
  min-height: 128px;
  margin-top: 8px;
  padding: 0 2px 8px;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
  overflow: hidden;
}

.forecast-bar-item {
  height: 110px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: center;
  cursor: pointer;
}

.forecast-bar-item strong {
  color: var(--muted);
  font-size: 7px;
  font-weight: 400;
  white-space: nowrap;
}

.forecast-bar {
  min-height: 4px;
  margin: 5px 0;
  background: var(--green-soft);
  border-top: 2px solid var(--green);
}

.forecast-bar-item.recommended .forecast-bar {
  background: var(--orange-soft);
  border-color: var(--orange);
}

.forecast-bar-item.is-selected {
  background: rgba(217, 103, 59, .07);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.forecast-bar-item.is-selected strong,
.forecast-bar-item.is-selected span {
  color: var(--orange);
  font-weight: 700;
}

.forecast-bar-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.forecast-bar-item span {
  color: var(--muted);
  font-size: 7px;
  white-space: nowrap;
}

.forecast-advice {
  margin: 18px 0 0;
  padding: 13px 15px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
}

.forecast-loan-detail {
  margin-top: 24px;
  padding: 30px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
}

.detail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-heading span {
  color: var(--muted);
  font-size: 9px;
}

.detail-heading h3 {
  margin: 2px 0 0;
  font-family: SimSun, "Songti SC", serif;
  font-size: 22px;
  font-weight: 400;
}

.detail-heading h3 strong {
  color: var(--orange);
  font-family: Georgia, serif;
  font-weight: 400;
}

.detail-heading p {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.balance-comparison,
.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.balance-card {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--paper);
}

.balance-card > span {
  grid-column: 1 / -1;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.balance-card div {
  min-width: 0;
}

.balance-card small,
.outcome-total small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.balance-card strong {
  display: block;
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-grid {
  margin-top: 14px;
}

.outcome-card {
  padding: 20px;
  border: 1px solid var(--line);
}

.outcome-card.shorten {
  border-top: 3px solid var(--orange);
}

.outcome-card h4 {
  margin: 12px 0 0;
  font-size: 15px;
}

.outcome-card > p {
  margin: 2px 0 15px;
  color: var(--muted);
  font-size: 9px;
}

.repayment-overview {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.repayment-overview div {
  padding: 12px;
  background: var(--paper);
}

.repayment-overview small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.repayment-overview strong {
  display: block;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.outcome-total {
  padding-bottom: 13px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.outcome-total strong {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.outcome-components {
  display: grid;
  gap: 7px;
}

.outcome-components div,
.reduce-saving {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
}

.outcome-components span,
.reduce-saving span {
  color: var(--muted);
}

.outcome-components strong,
.reduce-saving strong {
  font-size: 9px;
  text-align: right;
}

.reduce-saving {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.principles {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 70px 1fr 1.35fr;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.principle-list p {
  margin: 0;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 28px 1fr;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.principle-list span {
  color: var(--orange);
  font-family: Georgia, serif;
}

footer {
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-note {
    max-width: 500px;
  }

  .workspace,
  .strategy-workspace,
  .forecast-workspace {
    grid-template-columns: 1fr;
  }

  .strategy-inputs {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .strategy-results {
    padding-left: 0;
  }

  .forecast-inputs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .balance-comparison,
  .outcome-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  .hero,
  .workspace,
  .prepayment-section,
  .principles,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    height: 68px;
  }

  .offline-pill {
    font-size: 0;
  }

  .hero {
    min-height: auto;
    padding: 55px 0 45px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .input-panel,
  .result-panel {
    padding: 27px 22px;
  }

  .recommendation-grid,
  .strategy-cards,
  .principles {
    grid-template-columns: 1fr;
  }

  .prepayment-section {
    padding: 68px 0;
  }

  .prepayment-title {
    display: block;
  }

  .prepayment-title > p {
    margin-top: 12px;
    text-align: left;
  }

  .forecast-heading {
    display: block;
  }

  .forecast-heading > p {
    margin-top: 10px;
    text-align: left;
  }

  .forecast-metrics {
    grid-template-columns: 1fr;
  }

  .forecast-recommendation {
    display: block;
  }

  .forecast-recommendation p {
    margin-top: 4px;
  }

  .forecast-loan-detail {
    padding: 20px 16px;
  }

  .detail-heading {
    display: block;
  }

  .detail-heading p {
    margin-top: 8px;
  }

  .balance-card {
    grid-template-columns: 1fr 1fr;
  }

  .principles {
    gap: 18px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 4px;
  }
}
