:root{color-scheme:light;--bg:#f5f7fc;--ink:#172033;--muted:#667085;--blue:#315efb;--line:#e2e7ef;--purple:#4338b9;--orange:#dd7c2c;--green:#13755b;--red:#b42336;--shadow:0 6px 28px rgba(27,43,85,.045)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.shell{max-width:1280px;margin:auto;padding:34px 48px 28px}.back{font-size:13px;display:inline-block;margin-bottom:24px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.eyebrow{font-size:11.5px;letter-spacing:.16em;font-weight:750;color:#465ee4;margin:0 0 5px;text-transform:uppercase}h1{font-size:clamp(29px,3.4vw,43px);line-height:1.15;letter-spacing:-.045em;margin:0;font-weight:800}h2{font-size:18px;line-height:1.4;letter-spacing:-.025em;margin:0 0 6px}h3{font-size:15px;line-height:1.4;margin:0 0 8px;letter-spacing:-.01em}.intro{margin:12px 0 0;color:#596273;font-size:16px}.head-actions{display:flex;gap:8px;flex-shrink:0;align-self:flex-start;margin-top:30px}.secondary,.primary,.preset{border:1px solid #dce2ed;border-radius:9px;font-weight:650;line-height:1.4}.secondary{padding:9px 13px;background:#eef2f8;color:#344054;font-size:12.5px}.secondary:hover{background:#e5ebf5}.primary{background:var(--blue);color:#fff;padding:12px 17px;border-color:var(--blue);font-size:13.5px}.primary:hover{background:#254de0}.estimation-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);gap:24px;align-items:start}.card{border:1px solid #e6eaf2;border-radius:20px;background:white;box-shadow:var(--shadow);padding:24px}.inputs{background:linear-gradient(125deg,#f8fbff 0%,#fff 100%)}.description{color:#596273;font-size:13px;margin:0 0 22px}.fields{display:grid;gap:18px 16px;margin-top:18px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.full{grid-column:1/-1}.field{min-width:0}.field label,.range-label label{font-size:12.5px;font-weight:650;display:flex;align-items:center;gap:5px;margin-bottom:7px;line-height:1.45}.input-wrap{height:45px;background:#fff;border:1px solid #d9dfe8;border-radius:10px;display:flex;align-items:center;gap:6px;padding:0 12px;box-shadow:inset 0 1px 2px #14213a05;transition:border-color .15s,box-shadow .15s}.input-wrap:focus-within{border-color:#5575ff;box-shadow:0 0 0 3px #315efb12}.input-wrap input{background:transparent;border:0;outline:0;min-width:0;width:100%;color:var(--ink);font-size:15px;padding:0;height:100%;appearance:textfield}.input-wrap input::-webkit-inner-spin-button{appearance:none}.input-wrap input::placeholder{color:#a4aab6;font-size:13px}.input-wrap>span{color:var(--muted);font-size:13px;white-space:nowrap}.input-wrap:has([aria-invalid="true"]){border-color:var(--red)}input:disabled{color:#8c96a7}.hint,.fine{font-size:11.5px;line-height:1.55;color:var(--muted);margin:6px 0 0}.fine{font-size:11.5px}.help{border:1px solid #d4dae4;width:16px;height:16px;border-radius:50%;font-size:10px;line-height:1;color:#7a8393;background:white;display:inline-grid;place-items:center;flex-shrink:0;padding:0;font-weight:500}.help:hover,.help[aria-expanded="true"]{border-color:var(--blue);color:var(--blue)}.help-text{font-size:12px;padding:10px 12px;background:#eef3ff;border-radius:8px;color:#40527c;margin:8px 0 0}.buffer-section{margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}.range-label{display:flex;align-items:center;justify-content:space-between}.range-label output{color:#5361e9;font-size:21px;font-weight:750}.range-label label{margin:0}input[type="range"]{width:100%;accent-color:#4964f5;margin:14px 0 0;height:6px;cursor:pointer}.range-ends{display:flex;justify-content:space-between;color:var(--muted);font-size:10.5px;margin-top:5px}.sub-details{margin-top:20px}.sub-details summary,.year-details>summary,.method>summary{cursor:pointer;font-size:13px;font-weight:650;list-style:none}.sub-details summary::before,.year-details>summary::before,.method>summary::before{content:'›';display:inline-block;margin-right:8px;color:#667085;font-size:18px;vertical-align:-1px;transition:transform .2s}.sub-details[open] summary::before,.year-details[open]>summary::before,.method[open]>summary::before{transform:rotate(90deg)}.sub-details summary span{font-size:11px;color:#8a93a3;font-weight:400;margin-left:6px}.details-fields{margin-top:14px}.section-divider{height:1px;background:var(--line);margin:24px 0}.section-head{display:flex;gap:12px;align-items:center;justify-content:space-between}.section-head h3{margin-bottom:0}.section-head .secondary{white-space:nowrap}.section-head .hint{margin-top:4px}.empty-note{background:#f0f3f9;border-radius:10px;padding:13px;font-size:12px;color:#637086;margin:15px 0}.goals-note{margin-top:14px}.goal-card{border:1px solid #e0e6ef;border-radius:13px;padding:15px;margin-top:15px;background:#fff}.goal-top{display:flex;align-items:center;gap:10px;margin-bottom:3px}.goal-number{background:#edf1ff;color:#4d60d9;border-radius:6px;width:24px;height:24px;display:grid;place-items:center;font-size:11px;font-weight:700;flex-shrink:0}.goal-name{flex:1;min-width:0;width:100%;border:0;outline:0;font-size:13px;font-weight:650;border-bottom:1px solid transparent;padding:4px 0;color:var(--ink);background:transparent}.goal-name:focus{border-bottom-color:var(--blue)}.remove-goal{border:0;color:#8b95a7;background:none;font-size:22px;padding:0 4px;line-height:1}.remove-goal:hover{color:var(--red)}.goal-card .fields{gap:12px;margin-top:12px}.goal-card .input-wrap{height:39px;border-radius:8px}.goal-card label{font-size:11.5px}.goal-card select{border:1px solid #d9dfe8;border-radius:8px;padding:0 8px;height:39px;background:#fff;color:#344054;width:100%;font-size:12px}.goal-foot{font-size:11px;background:#f2f5fe;color:#536588;padding:9px 10px;border-radius:7px;margin-top:12px}.goal-foot strong{color:#334f9f;font-weight:650}.goal-future-note{color:var(--muted);font-size:11px;margin-top:5px}.result{position:sticky;top:22px}.result .description{margin-bottom:18px}.hero-result{background:linear-gradient(120deg,#34399d,#4260fb 78%,#6177ff);border-radius:15px;padding:22px;color:white}.hero-result>span{font-size:12px;color:#e9edff}.hero-result strong{font-size:clamp(29px,3vw,38px);letter-spacing:-.04em;font-weight:750;display:block;margin:10px 0 7px;line-height:1.3}.hero-result p{font-size:11.5px;line-height:1.5;color:#eef0ff;margin:0}.metrics{margin:19px 0 16px}.metrics>div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #e8ecf2;font-size:12px;align-items:baseline}.metrics dt{color:#667085}.metrics dd{margin:0;text-align:right;font-weight:650;color:#273347;white-space:nowrap}.formula-note{border:1px solid #d6eee6;background:#eaf8f3;color:#176b55;border-radius:10px;padding:12px;font-size:12px;margin:17px 0 12px}.result .primary{width:100%;margin:20px 0 10px}.status-note{padding:11px 12px;border-radius:9px;background:#fff4e5;color:#986221;font-size:12px;margin-top:14px}.status-note.positive{background:#ecf8f2;color:#167157}.status-note.negative{background:#fff0f1;color:#a92436}.validation{padding:12px 14px;background:#fff1f1;border:1px solid #f1d1d6;border-radius:9px;color:#a32a3a;font-size:12px;margin-top:18px}.validation ul{margin:0;padding-left:17px}.allocation-list{margin-top:19px;border-top:1px solid var(--line);padding-top:14px}.allocation-list h3{font-size:12px;margin-bottom:8px}.allocation-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11.5px;padding:7px 0}.allocation-row span{color:var(--muted);overflow-wrap:anywhere}.allocation-row strong{font-size:12px;font-weight:650;white-space:nowrap}.allocation-caption{font-size:11px;color:var(--muted);margin:8px 0 0}.stress{margin-top:26px;padding:0;overflow:hidden}.stress-summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:24px;list-style:none}.stress-summary::-webkit-details-marker{display:none}.stress-summary .description{margin-bottom:0}.chevron{font-size:26px;color:#8490a3;transition:transform .2s}.stress[open] .chevron{transform:rotate(180deg)}.stress-body{border-top:1px solid var(--line);padding:22px 24px 24px}.stress-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.stress-toolbar .hint{margin:0}.button-row{display:flex;gap:8px;white-space:nowrap}.stress-layout{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(0,1.4fr);gap:28px}.stress-controls{background:#f8faff;border:1px solid #e4eaf4;border-radius:13px;padding:18px}.stress-controls .fields{gap:13px;margin-top:17px}.changed{border-color:#e4a35b!important;background:#fff9f0!important}.preset-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.preset{border-color:#dce4f2;background:#fff;color:#5a6581;font-size:10.5px;padding:6px 8px;border-radius:6px;font-weight:500}.preset:hover{border-color:#7d92d0}.scenario-result{margin-top:21px;padding-top:17px;border-top:1px solid #dfe6f2}.scenario-result>span{color:#798498;font-size:11px}.scenario-result>strong{display:block;font-size:18px;letter-spacing:-.02em;margin-top:3px}.scenario-result>p{font-size:11.5px;color:#667085;margin:5px 0 0}.scenario-result .metrics{margin:8px 0 0}.compact>div{padding:8px 0;font-size:11.5px}.positive-text{color:var(--green)}.negative-text{color:var(--red)}.projection{min-width:0;padding-top:4px}.projection select,.table-toolbar select{font-size:11px;color:#59667f;border:1px solid #dce2ed;background:#fff;border-radius:7px;padding:7px;max-width:185px}.legend{display:flex;gap:20px;font-size:11px;color:#647087;margin:17px 0 8px}.legend span{display:flex;align-items:center;gap:6px}.legend i{display:block;width:9px;height:9px;border-radius:50%}.baseline-dot{background:#4563ed}.scenario-dot{background:#e09242}.chart{width:100%;height:285px;position:relative}.chart svg{width:100%;height:100%;display:block;overflow:visible}.chart-empty{height:100%;display:grid;place-items:center;color:#8f99aa;font-size:12px;border-bottom:1px solid var(--line)}.chart text{font-family:inherit;font-size:10px;fill:#7a8597}.chart .axis-title{font-size:10px;fill:#5f6d85}.chart .gridline{stroke:#edf0f5;stroke-width:1}.chart .baseline-line{fill:none;stroke:#4563ed;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart .scenario-line{fill:none;stroke-dasharray:6 3;stroke:#e09242;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart .inspect-line{stroke:#9ba6bd;stroke-dasharray:3 4;stroke-width:1}.inspect{display:flex;align-items:center;gap:10px;margin-top:13px;font-size:11px;color:#6a7690}.inspect input{flex:1;margin:0}.inspect output{min-width:58px;text-align:right;color:#465371}.inspect label{white-space:nowrap}.chart-detail{font-size:12px;background:#f3f6fc;color:#566782;border-radius:8px;padding:10px 12px;margin-top:12px}.goal-status-title{margin-top:27px;margin-bottom:12px}.table-scroll{overflow:auto;width:100%;border:1px solid #e2e7f0;border-radius:10px}table{border-collapse:collapse;width:100%;text-align:right;white-space:nowrap;font-size:11px}th{background:#f3f6fb;font-size:10px;font-weight:650;color:#65728b;padding:11px 13px;vertical-align:bottom}td{padding:11px 13px;border-top:1px solid #e8edf4;color:#45516a}td:first-child,th:first-child{text-align:left}tbody tr:hover{background:#fafbfe}.goal-name-cell{white-space:normal;min-width:110px;font-weight:600}.badge{display:inline-block;background:#edf8f2;color:#177154;padding:3px 7px;border-radius:5px;font-size:10px}.badge.shortfall{background:#fff0f0;color:#ac3140}.goal-table-note{font-size:11px;color:#7c8799;white-space:normal;padding:12px}.year-details{margin-top:23px}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0 10px;font-size:12px;color:#65728b}.table-toolbar select{margin-left:5px}.method{margin-top:22px;padding:18px 24px}.method-body{font-size:12px;color:#647087;padding-top:17px}.method-body h3{margin-top:18px;color:#34405a;font-size:13px}.method-body h3:first-child{margin-top:0}.method-body p{margin:7px 0 13px}footer{font-size:11px;color:#7c8799;margin-top:22px;text-align:center}footer p{margin:0 0 9px}footer span{font-size:10.5px}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input[type=range]:focus-visible{outline:3px solid #9aaeff;outline-offset:3px}[hidden]{display:none!important}@media(min-width:1400px){.shell{max-width:1300px}}@media(max-width:1050px){.shell{padding:28px}.head-actions{flex-direction:column;margin-top:20px}.estimation-grid{grid-template-columns:minmax(0,1.2fr) minmax(290px,1fr);gap:18px}.card{padding:20px}.stress-summary{padding:20px}.stress-body{padding:20px}.stress-layout{grid-template-columns:minmax(220px,.85fr) minmax(0,1.2fr);gap:20px}.hero-result{padding:18px}.projection .section-head{align-items:flex-start;flex-direction:column;gap:8px}}@media(max-width:760px){.shell{padding:23px 18px}.back{margin-bottom:21px}.page-head{display:block;margin-bottom:22px}h1{font-size:32px;max-width:480px}.intro{font-size:14px;max-width:430px}.head-actions{flex-direction:row;margin-top:17px}.estimation-grid{grid-template-columns:1fr;gap:18px}.result{position:static}.card{border-radius:16px;padding:20px}.stress{padding:0}.stress-layout{grid-template-columns:1fr}.stress-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.projection .section-head{flex-direction:row;align-items:center}.stress-controls{padding:16px}.stress-summary{padding:20px}.stress-body{padding:18px}.hero-result strong{font-size:37px}.metrics>div{font-size:12.5px}.result .primary{margin-top:17px}.chart{height:280px}.method{padding:18px 20px}.year-table{max-width:100%}}@media(max-width:380px){.shell{padding:18px 12px}h1{font-size:28px}.card{padding:16px}.fields{gap:15px 11px}.field label{font-size:11.5px}.input-wrap{padding:0 9px}.projection .section-head{flex-direction:column;align-items:flex-start}.button-row{flex-wrap:wrap}.goal-card{padding:12px}.stress{padding:0}.stress-body{padding:16px}}

/* Compact secondary input; the definition remains available from the help button. */
.buffer-section .range-label output{font-size:16px}
.buffer-section input[type="range"]{display:block;margin:10px 0 0}
/* Four primary outputs, in the order used to make the purchase decision. */
.key-metrics{margin:0 0 18px}
.key-metrics>div{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}
.key-metrics dt{font-size:12px;color:var(--muted)}
.key-metrics dd{margin:0;font-size:17px;letter-spacing:-.02em;font-weight:700;white-space:nowrap;color:#28364e}
.key-metrics .emi-priority{display:block;padding:0 0 16px}
.key-metrics .emi-priority dt{font-size:13px;color:#3d4960;font-weight:650}
.key-metrics .emi-priority dd{font-size:32px;line-height:1.25;margin-top:5px;color:#253c84;letter-spacing:-.035em}
.budget-details{border-top:1px solid var(--line);padding-top:13px;margin-top:3px}
.budget-details>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;color:#65728b;font-size:12px;font-weight:650}
.budget-details>summary::-webkit-details-marker{display:none}
.budget-details>summary::after{content:'+';font-size:17px;font-weight:400;color:#8290a6}
.budget-details[open]>summary::after{content:'−'}
.budget-details .metrics{margin:8px 0 12px}
.budget-details .metrics>div{font-size:11.5px;padding:8px 0}
.budget-details .formula-note{font-size:11px;padding:10px;margin-top:13px}
.budget-details .allocation-list{margin-top:13px;padding-top:12px}
@media(max-width:380px){.key-metrics dd{font-size:16px}.key-metrics .emi-priority dd{font-size:30px}}

.next-year-projection{border-top:1px solid var(--line);margin-top:13px;padding-top:13px}
.next-year-projection h3{font-size:12px;margin-bottom:0}
.budget-details .next-year-projection .metrics{margin:4px 0 8px}
/* Explore a user-chosen allocation with one projection. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.split-control{background:#f5f7ff;border:1px solid #e1e6fa;border-radius:13px;padding:16px;margin:16px 0 21px}
.available-line{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:12px;color:#626f87}
.available-line strong{font-size:19px;letter-spacing:-.025em;color:#28364e;margin-left:auto}
.available-line>span:last-child{font-size:10px}
.split-control>.fine:first-of-type{margin-top:2px;font-size:10.5px}
.split-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 13px}
.split-cards>div{padding:10px 11px;border-radius:8px;background:#e9edff}
.split-cards span{display:block;font-size:10.5px;color:#4359ac;font-weight:600}
.split-cards strong{display:block;font-size:20px;font-weight:700;letter-spacing:-.035em;color:#2f4599;margin-top:3px}
.split-cards>.split-invest{background:#e5f4ed}
.split-invest span,.split-invest strong{color:#14735b}
#emiAllocation{--emi-share:50%;appearance:none;-webkit-appearance:none;background:linear-gradient(to right,#4c63ef 0 var(--emi-share),#9cd4bd var(--emi-share) 100%);height:7px;border-radius:20px;margin:6px 0 0}
#emiAllocation::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:21px;height:21px;background:white;border:5px solid #4c63ef;border-radius:50%;box-shadow:0 1px 5px #293c8126}
#emiAllocation::-moz-range-thumb{width:13px;height:13px;background:white;border:4px solid #4c63ef;border-radius:50%}
#emiAllocation:disabled{opacity:.45;cursor:not-allowed}
.split-control .range-ends{gap:12px;margin-top:9px;font-size:9.5px}
.split-control .range-ends>span:last-child{text-align:right}
#split-help{font-size:10.5px;margin-top:12px;line-height:1.6}
.goal-health{margin:15px 0 2px}
.goal-health-row{padding:8px 0}
.goal-health-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:11px}
.goal-health-row span{overflow-wrap:anywhere}
.goal-health-row strong{font-size:10.5px;font-weight:600;flex-shrink:0}
.goal-progress{margin-top:6px;height:4px;border-radius:20px;background:#edf0f5;overflow:hidden}
.goal-progress>span{display:block;height:100%;background:#39a380;border-radius:20px}
.goal-progress>.incomplete{background:#d68081}
.projection-link{display:inline-block;font-size:12px;font-weight:650;margin:14px 0 18px}
.projection-panel{margin-top:26px;scroll-margin-top:20px}
.projection-panel .projection{margin-top:22px}
.projection-panel .description{margin-bottom:10px}
.projection-panel .chart{height:285px}
.projection-panel .section-head{flex-direction:row;align-items:center}
@media(max-width:760px){.split-control{padding:14px}.projection-panel .section-head{align-items:flex-start}.projection-panel .section-head h3{max-width:50%}.projection-panel .projection select{max-width:165px}.goal-health-row strong{font-size:10px}}
@media(max-width:380px){.available-line{gap:4px}.available-line strong{font-size:17px}.split-cards{gap:7px}.split-cards>div{padding:9px}.split-cards span{font-size:9.5px}.split-cards strong{font-size:19px}.projection-panel .section-head{flex-direction:column}.projection-panel .section-head h3{max-width:100%}}
/* Four views of the same selected allocation. */
.projection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}
.projection-card{min-width:0;border:1px solid #e3e8f2;border-radius:14px;padding:19px;background:linear-gradient(140deg,#fbfcff,#fff)}
.projection-card h3{font-size:14px;margin:0;line-height:1.45}
.chart-caption{font-size:11.5px;color:#67748b;line-height:1.6;margin:6px 0 12px}
.chart-legend{display:flex;flex-wrap:wrap;align-items:center;gap:7px 13px;font-size:10px;color:#647087;min-height:20px;margin:10px 0 8px}
.chart-legend>span{display:flex;align-items:center;gap:5px;max-width:100%;overflow-wrap:anywhere}
.chart-legend i,.chart-breakdown dt i{display:inline-block;flex-shrink:0;width:8px;height:8px;border-radius:2px;background:var(--series-color)}
.chart-legend .income-key{height:0;width:16px;border-top:2px dashed #34415b;border-radius:0;background:none}
.chart-legend .target-key{height:0;width:16px;border-top:2px dashed #a57631;border-radius:0;background:none}
.projection-card .dashboard-chart{height:245px;margin-top:6px}
.dashboard-chart .chart-empty{margin:0;text-align:center;padding:18px;line-height:1.6;border-bottom:1px solid #e5eaf4;font-size:11.5px}
.dashboard-chart .zero-line{stroke:#98a3b7;stroke-width:1;stroke-dasharray:4 3}
.dashboard-chart .goal-target-line{stroke:#a57631;stroke-width:1.8;stroke-dasharray:4 5}
.cash-segment{cursor:pointer}
.cash-segment:hover{filter:brightness(.94)}
.projection-card .inspect{margin-top:14px}
.projection-card .inspect output{font-size:10.5px;min-width:50px}
.chart-breakdown{border:1px solid #e5eaf4;background:#f6f8fc;border-radius:9px;padding:12px;margin-top:12px;color:#62718a;font-size:11px}
.breakdown-heading{font-size:10.5px;line-height:1.6;color:#586881;font-weight:650;margin:0 0 9px}
.chart-breakdown dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.chart-breakdown dl>div{min-width:0}
.chart-breakdown dt{display:flex;align-items:center;gap:5px;font-size:10px;line-height:1.5;color:#78839a;overflow-wrap:anywhere}
.chart-breakdown dd{margin:2px 0 0;color:#344361;font-size:12px;font-weight:650;overflow-wrap:anywhere}
.chart-breakdown dd.negative-text{color:var(--red)}
.breakdown-note{margin:11px 0 0;font-size:10px;line-height:1.6;color:#6e7c92}
.projection-card>.fine{margin-top:12px;font-size:10px;line-height:1.65}
.projection-card .section-head{display:flex;align-items:flex-start;gap:12px}
.goal-chart-label{font-size:10px;color:#6a7790;display:flex;align-items:center;gap:6px;margin-left:auto;max-width:58%}
.goal-chart-label select{border:1px solid #dce2ed;background:#fff;color:#53617b;border-radius:7px;padding:6px;font-size:10.5px;max-width:170px;min-width:0;width:100%;text-overflow:ellipsis}
@media(max-width:1050px){.projection-grid{gap:14px}.projection-card{padding:15px}.goal-chart-label{max-width:55%}.goal-chart-label select{max-width:140px}}
@media(max-width:760px){.projection-grid{grid-template-columns:1fr;gap:16px;margin-top:20px}.projection-card{padding:16px}.projection-card .dashboard-chart{height:245px}.projection-card .section-head h3{max-width:none}.chart-breakdown dl{gap:10px 14px}.goal-chart-label{max-width:58%}.goal-chart-label select{max-width:155px}}
@media(max-width:380px){.projection-card{padding:13px}.projection-card .section-head{flex-direction:column;gap:9px}.goal-chart-label{max-width:100%;margin-left:0}.chart-legend{font-size:9px;gap:7px 10px}.projection-card .inspect{gap:7px}.projection-card .inspect label{font-size:10px}}
/* Secondary assumptions share one compact row below annual expenses. */
.compact-assumptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}
.compact-range{min-width:0}
.compact-range .range-label{gap:7px;align-items:flex-start;min-height:35px}
.compact-range .range-label label{font-size:11.5px;line-height:1.45;margin:0;align-items:flex-start}
.compact-range .range-label label .help{margin-top:1px}
.compact-range .range-label output{font-size:15px;line-height:1.4;white-space:nowrap;flex-shrink:0}
.compact-range input[type="range"]{display:block;height:5px;margin:7px 0 0}
.compact-range .range-ends{font-size:9px;margin-top:7px;line-height:1.2}
.compact-range .help-text{font-size:11px;padding:9px;margin-top:9px}
@media(max-width:760px){.compact-assumptions{gap:13px}.compact-range .range-label label{font-size:11px}.compact-range .range-label output{font-size:14px}.compact-range .range-label{min-height:48px;gap:5px}}
@media(max-width:380px){.compact-assumptions{gap:11px}.compact-range .range-label label{font-size:10.5px}.compact-range .range-label output{font-size:13px}.compact-range .range-label{min-height:49px}}
/* Age labels follow their handles on separate lanes of the shared rail. */
.age-selector{border:1px solid #e0e6f1;border-radius:12px;margin:19px 0 0;padding:12px 15px 13px;background:#f4f7fd;min-width:0}
.age-selector legend{font-size:12.5px;font-weight:650;line-height:1.45;color:var(--ink);padding:0 5px}
.age-selector legend .help{display:inline-grid;margin-left:4px;vertical-align:-2px}
.age-dual{--age-start:35.9%;--age-end:100%;position:relative;height:123px;margin:6px 0 0;touch-action:none;cursor:ew-resize}
.age-node-label{--pointer-left:50%;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:136px;min-height:43px;padding:5px 8px;border:1px solid #dce2fc;border-radius:9px;background:#edf1ff;color:#5666ac;font-size:10px;line-height:1.4;cursor:pointer;white-space:nowrap;z-index:1}
.age-node-label output{font-size:13.5px;font-weight:750;color:#4058d8}
.age-node-label::after{content:'';position:absolute;left:calc(var(--pointer-left) - 6px);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent}
.current-node-label{top:0}
.current-node-label::after{bottom:-6px;border-top:6px solid #edf1ff}
.retirement-node-label{top:73px;width:166px;border-color:#d7eae4;background:#e8f5f0;color:#327c68}
.retirement-node-label output{color:#13775f}
.retirement-node-label::after{top:-6px;border-bottom:6px solid #e8f5f0}
.age-rail{position:absolute;left:10px;right:10px;top:53px;height:5px;border-radius:20px;background:linear-gradient(to right,#d9e0ec 0 var(--age-start),#6d9ed9 var(--age-start) var(--age-end),#d9e0ec var(--age-end) 100%)}
.age-dual input[type="range"]{position:absolute;top:40px;left:0;width:100%;height:31px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;pointer-events:none;z-index:2;outline-offset:1px}
.age-dual #retirementAge{z-index:3}
.age-dual input[type="range"]::-webkit-slider-runnable-track{height:5px;background:transparent;border:0}
.age-dual input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;pointer-events:auto;height:20px;width:20px;border:3px solid #fff;border-radius:50%;background:#4c63ed;box-shadow:0 1px 4px #20326730;cursor:ew-resize;margin-top:-7.5px}
.age-dual #retirementAge::-webkit-slider-thumb{background:#198a73;width:16px;height:16px;margin-top:-5.5px;border-width:2px}
.age-dual input[type="range"]::-moz-range-track{height:5px;background:transparent;border:0}
.age-dual input[type="range"]::-moz-range-thumb{pointer-events:auto;height:14px;width:14px;border:3px solid #fff;border-radius:50%;background:#4c63ed;cursor:ew-resize;box-shadow:0 1px 4px #20326730}
.age-dual #retirementAge::-moz-range-thumb{background:#198a73;height:12px;width:12px;border-width:2px}
.age-dual input[type="range"]:focus-visible{z-index:5;outline:2px solid #9aaeff}
.age-dual input[type="range"]:disabled::-webkit-slider-thumb{cursor:default;pointer-events:none}
.age-dual input[type="range"]:disabled::-moz-range-thumb{cursor:default;pointer-events:none}
.age-limit-note{font-size:10.5px;line-height:1.6;color:#677592;margin:8px 0 0}
.age-limit-note.blocking{color:#ae2d3e}
#duration-note{display:block;font-weight:650;margin-top:7px}
.assumption-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:21px}
.form-range .range-label label{margin:0}
.form-range .range-label output{font-size:16px;white-space:nowrap}
.form-range input[type="range"]{display:block;margin-top:11px}
.form-range .range-ends{font-size:10px}
.goal-range .range-label{align-items:flex-start;gap:9px;min-height:32px}
.goal-range .range-label label{font-size:11px;line-height:1.5;margin:0}
.goal-range .range-label output{font-size:13px;line-height:1.5;white-space:nowrap;flex-shrink:0}
.goal-range input[type="range"]{display:block;height:5px;margin:8px 0 0}
.goal-range .range-ends{font-size:9px;margin-top:7px}
.goal-range.full .range-label{min-height:0}
.goal-range input[type="range"]:disabled{opacity:.45;cursor:not-allowed}
.loan-lifetime-summary{background:#eff3ff;border:1px solid #e1e8fb;border-radius:9px;padding:12px 13px;margin:13px 0 14px}
.loan-lifetime-summary>span{font-size:10.5px;font-weight:650;color:#5c6c91}
.loan-lifetime-summary>strong{display:block;margin-top:5px;font-size:14px;color:#344361}
.loan-lifetime-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0 0}
.loan-lifetime-summary dt{font-size:10px;color:#7885a0}
.loan-lifetime-summary dd{font-size:15px;font-weight:750;color:#334d93;margin:3px 0 0;letter-spacing:-.02em;overflow-wrap:anywhere}
.retirement-summary{background:linear-gradient(115deg,#eef2ff,#f4f8ff);border:1px solid #dfe7fa;border-radius:10px;padding:14px 15px;margin-top:15px}
.retirement-summary>span{display:block;font-size:11px;color:#62749a;font-weight:650}
.retirement-summary>strong{display:block;font-size:25px;line-height:1.3;letter-spacing:-.035em;color:#2d478e;margin-top:5px}
.retirement-summary>strong.negative-text{color:var(--red)}
.retirement-summary p{font-size:10px;line-height:1.55;color:#7b88a1;margin:6px 0 0}
@media(max-width:760px){.age-selector{padding:12px}.assumption-pair{gap:13px}.form-range .range-label output{font-size:14px}.goal-range .range-label{min-height:45px}.goal-range.full .range-label{min-height:0}.loan-lifetime-summary dd{font-size:14px}.retirement-summary>strong{font-size:24px}}
@media(max-width:380px){.goal-range .range-label label{font-size:10px}.goal-range .range-label output{font-size:12px}.loan-lifetime-summary{padding:11px}.loan-lifetime-summary dd{font-size:13px}}

/* Each projection can expand without changing the chosen goal or inspected year. */
.projection-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.projection-card-head>h3{flex:1 1 150px;margin-top:3px}
.projection-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:100%}
.projection-actions .goal-chart-label{max-width:200px;margin-left:0;flex:1;min-width:0}
.projection-actions .goal-chart-label select{max-width:170px}
.chart-expand{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;flex-shrink:0;border:1px solid #dce3f0;background:#f1f4fc;color:#536695;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:650;line-height:1.5}
.chart-expand:hover{background:#e7edfc;border-color:#bdcbed}
.chart-expand span{font-size:14px;line-height:1}
.projection-card.is-expanded{grid-column:1/-1}
.projection-card{scroll-margin-top:20px}
.projection-grid.has-expanded-card .projection-card:not(.is-expanded){display:none}
.projection-card.is-expanded .dashboard-chart{height:340px}
.projection-card.is-expanded .loan-lifetime-summary dl,.projection-card.is-expanded .chart-breakdown dl{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.projection-card.is-expanded .loan-lifetime-summary dl,.projection-card.is-expanded .chart-breakdown dl{grid-template-columns:repeat(2,minmax(0,1fr))}.projection-card.is-expanded .dashboard-chart{height:310px}.projection-actions{flex:1 1 100%}.projection-actions .goal-chart-label{max-width:210px}}

/* Shared header follows amitupadhyaya.com, scoped to this calculator. */
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:900;font-display:swap;src:url('brand-playfair-display.woff2') format('woff2')}
.site-header{position:sticky;top:0;z-index:20;backdrop-filter:blur(18px);background:rgba(251,251,249,.88);border-bottom:1px solid rgba(230,226,219,.75)}
.site-header-inner{width:min(1180px,calc(100% - 40px));margin:0 auto;min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.site-brand{font-family:"Playfair Display",Georgia,serif;font-size:27px;line-height:1.55;font-weight:900;letter-spacing:-.04em;color:#10243e;text-decoration:none;white-space:nowrap}
.site-brand:hover{text-decoration:none}
.site-navigation{display:flex;align-items:center;gap:14px;font-size:12px;font-weight:700;color:#4d5966}
.site-navigation a{text-decoration:none;color:#4d5966}
.site-navigation a:hover{color:#10243e}
.site-menu-toggle{display:none;border:1px solid #cfd5dc;background:white;color:#10243e;border-radius:999px;padding:7px 12px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.help-working-years{display:block;font-weight:650;margin-bottom:5px}
html{scroll-padding-top:70px}
main.shell{padding-top:23px}
.back{margin-bottom:19px}
.page-head{margin-bottom:24px}
.result{top:78px}
.projection-panel,.projection-card{scroll-margin-top:8px}
@media(max-width:820px){.site-header-inner{position:relative}.site-navigation{display:none}.site-menu-toggle{display:inline-flex;align-items:center;justify-content:center}.site-navigation.is-open{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:8px;background:#fbfbf9;border:1px solid #e6e2db;border-radius:0 0 16px 16px;box-shadow:0 16px 30px rgba(16,36,62,.12)}.site-navigation.is-open a{width:100%;padding:10px 12px;border-radius:8px}.site-navigation.is-open a:hover{background:#eff2f5}}
@media(max-width:760px){.result{position:static}main.shell{padding-top:18px}}
@media(max-width:380px){.age-selector legend{font-size:11.5px}}

/* Goals stay visible and retain their inputs when excluded from the plan. */
.goal-top .goal-toggle{position:relative;display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:10px;font-weight:650;color:#45605a;cursor:pointer;line-height:1.4;margin:0}
.goal-toggle input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.goal-toggle-track{position:relative;width:32px;height:18px;border-radius:20px;background:#bcc6d5;flex-shrink:0;transition:background .15s}
.goal-toggle-track::after{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;background:white;border-radius:50%;box-shadow:0 1px 3px #25354c26;transition:transform .15s}
.goal-toggle input:checked+.goal-toggle-track{background:#1d9576}
.goal-toggle input:checked+.goal-toggle-track::after{transform:translateX(14px)}
.goal-toggle input:focus-visible+.goal-toggle-track{outline:3px solid #9aaeff;outline-offset:3px}
.goal-settings{border:0;margin:0;padding:0;min-width:0}
.goal-card.is-disabled{background:#f7f8fb;border-color:#e1e5ed}
.goal-card.is-disabled .goal-settings{opacity:.6}
.goal-card.is-disabled .goal-toggle{color:#6e7b90}
.goal-card.is-disabled .goal-number{background:#e8ecf3;color:#748196}
.goal-card.is-disabled .goal-foot{background:#edf0f5;color:#69768c}
.goal-card.is-disabled .goal-settings input,.goal-card.is-disabled .goal-settings select{cursor:not-allowed}
@media(max-width:380px){.goal-top{gap:7px}.goal-top .goal-toggle{gap:4px;font-size:9.5px}.goal-toggle-track{width:30px}.goal-toggle input:checked+.goal-toggle-track::after{transform:translateX(12px)}}
@media(max-width:480px){.goal-top{gap:6px}.goal-top .goal-toggle{gap:4px;font-size:9.5px}}
