:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#263a33;background:#f6f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}header{height:94px;border-bottom:1px solid #e1e6dd;display:flex;align-items:center;justify-content:space-between;padding:0 6.5%;background:#fafbf8}.brand{display:flex;align-items:center;text-decoration:none;color:#253c32;font-size:23px;font-weight:800;letter-spacing:2px}.brand-icon{display:grid;place-items:center;width:35px;height:35px;background:#304f3f;color:#dcebc6;border-radius:10px;margin-right:10px;font-size:24px}.brand-dot{color:#81a75d}.header-note{color:#879087;font-size:12px;letter-spacing:2px}.tag{border:1px solid #d8dfd3;border-radius:25px;padding:9px 15px;font-size:12px}main{max-width:1200px;margin:auto;padding:0 40px}.intro{position:relative;padding:57px 0 41px}.eyebrow,.step{font-size:10px;letter-spacing:2px;font-weight:600;color:#87927f}.eyebrow{display:flex;align-items:center;gap:8px;color:#5e7953}.eyebrow>span{background:#7b9c5e;width:6px;height:6px;border-radius:50%}h1{font-size:clamp(30px,4vw,45px);line-height:1.45;letter-spacing:-1.5px;margin:18px 0 15px;font-weight:600}h1 span{color:#76866a}.intro p{font-size:13px;color:#8a948a;line-height:1.9;margin:0}.intro-mark{position:absolute;right:45px;top:54px;width:230px;height:210px;border-radius:50%;background:radial-gradient(ellipse,#e7ecd9,transparent 72%);display:grid;place-items:center}.intro-mark svg{width:170px;stroke:#91a77b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(-7deg)}.intro-mark .fine{stroke-width:1;stroke:#b2bf9c}.card{background:#fff;border:1px solid #e1e6dd;border-radius:18px;box-shadow:0 5px 20px #24372103}.form-card{padding:29px 32px}.section-heading{display:flex;align-items:center;justify-content:space-between}h2{font-size:20px;font-weight:600;letter-spacing:-.5px;margin:8px 0 0}.clear{background:transparent;border:1px solid #e1e5dd;color:#73806e;border-radius:8px;padding:9px 17px;font-size:12px}.clear:hover{background:#f4f6ef}.fields{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:20px;margin-top:29px}label{font-size:12px;font-weight:500;color:#5a695e}.input-wrap{display:flex;align-items:center;gap:5px;margin-top:10px;border:1px solid #dde4d8;border-radius:9px;padding:0 13px;height:52px;background:#fbfcf9}.input-wrap:focus-within{border-color:#7a9468;box-shadow:0 0 0 3px #97ad731a}.input-wrap>span{color:#8e9888;font-size:12px}input{width:100%;min-width:0;border:0;outline:0;color:#314735;background:transparent;font-size:15px;height:100%}input::placeholder{color:#b1b9ab;font-size:13px}input::-webkit-inner-spin-button{appearance:none}.form-bottom{border-top:1px solid #eff1eb;margin-top:26px;padding-top:22px;display:flex;align-items:center;justify-content:space-between}.form-bottom p{font-size:11px;color:#96a08f}.info{border:1px solid #a2ad9a;border-radius:50%;padding:0 5px;margin-right:5px}.primary{border:0;border-radius:9px;background:#314e3e;color:#fff;padding:15px 22px;font-size:13px;min-width:195px;display:flex;justify-content:space-between;gap:30px}.primary:hover{background:#41644f}button:focus-visible,a:focus-visible,.table-scroll:focus-visible{outline:3px solid #a5b98c;outline-offset:3px}.empty{text-align:center;padding:48px 0 53px;color:#98a191}.empty-icon{display:inline-grid;place-items:center;width:44px;height:44px;border:1px solid #e1e6d9;border-radius:12px;font-size:26px;color:#9dab8e;background:#eff2e9}.empty h3{font-size:14px;font-weight:500;margin:17px 0 10px}.empty p{font-size:11px;color:#a7afa1}.overview{display:flex;justify-content:space-between;align-items:center;padding:34px 5px}.overview p,.summary p{font-size:12px;color:#8c9985}.monthly{text-align:right}.monthly>span,.total>span{display:block;font-size:12px;color:#7f8e73}.monthly strong{display:block;font-size:35px;letter-spacing:-1px;font-weight:500;margin:5px 0}.monthly small,.total small{font-size:10px;color:#97a28e}.schedule{overflow:hidden}.schedule .section-heading{padding:26px 30px}.pill{background:#f0f3e9;border-radius:20px;font-size:11px;padding:8px 12px;color:#829371}.table-scroll{overflow:auto;max-height:470px}table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}th{text-align:right;background:#f4f6ef;color:#88957c;font-size:11px;font-weight:500;position:sticky;top:0;padding:16px 24px}td{text-align:right;padding:17px 24px;border-bottom:1px solid #eff2e9;color:#7b8871}td:first-child,th:first-child{text-align:left;padding-left:30px}td:nth-child(2){color:#344e3c;font-weight:500}tbody tr:hover{background:#fafbf7}.table-note{padding:4px 30px;font-size:10px;color:#a4ad9b}.summary{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:20px;background:#eaf0e1;border:1px solid #dfe7d4;border-radius:16px;margin:24px 0 37px;padding:30px}.total{border-left:1px solid #d3ddc8;padding-left:28px}.total strong{display:block;font-size:27px;font-weight:500;margin:9px 0;letter-spacing:-1px}footer{display:flex;justify-content:space-between;border-top:1px solid #e2e7db;padding:23px 0 30px;font-size:10px;color:#a2ac9a;gap:20px}footer b{color:#8a9e71;margin:0 6px}#error{color:#b44031;font-size:13px}[hidden]{display:none!important}@media(max-width:800px){header{height:76px;padding:0 24px}.header-note{display:none}main{padding:0 24px}.intro-mark{right:0;width:180px}.fields{grid-template-columns:1fr 1fr}.summary{grid-template-columns:1fr 1fr}.summary>div:first-child{grid-column:1/-1}.total{padding-left:0;border:0}footer{flex-direction:column;gap:10px}.form-card{padding:24px}}@media(max-width:480px){header{padding:0 18px}.brand{font-size:19px}.tag{font-size:10px;padding:8px}main{padding:0 16px}.intro{padding:36px 0 30px}.intro-mark{opacity:.35;right:-5px;top:65px;width:125px}.intro-mark svg{width:115px}.intro p{font-size:11px}h1{font-size:30px}.fields{gap:18px 12px}.form-card{padding:21px 18px}.input-wrap{padding:0 9px}.form-bottom{align-items:stretch;flex-direction:column;gap:10px}.primary{justify-content:center}.empty p{line-height:1.8;padding:0 20px}.overview{align-items:flex-start;gap:20px}.overview h2{font-size:17px}.monthly strong{font-size:26px}.monthly small{font-size:9px}.summary{padding:23px 20px;gap:22px 15px}.total strong{font-size:22px}.schedule .section-heading{padding:22px}.step{font-size:9px;letter-spacing:1.5px}}

