/* Step 150 Buyer Evaluation: compact entry, progressive matching, adjustable profit.
   Scoped to the existing evaluation dialog. Does not affect other pages. */
#modal-root .modal:has(.ld150-evaluation){width:min(1240px,96vw)!important;max-width:1240px!important;height:min(94dvh,990px);max-height:96dvh!important;display:flex;flex-direction:column;overflow:hidden!important}
#modal-root .modal:has(.ld150-evaluation)>.modal-head,#modal-root .modal:has(.ld150-evaluation)>.modal-foot{flex-shrink:0}
#modal-root .modal:has(.ld150-evaluation)>.modal-content{flex:1;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;padding:15px 21px 24px!important;scroll-behavior:smooth}
#modal-root .ld150-evaluation{min-width:0;color:#e8f4ff}
#modal-root .ld150-evaluation *{box-sizing:border-box}
#modal-root .ld150-evaluation :is(h3,h4){color:#fff}
#modal-root .ld150-entry{background:#0b2339;border:1px solid #265b7b;border-top:3px solid #0cb9e7;border-radius:10px;padding:13px 15px 14px}
#modal-root .ld150-section-head{display:flex;align-items:baseline;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}
#modal-root .ld150-section-head h3{font-size:16px;margin:0;font-weight:850}
#modal-root .ld150-section-head span{font-size:11px;color:#9fc4d8}
#modal-root .ld150-vehicle-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px 12px;align-items:end}
#modal-root .ld150-vehicle-grid>div{min-width:0}
#modal-root .ld150-vehicle-grid .ld150-vin{grid-column:span 2}
#modal-root .ld150-vehicle-grid .ld150-decode{display:flex;flex-direction:column;justify-content:flex-end;align-self:end;gap:5px;min-height:59px}
#modal-root .ld150-vehicle-grid .ld150-decode button{background:#113e61;border:1px solid #3e87ad;color:#e3f7ff;white-space:nowrap;min-height:40px}
#modal-root #be-decode-status{font-size:10px;color:#8ccee3;max-width:200px;line-height:1.3}
#modal-root .ld150-evaluation .ld150-vehicle-grid label,
#modal-root .ld150-evaluation .ld150-secondary-grid label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:750;color:#bddaea;min-width:0}
#modal-root .ld150-evaluation :is(.ld150-vehicle-grid,.ld150-secondary-grid) :is(input,select),
#modal-root .ld150-evaluation .ld150-profit-inputs :is(input,select){background:#102c46!important;color:#f3faff!important;border:1px solid #32678b!important;border-radius:7px!important;min-height:39px;width:100%;min-width:0;padding:8px 10px!important;font-size:13px;outline-offset:1px}
#modal-root .ld150-evaluation :is(input,select):focus{border-color:#0cb9e7!important;outline:1px solid #0cb9e7}
#modal-root .ld150-expand{margin-top:11px;border-top:1px solid #284b62;padding-top:9px}
#modal-root .ld150-expand>summary{font-size:12px;font-weight:850;color:#64d9f0;cursor:pointer;list-style:auto;padding:4px 0}
#modal-root .ld150-secondary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
#modal-root .ld150-profit-bar{position:sticky;top:-15px;z-index:5;margin:13px 0 9px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:#091b2f;border:1px solid #168ba5;border-top:2px solid #0cc0dc;border-radius:10px;box-shadow:0 5px 25px #03111b88}
#modal-root .ld150-profit-entry{flex:1;min-width:min(420px,100%)}
#modal-root .ld150-profit-entry>label,#modal-root .ld150-ceiling>span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.45px;color:#a5c6d9;font-weight:850;margin-bottom:5px}
#modal-root .ld150-profit-inputs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#modal-root .ld150-profit-inputs select{width:min(190px,100%)!important;flex:1 1 170px}
#modal-root .ld150-profit-inputs input{width:130px!important;max-width:140px;flex:1 1 130px;font-size:17px!important;font-weight:850}
#modal-root .ld150-profit-entry>small{display:block;font-size:11px;color:#aac8db;margin-top:6px}
#modal-root .ld150-ceiling{min-width:240px;padding-left:15px;border-left:1px solid #1e546b;text-align:right}
#modal-root .ld150-ceiling strong{display:block;font-weight:900;font-size:clamp(25px,2.6vw,34px);color:#54edac;line-height:1.1;letter-spacing:-.5px}
#modal-root .ld150-ceiling small{display:block;color:#b1c7d4;font-size:10px;margin-top:5px}
#modal-root .ld150-market{border:1px solid #315b77;background:#0a1e31;border-radius:10px;margin:12px 0;padding:9px 14px}
#modal-root .ld150-market summary{padding:7px 2px}
#modal-root .ld150-market>section{margin:10px 0 4px!important}
#modal-root .ld150-cost-section{margin:12px 0;padding:15px;background:#0b2136;border:1px solid #254863;border-top:2px solid #0cb5df;border-radius:10px}
#modal-root .ld150-cost-section>h3{font-size:16px;margin:0 0 10px}
#ld148-buyer-intelligence{margin:10px 0!important}
#ld148-buyer-intelligence .ld148-card{padding:16px!important;border-radius:10px!important}
#ld148-buyer-intelligence .ld148-header{margin-bottom:11px}
#ld148-buyer-intelligence .ld148-header h3{font-size:20px;margin:3px 0}
#ld148-buyer-intelligence .ld150-browser{background:#0b273b;border:1px solid #2c6583;border-top:2px solid #0caccd;border-radius:10px;padding:12px 13px;margin:10px 0 16px}
#ld148-buyer-intelligence .ld150-browser-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
#ld148-buyer-intelligence .ld150-browser-head h4{font-size:16px;margin:0 0 4px}
#ld148-buyer-intelligence .ld150-browser-head p{font-size:11px;line-height:1.4;max-width:670px}
#ld148-buyer-intelligence .ld150-browser-count{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}
#ld148-buyer-intelligence .ld150-browser-count strong{font-size:25px;line-height:1;font-weight:900;color:#6cd9ed}
#ld148-buyer-intelligence .ld150-browser-count span{color:#b8d2de;font-size:10px}
#ld148-buyer-intelligence .ld150-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:10px}
#ld148-buyer-intelligence .ld150-filters label{font-size:10px;font-weight:800;color:#a6cce1;min-width:0}
#ld148-buyer-intelligence .ld150-filters select{font-size:11px;min-height:35px;width:100%;margin-top:4px;padding:5px 6px}
#ld148-buyer-intelligence .ld150-filter-actions{display:flex;justify-content:space-between;gap:9px;align-items:center;margin:4px 0 8px}
#ld148-buyer-intelligence .ld150-filter-actions span{font-size:11px;color:#bfdeeb}
#ld148-buyer-intelligence .ld150-filter-actions button{background:transparent;border:1px solid #4784a3;padding:5px 10px;font-size:10px}
#ld148-buyer-intelligence .ld150-scroller{max-height:340px;overflow:auto;scrollbar-width:thin}
#ld148-buyer-intelligence .ld150-scroller th{position:sticky;top:0;z-index:1}
#ld148-buyer-intelligence .ld150-scroller tr:nth-child(even) td{background:#102b40}
#ld148-buyer-intelligence .ld150-more{display:block;width:100%;margin-top:9px}
#ld148-buyer-intelligence .ld150-browser-note{margin-top:9px;font-size:10px;color:#9ac1d1}
#ld148-buyer-intelligence .ld148-summary{gap:8px;margin-bottom:10px}
#ld148-buyer-intelligence .ld148-summary>div{padding:11px 12px;border-radius:9px}
#ld148-buyer-intelligence .ld149-breakdown{margin-top:12px}
@media(max-width:1120px){
 #modal-root .ld150-vehicle-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 #ld148-buyer-intelligence .ld150-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
 #modal-root .modal:has(.ld150-evaluation){width:calc(100vw - 12px)!important;height:96dvh;max-height:96dvh!important}
 #modal-root .modal:has(.ld150-evaluation)>.modal-content{padding:11px!important}
 #modal-root .ld150-vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #modal-root .ld150-vehicle-grid .ld150-vin{grid-column:span 2}
 #modal-root .ld150-vehicle-grid .ld150-decode{grid-column:span 2;min-height:0}
 #modal-root .ld150-secondary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #modal-root .ld150-profit-bar{top:-11px;padding:10px 12px;gap:12px}
 #modal-root .ld150-profit-entry{min-width:100%}
 #modal-root .ld150-ceiling{min-width:100%;padding:10px 0 0;border-left:0;border-top:1px solid #1e546b;text-align:left}
 #ld148-buyer-intelligence .ld150-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:440px){
 #modal-root .ld150-entry{padding:10px}
 #ld148-buyer-intelligence .ld150-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 #ld148-buyer-intelligence .ld148-card{padding:10px!important}
 #ld148-buyer-intelligence .ld150-browser{padding:9px}
}

