.hrt-cpf-housing-runway {
  --hr-navy: #10243e;
  --hr-teal: #0b766e;
  --hr-ink: #22343f;
  --hr-muted: #526570;
  --hr-line: #dce7e6;
  --hr-soft: #eef7f5;
  --hr-error: #9b302e;
  max-width: 760px;
  margin: 0 auto;
  color: var(--hr-ink);
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.hrt-cpf-housing-runway * { box-sizing: border-box; }
.hrt-cpf-housing-runway [hidden] { display: none !important; }
.hrt-cpf-housing-runway :is(h1,h2,h3,h4,p) { margin-top: 0; }
.hrt-cpf-housing-runway :is(h1,h2,h3,h4) { color: var(--hr-navy); line-height: 1.25; }
.hrt-cpf-housing-runway h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); margin-bottom: 10px; }
.hrt-cpf-housing-runway h2 { font-size: clamp(1.35rem, 4.5vw, 1.6rem); }
.hrt-cpf-housing-runway h3 { font-size: 1.15rem; }
.hrt-cpf-housing-runway h4 { font-size: 1.02rem; }
.hrt-cpf-housing-runway .hr-header { padding: 22px 0 20px; border-bottom: 1px solid var(--hr-line); background: #fff; }
.hrt-cpf-housing-runway .hr-header p { color: var(--hr-muted); margin-bottom: 0; max-width: 58ch; }
.hrt-cpf-housing-runway .hr-header .hr-brand { color: var(--hr-navy); font-weight: 750; margin: 0 0 8px; }
.hrt-cpf-housing-runway .hr-brand span { color: var(--hr-teal); }
.hrt-cpf-housing-runway .hr-body { padding: 0 0 32px; background: #fff; }
.hrt-cpf-housing-runway .hr-card { background: #fff; border: 1px solid var(--hr-line); border-radius: 14px; padding: 20px; margin: 18px 0; }
.hrt-cpf-housing-runway .hr-card[data-step] { border: 0; border-radius: 0; padding: 18px 0 8px; margin: 0; }
.hrt-cpf-housing-runway .hr-card.hr-soft { background: var(--hr-soft); border: 0; padding: 16px; margin-top: 18px; }
.hrt-cpf-housing-runway .hr-step-tag { color: var(--hr-teal); font-size: .86rem; font-weight: 750; margin: 14px 0 8px; }
.hrt-cpf-housing-runway .hr-step-tag:empty { display: none; }
.hrt-cpf-housing-runway .hr-progress { display: flex; gap: 5px; margin: 0; padding: 18px 0 0; list-style: none; }
.hrt-cpf-housing-runway .hr-progress li { flex: 1; height: 5px; border-radius: 9px; background: #d4e0df; }
.hrt-cpf-housing-runway .hr-progress li.hr-active { background: var(--hr-teal); }
.hrt-cpf-housing-runway .hr-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.hrt-cpf-housing-runway .hr-heading :is(h2,h3) { margin: 0; }
.hrt-cpf-housing-runway .hr-icon-bubble { flex: none; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--hr-teal); background: var(--hr-soft); }
.hrt-cpf-housing-runway .hr-icon { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hrt-cpf-housing-runway label { display: block; color: var(--hr-navy); font-weight: 700; margin: 16px 0 6px; }
.hrt-cpf-housing-runway input[type=text], .hrt-cpf-housing-runway input[type=month] { display: block; width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--hr-ink); background: #fff; border: 1.5px solid #82989e; border-radius: 9px; }
.hrt-cpf-housing-runway input[aria-invalid=true] { border-color: var(--hr-error); }
.hrt-cpf-housing-runway :is(input,button,summary,a):focus-visible { outline: 3px solid var(--hr-teal); outline-offset: 3px; }
.hrt-cpf-housing-runway .hr-help { font-size: .9rem; color: var(--hr-muted); margin: 7px 0 4px; }
.hrt-cpf-housing-runway .hr-error { color: var(--hr-error); font-size: .9rem; font-weight: 700; margin: 4px 0; }
.hrt-cpf-housing-runway .hr-grid2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.hrt-cpf-housing-runway .hr-grid2 > * { min-width: 0; }
.hrt-cpf-housing-runway fieldset { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.hrt-cpf-housing-runway legend { font-weight: 750; color: var(--hr-navy); }
.hrt-cpf-housing-runway .hr-role { padding-top: 14px; border-top: 1px solid var(--hr-line); margin: 22px 0 4px; }
.hrt-cpf-housing-runway .hr-choice { display: flex; gap: 9px; align-items: flex-start; min-height: 44px; padding: 10px 12px; margin: 7px 0; border: 1px solid var(--hr-line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; }
.hrt-cpf-housing-runway .hr-choice input { margin: 5px 0 0; accent-color: var(--hr-teal); }
.hrt-cpf-housing-runway button { font: inherit; cursor: pointer; border-radius: 10px; min-height: 46px; padding: 10px 15px; font-weight: 750; }
.hrt-cpf-housing-runway .hr-primary { background: var(--hr-teal); border: 1px solid var(--hr-teal); color: #fff; }
.hrt-cpf-housing-runway .hr-secondary { background: #fff; border: 1px solid var(--hr-teal); color: var(--hr-teal); }
.hrt-cpf-housing-runway .hr-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hrt-cpf-housing-runway .hr-actions .hr-primary { flex: 1 1 190px; }
.hrt-cpf-housing-runway .hr-summary, .hrt-cpf-housing-runway .hr-highlight { padding: 12px; border-radius: 10px; background: var(--hr-soft); font-weight: 700; color: var(--hr-navy); }
.hrt-cpf-housing-runway .hr-notice { padding: 12px 14px; border-left: 4px solid #d2a72c; background: #fff9e6; border-radius: 8px; margin: 16px 0; color: var(--hr-navy); }
.hrt-cpf-housing-runway .hr-status { padding: 12px; border: 1px solid var(--hr-error); border-radius: 10px; background: #fff4f2; color: #7d2322; margin: 12px 0; }
.hrt-cpf-housing-runway .hr-result-head { padding: 20px 0 8px; margin-top: 8px; }
.hrt-cpf-housing-runway .hr-result-head h2 { font-size: clamp(1.5rem,5.5vw,2.1rem); }
.hrt-cpf-housing-runway .hr-result-head p { margin-bottom: 5px; }
.hrt-cpf-housing-runway .hr-result-head .hr-step-tag { color: var(--hr-teal); margin-bottom: 12px; }
.hrt-cpf-housing-runway .hr-timeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; position: relative; }
.hrt-cpf-housing-runway .hr-timeline::before { content: ""; position: absolute; left: 20px; right: 20px; top: 17px; border-top: 2px solid var(--hr-teal); }
.hrt-cpf-housing-runway .hr-timepoint { position: relative; padding: 38px 5px 0; min-width: 0; background: transparent; font-size: .9rem; }
.hrt-cpf-housing-runway .hr-timepoint::before { content: ""; position: absolute; top: 9px; left: 13px; width: 16px; height: 16px; border: 2px solid var(--hr-teal); border-radius: 50%; background: #fff; }
.hrt-cpf-housing-runway .hr-timepoint strong { display: block; color: var(--hr-navy); font-size: 1rem; }
.hrt-cpf-housing-runway .hr-first-cash { padding: 12px 0; margin: 2px 0 10px; border-bottom: 1px solid var(--hr-line); }
.hrt-cpf-housing-runway .hr-first-cash span { display: block; color: var(--hr-muted); font-size: .9rem; }
.hrt-cpf-housing-runway .hr-first-cash strong { display: block; color: var(--hr-navy); font-size: 1.15rem; }
.hrt-cpf-housing-runway .hr-cash-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: stretch; margin: 14px 0; }
.hrt-cpf-housing-runway .hr-cash-amount { padding: 13px; border-radius: 11px; background: #f4f9f8; min-width: 0; }
.hrt-cpf-housing-runway .hr-cash-amount span { display: block; font-size: .84rem; color: var(--hr-muted); }
.hrt-cpf-housing-runway .hr-cash-amount strong { display: block; font-size: clamp(1.2rem,4vw,1.55rem); color: var(--hr-navy); overflow-wrap: anywhere; }
.hrt-cpf-housing-runway .hr-cash-total { background: var(--hr-soft); border-bottom: 3px solid var(--hr-teal); }
.hrt-cpf-housing-runway .hr-cash-chart { margin: 20px 0 10px; padding: 16px; background: #f8fbfa; border-radius: 12px; }
.hrt-cpf-housing-runway .hr-cash-chart h4 { margin-bottom: 3px; }
.hrt-cpf-housing-runway .hr-funding-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 15px 0; font-size: .85rem; color: var(--hr-navy); font-weight: 700; }
.hrt-cpf-housing-runway .hr-funding-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hrt-cpf-housing-runway .hr-funding-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.hrt-cpf-housing-runway .hr-legend-oa { background: var(--hr-teal); }
.hrt-cpf-housing-runway .hr-legend-cash { background: #cda328; }
.hrt-cpf-housing-runway .hr-funding-annotation { display: flex; flex-wrap: wrap; gap: 4px 10px; border-left: 3px solid #cda328; padding: 5px 0 5px 10px; margin: 0 0 15px; font-size: .83rem; color: var(--hr-navy); }
.hrt-cpf-housing-runway .hr-funding-layout { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 8px; min-width: 0; }
.hrt-cpf-housing-runway .hr-funding-yaxis { height: 160px; display: flex; flex-direction: column; justify-content: space-between; color: var(--hr-muted); font-size: .75rem; line-height: 1.2; }
.hrt-cpf-housing-runway .hr-funding-axis-title { color: var(--hr-muted); font-size: .74rem; line-height: 1.2; margin: 0 0 7px; }
.hrt-cpf-housing-runway .hr-funding-plot { min-width: 0; position: relative; }
.hrt-cpf-housing-runway .hr-funding-grid { position: absolute; top: 0; left: 0; right: 0; height: 160px; pointer-events: none; background: linear-gradient(to bottom, #dbe7e5 0 1px, transparent 1px calc(50% - .5px), #e5eeec calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px) calc(100% - 1px), #dbe7e5 calc(100% - 1px)); }
.hrt-cpf-housing-runway .hr-funding-bars { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; min-width: 0; }
.hrt-cpf-housing-runway button.hr-funding-bar { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 7px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--hr-navy); font-size: .7rem; line-height: 1.15; font-weight: 650; text-align: center; border-radius: 5px; }
.hrt-cpf-housing-runway .hr-funding-stack { display: flex; flex-direction: column-reverse; width: min(28px,80%); height: 160px; overflow: hidden; border-radius: 6px 6px 2px 2px; background: #e7eeec; box-shadow: 0 0 0 1px #b9cfca inset; }
.hrt-cpf-housing-runway .hr-funding-oa { display: block; flex: none; width: 100%; background: var(--hr-teal); }
.hrt-cpf-housing-runway .hr-funding-cash { display: block; flex: none; width: 100%; background: #cda328; }
.hrt-cpf-housing-runway .hr-funding-bar:hover .hr-funding-stack { box-shadow: 0 0 0 1px var(--hr-navy); }
.hrt-cpf-housing-runway .hr-funding-bar.hr-active .hr-funding-stack { box-shadow: 0 0 0 1.5px var(--hr-navy), 0 0 0 6px rgba(101,172,181,.19); }
.hrt-cpf-housing-runway .hr-funding-bar.hr-active { background: linear-gradient(180deg,rgba(228,246,245,.5),rgba(229,240,248,.4)); }
.hrt-cpf-housing-runway .hr-funding-bar.hr-marked .hr-funding-month { font-weight: 800; text-decoration: underline; text-decoration-color: #cda328; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hrt-cpf-housing-runway .hr-funding-month { display: block; overflow-wrap: normal; word-break: keep-all; visibility: hidden; }
.hrt-cpf-housing-runway .hr-funding-bar.hr-labelled .hr-funding-month { visibility: visible; }
.hrt-cpf-housing-runway .hr-funding-tooltip { max-width: 100%; padding: 11px 13px; margin-top: 13px; background: linear-gradient(135deg,#f3faf9 0%,#e9f3f9 62%,#f8fbfc 100%); border: 1px solid #93b1bd; color: var(--hr-navy); box-shadow: 0 7px 18px rgba(16,36,62,.1); border-radius: 9px; font-size: .85rem; }
.hrt-cpf-housing-runway .hr-tooltip-month { display: block; margin-bottom: 6px; }
.hrt-cpf-housing-runway .hr-funding-tooltip dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 14px; margin: 0; }
.hrt-cpf-housing-runway .hr-funding-tooltip dt { font-weight: 500; }
.hrt-cpf-housing-runway .hr-funding-tooltip dd { margin: 0; text-align: right; font-weight: 750; }
.hrt-cpf-housing-runway .hr-tooltip-total, .hrt-cpf-housing-runway .hr-tooltip-total + dd { border-top: 1px solid #b7cdd5; padding-top: 6px; margin-top: 3px; }
.hrt-cpf-housing-runway .hr-tooltip-oa::before, .hrt-cpf-housing-runway .hr-tooltip-cash::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; background: var(--hr-teal); }
.hrt-cpf-housing-runway .hr-tooltip-cash::before { background: #cda328; }
.hrt-cpf-housing-runway button.hr-tooltip-close { display: block; min-height: 0; padding: 2px 0; margin-top: 5px; background: transparent; border: 0; color: var(--hr-navy); font-size: .78rem; text-decoration: underline; }
.hrt-cpf-housing-runway .hr-cash-chart figcaption { color: var(--hr-muted); font-size: .88rem; margin-top: 4px; }
.hrt-cpf-housing-runway .hr-table-wrap { overflow-x: auto; }
.hrt-cpf-housing-runway .hr-cash-table { border-collapse: collapse; width: 100%; font-size: .91rem; }
.hrt-cpf-housing-runway .hr-cash-table :is(th,td) { padding: 10px 7px; border-bottom: 1px solid var(--hr-line); text-align: right; }
.hrt-cpf-housing-runway .hr-cash-table :is(th,td):first-child { text-align: left; }
.hrt-cpf-housing-runway .hr-cash-table th { color: var(--hr-navy); white-space: normal; }
.hrt-cpf-housing-runway .hr-cash-table td { white-space: nowrap; }
.hrt-cpf-housing-runway .hr-compare { display: grid; gap: 12px; }
.hrt-cpf-housing-runway .hr-compare article { border: 1px solid var(--hr-line); border-radius: 11px; padding: 16px; background: #fff; }
.hrt-cpf-housing-runway .hr-compare article.hr-main { border: 2px solid var(--hr-teal); background: var(--hr-soft); }
.hrt-cpf-housing-runway .hr-compare article h4 { margin-bottom: 6px; }
.hrt-cpf-housing-runway .hr-compare article p { margin-bottom: 0; }
.hrt-cpf-housing-runway .hr-diagram { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 7px 0; font-size: .9rem; font-weight: 700; color: var(--hr-navy); }
.hrt-cpf-housing-runway .hr-two-sources { flex-direction: column; align-items: center; gap: 2px; }
.hrt-cpf-housing-runway .hr-sources { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hrt-cpf-housing-runway .hr-converge { color: var(--hr-teal); white-space: pre; line-height: 1; font-size: 1.35rem; }
.hrt-cpf-housing-runway .hr-node { padding: 5px 9px; border: 1px solid #b9d7d2; border-radius: 8px; background: #fff; }
.hrt-cpf-housing-runway .hr-mortgage-node { color: var(--hr-navy); border-color: var(--hr-teal); }
.hrt-cpf-housing-runway .hr-diagram-arrow { color: var(--hr-teal); font-size: 1.05rem; }
.hrt-cpf-housing-runway .hr-spouse-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.hrt-cpf-housing-runway .hr-spouse-card { padding: 15px; background: #f8fbfa; border-radius: 11px; min-width: 0; }
.hrt-cpf-housing-runway .hr-spouse-card h4 { margin: 0; }
.hrt-cpf-housing-runway .hr-role-note { color: var(--hr-teal); font-weight: 700; margin: 2px 0 12px; }
.hrt-cpf-housing-runway .hr-spouse-card dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 9px; margin: 0 0 12px; }
.hrt-cpf-housing-runway .hr-spouse-card dt { color: var(--hr-muted); }
.hrt-cpf-housing-runway .hr-spouse-card dd { margin: 0; font-weight: 700; text-align: right; color: var(--hr-navy); }
.hrt-cpf-housing-runway .hr-spouse-outcome { margin-bottom: 0; }
.hrt-cpf-housing-runway .hr-reference { margin: 12px 0; }
.hrt-cpf-housing-runway .hr-track { height: 12px; border-radius: 8px; background: #e5eceb; overflow: hidden; margin-top: 5px; }
.hrt-cpf-housing-runway .hr-fill { display: block; height: 100%; background: #5b9d9b; border-radius: 8px; }
.hrt-cpf-housing-runway details { border-top: 1px solid var(--hr-line); padding: 14px 0; }
.hrt-cpf-housing-runway summary { color: var(--hr-teal); font-weight: 750; cursor: pointer; min-height: 44px; }
.hrt-cpf-housing-runway .hr-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .hrt-cpf-housing-runway .hr-cash-flow { grid-template-columns: 1fr; }
  .hrt-cpf-housing-runway .hr-cash-amount { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  .hrt-cpf-housing-runway .hr-cash-amount strong { text-align: right; }
}
@media (max-width: 600px) {
  .hrt-cpf-housing-runway .hr-spouse-grid { grid-template-columns: 1fr; }
  .hrt-cpf-housing-runway .hr-cash-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .hrt-cpf-housing-runway .hr-cash-table :is(tbody,tr,td) { display: block; width: 100%; }
  .hrt-cpf-housing-runway .hr-cash-table tr { border-bottom: 1px solid var(--hr-line); padding: 9px 0; }
  .hrt-cpf-housing-runway .hr-cash-table td { display: flex; justify-content: space-between; gap: 10px; text-align: right; border: 0; padding: 3px 0; }
  .hrt-cpf-housing-runway .hr-cash-table td::before { content: attr(data-label); color: var(--hr-muted); text-align: left; white-space: normal; }
  .hrt-cpf-housing-runway .hr-cash-table td:first-child { font-weight: 750; color: var(--hr-navy); }
}
@media (max-width: 420px) {
  .hrt-cpf-housing-runway .hr-funding-layout { grid-template-columns: 58px minmax(0,1fr); gap: 4px; }
  .hrt-cpf-housing-runway .hr-funding-bar.hr-mobile-extra { display: none; }
  .hrt-cpf-housing-runway .hr-funding-bars { gap: 2px; }
  .hrt-cpf-housing-runway button.hr-funding-bar { font-size: .64rem; }
  .hrt-cpf-housing-runway .hr-funding-stack { width: min(22px,80%); }
  .hrt-cpf-housing-runway .hr-funding-bar.hr-labelled:not(:first-child):not(:last-child):not(.hr-marked) .hr-funding-month { visibility: hidden; }
  .hrt-cpf-housing-runway .hr-timeline { display: block; margin-left: 9px; padding-left: 24px; }
  .hrt-cpf-housing-runway .hr-timeline::before { left: 1px; right: auto; top: 17px; bottom: 17px; border-top: 0; border-left: 2px solid var(--hr-teal); }
  .hrt-cpf-housing-runway .hr-timepoint { padding: 0 0 19px 12px; }
  .hrt-cpf-housing-runway .hr-timepoint::before { left: -32px; top: 2px; }
  .hrt-cpf-housing-runway .hr-cash-amount { display: block; }
  .hrt-cpf-housing-runway .hr-cash-amount strong { text-align: left; }
}
@media (max-width: 360px) {
  .hrt-cpf-housing-runway .hr-card { padding: 15px; }
  .hrt-cpf-housing-runway .hr-grid2 { gap: 8px; }
  .hrt-cpf-housing-runway .hr-cash-chart { padding: 8px; }
}