/* Allow English labels and GBP totals to wrap on narrow screens. */
.intro h1,.intro p{position:relative;z-index:1}.intro-mark{opacity:.6}.form-bottom{gap:20px}.form-bottom p{line-height:1.7}.monthly{max-width:48%}.monthly small{display:block;line-height:1.6}.total strong{overflow-wrap:anywhere}.summary>div{min-width:0}.pill{white-space:nowrap}.header-note{letter-spacing:1px}
@media(min-width:801px){.intro h1{font-size:42px}.intro-mark{right:0}}
@media(max-width:600px){.intro-mark{display:none}.form-bottom{flex-direction:column;align-items:stretch}.overview{flex-direction:column;align-items:stretch;gap:22px}.monthly{text-align:left;max-width:none}.summary{grid-template-columns:1fr}.summary>div:first-child{grid-column:auto}.total{border-top:1px solid #d3ddc8;padding-top:16px}.schedule .section-heading{gap:12px}.schedule h2{font-size:18px}.brand{font-size:18px}.tag{font-size:10px}}

.export-pdf{background:#fff;margin-top:8px;color:#314e3e;font-weight:600}.export-hint{display:block;font-size:10px;line-height:1.6;margin-top:8px;color:#7f8e73}.print-details{display:none}
@media print{
 @page{size:A4;margin:15mm}
 :root,body{background:#fff;color:#18291f;font-size:10pt}
 header{height:auto;padding:0 0 12px;background:#fff}
 header .tag,.header-note,.intro,.form-card,.empty,.export-pdf,.export-hint{display:none!important}
 main{max-width:none;padding:0;margin:0}
 .print-details{display:block;margin-top:18px}
 .print-details p{font-size:10pt;line-height:1.8}
 .overview{display:flex;flex-direction:row;align-items:center;padding:20px 0;break-inside:avoid}
 .monthly{text-align:right;max-width:48%}.monthly strong{font-size:24pt}
 .card{box-shadow:none;border-radius:0;border:0}
 .schedule{overflow:visible}.schedule .section-heading{padding:15px 0;break-after:avoid}
 .table-scroll{max-height:none!important;overflow:visible!important}
 table{font-size:9pt;width:100%;table-layout:auto}
 thead{display:table-header-group}th{position:static;background:#edf1e8}
 th,td{padding:8px 6px!important;color:#18291f}tr{break-inside:avoid}
 .summary{display:grid;grid-template-columns:1fr 1fr;break-inside:avoid;margin:22px 0;padding:18px;background:#f2f5ee;border-radius:0}
 .summary>div:first-child{grid-column:1/-1}.total{border:0;padding:0}.total strong{font-size:20pt}
 footer{font-size:8pt;break-inside:avoid;margin-top:20px}
}

/* Keep the mortgage term stepper visible for one-year adjustments. */
#years::-webkit-inner-spin-button{appearance:auto;opacity:1;cursor:pointer}
#years{appearance:auto}

.intro-mark{width:260px;height:230px;opacity:1}.intro-mark svg.home-garden{width:250px;transform:none;stroke:none}.intro-mark .home-garden path{vector-effect:non-scaling-stroke}
@media(min-width:801px){.intro-mark{top:24px}}
@media(min-width:601px) and (max-width:800px){.intro-mark{right:-8px;width:190px;top:38px}.intro-mark svg.home-garden{width:190px}}