/* Step150 final polish: always-visible resale and compact profit inputs */
#modal-root .ld150-resale-entry{flex:0 0 190px;min-width:155px}
#modal-root .ld150-resale-entry label{font-size:11px;color:#a5c6d9;font-weight:850;gap:4px;text-transform:uppercase;letter-spacing:.4px}
#modal-root .ld150-resale-entry input{min-height:42px;width:100%;background:#102c46!important;color:#fff!important;border:1px solid #32678b!important;border-radius:7px!important;padding:8px 10px!important;font-size:18px!important;font-weight:850}
#modal-root .ld150-profit-entry{min-width:280px}
#modal-root .ld150-profit-inputs select{flex:0 1 210px!important;width:210px!important}
#modal-root .ld150-profit-inputs input{flex:0 1 140px!important}
#modal-root .ld150-ceiling{flex:1 1 220px;min-width:190px}
#modal-root .ld150-ceiling strong{white-space:nowrap}
#modal-root .ld150-expand>summary{list-style:none!important}
#modal-root .ld150-expand>summary::-webkit-details-marker{display:none}
#modal-root .ld150-expand>summary::before{content:'▸';display:inline-block;margin-right:7px;transition:transform .14s ease}
#modal-root .ld150-expand[open]>summary::before{transform:rotate(90deg)}
@media(max-width:800px){#modal-root .ld150-resale-entry{flex:1 1 140px}#modal-root .ld150-profit-entry{flex:1 1 280px}#modal-root .ld150-ceiling{flex:1 1 170px}}
@media(max-width:600px){#modal-root .ld150-resale-entry{flex:1 1 100%}#modal-root .ld150-profit-entry{flex:1 1 100%}#modal-root .ld150-profit-inputs select{flex:1 1 160px!important;width:auto!important}#modal-root .ld150-profit-inputs input{flex:1 1 100px!important}#modal-root .ld150-ceiling{flex:1 1 100%}}

#modal-root #be-use-history{display:block;margin-top:6px;padding:5px 7px;width:100%;background:#0e415d;border:1px solid #357f9c;border-radius:6px;color:#d8f8ff;font-weight:800;font-size:10px;line-height:1.3;white-space:normal}
#modal-root #be-use-history:disabled{opacity:.38;cursor:not-allowed}
