/* v12.43.100: phone-only compact header and ordinary page scrolling.
   Prevent the Cloud Live/Sign Out bar and hamburger from floating over GameDay while scrolling.
   Tablet and desktop layouts are intentionally unchanged. */
@media (max-width:700px) {
  #appView { position:relative; }
  #appView .topbar {
    position:relative !important;
    top:auto !important;
    margin:0 !important;
    width:100%;
    min-height:48px !important;
    padding:6px max(8px,env(safe-area-inset-right,0px)) 6px calc(57px + env(safe-area-inset-left,0px)) !important;
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:space-between;
    gap:5px;
    background:#0a0c10;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  #appView .topbar > div:first-child { flex:1 1 auto; min-width:0; }
  #appView .topbar .eyebrow { display:none !important; }
  #appView .topbar h1 {
    font-size:clamp(10px,3vw,13px) !important;
    line-height:1.15;
    letter-spacing:0;
    margin:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #appView .topbar-actions {
    flex:0 0 auto;
    width:auto;
    max-width:none !important;
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:5px;
  }
  #appView .topbar .account-chip { display:none !important; }
  #appView .topbar #cloudStatus {
    display:inline-flex;
    align-items:center;
    flex:0 1 auto;
    max-width:110px;
    min-height:28px;
    padding:4px 6px;
    border-radius:7px;
    font-size:10px;
    line-height:1.1;
    letter-spacing:0;
    white-space:normal;
    text-align:center;
  }
  #appView .topbar #signOutBtn {
    width:auto;
    min-height:32px;
    margin:0;
    padding:5px 7px;
    border-radius:7px;
    font-size:10px;
    line-height:1.15;
    white-space:nowrap;
  }
  /* Unlike the old fixed hamburger, this scrolls out with the header and
     cannot stay on top of the GameDay controls or forms. */
  #appView #psdMobileMenuButton {
    position:absolute !important;
    top:6px !important;
    left:calc(8px + env(safe-area-inset-left,0px)) !important;
    right:auto !important;
    width:40px !important;
    min-width:40px !important;
    height:36px !important;
    min-height:36px !important;
    margin:0 !important;
    padding:3px !important;
    font-size:19px !important;
    line-height:1;
    box-shadow:none;
    z-index:303;
  }
  #appView #psdMobileMenuButton .psd-mobile-menu-label { display:none !important; }
  #appView .app-shell { padding-top:10px !important; }
  /* Keep the existing fixed field dock clear of the last rows and inputs. */
  #appView .app-shell { padding-bottom:calc(106px + env(safe-area-inset-bottom,0px)) !important; }
}
@media (max-width:350px) {
  #appView .topbar h1 { font-size:10px !important; }
  #appView .topbar #cloudStatus { max-width:82px; font-size:9px; padding:4px; }
  #appView .topbar #signOutBtn { font-size:9px; padding:4px 5px; }
}

/* v12.43.100: declutter the GameDay phone workflow. Keep Lightroom Cloud
   account management available on wider desktop/tablet screens. */
@media (max-width:700px) {
  #screen-gameday #gdLightroomConnectionCard {
    display:none !important;
  }
}
