@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;450;500;550;600;650;700;750&display=swap');

:root{font-family:'Golos Text',Arial,sans-serif;color:#262735;background:#f5f6f9;font-synthesis:none;--purple:#6654d9;--purple-dark:#5543c2;--purple-soft:#efecfc;--teal:#198577;--orange:#c48030;--muted:#727581;--line:#e7e8ee;--surface:#fff;--error:#b64545;font-size:16px}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,summary{cursor:pointer}button{transition:background .16s,color .16s,border-color .16s}button:disabled{cursor:default;opacity:.45}button,a,input,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8575eb}input,select{min-width:0}button{color:inherit}svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}a{color:var(--purple)}.topbar{height:78px;background:white;border-bottom:1px solid var(--line)}.topbar-inner{max-width:1536px;height:100%;margin:auto;display:flex;align-items:center;padding:0 46px;gap:32px}.brand{display:flex;align-items:center;gap:10px;color:#292739;font-size:25px;letter-spacing:-1.2px;font-weight:750;text-decoration:none}.brand-period{color:var(--purple);margin-left:-10px}.brand-mark{width:35px;height:37px;background:var(--purple);border-radius:10px;display:grid;place-items:center;color:white}.brand-mark svg{width:24px;height:24px;stroke-width:1.8}.header-label{font-size:14px;color:var(--muted);padding-left:28px;border-left:1px solid var(--line)}.topbar .text-button{margin-left:auto}.text-button{border:0;background:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 8px;font-size:14px;font-weight:500;white-space:nowrap}.text-button:hover{color:var(--purple)}.text-button svg{width:18px;height:18px}.page{max-width:1536px;margin:auto;padding:36px 46px 18px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:31px}h1{font-size:31px;line-height:1.25;font-weight:600;letter-spacing:-1.2px}.page-heading p{font-size:15px;color:var(--muted);margin-top:9px;line-height:1.5}.currency-chip{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;border:1px solid #e1e2e9;border-radius:8px;background:#fafbfc;padding:9px 12px;white-space:nowrap}.currency-chip span{font-weight:400;color:var(--muted)}.workspace{display:grid;grid-template-columns:295px minmax(0,1fr);gap:28px;align-items:start}.input-panel{background:white;border:1px solid var(--line);border-radius:14px;padding:18px 22px 0;overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}h2{font-size:18px;font-weight:600;letter-spacing:-.35px}.icon-button{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:7px;background:none;color:var(--muted)}.icon-button:hover{background:var(--purple-soft);color:var(--purple)}.icon-button svg{width:18px;height:18px}.panel-intro{font-size:13px;line-height:1.6;color:var(--muted);max-width:225px;margin:0 0 20px}.input-section{border-top:1px solid var(--line);padding:20px 0 18px}.input-section h3{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:550;margin-bottom:18px}.input-section h3 svg{color:#9993b7;width:18px;height:18px}.field{display:block;margin-bottom:14px}.field>span:first-child{display:flex;align-items:center;gap:7px;font-size:14px;color:#646773;margin-bottom:7px}.input-wrap{display:flex;align-items:center;border:1px solid #dddfe7;border-radius:7px;overflow:hidden;min-height:43px;transition:border-color .15s;background:#fff}.input-wrap:focus-within{border-color:var(--purple);box-shadow:0 0 0 3px #6654d912}.input-wrap input{border:0;outline:none!important;background:none;width:100%;font-size:15px;font-weight:500;letter-spacing:.1px;padding:11px 10px;color:#30313d;font-variant-numeric:tabular-nums}.input-wrap>span{font-size:13px;white-space:nowrap;color:#737581;padding-right:12px}.input-wrap:has(input[aria-invalid=true]){border-color:var(--error)}.field-error{display:block;font-size:12px;line-height:1.4;color:var(--error);margin-top:4px}.field-error:empty{display:none}.budget-line{display:flex;justify-content:space-between;gap:4px;font-size:12px;padding-top:1px}.budget-line span{color:#717481}.budget-line strong{font-weight:500;color:var(--purple);white-space:nowrap}.help-dot{font-family:Georgia,serif;display:inline-grid;place-items:center;width:14px;height:14px;border:1px solid #a2a2ac;border-radius:50%;font-size:12px}.apartment-section{padding-bottom:9px}.advanced{border-top:1px solid var(--line)}.advanced summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:13px;min-height:55px;color:#60636e}.advanced summary::-webkit-details-marker{display:none}.advanced summary svg{width:16px;height:16px;transition:transform .18s}.advanced[open] summary svg{transform:rotate(180deg)}.advanced>div{padding-bottom:18px}select{border:1px solid #dddfe7;border-radius:7px;background:white;min-height:42px;padding:8px 10px;color:#343642;font-size:14px;max-width:100%}.field select{width:100%}.field small,.small-copy{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:7px}.live-note{display:flex;align-items:center;gap:7px;justify-content:center;color:#737581;background:#fbfbfd;font-size:12px;margin:0 -22px;padding:16px 15px;border-top:1px solid var(--line)}.live-note svg{width:14px;height:14px;color:#9690b5}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;margin:-4px 0 14px}.section-heading h2{display:flex;align-items:center;gap:9px;font-size:18px}.section-heading h2>span{display:grid;place-items:center;background:#e9eaf0;color:#787b87;font-size:12px;width:22px;height:22px;border-radius:6px;font-weight:500}.add-button{color:var(--purple);padding-right:0}.plus{font-size:22px;line-height:1;font-weight:400}.scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.scenario-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.scenario-card{background:white;border:1px solid #e0e2e9;border-radius:12px;position:relative;min-width:0;padding:18px 18px 0;transition:border-color .18s}.scenario-card.is-best{border:1.5px solid var(--purple);padding:17.5px 17.5px 0}.scenario-top{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:26px;margin-bottom:9px}.scenario-label{font-size:12px;color:#707482;display:flex;align-items:center;gap:6px}.scenario-dot{width:7px;height:7px;border-radius:50%;background:var(--scenario-color)}.best-badge{color:var(--purple);background:var(--purple-soft);font-size:12px;padding:4px 7px;border-radius:5px;font-weight:500;white-space:nowrap}.remove-scenario{height:26px;min-height:26px;width:26px;border:0;background:none;color:#9899a4;border-radius:5px;display:grid;place-items:center;padding:3px}.remove-scenario:hover{color:var(--error);background:#fdf1ef}.remove-scenario svg{width:14px;height:14px}.scenario-top-right{display:flex;align-items:center;gap:3px}.scenario-name{width:100%;padding:0;background:none;border:0;font-size:17px;letter-spacing:-.45px;font-weight:600;color:#2a2c38;min-height:29px;outline-offset:2px!important}.scenario-name:hover{background:#f8f8fc}.scenario-config{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:17px 0 0}.scenario-config .field>span:first-child{font-size:12px;margin-bottom:6px}.scenario-config .input-wrap{min-height:38px}.scenario-config input{font-size:14px;padding:9px 10px}.scenario-config .input-wrap>span{padding-right:9px;font-size:12px}.scenario-config .field{margin-bottom:6px}.down-amount{color:#737581;font-size:12px;margin-top:5px;min-height:16px;display:block}.markup-field{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:3px 0 8px;font-size:12px;color:#727582}.markup-field .input-wrap{min-height:32px;max-width:88px}.markup-field input{font-size:13px;padding:6px 9px}.markup-field .input-wrap>span{font-size:12px;padding-right:9px}.contract-price{display:flex;justify-content:space-between;font-size:12px;color:#737581;gap:5px;padding-bottom:15px;border-bottom:1px solid var(--line)}.contract-price strong{color:#686b78;font-weight:450;white-space:nowrap}.payment-block{margin-top:17px}.payment-caption{font-size:12px;color:#7a7d88}.payment-number{font-size:26px;letter-spacing:-1.1px;font-weight:600;line-height:1.3;margin-top:5px;white-space:nowrap}.payment-number small{font-size:13px;font-weight:450;color:#737581;letter-spacing:0;margin-left:4px}.funding-bar{height:6px;display:flex;border-radius:3px;background:#edeef3;overflow:hidden;margin:15px 0}.funding-bar>span{height:100%;min-width:0;transition:width .2s}.funding-bar .salary-segment{background:var(--purple)}.funding-bar .interest-segment{background:var(--teal)}.funding-bar .capital-segment{background:#d8a15f}.funding-bar .gap-segment{background:#d66666}.source-line{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:13px;margin-top:9px;line-height:1.35}.source-line>span:first-child{color:#6b6e7c;display:flex;align-items:center;gap:6px}.source-line strong{font-size:13px;font-weight:500;white-space:nowrap}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;flex-shrink:0;background:var(--purple)}.dot.teal{background:var(--teal)}.dot.orange{background:#d8a15f}.capital-detail{font-size:12px;color:#737581;display:flex;justify-content:space-between;gap:5px;margin:6px 0 0;padding-left:12px}.average-note{font-size:12px;color:#737581;line-height:1.5;margin:11px 0 15px}.final-block{border-top:1px solid var(--line);margin:0 -18px;background:#fcfcfe;padding:13px 18px 15px;border-radius:0 0 11px 11px}.is-best .final-block{margin:0 -17.5px;background:#f7f5ff;padding:13px 17.5px 15px}.final-caption{font-size:12px;color:#7b7e8c}.final-amount{font-size:20px;font-weight:550;letter-spacing:-.6px;margin-top:4px}.is-best .final-amount{color:var(--purple-dark)}.scenario-status{font-size:12px;display:flex;align-items:flex-start;gap:4px;color:#348174;margin-top:7px;line-height:1.4;min-height:17px}.scenario-status svg{width:13px;height:13px;margin-top:1px}.scenario-status.warning{color:var(--error)}.recommendation{display:flex;align-items:center;gap:14px;padding:21px 23px;background:var(--purple-soft);border:1px solid #e2ddfa;border-radius:12px;margin:20px 0 23px;min-height:105px}.recommendation-icon{width:40px;height:40px;background:#ded7f8;border-radius:12px;display:grid;place-items:center;color:var(--purple-dark);flex-shrink:0}.recommendation-icon svg{width:22px;height:22px}.recommendation-copy{flex:1;min-width:0}.recommendation h3{font-size:15px;font-weight:550;color:#49416c;line-height:1.5}.recommendation p{font-size:12px;color:#7a718f;line-height:1.6;margin-top:4px}.recommendation-gain{padding-left:23px;border-left:1px solid #d9d2ee;flex-shrink:0;text-align:right}.recommendation-gain strong{display:block;font-size:23px;color:var(--purple);font-weight:550;letter-spacing:-.7px}.recommendation-gain span{display:block;font-size:12px;color:#807590;margin-top:6px}.recommendation.no-best{background:#fcf0ec;border-color:#f0d5cb}.no-best .recommendation-icon{color:#b36b48;background:#f2dbd0}.no-best h3{color:#985238}.no-best p{color:#a57560}.chart-panel{border:1px solid var(--line);border-radius:12px;background:white;padding:24px 23px 16px;min-width:0}.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.chart-heading h2{font-size:17px}.chart-heading p{font-size:12px;color:#737581;margin-top:7px;line-height:1.5}.view-switch{display:flex;border-radius:7px;background:#f1f2f6;padding:3px;flex-shrink:0}.view-switch button{border:0;background:none;border-radius:5px;min-height:32px;padding:7px 11px;font-size:12px;color:#7c7e8a}.view-switch .active{background:white;color:#514467;box-shadow:0 1px 3px #2422390d}.chart-legend{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:22px 0 10px;font-size:12px;color:#777986}.chart-legend>span{display:flex;align-items:center;gap:6px}.line-key{width:15px;height:3px;background:var(--scenario-color);display:inline-block;border-radius:2px}.chart{width:100%;min-height:226px}.chart svg{display:block;width:100%;height:auto;stroke:none;fill:none;overflow:visible}.chart svg text{font-family:inherit;font-size:12px;fill:#737581;stroke:none}.chart-description{font-size:12px;line-height:1.5;color:#737581;min-height:17px;margin-top:0}.chart-empty{padding:55px 20px;text-align:center;color:var(--muted);font-size:14px;line-height:1.7}.bottom-note{display:flex;align-items:flex-start;gap:7px;font-size:12px;color:#737581;line-height:1.65;margin-top:15px;padding:0 3px;max-width:900px}.bottom-note svg{width:14px;height:14px;margin-top:2px}.error-banner{border:1px solid #efcdcd;background:#fff3f3;color:var(--error);border-radius:8px;padding:13px 16px;line-height:1.5;font-size:14px;margin-bottom:15px}.error-banner[hidden]{display:none}.table-tools{display:flex;align-items:center;gap:10px;margin:20px 0 14px;font-size:13px}.table-tools .text-button{margin-left:auto;font-size:12px}.table-tools select{font-size:12px;min-height:36px}.table-scroll{overflow:auto;max-height:325px;border:1px solid var(--line);border-radius:6px}table{border-collapse:collapse;min-width:900px;width:100%;font-variant-numeric:tabular-nums;font-size:12px;text-align:right;white-space:nowrap}th{background:#f7f7fb;color:#757786;font-size:12px;font-weight:500;position:sticky;top:0;padding:11px 12px;border-bottom:1px solid var(--line)}td{padding:10px 12px;border-bottom:1px solid #efeff4;color:#575b68}th:first-child,td:first-child{text-align:left}tbody tr:nth-child(even){background:#fcfcfe}td.has-gap{color:var(--error);font-weight:600}.table-footnote{font-size:12px;color:var(--muted);line-height:1.6;margin-top:12px}footer{display:flex;align-items:center;justify-content:space-between;color:#9b9daa;font-size:12px;margin-top:38px;padding:20px 0 0;border-top:1px solid #e5e7ee}footer>span:first-child{font-size:17px;letter-spacing:-.5px;font-weight:600;color:#9d9cac}dialog{border:1px solid var(--line);padding:27px;max-width:650px;width:calc(100% - 30px);max-height:85vh;border-radius:16px;box-shadow:0 18px 80px #26223530;color:#30313d}dialog::backdrop{background:#29263855;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}.dialog-header h2{font-size:22px}.method-content h3{font-size:16px;margin:21px 0 8px}.method-content p{font-size:14px;line-height:1.75;color:#737582;margin-bottom:9px}.method-source{border-top:1px solid var(--line);padding-top:14px}.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}[hidden]{display:none!important}
@media(min-width:1500px){.scenario-card{padding-left:23px;padding-right:23px}.scenario-card.is-best{padding-left:22.5px;padding-right:22.5px}.final-block{margin-left:-23px;margin-right:-23px;padding-left:23px;padding-right:23px}.is-best .final-block{margin-left:-22.5px;margin-right:-22.5px;padding-left:22.5px;padding-right:22.5px}.payment-number{font-size:29px}}
@media(max-width:1250px){.page{padding:30px 25px 18px}.topbar-inner{padding:0 25px}.workspace{grid-template-columns:260px minmax(0,1fr);gap:20px}.input-panel{padding-left:17px;padding-right:17px}.live-note{margin:0 -17px}.scenario-card{padding:15px 12px 0}.scenario-card.is-best{padding:14.5px 11.5px 0}.final-block{margin:0 -12px;padding:13px 12px}.is-best .final-block{margin:0 -11.5px;padding:13px 11.5px}.scenario-grid{gap:10px}.scenario-name{font-size:15px}.payment-number{font-size:23px}.payment-number small{font-size:12px}.source-line,.source-line strong{font-size:12px}.scenario-config{gap:8px}.best-badge{font-size:12px;padding:4px}.recommendation{padding:18px}.recommendation-gain{padding-left:16px}.recommendation-gain strong{font-size:21px}.currency-chip span{display:none}}
@media(max-width:1250px){.workspace{grid-template-columns:1fr}.input-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;padding:20px 23px 0}.panel-heading{grid-column:1/-1}.panel-intro{grid-column:1/-1;max-width:none;margin-bottom:12px}.input-section{padding-top:16px;min-width:0}.advanced{grid-column:1/-1}.advanced>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.small-copy{grid-column:1/-1}.live-note{grid-column:1/-1;margin:0 -23px}.section-heading{margin-top:4px}.scenario-card{padding:19px 21px 0}.scenario-card.is-best{padding:18.5px 20.5px 0}.final-block{margin:0 -21px;padding:14px 21px}.is-best .final-block{margin:0 -20.5px;padding:14px 20.5px}.scenario-grid{gap:16px}.scenario-name{font-size:17px}.payment-number{font-size:28px}.source-line,.source-line strong{font-size:13px}.best-badge{font-size:12px;padding:4px 7px}.scenario-config{gap:12px}.chart{min-height:200px}}
@media(max-width:740px){.topbar{height:65px}.topbar-inner{padding:0 20px}.header-label{display:none}.topbar .text-button{font-size:13px}.brand{font-size:23px}.brand-mark{width:32px;height:34px}.page{padding:25px 18px 16px}.page-heading{gap:12px;margin-bottom:24px;align-items:flex-start}h1{font-size:26px;letter-spacing:-.9px;line-height:1.25}.page-heading p{font-size:14px;max-width:350px}.currency-chip{font-size:12px;padding:7px 8px;margin-top:4px}.input-panel{grid-template-columns:1fr 1fr;gap:0 20px;padding-left:19px;padding-right:19px}.apartment-section{grid-column:1/-1}.apartment-section .field{max-width:none}.advanced>div{grid-template-columns:1fr 1fr}.advanced .field:last-of-type{grid-column:1/-1}.live-note{margin:0 -19px}.scenario-grid,.scenario-grid.four{grid-template-columns:1fr}.scenario-card{padding:18px 22px 0}.scenario-card.is-best{padding:17.5px 21.5px 0}.scenario-name{font-size:20px}.scenario-config .field>span:first-child{font-size:14px}.scenario-config .input-wrap{min-height:44px}.scenario-config input{font-size:16px}.down-amount{font-size:12px}.markup-field{font-size:14px;margin:7px 0 12px}.markup-field .input-wrap{min-height:40px;max-width:100px}.markup-field input{font-size:15px}.contract-price{font-size:13px}.payment-caption,.final-caption{font-size:13px}.payment-number{font-size:32px}.payment-number small{font-size:14px}.source-line,.source-line strong{font-size:15px}.capital-detail{font-size:12px}.average-note{font-size:12px}.final-block{margin:0 -22px;padding:17px 22px}.is-best .final-block{margin:0 -21.5px;padding:17px 21.5px}.final-amount{font-size:24px}.scenario-status{font-size:12px}.remove-scenario{height:32px;width:32px}.scenario-label{font-size:13px}.best-badge{font-size:12px}.section-heading h2{font-size:17px}.add-button{font-size:13px}.recommendation{flex-wrap:wrap;padding:19px 17px;gap:12px}.recommendation-copy{flex-basis:calc(100% - 55px)}.recommendation h3{font-size:15px}.recommendation p{font-size:13px}.recommendation-gain{margin-left:52px;padding:0;border:0;text-align:left}.recommendation-gain strong{font-size:24px}.chart-panel{padding:20px 16px 15px}.chart-heading{align-items:flex-start;flex-direction:column;gap:14px}.view-switch{width:100%}.view-switch button{width:50%;min-height:38px;font-size:13px}.chart-legend{gap:11px 16px;font-size:12px;margin:19px 0 12px}.chart{min-height:0}.chart svg text{font-size:13px}.chart-description,.bottom-note{font-size:12px}.chart-description{margin-top:8px}.table-tools{flex-wrap:wrap}.table-tools .text-button{margin-left:0}.table-tools select{flex:1;max-width:calc(100% - 70px)}footer{margin-top:24px;font-size:12px;gap:20px;line-height:1.7}dialog{padding:20px}.dialog-header h2{font-size:20px}}
@media(max-width:420px){.input-panel{grid-template-columns:1fr}.input-section{grid-column:1/-1}.input-section .field:last-child{margin-bottom:0}.input-section h3{margin-bottom:15px}.advanced>div{grid-template-columns:1fr}.page-heading{position:relative;padding-right:38px}.currency-chip{position:absolute;right:0;top:0}.currency-chip{font-size:12px;padding:5px}.section-heading{gap:8px}.section-heading h2{gap:5px;font-size:16px}.add-button{font-size:12px}.page{padding-left:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media print{.topbar,.input-panel,.add-button,.remove-scenario,.view-switch,.text-button,footer{display:none}.page{padding:0}.workspace{display:block}.scenario-grid{grid-template-columns:repeat(3,1fr)}.scenario-card,.chart-panel,.recommendation{break-inside:avoid}.page-heading{margin-bottom:20px}body{background:white}}

/* Keep financial inputs and totals legible at intermediate widths. */
.scenario-config .field>span:first-child,.markup-field,.source-line,.source-line strong{font-size:14px}.scenario-config{gap:9px}.source-line.gap-line,.source-line.gap-line>span:first-child{color:var(--error)}.scenario-config .field>span:first-child{min-height:34px;align-items:flex-start}.scenario-status{min-height:34px}.final-amount{overflow-wrap:anywhere}.payment-number{white-space:normal}.payment-number small{display:inline-block}.funding-bar{margin-top:12px}
@media(min-width:741px) and (max-width:900px){.scenario-card{padding-left:13px;padding-right:13px}.scenario-card.is-best{padding-left:12.5px;padding-right:12.5px}.final-block{margin-left:-13px;margin-right:-13px;padding-left:13px;padding-right:13px}.is-best .final-block{margin-left:-12.5px;margin-right:-12.5px;padding-left:12.5px;padding-right:12.5px}.source-line,.source-line strong{font-size:13px}.best-badge{font-size:12px}.scenario-top-right{gap:0}.scenario-label{font-size:12px}.payment-number{font-size:26px}}

.scenario-label{white-space:nowrap}
.scenario-card{display:flex;flex-direction:column}.final-block{margin-top:auto}
.payment-mode-field{display:block;margin-top:14px}.payment-mode-field>span{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}.payment-mode-field select{width:100%;min-height:44px;font-size:14px}.input-wrap input[readonly]{background:#f7f7fb;color:#686b78}.cash-timing{padding-top:0}.cash-timing>span{display:block;font-size:14px;color:#646773;min-height:34px;margin-bottom:6px}.cash-timing strong{display:flex;align-items:center;min-height:40px;font-size:14px;font-weight:500}.cash-timing small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.immediate-balances{padding:20px 0}.immediate-balances>div{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}.immediate-balances span{overflow-wrap:anywhere}.immediate-balances strong{white-space:nowrap;color:var(--purple-dark);font-weight:550}

/* A complete calculation can be shared without leaving the comparison. */
.heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;flex-shrink:0}
.share-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 16px;border:1px solid var(--purple);border-radius:8px;background:var(--purple);color:white;font-size:14px;font-weight:500;white-space:nowrap}
.share-button:hover:not(:disabled){background:var(--purple-dark);border-color:var(--purple-dark)}
.share-button svg{width:18px;height:18px}
.share-notice{padding:13px 16px;margin:-7px 0 22px;border:1px solid #ded8f7;border-radius:9px;background:var(--purple-soft);color:var(--purple-dark);font-size:14px;line-height:1.6}
.share-notice.is-error{background:#fff3f3;border-color:#efcdcd;color:var(--error)}
#share-dialog{max-width:560px}
#share-dialog .icon-button{width:44px;height:44px;flex-shrink:0}
.share-description{font-size:15px;line-height:1.65;color:#60636e}
.share-summary{margin:17px 0 22px;padding:13px 15px;background:var(--purple-soft);border-radius:8px;font-size:14px;line-height:1.6;color:var(--purple-dark)}
.share-link-label{display:block;font-size:14px;font-weight:500;margin-bottom:9px}
.share-link{display:block;width:100%;min-height:46px;border:1px solid #dddfe7;border-radius:8px;background:#fafbfc;padding:12px;font-size:16px;color:#515463;text-overflow:ellipsis}
.share-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}
.share-actions .share-button{min-width:198px}
.share-actions .text-button{border:1px solid var(--line);border-radius:8px;padding:10px 16px}
.share-feedback{min-height:24px;margin-top:12px;font-size:14px;line-height:1.6;color:var(--purple-dark)}
.share-privacy{margin-top:14px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;line-height:1.65;color:#686b78}
@media(max-width:1100px){.heading-actions{flex-direction:column;align-items:flex-end;gap:9px}}
@media(max-width:740px){.page-heading{flex-wrap:wrap}.page-heading>div:first-child{width:100%}.heading-actions{width:100%;flex-direction:row;align-items:center;justify-content:space-between}.heading-actions .currency-chip{position:static;margin:0}.page-heading{padding-right:0}.share-actions .share-button{flex:1}.share-actions .text-button{flex:1}}
@media print{.heading-actions .share-button,.share-notice,#share-dialog{display:none}}

/* Housing costs stay separate from the apartment instalment. */
.budget-after{font-size:13px;line-height:1.6;color:var(--muted);margin-top:8px}
.housing-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:17px 20px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:white}
.housing-summary span{display:block;font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:6px}.housing-summary strong{font-size:17px;font-weight:550;overflow-wrap:anywhere}
.housing-month{border-top:1px solid var(--line);padding:13px 0 17px}.housing-month-title{font-size:13px;font-weight:500;line-height:1.5;color:#555665;margin-bottom:8px}.housing-month .source-line{flex-wrap:wrap;font-size:13px}.housing-month .source-line strong{font-size:13px;white-space:normal}.housing-month>strong{font-size:16px}
@media(max-width:1250px){.housing-section{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px}.housing-section h3{grid-column:1/-1}}
@media(max-width:740px){.housing-summary{grid-template-columns:1fr;gap:12px}.housing-summary>div{display:flex;justify-content:space-between;gap:12px}.housing-summary span{margin-bottom:0}.housing-summary strong{font-size:15px;white-space:nowrap}.housing-section{grid-template-columns:1fr 1fr;gap:0 20px}.housing-section .field:last-child{grid-column:1/-1}.housing-month .source-line,.housing-month .source-line strong{font-size:14px}}
@media(max-width:420px){.housing-section{display:block}}
