/* Compact existing UI; no changes to the valuation workflow. */
.screen-buy-photo-suggestion{box-sizing:border-box;width:min(520px,calc(100vw - 32px));padding:20px;max-height:calc(100dvh - 32px);overflow:auto}
.screen-buy-photo-suggestion .modal-head{margin:0;padding:0 0 12px}
.screen-buy-photo-suggestion-body{padding:4px 0;font-size:13px;line-height:1.5}
.screen-buy-photo-suggestion .modal-actions{margin:10px 0 0;padding:14px 0 0;display:flex;gap:8px;flex-wrap:wrap}
.screen-buy-photo-suggestion .modal-actions .btn{flex:1;min-width:150px;white-space:normal}
/* Two upload routes share one server-issued, expiring URL. */
#screenBuyPhotoUploadLinkModal{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
.screen-buy-photo-upload-options{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:center;margin:14px 0}
.screen-buy-photo-upload-options>section{min-width:0}
.screen-buy-photo-upload-options:has(>section[hidden]){grid-template-columns:minmax(0,1fr)}
.screen-buy-photo-upload-options h3{font-size:14px;margin:0 0 8px;color:#001c48}
.screen-buy-photo-upload-options p{font-size:12px;line-height:1.4;margin:8px 0}
.screen-buy-photo-phone{text-align:center}
.screen-buy-photo-phone img{display:block;max-width:100%;height:auto;margin:auto;background:#fff;border:1px solid #e2e8f0;border-radius:8px}
.screen-buy-photo-phone img[hidden]{display:none}
.screen-buy-photo-computer .btn{display:inline-block;max-width:100%;white-space:normal;text-align:center;text-decoration:none}
.screen-buy-photo-link-label{display:block;font-size:11px;color:#64748b;margin:10px 0 5px}
@media(max-width:600px){.screen-buy-photo-upload-options{grid-template-columns:minmax(0,1fr);gap:12px}.screen-buy-photo-phone img{width:180px}.screen-buy-photo-computer{text-align:center}}
.screen-buy-client-details{border:1px solid #dce5f1;border-radius:9px;padding:10px 12px;min-width:0}
.screen-buy-client-details>summary{cursor:pointer;font-weight:650;font-size:13px;color:#23476e;overflow-wrap:anywhere}
.screen-buy-client-details[open]>.form-grid{margin-top:12px}
@media(min-width:901px){
 #screenBuysTable .data-table{width:100%!important;min-width:0!important;table-layout:fixed}
 #screenBuysTable .data-table th,#screenBuysTable .data-table td{min-width:0!important;overflow-wrap:anywhere;white-space:normal}
 #screenBuysTable .data-table th:nth-child(1),#screenBuysTable .data-table td:nth-child(1){width:23%!important}
 #screenBuysTable .data-table th:nth-child(2),#screenBuysTable .data-table td:nth-child(2){width:25%!important}
 #screenBuysTable .data-table th:nth-child(3),#screenBuysTable .data-table td:nth-child(3){width:8%!important}
 #screenBuysTable .data-table th:nth-child(4),#screenBuysTable .data-table td:nth-child(4){width:13%!important}
 #screenBuysTable .data-table th:nth-child(5),#screenBuysTable .data-table td:nth-child(5){width:9%!important}
 #screenBuysTable .data-table th:last-child,#screenBuysTable .data-table td:last-child{width:22%!important;min-width:0!important}
 #screenBuysTable .table-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;min-width:0!important;width:100%;gap:4px}
 #screenBuysTable .table-actions .action-btn{font-size:8.5px!important;min-width:0!important;min-height:30px;padding:4px 3px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
 #screenBuysTable .screen-buy-list-item{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);min-width:0}
 #screenBuysTable .screen-buy-list-items,#screenBuysTable .screen-buy-list-model{min-width:0!important;width:auto}
}
.screen-buy-list-model b{font-size:10px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere}
.screen-buy-list-model small{font-size:8px!important;line-height:1.15!important;white-space:normal!important}
.screen-buy-list-note{font-size:9px!important;line-height:1.2!important;white-space:pre-wrap!important}
.screen-buy-list-item{min-height:27px;gap:5px;padding:3px 5px}
.screen-buy-group-tabs{flex-wrap:wrap!important;overflow:visible!important;gap:4px}
.screen-buy-group-tabs .tab{white-space:nowrap;min-height:40px}
@media(max-width:600px){
 .screen-buy-group-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
 .screen-buy-group-tabs .tab{width:100%;font-size:12px;padding:9px 6px;text-align:center}
 .screen-buy-editor-modal .modal-actions{padding:10px 12px;gap:7px}
 .screen-buy-editor-modal .modal-actions>.small,.screen-buy-editor-modal .modal-actions>.muted{display:none}
 .screen-buy-editor-modal .modal-actions .btn{min-height:42px}
 #screenBuyModal .modal-actions.screen-buy-save-bar{display:grid!important;grid-template-columns:.7fr .7fr 1.6fr;gap:6px;padding:10px!important}
 #screenBuyModal .modal-actions.screen-buy-save-bar>span{display:none!important}
 #screenBuyModal .modal-actions.screen-buy-save-bar .btn{grid-column:auto!important;min-width:0;width:100%;padding:8px 5px!important;font-size:11px;white-space:normal}
 .screen-buy-list-model b{font-size:9px!important}
 .screen-buy-list-model small{font-size:7px!important}
 .screen-buy-list-note{font-size:8px!important}
 .screen-buy-list-item{min-height:25px;gap:5px;padding:3px}
}
