/* GebzeUstam V172 – responsive polish of V169→V170→V171. No replacement of business logic. */
:root{--ux172-navy:#142e49;--ux172-accent:#ed781f;--ux172-line:#dfe8f1}
.v172-skip-link{position:fixed;top:-100px;left:12px;z-index:300;background:#0b294a;color:#fff;border-radius:9px;padding:10px 16px;text-decoration:none;font-weight:850}
.v172-skip-link:focus{top:9px;outline:3px solid #ffa957}
body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #fdbb83;outline-offset:3px}
body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) :is(.card,.track-panel,.customer-job-v164,.admin-job-accordion,.usta-job-card,.message-inbox-card){min-width:0;max-width:100%}
body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) :is(h1,h2,h3,p,span,small,td,.admin-list-row,.status-chip){overflow-wrap:break-word}
/* Admin: discover a provider from a long list before bulk sending. */
.v172-usta-search-row{display:flex;gap:12px;justify-content:space-between;align-items:end;margin:12px 0 11px}
.v172-usta-search-row label{display:grid;gap:6px;flex:1;max-width:420px;font-weight:800;color:#224363;font-size:12px}
.v172-usta-search-row input{width:100%;min-width:0;min-height:46px;background:#fff;border:1px solid #d2dfec;border-radius:13px;padding:11px 14px;font:inherit;color:#162f4b;font-size:15px}
.v172-usta-search-row input:focus{border-color:#ed781f;box-shadow:0 0 0 3px #ffe9d8}
.v172-visible-count{font-size:12px;color:#446681;font-weight:800;background:#f4f8fd;border:1px solid #e0eaf5;border-radius:10px;padding:10px 12px}
.manual-usta-table tbody tr[hidden]{display:none!important}
body:is(.role-admin,.role-super_admin) .manual-usta-table tbody tr:has(input.manual-usta-select:checked){background:#fff8ee;border-color:#eda664!important;box-shadow:0 0 0 1px #f2b77e}
body:is(.role-admin,.role-super_admin) .manual-usta-table tbody tr:has(input.manual-usta-select:focus-visible){outline:3px solid #ffcf98;outline-offset:2px}
body:is(.role-admin,.role-super_admin) .manual-usta-table .manual-usta-name{color:#153d60;font-size:13px}
body:is(.role-admin,.role-super_admin) .v171-present-bar{flex-wrap:wrap}
body:is(.role-admin,.role-super_admin) .v171-present-bar button{white-space:normal}
/* Customer: price and quality are paired; one clear choice. */
.v172-offer-selection-help{font-size:12px;line-height:1.65;color:#47617d;border:1px solid #d9e7f4;background:#f5f9fd;border-radius:13px;margin:0 0 14px;padding:11px 13px}
.v172-offer-selection-help strong{color:#173b5f}
.role-customer .offer-card{align-content:start}
.role-customer .offer-title,.role-customer .offer-price,.role-customer .offer-facts span{min-width:0}
.role-customer .offer-card-head{min-width:0}
.role-customer .offer-card .offer-approved{max-width:33%;white-space:normal;text-align:center}
/* Usta: action/fee clarity. */
.role-usta .usta-job-card .usta-fast-actions{gap:9px}
.role-usta .usta-job-card :is(button,.btn){white-space:normal;line-height:1.25}
.role-usta .usta-job-card :is(.usta-offer-finance-preview,.detail-grid){overflow-wrap:anywhere}
.role-usta .usta-live-indicator{white-space:normal}
/* Inbox and notifications on smaller screens. */
body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .message-conversation-top{min-width:0;flex-wrap:wrap}
body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .message-conversation p{max-width:100%}
body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .message-compose textarea{font-size:16px;min-height:64px}
body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .message-compose :is(.send-btn,.attach-btn){min-width:44px;min-height:44px}
body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .notification-copy{min-width:0}
/* Desktop/tablet */
@media(min-width:1100px){
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .page-shell{min-width:0}
 body:is(.role-admin,.role-super_admin) .admin-job-body>.ops-grid{align-items:stretch}
 body:is(.role-admin,.role-super_admin) .manual-usta-table-wrap{max-width:100%}
}
@media(max-width:1099px){
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .mobile-bottom-nav{box-sizing:border-box;display:flex;align-items:stretch;justify-content:space-around;gap:2px}
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .mobile-bottom-nav a{flex:1 1 0;min-width:0;max-width:25%;text-align:center;line-height:1.2;white-space:normal;overflow-wrap:anywhere;display:flex;flex-direction:column;align-items:center}
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .mobile-bottom-nav .bottom-main{font-size:10px}
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .page-shell{box-sizing:border-box}
}
@media(max-width:780px){
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .page-shell{width:calc(100% - 24px)!important;max-width:none;margin:0 auto!important;padding-top:12px;padding-bottom:calc(102px + env(safe-area-inset-bottom));min-width:0}
 .v172-usta-search-row{display:grid;grid-template-columns:1fr;gap:7px;align-items:stretch}
 .v172-usta-search-row label{max-width:none}
 .v172-visible-count{justify-self:start}
 body:is(.role-admin,.role-super_admin) .manual-usta-table-wrap{border:0;background:transparent}
 body:is(.role-admin,.role-super_admin) .manual-usta-table-wrap .manual-usta-table{min-width:0!important;width:100%!important;max-width:100%;display:block;box-sizing:border-box}
 body:is(.role-admin,.role-super_admin) .manual-usta-table-wrap .manual-usta-table tbody{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body:is(.role-admin,.role-super_admin) .manual-usta-table-wrap .manual-usta-table tbody tr{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body:is(.role-admin,.role-super_admin) .manual-usta-table-wrap .manual-usta-table td{min-width:0}
 body:is(.role-admin,.role-super_admin) .manual-usta-table tbody{padding:1px}
 body:is(.role-admin,.role-super_admin) .manual-usta-table tbody tr{padding:13px!important;min-width:0}
 body:is(.role-admin,.role-super_admin) .manual-usta-table td:first-child{grid-row:auto!important;grid-column:1/-1}
 body:is(.role-admin,.role-super_admin) .manual-usta-table td:nth-child(2){grid-row:1;grid-column:1/-1}
 body:is(.role-admin,.role-super_admin) .manual-usta-table td:nth-child(4){grid-column:1/-1}
 body:is(.role-admin,.role-super_admin) .manual-usta-table td:nth-child(1)>div{gap:9px!important}
 body:is(.role-admin,.role-super_admin) .manual-usta-table .manual-usta-send{flex:1;min-width:0;min-height:46px}
 body:is(.role-admin,.role-super_admin) .manual-usta-table input.manual-usta-select{flex:0 0 27px;width:27px;height:27px}
 body:is(.role-admin,.role-super_admin) .manual-usta-bulkbar{align-items:start}
 body:is(.role-admin,.role-super_admin) .manual-usta-bulkbar .manual-usta-bulk-send{order:3;width:100%;min-height:50px}
 body:is(.role-admin,.role-super_admin) .manual-usta-bulkbar .manual-usta-result{order:4}
 body:is(.role-admin,.role-super_admin) .v171-present-bar{bottom:calc(85px + env(safe-area-inset-bottom))}
 body:is(.role-admin,.role-super_admin) .v171-present-bar button{flex:1}
 .role-customer .offer-grid{grid-template-columns:1fr}
 .role-customer .offer-card{gap:13px}
 .role-customer .offer-discount-choices label{grid-template-columns:23px minmax(0,1fr)!important;gap:9px}
 .role-customer .offer-discount-choices em{grid-column:2;white-space:normal}
 .role-usta .usta-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:3px 0 9px;scroll-snap-type:x proximity}
 .role-usta .usta-filters button{flex:0 0 auto;scroll-snap-align:start;min-height:45px}
 .role-usta .usta-quick-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .role-usta .usta-stat-card{min-width:0;padding:11px 8px}
 .role-usta .usta-stat-card strong{font-size:21px}
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .notification-item{display:flex;flex-wrap:wrap;gap:10px}
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .notification-item form{margin-left:auto}
}
@media(max-width:380px){
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .page-shell{width:calc(100% - 18px)!important}
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .mobile-bottom-nav{padding-left:2px;padding-right:2px}
 body:is(.role-customer,.role-usta,.role-admin,.role-super_admin) .mobile-bottom-nav a{font-size:9px;padding-inline:1px}
 .role-usta .usta-quick-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
 .role-usta .usta-stat-card span,.role-usta .usta-stat-card small{font-size:10px}
 .role-customer .track-hero-header{flex-wrap:wrap}
 .role-customer .track-status{white-space:normal}
 .v172-offer-selection-help{font-size:11px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.role-usta .usta-filters{scroll-snap-type:none}}
