/* Mortgage-specific layout: other real-estate tools retain the shared three-column workspace. */
.tn-recalc-workspace.tn-mortgage-workspace{width:100%}
.tn-mortgage-workspace .tn-recalc-workspace__grid{grid-template-columns:minmax(0,2fr) minmax(0,3fr);height:auto;min-height:0;align-items:stretch}
.tn-mortgage-workspace .tn-recalc-panel--input{grid-column:1;grid-row:1}
.tn-mortgage-workspace .tn-recalc-panel--controls{grid-column:2;grid-row:1}
.tn-mortgage-workspace .tn-recalc-panel--result{grid-column:1/-1;grid-row:2;min-width:0}
.tn-mortgage-workspace .tn-recalc-panel__body,.tn-mortgage-workspace .tn-recalc-panel__settings,.tn-mortgage-workspace .tn-recalc-panel--controls .tn-recalc-panel__body{overflow:visible;max-height:none}
.tn-mortgage-workspace .tn-recalc-panel__settings{flex:initial}
.tn-mortgage-workspace .tn-recalc-panel__actions{margin-top:14px}
.tn-mortgage-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.tn-mortgage-summary__item{min-width:0;padding:12px;border:1px solid var(--tn-recalc-edge,#8c8c8c);background:var(--tn-recalc-field,#272727)}
.tn-mortgage-summary__label{display:block;margin-bottom:6px;color:var(--tn-muted,#d1d1d1);font-size:.8rem}
.tn-mortgage-summary__value{display:block;font-variant-numeric:tabular-nums;font-size:clamp(1rem,1.7vw,1.4rem);font-weight:700;overflow-wrap:anywhere}
.tn-mortgage-summary__unit{font-size:.75em;font-weight:400}
.tn-mortgage-result-note{font-size:.85rem;line-height:1.6;margin:4px 0 12px}
.tn-mortgage-table-heading{font-size:1rem;font-weight:650;margin:16px 0 8px}
.tn-mortgage-table-hint{font-size:.76rem;color:var(--tn-muted,#d1d1d1);margin:0 0 8px}
.tn-mortgage-table-scroll{max-width:100%;min-width:0;overflow:auto;max-height:580px;border:1px solid var(--tn-recalc-edge,#8c8c8c);scrollbar-width:thin;overscroll-behavior:contain}
.tn-mortgage-table-scroll--annual{max-height:390px}
.tn-mortgage-table{width:100%;min-width:930px;margin:0;border-collapse:separate;border-spacing:0;color:inherit;font-size:.82rem;line-height:1.45;font-variant-numeric:tabular-nums}
.tn-mortgage-table--annual{min-width:640px}
.tn-mortgage-table th,.tn-mortgage-table td{padding:9px 10px;border:0;border-bottom:1px solid #555;white-space:nowrap}
.tn-mortgage-table thead th{position:sticky;top:0;z-index:2;background:#252f30;color:#f0f0f0;text-align:right;font-weight:650}
.tn-mortgage-table thead th:first-child,.tn-mortgage-table tbody th{text-align:left}
.tn-mortgage-table tbody th{font-weight:550}
.tn-mortgage-table tbody td{text-align:right}
.tn-mortgage-table tbody tr:nth-child(even){background:rgba(255,255,255,.035)}
.tn-mortgage-table tbody tr.tn-mortgage-table__bonus-row{background:rgba(183,215,212,.1)}
.tn-mortgage-table tbody tr:hover{background:rgba(183,215,212,.17)}
.tn-mortgage-table tbody tr:last-child>*{border-bottom:0}
.tn-mortgage-table tbody td.tn-mortgage-table__payment{font-weight:700}
@media(max-width:900px){.tn-mortgage-workspace .tn-recalc-workspace__grid{grid-template-columns:minmax(0,1fr)}.tn-mortgage-workspace .tn-recalc-panel--input,.tn-mortgage-workspace .tn-recalc-panel--controls,.tn-mortgage-workspace .tn-recalc-panel--result{grid-column:1;grid-row:auto}.tn-mortgage-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.tn-mortgage-table-scroll{max-height:500px}.tn-mortgage-table{font-size:.79rem}}
@media(max-width:480px){.tn-mortgage-summary__item{padding:9px}.tn-mortgage-summary__value{font-size:1rem}.tn-mortgage-table th,.tn-mortgage-table td{padding:8px 9px}}
