*{box-sizing:border-box}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;margin:0;color:#0f172a;background:#fff;min-width:996px;width:996px}
body.savedproperties-mode{min-width:880px;width:880px}
.app{width:996px;min-height:560px;padding:12px}
.app.savedproperties-mode:not(.fullscreen-mode):not(.sidebar-mode){width:880px;margin:0 auto}
.app.househack-expanded{width:1200px}
.app.cashout-expanded{width:1200px}
.app.cashout-expanded .inputs{display:none}
.app.cashout-expanded .views{padding-left:0}
.app.cashout-expanded .content{gap:0}
.app.comps-mode .inputs{display:none}
.app.comps-mode .views{padding-left:0}
.app.fullscreen-mode{width:1300px;min-height:820px}
.app.sellerfinance-mode .inputs{display:none}
.app.sellerfinance-mode .views{padding-left:0}
.app.sellerfinance-mode .inputs-toggle{display:none!important}
.app.sellertradeoffs-mode .inputs{display:none}
.app.sellertradeoffs-mode .views{padding-left:0}
.app.sellertradeoffs-mode .inputs-toggle{display:none!important}
.app.basiccalc-mode .inputs{display:none}
.app.basiccalc-mode .views{padding-left:0}
.app.basiccalc-mode .inputs-toggle{display:none!important}
.app.savedeals-mode .inputs,.app.savedproperties-mode .inputs{display:none}
.app.savedeals-mode .views,.app.savedproperties-mode .views{padding-left:0}
.app.savedeals-mode .inputs-toggle,.app.savedproperties-mode .inputs-toggle{display:none!important}
.app.novations-mode .inputs{display:none}
.app.novations-mode .views{padding-left:0}
.app.novations-mode .inputs-toggle{display:none!important}
.app.subjectto-mode .inputs{display:none}
.app.subjectto-mode .views{padding-left:0}
.app.subjectto-mode .inputs-toggle{display:none!important}
.app.marketinsights-mode .inputs{display:none}
.app.marketinsights-mode .views{padding-left:0}
.app.marketinsights-mode .inputs-toggle{display:none!important}
.app.mao-mode .inputs{display:none}
.app.mao-mode .views{padding-left:0}
.app.mao-mode .inputs-toggle{display:none!important}
.app.asisoffer-mode .inputs{display:none}
.app.asisoffer-mode .views{padding-left:0}
.app.asisoffer-mode .inputs-toggle{display:none!important}
.app.hudcalc-mode .inputs{display:none}
.app.hudcalc-mode .views{padding-left:0}
.app.hudcalc-mode .inputs-toggle{display:none!important}
.app.settings-mode .inputs{display:none}
.app.settings-mode .views{padding-left:0!important}
.app.settings-mode .inputs-toggle{display:none!important}
.app.fullscreen-mode .content{gap:16px}
body.househack-expanded,body.cashout-expanded{min-width:1200px;width:1200px}
body.fullscreen-mode{min-width:1300px;width:1300px}
body.sidebar-mode{min-width:460px;width:460px}
.app.sidebar-mode{width:460px}
.app.sidebar-mode .content{flex-direction:column}
.app.sidebar-mode .inputs{width:100%;flex:auto;border-right:none;border-bottom:1px solid #e5e7eb;padding-right:0;padding-bottom:12px}
.app.sidebar-mode .views{padding-left:0}
.tabs{display:flex;gap:8px;border-bottom:1px solid #e5e7eb;margin-bottom:12px;align-items:center;flex-wrap:wrap;position:sticky;top:0;background:#fff;z-index:30;padding-bottom:8px}
.tab-strip{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;width:100%;overflow:visible;padding-bottom:4px}
.tab-strip-main{display:flex;gap:8px;flex-wrap:nowrap;align-items:center;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.tab-strip-extras{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;justify-content:flex-start;margin-left:auto}
.tab{background:none;border:none;padding:10px 14px;border-bottom:2px solid transparent;cursor:pointer;color:#334155;font-weight:600;white-space:nowrap}
.tab.active{border-color:#2563eb;color:#111827}
.app.rehab-mode .inputs{display:none}
.app.rehab-mode .views{padding-left:0}
.app.rehab-mode .inputs-toggle{display:none!important}
.sidebar-mode .tabs{flex-direction:column;align-items:stretch}
.sidebar-mode .tab-strip{flex-direction:column;align-items:stretch;gap:10px;min-width:0}
.sidebar-mode .tab-strip-main{width:100%;flex-wrap:nowrap;gap:6px}
.sidebar-mode .tab-strip-main .tab{flex:1 1 0;padding:8px 6px;font-size:13px;text-align:center;white-space:normal}
.sidebar-mode .tab-strip-extras{margin-left:0;width:100%;justify-content:flex-start;flex-wrap:nowrap;gap:6px}
.sidebar-mode .tab-strip-extras>*{flex:0 0 auto}
.sidebar-mode .header-right{align-self:flex-start;margin-left:0}
.view-mode-toggle{display:flex;align-items:center;gap:8px;margin-left:8px;flex-wrap:wrap}
.sidebar-mode .view-mode-toggle{margin-left:0}
.view-mode-toggle label{font-size:12px;color:#475569;font-weight:600}
.view-mode-select{border:1px solid #cbd5e1;border-radius:10px;padding:6px 22px 6px 10px;font-size:13px;font-weight:600;color:#0f172a;background:#fff url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%237885a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") no-repeat right 8px center/12px;}
.view-mode-select:focus{outline:2px solid #2563eb;outline-offset:2px}
.header-right{display:flex;align-items:center}
.settings-btn{width:36px;height:36px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s,box-shadow .2s;flex-shrink:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.settings-btn:hover{background:#f8fafc;border-color:#94a3b8;box-shadow:0 2px 4px rgba(15,23,42,.08)}
.settings-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.settings-btn.active{border-color:#2563eb;background:#eff6ff}
.settings-icon{font-size:18px;line-height:1}
.content{display:flex;gap:16px}
.inputs{width:320px;flex:0 0 320px;border-right:1px solid #e5e7eb;padding-right:12px}
.inputs-toggle{padding:6px 12px;border:none;border-radius:999px;font-weight:700;font-size:12px;cursor:pointer;box-shadow:0 2px 6px rgba(15,23,42,.2)}
.inputs-toggle.collapse{background:#9333ea;color:#fff;display:inline-flex;align-items:center;gap:6px}
.inputs-toggle.expand{display:none;background:#0f172a;color:#fff;align-items:center;gap:6px}
.inputs-toggle.co-toggle{margin-left:8px}
.app.inputs-collapsed .inputs{display:none}
.app.inputs-collapsed #expandInputsBtn{display:inline-flex}
.app.inputs-collapsed .views{padding-left:0}
.field{margin-bottom:14px}
.field.two-col{position:relative}
.field label{display:block;font-weight:700;margin-bottom:6px}
.home-price-row{display:flex;align-items:flex-end;gap:8px}
.home-price-row .prefixed{flex:1}
.mini-update{padding:8px 14px;border:none;border-radius:20px;background:#2563eb;color:#fff;font-weight:700;font-size:13px;cursor:pointer;box-shadow:0 2px 6px rgba(37,99,235,.25)}
.prefixed,.suffixed{display:flex;align-items:center;border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;background:#fff}
.prefixed span:first-child,.suffixed span:last-child{color:#64748b}
.prefixed input,.suffixed input{border:none;outline:none;width:100%;font-size:14px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.switcher{position:absolute;right:0;top:0}
.switch{border:1px solid #cbd5e1;border-bottom:none;border-radius:6px 6px 0 0;padding:4px 8px;margin-left:4px;background:#f8fafc;cursor:pointer}
.switch.active{background:#e0f2fe;border-color:#38bdf8}
.primary{width:100%;padding:12px 14px;background:#2563eb;border:none;border-radius:10px;color:#fff;font-weight:700;cursor:pointer}
.reset-tab-btn{padding:8px 14px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#b91c1c;font-weight:600;cursor:pointer;white-space:nowrap;position:relative}
.reset-menu{position:relative;display:inline-block}
.reset-menu .reset-tab-btn{display:inline-flex;align-items:center;gap:6px;padding-right:32px}
.reset-label{pointer-events:none}
.reset-caret{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:20px;height:20px;border-radius:6px;background:#f8fafc;color:#475569;font-size:10px;display:flex;align-items:center;justify-content:center;pointer-events:auto;cursor:pointer}
.reset-menu.open .reset-tab-btn{border-color:#475569}
.reset-dropdown{position:absolute;top:calc(100% + 4px);right:0;min-width:150px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.15);padding:6px;z-index:50}
.reset-dropdown[hidden]{display:none}
.reset-dropdown-item{width:100%;text-align:left;padding:8px 12px;border-radius:8px;border:none;background:none;font-weight:600;color:#0f172a;cursor:pointer}
.reset-dropdown-item:hover{background:#f1f5f9}
.views{flex:1;padding-left:4px;min-width:0}
.view#view-amortization{width:min(100%,640px);margin:0 auto}
.view{display:none}
.view.active{display:block}
.view-header{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.view-header h2{margin:0;font-size:20px;color:#0f172a}
.settings-view .view-header{justify-content:center}
.view-switch-btn{padding:8px 16px;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:#2563eb;font-weight:600;cursor:pointer;white-space:nowrap;box-shadow:0 2px 6px rgba(15,23,42,.08);transition:box-shadow .2s,border-color .2s}
.view-switch-btn:hover{border-color:#94a3b8;box-shadow:0 4px 10px rgba(15,23,42,.12)}
.view-switch-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.househack-wide{min-width:0;width:min(100%,1040px);margin:0 auto}
.hh-cost-row{display:flex;gap:16px;align-items:stretch}
.hh-note-bubble{flex:0 0 auto;margin-left:auto;min-width:0;background:#fff7ed;border:1px solid #fdba74;border-radius:999px;padding:4px 8px;box-shadow:0 6px 14px rgba(15,23,42,.12);display:flex;flex-direction:column;gap:6px;align-self:flex-start;transition:border-radius .2s,box-shadow .2s,max-width .2s,padding .2s;max-width:260px}
.hh-note-preview{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#c2410c;white-space:nowrap}
.hh-note-mini{margin:0;font-size:13px;font-weight:700;color:#c2410c}
.hh-note-toggle{border:none;background:#f97316;color:#fff;width:26px;height:26px;border-radius:50%;font-weight:800;cursor:pointer;box-shadow:0 2px 4px rgba(249,115,22,.4);display:flex;align-items:center;justify-content:center;line-height:1}
.hh-note-bubble.expanded{border-radius:14px;padding:10px 12px;max-width:320px}
.hh-note-content{font-size:11px;color:#7c2d12;line-height:1.4;padding-top:6px;border-top:1px solid rgba(253,186,116,.6)}
.hh-note-content ul{padding-left:16px;margin:0 0 6px;list-style-position:outside}
.hh-note-content li{margin-bottom:4px}
.hh-note-extra{margin:0;font-size:11px;font-weight:600;color:#0f172a}
@media (max-width:640px){
  .hh-cost-row{flex-wrap:wrap}
  .hh-note-bubble{width:100%;max-width:none;margin-left:0;border-radius:14px}
  .hh-note-preview{justify-content:space-between;white-space:normal}
}
.summary{display:flex;align-items:center;gap:16px}
.total{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:12px 16px;min-width:200px}
.total .label{color:#64748b;font-size:12px}
.total .value{font-size:28px;font-weight:800}
.pie-wrap{position:relative;display:flex;align-items:center;justify-content:center}
.pie-wrap canvas{cursor:pointer}
.pie-tooltip{position:absolute;bottom:0;left:50%;transform:translate(-50%,100%);background:#0f172a;color:#fff;padding:6px 10px;border-radius:8px;font-size:12px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}
.pie-wrap.show-tooltip .pie-tooltip{opacity:1}
.legend{list-style:none;padding:0;margin-top:8px;max-width:420px}
.legend li{display:flex;justify-content:space-between;padding:10px;border-bottom:1px solid #e5e7eb}
.legend .left{display:flex;align-items:center;gap:10px}
.legend .dot{width:10px;height:10px;border-radius:50%}
.rent-quick-check{margin-top:12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;max-width:420px;font-size:13px}
.rent-quick-input{display:flex;align-items:center;gap:12px;justify-content:space-between}
.rent-quick-input label{font-weight:600;color:#0f172a;font-size:13px}
.rent-quick-input .prefixed.mini{flex:0 0 150px;margin-left:auto}
.rent-quick-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:10px}
.rent-quick-metric{border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;background:#fff}
.rent-quick-metric .metric-header{display:flex;align-items:center;justify-content:space-between;gap:4px}
.rent-quick-edit-btn{border:none;background:transparent;color:#94a3b8;cursor:pointer;padding:2px;font-size:14px;line-height:1;border-radius:6px}
.rent-quick-edit-btn:hover,.rent-quick-edit-btn:focus-visible{color:#2563eb}
.rent-quick-metric .metric-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.rent-quick-metric .metric-value{font-size:20px;font-weight:700;color:#0f172a;margin-top:2px}
.rent-quick-metric .metric-note{font-size:11px;color:#475569;margin-top:2px;line-height:1.3}
.rent-quick-metric.editing{border-color:#2563eb}
.rent-dscr-editor{margin-top:10px;padding:8px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;display:flex;flex-direction:column;gap:6px;opacity:0;visibility:hidden;max-height:0;overflow:hidden;transition:max-height .2s ease,opacity .2s ease}
.rent-dscr-editor.visible{opacity:1;visibility:visible;max-height:160px}
.rent-dscr-editor label{font-size:12px;font-weight:700;color:#0f172a}
.rent-dscr-editor input[type=range]{width:100%}
.rent-dscr-target{font-size:12px;font-weight:600;color:#0f172a}
.rent-quick-metric.positive{border-color:#34d399}
.rent-quick-metric.negative{border-color:#f87171}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:8px}
.stats.amort-stats{grid-template-columns:repeat(4,1fr)}
.amort-chart-wrap{position:relative;margin:0 auto 8px;max-width:480px;padding-top:8px}
.amort-chart-wrap canvas{display:block;margin:0 auto}
.amort-jump-floating{position:absolute;top:10px;left:0;transform:translateX(-80px);display:flex;flex-direction:column;gap:6px;align-items:flex-start;z-index:2}
.amort-jump-toggle-btn{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:6px 10px;font-weight:600;font-size:12px;color:#334155;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s;min-width:96px}
.amort-jump-toggle-btn:hover{background:#f8fafc;border-color:#94a3b8}
.amort-jump-toggle-btn[aria-expanded="true"]{background:#2563eb;color:#fff;border-color:#1d4ed8;box-shadow:0 2px 6px rgba(37,99,235,.2)}
.amort-jump-asof{font-size:12px;font-weight:600;color:#475569}
.amort-jump-panel{border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;padding:10px;box-shadow:0 4px 18px rgba(15,23,42,.07);min-width:220px;margin-left:0}
.amort-jump-panel[hidden]{display:none}
.amort-jump-panel-inner{display:flex;flex-direction:column;gap:6px}
.amort-jump-panel label{font-size:12px;font-weight:600;color:#475569}
.amort-jump-panel input{border:1px solid #cbd5e1;border-radius:10px;padding:7px 10px;font-size:13px;font-weight:600;color:#0f172a}
.amort-jump-panel input:focus{outline:2px solid #2563eb;outline-offset:2px}
.amort-jump-panel .sep{color:#94a3b8;font-size:12px;font-weight:600;text-align:center}
.amort-jump-btn{border:1px solid #2563eb;background:#2563eb;color:#fff;font-weight:600;padding:8px 16px;border-radius:10px;cursor:pointer;transition:background .2s,border-color .2s}
.amort-jump-btn:hover{background:#1d4ed8;border-color:#1d4ed8}
.stat{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:10px}
.stat .label{font-size:12px;color:#64748b}
.stat .value{font-weight:800;font-size:18px}
#amortChart{display:block;margin:8px auto}
#amortSlider{width:100%;margin-top:6px}
.legend-grid{display:grid;grid-template-columns:10px auto 10px auto 10px auto;gap:8px;align-items:center;margin-top:6px}
.dot.blue{background:#3b82f6}
.dot.green{background:#22c55e}
.dot.navy{background:#1e3a8a}
@media (max-width:640px){
  .amort-chart-wrap{padding-left:0;max-width:100%}
  .amort-jump-floating{position:static;transform:none;margin-bottom:8px}
  .loan-term-row{flex-wrap:wrap}
  .loan-term-row .amort-start-date-field{flex:1 1 160px}
}
.loan-term-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:nowrap}
.loan-term-row .loan-term-input{flex:1 1 0}
.loan-term-row .amort-start-date-field{flex:0 0 200px}
.amort-start-date-field{display:none}
.amort-start-date-field.visible{display:block}
.hh-header h2{margin:0}
.hh-header p{margin:6px 0 12px;color:#475569}
.hh-layout{display:flex;gap:16px;flex-wrap:wrap}
.househack-wide .hh-layout{flex-wrap:nowrap;gap:16px}
.hh-panel{flex:1 1 420px;min-width:280px;max-width:460px;border:1px solid #e5e7eb;border-radius:12px;padding:14px;background:#f8fafc}
.hh-panel.primary{flex:0 0 360px;max-width:360px}
.hh-panel.secondary{flex:1 1 520px;max-width:520px}
.hh-primary-top{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px;flex-wrap:nowrap}
.hh-primary-inputs{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:8px}
.hh-primary-inputs .field{margin-bottom:0}
.hh-fha-card{flex:0 0 140px;min-width:140px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:10px;display:flex;flex-direction:column;gap:4px;box-shadow:0 4px 10px rgba(15,23,42,.05);align-self:flex-start}
.hh-fha-status-row{display:flex;align-items:center;gap:6px}
.hh-fha-card strong{font-size:20px;line-height:1.1;color:#0f172a}
.hh-fha-label{font-size:10px;font-weight:700;color:#334155;text-transform:uppercase;letter-spacing:.05em}
.hh-fha-detail{margin:0;font-size:11px;color:#475569}
.hh-fha-note{margin:4px 0 0;font-size:11px;font-weight:600;color:#1d4ed8}
.hh-fha-info{margin-top:4px}
.hh-fha-info-btn{width:20px;height:20px;font-size:11px}
.hh-fha-card.pass{background:#dcfce7;border-color:#86efac}
.hh-fha-card.pass strong,
.hh-fha-card.pass .hh-fha-note{color:#166534}
.hh-fha-card.fail{background:#fee2e2;border-color:#fecaca}
.hh-fha-card.fail strong,
.hh-fha-card.fail .hh-fha-note{color:#b91c1c}
@media (max-width:520px){
  .hh-primary-top{flex-wrap:wrap}
  .hh-fha-card{flex:1 1 180px;min-width:180px}
}
.househack-wide .hh-panel,
.househack-wide .hh-panel label,
.househack-wide .hh-panel select,
.househack-wide .hh-panel input,
.househack-wide .hh-panel span,
.househack-wide .hh-panel .hh-unit-row .label{color:#0f172a}
.househack-wide .hh-panel input,
.househack-wide .hh-panel select{background:#fff}
.hh-units{border:1px solid #d1d5db;border-radius:10px;margin-bottom:14px}
.hh-unit-row{display:grid;grid-template-columns:80px repeat(3,1fr);gap:8px;padding:8px;border-bottom:1px solid #e2e8f0;align-items:center}
.hh-unit-row:last-child{border-bottom:none}
.hh-unit-row .label{font-weight:600;color:#475569}
.hh-unit-row input{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:6px}
.hh-unit-row .cell{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#64748b}
.hh-section{margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}
.hh-section + .hh-section{margin-top:18px;padding-top:24px;border-top:8px solid #fff;box-shadow:0 -2px 0 0 #dbeafe inset,0 2px 0 0 #dbeafe inset}
.hh-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.hh-section-header h3{margin:0}
.hh-section-header p{margin:4px 0 12px;color:#475569;font-size:14px}
.hh-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-top:6px}
.hh-panel.secondary .hh-stat-grid.hh-occupy-grid,
.hh-panel.secondary .hh-stat-grid.hh-refi-cashflow-grid,
.hh-panel.secondary .hh-stat-grid.hh-refi-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hh-stat-grid.compact{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.househack-wide .hh-panel .hh-stat-grid,
.househack-wide .hh-panel .hh-stat-grid.compact{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
@media (max-width:1100px){
  .househack-wide .hh-stat-grid,
  .househack-wide .hh-stat-grid.compact{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
}
.hh-panel.secondary .hh-stat-grid,
.hh-panel.secondary .hh-stat-grid.compact{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.hh-panel.secondary .hh-stat-grid.compact.hh-refi-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hh-stat{background:#fff;border:1px solid #dbeafe;border-radius:12px;padding:10px}
.hh-stat.split{border-color:#dbeafe}
.hh-stat.split .split-values{display:flex;justify-content:space-between;gap:12px;font-size:12px}
.hh-stat.split .split-values strong{display:block;font-size:18px;margin-top:2px;color:#0f172a}
.hh-panel.secondary .hh-stat{padding:8px;border-radius:10px}
.hh-panel.secondary .hh-stat .label{font-size:11px}
.hh-panel.secondary .hh-stat .value{font-size:16px}
.hh-panel.secondary .hh-stat.split .split-values strong{font-size:16px}
.hh-panel.secondary .hh-detail-grid .detail{padding:8px;border-radius:10px}
.hh-panel.secondary .hh-detail-grid .detail .value{font-size:16px}
.hh-panel.secondary .hh-refi-grid .field label{font-size:12px}
.hh-panel.secondary .hh-refi-grid .field input{padding:6px;font-size:13px}
.hh-stat.split .split-values strong.positive{color:#166534}
.hh-stat.split .split-values strong.negative{color:#b91c1c}
.hh-stat .label{font-size:12px;color:#64748b;margin-bottom:4px}
.hh-stat .value{font-weight:800;font-size:18px}
.hh-stat.accent{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.hh-stat.accent .label{color:#e0f2fe}
.hh-stat.accent .value{color:#fff}
.hh-outflow{transition:background .2s,color .2s,border-color .2s}
.hh-outflow{background:#fff;border-color:#dbeafe}
.hh-outflow .label{color:#0f172a}
.hh-state-card{transition:background .2s,color .2s,border-color .2s}
.hh-state-card.positive{background:#dcfce7;border-color:#bbf7d0}
.hh-state-card.positive .label,.hh-state-card.positive .value{color:#166534}
.hh-state-card.negative{background:#fee2e2;border-color:#fecaca}
.hh-state-card.negative .label,.hh-state-card.negative .value{color:#991b1b}
.hh-info-btn{margin-left:6px;width:18px;height:18px;border:1px solid rgba(15,23,42,.3);border-radius:50%;background:#fff;color:#0f172a;font-size:11px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.hh-info-panel{margin-top:8px;padding:8px;border-radius:8px;background:#e0f2fe;border:1px solid #bfdbfe;font-size:12px;color:#0f172a}
.hh-info-panel .formula-values{font-weight:700;margin-bottom:4px}
.hh-info-panel .formula-label{display:block;color:#475569;font-style:italic}
.hh-refi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:12px}
.hh-refi-grid .field{margin-bottom:0}
.hh-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:12px 0}
.hh-detail-grid .detail{border:1px solid #e2e8f0;border-radius:12px;padding:10px;background:#fff}
.hh-detail-grid .detail.detail-wide{grid-column:1/-1}
.hh-detail-grid .value{font-size:18px;font-weight:700;margin:4px 0}
.calc-note{margin:0;color:#475569;font-size:13px}
.calc-pair{margin-top:6px}
.calc-desc{margin:0;font-size:12px;font-weight:600;color:#0f172a}
.calc-note.negative{color:#b91c1c;font-weight:600}
.calc-note span.negative{color:#b91c1c;font-weight:700}
.hh-break-even{margin-top:16px;border:1px solid #e2e8f0;border-radius:12px;padding:16px;background:#fff}
.hh-break-even-header h4{margin:0;font-size:15px;color:#0f172a}
.hh-break-even-header p{margin:4px 0 0;color:#475569;font-size:12px}
.hh-break-even-grid{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.hh-break-even-card{border:1px solid #dbeafe;border-radius:10px;padding:12px;background:#f8fafc;display:flex;flex-direction:column;gap:6px}
.hh-break-even-card span{font-size:12px;color:#475569;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.hh-break-even-value-row{display:flex;align-items:flex-end;gap:4px}
.hh-break-even-card strong{font-size:24px;color:#0f172a}
.hh-break-even-card strong.positive{color:#166534}
.hh-break-even-card strong.negative{color:#b91c1c}
.hh-break-even-math{margin:0;font-size:12px;color:#475569}
.hh-break-even-hint{font-size:11px;color:#94a3b8}
.hh-break-even-card small{font-size:12px;color:#475569}
.hh-break-even-note{margin-top:10px;color:#475569;font-size:12px}
.saved-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.saved-header-content{flex:1 1 auto}
.saved-header h2{margin:0}
.saved-header p{margin:6px 0 16px;color:#475569}
.saved-header-controls{display:flex;align-items:center;gap:8px}
.saved-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;margin-bottom:16px}
.saved-form .field{flex:1;min-width:220px;margin-bottom:0}
.saved-form .primary{flex:0 0 auto;width:auto;padding:10px 18px}
.saved-list{display:grid;grid-template-columns:1fr;gap:12px}
.saved-list.grid-view{grid-template-columns:repeat(2,1fr)}
.saved-card{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:8px}
.saved-card.active{border-color:#2563eb;box-shadow:0 0 0 1px rgba(37,99,235,.15)}
.saved-card h4{margin:0;color:#0f172a}
.saved-card .address{color:#475569;font-size:14px;margin:0}
.saved-card .meta{font-size:12px;color:#64748b;display:flex;gap:12px;flex-wrap:wrap}
.saved-card .actions{display:flex;gap:8px;flex-wrap:wrap}
.ghost-btn{padding:6px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font-weight:600;cursor:pointer;font-size:13px}
.ghost-btn.tiny{padding:4px 10px;font-size:11px}
.ghost-btn.load{border-color:#2563eb;color:#2563eb}
.ghost-btn.danger{border-color:#fecaca;color:#b91c1c}
.saved-empty{padding:20px;border:1px dashed #cbd5e1;border-radius:12px;color:#475569;text-align:center;background:#f8fafc}
.saved-properties-view{width:100%;max-width:900px;margin:0 auto;padding:0 12px 48px}
.saved-properties-view.active{display:block}
.app.savedproperties-mode:not(.fullscreen-mode):not(.sidebar-mode) .saved-properties-view{width:100%;max-width:820px;margin-left:0;margin-right:auto;padding:0 12px 48px}
.sp-shell{display:flex;flex-direction:column;gap:24px;position:relative}
.sp-save-reminder{position:fixed;top:74px;right:32px;background:#f97316;color:#fff;border:none;border-radius:999px;padding:10px 18px;font-weight:700;font-size:13px;box-shadow:0 10px 25px rgba(15,23,42,.2);cursor:pointer;z-index:120;display:inline-flex;align-items:center;gap:6px}
.app.sidebar-mode .sp-save-reminder{right:16px;top:62px}
.sp-save-reminder::after{content:"💾";font-size:14px}
.sp-save-reminder[hidden]{display:none}
.app:not(.savedproperties-mode) .sp-save-reminder{display:none!important}
.sp-app-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:18px 24px;border:1px solid #e4e7ec;border-radius:28px;background:#fff}
.sp-brand{display:flex;align-items:center;gap:12px}
.sp-logo{font-family:"DM Serif Display",serif;font-size:28px;color:#0f172a}
.sp-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#eef2ff;color:#312e81;font-size:12px;font-weight:600}
.sp-chip.count{background:#edf2ff;color:#1d4ed8}
.sp-chip.muted{background:#f1f5f9;color:#475569}
.sp-chip.accent{background:#dbeafe;color:#1d4ed8}
.sp-chip.positive{background:#dcfce7;color:#166534}
.sp-chip.negative{background:#fee2e2;color:#b91c1c}
.sp-header-actions{display:flex;gap:12px;flex-wrap:wrap}
.sp-header-actions .ghost-btn,.sp-header-actions .primary{border-radius:12px;font-weight:600;padding:10px 18px}
.sp-add-btn{background:#dbeafe;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:12px;font-weight:600;padding:10px 18px;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.sp-add-btn:hover{background:#c7d2fe;color:#1e3a8a;box-shadow:0 4px 12px rgba(59,130,246,.25)}
.sp-add-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.sp-stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.app.sidebar-mode .sp-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.sp-stat-card{border:1px solid #e4e7ec;border-radius:24px;padding:18px;background:#fff;display:flex;flex-direction:column;gap:6px;min-height:130px}
.sp-stat-card .label{margin:0;color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.sp-stat-card strong{font-size:28px;color:#0f172a}
.sp-stat-card span{font-size:12px;color:#94a3b8}
.sp-toolbar{display:flex;flex-direction:column;gap:12px}
.sp-library-panel{display:flex;flex-direction:column;gap:16px}
.sp-detail-panel{border:1px solid #e4e7ec;border-radius:28px;background:#fff;padding:28px;display:none;flex-direction:column;gap:24px}
.sp-shell.detail-mode #spLibraryPanel{display:none}
.sp-shell.detail-mode .sp-detail-panel{display:flex}
.sp-detail-header{display:flex;flex-wrap:wrap;align-items:center;gap:16px;justify-content:space-between}
.sp-detail-meta h3{margin:0;font-size:22px;color:#0f172a}
.sp-detail-meta p{margin:2px 0 0;color:#475569;font-size:14px}
.sp-detail-back{border-radius:999px;border:1px solid #e4e7ec;padding:6px 14px;font-size:12px;font-weight:600;color:#475569;background:#fff;cursor:pointer;box-shadow:0 2px 4px rgba(15,23,42,.08)}
.sp-filter-chips{display:flex;flex-wrap:wrap;gap:8px}
.sp-filter-chip{padding:8px 14px;border-radius:999px;border:1px solid #e4e7ec;font-size:13px;font-weight:600;background:#fff;color:#475569;cursor:pointer;transition:all .15s ease}
.sp-filter-chip.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.sp-toolbar-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.sp-compare-btn{border:1px solid #e4e7ec;border-radius:12px;padding:8px 14px;font-size:12px;font-weight:600;background:#fff;color:#475569;cursor:pointer}
.sp-view-toggle{display:inline-flex;background:#f1f5f9;border-radius:14px;padding:4px}
.sp-view-btn{border:none;background:transparent;padding:6px 16px;border-radius:10px;font-size:13px;font-weight:600;color:#475569;cursor:pointer}
.sp-view-btn.active{background:#fff;box-shadow:0 2px 6px rgba(15,23,42,.12);color:#0f172a}
.sp-sort{display:flex;align-items:center;gap:8px;font-size:12px;color:#475569}
.sp-sort select{border:1px solid #e4e7ec;border-radius:12px;padding:6px 32px 6px 12px;font-size:13px;color:#0f172a;background:#fff;appearance:none;background-image:url('data:image/svg+xml,%3Csvg width=\"10\" height=\"6\" viewBox=\"0 0 10 6\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cpath d=\"M1 1L5 5L9 1\" stroke=\"%2364748B\" stroke-width=\"1.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/%3E%3C/svg%3E');background-repeat:no-repeat;background-position:calc(100% - 10px) 50%}
.sp-search{position:relative;flex:1;min-width:220px}
.sp-search input{width:100%;border:1px solid #e4e7ec;border-radius:12px;padding:10px 14px;font-size:13px;color:#0f172a;background:#fff}
.sp-library-section{border:1px solid #e4e7ec;border-radius:28px;background:#fff;padding:24px}
.sp-saved-empty{padding:24px;border:1px dashed #cbd5e1;border-radius:16px;color:#475569;text-align:center;background:#f8fafc}
.sp-saved-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.sp-saved-list.list-view{display:flex;flex-direction:column}
.sp-saved-list.list-view .sp-saved-card{flex-direction:row;align-items:flex-start;gap:20px}
.sp-saved-list.list-view .sp-card-actions{flex-direction:column;align-items:flex-start}
.sp-saved-card{border:1px solid #e4e7ec;border-radius:24px;padding:18px;background:#fdfdfd;display:flex;flex-direction:column;gap:12px;transition:box-shadow .15s ease,border-color .15s ease}
.sp-saved-card:hover{border-color:#cbd5e1;box-shadow:0 6px 16px rgba(15,23,42,.08)}
.sp-saved-card.active{border-color:#2563eb;box-shadow:0 0 0 1px rgba(37,99,235,.2)}
.sp-card-hero{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e2e8f0;padding-bottom:12px;margin-bottom:12px}
.sp-card-badges{display:flex;flex-wrap:wrap;gap:6px}
.sp-card-badges span{font-size:11px;font-weight:600;color:#475569;background:#f1f5f9;padding:4px 8px;border-radius:999px}
.sp-card-emoji{font-size:32px}
.sp-card-body{flex:1 1 auto;display:flex;flex-direction:column;gap:8px;min-width:0}
.sp-card-body h4{margin:0;color:#0f172a;font-size:16px}
.sp-card-address{margin:0;color:#475569;font-size:13px}
.sp-card-clickable{cursor:pointer}
.sp-card-clickable:focus-visible{outline:2px solid #94a3b8;outline-offset:4px}
.sp-card-tags{display:flex;flex-wrap:wrap;gap:6px}
.sp-card-tags span{background:#e2e8f0;color:#334155;font-size:11px;font-weight:600;padding:4px 8px;border-radius:999px}
.sp-card-details{display:flex;gap:10px;font-size:12px;color:#475569;flex-wrap:wrap}
.sp-card-metrics{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:#0f172a}
.sp-card-metrics span{font-weight:700}
.sp-card-meta{font-size:11px;color:#94a3b8;display:flex;gap:12px;flex-wrap:wrap}
.sp-card-actions{display:flex;flex-wrap:wrap;gap:8px}
.sp-metrics-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sp-metric-edit-btn{display:flex;align-items:center;gap:4px}
.sp-metric-quick-edit{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px}
.sp-metric-quick-edit.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.sp-metrics-body .sp-metric-quick-edit,.sp-metrics-body .sp-inline-input{display:none}
.sp-metrics-body.editing .sp-metric-quick-edit{display:flex}
.sp-metrics-body.editing .sp-inline-input{display:flex}
.sp-metrics-body:not(.editing) .sp-inline-input{display:none!important}
.sp-metrics-body.editing .sp-inline-input{display:flex!important}
.sp-inline-field{display:flex;flex-direction:column;gap:4px;flex:1 1 140px;min-width:120px}
.prefixed.mini,.suffixed.mini{display:flex;align-items:center;border:1px solid #e4e7ec;border-radius:10px;background:#fff;padding:4px 8px}
.prefixed.mini span,.suffixed.mini span{font-size:12px;color:#94a3b8;font-weight:600}
.prefixed.mini input,.suffixed.mini input,.sp-inline-input input{border:none;flex:1;font-size:13px;padding:4px;background:transparent}
.prefixed.mini input:focus,.suffixed.mini input:focus,.sp-inline-input input:focus{outline:none}
.sp-inline-input{margin-top:8px;align-items:center;gap:6px}
.sp-accordion-stack{display:flex;flex-direction:column;gap:16px}
.sp-accordion{border:1px solid #e4e7ec;border-radius:24px;background:#fff;overflow:hidden}
.sp-accordion[open]{box-shadow:0 8px 24px rgba(15,23,42,.05)}
.sp-accordion summary{list-style:none;padding:18px 24px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;cursor:pointer;position:relative;padding-right:64px}
.sp-accordion summary::-webkit-details-marker{display:none}
.sp-accordion summary::after{content:'⬇️';font-size:20px;position:absolute;top:50%;right:24px;transform:translateY(-50%);pointer-events:none}
.sp-accordion[open] summary::after{content:'⬆️'}
.sp-accordion-title{font-size:18px;font-weight:700;color:#0f172a}
.saved-properties-view .sp-accordion-title-row{display:flex;align-items:center;gap:10px;width:100%}
.saved-properties-view .sp-accordion-title-row .sp-metrics-edit-btn{margin-left:auto}
.saved-properties-view .sp-accordion-description{margin:6px 0 0;color:#475569;font-size:14px}
.sp-status-chip,.sp-summary-chip{display:inline-flex;align-items:center;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:600}
.sp-status-chip{background:#fee2e2;color:#b91c1c}
.sp-summary-chip{background:#e0e7ff;color:#1e1b4b}
.sp-accordion-body{padding:0 24px 24px;display:flex;flex-direction:column;gap:18px}
.sp-strategy-inline{margin-top:20px;border:1px solid #e4e7ec;border-radius:24px;background:#fdfdfd}
.sp-strategy-inline summary{list-style:none;padding:16px 20px;cursor:pointer;display:flex}
.sp-strategy-inline summary::-webkit-details-marker{display:none}
.sp-strategy-inline summary::after{content:'⬇️';margin-left:auto;font-size:18px}
.sp-strategy-inline[open] summary::after{content:'⬆️'}
.sp-strategy-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-right:24px}
.sp-strategy-inline .sp-field-grid{padding:0 20px 20px}
.sp-strategy-grid .field.is-hidden{display:none}
.sp-history-panel{margin-top:20px;border:1px solid #e4e7ec;border-radius:20px;background:#f8fafc;padding:18px;display:flex;flex-direction:column;gap:16px}
.sp-strategy-inline .sp-history-panel{margin:20px}
.sp-history-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sp-history-header .label{margin:0;font-size:13px;font-weight:700;color:#0f172a;text-transform:uppercase;letter-spacing:.08em}
.sp-history-header small{display:block;margin-top:2px;color:#64748b}
.sp-history-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end}
.sp-history-field{display:flex;flex-direction:column;gap:6px}
.sp-history-field .prefixed,.sp-history-field .suffixed{width:100%}
.sp-history-field-notes{grid-column:span 2}
.sp-history-form button{justify-self:flex-start}
.sp-history-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.sp-history-item{display:flex;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e4e7ec;border-radius:16px;padding:12px;align-items:flex-start}
.sp-history-meta{display:flex;flex-direction:column;gap:2px}
.sp-history-badge{font-size:11px;font-weight:700;text-transform:uppercase;color:#475569;letter-spacing:.08em}
.sp-history-amount{font-weight:700;color:#0f172a}
.sp-history-note{margin:0;color:#64748b;font-size:12px}
.sp-history-time{font-size:11px;color:#94a3b8}
.sp-history-empty{margin:0;color:#94a3b8;font-size:13px;padding:12px;border:1px dashed #cbd5e1;border-radius:12px;text-align:center;background:#fff}
.sp-history-remove{border:none;background:none;color:#b91c1c;cursor:pointer;font-size:12px;font-weight:600}
.sp-dscr-hint{display:block;margin-top:6px;font-size:12px;color:#b45309;font-weight:600}
.field.needs-attention input{border-color:#f97316;box-shadow:0 0 0 1px rgba(249,115,22,.2)}
.sp-intel-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.sp-intel-status{margin:0;font-size:12px;color:#475569;font-weight:600}
.sp-intel-status.success{color:#166534}
.sp-intel-status.error{color:#b91c1c}
.sp-comps-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:16px}
.sp-intel-grid>.sp-comps-preview{grid-column:1/-1;margin-top:0}
.sp-comps-map{border:1px solid #e4e7ec;border-radius:18px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:12px}
.sp-comps-map-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;font-size:13px;font-weight:600;color:#475569}
.sp-comps-map-header small{font-size:11px;color:#94a3b8;font-weight:500;display:block;margin-top:2px}
.sp-comps-map-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sp-map-toggle{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#475569;font-weight:500}
.sp-map-toggle input{width:16px;height:16px}
.sp-mini-map{position:relative;height:200px;border:1px dashed #dbeafe;border-radius:16px;background:linear-gradient(135deg,#eef2ff 0%,#f8fafc 100%);overflow:hidden;display:flex;align-items:center;justify-content:center}
.sp-mini-map iframe{width:100%;height:100%;border:none;border-radius:inherit}
.sp-mini-map img{width:100%;height:100%;object-fit:cover;display:block}
.sp-mini-map-empty{font-size:13px;color:#475569;text-align:center;padding:12px}
.sp-mini-map-details{font-size:12px;color:#475569;margin:0 0 4px}
.sp-mini-map-note{margin:0;font-size:12px;color:#94a3b8}
.sp-mini-map-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sp-mini-map-actions{display:flex;justify-content:flex-end;gap:8px}
.sp-mini-map-actions .ghost-btn{font-size:12px}
.sp-hud-chart-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;border:1px solid #e4e7ec;border-radius:18px;padding:16px;background:#fff;grid-column:1/-1}
.sp-hud-trend-card,.sp-hud-table-card{border:1px solid #e4e7ec;border-radius:16px;padding:14px;background:#f8fafc;display:flex;flex-direction:column;gap:10px}
.sp-hud-trend-card{position:relative}
.sp-hud-chart-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.sp-hud-chart-header .label{display:block;font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.sp-hud-chart-header strong{color:#0f172a;font-size:15px}
.sp-hud-chip{font-size:12px;font-weight:600;color:#1e1b4b;background:#e0e7ff;border-radius:999px;padding:4px 12px}
.sp-hud-highlight{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sp-hud-highlight strong{font-size:32px;color:#0f172a;line-height:1.1}
.sp-hud-delta{font-size:13px;font-weight:600;color:#475569;background:#e2e8f0;border-radius:999px;padding:4px 12px}
.sp-hud-delta.positive{color:#166534;background:#dcfce7}
.sp-hud-delta.negative{color:#b91c1c;background:#fee2e2}
.sp-hud-chart-note{margin:0;font-size:12px;color:#64748b}
.sp-hud-table-wrap{overflow:auto}
.sp-hud-table{width:100%;border-collapse:collapse;font-size:13px}
.sp-hud-table th,.sp-hud-table td{padding:6px 8px;text-align:left;border-bottom:1px solid #e4e7ec;white-space:nowrap}
.sp-hud-table th{font-size:11px;color:#475569;text-transform:uppercase;letter-spacing:.04em}
.sp-hud-table td{font-weight:600;color:#0f172a}
.sp-hud-table td.positive{color:#166534}
.sp-hud-table td.negative{color:#b91c1c}
.sp-hud-table tr.active{background:#eef2ff}
.sp-chart-tooltip{position:absolute;z-index:5;background:#0f172a;color:#fff;padding:8px 10px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.4;box-shadow:0 4px 12px rgba(15,23,42,.25);pointer-events:none;max-width:200px}
.sp-field-grid{display:grid;grid-template-columns:1fr;gap:12px}
.sp-field-grid.two-col{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.sp-address-field .sp-address-input{display:flex;gap:8px;align-items:center}
.sp-address-field input{flex:1}
.sp-address-field button{height:40px}
.sp-address-load-btn{padding:10px 16px;border-radius:12px;font-weight:600;min-width:78px}
.sp-address-load-btn[disabled],.sp-address-load-btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.sp-facts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.sp-field-grid small{color:#94a3b8;font-size:11px;margin-top:4px;display:block}
.sp-notes-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.sp-photo-controls{display:flex;gap:10px;flex-wrap:wrap}
.sp-photo-controls input{flex:1;min-width:200px}
.sp-photo-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.sp-photo-placeholder{margin:0;color:#94a3b8;font-size:12px}
.sp-photo-item{position:relative;width:120px;height:84px;border-radius:16px;overflow:hidden;background:#e2e8f0}
.sp-photo-item img{width:100%;height:100%;object-fit:cover}
.sp-photo-item button{position:absolute;top:6px;right:6px;background:rgba(15,23,42,.8);color:#fff;border:none;border-radius:999px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;font-size:12px;cursor:pointer}
.sp-metric-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
@media (min-width:900px){
.sp-metric-breakdown{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.sp-metric-panel{border:1px solid #e4e7ec;border-radius:18px;padding:16px;background:#f9fafb;display:flex;flex-direction:column;gap:8px}
.sp-bar-label{margin:0;font-size:12px;color:#475569;font-weight:600}
.sp-metric-bar{height:16px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.sp-metric-bar-fill{height:100%;width:var(--bar-progress,0%);transition:width .3s ease}
.sp-metric-bar-fill.income{background:#16a34a}
.sp-metric-bar-fill.expense{background:#dc2626}
.sp-metric-bar-fill.mortgage{background:#fdba74}
.sp-bar-value{font-weight:700;color:#0f172a;font-size:14px}
.sp-metric-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.sp-metric-summary .label{font-size:11px;text-transform:uppercase;color:#64748b;letter-spacing:.08em}
.sp-metric-summary .value{font-size:20px;color:#0f172a}
.sp-metric-summary .note{margin:0;font-size:12px;color:#94a3b8}
.sp-cash-needed{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.sp-cash-card{border:1px solid #e4e7ec;border-radius:16px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:4px}
.sp-cash-card span{font-size:12px;color:#475569}
.sp-cash-card strong{font-size:16px;color:#0f172a}
.sp-intel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.sp-comp-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.45);z-index:3000}
.sp-comp-modal[hidden]{display:none}
.sp-comp-modal-overlay{position:absolute;inset:0}
.sp-comp-modal-content{position:relative;z-index:1;width:100%;max-width:520px;background:#fff;border-radius:20px;padding:24px;box-shadow:0 25px 60px rgba(15,23,42,.25);display:flex;flex-direction:column;gap:16px}
.sp-comp-modal-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.sp-comp-modal-title{margin:0;font-size:20px;font-weight:700;color:#0f172a}
.sp-comp-modal-sub{margin:0;font-size:13px;color:#475569}
.sp-comp-modal-close{border:none;background:#e2e8f0;border-radius:12px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:600;color:#0f172a;cursor:pointer}
.sp-comp-modal-close:hover{background:#cbd5f5}
.sp-comp-modal-price{font-size:28px;font-weight:700;color:#111}
.sp-comp-modal-sub{margin:0;font-size:13px;color:#475569}
.sp-comp-modal-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:4px}
.sp-comp-modal-metric{padding:10px;border:1px solid #e4e7ec;border-radius:14px;background:#f8fafc}
.sp-comp-modal-metric span{display:block;font-size:11px;text-transform:uppercase;color:#94a3b8;letter-spacing:.08em;margin-bottom:4px}
.sp-comp-modal-metric strong{font-size:16px;color:#0f172a}
.sp-comp-modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.sp-comp-modal-actions .ghost-btn{flex:1;min-width:140px}
.sp-comp-modal-select{padding:10px 16px;border-radius:12px;font-weight:600;border:none;cursor:pointer}
.sp-comp-modal-select.primary{background:#2563eb;color:#fff}
.sp-comp-modal-select.secondary{background:#f1f5f9;color:#0f172a}
.sp-comp-modal-select.secondary{background:#f1f5f9;color:#0f172a}
.sp-intel-card{border:1px solid #e4e7ec;border-radius:16px;padding:16px;background:#f8fafc;display:flex;flex-direction:column;gap:10px}
.sp-hud-bump{border:1px solid #dbeafe;border-radius:999px;padding:6px 14px;font-size:12px;font-weight:600;color:#1d4ed8;background:#fff;cursor:pointer;align-self:flex-start}
.sp-hud-controls{display:flex;flex-direction:column;gap:8px}
.sp-hud-allowance-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sp-hud-allowance-row label{font-size:12px;font-weight:600;color:#475569}
.sp-hud-allowance-edit{padding:4px 8px;border-radius:999px}
.sp-hud-input[hidden]{display:none!important}
.sp-intel-header{display:flex;justify-content:space-between;gap:8px;align-items:center}
.sp-intel-header h4{margin:0;font-size:15px;color:#0f172a}
.sp-intel-header span{font-size:12px;color:#64748b}
.sp-intel-card dl{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.sp-intel-card dt{font-size:11px;color:#475569;text-transform:uppercase;letter-spacing:.08em}
.sp-intel-card dd{margin:0;font-size:15px;font-weight:600;color:#0f172a}
.sp-intel-card ul{margin:0;padding-left:18px;color:#475569;font-size:13px;display:flex;flex-direction:column;gap:6px}
.sp-intel-actions{display:flex;flex-wrap:wrap;gap:8px}
.sp-status-pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#e0e7ff;color:#1e1b4b;font-size:12px;font-weight:600;align-self:flex-start}
.sp-status-pill.positive{background:#dcfce7;color:#166534}
.sp-status-pill.negative{background:#fee2e2;color:#b91c1c}
.basic-calc-view{max-width:720px}
.basic-calc-header{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.basic-calc-header-text{flex:1 1 auto;min-width:220px}
.basic-calc-header h2{margin:0}
.basic-calc-header p{margin:4px 0 10px;color:#475569;max-width:620px;font-size:13px}
.basic-calc-panel{border:1px solid #e5e7eb;border-radius:16px;padding:18px;background:#fff;display:flex;flex-direction:column;gap:14px}
.basic-calc-log{border:1px dashed #cbd5e1;border-radius:12px;padding:14px 18px;background:#f8fafc;font-family:\"JetBrains Mono\",\"SFMono-Regular\",Menlo,Consolas,monospace;min-height:220px;max-height:360px;overflow-y:auto}
.basic-calc-empty{margin:0;color:#64748b;font-size:13px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;text-align:center;min-height:180px}
.basic-calc-entry{padding:10px 0;border-bottom:1px solid #e2e8f0}
.basic-calc-entry:last-child{border-bottom:none}
.basic-calc-toggle{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#475569;cursor:pointer;white-space:nowrap;margin-left:auto;flex:0 0 auto;padding-top:0}
.basic-calc-toggle input{width:36px;height:18px;appearance:none;background:#cbd5e1;border-radius:999px;position:relative;outline:none;cursor:pointer;transition:background .2s}
.basic-calc-toggle input::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .2s}
.basic-calc-toggle input:checked{background:#2563eb}
.basic-calc-toggle input:checked::after{transform:translateX(18px)}
.basic-calc-row{display:flex;align-items:center;gap:12px}
.basic-calc-snippet{border:none;background:none;padding:0;margin:0;width:100%;text-align:left;cursor:pointer;font-family:inherit;font-size:inherit;color:inherit}
.basic-calc-snippet:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.basic-calc-equation{font-size:16px;color:#0f172a;line-height:1.5;letter-spacing:.01em}
.basic-calc-result{font-size:20px;font-weight:700;color:#1d4ed8;line-height:1.4}
.basic-calc-result.negative{color:#b91c1c}
.basic-calc-translation{margin:4px 0 0;font-size:12px;color:#64748b}
.basic-calc-translation span{color:#0f172a}
.basic-calc-meta{margin-left:auto;font-size:12px;color:#475569;white-space:nowrap}
.basic-calc-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.basic-calc-form input{flex:1;min-width:220px;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font-size:15px}
.basic-calc-form .primary{flex:0 0 auto;padding:11px 18px}
.basic-calc-hint{margin:0;font-size:13px;color:#475569}
.basic-calc-error{margin:0;font-size:13px;font-weight:600;color:#b91c1c}
.mao-view{width:min(100%,880px);margin:0 auto;flex-direction:column;gap:18px}
.mao-view.active{display:flex}
.app.mao-mode:not(.fullscreen-mode):not(.sidebar-mode) .mao-view{width:min(100%,780px);margin-left:0;margin-right:auto;padding-right:32px}
.mao-header{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.mao-header-text{flex:1 1 320px}
.mao-header-text h2{margin:0}
.mao-header-text p{margin:6px 0 0;color:#475569;font-size:14px}
.mao-shortcuts{flex:0 0 280px;min-width:240px;border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#f8fafc;display:flex;flex-direction:column;gap:8px}
.mao-shortcuts-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#475569}
.mao-shortcuts-buttons{display:flex;gap:8px;flex-wrap:wrap}
.mao-layout{display:flex;gap:16px;flex-wrap:wrap}
.mao-input-card,.mao-summary-grid,.mao-table-card{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:18px}
.mao-input-card{flex:1 1 280px;max-width:360px}
.mao-summary-grid{flex:1 1 320px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.mao-summary-card{border:1px solid #dbeafe;border-radius:14px;padding:14px;background:#f8fafc;display:flex;flex-direction:column;gap:4px}
.mao-summary-card .label{font-size:12px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.mao-summary-card .value{font-size:30px;font-weight:800;color:#0f172a;margin:0}
.mao-summary-card .meta{margin:0;font-size:12px;color:#475569}
.mao-formula-note{display:block;margin-top:6px;font-size:11px;color:#1d4ed8;font-weight:600}
.mao-summary-card.accent{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.mao-summary-card.accent .label{color:#bfdbfe}
.mao-summary-card.accent .value{color:#fff}
.mao-summary-card.accent .meta{color:#e0f2fe}
.mao-input-hint{display:block;margin-top:6px;font-size:12px;color:#64748b}
.mao-slider-card{border:1px solid #e2e8f0;border-radius:16px;padding:16px 18px;background:#fff;display:flex;flex-direction:column;gap:10px}
.mao-slider-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700;color:#0f172a}
.mao-slider-value{font-size:20px;color:#1d4ed8}
.mao-slider-card input[type=range]{width:100%}
.mao-slider-hint{margin:0;font-size:12px;color:#475569}
.mao-table-card{padding:18px 20px}
.mao-table-header h3{margin:0}
.mao-table-header p{margin:4px 0 12px;font-size:13px;color:#475569}
.mao-table{width:100%;border-collapse:collapse}
.mao-table th,.mao-table td{padding:10px 12px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:14px}
.mao-table th{font-size:12px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.08em}
.mao-table tbody tr{cursor:pointer;transition:background .2s}
.mao-table tbody tr:hover{background:#eff6ff}
.mao-table tr.active td{font-weight:700;color:#0f172a;background:#dbeafe;border-bottom-color:#bfdbfe}
.mao-table tr:last-child td{border-bottom:none}
.mao-table td:nth-child(2){font-weight:700;color:#0f172a}
.mao-table td:nth-child(3){font-weight:600;color:#b91c1c}
@media (max-width:1040px){
  .mao-shortcuts{flex:1 1 100%}
  .mao-summary-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
}
.asisoffer-view{width:min(100%,880px);margin:0 auto;flex-direction:column;gap:18px}
.asisoffer-view.active{display:flex}
.app.asisoffer-mode:not(.fullscreen-mode):not(.sidebar-mode) .asisoffer-view{width:min(100%,780px);margin-left:0;margin-right:auto;padding-right:32px}
.asisoffer-header{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.asisoffer-header-text{flex:1 1 320px}
.asisoffer-header-text h2{margin:0}
.asisoffer-header-text p{margin:6px 0 0;color:#475569;font-size:14px}
.asisoffer-mode-toggle{display:flex;align-items:center;flex-shrink:0}
.asisoffer-toggle-btn{position:relative;width:120px;height:40px;border:2px solid #cbd5e1;border-radius:999px;background:#fff;cursor:pointer;transition:all .2s;overflow:hidden;display:flex;align-items:center;padding:4px}
.asisoffer-toggle-btn:hover{border-color:#94a3b8;box-shadow:0 2px 6px rgba(15,23,42,.08)}
.asisoffer-toggle-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.asisoffer-toggle-btn[data-mode="normal"]{background:#e0f2fe;border-color:#38bdf8}
.asisoffer-toggle-btn[data-mode="fast"]{background:#dcfce7;border-color:#86efac}
.asisoffer-toggle-label{position:absolute;width:50%;height:100%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#64748b;transition:all .2s;z-index:1}
.asisoffer-toggle-label:first-child{left:0}
.asisoffer-toggle-label:last-child{right:0}
.asisoffer-toggle-btn[data-mode="normal"] .asisoffer-toggle-label:first-child{color:#0c4a6e}
.asisoffer-toggle-btn[data-mode="fast"] .asisoffer-toggle-label:last-child{color:#166534}
.asisoffer-toggle-btn::before{content:'';position:absolute;width:calc(50% - 4px);height:calc(100% - 8px);background:#fff;border-radius:999px;transition:transform .2s;box-shadow:0 2px 4px rgba(15,23,42,.1);left:4px;z-index:0}
.asisoffer-toggle-btn[data-mode="fast"]::before{transform:translateX(calc(100% + 4px))}
.asisoffer-address-section{margin-bottom:18px}
.asisoffer-address-section label{display:block;font-weight:700;margin-bottom:6px;color:#0f172a}
.asisoffer-address-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.asisoffer-address-row input{flex:1 1 320px;border:1px solid #cbd5e1;border-radius:10px;padding:10px;font-size:15px;min-width:200px}
.asisoffer-address-row #asisofferStreetViewBtn{white-space:nowrap;font-size:13px;padding:8px 12px;margin-left:auto}
.asisoffer-address-row #asisofferStreetViewBtn.street-view-open{background:#2563eb;border-color:#2563eb;color:#fff}
.asisoffer-search-buttons{display:flex;gap:6px;flex-wrap:wrap;width:100%}
.asisoffer-search-buttons .ghost-btn{white-space:nowrap;font-size:13px;padding:8px 12px}
.asisoffer-streetview-container{margin-top:12px;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#f8fafc}
.asisoffer-streetview-embed{width:100%;height:400px;border:0}
.asisoffer-streetview-embed iframe{display:block;width:100%;height:100%;border:0}
.asisoffer-streetview-message{padding:16px;text-align:center;color:#64748b;font-size:13px;margin:0}
.asisoffer-address-section small{display:block;margin-top:6px;color:#64748b;font-size:12px}
.asisoffer-layout{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin-bottom:18px;align-items:start}
.asisoffer-input-card,.asisoffer-results-card,.asisoffer-scale-card{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:18px}
.asisoffer-input-card{min-width:0;max-width:100%;padding:12px 14px}
.asisoffer-results-card{min-width:0;padding:14px 16px}
.asisoffer-input-card h3{margin:0 0 10px;font-size:14px;font-weight:700;color:#0f172a;text-transform:uppercase;letter-spacing:.08em}
.asisoffer-value-grid{display:grid;grid-template-columns:1fr;gap:6px;margin-bottom:10px}
.asisoffer-value-grid .field{margin-bottom:0}
.asisoffer-value-grid .field label{font-size:11px;font-weight:600;color:#475569;margin-bottom:3px}
.asisoffer-value-grid .prefixed{font-size:12px;padding:5px 7px}
.asisoffer-average{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:#dcfce7;border:1px solid #86efac;border-radius:8px;margin-top:6px}
.asisoffer-average .label{font-size:11px;font-weight:700;color:#166534;text-transform:uppercase;letter-spacing:.08em}
.asisoffer-average .value{font-size:16px;font-weight:800;color:#166534}
.asisoffer-results-card{display:flex;flex-direction:column;gap:8px}
.asisoffer-result-row{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}
.asisoffer-result-row.highlight{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.asisoffer-result-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:#475569}
.asisoffer-result-row.highlight .asisoffer-result-label{color:#bfdbfe}
.asisoffer-percent{font-size:10px;font-weight:600;color:#64748b;background:#e2e8f0;padding:2px 5px;border-radius:4px}
.asisoffer-result-row.highlight .asisoffer-percent{background:rgba(255,255,255,.2);color:#fff}
.asisoffer-result-value{font-size:16px;font-weight:800;color:#0f172a;text-align:right}
.asisoffer-result-row.highlight .asisoffer-result-value{color:#fff;text-align:right}
.asisoffer-scale-card{width:100%}
.asisoffer-scale-card h3{margin:0 0 8px;font-size:16px;font-weight:700;color:#0f172a;text-transform:uppercase;letter-spacing:.08em;text-align:center}
.asisoffer-scale-note{margin:0 0 12px;font-size:13px;color:#475569;text-align:center}
.asisoffer-scale-table-wrapper{display:flex;justify-content:center;overflow-x:auto}
.asisoffer-scale-table{width:auto;border-collapse:collapse;margin:0 auto}
.asisoffer-scale-table th,.asisoffer-scale-table td{padding:10px 12px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:14px}
.asisoffer-scale-table th{font-size:12px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.08em}
.asisoffer-scale-table tbody tr:last-child td{border-bottom:none}
.asisoffer-scale-input{border:1px solid #cbd5e1;border-radius:6px;padding:4px 6px;font-size:13px;width:70px;text-align:right;background:#fff}
.asisoffer-scale-input:focus{outline:2px solid #2563eb;outline-offset:2px}
.asisoffer-scale-table td{white-space:nowrap}
.asisoffer-normal-view,.asisoffer-fast-view{width:100%}
.asisoffer-fast-layout{display:flex;justify-content:center;align-items:start;margin-top:24px}
.asisoffer-fast-card{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:24px;max-width:400px;width:100%;display:flex;flex-direction:column;gap:20px}
.asisoffer-fast-card .field{margin-bottom:0}
.asisoffer-fast-card .field label{display:block;font-weight:700;margin-bottom:8px;color:#0f172a;font-size:14px}
.asisoffer-fast-card .prefixed{font-size:15px;padding:10px 12px}
.asisoffer-fast-rehab-toggle-group{display:flex;gap:6px;flex-wrap:wrap}
.asisoffer-fast-rehab-btn{flex:1;min-width:60px;padding:6px 10px;font-size:12px;font-weight:600;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#475569;cursor:pointer;transition:all 0.15s;position:relative}
.asisoffer-fast-rehab-btn:hover{background:#f1f5f9;border-color:#94a3b8}
.asisoffer-fast-rehab-btn.active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.asisoffer-fast-rehab-btn[data-tooltip]:hover::after{content:attr(data-tooltip);position:absolute;bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:4px;padding:6px 10px;background:#1e293b;color:#fff;font-size:11px;white-space:nowrap;border-radius:4px;z-index:1000;pointer-events:none;box-shadow:0 2px 8px rgba(0,0,0,0.2)}
.asisoffer-fast-rehab-btn[data-tooltip]:hover::before{content:'';position:absolute;bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:-1px;border:4px solid transparent;border-top-color:#1e293b;z-index:1000;pointer-events:none}
.asisoffer-fast-results{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.asisoffer-fast-result{display:flex;flex-direction:column;gap:8px;padding:16px;background:#1d4ed8;border:1px solid #1d4ed8;border-radius:12px}
.asisoffer-fast-result-label{font-size:12px;font-weight:700;color:#bfdbfe;text-transform:uppercase;letter-spacing:.08em}
.asisoffer-fast-result-value{font-size:28px;font-weight:800;color:#fff}
.asisoffer-fast-result-value.pass{color:#fbbf24;font-size:24px}
.asisoffer-fast-result-value.negative{color:#fca5a5;font-size:20px;font-style:italic}
.asisoffer-fast-formula{font-size:12px;color:#bfdbfe;margin-top:4px;line-height:1.6}
@media (max-width:1040px){
  .asisoffer-value-grid{grid-template-columns:1fr}
  .asisoffer-layout{grid-template-columns:1fr 2fr}
}
.comps-view{width:min(100%,960px);margin:0 auto 0 0;flex-direction:column;gap:14px;padding-right:32px}
.app.comps-mode:not(.fullscreen-mode):not(.sidebar-mode) .comps-view{width:min(100%,780px);margin-left:0;margin-right:auto;padding-right:32px}
.comps-view.active{display:flex}
.comps-header{display:flex;flex-direction:column;gap:6px}
.comps-header h2{margin:0}
.comps-header p{margin:4px 0 0;color:#475569;max-width:520px}
.comps-heading-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.comps-heading-title-wrapper{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.comps-header-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.comps-export-btn{font-weight:600;border:1px solid #cbd5e1;border-radius:10px;padding:8px 14px;line-height:1}
.comps-export-btn:hover{background:#f8fafc;border-color:#94a3b8}
.comps-settings-btn{flex:0 0 auto;white-space:nowrap}
.pill-btn{border:1px solid #cbd5e1;border-radius:999px;padding:8px 16px;background:#fff;color:#334155;font-weight:700;cursor:pointer;font-size:13px}
.pill-btn.active{background:#1d4ed8;border-color:#1d4ed8;color:#fff;box-shadow:0 4px 10px rgba(37,99,235,.25)}
#compsRentalBtn.active{background:#16a34a;border-color:#16a34a;box-shadow:0 4px 10px rgba(22,163,74,.25);color:#fff}
.comps-mode-toggle{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-start;margin:0}
.comps-mode-toggle-group{display:flex;gap:8px;flex-wrap:wrap}
.comps-disclaimer-btn{flex:0 0 auto;font-size:12px;padding:6px 10px;margin-right:0;min-width:32px}
.comps-filters-toggle-btn{flex:0 0 auto;font-size:12px;padding:6px 10px;margin-left:8px}
.comps-address label{display:block;font-weight:700;margin-bottom:6px}
.comps-address-row{display:flex;gap:8px;flex-wrap:wrap}
.comps-address-row input{flex:1 1 320px;border:1px solid #cbd5e1;border-radius:10px;padding:10px;font-size:15px}
.comps-address small{color:#94a3b8}

.comps-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.comps-filters.is-collapsed{display:none}
.comps-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.comps-field label{font-weight:600;color:#0f172a;font-size:13px}
.comps-field.full{grid-column:1/-1}
.comps-field input,
.comps-field select{border:1px solid #cbd5e1;border-radius:10px;padding:8px;font-size:14px;width:100%}
.comps-field:not(.full) input[type=number]{max-width:150px}
.comps-range{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.comps-range input{flex:1 1 90px;max-width:120px;text-align:center}
.comps-range span{font-size:11px;color:#94a3b8;text-transform:uppercase;font-weight:700}
.comps-range.compact-range input{max-width:110px}
.compact-input{max-width:200px}
.comps-count-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.comps-count-controls input[type=range]{flex:1 1 200px}
.comps-count-controls input[type=number]{width:70px}
.comps-count-controls span{font-size:13px;color:#475569;font-weight:700}
.comps-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
.comps-actions .primary{flex:0 0 auto;width:auto;padding:10px 20px}
.comps-actions .primary.rental-mode{background:#16a34a;box-shadow:0 4px 12px rgba(22,163,74,.25)}
.comps-loading{font-size:13px;color:#475569}
.comps-error{border:1px solid #fecaca;border-radius:12px;padding:10px;background:#fef2f2;color:#b91c1c;font-weight:600}
.comps-notice{border:1px solid #bfdbfe;border-radius:10px;padding:8px 12px;background:#eff6ff;color:#1d4ed8;font-weight:600}
.comps-notice[data-variant=success]{border-color:#86efac;background:#f0fdf4;color:#15803d}
.comps-results{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:12px}
.comps-results-scroll{max-height:420px;overflow-y:auto;padding-right:6px;display:flex;flex-direction:column;gap:12px}
.comps-results-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.comps-results-tools{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:flex-start;border:1px dashed #e2e8f0;border-radius:12px;padding:10px;background:#f8fafc}
.comps-select-controls{flex:1 1 280px;display:flex;flex-direction:column;gap:6px}
.comps-select-all{display:flex;align-items:center;gap:6px;font-weight:700;color:#0f172a;cursor:pointer}
.comps-select-all input{width:16px;height:16px}
.comps-selected-count{font-size:12px;color:#475569;font-weight:600}
.comps-bulk-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.comps-bulk-actions .ghost-btn{flex:0 0 auto}
.comps-result-filters{flex:1 1 320px;display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.comps-sort-control,
.comps-filter-control{flex:1 1 220px;display:flex;flex-direction:column;gap:6px}
.comps-sort-row,
.comps-filter-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.comps-sort-row select{flex:1 1 auto;min-width:120px}
.comps-filter-row select{flex:1 1 160px;min-width:140px}
.comps-filter-row input{flex:1 1 90px;min-width:80px;border:1px solid #cbd5e1;border-radius:8px;padding:6px 8px;font-size:13px}
.comps-filter-row button{flex:0 0 auto}
.comps-filter-row.text-mode #compsFilterMax{display:none}
.comps-filter-control{position:relative;width:100%}
.comps-filter-active{border:1px dashed #cbd5e1;border-radius:12px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:10px;width:648px;min-width:648px;max-width:calc(100% - 20px);margin-top:6px}
.comps-filter-active-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.comps-filter-active-label{font-size:12px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.06em;flex-shrink:0;white-space:nowrap}
.comps-filter-list{display:flex;gap:8px;flex-wrap:wrap;flex:1 1 auto;min-width:0;align-items:center}
.comps-filter-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#e0f2fe;color:#0f172a;font-size:12px;font-weight:600}
.comps-filter-chip button{border:none;background:transparent;color:#0f172a;font-size:12px;padding:0;cursor:pointer;line-height:1}
.comps-filter-chip button:hover{color:#dc2626}
.comps-view-toggle{display:flex;gap:8px;flex-wrap:wrap}
.comps-subject{font-size:13px;color:#475569;font-weight:600}
.comps-subject span{color:#0f172a}
.comps-summary{display:flex;gap:12px;flex-wrap:wrap}
.comps-summary-card{flex:1 1 220px;border:1px dashed #cbd5e1;border-radius:12px;padding:12px;background:#f8fafc;display:flex;flex-direction:column;gap:4px}
.comps-analytics{border:1px solid #dbeafe;border-radius:12px;padding:12px;background:#f8fafc;display:flex;flex-direction:column;gap:8px}
.comps-secondary-select{display:flex;justify-content:flex-start;margin:6px 0}
.comps-secondary-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0}
.comps-secondary-controls .comps-select-all{flex:0 0 auto}
.comps-secondary-view-toggle{flex:0 0 auto}
.comps-secondary-controls .comps-map-checkbox{flex:0 0 auto;margin-left:auto}
.comps-map-views{display:flex;flex-direction:column;gap:16px}
.comps-map-view{display:flex;gap:16px;flex-wrap:wrap;border:1px solid #dbeafe;border-radius:18px;padding:14px;background:#f8fafc;position:relative}
.comps-map-view[hidden]{display:none}
.comps-map-view.comps-map-fullscreen{flex-direction:row;flex-wrap:nowrap}
.comps-map-view.comps-map-stacked{flex-direction:column;flex-wrap:nowrap}
.comps-map-view.comps-map-stacked .comps-map-surface{flex:1 1 auto;width:100%;min-width:0}
.comps-map-view.comps-map-stacked .comps-map-panel{flex:1 1 auto;max-width:100%;min-width:0}
.comps-map-view.comps-map-fullscreen .comps-map-surface{flex:1 1 420px;min-width:420px}
.comps-map-view.comps-map-fullscreen .comps-map-panel{flex:0 0 320px;max-width:360px}
.comps-map-surface{flex:1 1 420px;min-height:360px;border-radius:14px;background:#e2e8f0;position:relative;overflow:hidden}
.comps-map-overlay-controls{position:absolute;top:16px;left:16px;z-index:10;display:flex;flex-direction:column;gap:10px;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);padding:12px 14px;border-radius:10px;box-shadow:0 4px 12px rgba(15,23,42,.15);border:1px solid rgba(203,213,225,.5);transition:padding .2s ease}
.comps-map-top-buttons{display:flex;gap:6px;position:absolute;top:8px;left:8px;z-index:11}
.comps-map-minimize-btn{width:24px;height:24px;border:none;background:rgba(255,255,255,.9);border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#475569;box-shadow:0 2px 4px rgba(15,23,42,.1);transition:background .2s,color .2s,transform .2s;flex-shrink:0}
.comps-map-minimize-btn:hover{background:#fff;color:#0f172a;transform:scale(1.05)}
.comps-map-minimize-btn:active{transform:scale(0.95)}
.comps-map-minimize-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.comps-map-refresh-btn{width:24px;height:24px;border:none;background:rgba(255,255,255,.9);border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#475569;box-shadow:0 2px 4px rgba(15,23,42,.1);transition:background .2s,color .2s,transform .2s;flex-shrink:0}
.comps-map-refresh-btn:hover{background:#fff;color:#0f172a;transform:scale(1.05) rotate(90deg)}
.comps-map-refresh-btn:active{transform:scale(0.95) rotate(90deg)}
.comps-map-refresh-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.comps-map-refresh-btn svg{transition:transform .3s}
.comps-map-refresh-btn:hover svg{transform:rotate(180deg)}
.comps-map-overlay-controls.minimized{padding:8px;min-width:40px;min-height:40px}
.comps-map-overlay-controls.minimized .comps-map-controls-content{display:none}
.comps-map-overlay-controls.minimized .comps-map-top-buttons{position:static;width:100%;display:flex;gap:6px}
.comps-map-overlay-controls.minimized .comps-map-minimize-btn{flex:1;height:100%;border-radius:8px}
.comps-map-overlay-controls.minimized .comps-map-refresh-btn{flex:1;height:100%;border-radius:8px}
.comps-map-overlay-controls.minimized .comps-map-minimize-icon{display:none}
.comps-map-overlay-controls.minimized .comps-map-expand-icon{display:block!important}
.comps-map-overlay-controls:not(.minimized) .comps-map-expand-icon{display:none!important}
.comps-map-controls-content{display:flex;flex-direction:column;gap:10px;padding-top:28px}
.comps-map-canvas{position:absolute;top:0;left:0;width:100%;height:100%}
.comps-map-empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;font-weight:600;font-size:14px;color:#475569;text-align:center;padding:12px 16px;border-radius:999px;background:rgba(248,250,252,.92);box-shadow:0 8px 24px rgba(15,23,42,.15)}
.comps-map-panel{flex:0 0 320px;max-width:360px;border-radius:14px;border:1px solid #cbd5e1;background:#fff;padding:12px;display:flex;flex-direction:column;gap:12px;min-height:360px}
.comps-map-panel-empty{margin:0;font-size:13px;color:#475569}
.comps-map-panel-body{display:flex;flex-direction:column;gap:10px}
.comps-map-panel-body[hidden]{display:none}
.comps-map-panel-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.comps-map-panel-label{margin:0;font-size:11px;color:#1d4ed8;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.comps-map-panel-select{display:flex;align-items:center;gap:6px;font-size:13px;color:#0f172a;font-weight:600;cursor:pointer}
.comps-map-panel-select input{width:16px;height:16px;cursor:pointer}
.comps-map-panel-select span{user-select:none}
.comps-map-panel-disclaimer-btn{background:none;border:none;font-size:18px;cursor:pointer;padding:4px;line-height:1;opacity:0.7;transition:opacity 0.2s}
.comps-map-panel-disclaimer-btn:hover{opacity:1}
.comps-map-panel-disclaimer-btn:active{opacity:0.8}
.comps-map-panel-zillow-btn{background:#2563eb;color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;padding:4px 10px;line-height:1;transition:background 0.2s,opacity 0.2s}
.comps-map-panel-zillow-btn:hover{background:#1d4ed8}
.comps-map-panel-zillow-btn:active{opacity:0.8}
.comps-map-panel-zillow-btn:disabled{opacity:0.5;cursor:not-allowed}
.comps-map-panel-title{margin:0;font-size:18px;color:#0f172a}
.comps-map-panel-price{margin:0;font-size:24px;font-weight:800;color:#111827}
.comps-map-panel-meta{margin:0;font-size:13px;color:#475569}
.comps-map-panel-stats{display:flex;gap:10px;flex-wrap:wrap;margin:0}
.comps-map-panel-stats div{flex:1 1 90px;border:1px solid #e2e8f0;border-radius:10px;padding:8px;background:#f8fafc;display:flex;flex-direction:column;gap:2px}
.comps-map-panel-stats dt{margin:0;font-size:11px;color:#475569;text-transform:uppercase;letter-spacing:.06em}
.comps-map-panel-stats dd{margin:0;font-size:14px;font-weight:600;color:#0f172a}
.comps-map-panel-hint{margin:0;font-size:12px;color:#475569}
.comps-map-street{display:flex;flex-direction:column;gap:8px}
.comps-map-street-embed,.comps-map-street-static{border-radius:12px;overflow:hidden;background:#0f172a10;border:1px solid #cbd5e1}
.comps-map-street-embed iframe{display:block;width:100%;height:220px;border:0}
.comps-map-street-embed[data-expanded="true"] iframe{height:320px}
.comps-map-street-static{display:flex;align-items:center;justify-content:center;min-height:160px;background:#f8fafc}
.comps-map-street-static img{width:100%;height:100%;object-fit:cover;display:block}
.comps-map-panel-actions{display:flex;flex-wrap:nowrap;gap:6px}
.comps-map-panel-actions button{flex:1 1 0;min-width:0;font-size:12px;padding:6px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.comps-map-panel-actions button:not(.primary){border-radius:999px}
.comps-map-panel-actions .comps-map-expand-btn{background:#2563eb;color:#fff;font-weight:600}
.comps-map-panel-actions .comps-map-expand-btn:hover{background:#1d4ed8}
@media (max-width:900px){
  .comps-map-panel{flex:1 1 100%;max-width:none}
  .comps-map-view,.comps-map-view.comps-map-fullscreen,.comps-map-view.comps-map-stacked{flex-direction:column;flex-wrap:nowrap}
  .comps-map-view .comps-map-surface,.comps-map-view.comps-map-fullscreen .comps-map-surface{flex:1 1 auto;width:100%;min-width:0}
  .comps-map-view .comps-map-panel,.comps-map-view.comps-map-fullscreen .comps-map-panel{flex:1 1 auto;max-width:100%;min-width:0}
  .comps-filter-active{width:100%;min-width:0}
  .comps-result-filters{flex:1 1 100%;justify-content:flex-start}
  .comps-sort-row,.comps-filter-row{flex-wrap:wrap}
  .comps-sort-row select,.comps-filter-row select{flex:1 1 100%;min-width:0}
  .comps-filter-row input{flex:1 1 calc(50% - 4px);min-width:0}
}
.comps-map-modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px}
.comps-map-modal[hidden]{display:none}
.comps-map-modal-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.6);backdrop-filter:blur(4px)}
.comps-map-modal-content{position:relative;z-index:1;background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(15,23,42,.3);max-width:600px;width:100%;max-height:90vh;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}
.comps-map-modal-close{position:absolute;top:12px;right:12px;width:32px;height:32px;border:none;background:transparent;color:#475569;font-size:24px;line-height:1;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s;z-index:10}
.comps-map-modal-close:hover{background:#f1f5f9;color:#0f172a}
.comps-map-modal-body{display:flex;flex-direction:column;gap:12px}
.comps-map-modal-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.comps-map-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:8px 0 12px;flex-wrap:wrap}
.comps-disclaimer-modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px}
.comps-disclaimer-modal[hidden]{display:none}
.comps-disclaimer-modal-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.6);backdrop-filter:blur(4px);cursor:pointer}
.comps-disclaimer-modal-content{position:relative;z-index:1;background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(15,23,42,.3);max-width:600px;width:100%;max-height:90vh;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:16px}
.comps-disclaimer-modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.comps-disclaimer-title{font-size:18px;font-weight:700;color:#0f172a;margin:0;line-height:1.3}
.comps-disclaimer-message{font-size:14px;color:#334155;line-height:1.6;white-space:pre-line}
.comps-disclaimer-message br{margin-bottom:8px}
.comps-disclaimer-close{width:32px;height:32px;border:none;background:transparent;color:#475569;font-size:28px;line-height:1;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s;flex-shrink:0;padding:0}
.comps-disclaimer-close:hover{background:#f1f5f9;color:#0f172a}
.comps-disclaimer-modal-footer{display:flex;justify-content:flex-end;margin-top:8px}
.comps-disclaimer-modal-footer .primary{width:auto;padding:10px 20px}
.export-modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:11000;display:flex;align-items:center;justify-content:center;padding:24px}
.export-modal[hidden]{display:none}
.export-modal-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(15,23,42,.55);backdrop-filter:blur(4px)}
.export-modal-content{position:relative;z-index:1;background:#fff;border-radius:18px;box-shadow:0 25px 70px rgba(15,23,42,.35);width:min(520px,calc(100% - 32px));max-height:92vh;overflow:hidden;display:flex;flex-direction:column}
body.export-modal-open{overflow:hidden}
.export-modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 24px 0;gap:12px}
.export-modal-header h3{margin:0;font-size:20px}
.export-modal-close{border:none;background:none;font-size:26px;line-height:1;padding:0 6px;cursor:pointer;color:#475569}
.export-modal-form{display:flex;flex-direction:column;height:100%}
.export-modal-body{padding:16px 24px 0;overflow:auto;max-height:65vh}
.export-option-group{border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;margin-bottom:14px;background:#f8fafc}
.export-option-group legend{font-size:13px;font-weight:700;color:#0f172a;padding:0 4px}
.export-option{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}
.export-option:last-child{margin-bottom:0}
.export-option input{margin-top:4px}
.export-option label{font-weight:600;color:#0f172a}
.export-option small{display:block;color:#64748b;font-weight:400;margin-top:2px}
.export-option-group.disabled{opacity:.5;pointer-events:none}
.export-field-row{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.export-field-row label{font-size:13px;font-weight:600;color:#0f172a}
.export-field-row input,.export-field-row select{border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;font-size:14px;font-family:inherit;background:#fff}
.export-field-row small{font-size:12px;color:#64748b}
.export-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 24px 20px;border-top:1px solid #e2e8f0;gap:12px}
.export-modal-status{font-size:13px;color:#0f172a;min-height:18px}
.export-modal-status.error{color:#dc2626}
.export-modal-status.success{color:#16a34a}
.export-modal-actions{display:flex;gap:10px}
.export-modal-actions .primary{min-width:140px}
.comps-map-checkbox{display:flex;align-items:center;gap:6px;font-size:13px;color:#0f172a;font-weight:600}
.comps-map-checkbox input{width:16px;height:16px}
.comps-map-control-group{display:flex;align-items:center;gap:6px}
.comps-map-control-label{font-size:13px;color:#0f172a;font-weight:600;white-space:nowrap}
.comps-map-select{font-size:13px;padding:4px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#0f172a;font-weight:500;cursor:pointer;min-width:80px}
.comps-map-select:hover{border-color:#94a3b8}
.comps-map-select:focus{outline:none;border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(29,78,216,.1)}
.pac-container{z-index:99999}
.comps-analytics-title{font-size:12px;color:#1e3a8a;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.comps-analytics-grid{display:flex;gap:10px;flex-wrap:wrap}
.comps-analytics-stat{flex:1 1 160px;border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:2px}
.comps-analytics-stat span{font-size:12px;color:#475569;font-weight:700}
.comps-analytics-stat strong{font-size:20px;color:#0f172a}
.comps-summary-card h3{margin:0;font-size:13px;color:#475569;text-transform:uppercase;letter-spacing:.06em}
.comps-summary-card p{margin:0;font-size:28px;font-weight:800;color:#0f172a}
.comps-summary-card small{font-size:12px;color:#475569}
.comps-empty{margin:0;font-size:14px;color:#475569}
.comps-list{display:grid;gap:12px}
.comps-list[hidden],.comps-table[hidden]{display:none}
.comps-table{border:1px solid #e5e7eb;border-radius:12px;overflow:auto;position:relative}
.comps-table table{width:100%;border-collapse:collapse;min-width:640px}
.comps-table thead{position:sticky;top:0;z-index:10;background:#f8fafc}
.comps-table th,.comps-table td{padding:10px;text-align:left;border-bottom:1px solid #e2e8f0;font-size:13px;color:#0f172a;white-space:nowrap;vertical-align:top}
.comps-table th[data-sort-field]{cursor:pointer;user-select:none;position:relative;padding-right:18px}
.comps-table th[data-sort-field]::after{content:'';position:absolute;right:6px;top:50%;transform:translateY(-50%);border:4px solid transparent;border-top-color:#94a3b8;opacity:0;transition:opacity .15s,transform .15s}
.comps-table th[data-sort-field].is-sorted::after{opacity:1}
.comps-table th[data-sort-field][data-sort-dir="desc"]::after{transform:translateY(-50%) rotate(180deg)}
.comps-table th.comp-select-head{width:36px}
.comps-table td.comp-select-cell{width:36px;text-align:center}
.comp-select-checkbox{width:16px;height:16px}
.comps-table th.comp-links-head{width:140px}
.comps-table th.comp-preview-head{width:170px}
.comps-table td.comp-preview-cell{width:170px;min-width:150px;white-space:normal}
.comp-preview{position:relative;border-radius:12px;overflow:hidden;background:#cbd5e1}
.comp-preview img{display:block;width:100%;height:100%;object-fit:cover}
.comp-preview-card{width:25%;aspect-ratio:16/9;min-height:30px}
.comp-preview-table{width:150px;height:96px}
.comp-preview-badge{position:absolute;top:8px;left:8px;background:rgba(15,23,42,.85);color:#fff;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;z-index:2}
.comp-preview.is-placeholder{display:flex;align-items:center;justify-content:center;padding:10px;color:#475569;background:#f1f5f9;text-align:center}
.comp-preview-placeholder-text{font-size:12px;font-weight:600;line-height:1.4}
.comp-preview-table.is-placeholder .comp-preview-placeholder-text{font-size:11px}
.comps-table th{background:#f8fafc;font-weight:700;font-size:12px;color:#475569;text-transform:uppercase;letter-spacing:.05em}
.comps-table th.comp-header-draggable{user-select:none}
.comps-table th.comp-header-dragging{opacity:0.5}
.comps-table tr:last-child td{border-bottom:none}
.comps-table td:nth-child(3),.comps-table td:nth-child(4){white-space:normal}
.comp-actions{display:flex;flex-wrap:wrap;gap:6px}
.comp-actions-block{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.comp-card .comp-actions-block{margin-top:12px}
.comps-table td.comp-links-cell .comp-actions-block{margin-top:0}
.comp-action-btn{border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#0f172a;font-size:12px;padding:4px 12px;cursor:pointer;font-weight:600;transition:background .2s,border-color .2s,transform .2s}
.comp-action-btn:hover{background:#e2e8f0}
.comp-action-btn:active{transform:translateY(1px)}
.comp-action-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.comp-action-btn.is-active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.comp-action-btn.is-active:hover{background:#1e40af;border-color:#1e40af}
.comp-action-btn.comp-quick-view-toggle.is-active{animation:quick-view-wiggle .75s ease-in-out infinite}
.comp-quick-close-btn{display:none;border:none;border-radius:999px;background:#1d4ed8;color:#fff;font-weight:700;padding:6px 16px;font-size:12px;cursor:pointer;box-shadow:0 4px 12px rgba(37,99,235,.35);animation:quick-view-wiggle .85s ease-in-out infinite}
.comp-quick-close-btn:hover{background:#1e40af}
.comp-quick-close-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.comp-quick-view[data-open="true"] .comp-quick-close-btn{display:inline-flex;align-items:center;justify-content:center}
.comp-quick-link-btn{display:none}
.comp-quick-view[data-open="true"] .comp-quick-link-btn{display:inline-flex;align-items:center;justify-content:center}
@media (prefers-reduced-motion:reduce){
  .comp-action-btn.comp-quick-view-toggle.is-active,
  .comp-quick-close-btn{animation:none}
}
.comps-table td.comp-links-cell{white-space:normal;min-width:120px;max-width:140px}
.comps-table td.comp-links-cell .comp-action-btn{font-size:11px;padding:4px 10px}
.comps-table td.comp-links-cell .comp-actions-block{width:100%}
.comps-table td.comp-links-cell .comp-actions-vertical{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.comps-table td.comp-links-cell .comp-action-btn-vertical{width:100%;font-size:11px;padding:6px 10px;white-space:nowrap;text-align:center}
.comps-table td.comp-links-cell .comp-search-other-container{position:relative;width:100%}
.comps-table td.comp-links-cell .comp-search-other-btn.is-active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.comps-table td.comp-links-cell .comp-search-other-btn{display:flex;align-items:center;justify-content:center;gap:4px}
.comps-table td.comp-links-cell .comp-search-other-arrow{font-size:8px;opacity:0.7;transition:transform .2s}
.comps-table td.comp-links-cell .comp-search-other-btn.is-active .comp-search-other-arrow{transform:rotate(180deg);opacity:1}
.comps-table td.comp-links-cell .comp-search-other-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 4px 12px rgba(15,23,42,.15);z-index:20;display:none;flex-direction:column;padding:4px;min-width:160px;max-height:300px;overflow-y:auto}
.comps-table td.comp-links-cell .comp-search-other-dropdown:not([hidden]){display:flex}
.comps-table td.comp-links-cell .comp-search-other-dropdown-item{width:100%;text-align:left;padding:6px 10px;border:none;background:none;font-size:11px;font-weight:600;color:#0f172a;cursor:pointer;border-radius:4px;white-space:nowrap}
.comps-table td.comp-links-cell .comp-search-other-dropdown-item:hover{background:#f1f5f9}
.comp-quick-view{border:1px solid #cbd5e1;border-radius:12px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:8px}
.comp-quick-view[hidden]{display:none}
.comp-quick-view .comp-quick-frame{width:100%;height:220px;border-radius:10px;overflow:hidden;background:#e2e8f0}
.comp-quick-view-table .comp-quick-frame{height:220px}
.comp-quick-view[data-expanded="true"] .comp-quick-frame{height:320px}
.comp-quick-view-table[data-expanded="true"] .comp-quick-frame{height:360px}
.comp-quick-view .comp-quick-frame iframe{width:100%;height:100%;border:0}
.comp-quick-controls{display:flex;gap:8px;flex-wrap:wrap}
.comp-quick-message{margin:0;font-size:12px;color:#475569}
.comp-quick-view-table{width:100%;max-width:none}
.comp-quick-view-table[data-expanded="true"]{max-width:100%}
.comp-quick-row td{padding:0 10px 12px;border-bottom:1px solid #e2e8f0;background:#fff}
.comp-quick-row .comp-quick-view{margin-top:0;width:clamp(320px,50%,720px);max-width:100%;margin-right:auto}
@keyframes quick-view-wiggle{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(3px)}
  75%{transform:translateX(-3px)}
}
.comps-saved{border:1px solid #e5e7eb;border-radius:16px;padding:14px;margin-top:14px;background:#fff;display:flex;flex-direction:column;gap:12px}
.comps-saved-header{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.comps-saved-toggle{display:flex;align-items:center;gap:8px;background:none;border:none;padding:0;cursor:pointer;flex:1 1 auto}
.comps-saved-toggle h3{margin:0;font-size:14px;color:#0f172a}
.comps-saved-chevron{font-size:10px;color:#475569;transition:transform .2s}
.comps-saved.collapsed .comps-saved-chevron{transform:rotate(-90deg)}
.comps-saved-header-controls{display:flex;align-items:center;gap:8px}
.comps-saved-content{display:flex;flex-direction:column;gap:10px}
.comps-saved.collapsed .comps-saved-content{display:none}
.comps-saved-description{margin:0;font-size:12px;color:#475569;max-width:420px}
.comps-saved-list{display:flex;flex-direction:column;gap:10px}
.comps-saved-list.grid-view{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.comps-saved-card{border:1px solid #dbeafe;border-radius:12px;padding:10px;background:#f8fafc;display:flex;flex-direction:column;gap:6px}
.comps-saved-title{font-weight:700;color:#0f172a}
.comps-saved-meta{margin:0;font-size:12px;color:#475569}
.comps-saved-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.comps-saved-actions .primary{flex:1 1 auto;padding:8px 16px;min-width:0}
.comps-saved-actions .ghost-btn{flex:1 1 auto;min-width:0}
.comp-card{border:1px solid #dbeafe;border-radius:14px;padding:12px;background:#f8fafc;display:flex;flex-direction:column;gap:8px;box-shadow:0 4px 12px rgba(15,23,42,.06)}
.comp-card-header{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.comp-card-left{display:flex;align-items:flex-start;gap:8px;flex:1 1 auto}
.comp-card .comp-select-toggle{display:flex;align-items:center;gap:4px;font-size:11px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.comp-card h4{margin:0;font-size:16px;color:#0f172a}
.comp-status{padding:2px 8px;border-radius:999px;background:#e0f2fe;color:#1d4ed8;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.comp-meta,.comp-price-row,.comp-extra{margin:0;font-size:13px;color:#475569;display:flex;gap:10px;flex-wrap:wrap}
.comp-price{font-size:18px;font-weight:800;color:#0f172a}
.comp-date{font-weight:600}
.comp-extra span{display:flex;align-items:center;gap:4px}
.cashout-view,
.househack-wide{position:relative}
.cashout-view .co-header h2{margin:0}
.cashout-view .co-header p{margin:6px 0 14px;color:#475569}
.co-layout{display:flex;gap:16px;flex-wrap:wrap}
.co-left-stack{flex:0 0 420px;max-width:420px;display:flex;flex-direction:column;gap:16px}
.hh-panels{display:flex;gap:16px;flex:1 1 auto}
.co-view-pin{position:absolute;right:16px;top:16px;z-index:5}
.co-panel{border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff;flex:1 1 360px}
.co-inputs{max-width:420px;width:100%}
.co-field-group{margin-bottom:16px}
.co-field-group h4{margin:0 0 8px;color:#0f172a}
.co-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.co-field{display:flex;flex-direction:column;gap:4px}
.co-field.full{grid-column:1/-1}
.co-field label{font-size:13px;font-weight:600;color:#0f172a}
.co-field input{border:1px solid #cbd5e1;border-radius:8px;padding:8px;font-size:14px}
.co-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px}
.co-actions .primary,.co-actions .ghost-btn{flex:1 1 140px}
.co-actions .ghost-btn.danger{color:#b91c1c;border-color:#fecaca}
.co-results{flex:1 1 480px;min-width:360px;display:flex;flex-direction:column;gap:14px}
.co-property{border:1px dashed #cbd5e1;border-radius:12px;padding:10px;background:#f8fafc}
.co-property span{text-transform:uppercase;font-size:12px;color:#64748b}
.co-property p{margin:4px 0 0;font-size:16px;font-weight:700;color:#0f172a}
.co-section{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#f8fafc}
.co-section h3{margin:0 0 10px}
.co-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:900px){
.co-card-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
}
.co-card{border:1px solid #dbeafe;border-radius:12px;padding:12px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.05);transition:background .2s,border-color .2s}
.co-card .label{font-weight:700;color:#0f172a;margin-bottom:4px}
.co-card .value{font-size:18px;font-weight:800;color:#0f172a}
.co-card .co-note{margin:6px 0 0;font-size:12px;color:#475569}
.co-note.co-guideline{color:#b91c1c;font-weight:600}
.co-card.state-card{border-left:5px solid #dbeafe}
.co-card.state-positive{background:#ecfdf5;border-color:#bbf7d0}
.co-card.state-positive .value{color:#166534}
.co-card.state-negative{background:#fef2f2;border-color:#fecaca}
.co-card.state-negative .value{color:#b91c1c}
.co-card.state-card:not(.state-positive):not(.state-negative){background:#fff;border-color:#dbeafe}
.co-breakdown-note{line-height:1.5}
.co-collapsed .co-left-stack{display:none}
.co-collapsed .co-view-pin{display:inline-flex}
.co-collapsed .co-results{flex:0 0 680px;max-width:680px}
.co-collapsed .co-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.co-saved-grid{display:flex;flex-direction:column;gap:16px}
.co-panel.co-collapsible{padding:0}
.co-collapse-toggle{width:100%;text-align:left;background:none;border:none;padding:14px;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:15px;cursor:pointer;border-bottom:1px solid #e2e8f0}
.co-collapse-toggle .chevron{transition:transform .2s}
.co-collapsible.collapsed .co-collapse-body{display:none}
.co-collapsible.collapsed .co-collapse-toggle .chevron{transform:rotate(-90deg)}
.co-collapsible.collapsed .co-collapse-toggle{border-bottom:none;padding:4px 0;font-size:14px}
.co-collapsible.collapsed{border:none!important;background:transparent!important;border-radius:0!important;padding:0!important;box-shadow:none!important;margin:0!important;min-height:auto}
.co-saved-grid .co-collapsible.collapsed + .co-collapsible.collapsed{margin-top:-12px}
.co-collapse-body{padding:12px;display:flex;flex-direction:column;gap:10px}
.co-saved-card{border:1px solid #e5e7eb;border-radius:10px;padding:10px;background:#f8fafc;display:flex;flex-direction:column;gap:6px}
.co-saved-card.active{border-color:#2563eb;box-shadow:0 0 0 1px rgba(37,99,235,.15)}
.co-saved-card h4{margin:0;font-size:15px;color:#0f172a}
.co-saved-card .meta{font-size:12px;color:#64748b;display:flex;gap:8px;flex-wrap:wrap}
.co-saved-card .numbers{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:#0f172a}
.co-saved-card .numbers span{font-weight:600}
.co-compare-toggle{display:flex;align-items:center;gap:6px;font-size:12px;color:#0f172a}
.co-compare-toggle input{margin:0}
.co-save-actions{display:flex;gap:8px;flex-wrap:wrap}
.co-save-actions .ghost-btn{flex:1 1 120px}
.co-compare-row{display:flex;flex-direction:column;gap:4px;border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#fff}
.co-compare-row h5{margin:0;font-size:14px;color:#0f172a}
.co-compare-row .meta{font-size:12px;color:#475569;margin:0}
.co-compare-row .value-row{font-size:13px;color:#0f172a}
.co-empty{padding:10px;border:1px dashed #cbd5e1;border-radius:10px;text-align:center;color:#64748b;background:#f8fafc}
@media (max-width:1000px){
.co-actions .primary,.co-actions .ghost-btn{flex:1 1 100%}
}
.subjectto-view{flex-direction:column;gap:18px;padding-right:32px}
.app.subjectto-mode:not(.fullscreen-mode):not(.sidebar-mode) .subjectto-view{width:min(100%,780px);margin-left:0;margin-right:auto}
.view.subjectto-view.active{display:flex}
.subject-hero{display:flex;gap:16px;flex-wrap:wrap;align-items:stretch;padding:16px 20px;border-radius:16px;border:1px solid #cbd5e1;background:linear-gradient(135deg,#eff6ff 0%,#fdf4ff 100%)}
.subject-hero-copy{flex:1 1 320px;min-width:220px}
.subject-pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#4338ca;margin:0}
.subject-reminder{flex:1 1 260px;min-width:240px;background:#fff7ed;border:1px dashed #f97316;border-radius:14px;padding:14px 16px;color:#7c2d12;font-weight:600;box-shadow:0 8px 16px rgba(249,115,22,.12)}
.subject-reminder-title{margin:0 0 4px;font-size:14px;font-weight:800;color:#b45309}
.subject-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.app.subjectto-mode:not(.fullscreen-mode):not(.sidebar-mode) .subject-grid:first-of-type{grid-template-columns:minmax(320px,1fr) minmax(360px,1fr)}
.app.subjectto-mode:not(.fullscreen-mode):not(.sidebar-mode) .subject-card-holding{grid-column:auto}
.app.subjectto-mode:not(.fullscreen-mode):not(.sidebar-mode) .subject-card-holding .subject-field-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.app.subjectto-mode:not(.fullscreen-mode):not(.sidebar-mode) .subject-card-holding .subject-field-grid.slim{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.subject-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:16px 18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 6px 16px rgba(15,23,42,.04)}
.subject-card-heading{display:flex;flex-direction:column;gap:4px}
.subject-card-heading h3{margin:0}
.subject-card-heading p{margin:0;color:#475569;font-size:13px}
.subject-card-label{font-size:11px;font-weight:700;color:#6366f1;letter-spacing:.1em;text-transform:uppercase;margin:0}
.subject-field{display:flex;flex-direction:column;gap:6px}
.subject-field label{font-weight:600;font-size:13px;color:#0f172a}
.subject-input{display:flex;align-items:center;gap:6px;border:1px solid #cbd5e1;border-radius:10px;padding:8px 10px;background:#fff}
.subject-input input{border:none;outline:none;background:transparent;font-size:14px;flex:1}
.subject-input span{font-weight:600;color:#475569;white-space:nowrap}
.subject-input-suffix{font-size:12px;font-weight:700;color:#94a3b8;white-space:nowrap}
.subject-field-stack .subject-combo{display:flex;flex-direction:column;gap:8px}
.subject-field-stack .subject-combo .subject-input{flex:1}
.subject-helper-text{margin:4px 0 0;font-size:12px;color:#64748b}
.subject-combo .subject-input input{text-align:right}
.app.subjectto-mode .subject-input input{text-align:left}
.subject-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.subject-field-grid.slim{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.subject-slider-block{display:flex;flex-direction:column;gap:8px}
.subject-slider-block input[type=range]{width:100%;accent-color:#22c55e}
.subject-slider-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#475569}
.subject-slider-value{font-weight:700;color:#15803d}
.subject-chip-row{display:flex;gap:8px;flex-wrap:wrap}
.subject-chip-btn{border:1px solid #c4b5fd;border-radius:999px;padding:4px 12px;background:#ede9fe;color:#6d28d9;font-weight:600;font-size:12px;cursor:pointer}
.subject-chip-btn.active{background:#7c3aed;color:#fff;border-color:#6d28d9}
.subject-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.subject-metric-grid.compact{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.subject-metric{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px}
.subject-metric-label{font-size:12px;color:#64748b;font-weight:600;margin-bottom:4px;display:block}
.subject-metric strong{font-size:18px;font-weight:800;color:#0f172a}
.subject-total-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:12px;background:#eef2ff;border:1px solid #c7d2fe}
.subject-total-row p{margin:0;font-weight:700;color:#312e81}
.subject-total-row small{display:block;font-size:12px;color:#4c1d95;font-weight:600}
.subject-highlight{background:linear-gradient(135deg,#eef2ff 0%,#e0f2fe 100%);border-color:#bfdbfe}
.subject-coc{display:flex;flex-direction:column;gap:4px}
.subject-coc-label{font-size:12px;font-weight:700;color:#2563eb;letter-spacing:.08em;text-transform:uppercase}
.subject-coc strong{font-size:36px;font-weight:900;color:#0f172a}
.subject-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#fff;border:1px solid #e0e7ff;font-weight:600;font-size:12px;color:#1e1b4b}
.subject-badge-row{display:flex;flex-wrap:wrap;gap:8px}
.subject-badge.positive{background:#dcfce7;border-color:#bbf7d0;color:#166534}
.subject-badge.negative{background:#fee2e2;border-color:#fecaca;color:#b91c1c}
.subject-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.subject-summary-grid span{font-size:12px;color:#475569;font-weight:600}
.subject-summary-grid strong{font-size:20px;font-weight:800;color:#0f172a}
.subject-buyer-card .subject-metric strong{font-size:20px}
.subject-value-positive{color:#15803d}
.subject-value-negative{color:#b91c1c}
@media (max-width:600px){
.subject-hero{padding:14px}
.subjectto-view{padding-right:16px}
}
.sellerfinancing-view{width:min(100%,880px);margin:0 auto}
.app.sellerfinance-mode:not(.fullscreen-mode):not(.sidebar-mode) .sellerfinancing-view{width:min(100%,780px);margin-left:0;margin-right:auto;padding-right:32px}
.app.doubleclose-mode .inputs{display:none}
.app.doubleclose-mode .views{padding-left:0}
.doubleclose-view{width:min(100%,883px);margin:0 auto;gap:18px}
.doubleclose-view.view.active{display:flex;flex-direction:column}
.app.doubleclose-mode:not(.fullscreen-mode):not(.sidebar-mode) .doubleclose-view{width:min(100%,783px);margin-left:0;margin-right:auto;padding-right:16px}
.hudcalc-view{width:min(100%,900px);margin:0 auto;flex-direction:column;gap:16px}
.hudcalc-view.view.active{display:flex}
.app.hudcalc-mode:not(.fullscreen-mode):not(.sidebar-mode) .hudcalc-view{width:min(100%,820px);margin-left:0;margin-right:auto;padding-right:28px}
.hudcalc-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.hudcalc-header h2{margin:0}
.hudcalc-header p{margin:4px 0 0;color:#475569;max-width:520px}
.hudcalc-pill{padding:6px 14px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.hudcalc-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:20px;box-shadow:0 18px 32px rgba(15,23,42,.06);display:flex;flex-direction:column;gap:12px}
.hudcalc-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hudcalc-card-header h3{margin:0;font-size:16px;color:#0f172a}
.hudcalc-card-header p{margin:2px 0 0;color:#475569;font-size:13px;max-width:520px}
.hudcalc-help-list{margin:4px 0 0 18px;padding:0 0 0 6px;color:#475569;font-size:13px}
.hudcalc-help-list li{margin:0 0 2px 0}
.hudcalc-help-list li:last-child{margin-bottom:0}
.hudcalc-card-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end}
.hudcalc-market-btn{border:1px solid #c7d2fe;background:#eef2ff;color:#312e81;font-size:13px;font-weight:600;padding:6px 14px;border-radius:999px;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.hudcalc-market-btn:hover{background:#e0e7ff;box-shadow:0 4px 12px rgba(49,46,129,.15)}
.hudcalc-market-btn:focus-visible{outline:2px solid #6366f1;outline-offset:2px}
.hudcalc-zip-row{display:flex;gap:8px;align-items:center}
.hudcalc-zip-row input{flex:1}
.hudcalc-zip-submit{border:1px solid #cbd5f5;background:#fff;color:#1d4ed8;font-weight:600;font-size:13px;padding:6px 12px;border-radius:10px;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.hudcalc-zip-submit:hover{background:#eff6ff;color:#0f172a;box-shadow:0 8px 20px rgba(15,23,42,.08)}
.hudcalc-zip-submit:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.hudcalc-zip-status{display:block;margin-top:6px;color:#64748b;font-size:12px}
.hudcalc-zip-status.success{color:#15803d}
.hudcalc-zip-status.error{color:#b91c1c}
.hudcalc-zip-status.loading{color:#0f172a}
.hudcalc-rent{border-radius:14px;border:1px solid #cbd5f5;padding:0;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.04);transition:border-color .2s ease,box-shadow .2s ease}
.hudcalc-rent span:first-child{padding:10px 12px;border-right:1px solid #cbd5f5;border-radius:14px 0 0 14px;background:#f8fafc;color:#475569;font-weight:600}
.hudcalc-rent input{border:none;outline:none;padding:10px 14px;font-size:16px;font-weight:700;color:#0f172a;border-radius:0 14px 14px 0}
.hudcalc-rent input:focus{box-shadow:none}
.hudcalc-rent.over-limit{border-color:#f87171;box-shadow:0 10px 28px rgba(185,28,28,.2)}
.hudcalc-rent.over-limit span:first-child{background:#fee2e2;border-color:#fecaca;color:#b91c1c}
.hudcalc-rent.over-limit input{color:#b91c1c;background:#fff1f2}
.hudcalc-section-title{position:relative;padding-left:16px;font-size:18px;font-weight:800;color:#0f172a}
.hudcalc-section-title::before{content:'';position:absolute;left:0;top:3px;bottom:3px;width:4px;border-radius:999px;background:linear-gradient(180deg,#0a4d68,#05bfdB)}
.hudcalc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.hudcalc-field-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.hudcalc-field-label-row label{margin:0}
.hudcalc-utility-btn{border:1px solid #cbd5f5;background:#fff;color:#1d4ed8;font-size:12px;font-weight:600;padding:4px 12px;border-radius:999px;cursor:pointer;white-space:nowrap;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.hudcalc-utility-btn:hover{background:#eff6ff;color:#0f172a;box-shadow:0 6px 14px rgba(15,23,42,.1)}
.hudcalc-utility-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.hudcalc-split{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.hudcalc-result-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:0 4px}
.hudcalc-result-pair span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:700}
.hudcalc-result-pair strong{font-size:22px;color:#0f172a}
.hudcalc-help-text{display:block;font-size:12px;color:#64748b;margin-top:4px}
.hudcalc-maxrent{background:#f0f6ff;border:1px solid #dbeafe;border-radius:18px;padding:16px;font-weight:800;font-size:26px;color:#0f172a;box-shadow:0 8px 22px rgba(15,23,42,.08);transition:background .2s ease,color .2s ease,border-color .2s ease}
.hudcalc-maxrent.over-limit{background:#fef2f2;border-color:#fecaca;color:#b91c1c;box-shadow:0 10px 28px rgba(185,28,28,.2)}
.hudcalc-toggle-group{display:inline-flex;align-items:center;gap:8px;background:#f1f5f9;border-radius:999px;padding:4px}
.hudcalc-toggle-btn{border:none;background:transparent;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.08em;cursor:pointer}
.hudcalc-toggle-btn.active{background:#1d4ed8;color:#fff;box-shadow:0 8px 18px rgba(29,78,216,.35)}
.hudcalc-fmr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hudcalc-fmr-grid .hudcalc-fmr-item:nth-child(n+5){margin-top:8px}
.hudcalc-fmr-item{border:1px solid #dbeafe;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px;align-items:flex-start;cursor:pointer;background:#f8fafc;color:#0f172a;font-weight:700;transition:all .15s}
.hudcalc-fmr-label{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.08em}
.hudcalc-fmr-value{font-size:22px;color:#0f172a}
.hudcalc-fmr-item.active{background:linear-gradient(135deg,#0f172a,#2563eb);border-color:#1d4ed8;color:#fff;box-shadow:0 14px 32px rgba(37,99,235,.35)}
.hudcalc-fmr-item.active .hudcalc-fmr-label{color:#c7d2fe}
.hudcalc-fmr-item.active .hudcalc-fmr-value{color:#fff}
.hudcalc-results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.hudcalc-result-card{border:1px solid #e2e8f0;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px;background:#f8fafc}
.hudcalc-result-card span{font-size:12px;color:#475569;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.hudcalc-result-card strong{font-size:26px;font-weight:900;color:#0f172a}
.hudcalc-result-card.highlight{background:linear-gradient(135deg,#0f172a,#2563eb);border-color:#1d4ed8;color:#fff;box-shadow:0 12px 30px rgba(15,23,42,.25)}
.hudcalc-result-card.highlight span{color:#c7d2fe}
.hudcalc-result-card.highlight strong{color:#fff}
.hudcalc-alert-slot{min-height:48px}
.hudcalc-alert{padding:12px 16px;border-radius:12px;border:1px solid transparent;display:flex;gap:8px;align-items:flex-start;font-weight:600;font-size:13px}
.hudcalc-alert strong{font-size:12px;text-transform:uppercase;letter-spacing:.1em}
.hudcalc-alert-success{background:#ecfdf5;border-color:#d1fae5;color:#065f46}
.hudcalc-alert-warning{background:#fffbeb;border-color:#fef3c7;color:#92400e}
.hudcalc-alert-error{background:#fef2f2;border-color:#fee2e2;color:#991b1b}
.payment-flow-horizontal{display:grid;grid-template-columns:1fr auto 1.2fr auto 1fr;gap:1.2rem;align-items:center;margin:1.5rem 0;padding:1.5rem;background:linear-gradient(135deg,rgba(10,77,104,.02) 0%,rgba(5,191,219,.02) 100%);border-radius:18px;border:1px solid #e2e8f0}
.flow-box{background:#fff;border-radius:14px;padding:1.25rem;border:2px solid #e2e8f0;box-shadow:0 6px 20px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:12px}
.tenant-box{border-color:#bfdbfe;background:linear-gradient(135deg,#fff 0%,#eff6ff 100%)}
.landlord-box{border-color:#fde68a;background:linear-gradient(135deg,#fff 0%,#fff7e6 100%)}
.assistance-box{border-color:#bbf7d0;background:linear-gradient(135deg,#fff 0%,#ecfdf5 100%)}
.flow-box-header{display:flex;align-items:center;gap:0.75rem;padding-bottom:0.5rem;border-bottom:2px solid rgba(148,163,184,.25)}
.flow-icon{width:42px;height:42px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;box-shadow:0 4px 14px rgba(15,23,42,.12)}
.flow-title{margin:0;font-size:15px;font-weight:800;color:#0f172a}
.flow-box-header small{display:block;font-size:12px;font-weight:600;color:#64748b}
.flow-items{display:flex;flex-direction:column;gap:0.6rem;font-size:13px;color:#475569}
.flow-item-row{display:flex;justify-content:space-between;gap:12px}
.flow-item-label{font-weight:600}
.flow-item-value{font-weight:800;color:#0f172a;font-size:16px}
.flow-divider{text-align:center;font-weight:700;color:#94a3b8}
.flow-total{display:flex;flex-direction:column;gap:2px}
.flow-total span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.flow-total strong{font-size:24px;color:#0f172a}
.flow-total.highlight strong{color:#b45309}
.flow-breakdown{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#475569}
.flow-breakdown div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.flow-dot{width:8px;height:8px;border-radius:50%}
.flow-dot.tenant{background:#2563eb}
.flow-dot.program{background:#16a34a}
.flow-connector{display:flex;flex-direction:column;align-items:center;gap:6px;color:#94a3b8}
.connector-line{width:32px;height:2px;background:linear-gradient(90deg,rgba(148,163,184,.2),rgba(148,163,184,.6))}
.connector-line.reverse{background:linear-gradient(90deg,rgba(148,163,184,.6),rgba(148,163,184,.2))}
.connector-arrow{font-size:22px;font-weight:700}
.flow-connector .connector-arrow{color:#a1a1aa}
.hudcalc-breakdown-grid{display:flex;gap:16px;flex-wrap:wrap}
.hudcalc-breakdown-column{border:1px solid #e2e8f0;border-radius:20px;padding:18px;background:#fff;box-shadow:0 12px 26px rgba(15,23,42,.05);display:flex;flex-direction:column;gap:8px;flex:1 1 340px;min-width:320px}
.hudcalc-breakdown-column h4{margin:0;font-size:15px;font-weight:800;color:#0f172a}
.hudcalc-breakdown-item{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px dashed #e2e8f0;font-size:14px;color:#475569}
.hudcalc-breakdown-item strong{font-size:16px;color:#0f172a}
.hudcalc-breakdown-item:last-child{border-bottom:none}
.hudcalc-breakdown-item.total{border-top:2px solid #e2e8f0;margin-top:4px;padding-top:10px}
.hudcalc-breakdown-item.total strong{font-size:18px;color:#0b6b3a}
.hudcalc-breakdown-separator{height:2px;background:#e2e8f0;margin:4px 0}
.hudcalc-breakdown-bubble{margin:8px 0;padding:12px;border-radius:12px;background:#f8fbff;border:1px solid #dbeafe;box-shadow:0 10px 20px rgba(15,23,42,.05)}
.hudcalc-breakdown-bubble .hudcalc-breakdown-item{border-bottom:1px dashed rgba(148,163,184,.4)}
.hudcalc-breakdown-bubble .hudcalc-breakdown-item:last-child{border-bottom:none}
.hudcalc-breakdown-bubble .hudcalc-breakdown-note{margin:4px 0 10px;font-size:12px;color:#475569}
.hudcalc-breakdown-bubble .hudcalc-breakdown-note.negative{color:#b91c1c}
.hudcalc-breakdown-item.total.tenant-total.negative strong{color:#b91c1c}
.hudcalc-breakdown-item.with-sign{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px}
.hudcalc-breakdown-item.with-sign span{grid-column:2/3}
.hudcalc-breakdown-item.with-sign strong{grid-column:3/4}
.hudcalc-breakdown-sign{width:20px;height:20px;border-radius:50%;background:#e0ecff;color:#1d4ed8;font-weight:900;display:flex;align-items:center;justify-content:center;font-size:12px}
.hudcalc-breakdown-item.with-sign.equals .hudcalc-breakdown-sign{background:#dbeafe;color:#0f172a}
.hudcalc-breakdown-item.with-sign.tenant-allowance-plus .hudcalc-breakdown-sign{background:#e0ecff;color:#1d4ed8}
.hudcalc-breakdown-item.with-sign.tenant-allowance-minus .hudcalc-breakdown-sign{background:#fee2e2;color:#b91c1c}
.hudcalc-breakdown-item.with-sign.assist-tenant .hudcalc-breakdown-sign{background:#fee2e2;color:#b91c1c}
.hudcalc-breakdown-subtitle{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#0ea5e9;font-weight:800;margin:6px 0}
.hudcalc-breakdown-note{font-size:12px;color:#94a3b8;font-style:italic}
@media (max-width:600px){
.hudcalc-toggle-group{width:100%;justify-content:space-between}
}
@media (max-width:760px){
  .payment-flow-horizontal{grid-template-columns:1fr;gap:1rem}
  .flow-connector{display:none}
}
@media (max-width:640px){
  .hudcalc-fmr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hudcalc-fmr-grid .hudcalc-fmr-item:nth-child(n+5){margin-top:0}
  .hudcalc-breakdown-column{min-width:0;flex-basis:100%}
}
.dc-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.dc-header h2{margin:0}
.dc-header p{margin:4px 0 0;color:#475569}
.dc-pill-row{display:flex;gap:8px;flex-wrap:wrap}
.dc-pill{padding:6px 14px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.dc-pill.accent{background:#dbeafe;color:#1e40af}
.dc-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.dc-summary-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:6px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.dc-summary-card.primary{background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;border-color:#1d4ed8}
.dc-summary-label{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#475569}
.dc-summary-card.primary .dc-summary-label{color:#c7d2fe}
.dc-summary-value{font-size:28px;font-weight:900;color:#0f172a}
.dc-summary-card.primary .dc-summary-value{color:#fff}
.dc-summary-sub{margin:0;font-size:13px;color:#64748b}
.dc-summary-card.primary .dc-summary-sub{color:#c7d2fe}
.dc-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.dc-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 26px rgba(15,23,42,.05)}
.dc-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dc-card-header h3{margin:0}
.dc-card-header p{margin:4px 0 0;color:#475569}
.dc-chip{padding:4px 12px;border-radius:999px;background:#fef3c7;color:#92400e;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.dc-label{font-size:12px;font-weight:800;color:#0ea5e9;text-transform:uppercase;letter-spacing:.08em;margin:0 0 6px}
.dc-field-block{display:flex;flex-direction:column;gap:6px}
.dc-field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.dc-field-grid.three{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.dc-dual-input{display:flex;gap:8px;align-items:flex-start}
.dc-input-pair{display:flex;gap:8px;flex:1}
.dc-percent-input{flex:0 0 120px}
.dc-amount-input{flex:1;min-width:0}
.dc-percent-input input,.dc-amount-input input{font-size:14px}
.dc-percent-input span,.dc-amount-input span{font-size:13px}
.dc-lock-toggle{display:flex;flex-direction:column;gap:4px}
.dc-lock-btn{border:1px solid #cbd5e1;border-radius:6px;padding:4px 10px;background:#fff;font-size:12px;font-weight:700;color:#475569;cursor:pointer;transition:all .15s}
.dc-lock-btn.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8;box-shadow:0 2px 6px rgba(37,99,235,.35)}
.dc-lock-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}
.dc-agent-field{margin-top:4px}
.dc-agent-row{display:flex;align-items:center;gap:10px;margin:6px 0}
.dc-agent-toggle{border:1px solid #cbd5e1;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:700;background:#fff;color:#475569;cursor:pointer;transition:all .15s;display:flex;align-items:center;gap:8px}
.dc-agent-toggle .dc-radio{width:10px;height:10px;border:2px solid currentColor;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
.dc-agent-toggle .dc-radio::after{content:'';width:4px;height:4px;border-radius:50%;background:transparent}
.dc-agent-toggle.active .dc-radio::after{background:#fff}
.dc-agent-toggle.active{background:#0ea5e9;color:#fff;border-color:#0ea5e9;box-shadow:0 2px 6px rgba(14,165,233,.35)}
.dc-agent-toggle:focus-visible{outline:2px solid #0ea5e9;outline-offset:1px}
.dc-agent-percent{font-weight:700;color:#0f172a;font-size:13px}
.dc-agent-slider{width:100%;accent-color:#0ea5e9}
.dc-agent-slider:disabled{opacity:.5;cursor:not-allowed}
.dc-agent-presets{display:flex;align-items:center;gap:8px;margin:6px 0;font-size:12px;color:#475569;flex-wrap:wrap}
.dc-agent-preset{border:1px solid #cbd5e1;border-radius:6px;padding:4px 10px;background:#fff;font-size:12px;font-weight:600;color:#475569;cursor:pointer;transition:all .15s}
.dc-agent-preset.active{background:#0ea5e9;color:#fff;border-color:#0ea5e9}
.dc-agent-preset:disabled{opacity:.5;cursor:not-allowed}
.dc-agent-preset:hover{border-color:#94a3b8}
.dc-agent-preset:focus-visible{outline:2px solid #0ea5e9;outline-offset:1px}
.dc-agent-presets.hidden{display:none}
.dc-breakdown-card{gap:20px}
.dc-breakdown-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.dc-breakdown-list li{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.dc-breakdown-label{font-size:13px;font-weight:700;color:#0f172a}
.dc-breakdown-list p{margin:2px 0 0;font-size:12px;color:#475569}
.dc-breakdown-list strong{font-size:20px;font-weight:800;color:#0f172a}
.dc-breakdown-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:14px;background:linear-gradient(135deg,#eef2ff 0%,#dbeafe 100%);border:1px solid #bfdbfe}
.dc-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.dc-info-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:0;box-shadow:0 8px 22px rgba(15,23,42,.03)}
.dc-info-card summary{cursor:pointer;list-style:none;font-weight:700;padding:12px 14px;margin:0}
.dc-info-card[open] summary{border-bottom:1px solid #e2e8f0;background:#f8fafc}
.dc-info-card summary::-webkit-details-marker{display:none}
.dc-info-body{padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.dc-info-card ul{margin:0;padding-left:18px;color:#475569;display:flex;flex-direction:column;gap:4px;font-size:12px}
.dc-info-card p{margin:0;color:#475569;font-size:12px}
.dc-note{font-size:11px;color:#475569;margin:0}
.dc-summary-value small{font-size:.5em;color:inherit;font-weight:600}
@media (max-width:640px){
.doubleclose-view{padding-right:16px;padding-left:0}
.dc-summary-value{font-size:28px}
}
.sf-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.sf-header h2{margin:0}
.sf-header p{margin:4px 0 0;color:#475569}
.sf-pill{padding:6px 16px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.sf-header-meta{position:relative;display:flex;align-items:center}
.sf-reminder-bubble{position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%);padding:6px 14px;border-radius:999px;background:#fef3c7;border:1px solid #fcd34d;color:#92400e;font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;box-shadow:0 8px 18px rgba(249,115,22,.2);pointer-events:none;z-index:1}
@media (max-width:720px){
  .sf-header-meta{width:100%;justify-content:flex-end;gap:8px;flex-wrap:wrap}
  .sf-reminder-bubble{position:static;transform:none;right:auto;order:-1;white-space:normal;text-align:right;margin-bottom:4px}
}
.sf-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}
.sf-section{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:20px;box-shadow:0 12px 28px rgba(15,23,42,.08)}
.sf-section-title{margin:0 0 16px;font-size:18px;color:#0f172a;display:flex;align-items:center;gap:8px}
.sf-section-title::before{content:'';width:4px;height:20px;background:#38bdf8;border-radius:999px}
.sf-field{margin-bottom:16px}
.sf-grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.sf-slider-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.sf-slider-header strong{font-size:14px;color:#0f172a}
.sf-reserve-inputs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:8px}
.sf-reserve-breakdown{margin:8px 0 0;font-size:13px;color:#475569}
.sf-breakdown-text{display:block;margin-top:6px;color:#475569;font-size:13px}
.sf-slider{width:100%;margin-top:6px}
.sf-slider-value{display:flex;justify-content:space-between;font-size:12px;color:#475569;margin-top:4px}
.sf-term-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.sf-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#475569}
.sf-subtext{margin:4px 0 0;color:#475569;font-size:13px}
.sf-breakdown-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.sf-breakdown-grid span{display:block;font-size:11px;color:#64748b}
.sf-breakdown-grid strong{display:block;font-size:14px;color:#0f172a}
.sf-quick-row{display:flex;flex-wrap:wrap;gap:8px}
.sf-quick-row .ghost-btn{border-radius:999px}
.sf-mamo-card,
.sf-payment-card{background:#f8fafc;border:1px solid #cbd5e1;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.sf-primary-value{font-size:36px;line-height:1.2;margin-top:4px;display:block}
.sf-results-panel{margin-top:18px}
.sf-results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:16px}
.sf-result{border:1px solid #e2e8f0;border-radius:14px;padding:14px 16px;background:#f8fafc}
.sf-result span{display:block;font-size:13px;color:#475569;font-weight:600}
.sf-result strong{display:block;font-size:26px;margin-top:6px}
.sf-result small{display:block;font-size:12px;color:#94a3b8;margin-top:4px}
.sf-result strong.positive,.sf-mamo-card strong.positive,.sf-payment-card strong.positive{color:#15803d}
.sellertradeoffs-view{width:min(100%,760px);margin:0 auto;flex-direction:column;gap:20px}
.sellertradeoffs-view.view.active{display:flex}
.app.sellertradeoffs-mode:not(.fullscreen-mode):not(.sidebar-mode) .sellertradeoffs-view{width:min(100%,760px);margin-left:0;margin-right:auto;padding-right:32px}
.tradeoffs-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.tradeoffs-header h2{margin:0}
.tradeoffs-header p{margin:4px 0 0;color:#475569;max-width:520px}
.tradeoffs-pill{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:999px;background:#ecfeff;color:#0f172a;font-weight:700;font-size:12px;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 6px 16px rgba(14,165,233,.3)}
.tradeoffs-pill.small{font-size:11px;padding:4px 10px;background:#e0e7ff;color:#312e81;box-shadow:none}
.tradeoffs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;align-items:stretch}
.tradeoffs-card,.tradeoffs-info-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:20px;box-shadow:0 12px 32px rgba(15,23,42,.08);height:100%}
.tradeoffs-card h3{margin:0 0 6px}
.tradeoffs-intro{margin:0 0 16px;color:#475569}
.tradeoffs-toggle-grid{display:flex;flex-direction:column;gap:12px}
.tradeoff-toggle{position:relative;display:block;width:100%;padding:16px 16px 16px 74px;border-radius:999px;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a;font-weight:700;font-size:16px;cursor:pointer;transition:.2s all;text-align:left}
.tradeoff-toggle::before{content:'';position:absolute;left:18px;top:50%;transform:translateY(-50%);width:42px;height:24px;border-radius:999px;background:#e2e8f0;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);transition:.2s all}
.tradeoff-toggle::after{content:'';position:absolute;left:20px;top:50%;transform:translate(0,-50%);width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(15,23,42,.3);transition:.2s all}
.tradeoff-toggle.active{border-color:#2563eb;background:#dbeafe;color:#1e3a8a;box-shadow:0 12px 24px rgba(37,99,235,.25)}
.tradeoff-toggle.active::before{background:#2563eb}
.tradeoff-toggle.active::after{transform:translate(20px,-50%);background:#fff}
.tradeoffs-info-card{display:flex;flex-direction:column;gap:10px}
.tradeoffs-empty{margin:0;font-weight:600;color:#475569;text-align:center;padding:8px}
.tradeoffs-result{display:flex;flex-direction:column;gap:10px}
.tradeoffs-result[hidden],.tradeoffs-empty[hidden]{display:none!important}
.tradeoffs-active-pills{display:flex;gap:8px;flex-wrap:wrap}
.tradeoffs-combo-label{margin:0;color:#4338ca;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.tradeoffs-description{margin:0;color:#0f172a;font-size:15px;line-height:1.6}
.tradeoffs-sacrifice{background:#fef9c3;border:1px solid #fde68a;border-radius:16px;padding:14px}
.tradeoffs-sacrifice-label{display:block;font-size:11px;font-weight:800;color:#92400e;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.tradeoffs-sacrifice p{margin:0;color:#78350f;font-weight:600}
.tradeoffs-info-card h3{margin:0;font-size:24px}
.sf-result strong.negative,.sf-mamo-card strong.negative,.sf-payment-card strong.negative{color:#b91c1c}
.sf-comparison-card{padding:16px;border-radius:14px;background:#eef2ff;border:1px solid #c7d2fe;color:#1e1b4b;font-weight:600;font-size:14px}
.hh-cost-summary{margin:16px 0;border:1px solid #e2e8f0;border-radius:12px;padding:16px;background:#f8fafc;flex:1 1 520px;max-width:none;min-width:0}
.hh-cost-summary h3{margin:0;font-size:18px;color:#0f172a}
.hh-cost-summary p{margin:4px 0 0;color:#475569;font-size:13px}
.hh-cost-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.hh-cost-copy{flex:1 1 240px;min-width:220px}
.hh-cost-grid{margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hh-cost-card{flex:1 1 180px;border:1px solid #dbeafe;border-radius:10px;background:#fff;padding:10px;display:flex;flex-direction:column;gap:4px}
.hh-cost-card span{color:#475569;font-size:12px}
.hh-cost-card strong{font-size:18px;color:#0f172a}
.hh-cost-percent{font-size:12px;color:#475569;margin-left:6px}
.hh-note-bubble,
.hh-cost-grid{min-width:0}
@media (max-width:640px){
  .hh-cost-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
}
.hh-cost-card.warning{background:#fef2f2;border-color:#fecaca}
.hh-cost-card.warning span,
.hh-cost-card.warning .hh-cost-percent{color:#991b1b}
.hh-cost-card.warning strong{color:#b91c1c}
.hh-cost-total{flex:0 0 auto;border:none;margin:0;padding:0;display:flex;flex-direction:column;align-items:flex-end;text-align:right;font-size:16px;font-weight:700;color:#0f172a}
.hh-cost-total span{font-size:12px;color:#475569;text-transform:uppercase;letter-spacing:.06em}
.hh-cost-total strong{font-size:28px;color:#0f172a}

.tab-more{position:relative;display:inline-flex}
.tab.more-toggle{border:1px solid #cbd5e1;border-radius:999px;padding:8px 12px;background:#fff;font-weight:600;color:#0f172a;box-shadow:0 2px 6px rgba(15,23,42,.08);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tab.more-toggle .caret{font-size:12px;color:#475569;transition:transform .2s ease}
.tab.more-toggle.active{border-color:#2563eb;color:#1d4ed8;box-shadow:0 4px 12px rgba(37,99,235,.25)}
.tab-more.open .tab.more-toggle .caret{transform:rotate(180deg)}
.tab-menu{position:absolute;top:calc(100% + 6px);right:0;background:#fff;border:1px solid #dbeafe;border-radius:12px;box-shadow:0 18px 32px rgba(15,23,42,.2);padding:6px;display:none;flex-direction:column;min-width:180px;z-index:60}
.tab-more.open .tab-menu{display:flex}
.tab-menu .tab{border:none;border-radius:10px;padding:10px 12px;font-size:13px;width:100%;text-align:left;justify-content:flex-start;white-space:nowrap}
.tab-menu .tab.active{background:#dbeafe;color:#0f172a}
.tab-menu .tab:not(.active):hover{background:#f1f5f9}
.sidebar-mode .tab-more .tab-menu{left:0;right:auto;min-width:220px;width:max-content;max-width:calc(100vw - 24px)}
.sidebar-mode .tab-more .tab-menu .tab{white-space:normal}
.rehab-view{width:min(100%,880px);margin:0 auto}
.app.rehab-mode:not(.fullscreen-mode):not(.sidebar-mode) .rehab-view{width:min(100%,780px);margin-left:0;margin-right:auto;padding-right:32px}
.novations-view{width:min(100%,720px);margin:0 auto}
.app.novations-mode:not(.fullscreen-mode):not(.sidebar-mode) .novations-view{width:min(100%,680px);margin-left:0;margin-right:auto;padding-right:24px}
.novations-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:12px}
.novations-header h2{margin:0;font-size:24px;color:#0f172a}
.novations-header p{margin:4px 0 0;color:#475569;font-size:13px;max-width:480px}
.novations-shortcuts{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}
.novations-shortcuts-label{font-size:11px;font-weight:700;letter-spacing:.08em;color:#c2410c;text-transform:uppercase}
.novations-shortcuts-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.novation-jump{padding:6px 10px;font-size:12px;border-radius:999px;border:1px solid #f97316;color:#b45309;background:rgba(249,115,22,.08);min-width:0}
.novation-jump:hover{background:rgba(249,115,22,.16)}
.novations-card{border:1px solid #e2e8f0;border-radius:28px;background:#fff;box-shadow:0 25px 45px rgba(15,23,42,.08);overflow:hidden}
.novations-banner{background:#b91c1c;color:#fff;text-transform:uppercase;font-weight:800;letter-spacing:.08em;font-size:13px;text-align:center;padding:14px}
.novations-table{width:100%;border-collapse:collapse}
.novations-table th,
.novations-table td{border-bottom:1px solid #f1f5f9;padding:12px 16px;vertical-align:middle}
.novations-table th{width:45%;text-align:left;font-size:15px;color:#0f172a;font-weight:700}
.novations-table th p{margin:4px 0 0;font-size:12px;color:#475569;font-weight:500}
.novations-table td{width:27%;font-size:15px;color:#0f172a}
.novations-table tr:last-child th,
.novations-table tr:last-child td{border-bottom:none}
.novations-table .prefixed,
.novations-table .suffixed{width:100%}
.novations-table .prefixed input,
.novations-table .suffixed input{font-weight:700;font-size:16px;color:#0f172a}
.novations-result{font-size:20px;font-weight:800;color:#1d4ed8;text-align:right}
.novations-output{font-weight:700;font-size:16px;color:#0f172a;text-align:right}
.novations-tertiary{color:#94a3b8;text-align:right;font-size:13px}
.novations-total-row{background:#f8fafc}
.novations-total{font-size:28px;font-weight:800;color:#0f172a;text-align:right}
.novations-total.negative{color:#b91c1c}
.novations-title{font-size:15px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#0f172a}
.novations-table input[type=number]{-moz-appearance:textfield}
.novations-table input::-webkit-outer-spin-button,
.novations-table input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.novations-table .prefixed,
.novations-table .suffixed{border-radius:12px;padding:10px 12px}
.novations-table .prefixed span:first-child,
.novations-table .suffixed span:last-child{font-weight:700;color:#94a3b8}
.saved-view{width:min(100%,880px);margin:0 auto}
.app.savedeals-mode:not(.fullscreen-mode):not(.sidebar-mode) .saved-view{width:min(100%,780px);margin-left:0;margin-right:auto;padding-right:32px}
.rehab-header{margin-bottom:16px}
.rehab-header h2{margin:0}
.rehab-header p{margin:4px 0 0;color:#475569;font-size:13px}
.rehab-layout{display:grid;grid-template-columns:minmax(220px,240px) minmax(0,1fr);gap:14px;align-items:flex-start}
.rehab-panel{min-width:0;border:1px solid #e2e8f0;border-radius:20px;padding:14px 16px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.rehab-results{min-height:100%}
.rehab-rate-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;margin:8px 0 16px}
.rehab-rate-pill{border:1px solid #e2e8f0;border-radius:16px;padding:6px 10px;background:#f8fafc;display:flex;flex-direction:column;gap:2px;font-size:11px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.06em;cursor:pointer;position:relative}
.rehab-rate-pill strong{font-size:15px;color:#0f172a;text-transform:none;letter-spacing:0}
.rehab-rate-pill[data-active="true"]{border-color:#2563eb;background:#e0f2fe;color:#1d4ed8}
.rehab-rate-edit{position:absolute;top:4px;right:6px;font-size:10px;opacity:.6;pointer-events:none}
.rehab-inputs .field{margin-bottom:10px}
.rehab-input-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:flex-start}
.rehab-input-grid .field{margin-bottom:0}
.rehab-input-grid .mini-field:first-child .suffixed{max-width:220px}
.rehab-input-grid .mini-field label{font-size:12px}
.rehab-inputs .prefixed,
.rehab-inputs .suffixed{padding:4px 8px}
.rehab-input-grid .mini-field input,
.rehab-input-grid .mini-field select{font-size:14px;padding:6px 8px}
.rehab-systems{border:1px dashed #e5e7eb;border-radius:16px;padding:12px;margin-top:4px}
.rehab-systems.compact legend{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#475569}
.rehab-system-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px;margin-top:8px}
.system-chip{border:1px solid #cbd5e1;border-radius:999px;padding:5px 10px;font-weight:600;color:#0f172a;display:flex;align-items:center;gap:6px;cursor:pointer;background:#fff;font-size:12px}
.system-chip input{appearance:none;width:16px;height:16px;border:2px solid #cbd5e1;border-radius:6px;display:flex;align-items:center;justify-content:center;background:#fff;margin:0}
.system-chip input:checked{background:#2563eb;border-color:#1d4ed8}
.system-chip input:checked::after{content:'';width:6px;height:6px;border-radius:2px;background:#fff}
.system-chip input:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.system-chip input + span{flex:1}
.system-chip input:checked + span{color:#1d4ed8}
.rehab-range-card{border:1px solid #dbeafe;border-radius:16px;padding:12px;background:#eff6ff;margin-bottom:12px}
.rehab-range-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.rehab-range-label{font-weight:700;color:#1d4ed8;font-size:13px}
.rehab-range-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rehab-range-action{border:1px solid #2563eb;border-radius:999px;padding:6px 12px;background:#fff;color:#1d4ed8;font-weight:600;font-size:12px;cursor:pointer;box-shadow:0 2px 6px rgba(37,99,235,.2);text-transform:none;white-space:nowrap}
.rehab-range-action:hover{background:#dbeafe}
.rehab-range-action:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.rehab-range-values{display:flex;align-items:flex-end;gap:10px;font-size:26px;font-weight:800;color:#0f172a}
.rehab-range-divider{font-size:14px;color:#475569}
.rehab-range-note{margin:3px 0 0;font-size:12px;color:#475569}
.rehab-dual-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:12px}
.rehab-card{border:1px solid #e2e8f0;border-radius:16px;padding:12px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.05)}
.rehab-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.rehab-card-label{font-weight:700;color:#0f172a}
.rehab-chip{padding:3px 10px;border-radius:999px;background:#e0f2fe;color:#1d4ed8;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.rehab-chip.secondary{background:#f1f5f9;color:#475569;border:1px dashed #cbd5e1}
.rehab-pirate-chips{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.rehab-card-value{font-size:28px;font-weight:800;color:#0f172a;margin-bottom:4px}
.rehab-card-note{margin:0;font-size:12px;color:#475569}
.rehab-sqft-visual{display:flex;justify-content:space-between;border-top:1px solid #e2e8f0;margin-top:6px;padding-top:4px;font-size:11px;color:#64748b;text-transform:uppercase;font-weight:700}
.rehab-pirate-chart{border:1px solid #e2e8f0;border-radius:14px;margin-top:10px;overflow-x:auto;overflow-y:hidden}
.rehab-pirate-chart .chart-row{display:grid;grid-template-columns:140px repeat(4,minmax(90px,1fr));font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.rehab-pirate-chart .chart-row span{padding:8px;text-align:center;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;color:#475569;display:flex;align-items:center;justify-content:center}
.rehab-pirate-chart .chart-row span:last-child{border-right:none}
.rehab-pirate-chart .chart-row:last-child span{border-bottom:none}
.rehab-pirate-chart .chart-row.header span{background:#ede9fe;font-weight:700;color:#5b21b6}
.rehab-pirate-chart .chart-label{background:#f8fafc;font-weight:700;color:#0f172a;text-align:left;justify-content:flex-start}
.rehab-pirate-chart .pirate-row span.active{background:#fde68a;color:#92400e;border-color:#fcd34d;font-weight:800}
.rehab-pirate-chart .pirate-row.active .chart-label{background:#fef3c7;color:#92400e;font-weight:800}
.rehab-pirate-visual,
.rehab-system-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px;margin-top:10px}
.rehab-pirate-visual span,
.rehab-system-chips span{border:1px dashed #cbd5e1;border-radius:10px;padding:6px 8px;font-size:11px;font-weight:700;color:#475569;text-align:center}
.rehab-pirate-visual span[data-active="true"],
.rehab-system-chips span[data-active="true"]{border-style:solid;border-color:#c026d3;background:#fce7f3;color:#86198f}
.rehab-cheat-sheet{margin-top:16px}
.rehab-cheat-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.rehab-cheat-header h3{margin:0;font-size:18px;color:#0f172a}
.rehab-cheat-header p{margin:4px 0 0;font-size:13px;color:#475569;max-width:420px}
.rehab-cheat-total-pill{padding:8px 14px;border-radius:999px;background:#fef3c7;color:#92400e;font-weight:700;white-space:nowrap;box-shadow:0 6px 16px rgba(249,115,22,.25)}
.rehab-cheat-groups{display:flex;flex-direction:column;gap:12px}
.rehab-cheat-group{border:none;border-radius:0;padding:0;background:transparent;--cheat-border:#e2e8f0;--cheat-border-strong:#2563eb;--cheat-bg:#fff;--cheat-bg-strong:#f0f4ff;--cheat-head:#475569;--cheat-total:#1d4ed8}
.rehab-cheat-group h4{margin:0 0 4px 6px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--cheat-head,#475569)}
.rehab-cheat-items{display:flex;flex-wrap:wrap;gap:8px;padding:4px}
.rehab-cheat-item{flex:1 1 210px;min-width:190px;display:flex;flex-direction:column;gap:6px;border:1px solid var(--cheat-border,#e2e8f0);border-radius:16px;padding:8px 12px;background:var(--cheat-bg,#fff);box-shadow:0 4px 10px rgba(15,23,42,.05);transition:border .2s,box-shadow .2s,background .2s}
.rehab-cheat-item[data-selected="true"]{border-color:var(--cheat-border-strong,#2563eb);box-shadow:0 6px 14px rgba(37,99,235,.14);background:var(--cheat-bg-strong,#f8fbff)}
.rehab-cheat-top{display:flex;align-items:center;gap:8px}
.rehab-cheat-item input[type=checkbox]{appearance:none;width:16px;height:16px;border:2px solid #cbd5e1;border-radius:50%;margin:0;flex:0 0 auto;background:#fff;cursor:pointer;transition:background .2s,border .2s}
.rehab-cheat-item input[type=checkbox]:checked{background:#2563eb;border-color:#2563eb}
.rehab-cheat-item input[type=checkbox]:checked::after{content:'';width:6px;height:6px;border-radius:50%;background:#fff}
.rehab-cheat-label{flex:1;font-weight:700;font-size:13px;color:#0f172a;cursor:pointer;line-height:1.2}
.rehab-cheat-label span{display:block}
.rehab-cheat-calc{display:flex;align-items:center;gap:6px;font-size:12px;color:#475569;margin-left:24px;flex-wrap:wrap}
.rehab-cheat-price,
.rehab-cheat-unit{display:flex;align-items:center;gap:6px;border:1px solid #cbd5e1;border-radius:999px;padding:2px 10px;background:#fff}
.rehab-cheat-price button,
.rehab-cheat-unit button{border:none;background:none;font-weight:700;font-size:13px;color:#0f172a;cursor:pointer;padding:0}
.rehab-cheat-price-input,
.rehab-cheat-unit-input{display:flex;align-items:center;gap:4px}
.rehab-cheat-price-input span,
.rehab-cheat-unit-input span{font-size:12px;color:#475569}
.rehab-cheat-price input,
.rehab-cheat-unit input{border:none;outline:none;width:70px;font-size:13px;font-weight:700;text-align:right;color:#0f172a;background:transparent}
.rehab-cheat-price[data-editing="false"] .rehab-cheat-price-input,
.rehab-cheat-unit[data-editing="false"] .rehab-cheat-unit-input{display:none}
.rehab-cheat-price[data-editing="true"] button,
.rehab-cheat-unit[data-editing="true"] button{display:none}
.rehab-cheat-qty{display:flex;align-items:center;gap:4px;border:1px solid #cbd5e1;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600;color:#475569}
.rehab-cheat-qty input{border:none;outline:none;width:38px;font-size:13px;font-weight:700;color:#0f172a;text-align:center;background:transparent}
.rehab-cheat-math{font-size:13px;font-weight:700;color:#94a3b8}
.rehab-cheat-total{margin-left:auto;font-weight:800;color:var(--cheat-total,#1d4ed8);font-size:14px}
.rehab-cheat-item[data-selected="false"] .rehab-cheat-total{color:#475569}
.rehab-cheat-group[data-theme="exterior"]{--cheat-border:#bae6fd;--cheat-border-strong:#0ea5e9;--cheat-bg:#eff6ff;--cheat-bg-strong:#dbeafe;--cheat-head:#0369a1;--cheat-total:#0284c7}
.rehab-cheat-group[data-theme="interior"]{--cheat-border:#ddd6fe;--cheat-border-strong:#8b5cf6;--cheat-bg:#f5f3ff;--cheat-bg-strong:#ede9fe;--cheat-head:#6d28d9;--cheat-total:#7c3aed}
.rehab-cheat-group[data-theme="mechanicals"]{--cheat-border:#fde68a;--cheat-border-strong:#f59e0b;--cheat-bg:#fffbeb;--cheat-bg-strong:#fef3c7;--cheat-head:#b45309;--cheat-total:#d97706}
.rehab-cheat-group[data-theme="other"]{--cheat-border:#fbcfe8;--cheat-border-strong:#db2777;--cheat-bg:#fdf2f8;--cheat-bg-strong:#fce7f3;--cheat-head:#be185d;--cheat-total:#db2777}
.rehab-cheat-group[data-theme="large"]{--cheat-border:#fecaca;--cheat-border-strong:#ef4444;--cheat-bg:#fef2f2;--cheat-bg-strong:#fee2e2;--cheat-head:#b91c1c;--cheat-total:#dc2626}
.rehab-cheat-summary-info .group{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;font-weight:600}
.rehab-cheat-summary-info .detail{font-size:11px;color:#475569}
.rehab-cheat-summary{margin-top:16px;border:1px solid #e2e8f0;border-radius:16px;padding:12px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.rehab-cheat-summary-title{margin:0 0 6px;font-weight:700;font-size:14px;color:#0f172a}
.rehab-cheat-empty{margin:6px 0 0;font-size:12px;color:#94a3b8}
.rehab-cheat-summary-list{display:flex;flex-direction:column;gap:6px}
.rehab-cheat-summary-item{display:flex;justify-content:space-between;align-items:flex-start;padding:6px 0;border-bottom:1px dashed #e2e8f0;font-size:13px}
.rehab-cheat-summary-item:last-child{border-bottom:none;padding-bottom:0}
.rehab-cheat-summary-info{display:flex;flex-direction:column;color:#0f172a}
.rehab-cheat-summary-amount{font-weight:700;color:#1d4ed8;font-size:14px}
.rehab-cheat-total-row{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding-top:8px;border-top:1px solid #e2e8f0;font-weight:700;color:#0f172a}
.rehab-cheat-total-row strong{font-size:20px;color:#1d4ed8}
@media (max-width:960px){
  .rehab-layout{grid-template-columns:1fr}
}
.settings-content{max-width:700px;margin:0 auto;padding:0}
.settings-view{padding:0;margin-left:0}
.app.settings-mode .settings-view{padding-left:0;margin-left:0}
.settings-section{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}
.settings-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.settings-section h3{margin:0 0 6px;font-size:16px;font-weight:700;color:#0f172a}
.tab-order-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.tab-order-header h3{margin:0}
.tab-order-mobile-controls{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.tab-order-mobile-controls button{align-self:flex-start}
.tab-order-mobile-hint{margin:0;font-size:12px;color:#475569}
.settings-section h4{margin:0 0 8px;font-size:12px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.05em}
.settings-description{margin:0 0 12px;font-size:12px;color:#64748b;line-height:1.4}
.tab-order-section{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tab-order-section.tap-mode .tab-order-item{cursor:pointer}
.tab-order-group{flex:1}
.tab-order-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px;max-height:280px;overflow-y:auto}
.tab-order-item{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;cursor:move;transition:background .2s,border-color .2s,box-shadow .2s}
.tab-order-item:hover{background:#f1f5f9;border-color:#cbd5e1}
.tab-order-item.dragging{opacity:.5;background:#e0f2fe;border-color:#38bdf8;box-shadow:0 4px 12px rgba(37,99,235,.2)}
.tab-order-item.selected{border-color:#0ea5e9;background:#e0f2fe}
.tab-order-item.swap-ready{border-color:#38bdf8;box-shadow:0 0 0 1px rgba(14,165,233,.4)}
.tab-order-placeholder{border:1px dashed #cbd5e1;background:#fff;cursor:default;color:#475569;flex-direction:column;align-items:flex-start;gap:4px}
.tab-order-placeholder:hover{background:#f8fafc}
.tab-order-placeholder .tab-order-label{font-weight:600}
.tab-order-placeholder-hint{font-size:11px;color:#94a3b8}
.tab-order-section.tap-mode .tab-order-placeholder{cursor:pointer}
.drag-handle{color:#94a3b8;font-size:16px;cursor:grab;user-select:none;flex-shrink:0}
.tab-order-section.tap-mode .drag-handle{opacity:.4}
.drag-handle:active{cursor:grabbing}
.tab-order-label{flex:1;font-weight:600;color:#0f172a;font-size:13px}
.account-section{display:flex;flex-direction:column;gap:12px}
.account-status{display:flex;flex-direction:column;gap:8px}
.account-status p{margin:0;font-size:12px;color:#64748b;line-height:1.4}
.account-info{display:flex;align-items:center;gap:10px;padding:10px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px}
.account-avatar{width:36px;height:36px;border-radius:50%;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-shrink:0}
.account-details{flex:1;min-width:0}
.account-name{margin:0 0 2px;font-weight:700;font-size:13px;color:#0f172a}
.account-email{margin:0;font-size:11px;color:#64748b}
.account-sign-in-link{border:0;background:none;padding:0;margin-left:6px;font-weight:700;font-size:12px;color:#2563eb;cursor:pointer;text-decoration:underline}
.account-sign-in-link:hover,.account-sign-in-link:focus{color:#1d4ed8}
.account-sign-in-link:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.view.marketinsights-view{flex-direction:column;gap:16px;width:100%;max-width:980px;margin:0 auto}
.view.marketinsights-view.active{display:flex}
.market-meta p{margin:0;font-size:13px;font-weight:600;color:#475569}
.market-form{border:1px solid #e5e7eb;border-radius:14px;padding:16px;background:#f8fafc;display:flex;flex-direction:column;gap:12px}
.market-form-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.market-field{display:flex;flex-direction:column}
.market-field[hidden]{display:none!important}
.market-field input,.market-field select{border:1px solid #cbd5e1;border-radius:10px;padding:10px;font-size:14px;font-weight:600;color:#0f172a;background:#fff}
.field-hint{margin:4px 0 0;font-size:12px;color:#64748b}
.market-form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.market-note{margin:4px 0 0;font-size:12px;color:#64748b}
.market-status{min-height:20px;font-size:13px;font-weight:600;color:#475569}
.market-status.error{color:#b91c1c}
.market-status.success{color:#15803d}
.market-loading{display:none;align-items:center;gap:8px;font-weight:700;color:#0f172a}
.market-loading.active{display:flex}
.market-empty{border:1px dashed #cbd5e1;border-radius:12px;padding:16px;text-align:center;background:#fff;color:#475569;font-weight:600}
.market-content{display:flex;flex-direction:column;gap:12px;overflow-x:hidden}
.market-tabs{display:flex;gap:8px;border-bottom:1px solid #e5e7eb;flex-wrap:wrap}
.market-tab{background:none;border:none;padding:10px 14px;border-bottom:2px solid transparent;font-weight:600;color:#475569;cursor:pointer}
.market-tab.active{color:#0f172a;border-color:#2563eb}
.market-tab:disabled{color:#cbd5e1;cursor:not-allowed}
.market-panels{display:flex;flex-direction:column;gap:16px}
.market-panel{display:none;flex-direction:column;gap:16px}
.market-panel.active{display:flex}
.market-panel-empty{border:1px solid #fecdd3;background:#fff1f2;color:#b91c1c;padding:12px;border-radius:10px;font-weight:700}
.market-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.market-card{border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;background:#fff;display:flex;flex-direction:column;gap:2px;box-shadow:0 1px 4px rgba(15,23,42,.05)}
.market-card-label{margin:0 0 4px;font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.05em}
.market-card-value{margin:0;font-size:18px;font-weight:700;color:#0f172a;line-height:1.2}
.market-card-sub{margin:4px 0 0;font-size:12px;color:#475569}
.market-highlight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.market-highlight{border:1px solid #dbeafe;border-radius:10px;padding:4px 12px;background:#eff6ff}
.market-highlight .label{font-size:12px;color:#1d4ed8;margin:0 0 2px;font-weight:600}
.market-highlight .value{margin:0;font-size:18px;font-weight:700;color:#1e3a8a;line-height:1.2}
.market-range-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.market-range-grid[hidden]{display:none!important}
.market-range-card{border:1px solid #e2e8f0;border-radius:14px;padding:14px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.06);display:flex;flex-direction:column;gap:12px}
.market-range-head h3{margin:0 0 2px;font-size:16px;color:#0f172a}
.market-range-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.market-range-values div{background:#f8fafc;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px}
.market-range-values span{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.07em}
.market-range-values strong{font-size:16px;color:#0f172a}
.market-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.market-toolbar .primary{flex:0 0 auto;width:auto;padding:8px 16px;box-shadow:0 6px 16px rgba(37,99,235,.18)}
.market-range-toggle{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.market-range-toggle.hud-mode{justify-content:flex-end}
.market-range-toggle.hud-mode .market-range-label,.market-range-toggle.hud-mode .market-range-buttons{display:none}
.market-range-label{font-size:13px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.08em}
.market-range-buttons{display:flex;gap:6px;flex-wrap:wrap}
.market-range-btn{border:1px solid #cbd5e1;background:#fff;color:#0f172a;font-size:12px;font-weight:600;padding:6px 10px;border-radius:6px;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.market-range-btn.active{background:#2563eb;color:#fff;border-color:#2563eb;box-shadow:0 4px 12px rgba(37,99,235,.3)}
.market-range-btn:disabled{opacity:.5;cursor:not-allowed}
.primary.light{background:#1d4ed8}
.market-panel-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.market-trend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.market-trend-grid[hidden]{display:none!important}
.market-trend-card{border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:10px}
.market-trend-head h3{margin:0;font-size:16px;color:#0f172a}
.market-trend-canvas-wrap{position:relative;min-height:200px}
.market-trend-canvas{width:100%;height:200px;display:block}
.market-trend-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:#94a3b8;background:#f8fafc;border-radius:12px;text-align:center;padding:0 16px}
.market-trend-empty[hidden]{display:none!important}
.market-trend-card--panel{box-shadow:0 10px 25px rgba(15,23,42,.08)}
.market-trend-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;font-weight:600;color:#475569}
.market-trend-legend .dot{width:10px;height:10px;border-radius:999px;display:inline-block;margin-right:6px}
.market-trend-legend .dot.median{background:#8b5cf6}
.market-trend-legend .dot.average{background:#3b82f6}
.market-trend-legend .dot.rent-median{background:#f59e0b}
.market-trend-legend .dot.rent-average{background:#10b981}
.market-chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;grid-auto-rows:auto}
.market-chart-card{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:10px}
.market-chart-card.compact{height:100%}
.market-chart-card.compact canvas{min-height:150px}
.market-chart-card--wide{grid-column:span 2}
@media (max-width:740px){
  .market-chart-card--wide{grid-column:auto}
}
.market-chart-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px}
.market-chart-title{flex:1 1 160px;min-width:0}
.market-chart-head h3{margin:0;font-size:16px;color:#0f172a}
.market-chart-head .market-note{margin:4px 0 0}
.hud-card-filter{display:flex;flex-direction:column;gap:4px;align-items:flex-end;font-size:11px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.05em}
.hud-card-filter label{margin:0}
.hud-card-select{border:1px solid #cbd5e1;border-radius:10px;padding:6px 26px 6px 10px;font-size:13px;font-weight:600;color:#0f172a;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%237885a0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center/12px;min-width:110px}
.hud-card-select:focus{outline:2px solid #2563eb;outline-offset:2px}
.market-chart-legend{display:flex;gap:16px;font-size:12px;font-weight:600;color:#475569;flex-wrap:wrap}
.market-chart-legend .dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:6px;background:#2563eb}
.market-chart-legend .dot.bar{background:#2563eb}
.market-chart-legend .dot.line{background:#a855f7}
.market-chart-legend .dot.bar.rent{background:#059669}
.market-chart-legend .dot.line.rent{background:#f97316}
.market-chart-canvas{width:100%;height:100%;min-height:170px;display:block}
.market-chart-empty{margin:0;text-align:center;font-size:13px;font-weight:600;color:#94a3b8}
.market-chart-empty[hidden]{display:none!important}
.market-chart-tooltip{position:fixed;z-index:200;background:#0f172a;color:#fff;padding:8px 10px;border-radius:8px;font-size:12px;font-weight:600;box-shadow:0 4px 12px rgba(15,23,42,.25);pointer-events:none;max-width:200px;line-height:1.4}
.hud-panel{display:flex;flex-direction:column;gap:16px;border:1px solid #e2e8f0;border-radius:18px;padding:18px;background:#fff;box-shadow:0 14px 32px rgba(15,23,42,.08)}
.hud-panel-head{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.hud-panel-meta{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;min-width:220px}
.hud-panel-meta-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.hud-area{margin:0;font-size:17px;font-weight:700;color:#0f172a}
.hud-zip{margin:2px 0 0;font-size:13px;font-weight:600;color:#475569}
.hud-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;min-width:280px;width:100%;max-width:520px}
.hud-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hud-summary-grid[hidden]{display:none!important}
@media (max-width:760px){
  .hud-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:500px){
  .hud-summary-grid{grid-template-columns:1fr}
}
.hud-card{border:1px solid #e2e8f0;border-radius:14px;padding:12px;background:#f8fafc;display:flex;flex-direction:column;gap:4px;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
.hud-card:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.hud-card-active{border-color:#2563eb;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.hud-card-label{margin:0;font-size:12px;color:#475569;text-transform:uppercase;letter-spacing:.08em}
.hud-card-value{margin:0;font-size:20px;font-weight:700;color:#0f172a}
.hud-card-delta{margin:0;font-size:13px;font-weight:600;color:#475569}
.hud-card-delta.positive{color:#15803d}
.hud-card-delta.negative{color:#b91c1c}
.hud-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.hud-trend-card,.hud-table-card{height:100%}
.hud-highlight{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbeafe;border-radius:12px;padding:12px;background:#eff6ff}
.hud-highlight strong{font-size:32px;font-weight:800;color:#0f172a}
.hud-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#e0f2fe;color:#0369a1}
.hud-badge.positive{background:#dcfce7;color:#15803d}
.hud-badge.negative{background:#fee2e2;color:#b91c1c}
.hud-bump-btn{align-self:flex-start;border:1px solid #cbd5e1;border-radius:999px;background:#fff;padding:8px 14px;font-size:13px;font-weight:700;color:#0f172a;cursor:pointer;transition:all .2s ease;box-shadow:0 6px 18px rgba(15,23,42,.08)}
.hud-bump-btn:hover{background:#f1f5f9}
.hud-bump-btn.active{background:#0f172a;color:#fff;border-color:#0f172a}
.hud-nav-btn{border:1px solid #bae6fd;border-radius:999px;background:#ecfeff;padding:8px 14px;font-size:13px;font-weight:700;color:#0369a1;cursor:pointer;transition:all .2s ease;box-shadow:0 6px 18px rgba(15,23,42,.08)}
.hud-nav-btn:hover{background:#dbeafe}
.hud-nav-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.hud-table td.positive{color:#15803d}
.hud-table td.negative{color:#b91c1c}
.hud-table-row-active{background:#eef2ff}
.hud-table-row-active td{font-weight:700}
.hud-note{margin:0;font-size:13px;color:#475569;font-weight:600}
@media (max-width:600px){
  .market-trend-canvas{height:160px}
  .market-trend-canvas-wrap{min-height:160px}
  .market-chart-canvas{min-height:150px}
}
.market-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.market-history-card{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:8px}
.market-history-head{display:flex;align-items:center;justify-content:space-between}
.market-table-wrap{overflow:auto}
.market-table{width:100%;border-collapse:collapse;font-size:13px}
.market-table th,.market-table td{padding:6px 8px;text-align:left;border-bottom:1px solid #e5e7eb;white-space:normal;word-break:break-word}
.market-table th{font-size:12px;color:#475569;text-transform:uppercase;letter-spacing:.04em}
.market-table td{font-weight:600;color:#0f172a}
.market-grid-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.market-breakdown{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:10px}
.market-breakdown-head h3{margin:0}
.market-breakdown-head .market-note{margin:2px 0 0}
.ghost-btn{padding:6px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#475569;font-weight:600;font-size:12px;cursor:pointer;transition:background .2s,border-color .2s}
.ghost-btn:hover{background:#f8fafc;border-color:#94a3b8}
.ghost-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.ghost-btn.active{border-color:#2563eb;background:#eff6ff;color:#2563eb}
.ghost-btn.active:hover{background:#dbeafe;border-color:#1d4ed8}
.auth-overlay{position:fixed;inset:0;background:rgba(5,9,19,.65);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}
.auth-overlay[hidden]{display:none}
.auth-card{width:min(420px,100%);background:var(--surface-color,#0f172a);color:#fff;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:16px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.auth-card label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.auth-card input{border:1px solid rgba(255,255,255,.2);background:rgba(4,9,20,.5);border-radius:10px;padding:10px 12px;color:inherit}
.auth-card input:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 2px rgba(59,130,246,.35)}
.auth-copy{margin:4px 0 0;color:rgba(255,255,255,.68)}
.auth-error{min-height:20px;margin:0;color:#ffb4b4;font-weight:600}
.auth-switch{margin:0;display:flex;align-items:center;justify-content:center;gap:6px;font-size:.95rem;color:rgba(255,255,255,.65)}
.auth-switch-btn{background:none;border:0;padding:0;color:#93c5fd;font-weight:600;cursor:pointer}
.auth-switch-btn:hover,.auth-switch-btn:focus{color:#bfdbfe;text-decoration:underline}
.auth-switch-btn:focus{outline:2px solid #2563eb;outline-offset:2px}
body.auth-locked .app{filter:blur(2px);pointer-events:none;user-select:none}
/* ── Mobile / iPhone Responsive ────────────────────────────────────────── */
@media (max-width:767px){
  body,body.househack-expanded,body.cashout-expanded,body.fullscreen-mode,body.sidebar-mode,body.savedproperties-mode{min-width:0;width:100%}
  .app,.app.househack-expanded,.app.cashout-expanded,.app.fullscreen-mode,.app.sidebar-mode,.app.savedproperties-mode{width:100%;min-height:0}
  .content{flex-direction:column}
  .inputs{width:100%;flex:none;border-right:none;border-bottom:1px solid #e5e7eb;padding-right:0;padding-bottom:12px}
  .views{padding-left:0}
  /* Prevent iOS Safari auto-zoom on input focus (requires font-size >= 16px) */
  input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}
}
