:root{--ink:#243b3b;--muted:#758180;--teal:#12665c;--bg:#f5f6f2;--line:#e2e7e1;--orange:#c78440}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Noto Sans", "Yu Gothic",sans-serif;font-size:14px}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{color:inherit}header,main,footer{max-width:1180px;margin:auto}header{height:100px;display:flex;align-items:center;gap:25px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:5px;align-items:center;color:var(--ink);font-size:27px;font-weight:800;text-decoration:none;letter-spacing:-1px}.brand>span:not(.brand-icon){font-weight:500;color:var(--teal)}.brand-icon{display:grid;place-items:center;background:var(--teal);color:white;width:39px;height:39px;border-radius:12px;margin-right:7px;font-size:30px}.header-note{color:var(--muted);font-size:12px}.preview{margin-left:auto;font-size:11px;border:1px solid var(--line);padding:5px 10px;border-radius:30px}.intro{display:flex;align-items:center;justify-content:space-between;padding:47px 0 34px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--teal);font-weight:700;margin:0 0 12px}h1{font-size:37px;letter-spacing:1px;margin:0 0 13px;font-weight:650}.intro p:not(.eyebrow){color:var(--muted);margin:0}.intro-note{font-size:12px;text-align:right}.intro-note span{display:block;color:var(--muted);font-size:11px;margin-top:8px}.mobile{display:none}.workspace{display:grid;grid-template-columns:345px 1fr;gap:35px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:16px}.input-panel{padding:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}h2{font-size:18px;margin:0}h3{font-size:14px;margin:0}.text-button{border:0;background:none;font-size:11px;color:var(--muted)}form>label,.input-pair label,.advanced label{display:block;font-size:12px;font-weight:600;margin:25px 0 10px}.input-unit{display:flex;align-items:center;border:1px solid #d9e0d9;border-radius:8px;background:#fff;overflow:hidden}.input-unit:focus-within{outline:2px solid #73a79d}.input-unit input{min-width:0;width:100%;border:0;font-size:24px;padding:14px 12px;font-variant-numeric:tabular-nums;outline:0;background:none;color:var(--ink)}.input-unit span{padding-right:14px;color:var(--muted);white-space:nowrap;font-size:12px}input::-webkit-inner-spin-button{display:none}.presets{display:flex;gap:7px;margin-top:9px}.presets button{border:1px solid var(--line);border-radius:5px;background:#f8faf7;padding:6px 12px;font-size:11px}.input-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}fieldset{border:0;padding:0;margin:25px 0 0}legend{font-size:12px;font-weight:600;margin-bottom:10px}.segmented{display:flex;border-radius:7px;background:#f0f3ef;padding:4px;gap:4px}.segmented label{flex:1;text-align:center;cursor:pointer}.segmented input{position:absolute;opacity:0}.segmented span{display:block;padding:10px 6px;font-size:12px;border-radius:5px}.segmented input:checked+span,.segmented button.active{background:white;color:var(--teal);box-shadow:0 1px 4px #233b3112;font-weight:700}.segmented input:focus-visible+span{outline:2px solid var(--teal)}.helper{font-size:11px;line-height:1.8;color:var(--muted);margin:9px 0}.advanced{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}summary{font-size:12px}.advanced>input{width:100%;padding:10px;border:1px solid var(--line);border-radius:7px}.calculate{width:100%;margin-top:24px;border:0;background:var(--teal);color:white;border-radius:8px;padding:16px;font-weight:600;display:flex;justify-content:space-between}.auto-note{text-align:center;font-size:10px;color:var(--muted);margin:11px 0 0}.result-heading{display:flex;align-items:center;justify-content:space-between;margin:5px 0 15px}.result-heading>span{font-size:11px;color:var(--muted)}.main-result{background:#e7f0e9;border-radius:14px;padding:24px 30px;display:flex;align-items:center;justify-content:space-between}.main-result p{margin:0 0 6px;font-size:12px;color:#4c7167}.hero-number strong{font-size:54px;letter-spacing:-2px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums}.hero-number>span{margin-left:10px;font-size:15px}.main-result #payment-note{font-size:10px;margin:8px 0 0}.result-symbol{font-size:65px;color:#9cbdab;font-weight:200;margin-right:6px}.totals{display:grid;grid-template-columns:1.2fr 1.1fr 1fr;padding:25px 0}.totals>div{padding:0 20px;border-right:1px solid var(--line)}.totals>div:first-child{padding-left:0}.totals>div:last-child{padding-right:0;border:0}.totals p{font-size:11px;color:var(--muted);margin:0 0 9px}.totals strong{font-size:22px;letter-spacing:-.6px;display:inline-block}.totals span{font-size:10px;margin-left:5px}.totals #count{display:block;margin:5px 0 0;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--teal);margin-right:6px}.dot.interest{background:var(--orange)}.chart-panel{padding:23px 25px 16px}.legend{color:var(--muted);font-size:10px}#chart svg{width:100%;display:block;height:175px;margin-top:10px}.chart-caption{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.actions{display:flex;gap:12px;margin-top:20px}.actions button{background:white;border:1px solid var(--line);padding:13px 17px;border-radius:8px;font-size:12px;flex:1;display:flex;justify-content:space-between}.actions .primary-action{border-color:#a1b8ab;color:var(--teal);font-weight:600}.fine-print{font-size:10px;line-height:1.8;color:var(--muted);margin:13px 0}.schedule-panel{margin-top:32px;padding:27px}.small button{border:0;background:none;padding:8px 20px;border-radius:5px;font-size:11px}.table-scroll{overflow:auto;margin-top:22px}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}th,td{padding:15px 12px;border-bottom:1px solid #edf0eb;text-align:right}th{font-size:10px;font-weight:500;color:var(--muted);background:#fafbf8}th:first-child,td:first-child{text-align:left}td:last-child{font-weight:600}.expand{border:0;background:none;display:block;margin:20px auto 0;color:var(--teal);font-size:12px}.methodology{padding:24px 0;color:var(--muted)}.methodology p{font-size:12px;line-height:1.9;max-width:850px}footer{border-top:1px solid var(--line);padding:26px 0;display:flex;align-items:center;gap:24px}footer .brand{font-size:19px}footer>span,footer small{font-size:10px;color:var(--muted)}footer small{margin-left:auto}#error{color:#b74730;font-size:12px}#print-meta{display:none}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media(max-width:1240px){header,main,footer{margin-left:30px;margin-right:30px}}@media(max-width:850px){.workspace{grid-template-columns:290px 1fr;gap:22px}.input-panel{padding:20px}.totals strong{font-size:17px}.totals>div{padding:0 10px}.hero-number strong{font-size:44px}.intro-note{display:none}.actions{flex-direction:column}}@media(max-width:650px){header,main,footer{margin-left:20px;margin-right:20px}header{height:76px}.brand{font-size:24px}.header-note{display:none}.intro{padding:30px 0 24px}h1{font-size:30px}.intro p:not(.eyebrow){font-size:12px;line-height:1.8}.workspace{display:block}.input-panel{padding:22px}.results{margin-top:28px}.input-unit input{font-size:24px;padding:11px 13px}.input-pair label,form>label{margin-top:20px}.hero-number strong{font-size:48px}.totals strong{font-size:18px}.totals>div{padding:0 10px}.result-heading>span{font-size:10px}.actions{flex-direction:row}.actions button{font-size:11px;padding:12px}.schedule-panel{padding:20px 12px}.schedule-panel .section-heading{padding:0 7px}.small button{padding:8px 12px}.schedule-panel h2{font-size:17px}th,td{padding:13px 10px}footer>span{display:none}.chart-panel{padding:20px}.main-result{padding:22px}.result-symbol{font-size:45px}.totals{grid-template-columns:1.2fr 1.1fr 1fr}}@media print{body{background:white;color:#000;font-size:10px}header{height:55px}header .preview,.header-note,.intro,.input-panel,.actions,.fine-print,.methodology,.expand,.small,footer{display:none!important}header,main{max-width:none;margin:0}.workspace{display:block}.result-heading{margin-top:18px}.main-result{padding:16px;border:1px solid #ccc;background:none}.hero-number strong{font-size:34px}.chart-panel{display:none}.totals{padding:15px 0}.schedule-panel{padding:0;border:0;margin-top:20px}.table-scroll{overflow:visible}th,td{padding:6px}thead{display:table-header-group}tr{break-inside:avoid}#print-meta{display:block;margin-top:20px;font-size:10px;line-height:1.8}.panel{box-shadow:none}.results{margin:0}.brand-icon{background:none;color:#000}#print-meta h2{font-size:14px}}
@media screen and (max-width:650px){.totals{grid-template-columns:1fr 1fr;gap:16px 0}.totals>div:nth-child(2){border:0}.totals>div:last-child{grid-column:1/-1;padding:13px 0 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px}.totals>div:last-child p{margin:0}.totals>div:last-child strong{font-size:15px;white-space:nowrap}.totals #count{margin:0}}
.advanced-section{margin-top:24px;padding-top:21px;border-top:1px solid var(--line)}.advanced-section h3{font-size:13px;color:var(--teal)}.advanced select,.advanced input[type=text]{width:100%;padding:11px 8px;border:1px solid #d9e0d9;background:white;border-radius:7px;color:var(--ink);font:inherit;font-size:12px}.advanced .input-unit input{font-size:19px;padding:11px}.advanced label{margin-top:17px}.cost-summary{background:#eef2ea;padding:14px;border-radius:8px;font-size:12px;line-height:1.7}
.rate-change{background:#f5f7f3;border:1px solid var(--line);border-radius:8px;padding:0 12px 12px;margin:12px 0}.rate-change input[type=month]{width:100%;padding:10px;border:1px solid #d9e0d9;border-radius:6px;background:white;color:var(--ink)}.remove-rate{display:block;margin:12px 0 0 auto}.add-rate{width:100%;border:1px dashed #94b0a5;border-radius:7px;padding:11px;background:white;color:var(--teal);font-size:12px}
