*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--blue-50: #eff6ff;--blue-100: #dbeafe;--blue-500: #3b82f6;--blue-600: #2563eb;--blue-700: #1d4ed8;--gray-50: #f9fafb;--gray-100: #f3f4f6;--gray-200: #e5e7eb;--gray-300: #d1d5db;--gray-400: #9ca3af;--gray-500: #6b7280;--gray-600: #4b5563;--gray-700: #374151;--gray-800: #1f2937;--gray-900: #111827;--color-pi: #3b82f6;--color-tax: #8b5cf6;--color-insurance: #06b6d4;--color-pmi: #f59e0b;--color-hoa: #ec4899;--radius: 10px;--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);--shadow-lg: 0 4px 12px rgba(0, 0, 0, .1)}html{font-size:16px;-webkit-font-smoothing:antialiased}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:var(--gray-50);color:var(--gray-800);line-height:1.5;min-height:100vh}.app-header{text-align:center;padding:2rem 1rem 1rem}.app-header h1{font-size:1.75rem;font-weight:700;color:var(--gray-900)}.subtitle{color:var(--gray-500);font-size:1rem;margin-top:.25rem}.reset-btn{margin-top:.5rem;padding:.3rem .75rem;font-size:.75rem;border:1px solid var(--gray-300);border-radius:6px;background:#fff;color:var(--gray-500);cursor:pointer;transition:all .15s}.reset-btn:hover{border-color:#dc2626;color:#dc2626}.layout{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;max-width:1200px;margin:0 auto;padding:1rem 1.5rem 3rem;align-items:start}.inputs-column,.results-column{display:flex;flex-direction:column;gap:1.25rem}.card{background:#fff;border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow)}.card h2{font-size:1.1rem;font-weight:600;color:var(--gray-900);margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:1px solid var(--gray-100)}.card h3{font-size:1rem;font-weight:600;color:var(--gray-700);margin-bottom:1rem}.field{margin-bottom:1.25rem}.field:last-child{margin-bottom:0}.field label{display:block;font-size:.875rem;font-weight:500;color:var(--gray-600);margin-bottom:.375rem}.field-hint{font-size:.75rem;color:var(--gray-400);margin-top:.25rem}.input-with-prefix,.input-with-suffix{display:flex;align-items:center;border:1px solid var(--gray-300);border-radius:8px;overflow:hidden;transition:border-color .15s,box-shadow .15s}.input-with-prefix:focus-within,.input-with-suffix:focus-within{border-color:var(--blue-500);box-shadow:0 0 0 3px #3b82f626}.prefix,.suffix{padding:.5rem .75rem;background:var(--gray-50);color:var(--gray-500);font-size:.9rem;font-weight:500;-webkit-user-select:none;user-select:none;border-right:1px solid var(--gray-200)}.suffix{border-right:none;border-left:1px solid var(--gray-200)}.input-with-prefix input,.input-with-suffix input{border:none;outline:none;padding:.5rem .75rem;font-size:.95rem;width:100%;background:transparent}select{width:100%;padding:.5rem .75rem;font-size:.95rem;border:1px solid var(--gray-300);border-radius:8px;background:#fff;color:var(--gray-800);cursor:pointer;outline:none;transition:border-color .15s,box-shadow .15s}select:focus{border-color:var(--blue-500);box-shadow:0 0 0 3px #3b82f626}input[type=range]{width:100%;margin-top:.5rem;accent-color:var(--blue-600);cursor:pointer}.range-labels{display:flex;justify-content:space-between;font-size:.75rem;color:var(--gray-400);margin-top:.125rem}.button-group{display:flex;gap:.375rem;flex-wrap:wrap}.button-group button{padding:.4rem .85rem;border:1px solid var(--gray-300);border-radius:6px;background:#fff;color:var(--gray-600);font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s}.button-group button:hover{border-color:var(--blue-500);color:var(--blue-600)}.button-group button.active{background:var(--blue-600);border-color:var(--blue-600);color:#fff}.loan-type-info{font-size:.75rem;color:var(--gray-500);margin-top:.375rem;line-height:1.4;padding:.5rem .625rem;background:var(--blue-50);border-radius:6px;border:1px solid var(--blue-100)}.loan-type-info:empty{display:none}.dp-custom-row{margin-top:.5rem}.dp-custom-row .input-with-suffix{max-width:120px}.dp-amount{font-size:.8rem;color:var(--gray-500);margin-top:.375rem}.income-recommendation{background:var(--blue-50);border:1px solid var(--blue-100);border-radius:8px;padding:.875rem 1rem;margin-bottom:1.25rem}.income-rec-header{display:flex;align-items:center;gap:.375rem;font-size:.8rem;font-weight:500;color:var(--gray-500)}.income-rec-icon{font-size:1rem}.income-rec-amount{font-size:1.5rem;font-weight:700;color:var(--gray-900);margin:.25rem 0}.income-rec-detail{font-size:.8rem;color:var(--gray-500);line-height:1.4}.income-rec-detail .rec-over{color:#dc2626;font-weight:600}.income-rec-detail .rec-under{color:#16a34a;font-weight:600}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.results-card{border-top:3px solid var(--blue-500)}.total-payment-label{font-size:.85rem;color:var(--gray-500);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.total-payment{font-size:2.75rem;font-weight:700;color:var(--gray-900);line-height:1.2;margin:.25rem 0 1.25rem}.breakdown-bar{display:flex;height:12px;border-radius:6px;overflow:hidden;background:var(--gray-100);margin-bottom:1rem}.bar-segment{transition:width .3s ease;min-width:0}.bar-pi{background:var(--color-pi)}.bar-tax{background:var(--color-tax)}.bar-insurance{background:var(--color-insurance)}.bar-pmi{background:var(--color-pmi)}.bar-hoa{background:var(--color-hoa)}.breakdown-legend{display:flex;flex-direction:column;gap:.5rem}.legend-item{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--gray-600)}.legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.legend-value{margin-left:auto;font-weight:600;color:var(--gray-800)}.verdict-badge{display:inline-block;padding:.4rem 1rem;border-radius:999px;font-size:.95rem;font-weight:600;margin-bottom:.5rem}.verdict-description{font-size:.85rem;color:var(--gray-500);margin-bottom:1rem}.dti-display{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.dti-item{text-align:center;padding:.75rem;background:var(--gray-50);border-radius:8px}.dti-label{font-size:.75rem;font-weight:600;color:var(--gray-500);text-transform:uppercase;letter-spacing:.03em}.dti-value{font-size:1.5rem;font-weight:700;color:var(--gray-900);margin:.125rem 0}.dti-sublabel{font-size:.7rem;color:var(--gray-400)}.warnings{display:flex;flex-direction:column;gap:.5rem}.warning-item{display:flex;align-items:flex-start;gap:.5rem;padding:.625rem .75rem;background:#fef3c7;border-radius:6px;font-size:.8rem;color:#92400e;line-height:1.4}.warning-icon{flex-shrink:0;font-size:.9rem}.budget-rows{display:flex;flex-direction:column;gap:.5rem}.budget-row{display:flex;justify-content:space-between;padding:.5rem 0;font-size:.9rem;border-bottom:1px solid var(--gray-100)}.budget-row:last-child{border-bottom:none}.budget-minus span:last-child{color:var(--gray-500)}.budget-remaining{font-weight:700;font-size:1rem;border-top:2px solid var(--gray-200);padding-top:.75rem;margin-top:.25rem}.budget-remaining.negative span:last-child{color:#dc2626}.budget-remaining.positive span:last-child{color:#16a34a}.budget-pretax-note{font-size:.72rem;color:var(--gray-500);margin-top:.625rem;padding:.5rem .625rem;background:var(--gray-50);border-radius:6px;line-height:1.5}.scenario-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.scenario-card{padding:.875rem;border-radius:8px;border:1px solid var(--gray-200);text-align:center;transition:border-color .15s,box-shadow .15s}.scenario-card.active{border-color:var(--blue-500);box-shadow:0 0 0 2px #3b82f633}.scenario-dp{font-size:1.1rem;font-weight:700;color:var(--gray-900);margin-bottom:.125rem}.scenario-dp-amount{font-size:.7rem;color:var(--gray-400);margin-bottom:.5rem}.scenario-payment{font-size:1rem;font-weight:600;color:var(--gray-700)}.scenario-payment-label{font-size:.65rem;color:var(--gray-400);text-transform:uppercase;letter-spacing:.03em}.scenario-verdict{display:inline-block;margin-top:.375rem;padding:.15rem .5rem;border-radius:999px;font-size:.65rem;font-weight:600}.tooltip-trigger{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;border:1px solid var(--gray-300);background:var(--gray-50);color:var(--gray-400);font-size:.7rem;font-weight:700;cursor:pointer;position:relative;vertical-align:middle;margin-left:.25rem;transition:all .15s;padding:0;line-height:1}.tooltip-trigger:hover{border-color:var(--blue-500);color:var(--blue-600);background:var(--blue-50)}.tooltip-trigger-sm{width:16px;height:16px;font-size:.6rem}.tooltip-bubble{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);background:var(--gray-800);color:#fff;padding:.625rem .875rem;border-radius:8px;font-size:.78rem;font-weight:400;line-height:1.5;width:280px;z-index:100;box-shadow:0 4px 12px #0003;pointer-events:none;animation:tooltipFadeIn .15s ease}.tooltip-bubble:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:6px solid transparent;border-top-color:var(--gray-800)}@keyframes tooltipFadeIn{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1rem}.insight-box{text-align:center;padding:.75rem;background:var(--gray-50);border-radius:8px}.insight-label{font-size:.7rem;font-weight:600;color:var(--gray-500);text-transform:uppercase;letter-spacing:.03em}.insight-value{font-size:1.25rem;font-weight:700;color:var(--gray-900);margin:.125rem 0}.insight-sublabel{font-size:.7rem;color:var(--gray-400)}.insight-bar-container{margin-bottom:1rem}.insight-bar-label{font-size:.8rem;color:var(--gray-600);margin-bottom:.375rem}.insight-bar-label span{font-weight:700}.insight-bar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--gray-100)}.insight-bar-fill{transition:width .3s ease}.insight-bar-interest{background:#ef4444}.insight-bar-principal{background:#22c55e}.insight-bar-legend{display:flex;gap:1rem;margin-top:.375rem;font-size:.75rem;color:var(--gray-500)}.insight-bar-legend span{display:flex;align-items:center;gap:.25rem}.extra-payment-input{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}.extra-payment-input label{font-size:.8rem;font-weight:500;color:var(--gray-600);white-space:nowrap}.input-compact{max-width:120px}.insight-callout{padding:.75rem 1rem;border-radius:8px;font-size:.82rem;line-height:1.5}.insight-callout-blue{background:var(--blue-50);border:1px solid var(--blue-100);color:var(--gray-700)}.insight-callout-amber{background:#fffbeb;border:1px solid #fde68a;color:#92400e}.insight-callout strong{font-weight:700}.rate-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem}.rate-card{text-align:center;padding:.625rem .375rem;border-radius:8px;border:1px solid var(--gray-200)}.rate-card.rate-current{border-color:var(--blue-500);background:var(--blue-50)}.rate-card-rate{font-size:.85rem;font-weight:700;color:var(--gray-900)}.rate-card-payment{font-size:.8rem;font-weight:600;color:var(--gray-700);margin:.125rem 0}.rate-card-diff{font-size:.7rem;font-weight:600}.rate-card-diff.rate-savings{color:#16a34a}.rate-card-diff.rate-increase{color:#dc2626}.rate-card-label{font-size:.6rem;color:var(--gray-400);text-transform:uppercase}.tax-deductions{margin-bottom:.75rem}.tax-deductions .budget-row{font-size:.8rem}.tax-cap{font-size:.65rem;color:#ca8a04;font-weight:500}.tax-comparison{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.5rem}.tax-scenario{padding:.625rem;border-radius:8px;border:1px solid var(--gray-200)}.tax-scenario.tax-benefit{border-color:#bbf7d0;background:#f0fdf4}.tax-scenario.tax-no-benefit{background:var(--gray-50)}.tax-filing{font-size:.75rem;font-weight:700;color:var(--gray-800);margin-bottom:.25rem}.tax-std{font-size:.7rem;color:var(--gray-500)}.tax-savings{font-size:.75rem;font-weight:600;color:#16a34a;margin-top:.25rem}.tax-effective{font-size:.7rem;color:var(--gray-600);margin-top:.125rem}.tax-no-save{font-size:.7rem;color:var(--gray-400);margin-top:.25rem;font-style:italic}.tax-note{font-size:.65rem;color:var(--gray-400);font-style:italic}.credit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.credit-card{text-align:center;padding:.5rem .25rem;border-radius:8px;border:1px solid var(--gray-200)}.credit-card.credit-active{border-color:var(--blue-500);background:var(--blue-50)}.credit-score{font-size:.75rem;font-weight:700;color:var(--gray-900)}.credit-tier{font-size:.6rem;color:var(--gray-400);margin-bottom:.25rem}.credit-rate{font-size:.7rem;font-weight:600;color:var(--gray-700)}.credit-payment{font-size:.75rem;font-weight:600;color:var(--gray-800)}.credit-diff{font-size:.65rem;font-weight:600}.credit-save{color:#16a34a}.credit-extra{color:#dc2626}.credit-current-label{color:var(--blue-600);font-size:.6rem}.credit-total-int{font-size:.55rem;color:var(--gray-400);margin-top:.125rem}.true-cost-note{font-size:.75rem;color:var(--gray-500);margin-top:.75rem;padding:.625rem .75rem;background:#fffbeb;border:1px solid #fde68a;border-radius:6px;line-height:1.5}.true-cost-note strong{color:var(--gray-700)}.closing-details{margin-top:.75rem}.closing-details summary{font-size:.8rem;color:var(--blue-600);cursor:pointer;font-weight:500}.closing-details summary:hover{color:var(--blue-700)}.closing-breakdown{margin-top:.5rem;display:flex;flex-direction:column;gap:.25rem}.closing-item{display:flex;justify-content:space-between;font-size:.75rem;color:var(--gray-600);padding:.25rem 0;border-bottom:1px solid var(--gray-50)}.closing-item span:last-child{font-weight:500;color:var(--gray-700)}.amort-chart{display:flex;flex-direction:column;gap:.375rem;margin-bottom:1rem}.amort-bar-row{display:flex;align-items:center;gap:.5rem}.amort-bar-year{font-size:.7rem;font-weight:600;color:var(--gray-500);width:32px;text-align:right;flex-shrink:0}.amort-bar-track{flex:1;height:8px;background:var(--gray-100);border-radius:4px;overflow:hidden}.amort-bar-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#22c55e);border-radius:4px;transition:width .3s ease}.amort-bar-pct{font-size:.7rem;font-weight:600;color:var(--gray-700);width:32px;flex-shrink:0}.amort-table-wrap{overflow-x:auto;max-height:240px;overflow-y:auto}.amort-table{width:100%;border-collapse:collapse;font-size:.75rem}.amort-table th{text-align:left;padding:.375rem .5rem;font-weight:600;color:var(--gray-500);text-transform:uppercase;letter-spacing:.03em;font-size:.65rem;border-bottom:2px solid var(--gray-200);position:sticky;top:0;background:#fff}.amort-table td{padding:.375rem .5rem;color:var(--gray-700);border-bottom:1px solid var(--gray-100)}.amort-table tr:last-child td{font-weight:600}.rvb-monthly{display:flex;flex-direction:column;gap:.375rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--gray-100)}.rvb-monthly-row{display:flex;justify-content:space-between;font-size:.85rem;color:var(--gray-600)}.rvb-monthly-row span:last-child{font-weight:600;color:var(--gray-800)}.rvb-timeline-header{font-size:.75rem;font-weight:600;color:var(--gray-500);text-transform:uppercase;letter-spacing:.03em;margin-bottom:.5rem}.rvb-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.75rem}.rvb-card{padding:.625rem;border-radius:8px;border:1px solid var(--gray-200)}.rvb-card.rvb-buy-wins{border-color:#bbf7d0;background:#f0fdf4}.rvb-card.rvb-rent-wins{border-color:#fde68a;background:#fffbeb}.rvb-years{font-size:.8rem;font-weight:700;color:var(--gray-900);margin-bottom:.375rem}.rvb-row{display:flex;justify-content:space-between;font-size:.7rem;color:var(--gray-500);margin-bottom:.125rem}.rvb-val{font-weight:600;color:var(--gray-700)}.rvb-winner{font-size:.7rem;font-weight:600;margin-top:.375rem;padding-top:.375rem;border-top:1px solid var(--gray-100)}.rvb-buy-wins .rvb-winner{color:#16a34a}.rvb-rent-wins .rvb-winner{color:#ca8a04}.rvb-assumptions{font-size:.65rem;color:var(--gray-400);font-style:italic}.afford-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.afford-card{text-align:center;padding:.875rem .5rem;border-radius:8px;border:1px solid var(--gray-200)}.afford-label{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.7rem;font-weight:600;margin-bottom:.25rem}.afford-sublabel{font-size:.65rem;color:var(--gray-400);margin-bottom:.5rem}.afford-price{font-size:1.15rem;font-weight:700;color:var(--gray-900)}.afford-payment{font-size:.75rem;color:var(--gray-500);margin-bottom:.375rem}.afford-over{font-size:.7rem;color:#dc2626;font-weight:500}.afford-under{font-size:.7rem;color:#16a34a;font-weight:500}.readiness-badge{display:inline-block;padding:.35rem .875rem;border-radius:999px;font-size:.85rem;font-weight:600;margin-bottom:.75rem}.readiness-checks{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.readiness-item{display:flex;gap:.5rem;align-items:flex-start}.readiness-icon{flex-shrink:0;width:20px;text-align:center;font-size:.85rem}.readiness-label{font-size:.8rem;font-weight:600;color:var(--gray-800)}.readiness-detail{font-size:.7rem;color:var(--gray-500);line-height:1.4}.readiness-docs{font-size:.7rem;color:var(--gray-500);padding:.5rem .625rem;background:var(--gray-50);border-radius:6px;line-height:1.5}.readiness-docs strong{color:var(--gray-700)}.header-actions{display:flex;gap:.5rem;justify-content:center;margin-top:.5rem;flex-wrap:wrap}.header-btn{padding:.3rem .75rem;font-size:.75rem;border:1px solid var(--gray-300);border-radius:6px;background:#fff;color:var(--gray-500);cursor:pointer;transition:all .15s}.header-btn:hover{border-color:var(--blue-500);color:var(--blue-600)}.header-btn-primary{background:var(--blue-600);border-color:var(--blue-600);color:#fff}.header-btn-primary:hover{background:var(--blue-700);border-color:var(--blue-700);color:#fff}.rate-reference{font-size:.7rem;color:var(--gray-400);margin-top:.25rem;line-height:1.4}.rate-reference a{color:var(--blue-600);text-decoration:none}.rate-reference a:hover{text-decoration:underline}.save-scenario-row{margin-bottom:.75rem}.save-scenario-btn{width:100%;padding:.5rem;font-size:.8rem;font-weight:600;border:2px dashed var(--blue-500);border-radius:8px;background:var(--blue-50);color:var(--blue-600);cursor:pointer;transition:all .15s}.save-scenario-btn:hover{background:var(--blue-100);border-color:var(--blue-600)}.no-scenarios{font-size:.8rem;color:var(--gray-400);text-align:center;padding:.5rem}.saved-scenario{padding:.625rem;border:1px solid var(--gray-200);border-radius:8px;margin-bottom:.5rem}.saved-scenario.saved-active{border-color:var(--blue-500);background:var(--blue-50)}.saved-scenario-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}.saved-scenario-name{font-size:.8rem;font-weight:600;color:var(--gray-800)}.saved-scenario-actions{display:flex;gap:.25rem}.scenario-load-btn,.scenario-delete-btn{padding:.15rem .5rem;font-size:.7rem;border:1px solid var(--gray-300);border-radius:4px;background:#fff;cursor:pointer;transition:all .15s}.scenario-load-btn{color:var(--blue-600)}.scenario-load-btn:hover{background:var(--blue-50);border-color:var(--blue-500)}.scenario-delete-btn{color:#dc2626}.scenario-delete-btn:hover{background:#fee2e2;border-color:#dc2626}.saved-scenario-details{display:flex;gap:.5rem;font-size:.7rem;color:var(--gray-500)}.comparison-empty{font-size:.8rem;color:var(--gray-400);text-align:center;padding:.5rem}.compare-table{width:100%;border-collapse:collapse;font-size:.75rem;margin-top:.75rem}.compare-table th{text-align:center;padding:.375rem .5rem;font-weight:600;color:var(--blue-600);background:var(--blue-50);font-size:.7rem}.compare-table td{padding:.375rem .5rem;text-align:center;color:var(--gray-700);border-bottom:1px solid var(--gray-100)}.compare-table .compare-label{text-align:left;font-weight:500;color:var(--gray-500);font-size:.7rem}.biweekly-compare{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:.75rem}.biweekly-option{text-align:center;padding:.75rem;border-radius:8px;border:1px solid var(--gray-200)}.biweekly-option.biweekly-highlight{border-color:#bbf7d0;background:#f0fdf4}.biweekly-label{font-size:.7rem;font-weight:600;color:var(--gray-500);text-transform:uppercase;letter-spacing:.03em;margin-bottom:.25rem}.biweekly-amount{font-size:1.15rem;font-weight:700;color:var(--gray-900)}.biweekly-detail{font-size:.7rem;color:var(--gray-400)}.arm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:.5rem}.arm-card{padding:.75rem .5rem;border-radius:8px;border:1px solid var(--gray-200);text-align:center}.arm-card.arm-fixed{border-color:var(--blue-500);background:var(--blue-50)}.arm-name{font-size:.8rem;font-weight:700;color:var(--gray-900);margin-bottom:.25rem}.arm-payment{font-size:1rem;font-weight:700;color:var(--gray-800)}.arm-detail{font-size:.7rem;color:var(--gray-500);margin-top:.125rem}.arm-detail.arm-savings{color:#16a34a;font-weight:600}.arm-after{margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--gray-100)}.arm-after-label{font-size:.65rem;font-weight:600;color:var(--gray-500);text-transform:uppercase;margin-bottom:.25rem}.arm-rate-row{display:flex;justify-content:space-between;font-size:.7rem;color:var(--gray-600);padding:.125rem 0}.arm-rate-row span:last-child{font-weight:600}.arm-total-label{font-size:.6rem;color:var(--gray-400);text-transform:uppercase;margin-top:.5rem}.arm-total{font-size:.8rem;font-weight:700;color:var(--gray-700)}.arm-note{font-size:.65rem;color:var(--gray-400);font-style:italic;line-height:1.5}.neighborhood-note{font-size:.8rem;color:var(--gray-600);margin-bottom:.75rem;padding:.5rem .625rem;background:var(--blue-50);border-radius:6px}.neighborhood-total{font-size:.8rem;color:var(--gray-600);margin-top:.75rem;padding:.625rem .75rem;background:#fffbeb;border:1px solid #fde68a;border-radius:6px}.mistake-item{padding:.625rem .75rem;margin-bottom:.5rem;border-radius:0 6px 6px 0;background:var(--gray-50)}.mistake-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.mistake-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;font-size:.7rem;flex-shrink:0}.mistake-title{font-size:.8rem;font-weight:600;color:var(--gray-800)}.mistake-detail{font-size:.75rem;color:var(--gray-600);line-height:1.4;margin-bottom:.25rem}.mistake-tip{font-size:.7rem;color:var(--gray-500);line-height:1.4}.timeline{position:relative;padding-left:2rem}.timeline:before{content:"";position:absolute;left:13px;top:0;bottom:0;width:2px;background:var(--blue-100)}.timeline-step{position:relative;margin-bottom:1.25rem}.timeline-step:last-child{margin-bottom:0}.timeline-marker{position:absolute;left:-2rem;top:0;width:26px;height:26px;border-radius:50%;background:var(--blue-600);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;z-index:1}.timeline-content{padding-bottom:.25rem}.timeline-title{font-size:.85rem;font-weight:600;color:var(--gray-800);margin-bottom:.25rem}.timeline-detail{font-size:.75rem;color:var(--gray-500);line-height:1.5}.timeline-time{font-size:.65rem;font-weight:600;color:var(--blue-600);margin-top:.25rem}.glossary-details summary{font-size:.8rem;color:var(--blue-600);cursor:pointer;font-weight:500;padding:.25rem 0}.glossary-details summary:hover{color:var(--blue-700)}.glossary-grid{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.glossary-term{padding:.5rem 0;border-bottom:1px solid var(--gray-100)}.glossary-term:last-child{border-bottom:none}.glossary-term dt{font-size:.8rem;font-weight:600;color:var(--gray-800);margin-bottom:.125rem}.glossary-term dd{font-size:.75rem;color:var(--gray-500);line-height:1.5}.changes-list{display:flex;flex-direction:column;gap:.375rem}.change-item{display:flex;align-items:center;gap:.5rem;padding:.375rem .5rem;background:var(--gray-50);border-radius:6px;font-size:.8rem}.change-label{color:var(--gray-600);font-weight:500;min-width:100px}.change-arrow{font-size:.65rem}.change-values{color:var(--gray-800);font-weight:600}.changes-note{font-size:.65rem;color:var(--gray-400);margin-top:.375rem;font-style:italic}.toggle-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.875rem;font-weight:500;color:var(--gray-600)}.toggle-label input[type=checkbox]{width:18px;height:18px;accent-color:var(--blue-600);cursor:pointer}.ep-intro{margin-bottom:1.25rem;padding:.75rem .875rem;background:var(--blue-50);border:1px solid var(--blue-100);border-radius:8px;font-size:.8rem;color:var(--gray-600);line-height:1.6}.ep-intro p{margin-bottom:.5rem}.ep-intro p:last-child{margin-bottom:0}.ep-tax-note{margin-top:.75rem;padding:.625rem .75rem;background:var(--gray-50);border-radius:6px;border:1px solid var(--gray-200)}.ep-tax-header{font-size:.8rem;font-weight:600;color:var(--gray-700);margin-bottom:.25rem}.ep-tax-detail{font-size:.75rem;color:var(--gray-500);line-height:1.5}.ep-tax-scenarios{margin-top:.5rem;display:flex;flex-direction:column;gap:.25rem}.ep-tax-item{display:flex;justify-content:space-between;font-size:.75rem;color:var(--gray-600);padding:.25rem 0;border-bottom:1px solid var(--gray-100)}.ep-tax-item:last-child{border-bottom:none}.ep-tax-item span:last-child{font-weight:500}.ep-cashflow-note{margin-top:.75rem;padding:.5rem .75rem;border-radius:6px;font-size:.8rem;line-height:1.5}.ep-cashflow-note.positive{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}.ep-cashflow-note.negative{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.svk-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.svk-card{padding:.875rem;border-radius:8px;border:1px solid var(--gray-200)}.svk-card.svk-recommended{border-color:#bbf7d0;background:#f0fdf4}.svk-label{font-size:.85rem;font-weight:700;color:var(--gray-900);margin-bottom:.25rem}.svk-badge{display:inline-block;font-size:.6rem;font-weight:700;color:#16a34a;background:#dcfce7;padding:.1rem .4rem;border-radius:999px;text-transform:uppercase;letter-spacing:.03em;margin-bottom:.5rem}.svk-stat{display:flex;justify-content:space-between;font-size:.75rem;color:var(--gray-600);padding:.25rem 0;border-bottom:1px solid var(--gray-100)}.svk-stat:last-of-type{border-bottom:none}.svk-stat span:last-child{font-weight:600;color:var(--gray-800)}.svk-credit{color:#16a34a!important}.svk-verdict{display:inline-block;margin-top:.5rem;padding:.2rem .6rem;border-radius:999px;font-size:.7rem;font-weight:600}.proj-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.75rem}.proj-card{padding:.625rem;border-radius:8px;border:1px solid var(--gray-200)}.proj-card.proj-keep-wins{border-color:#bbf7d0;background:#f0fdf4}.proj-card.proj-sell-wins{border-color:var(--blue-100);background:var(--blue-50)}.proj-years{font-size:.8rem;font-weight:700;color:var(--gray-900);margin-bottom:.375rem}.proj-row{display:flex;justify-content:space-between;font-size:.7rem;color:var(--gray-500);margin-bottom:.125rem}.proj-val{font-weight:600;color:var(--gray-700)}.proj-winner{font-size:.7rem;font-weight:600;margin-top:.375rem;padding-top:.375rem;border-top:1px solid var(--gray-100)}.proj-keep-wins .proj-winner{color:#16a34a}.proj-sell-wins .proj-winner{color:var(--blue-600)}.proj-assumptions{font-size:.65rem;color:var(--gray-400);font-style:italic}.rate-advantage-callout{padding:.75rem .875rem;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;font-size:.82rem;line-height:1.6;color:var(--gray-700)}.rate-advantage-headline{font-size:1rem;font-weight:700;color:#92400e;margin-bottom:.375rem}.rate-advantage-stats{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:.75rem 0}.rate-advantage-stat{text-align:center;padding:.5rem;background:#fff9;border-radius:6px}.rate-advantage-label{font-size:.7rem;color:var(--gray-500);display:block}.rate-advantage-value{font-size:1.1rem;font-weight:700;color:#16a34a;display:block}.rate-advantage-note{font-size:.75rem;color:var(--gray-500);margin-top:.375rem;font-style:italic}.cash-impact-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:.75rem}.cash-impact-card{text-align:center;padding:.875rem;border-radius:8px;border:1px solid var(--gray-200)}.cash-impact-card.cash-impact-winner{border-color:#bbf7d0;background:#f0fdf4}.cash-impact-label{font-size:.7rem;font-weight:700;color:var(--gray-500);text-transform:uppercase;letter-spacing:.03em;margin-bottom:.25rem}.cash-impact-amount{font-size:1.5rem;font-weight:700;color:var(--gray-900)}.cash-impact-amount span{font-size:.8rem;font-weight:500;color:var(--gray-500)}.cash-impact-detail{font-size:.7rem;color:var(--gray-400);margin-top:.25rem;line-height:1.4}.cash-impact-diff{padding:.625rem .75rem;border-radius:6px;font-size:.82rem;line-height:1.5}.cash-impact-diff-sell{background:var(--blue-50);border:1px solid var(--blue-100);color:var(--gray-700)}.cash-impact-diff-keep{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}.break-even-highlight{text-align:center;padding:1rem;background:var(--blue-50);border:1px solid var(--blue-100);border-radius:8px;margin-bottom:.75rem}.break-even-highlight.break-even-no-cross{background:#f0fdf4;border-color:#bbf7d0}.break-even-year{font-size:1.5rem;font-weight:700;color:var(--blue-600);margin-bottom:.375rem}.break-even-no-cross .break-even-year{color:#16a34a}.break-even-detail{font-size:.82rem;color:var(--gray-600);line-height:1.6}.break-even-note{font-size:.7rem;color:var(--gray-400);font-style:italic;line-height:1.5}.equity-comparison{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:.75rem}.equity-box{padding:.875rem;border-radius:8px;border:1px solid var(--gray-200)}.equity-box-locked{border-color:#fde68a;background:#fffbeb}.equity-box-liquid{border-color:#bbf7d0;background:#f0fdf4}.equity-box-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;margin-bottom:.25rem}.equity-box-locked .equity-box-label{color:#92400e}.equity-box-liquid .equity-box-label{color:#166534}.equity-box-amount{font-size:1.25rem;font-weight:700;color:var(--gray-900);margin-bottom:.375rem}.equity-box-detail{font-size:.75rem;color:var(--gray-600);line-height:1.5}.equity-insight{padding:.625rem .75rem;background:var(--gray-50);border-radius:6px;font-size:.78rem;color:var(--gray-600);line-height:1.6}.landlord-checklist{display:flex;flex-direction:column;gap:.75rem;margin-bottom:.75rem}.landlord-item{display:flex;gap:.75rem;align-items:flex-start;padding:.625rem 0;border-bottom:1px solid var(--gray-100)}.landlord-item:last-child{border-bottom:none}.landlord-icon{font-size:1.25rem;flex-shrink:0;width:28px;text-align:center}.landlord-title{font-size:.82rem;font-weight:600;color:var(--gray-800);margin-bottom:.125rem}.landlord-detail{font-size:.75rem;color:var(--gray-500);line-height:1.5}.landlord-verdict{padding:.625rem .75rem;background:var(--blue-50);border:1px solid var(--blue-100);border-radius:6px;font-size:.78rem;color:var(--gray-600);line-height:1.6}.stress-intro{font-size:.82rem;color:var(--gray-600);margin-bottom:.75rem;line-height:1.5}.stress-grid{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.stress-card{padding:.625rem .75rem;border-radius:6px;border-left:3px solid #dc2626;background:#fef2f2}.stress-title{font-size:.8rem;font-weight:600;color:var(--gray-800)}.stress-impact{font-size:1rem;font-weight:700;color:#dc2626;margin:.125rem 0}.stress-detail{font-size:.72rem;color:var(--gray-600);line-height:1.5}.stress-note{font-size:.72rem;color:var(--gray-500);font-style:italic;line-height:1.5;padding:.5rem .625rem;background:var(--gray-50);border-radius:6px}.landlord-tax-grid{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.landlord-tax-item{padding:.625rem .75rem;border-radius:6px;border-left:3px solid var(--gray-300)}.landlord-tax-good{border-left-color:#16a34a;background:#f0fdf4}.landlord-tax-warn{border-left-color:#dc2626;background:#fef2f2}.landlord-tax-neutral{border-left-color:var(--blue-500);background:var(--blue-50)}.landlord-tax-label{font-size:.8rem;font-weight:600;color:var(--gray-800);margin-bottom:.25rem}.landlord-tax-detail{font-size:.72rem;color:var(--gray-600);line-height:1.6}.landlord-tax-note{font-size:.65rem;color:var(--gray-400);font-style:italic;line-height:1.5}[data-theme=dark]{--gray-50: #111827;--gray-100: #1f2937;--gray-200: #374151;--gray-300: #4b5563;--gray-400: #9ca3af;--gray-500: #d1d5db;--gray-600: #e5e7eb;--gray-700: #f3f4f6;--gray-800: #f9fafb;--gray-900: #ffffff;--blue-50: #1e293b;--blue-100: #1e3a5f}[data-theme=dark] body{background:#0f172a}[data-theme=dark] .card{background:#1e293b}[data-theme=dark] select{background:#1e293b;color:#f9fafb}[data-theme=dark] .input-with-prefix input,[data-theme=dark] .input-with-suffix input{color:#f9fafb}[data-theme=dark] .tooltip-bubble{background:#f3f4f6;color:#111827}[data-theme=dark] .tooltip-bubble:after{border-top-color:#f3f4f6}[data-theme=dark] .header-btn,[data-theme=dark] .reset-btn{background:#1e293b;color:#d1d5db;border-color:#4b5563}[data-theme=dark] .amort-table th{background:#1e293b}[data-theme=dark] .save-scenario-btn{background:#1e3a5f}[data-theme=dark] .scenario-load-btn,[data-theme=dark] .scenario-delete-btn{background:#1e293b;border-color:#4b5563}[data-theme=dark] .warning-item{background:#422006;color:#fde68a}[data-theme=dark] .insight-callout-amber,[data-theme=dark] .true-cost-note,[data-theme=dark] .neighborhood-total{background:#422006;color:#fde68a;border-color:#854d0e}[data-theme=dark] .rvb-card.rvb-buy-wins,[data-theme=dark] .tax-scenario.tax-benefit,[data-theme=dark] .biweekly-option.biweekly-highlight{background:#052e16;border-color:#166534}[data-theme=dark] .rvb-card.rvb-rent-wins{background:#422006;border-color:#854d0e}[data-theme=dark] .ep-cashflow-note.positive,[data-theme=dark] .svk-card.svk-recommended,[data-theme=dark] .proj-card.proj-keep-wins{background:#052e16;border-color:#166534}[data-theme=dark] .ep-cashflow-note.negative{background:#450a0a;border-color:#991b1b;color:#fca5a5}[data-theme=dark] .proj-card.proj-sell-wins{background:#1e3a5f;border-color:#1e3a5f}[data-theme=dark] .rate-advantage-callout{background:#422006;border-color:#854d0e;color:#fde68a}[data-theme=dark] .rate-advantage-stat{background:#0003}[data-theme=dark] .cash-impact-card.cash-impact-winner{background:#052e16;border-color:#166534}[data-theme=dark] .cash-impact-diff-sell{background:#1e3a5f;border-color:#1e3a5f}[data-theme=dark] .cash-impact-diff-keep{background:#052e16;border-color:#166534;color:#86efac}[data-theme=dark] .break-even-highlight{background:#1e3a5f;border-color:#1e3a5f}[data-theme=dark] .break-even-highlight.break-even-no-cross{background:#052e16;border-color:#166534}[data-theme=dark] .equity-box-locked{background:#422006;border-color:#854d0e}[data-theme=dark] .equity-box-liquid{background:#052e16;border-color:#166534}[data-theme=dark] .stress-card{background:#450a0a;border-left-color:#991b1b}[data-theme=dark] .landlord-tax-good{background:#052e16;border-left-color:#166534}[data-theme=dark] .landlord-tax-warn{background:#450a0a;border-left-color:#991b1b}[data-theme=dark] .landlord-tax-neutral{background:#1e3a5f;border-left-color:#2563eb}[data-theme=dark] .insight-callout-green{background:#052e16;border-color:#166534}[data-theme=dark] .rate-alert-input{background:#1e293b;color:#f9fafb;border-color:#4b5563}[data-theme=dark] .rate-alert-confirmation{background:#052e16;border-color:#166534;color:#86efac}[data-theme=dark] .sponsored-placeholder{border-color:#4b5563}[data-theme=dark] .button-group button{background:#1e293b}[data-theme=dark] .input-with-prefix,[data-theme=dark] .input-with-suffix{border-color:#4b5563}[data-theme=dark] .prefix,[data-theme=dark] .suffix{background:#111827;border-color:#374151}@media print{body{background:#fff!important;font-size:11pt}.app-header .header-actions,.inputs-column,.tooltip-trigger,.save-scenario-row,.save-scenario-btn,.scenario-load-btn,.scenario-delete-btn,.extra-payment-input,.glossary-details,.reset-btn,.cta-block,[id^=cta-],#emailCaptureCard,.sponsored-placeholder{display:none!important}.layout{display:block;max-width:100%;padding:0}.results-column{position:static!important}.card{box-shadow:none;border:1px solid #ddd;page-break-inside:avoid;margin-bottom:.5rem}.results-card{border-top:2px solid var(--blue-500)}.total-payment{font-size:2rem}.app-header{padding:.5rem;border-bottom:2px solid #333;margin-bottom:1rem}.app-header h1{font-size:1.5rem}}.cta-block{display:flex;align-items:center;gap:1rem;margin-top:.75rem}.cta-content{flex:1;min-width:0}.cta-title{font-size:.82rem;font-weight:700;color:var(--gray-800);margin-bottom:.25rem}.cta-body{font-size:.75rem;color:var(--gray-600);line-height:1.5}.cta-link{flex-shrink:0;display:inline-block;padding:.4rem .875rem;border-radius:6px;font-size:.78rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:all .15s}.insight-callout-blue .cta-link{background:var(--blue-600);color:#fff}.insight-callout-blue .cta-link:hover{background:var(--blue-700)}.insight-callout-green .cta-link{background:#16a34a;color:#fff}.insight-callout-green .cta-link:hover{background:#15803d}.insight-callout-amber .cta-link{background:#d97706;color:#fff}.insight-callout-amber .cta-link:hover{background:#b45309}.insight-callout-green{background:#f0fdf4;border:1px solid #bbf7d0;color:var(--gray-700)}.rate-alert-description{font-size:.82rem;color:var(--gray-500);margin-bottom:.75rem;line-height:1.5}.rate-alert-form{display:flex;flex-direction:column;gap:.375rem}.rate-alert-row{display:flex;gap:.5rem}.rate-alert-input{flex:1;padding:.5rem .75rem;font-size:.9rem;border:1px solid var(--gray-300);border-radius:8px;outline:none;background:transparent;color:var(--gray-800);transition:border-color .15s,box-shadow .15s}.rate-alert-input:focus{border-color:var(--blue-500);box-shadow:0 0 0 3px #3b82f626}.rate-alert-btn{padding:.5rem 1.25rem;font-size:.85rem;font-weight:600;background:var(--blue-600);color:#fff;border:none;border-radius:8px;cursor:pointer;transition:background .15s;white-space:nowrap}.rate-alert-btn:hover{background:var(--blue-700)}.rate-alert-hint{font-size:.65rem;color:var(--gray-400)}.rate-alert-confirmation{padding:.75rem 1rem;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;font-size:.82rem;color:#166534;line-height:1.5}.sponsored-placeholder{padding:1rem;border:1px dashed var(--gray-300);border-radius:var(--radius);text-align:center}.sponsored-label{font-size:.6rem;font-weight:600;color:var(--gray-400);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.sponsored-content{font-size:.82rem;color:var(--gray-600)}.disclaimer{font-size:.75rem;color:var(--gray-400);text-align:center;padding:.5rem 0;line-height:1.5}@media(max-width:860px){.layout{grid-template-columns:1fr;padding:1rem}.results-column{position:static}.total-payment{font-size:2.25rem}}@media(max-width:480px){.app-header h1{font-size:1.35rem}.card{padding:1.25rem}.button-group button{padding:.35rem .65rem;font-size:.8rem}.dti-display,.insight-grid{grid-template-columns:1fr}.rate-grid{grid-template-columns:repeat(3,1fr)}.credit-grid{grid-template-columns:repeat(2,1fr)}.afford-grid,.rvb-grid,.tax-comparison,.arm-grid,.biweekly-compare,.svk-grid,.proj-grid,.cash-impact-grid,.equity-comparison,.rate-advantage-stats{grid-template-columns:1fr}.cta-block{flex-direction:column;align-items:flex-start}.rate-alert-row{flex-direction:column}.header-actions{flex-direction:column;align-items:center}#comparisonTable{overflow-x:auto}.compare-table{min-width:400px}}
