/* Customer Trips, account and access sheets only. All identity/booking actions
   remain the existing controls. No viewport detection, PWA or native styles. */
@media (max-width:1024px){
  body[data-mode="customer"] .trip-tabs{max-width:100%;margin-inline:0}
  body[data-mode="customer"] .trip-tabs button{flex-shrink:0;min-height:44px}
  body[data-mode="customer"] .booking-list .reservation-card{max-width:100%;min-width:0}
  body[data-mode="customer"] .booking-list .reservation-card>.row>div{min-width:0;overflow-wrap:anywhere}
  body[data-mode="customer"] .booking-list .reservation-card>.row>img{flex:none}
  body[data-mode="customer"] .booking-list .reservation-bottom{flex-wrap:wrap}
  body[data-mode="customer"] .booking-list .reservation-bottom .actions{flex-wrap:wrap;max-width:100%;min-width:0}
  body[data-mode="customer"] .booking-list .reservation-bottom .actions>button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  body[data-mode="customer"] .account-heading>div:not(.avatar-large),body[data-mode="customer"] .menu-surface .menu-item>span{min-width:0;overflow-wrap:anywhere}
  body[data-mode="customer"] .account-heading .account-login{min-height:44px;white-space:normal;text-align:start}
  body[data-mode="customer"] .account-bookings button{min-width:0;min-height:44px;overflow-wrap:anywhere}
  body[data-mode="customer"] .menu-surface .menu-item>svg{flex-shrink:0}
  body[data-mode="customer"] #modal:has(.google-login,input[name="fullname"],form input[name="code"]){box-sizing:border-box;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain;scroll-padding-block:74px 18px}
  body[data-mode="customer"] #modal:has(.google-login,input[name="fullname"],form input[name="code"]) .modal-top{gap:12px}
  body[data-mode="customer"] #modal:has(.google-login,input[name="fullname"],form input[name="code"]) .modal-top h3{min-width:0;overflow-wrap:anywhere}
  body[data-mode="customer"] #modal:has(.google-login,input[name="fullname"],form input[name="code"]) .modal-top .round{flex:none;min-width:44px;min-height:44px}
  #modal .google-login,body[data-mode="customer"] #modal form:has(input[name="fullname"]),.panel.form:has(input[name="code"]){min-width:0;overflow-wrap:anywhere}
  #modal .google-login .payment-ack{display:flex;text-align:start;align-items:center;gap:10px;min-height:44px}
  #modal .google-login .payment-ack>input{width:20px;height:20px}
  .panel.form:has(input[name="code"]) form{display:grid;gap:12px;min-width:0}
  .panel.form:has(input[name="code"]) label{display:grid;gap:6px;min-width:0}
  body[data-mode="customer"] #modal form:has(input[name="fullname"]) :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select),
  .panel.form:has(input[name="code"]) input[name="code"]{box-sizing:border-box;max-width:100%;min-width:0;width:100%;font-size:16px;scroll-margin-block:74px 20px}
  .panel.form:has(input[name="code"]) button{white-space:normal;min-height:44px}
}
@media(min-width:768px) and (max-width:1024px){
  body[data-mode="customer"] .trip-tabs{gap:8px;flex-wrap:wrap}
  body[data-mode="customer"] .booking-list:has(>.reservation-card:nth-of-type(2)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,20px)}
  body[data-mode="customer"] .booking-list:has(>.reservation-card:nth-of-type(2))>.reservation-card{width:100%;box-sizing:border-box;margin:0;align-self:start}
  body[data-mode="customer"] .booking-list:has(>.reservation-card:nth-of-type(2))>.reservation-card>.row{gap:12px}
  body[data-mode="customer"] .booking-list:has(>.reservation-card:nth-of-type(2))>.reservation-card>.row>img{width:clamp(64px,8vw,84px);height:auto;aspect-ratio:4/5}
  body[data-mode="customer"] #modal:has(.google-login,input[name="fullname"],form input[name="code"]){width:min(90vw,580px)}
}
@media(max-width:520px){
  body[data-mode="customer"] .trip-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(78px,100%),1fr));gap:6px;overflow:visible;align-items:stretch}
  body[data-mode="customer"] .trip-tabs button{flex-wrap:wrap;white-space:normal;line-height:1.2;padding:8px 5px;min-width:0;text-align:center;overflow-wrap:anywhere}
  body[data-mode="customer"] .booking-list .reservation-card{padding:14px;margin-bottom:12px}
  body[data-mode="customer"] .booking-list .reservation-bottom{align-items:start;gap:9px}
  body[data-mode="customer"] .booking-list .reservation-card h3{font-size:14px}
  body[data-mode="customer"] .booking-list .reservation-card small,.booking-list .reservation-bottom .actions>button{font-size:12px}
  body[data-mode="customer"] .account-heading{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px}
  body[data-mode="customer"] .account-heading h1{line-height:1.22}
  body[data-mode="customer"] #modal:has(.google-login,input[name="fullname"],form input[name="code"]){width:calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right))}
  body[data-mode="customer"] #modal:has(.google-login,input[name="fullname"],form input[name="code"]) .modal-body{padding:16px 16px max(16px,env(safe-area-inset-bottom))}
  #modal .google-login{padding:4px 0 12px}
  #modal .google-login>img{width:52px;margin-bottom:14px}
  #modal .google-login .google-button{height:auto;min-height:48px;padding:10px 12px;margin:16px 0}
  #modal .panel.form:has(input[name="code"]){padding:14px}
}
