/* Final responsive guardrails, loaded after each page's component styles. */
@media screen {
 *,*::before,*::after{box-sizing:border-box}
 [hidden]{display:none!important}
 #setup-link-dialog{width:min(620px,calc(100vw - 32px));color:#eee}
 #setup-link-dialog p{line-height:1.7;overflow-wrap:anywhere}
 #setup-link-value{display:block;width:100%;min-width:0;margin-block:20px;font-size:16px}
 #setup-link-dialog>button{min-height:44px;margin:6px 8px 6px 0}
 .join-shell{width:min(100%,540px);margin:60px auto;padding:24px}
 .join-shell>img{max-width:160px}
 .join-shell p{line-height:1.7;overflow-wrap:anywhere}
 #join-form{display:grid;gap:20px;margin-top:28px}
 #join-form label{display:grid;gap:8px}
 #join-form input{width:100%;min-width:0;font-size:16px;min-height:48px}
 #join-form button,#join-login{min-height:48px}
 #join-login:not([hidden]){display:inline-flex;align-items:center}
}
@media screen and (max-width:820px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 input,select,textarea{font-size:16px!important;max-width:100%}
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,button{min-height:44px}
 input[type=checkbox],input[type=radio]{min-height:20px!important;width:20px!important;height:20px!important;flex:none}
 input[type=hidden]{display:none!important}
 button,a{touch-action:manipulation}
 button{white-space:normal;overflow-wrap:anywhere}
 label,fieldset,.hub-form>*,.formgrid>*,.booking-layout>*,.product-info,.showroom-filters>*{min-width:0}
 fieldset{max-width:100%;margin-inline:0}
 .join-shell{margin:24px auto;padding:24px 18px calc(32px + env(safe-area-inset-bottom))}
 .join-shell h1{font-size:34px;line-height:1.15}
 #setup-link-dialog{overflow-y:auto;overscroll-behavior:contain;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
 #setup-link-dialog>button{width:100%;margin:6px 0}
 dialog[open]{max-height:var(--mobile-viewport-height,100dvh)!important;scroll-padding-bottom:100px}
 dialog form{min-width:0}
 #account-form select[multiple]{min-height:180px;max-height:240px}
 .booking-hours-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .booking-hours-row select{min-width:0;width:100%}
 .booking-hours-row>label:first-child,.booking-hours-row>button{grid-column:1/-1}
 .product-shell,.showroom-shell{padding-bottom:calc(32px + env(safe-area-inset-bottom))}
 .product-shell header,.showroom-shell header{flex-wrap:wrap}
 .product-brand{overflow-wrap:anywhere}
 .product-contact input,.product-contact textarea{width:100%;min-height:48px}
 .product-info dd,#showroom-specs dd,.customer-product-card h2,.customer-product-card h3{min-width:0;overflow-wrap:anywhere}
 .zoom-actions,#showroom-photo-buttons{flex-wrap:wrap}
 .zoom-actions button{flex:1}
 #photo-zoom{max-width:calc(100vw - 16px);margin:auto;padding:12px}
 .zoom-scroll{touch-action:pan-x pan-y;overscroll-behavior:contain}
 .app-search-results,.app-sidebar-panel{overscroll-behavior:contain}
 body[data-mobile-keyboard=true] .app-bottom-nav{display:none!important}
 body[data-mobile-keyboard=true] .app-topbar{position:relative}
 body[data-mobile-keyboard=true] .order-form-actions{position:static}
 .mobile-record-table td[colspan]{display:block}
 .mobile-record-table td[colspan]>.mobile-cell-label{display:none}
 .mobile-record-table td[colspan]>.mobile-cell-value{text-align:left}
}
@media screen and (max-width:430px){
 .booking-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .booking-slots button{padding:12px 6px}
 .booking-panel{padding-inline:12px}
 .booking-calendar{gap:3px}
 .booking-calendar button{padding:0;font-size:14px}
 .hub-toolbar,.personal-result-filters{grid-template-columns:minmax(0,1fr)}
 .hub-toolbar>*,.personal-result-filters>*{grid-column:1/-1}
 .hub-cards,.inventory-stats,.cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mobile-record-table .mobile-cell-label{flex-basis:35%}
 .hub-card strong,.cards .card .v{font-size:23px}
}
@media screen and (max-width:350px){
 .hub-cards,.inventory-stats,.cards,.detail-grid,.order-payment-summary,.commission-actions{grid-template-columns:minmax(0,1fr)}
 .hub-card small{min-height:0}
 .booking-hours-row{grid-template-columns:minmax(0,1fr)}
 .booking-brand h1{font-size:30px}
 .app-topbar{padding-inline:12px!important}
 .app-current-title{overflow-wrap:anywhere}
}
@media screen and (max-width:820px){html:has(dialog[open]){overflow:hidden}body:has(dialog[open]){overflow:hidden}}
