/* Sanio native-app style shell and mobile-first layout */
@media(max-width:899px){
  html,body{width:100%;min-height:100%;overscroll-behavior-y:contain}
  body{background:#f3f6fa;background-attachment:scroll}
  body:has(#app:not([hidden])){padding-bottom:env(safe-area-inset-bottom)}
  body:has(#app:not([hidden]))>header{height:58px;padding:0 16px;position:sticky;top:0;z-index:80}
  body:has(#app:not([hidden]))>header .network{display:none}
  body:has(#app:not([hidden]))>main{max-width:none;width:100%;padding:0 12px 18px}
  body:has(#app:not([hidden]))>.hero,
  body:has(#app:not([hidden]))>.trust-strip,
  body:has(#app:not([hidden])) .hero,
  body:has(#app:not([hidden])) .trust-strip,
  body:has(#app:not([hidden])) .bottom-cta,
  body:has(#app:not([hidden])) footer{display:none!important}
  #app{display:block;width:100%;max-width:none!important;margin:8px 0 0!important;padding:12px 12px calc(92px + env(safe-area-inset-bottom))!important;border:1px solid #e6ebf1;border-radius:20px;background:#f7f9fc;box-shadow:0 8px 28px rgba(15,39,61,.07);overflow:visible}
  #app .sanio-sidebar{display:none!important}
  #app .welcome{margin:0 0 14px!important;min-height:112px!important;padding:18px!important;border-radius:17px!important}
  #app .app-dashboard{display:flex;flex-direction:column;gap:13px;margin:0;padding:0}
  #app .app-dashboard>*{min-width:0;max-width:100%}
  #app .sanio-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #app .sanio-stat{min-width:0;padding:13px;border-radius:15px}
  #app .app-section-head{margin:18px 1px 9px;scroll-margin-top:74px}
  #app .app-section-head h3{font-size:17px}
  #app .availability-form,#app .card,#app .loads{border-radius:16px}
  #app input,#app select,#app textarea{font-size:16px!important;min-height:44px}
  #app button{min-height:42px;touch-action:manipulation}
  #app .mobile-app-nav{position:fixed!important;left:10px!important;right:10px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;z-index:1000!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:7px 5px!important;border:1px solid #d9e2eb!important;border-radius:19px!important;background:rgba(8,29,48,.97)!important;box-shadow:0 12px 35px rgba(4,22,39,.28)!important;backdrop-filter:blur(18px)}
  #app .mobile-app-nav button{display:flex;min-width:0;min-height:49px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 1px;border:0;border-radius:12px;background:transparent;color:#d3deea}
  #app .mobile-app-nav button span{font-size:18px;line-height:1;color:#f0c875}
  #app .mobile-app-nav button small{font-size:8px;line-height:1.1;white-space:nowrap;font-weight:800}
  #app .mobile-app-nav button.active{background:#f0c875;color:#102b43}
  #app .mobile-app-nav button.active span{color:#102b43}
  #app .chat .messages{height:min(42vh,360px);min-height:220px}
  #app .chat form{position:sticky;bottom:0;background:#fff}
  #app .saved-vehicle-card,#app .load-result-card,#app .booking-detail-card{border-radius:15px}
}
@media(max-width:380px){
  #app{padding-left:9px!important;padding-right:9px!important}
  #app .mobile-app-nav{left:6px!important;right:6px!important}
  #app .mobile-app-nav button small{font-size:7px}
}
@media(min-width:900px){
  body:has(#app:not([hidden])) main{max-width:1440px}
  #app{max-width:none}
}
@media(prefers-reduced-motion:reduce){#app *,#app *:before,#app *:after{animation:none!important;transition:none!important}}