/* calc-core.css (calc-v2): styles for the one shared calculator component (WCalc). Used by Calculators, /calc and Underwriting. */
.wc{color:#eef3ee;font:15px/1.45 Inter,system-ui,-apple-system,Segoe UI,sans-serif}
.wc *{box-sizing:border-box}
.wc h1{font-size:20px;margin:0 0 2px}.wc .sub{color:#b4c2b7;font-size:15px;margin-bottom:10px}
.wc .tabs{display:flex;gap:2px;flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:12px}
.wc .tabs button{background:none;border:0;border-bottom:3px solid transparent;color:#cfe0d3;font-weight:700;font-size:15px;line-height:1.3;font-family:inherit;padding:8px 10px;cursor:pointer}
.wc .tabs button.on{color:#e8c76a;border-bottom-color:#e8c76a}
.wc .grid{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:16px;align-items:start}
@media(max-width:860px){.wc .grid{grid-template-columns:minmax(0,1fr)}}
.wc .card{background:#111d15;border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:12px;min-width:0}
.wc label,.wc .lb{display:block;font-size:15px;color:#c5d4c8;font-weight:600;margin-bottom:3px}
.wc input,.wc select{width:100%;min-width:0;background:#0f1a13;color:#f2f5fb;border:1px solid rgba(255,255,255,.2);border-radius:7px;padding:7px 8px;font-size:15px;font-family:inherit}
.wc input:focus,.wc select:focus{outline:2px solid #e8c76a;outline-offset:0}
.wc .ctl{margin-bottom:10px}.wc .ctl .row{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}
.wc .ctl .row button{background:#1d2e23;color:#eef3ee;border:1px solid rgba(255,255,255,.2);border-radius:7px;font-weight:800;font-size:18px;line-height:1;font-family:inherit;cursor:pointer;min-height:36px}
.wc .ctl input[type=range]{padding:0;border:0;background:transparent;margin-top:6px;accent-color:#e8c76a;height:22px}
.wc .ctl .h{font-size:15px;color:#9fb0a3}
.wc .kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-bottom:10px}
.wc .kpi{background:#111d15;border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:10px 12px;min-width:0}
.wc .kpi .l{font-size:15px;color:#b4c2b7}.wc .kpi .v{font-size:26px;font-weight:800;letter-spacing:-.5px;color:#fff;line-height:1.15;overflow-wrap:anywhere}.wc .kpi .s{font-size:15px;color:#b4c2b7}
.wc .kpi.gold .v{color:#e8c76a}.wc .kpi.bad .v{color:#ff9b9b}.wc .kpi.good .v{color:#8be3a5}
.wc .bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
.wc .btn{background:#1d2e23;color:#eef3ee;border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:7px 12px;font-weight:700;font-size:15px;line-height:1.3;font-family:inherit;cursor:pointer;text-decoration:none;display:inline-block}
.wc .btn.pri{background:#e8c76a;color:#16120a;border-color:#e8c76a}.wc .btn:disabled{opacity:.5}
.wc .seg{display:inline-flex}.wc .seg button{font-size:15px;font-family:inherit;padding:3px 9px;border:1px solid rgba(255,255,255,.25);background:transparent;color:#cfe0d3;cursor:pointer}
.wc .seg button.on{background:#e8c76a;color:#16120a;font-weight:800}.wc .seg button:first-child{border-radius:6px 0 0 6px}.wc .seg button:last-child{border-radius:0 6px 6px 0}
.wc .tw{overflow:auto;max-height:60vh;border:1px solid rgba(255,255,255,.1);border-radius:8px}
.wc table{border-collapse:collapse;width:100%;font-size:15px;font-variant-numeric:tabular-nums}
.wc th{position:sticky;top:0;background:#16261c;color:#cfe0d3;text-align:right;padding:6px 8px;white-space:nowrap}
.wc td{padding:4px 8px;text-align:right;border-top:1px solid rgba(255,255,255,.06);white-space:nowrap}
.wc th:first-child,.wc td:first-child{text-align:left}.wc tr.hl td{background:rgba(232,199,106,.12)}.wc tr.tot td{font-weight:800;border-top:2px solid rgba(255,255,255,.25)}
.wc .mut{color:#b4c2b7;font-size:15px}.wc .err{color:#ff9b9b;font-size:15px}.wc .ok{color:#8be3a5;font-size:15px}.wc a{color:#e8c76a}
.wc .note{font-size:15px;color:#d7cfae;background:rgba(232,199,106,.08);border:1px solid rgba(232,199,106,.25);border-radius:8px;padding:6px 9px;margin:8px 0}
.wc .msg{font-size:15px;border-radius:8px;padding:7px 10px;margin:6px 0}.wc .msg.ok{background:rgba(139,227,165,.1);border:1px solid rgba(139,227,165,.4)}.wc .msg.err{background:rgba(255,155,155,.1);border:1px solid rgba(255,155,155,.45)}
.wc .notes td input,.wc .notes td select{min-width:70px;padding:5px 6px}.wc .notes td{text-align:left}
.wc .tray{border-color:rgba(232,199,106,.4);margin-bottom:12px}.wc .tray h3,.wc .pins h3{margin:0 0 6px;font-size:15px}
.wc .tray .opts{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}.wc .tray .o{background:#0f1a13;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:6px 9px;font-size:15px;min-width:0}
.wc .tray .pick{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.wc .tray.want{outline:2px solid #e8c76a}
.wc .pins{margin:10px 0}.wc .pinrow{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.wc .pin{background:#0f1a13;border:1px solid rgba(255,255,255,.15);border-radius:10px;padding:9px 10px;font-size:15px;min-width:0}
.wc .pin b{display:block;font-size:15px;margin-bottom:4px}.wc .pin .r{display:flex;justify-content:space-between;gap:6px}
.wc .up{color:#8be3a5}.wc .dn{color:#ff9b9b}.wc .badge{font-size:15px;color:#16120a;background:#e8c76a;border-radius:5px;padding:0 5px;font-weight:800}
.wc table th,.wc table td{font-size:15px!important}
/* rework 1: one scrolling page */
.wc-page .jump{position:sticky;top:0;z-index:20;display:flex;gap:6px;overflow-x:auto;padding:8px 0;margin:0 0 10px;background:#0b140f;border-bottom:1px solid rgba(255,255,255,.12);scrollbar-width:thin}
.wc-page .jump button{flex:0 0 auto;font-weight:700;font-size:15px;line-height:1.3;font-family:inherit;color:#cfe0d3;background:#15231a;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:6px 12px;cursor:pointer}
.wc-page .jump button.on{background:#e8c76a;color:#16120a;border-color:#e8c76a}
.wc-page .wsec{scroll-margin-top:60px;padding-top:6px;margin-bottom:22px}
.wc-page .wsec>h2{font-size:19px;margin:6px 0 8px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}
.wc .cmprow{display:grid;gap:10px;overflow-x:auto;padding-bottom:6px}
.wc .cmprow .pin{min-width:240px}
.wc .tabs[hidden]{display:none!important}

/* calc2 (2026-10-18): Loan builder (chips, 2-up fields, balloon), seller view, solve, dated schedule, Compare table, print. */
.wc .g2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 10px}
.wc .g2f{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 10px}
.wc .dealbox{border:1px solid rgba(232,199,106,.35);border-radius:8px;padding:8px;margin:8px 0 10px}
.wc .chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:-2px 0 10px}
.wc .chips .lb{margin:0 2px 0 0;font-size:15px}
.wc .chips button{font-weight:700;font-size:15px;line-height:1.2;font-family:inherit;color:#cfe0d3;background:transparent;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:6px 11px;cursor:pointer;min-height:36px}
.wc .chips button.on{background:#e8c76a;color:#16120a;border-color:#e8c76a}
.wc .seg.sm{margin-left:6px;vertical-align:middle}.wc .seg.sm button{padding:1px 10px;font-size:15px;line-height:20px}
.wc .brow{display:flex;gap:6px}.wc .brow input{flex:1 1 auto;min-width:0}.wc .brow .seg{flex:0 0 auto;display:flex}.wc .brow .seg button{min-height:44px;padding:0 8px}
.wc .h.dh{margin:-6px 0 10px}
.wc details.more{margin:4px 0 10px;border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:4px 10px}
.wc details.more summary{cursor:pointer;font-weight:700;color:#e8c76a;padding:8px 0;font-size:15px}
.wc .rsr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:6px;align-items:end;margin-bottom:6px}
.wc .rsr label{font-size:15px;margin:0}.wc .rsr .btn{min-height:44px;padding:0}
.wc .kpi.hero .v{font-size:28px}.wc .kpi.hero .due{font-size:17px;font-weight:700;color:#eef3ee;letter-spacing:0}.wc .kpi.hero .s{color:#eef3ee}
.wc #wc_paycard{cursor:pointer}.wc #wc_paycard:focus{outline:2px solid #e8c76a}
.wc .solve,.wc .sellerv{margin:0 0 10px}.wc .solve .seg button{min-height:40px}
.wc .sellerv .kpis{margin:6px 0;gap:8px}.wc .sellerv .kpi{padding:8px 10px}.wc .sellerv .kpi .v{font-size:21px}.wc .sellerv .ct{font-size:15px;color:#d7e2d9}.wc .sellerv .dsc input{max-width:220px}
.wc .at{margin:6px 0}.wc .at input{max-width:260px}.wc .pl{margin:4px 0}
.wc table.sch td .dt{display:block;font-size:13px!important;color:#9fb0a3;font-weight:400;line-height:1.2}
.wc table.sch tr.bl td{background:rgba(232,199,106,.24);font-weight:800}
.wc .cmpw{overflow-x:auto;border:1px solid rgba(255,255,255,.1);border-radius:8px}
.wc table.cmpt th,.wc table.cmpt td{text-align:right;white-space:nowrap;vertical-align:top}
.wc table.cmpt th:first-child,.wc table.cmpt td:first-child{position:sticky;left:0;z-index:2;background:#16261c;text-align:left;white-space:normal;min-width:110px;max-width:140px}
.wc table.cmpt th{position:static}.wc table.cmpt th .mut{font-weight:400;white-space:normal;min-width:160px}
#wc_printout{display:none}
@media print{html,body{background:#fff!important}body>*:not(#wc_printout){display:none!important}#wc_printout{display:block!important;color:#000;font:11px/1.35 Arial,sans-serif}
 #wc_printout h1{font-size:16px;margin:0 0 6px}#wc_printout .pt{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px;margin-bottom:8px}
 #wc_printout table{width:100%;border-collapse:collapse}#wc_printout th,#wc_printout td{border-bottom:1px solid #bbb;padding:2px 5px;text-align:right}
 #wc_printout th:first-child,#wc_printout td:first-child{text-align:left}#wc_printout thead{display:table-header-group}#wc_printout tr{break-inside:avoid}
 #wc_printout tr.hl td{background:#f3e7c2;font-weight:700;-webkit-print-color-adjust:exact;print-color-adjust:exact}#wc_printout tr.tot td{font-weight:700;border-top:2px solid #000}#wc_printout .pf{margin-top:6px;font-size:10px}
 @page{size:letter;margin:12mm}}
/* tabs: calctabs1 phone tabs moved here from calc.html; calc2 C11 = real tabs at every width (only pages that pass mobileTabs) */
.wct-res{display:none}
.wc-tabs .wsec:not(.act){display:none}
.wc-tabs .wsec{padding-top:0;margin-bottom:12px}
.wc-tabs .wsec>h2{display:none}
.wc-tabs .jump button.tab-on{background:#e8c76a;color:#16120a;border-color:#e8c76a}
@media(min-width:861px){.wc-tabs .tw{max-height:214px}.wc table.sch td .dt{display:inline;margin-left:8px}.wc .at{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.wc .at label{margin:0}.wc .at #wc_atr{flex-basis:100%}}
@media(min-width:1100px){.wc .duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}.wc .duo .sellerv .kpis{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
 .wc .grid.uwg{grid-template-columns:minmax(0,600px) minmax(0,1fr)}.wc .grid.uwg .g2f{grid-template-columns:repeat(3,minmax(0,1fr))}.wc .grid.uwg .note{margin:4px 0}}
@media(min-width:769px){.wc .cmpt td:first-child{min-width:170px}}

@media(max-width:420px){.wc-tabs table.sch th,.wc-tabs table.sch td{font-size:13px!important;padding-left:3px!important;padding-right:3px!important}.wc-tabs table.sch td .dt{font-size:12px!important}}
@media(max-width:380px){.wc-tabs table.sch th,.wc-tabs table.sch td{font-size:var(--fs-small,13px)!important;padding-left:2px!important;padding-right:2px!important}}
.wc .sub-m{display:none}
@media(max-width:768px){
.wc-tabs .sub-m{display:inline}
.wc-tabs .jump{flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain}
.wc-tabs .jump::-webkit-scrollbar{display:none}
.wc-tabs .wct-res:not([hidden]){display:grid;position:sticky;top:var(--wct-top,58px);z-index:19;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 10px;padding:6px 0 8px;background:#1A2B24;border-bottom:1px solid rgba(197,165,90,.3);box-shadow:0 6px 10px -8px rgba(0,0,0,.6)}
.wct-res .c{background:#223830;border:1px solid rgba(197,165,90,.2);border-radius:8px;padding:5px 8px;min-width:0}
.wct-res .c[data-act]{cursor:pointer}
.wct-res .c.e{grid-column:1/-1;color:#ff9b9b;font-size:15px}
.wct-res .l{font-size:14px;line-height:1.25;color:#b4c2b7;font-weight:600}
.wct-res .v{font-size:18px;line-height:1.2;font-weight:800;color:#fff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wct-res .v .d{display:block;font-size:13px;font-weight:600;color:#cfe0d3}
.wct-res .c:first-child .v{color:#e8c76a}
.wc-tabs .bar .btn{flex:1 1 auto}
.wc-tabs .tw th,.wc-tabs .tw td{padding-left:4px;padding-right:4px}
.wc-tabs table.sch .ic{display:none}
.wc-tabs table.sch th,.wc-tabs table.sch td{font-size:14px!important}
.wc-tabs table.sch td:first-child{white-space:normal;min-width:56px}
.wc-tabs .sub-d{display:none}
.wc-tabs #wc_cs .tw td:first-child{white-space:normal;min-width:120px}
.wc-tabs .kpi.hero .v{font-size:24px}
.wc-tabs table.notes,.wc-tabs table.notes tbody{display:block}
.wc-tabs table.notes thead{display:none}
.wc-tabs table.notes tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;padding:8px;border-top:1px solid rgba(255,255,255,.1)}
.wc-tabs table.notes tr:first-child{border-top:0}
.wc-tabs table.notes td{display:block;padding:0;border:0;text-align:left;white-space:normal;min-width:0}
.wc-tabs table.notes td input,.wc-tabs table.notes td select{min-width:0;width:100%}
.wc-tabs table.notes td::before{display:block;font-size:15px;color:#b4c2b7;font-weight:600;margin-bottom:2px}
.wc-tabs table.notes td:nth-child(1)::before{content:"Note"}.wc-tabs table.notes td:nth-child(2)::before{content:"Balance $"}
.wc-tabs table.notes td:nth-child(3)::before{content:"Rate %"}.wc-tabs table.notes td:nth-child(4)::before{content:"Years"}
.wc-tabs table.notes td:nth-child(5)::before{content:"Interest-only"}.wc-tabs table.notes td:nth-child(6)::before{content:"Starts month"}
.wc-tabs table.notes td:nth-child(7)::before{content:"Balloon (years)"}.wc-tabs table.notes td:nth-child(8)::before{content:"Payment"}
.wc-tabs table.notes td.pay{align-self:end;font-weight:700;padding-bottom:10px}
.wc-tabs table.notes td:nth-child(9){align-self:end}.wc-tabs table.notes td:nth-child(9) .btn{width:100%;min-height:44px}
}

/* calc2a: Custom term / balloon chip + inline editor */
.wc .chips button.cx{border-style:dashed}
.wc .chips button.cx.on{border-style:solid}
.wc .chips button.cx.open{box-shadow:0 0 0 2px rgba(232,199,106,.55)}
.wc .cust{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:-4px 0 10px;padding:8px;border:1px solid rgba(232,199,106,.35);border-radius:10px;background:rgba(232,199,106,.06)}
.wc .cust .lb{flex-basis:100%;margin:0;font-size:14px;color:#cfe0d3}
.wc .cust input{flex:1 1 90px;min-width:0;max-width:140px;font-size:16px!important}
.wc .cust .btn{min-height:40px}

/* calc2b */
.wc .sh{display:none}
.wc .ib{background:none;border:0;color:#e8c76a;font:inherit;font-size:15px;line-height:1;padding:0 4px;margin:0;cursor:pointer;vertical-align:baseline}
.wc .hint{display:block;font-size:14px;font-weight:500;color:#d7e2d9;margin-top:3px;line-height:1.35}
.wc .hint[hidden]{display:none}
.wc details.how{margin:6px 0 0}
.wc details.how>summary{cursor:pointer;color:#e8c76a;font-size:14px;font-weight:600;list-style:none;display:inline-flex;align-items:center}
.wc details.how>summary::-webkit-details-marker{display:none}
.wc details.how>summary::before{content:'▸';margin-right:6px}
.wc details.how[open]>summary::before{content:'▾'}
.wc details.how .mut{margin-top:4px}
.wc .ish{color:#d7e2d9}
.wc .rcpt{font-variant-numeric:tabular-nums;border-top:1px dashed rgba(232,199,106,.4);padding-top:6px}
.wc .snote{margin-top:4px;font-weight:500}
.wc table.sch td,.wc table.sch th{font-variant-numeric:tabular-nums}
@media(max-width:768px){
 .wc-tabs .jump{position:static;display:flex;gap:4px;overflow-x:visible}
 .wc-tabs .jump button{flex:1 1 auto;min-width:0;padding:0 6px;font-size:14px;white-space:nowrap;min-height:44px}
 .wc-tabs .lg{display:none}.wc-tabs .sh{display:inline}
 .wc-tabs .wct-res:not([hidden]){top:0;padding-top:calc(6px + env(safe-area-inset-top))}
 .wc-tabs section.wsec button:not(.ib),.wc-tabs .chips button,.wc-tabs .seg button,.wc-tabs .seg.sm button{min-height:44px}
 .wc-tabs .chips{gap:4px}.wc-tabs .chips button{padding:0 8px}.wc-tabs .chips .lb{font-size:14px;margin-right:2px}
 .wc-tabs .ib{min-width:44px;min-height:44px;margin:-14px -10px -14px -6px;padding:0}
 .wc-tabs details>summary{min-height:44px;display:flex;align-items:center}
 .wc-tabs details.more>summary::before{content:'▸';margin-right:6px}.wc-tabs details.more[open]>summary::before{content:'▾'}.wc-tabs details.more>summary::-webkit-details-marker{display:none}
 .wc-tabs input:not([type=range]),.wc-tabs select{font-size:16px;min-height:44px}
 .wc-tabs .ctl .row{grid-template-columns:44px minmax(0,1fr) 44px}
 .wc-tabs table.sch th,.wc-tabs table.sch td{font-size:13px!important;padding-left:3px!important;padding-right:3px!important}
 .wc-tabs table.sch td:first-child{min-width:0}
}
@media(max-width:380px){.wc-tabs table.sch th,.wc-tabs table.sch td{font-size:var(--fs-small,13px)!important;padding-left:2px!important;padding-right:2px!important}}

/* audit3a */
@media(max-width:768px){
 .wc-tabs .chips button{min-width:44px;padding:0 8px}
 .wc-tabs .jump.fl-rto [data-j=rto] .lg,.wc-tabs .jump.fl-uw [data-j=uw] .lg,.wc-tabs .jump.fl-st [data-j=st] .lg{display:inline}
 .wc-tabs .jump.fl-rto [data-j=rto] .sh,.wc-tabs .jump.fl-uw [data-j=uw] .sh,.wc-tabs .jump.fl-st [data-j=st] .sh{display:none}
 /* schedule: two lines per row -> line 1: # / Date . Pmt ; line 2: Princ . Int . Bal (no inner sideways scroll) */
 .wc-tabs table.sch,.wc-tabs table.sch thead,.wc-tabs table.sch tbody{display:block;width:100%}
 .wc-tabs table.sch thead{position:sticky;top:0;z-index:2;background:#2A4438}
 .wc-tabs table.sch tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:6px;padding:5px 6px;border-top:1px solid rgba(255,255,255,.08)}
 .wc-tabs table.sch th,.wc-tabs table.sch td{display:block;border:0!important;padding:1px 0!important;text-align:right;min-width:0;white-space:nowrap;font-size:14px!important;position:static}
 .wc-tabs table.sch th{background:transparent}
 .wc-tabs table.sch tr>:nth-child(1){grid-column:1/3;grid-row:1;text-align:left;white-space:normal}
 .wc-tabs table.sch tr>.pc{display:block!important;grid-column:3;grid-row:1;font-weight:700}
 .wc-tabs table.sch tr>:nth-child(4){grid-column:1;grid-row:2}
 .wc-tabs table.sch tr>.ic{display:block!important;grid-column:2;grid-row:2}
 .wc-tabs table.sch tr>:nth-child(5){grid-column:3;grid-row:2}
 .wc-tabs table.sch td:first-child{min-width:0}
 .wc-tabs table.sch td .dt{display:inline;margin-left:6px;font-size:13px!important}
 .wc-tabs table.sch tr.hl{background:rgba(232,199,106,.12)}.wc-tabs table.sch tr.bl{background:rgba(232,199,106,.24)}
 .wc-tabs table.sch tr.hl td,.wc-tabs table.sch tr.bl td{background:transparent!important}
 .wc-tabs table.sch tr.tot td{border-top:0!important}.wc-tabs table.sch tr.tot{border-top:2px solid rgba(255,255,255,.25)}
}
@media(max-width:380px){.wc-tabs table.sch th,.wc-tabs table.sch td{font-size:13px!important}}
@media(max-width:768px){.wc-tabs .seg button,.wc-tabs .jump button{min-width:44px}}

/* audit3b: strip Interest % hint (44px tap target in the tile corner; text opens as a full-width line under the tiles) */
.wct-res .c.hc{position:relative}
.wct-res .sib{position:absolute;top:0;right:0;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:4px 5px 0 0;display:flex;align-items:flex-start;justify-content:flex-end;background:none;border:0;color:#e8c76a;font-size:14px;line-height:1;cursor:pointer}
.wct-res .c.hc .l{padding-right:14px}
.wct-res .c.hint1{grid-column:1/-1;font-size:14px;line-height:1.35;color:#d7e2d9;font-weight:500}
/* calc3-app: phone app layout (<=768px, root gets .wc-app from calc-core.js). The page never scrolls: header picker, results strip, one section, bottom tab bar. */
@media(max-width:768px){
html.wcapp,html.wcapp body{height:100%;overflow:hidden!important;overscroll-behavior:none;touch-action:manipulation}
html.wcapp body{position:fixed;inset:0;width:100%}
.wc-app{position:fixed!important;left:0;right:0;top:var(--vvt,0px);height:var(--vvh,100dvh);margin:0!important;max-width:none!important;padding:0 calc(8px + env(safe-area-inset-right)) 0 calc(8px + env(safe-area-inset-left))!important;
  display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:none;box-sizing:border-box;background:#1A2B24;z-index:1}
.wc-app>*{flex:0 0 auto;min-width:0}
.wc-app>.wct-sent,.wc-app>h1,.wc-app>.sub{display:none!important}
.wc-tabs.wc-app .jump{order:1;position:static;margin:0 calc(-8px - env(safe-area-inset-right)) 0 calc(-8px - env(safe-area-inset-left));padding:calc(4px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 4px calc(8px + env(safe-area-inset-left));display:flex;gap:3px;background:#1A2B24;border-bottom:0}
.wc-tabs.wc-app .jump button{flex:1 1 auto;min-height:44px;height:44px;padding:0 5px;font-size:14px;border-radius:10px;min-width:44px}
.wc-tabs.wc-app .wct-res:not([hidden]){order:2;position:static;margin:0 0 6px;padding:2px 0 6px;gap:5px;box-shadow:none}
.wc-app .wct-res .c{padding:3px 7px;border-radius:8px}
.wc-app .wct-res .l{font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wc-app .wct-res .v{font-size:17px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wc-app .wct-res .v .d{font-size:var(--fs-cap,12px);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wc-app .wct-res .c.hc .l{padding-right:16px}
.wc-app #wcp_tray{order:3;display:none}
.wc-app section.wsec.act{order:4;flex:1 1 0;min-height:0;margin:0!important;padding:0!important;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;scroll-margin:0}
.wc-app>.wct-bar{order:6}
.wc-app section.wsec.act>.wsb,.wc-app section.wsec.act>.wsb>.wc,.wc-app #wc_body,.wc-app #wc_body>.grid,.wc-app #wc_body>.grid>[data-wp]:not(#wc_ctl){display:flex;flex-direction:column;flex:1 1 auto;min-height:0;gap:6px}
.wc-app #wc_body>.grid{display:flex!important;margin:0}
.wc-app #wc_body>.grid>#wc_ctl{flex:0 0 auto}
.wc-app section.wsec .tabs{display:none!important}
.wc-app .card{padding:8px;margin:0!important;border-radius:10px}
.wc-app #wc_ctl.card{background:transparent;border:0;padding:0}
.wc-app .bar{margin:0;gap:6px;flex-wrap:wrap}
.wc-app .msg{margin:0}
/* panes: only the current section's blocks show */
.wc-app section.wsec.act [data-wp="none"]{display:none!important}
.wc-app[data-pane=terms] section.act [data-wp]:not([data-wp~=terms]),.wc-app[data-pane=results] section.act [data-wp]:not([data-wp~=results]),
.wc-app[data-pane=schedule] section.act [data-wp]:not([data-wp~=schedule]),.wc-app[data-pane=seller] section.act [data-wp]:not([data-wp~=seller]),
.wc-app[data-pane=notes] section.act [data-wp]:not([data-wp~=notes]),.wc-app[data-pane=income] section.act [data-wp]:not([data-wp~=income]),
.wc-app[data-pane=expenses] section.act [data-wp]:not([data-wp~=expenses]),.wc-app[data-pane=loan] section.act [data-wp]:not([data-wp~=loan]),
.wc-app[data-pane=scen] section.act [data-wp]:not([data-wp~=scen]),.wc-app[data-pane=table] section.act [data-wp]:not([data-wp~=table]){display:none!important}
/* bottom tab bar */
.wct-bar[hidden]{display:none!important}
.wc-app>.wct-bar{display:flex;gap:4px;margin:0 calc(-8px - env(safe-area-inset-right)) 0 calc(-8px - env(safe-area-inset-left));padding:5px calc(8px + env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));background:#14231d;border-top:1px solid rgba(197,165,90,.3)}
.wct-bar button{flex:1 1 0;min-width:0;min-height:44px;height:46px;border:0;border-radius:10px;background:transparent;color:#cfe0d3;font:700 14px Inter,system-ui,sans-serif;padding:0 4px;white-space:nowrap;cursor:pointer}
.wct-bar button.on{background:#2A4438;color:#e8c76a;box-shadow:inset 0 -3px 0 #e8c76a}
.wc-app.kb>.wct-bar,.wc-app.kb>.jump{display:none!important}
/* Terms: compact rows (label left, box right); steppers and sliders step aside on phones (the arrow keys and the pills still work) */
.wc-app .ctl{display:grid;grid-template-columns:var(--lw,92px) minmax(0,1fr);align-items:center;column-gap:8px;margin:0}
.wc-app .ctl>label,.wc-app .ctl>.lb{margin:0;font-size:14px;line-height:1.2;color:#cfe0d3;font-weight:600}
.wc-app .ctl .row{grid-template-columns:minmax(0,1fr)!important;display:grid}
.wc-app .ctl .row button[data-step],.wc-app .ctl input[type=range]{display:none!important}
.wc-app .ctl>.h{grid-column:1/-1;display:none}
.wc-app input:not([type=range]),.wc-app select{min-height:44px;height:44px;padding-top:0;padding-bottom:0;box-sizing:border-box}
.wc-app #wc_ctl{display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start}
.wc-app #wc_ctl>*{flex:1 1 100%;min-width:0;margin:0}
.wc-app #wcs_am #wc_ctl>.g2.wct-g2b{display:contents}
.wc-app #wcs_am #wc_ctl>.ctl[data-k=P]{order:1}
.wc-app #wcs_am #wc_ctl>.ctl[data-k=c],.wc-app #wcs_am #wc_ctl>.ctl[data-k=dp]{order:2}
.wc-app #wcs_am #wc_dh{order:3;margin:-4px 0 0;font-size:var(--fs-small,13px);line-height:1.2;min-height:0}
.wc-app #wcs_am #wc_ctl>.g2:not(.wct-g2b){order:4;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.wc-app #wcs_am .g2>.ctl{--lw:auto;grid-template-columns:auto minmax(0,1fr);column-gap:6px}
.wc-app #wcs_am #wc_tc,.wc-app #wcs_am #wc_tc+#wc_cust{order:5}
.wc-app #wcs_am .ctl[data-k=b]{order:6}
.wc-app #wcs_am #wc_bc,.wc-app #wcs_am #wc_bc+#wc_cust,.wc-app #wcs_am #wc_bh{order:7}
.wc-app #wcs_am #wc_bh{margin:-4px 0 0;font-size:var(--fs-small,13px);line-height:1.2}
.wc-app #wcs_am .ctl.wct-fp{order:8}
.wc-app #wcs_am #wc_more,.wc-app #wcs_am #wc_ctl>details.how{order:9;flex:1 1 40%}
.wc-app #wcs_am .ctl[data-k=b] .brow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.wc-app #wcs_am .ctl[data-k=b],.wc-app #wcs_am .ctl.wct-fp{grid-template-columns:var(--lw,92px) minmax(0,1fr)}
.wc-app .ctl[data-k=c]>label,.wc-app .ctl[data-k=dp]>label{display:flex;align-items:center;justify-content:space-between;gap:4px}
.wc-app #wcs_am .ctl[data-k=c],.wc-app #wcs_am .ctl[data-k=dp]{grid-template-columns:auto minmax(0,1fr)}
.wc-app .ctl[data-k]>label .seg{margin:0}
/* short visible labels on phones (the full label stays the field's accessible name) */
.wc-app #wcs_am .ctl[data-k=P]>label,.wc-app #wcs_am .ctl[data-k=c]>label,.wc-app #wcs_am .ctl[data-k=dp]>label,.wc-app #wcs_am .ctl[data-k=r]>label,.wc-app #wcs_am .ctl[data-k=n]>label,.wc-app #wcs_am .ctl[data-k=b]>label,
.wc-app #wcs_rto .ctl>label,.wc-app #wcs_st .ctl[data-k]>label{font-size:0!important}
.wc-app #wcs_am .ctl[data-k]>label::before,.wc-app #wcs_rto .ctl>label::before,.wc-app #wcs_st .ctl[data-k]>label::before{font-size:14px;line-height:1.2;font-weight:600;color:#cfe0d3}
.wc-app #wcs_am .ctl[data-k=P]>label::before{content:"Price $"}
.wc-app #wcs_am .ctl[data-k=c]>label::before{content:"Down $"}
.wc-app #wcs_am .ctl[data-k=dp]>label::before{content:"Down %"}
.wc-app #wcs_am .ctl[data-k=r]>label::before{content:"Rate %"}
.wc-app #wcs_am .ctl[data-k=n]>label::before{content:"Term yrs"}
.wc-app #wcs_am .ctl[data-k=b]>label::before{content:"Balloon after"}
.wc-app #wcs_rto .ctl[data-k=P]>label::before{content:"Price $"}
.wc-app #wcs_rto .ctl[data-k=fee]>label::before{content:"Option fee $"}
.wc-app #wcs_rto .ctl[data-k=rent]>label::before{content:"Rent / month $"}
.wc-app #wcs_rto .ctl[data-k=pct]>label::before{content:"Rent credit %"}
.wc-app #wcs_rto .ctl[data-k=y]>label::before{content:"Years to buy"}
.wc-app #wcs_st .ctl[data-k=c]>label::before{content:"Down $"}
.wc-app #wcs_st .ctl[data-k=cr]>label::before{content:"Payment credit $"}
.wc-app #wcs_rto .ctl,.wc-app #wcs_st .ctl{--lw:122px}
.wc-app .ctl>label .seg button,.wc-app .seg button{font-size:14px}
.wc-app #wcs_rto .ctl:not([data-k]){grid-template-columns:minmax(0,1fr) auto}
.wc-app #wcs_rto .ctl:not([data-k])>.lb{font-size:14px}
/* pills */
.wc-app .chips{display:flex;flex-wrap:nowrap;gap:4px;align-items:center;margin:0}
.wc-app .chips button{flex:1 1 auto;min-width:44px;padding:0 4px!important;min-height:44px;font-size:14px}
.wc-app .chips .lb{flex:0 0 auto;font-size:13px!important;margin-right:2px;min-width:52px;color:#cfe0d3}
.wc-app .chips button.cx{flex:1.4 1 auto}
@media(max-width:380px){.wc-app .chips .lb{min-width:0;font-size:12px!important}.wc-app .chips{gap:3px}.wc-app .chips button .u{font-size:12px}}
.wc-app .cust{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px;align-items:center;margin:0;padding:0}
.wc-app .cust .lb{font-size:13px;margin:0}
.wc-app .cust .btn{min-height:44px;padding:0 10px}
/* sheet triggers in the Terms pane */
.wc-app details.more>summary,.wc-app details.how>summary{min-height:44px;height:44px;display:flex;align-items:center;justify-content:center;padding:0 8px;border:1px solid rgba(197,165,90,.3);border-radius:10px;background:#223830;font-size:14px;font-weight:700;color:#e8c76a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;list-style:none;cursor:pointer}
.wc-app details.more>summary{font-size:0}
.wc-app details.more>summary::before{content:'More terms ›'!important;font-size:14px;margin:0!important}
.wc-app details.how>summary::-webkit-details-marker,.wc-app details.more>summary::-webkit-details-marker{display:none}
.wc-app details.how>summary::after{content:' ⓘ';margin-left:4px}
.wc-app details.how>.mut{display:none}
.wc-app details.how,.wc-app details.more{margin:0}
/* sheets: advanced terms, hints, How it's calculated, a note's fields, the seller-option deal */
.wc-app .wct-bd{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:70}
.wc-app .wct-bd[hidden],.wc-app .wct-sheet[hidden]{display:none!important}
.wc-app .wct-sheet,.wc-app details.more[open],.wc-app .wct-live{position:fixed!important;left:0;right:0;bottom:var(--kbb,0px);top:auto;z-index:80;max-height:calc(var(--vvh,100dvh) - 24px);overflow-y:auto;overscroll-behavior:contain;
  background:#223830;border:1px solid rgba(197,165,90,.35);border-bottom:0;border-radius:16px 16px 0 0;padding:6px calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left))!important;margin:0!important;box-shadow:0 -10px 30px rgba(0,0,0,.5);display:block!important;box-sizing:border-box}
.wc-app .wct-sheet .sh-h{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:-6px;background:#223830;padding:4px 0 6px;font-size:16px;color:#fff}
.wc-app .wct-sheet .sh-b{font-size:15px;line-height:1.45;color:#dbe7de}
.wc-app .wct-sheet .sh-b .tw{max-height:none!important}
.wc-app .wct-sheet .btn,.wc-app .sh-x{min-height:44px;min-width:64px}
.wc-app details.more[open]>summary{position:sticky;top:-6px;z-index:2;justify-content:space-between;border:0;border-radius:0;background:#223830;padding:0;margin:0 0 4px;color:#fff}
.wc-app details.more[open]>summary::before{content:'More terms'!important;font-size:16px}
.wc-app details.more[open]>summary::after{content:'Done';font-size:14px;color:#e8c76a;border:1px solid rgba(197,165,90,.4);border-radius:10px;min-width:64px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.wc-app details.more[open] .ctl{--lw:150px;margin:0 0 6px}
.wc-app details.more[open] .ctl>.h{display:block;font-size:var(--fs-small,13px);margin:2px 0 0;color:#b4c2b7}
.wc-app details.more[open] .ctl:not([data-k]){display:block}
.wc-app details.more[open] .rsr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:6px;align-items:end;margin:0 0 6px}
.wc-app details.more[open] .rsr label{font-size:13px}
.wc-app details.more[open] #wc_rsadd{min-height:44px;margin:4px 0}
.wc-app .wct-note{font-size:13px;margin:10px 0 0}
/* Results / Seller: compact cards */
.wc-app .kpis{gap:6px;margin:0;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.wc-app .kpi{padding:6px 8px;margin:0}
.wc-app .kpi .l{font-size:var(--fs-small,13px);line-height:1.2}
.wc-app .kpi .v{font-size:19px!important;line-height:1.2}
.wc-app .kpi .s{font-size:12px;line-height:1.25;margin:1px 0 0}
.wc-app .kpi.hero .v{font-size:21px!important}
.wc-app .kpi .ib,.wc-app .ct .ib{margin:-14px -10px -14px -6px}
.wc-app .ct{font-size:13px;line-height:1.3;margin:0}
.wc-app .duo{display:flex;flex-direction:column;gap:6px;margin:0}
.wc-app .solve label,.wc-app .dsc label{font-size:13px;display:block;margin:2px 0}
.wc-app .solve .lb,.wc-app .sellerv>.lb{font-size:13px;margin:0 0 2px}
.wc-app .solve .bar{margin-top:6px}
.wc-app #wc_sf button{padding:0 6px}
/* Schedule: tools on top, the schedule list scrolls inside its own panel (the page does not) */
.wc-app .at{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:4px 6px;align-items:center;margin:0}
.wc-app .at label{font-size:var(--fs-small,13px);line-height:1.2;margin:0}
.wc-app .at #wc_atr{grid-column:1/-1;font-size:var(--fs-small,13px)}
.wc-app .at #wc_atr:empty{display:none}
.wc-app #wc_pl{font-size:var(--fs-small,13px);margin:0}
.wc-app #wc_pl:empty{display:none}
.wc-app .tw.wct-list{flex:1 1 0;min-height:60px;max-height:none!important;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin:0}
.wc-app [data-wp~=schedule].bar .btn,.wc-app [data-wp~=results].bar .btn{min-height:44px;padding:0 10px;flex:1 1 auto}
/* Underwrite */
.wc-app .g2f{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 8px;margin:0}
.wc-app .g2f label{font-size:var(--fs-small,13px);line-height:1.2;display:block;margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wc-app .dealbox{padding:6px 8px;margin:0}
.wc-app .dealbox>.lb{font-size:var(--fs-small,13px);margin:0 0 4px}
.wc-app #wcs_uw .note{margin:0;padding:6px 8px;font-size:13px}
.wc-app #wcs_uw #wc_ctl>.bar .seg{flex:1 1 100%;display:flex}.wc-app #wcs_uw #wc_ctl>.bar .seg button{flex:1 1 0}
.wc-app #wcs_uw #wc_ctl>.bar .btn{flex:1 1 100%;min-height:44px}
/* Stacked: one row per note; Edit opens the note's fields as a sheet */
.wc-app #wcs_st .card[data-wp~=notes]{padding:0;background:transparent;border:0}
.wc-app #wcs_st .card[data-wp~=notes] .tw{max-height:none!important;overflow:visible}
.wc-app #wcs_st table.notes tr:not(.wct-live){display:grid;grid-template-columns:minmax(0,1fr) auto 64px;gap:6px;align-items:center;padding:4px 0;border-top:1px solid rgba(255,255,255,.08)}
.wc-app #wcs_st table.notes tr:not(.wct-live)>td{display:none}
.wc-app #wcs_st table.notes tr:not(.wct-live)>td:nth-child(1),.wc-app #wcs_st table.notes tr:not(.wct-live)>td.pay,.wc-app #wcs_st table.notes tr:not(.wct-live)>td:nth-child(9){display:block;padding:0!important}
.wc-app #wcs_st table.notes tr:not(.wct-live)>td::before{display:none}
.wc-app #wcs_st table.notes tr:not(.wct-live)>td.pay{font-size:14px;font-weight:700;white-space:nowrap;align-self:center}
.wc-app #wcs_st table.notes tr:not(.wct-live)>td:nth-child(9) [data-del]{display:none}
.wc-app #wcs_st table.notes tr.wct-live{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}
.wc-app #wcs_st table.notes tr.wct-live td{display:block;padding:0;border:0;text-align:left}
.wc-app #wcs_st table.notes tr.wct-live td:nth-child(9){grid-column:1/-1;display:flex;gap:8px}
.wc-app #wcs_st table.notes tr.wct-live td:nth-child(9) .btn{flex:1 1 0;min-height:44px}
.wc-app #wcs_st table.notes tr.wct-live .wct-ne{font-size:0}.wc-app #wcs_st table.notes tr.wct-live .wct-ne::before{content:'Done';font-size:15px}
.wc-app .wct-ne{min-height:44px;width:100%}
.wc-app #wcs_st .card[data-wp~=notes]>.bar .mut{display:none}
.wc-app #wcs_st .card[data-wp~=notes]>.bar .btn{flex:1 1 100%;min-height:44px}
/* Compare */
.wc-app #wcp_cmp{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;min-height:0}
.wc-app .wct-scen{display:flex;flex-direction:column;gap:6px}
.wc-app .wct-scen .sc{background:#223830;border:1px solid rgba(197,165,90,.2);border-radius:10px;padding:6px 8px}
.wc-app .wct-scen .t{font-size:14px;font-weight:700}.wc-app .wct-scen .t .mut{font-size:12px;font-weight:600}
.wc-app .wct-scen .bar{margin-top:4px}.wc-app .wct-scen .btn{min-height:44px;flex:1 1 auto}
.wc-app #wcp_cmp>.cmpw{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain}
.wc-app .cmpt tr.wct-acts{display:none}
.wc-app section#wcs_cmp>#wcp_cmp>.mut{font-size:13px}
}
@media(max-width:768px){
.wc-app #wc_body>.grid>*,.wc-app #wc_body>.grid>[data-wp]>*{min-width:0;max-width:100%}
.wc-app #wc_body>.grid>#wc_ctl{order:2}
.wc-app #wc_ctl>.ctl[data-wp=results]{display:block}
.wc-app #wc_ctl>.ctl[data-wp=results]>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wc-app [data-wp=results].bar{flex-wrap:nowrap}
.wc-app [data-wp=results].bar .btn{flex:1 1 0;min-width:0;white-space:normal;line-height:1.15;font-size:var(--fs-body,14px);padding:0 6px}
.wc-app .tw.wct-list table{width:100%}
.wc-app .solve{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;align-items:center}
.wc-app .solve>.lb,.wc-app .solve>.bar,.wc-app .solve>#wc_solmsg{grid-column:1/-1}
.wc-app .solve>.bar{display:flex;flex-wrap:nowrap;margin:0}
.wc-app .solve>.bar>.lb{display:none}
.wc-app .solve>.bar .seg{flex:1 1 auto;display:flex}.wc-app .solve>.bar .seg button{flex:1 1 0;min-width:44px;padding:0 4px}
.wc-app .solve>.bar #wc_solvebtn{flex:0 0 auto;min-width:72px}
.wc-app .solve>label{margin:0}
.wc-app #wc_solmsg:empty{display:none}
.wc-app .dsc{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:6px;align-items:center;margin:4px 0 0}
.wc-app .dsc label{margin:0;font-size:var(--fs-small,13px)}
.wc-app #wc_pv:empty{display:none}
.wc-app .sellerv .kpis{margin:0 0 4px}
.wc-app .kpis .ct{font-size:var(--fs-small,13px);line-height:1.3}
.wc-app .kpi .v{font-size:18px!important}
.wc-app .kpi.hero .v{font-size:19px!important}
.wc-app .kpi .s{font-size:var(--fs-cap,12px)}
.wc-app .kpi .l{font-size:12px}
.wc-app .kpi.hero .due{font-size:var(--fs-small,13px)}
}
@media(max-width:768px){
.wc-app #wc_body>.grid>[data-wp]:not(#wc_ctl){flex:0 0 auto}
.wc-app[data-pane=schedule] #wc_body>.grid>[data-wp]:not(#wc_ctl){flex:1 1 auto}
.wc-app .wct-rb{flex-wrap:nowrap!important;align-items:stretch}
.wc-app .wct-rb>.ctl{flex:1 1 0;min-width:0;display:block}
.wc-app .wct-rb>.ctl>label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wc-app .wct-rb>.btn{flex:0 0 auto!important;min-width:84px;white-space:nowrap!important}
.wc-app .wct-rb #wc_pin,.wc-app .wct-rb #wc_share{font-size:0!important}
.wc-app .wct-rb #wc_pin::before{content:'+ Compare';font-size:14px}
.wc-app .wct-rb #wc_share::before{content:'Copy link';font-size:14px}
.wc-app.wc-auth .wct-rb{flex-wrap:wrap!important}.wc-app.wc-auth .wct-rb>.ctl{flex:1 1 100%}.wc-app.wc-auth .wct-rb>.btn{flex:1 1 0!important}
.wc-app [data-wp~=schedule].bar{flex-wrap:nowrap}
.wc-app [data-wp~=schedule].bar .seg{flex:0 0 auto;display:flex}
.wc-app [data-wp~=schedule].bar .btn{flex:1 1 0;min-width:0;white-space:nowrap;padding:0 6px}
.wc-app .tw.wct-list th{white-space:normal;vertical-align:bottom}
.wc-app .tw.wct-list th,.wc-app .tw.wct-list td{font-size:13px;padding:5px 3px}
.wc-app #wcs_uw #wc_ctl>details.how,.wc-app #wcs_uw #wc_csb{flex:1 1 40%;min-height:44px}
.wc-app .g2f label{white-space:normal;overflow:visible}
}
@media(max-width:768px){.wc-app .duo .card{padding:7px 8px}.wc-app .sellerv .kpis{margin:0 0 2px}}
/* calc3-app-r1: fill the screen. The app box is pinned to the layout viewport (top:0;bottom:0) and only follows visualViewport while the keyboard is up;
   one rhythm gap (--rg, set by calc-core.js) spaces every row; rows grow with the screen (--rh); equal side margins (--sx) and radii (--r); short picker labels. */
@media(max-width:768px){
html.wcapp,html.wcapp body{height:100vh;height:100dvh}
.wc-app{--sx:12px;--r:12px;--rh:clamp(44px,5.4dvh,52px);--rg:8px;top:0!important;bottom:0!important;height:auto!important;
  padding:0 calc(var(--sx) + env(safe-area-inset-right)) 0 calc(var(--sx) + env(safe-area-inset-left))!important}
.wc-app.kb{top:var(--vvt,0px)!important;bottom:auto!important;height:var(--vvh,100dvh)!important}
.wc-tabs.wc-app .jump{margin:0 calc(-1*var(--sx) - env(safe-area-inset-right)) 0 calc(-1*var(--sx) - env(safe-area-inset-left));padding:calc(6px + env(safe-area-inset-top)) calc(var(--sx) + env(safe-area-inset-right)) 6px calc(var(--sx) + env(safe-area-inset-left));gap:6px;overflow:hidden}
.wc-tabs.wc-app .jump button{flex:1 1 0;min-width:0;padding:0 4px;height:var(--rh);min-height:44px;border-radius:var(--r);font-size:14px;overflow:hidden;text-overflow:ellipsis}
.wc-tabs.wc-app .jump .lg{display:none!important}.wc-tabs.wc-app .jump .sh{display:inline!important}
.wc-tabs.wc-app .wct-res:not([hidden]){margin:0;padding:6px 0 calc(6px + var(--rg)/3);gap:6px;border-bottom:1px solid rgba(197,165,90,.3)}
.wc-app .wct-res .c{padding:6px 9px;border-radius:var(--r)}
.wc-app>.wct-bar{margin:0 calc(-1*var(--sx) - env(safe-area-inset-right)) 0 calc(-1*var(--sx) - env(safe-area-inset-left));padding:6px calc(var(--sx) + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(var(--sx) + env(safe-area-inset-left));gap:6px}
.wct-bar button{height:48px;border-radius:var(--r)}
.wc-app section.wsec.act{padding:var(--rg) 0!important}
.wc-app #wc_body,.wc-app #wc_body>.grid,.wc-app #wc_body>.grid>[data-wp]:not(#wc_ctl),.wc-app section.wsec.act>.wsb,.wc-app section.wsec.act>.wsb>.wc{gap:var(--rg)}
.wc-app #wc_ctl{flex-direction:column;flex-wrap:nowrap;gap:var(--rg)}
.wc-app #wcs_am #wc_ctl>*{order:0!important}
.wc-app .wct-grp{display:flex;flex-direction:column;gap:4px;min-width:0}
.wc-app .wct-grp>.chips,.wc-app .wct-grp>.ctl,.wc-app .wct-grp>.cust{margin:0}
.wc-app #wcs_am #wc_dh,.wc-app #wcs_am #wc_bh{margin:0;padding-left:2px}
.wc-app .wct-grp.wct-tc,.wc-app .wct-grp.wct-bc{gap:var(--rg)}
.wc-app .wct-grp.wct-bc>#wc_bh{margin-top:calc(4px - var(--rg))}
.wc-app .wct-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.wc-app .wct-pair>details{width:auto!important;flex:none!important;min-width:0}
.wc-app details.how>summary::before{content:none!important}
.wc-app details.how>summary::after{content:' ⓘ'}
/* row height and radii */
.wc-app input:not([type=range]):not([type=checkbox]),.wc-app select{height:var(--rh);min-height:44px;border-radius:var(--r)}
.wc-app .chips button,.wc-app .seg button,.wc-app details.more>summary,.wc-app details.how>summary,.wc-app [data-wp] .btn,.wc-app .cust .btn{min-height:44px;height:var(--rh);border-radius:var(--r)}
.wc-app .seg{border-radius:var(--r)}.wc-app .seg button{border-radius:0}.wc-app .seg button:first-child{border-radius:var(--r) 0 0 var(--r)}.wc-app .seg button:last-child{border-radius:0 var(--r) var(--r) 0}
.wc-app .card,.wc-app .kpi,.wc-app .note,.wc-app .dealbox,.wc-app .wct-scen .sc,.wc-app .ct{border-radius:var(--r)}
.wc-app .ctl{--lw:96px}
/* results / seller / underwrite use the same rhythm */
.wc-app .kpis{gap:var(--rg) 8px}
.wc-app .duo{gap:var(--rg)}
.wc-app .duo>.card{display:flex;flex-direction:column;gap:calc(var(--rg)*.6);padding:10px}
.wc-app .duo>.card>*{margin:0}
.wc-app .solve{display:grid;gap:calc(var(--rg)*.6) 8px}
.wc-app .g2f{gap:var(--rg) 8px}
.wc-app .dealbox{padding:10px;display:flex;flex-direction:column;gap:calc(var(--rg)*.6)}
.wc-app .dealbox .g2f{gap:calc(var(--rg)*.6) 8px}
.wc-app .wct-scen{gap:var(--rg)}
.wc-app #wcs_st table.notes tr:not(.wct-live){padding:calc(var(--rg)/2) 0}
.wc-app #wcp_cmp{gap:var(--rg)}
/* the info buttons sit in their card's corner (44x44 tap area inside the card, never over a neighbour) */
.wc-app .kpi,.wc-app .ct{position:relative}
.wc-app .kpi .ib,.wc-app .ct .ib{position:absolute;top:0;right:0;width:44px;height:44px;min-width:44px;min-height:44px;margin:0!important;padding:0 0 10px 12px;display:flex;align-items:flex-start;justify-content:center;padding:8px 0 0}
.wc-app .kpi .l,.wc-app .ct{padding-right:34px}
.wc-app .ct{min-height:44px;box-sizing:border-box;padding-top:2px}
.wc-app .kpi.hero .s.ish{position:static}
.wc-app .kpi.hero .s.ish .ib{top:auto;bottom:0;align-items:flex-end;padding:0 0 8px}
.wc-app .kpi.hero{padding-right:34px}
}
@media(max-width:768px){
.wc-tabs.wc-app .jump{padding-top:calc(clamp(4px,.7dvh,8px) + env(safe-area-inset-top));padding-bottom:clamp(4px,.7dvh,8px)}
.wc-tabs.wc-app .wct-res:not([hidden]){padding-top:clamp(3px,.5dvh,6px)}
.wc-app .wct-res .c{padding:clamp(3px,.6dvh,7px) 9px}
.wc-app>.wct-bar{padding-top:clamp(4px,.6dvh,6px);padding-bottom:calc(clamp(4px,.6dvh,6px) + env(safe-area-inset-bottom))}
.wct-bar button{height:clamp(44px,5.2dvh,50px)}
.wc-app .ct{min-height:0}
.wc-app .ct:has(.ib){min-height:44px}
.wc-app .kpi .l{padding-right:26px}
.wc-app #wcp_cmp:not(:has(.cmpw)){justify-content:center}
}
@media(max-width:768px){
.wc-tabs.wc-app .jump button{flex:1 1 auto;padding:0 6px;text-overflow:clip}
@media(max-width:380px){.wc-tabs.wc-app .jump{gap:4px}.wc-tabs.wc-app .jump button{font-size:var(--fs-body,14px);padding:0 4px}}
.wc-app .wct-res .c{padding-left:7px;padding-right:7px}
.wc-app .wct-res .v{font-size:clamp(14px,4.3vw,18px)}
.wc-app .wct-pair>#wc_more{order:1!important}.wc-app .wct-pair>details.how{order:2!important}
.wc-app .duo>.card.solve{display:grid;grid-template-columns:auto minmax(0,1fr)}
.wc-app #wc_cs:empty,.wc-app #wc_msg:empty,.wc-app #wc_svk:empty{display:none}
.wc-app .kpi .l{padding-right:22px}
.wc-app .kpi .ib,.wc-app .ct .ib{padding-top:6px}
}
@media(max-width:768px){
.wc-app .duo>.card{padding:clamp(6px,1.1dvh,10px) 10px}
.wc-app .dealbox{padding:clamp(6px,1.1dvh,10px) 10px}
.wc-app .kpi{padding:clamp(5px,.9dvh,9px) 9px}
@media(max-width:380px){.wc-app .ct{font-size:12px;padding-right:30px}.wc-app .kpi .s{font-size:var(--fs-cap,12px)}.wc-app .kpi .l{font-size:var(--fs-cap,12px)}}
}
@media(max-width:768px){
.wc-app .ct{border-radius:0}
.wc-app .dsc label{font-size:0!important}
.wc-app .dsc label::before{content:'Note value today at a discount rate of %';font-size:var(--fs-small,13px);line-height:1.2}
@media(max-width:380px),(max-height:700px){.wc-app .dsc label::before{content:'Note value today at %'}.wc-app .sellerv .kpi .l{padding-right:16px}.wc-app .sellerv .kpi .s{font-size:var(--fs-cap,12px);line-height:1.2}}
}
@media(max-width:768px) and (max-height:700px){.wc-app .duo>.card.solve>.lb{display:none}}
@media(max-width:768px) and (max-height:700px){.wc-app .sellerv .kpis{margin:0!important}.wc-app .sellerv .kpi{padding:4px 8px}.wc-app .sellerv .kpi .s{line-height:1.15}.wc-app .sellerv .kpi .v{font-size:17px!important}.wc-app .duo .ct{line-height:1.25}}
@media(max-width:768px){
.wc-app details.more:not([open]){border:0!important;padding:0!important;background:none!important;box-shadow:none!important}
.wc-app #wcs_am .wct-bc>#wc_bh{margin-top:calc(4px - var(--rg))!important}
}
@media(max-width:380px){.wc-app .chips>.lb{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0;min-width:0}}
@media(max-width:768px){
.wc-app.wc-auth .wct-rb{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.wc-app.wc-auth .wct-rb>.ctl{grid-column:span 3}.wc-app.wc-auth .wct-rb>#wc_add{grid-column:span 3}
.wc-app.wc-auth .wct-rb>.btn{grid-column:span 2;white-space:normal!important;line-height:1.15;font-size:var(--fs-body,14px);padding:0 6px;min-width:0}
.wc-app.wc-auth .wct-rb>#wc_add{grid-column:span 3}
}
@media(max-width:768px){.wc-app #wcs_uw .wct-pair>details.how,.wc-app #wcs_uw .wct-pair>#wc_csb{flex:none;width:auto;min-width:0}.wc-app #wcs_uw .wct-pair>#wc_csb{order:2;white-space:nowrap}}
/* calc3-app-r2: RTO schedule = two lines per row (Year . Rent to you / Credited to price . Left to pay), no sideways scroll */
@media(max-width:768px){
.wc-app table#wc_t:not(.sch),.wc-app table#wc_t:not(.sch) thead,.wc-app table#wc_t:not(.sch) tbody{display:block;width:100%;min-width:0}
.wc-app table#wc_t:not(.sch) thead{position:sticky;top:0;z-index:2;background:#2A4438}
.wc-app table#wc_t:not(.sch) tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:8px;padding:6px 10px;border-top:1px solid rgba(255,255,255,.08)}
.wc-app table#wc_t:not(.sch) thead tr{border-top:0}
.wc-app table#wc_t:not(.sch) th,.wc-app table#wc_t:not(.sch) td{display:block;border:0!important;padding:1px 0!important;text-align:right;min-width:0;white-space:nowrap;font-size:14px!important;position:static;background:transparent!important;font-variant-numeric:tabular-nums}
.wc-app table#wc_t:not(.sch) th{white-space:normal;line-height:1.2;font-size:13px!important}
.wc-app table#wc_t:not(.sch) tr>:nth-child(1){grid-column:1/3;grid-row:1;text-align:left;white-space:normal}
.wc-app table#wc_t:not(.sch) tr>:nth-child(2){grid-column:3;grid-row:1;font-weight:700}
.wc-app table#wc_t:not(.sch) tr>:nth-child(3){grid-column:2;grid-row:2}
.wc-app table#wc_t:not(.sch) tr>:nth-child(4){grid-column:3;grid-row:2}
.wc-app table#wc_t:not(.sch) td:empty{display:none}
.wc-app table#wc_t:not(.sch) tr.tot{border-top:2px solid rgba(255,255,255,.25)}.wc-app table#wc_t:not(.sch) tr.tot td{font-weight:800}
/* Compare table stacked: scenarios listed once at the top, then each figure with one line per scenario (#1, #2 ...), no sideways scroll */
.wc-app #wcp_cmp>.cmpw{overflow-x:hidden}
.wc-app table.cmpt,.wc-app table.cmpt thead,.wc-app table.cmpt tbody,.wc-app table.cmpt tr{display:block;width:100%;min-width:0}
.wc-app table.cmpt th,.wc-app table.cmpt td{display:block;position:static!important;min-width:0!important;max-width:none!important;white-space:normal!important;text-align:left;border:0!important;background:transparent!important}
.wc-app table.cmpt thead{padding:6px 10px 8px;background:#2A4438!important}
.wc-app table.cmpt thead th:first-child{display:none}
.wc-app table.cmpt thead th{padding:4px 0!important;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.wc-app table.cmpt thead th .mut{min-width:0!important;font-size:13px;overflow-wrap:anywhere}
.wc-app table.cmpt tbody tr{padding:7px 10px;border-top:1px solid rgba(255,255,255,.08)}
.wc-app table.cmpt tbody td:first-child{font-weight:700;color:#cfe0d3;font-size:var(--fs-body,14px);padding:0 0 2px!important}
.wc-app table.cmpt tbody td[data-s]{position:relative!important;padding:1px 0 1px 34px!important;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wc-app table.cmpt tbody td[data-s]::before{content:attr(data-s);position:absolute;left:0;top:1px;color:#9fb0a3;font-weight:600}
/* add a balloon: a 44px tap target without changing the line */
.wc-app a[data-act="bl"]{display:inline-block;min-height:44px;line-height:44px;padding:0 6px;margin:-15px -6px;position:relative;z-index:1;white-space:nowrap}
.wc-tabs.wc-app .jump button{min-width:44px}
}
@media(max-width:380px){.wc-app .wct-res .c{padding-left:6px;padding-right:6px}.wc-app .wct-res .l{font-size:var(--fs-cap,12px)}.wc-app .wct-res .c.hc .l{padding-right:14px}}
/* calc3-app-r2: with the keyboard up the last field can still be lifted clear of it */
@media(max-width:768px){.wc-app.kb section.wsec.act{padding-bottom:16px!important}}
@media(max-width:768px){.wc-app.kb:not([data-pane=schedule]):not([data-pane=table]) section.wsec.act .wsb,.wc-app.kb:not([data-pane=schedule]):not([data-pane=table]) section.wsec.act #wc_body,.wc-app.kb:not([data-pane=schedule]):not([data-pane=table]) section.wsec.act #wc_body>.grid{flex:none!important;height:auto!important;min-height:0!important;max-height:none!important}}
/* calc3-app-r2: very large amounts shrink the schedule figures (set by fitList) instead of spilling out of their cells */
@media(max-width:768px){.wc-tabs.wc-app .wct-list table[style*="--tf"] th,.wc-tabs.wc-app .wct-list table[style*="--tf"] td,.wc-tabs.wc-app .wct-list table[style*="--tf"] td .dt{font-size:var(--tf)!important}}
@media(max-width:768px){.wc-tabs.wc-app .wct-list table#wc_t[style*="--tf"] th,.wc-tabs.wc-app .wct-list table#wc_t[style*="--tf"] td,.wc-tabs.wc-app .wct-list table#wc_t[style*="--tf"] td .dt{font-size:var(--tf)!important}}

/* mobile1b D1 (2026-10-25): on phones the Schedule list was a ~166px box scrolling inside the page. Let it flow with the page (one scroller); header row stays visible at the top of the table. */
@media(max-width:640px){
 .wc-app .tw.wct-list{flex:none!important;max-height:none!important;min-height:0;overflow-x:auto;overflow-y:visible!important}
 .wc-app .tw.wct-list th{font-size:12px;padding-top:8px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.14)}
}
/* mobile1b D2: "+ Compare" / "Copy link" were cut off in their 77px grid cell on phones; trim side padding and allow a wrap. */
@media(max-width:640px){.wc-app .wct-rb #wc_pin,.wc-app .wct-rb #wc_share{padding-left:4px!important;padding-right:4px!important;white-space:normal!important;line-height:1.2}}
