/* VBA 2.49.3 — Run 4: commercial/mobile QA + canonical VBA basketball identity */
html{background:#0a0a0b;-webkit-text-size-adjust:100%}
body{min-width:0;overscroll-behavior-y:none}
img{max-width:100%}

/* Installed/mobile safe-area hardening. */
.nav-inner{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right))}
.bottom-nav{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right))}
@media(max-width:820px){
  main#app.wrap{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important}
  footer{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .drawer{padding-bottom:env(safe-area-inset-bottom,0px)}
}

/* Canonical ball gets one restrained system treatment everywhere app chrome uses it. */
.vba-install-sheet>img,.vba-notification-sheet header img{border-radius:24%;background:#000;filter:drop-shadow(0 9px 16px rgba(0,0,0,.44)) drop-shadow(0 0 10px rgba(255,91,30,.18))}
.vba-install-sheet>img{width:82px;height:82px}
.vba-notification-sheet header img{width:50px;height:50px}

/* Home commercial polish: prevent long schedule-aware copy or buttons from colliding on phones. */
.commercial-home-actions{align-items:stretch}
.commercial-home-actions button{min-height:44px}
.home-pulse-primary,.home-pulse-card,.commercial-feature{touch-action:manipulation}
@media(max-width:700px){
  .commercial-home-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%}
  .commercial-home-actions .commercial-primary{grid-column:1/-1;width:100%}
  .commercial-home-actions .commercial-secondary{width:100%;white-space:normal;line-height:1.12}
  .commercial-home-stats{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .commercial-home-stats .stat{min-width:0}
  .commercial-home-stats .stat .v{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home-pulse-head{gap:10px}
}
@media(max-width:430px){
  .commercial-home-actions{grid-template-columns:1fr}
  .commercial-home-actions .commercial-primary{grid-column:auto}
  .home-pulse-head{display:grid;grid-template-columns:1fr}
  .home-pulse-day{text-align:left!important}
  .home-pulse-day small{max-width:none!important}
}

/* Owner sheets and navigation remain clear of iPhone/Android home indicators. */
@media(max-width:820px){
  body.owner-mode .fs-mobile-nav{padding-left:max(5px,env(safe-area-inset-left));padding-right:max(5px,env(safe-area-inset-right))}
  body.owner-mode .fs-more-sheet{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  body.owner-mode .fs-bottom-sheet,body.owner-mode .bsheet{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
}

/* Fallback logo surfaces use the ball without a synthetic frame. */
.fs-team-home-mark img,.fs-mobile-logo img{object-fit:contain}

@media(prefers-reduced-motion:reduce){
  .home-pulse-primary,.home-pulse-card,.commercial-feature,.btn,.bnav-hero .ball{transition:none!important}
}
