/* OHD Stream 9.3.1 — final responsive foundation
   Loaded after legacy CSS to provide one authoritative mobile layout. */
:root{
  --ohd-mobile-dock-h:78px;
  --ohd-mobile-dock-gap:10px;
}
html,body{
  width:100%;
  max-width:100%;
  overflow-x:clip!important;
  overscroll-behavior-x:none;
}
body.app-shell{
  min-width:0!important;
}
.app-shell,.main,.page-stage,.page-stage>*{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.main,.page-stage{
  overflow-x:clip!important;
}

@media (max-width:980px){
  body.app-shell{
    padding-left:0!important;
    padding-right:0!important;
    padding-bottom:calc(var(--ohd-mobile-dock-h) + env(safe-area-inset-bottom,0px) + 14px)!important;
  }
  .main{
    width:100%!important;
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  .page-stage{
    width:100%!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  /* Single authoritative dock geometry. */
  .mobile-nav{
    display:block!important;
    position:fixed!important;
    z-index:2147483000!important;
    top:auto!important;
    bottom:0!important;
    left:0!important;
    right:0!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    contain:layout paint!important;
  }
  .mobile-nav-inner{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:end!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:calc(var(--ohd-mobile-dock-h) + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;
    padding:7px 7px calc(7px + env(safe-area-inset-bottom,0px))!important;
    border:1px solid color-mix(in srgb,var(--text) 12%,transparent)!important;
    border-width:1px 0 0!important;
    border-radius:18px 18px 0 0!important;
    background:color-mix(in srgb,var(--panel) 95%,transparent)!important;
    box-shadow:0 -12px 36px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.035)!important;
    -webkit-backdrop-filter:blur(22px) saturate(145%)!important;
    backdrop-filter:blur(22px) saturate(145%)!important;
    overflow:hidden!important;
    pointer-events:auto!important;
    box-sizing:border-box!important;
  }
  .mobile-nav-item{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:56px!important;
    margin:0!important;
    padding:6px 2px 5px!important;
    border:1px solid transparent!important;
    border-radius:15px!important;
    overflow:hidden!important;
    transform:none!important;
    box-sizing:border-box!important;
    touch-action:manipulation!important;
  }
  .mobile-nav-item.active:not(.mobile-add){
    color:var(--yellow2)!important;
    border-color:color-mix(in srgb,var(--yellow) 25%,transparent)!important;
    background:linear-gradient(105deg,color-mix(in srgb,var(--yellow) 15%,transparent),color-mix(in srgb,var(--yellow2) 9%,transparent))!important;
    box-shadow:none!important;
  }
  .mobile-nav-item.active:not(.mobile-add)::before{display:none!important}
  .mobile-nav-item.active:not(.mobile-add)::after{
    content:""!important;
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:2px!important;
    width:18px!important;
    height:2px!important;
    border-radius:999px!important;
    background:var(--yellow2)!important;
    transform:translateX(-50%)!important;
  }
  .mobile-nav-label{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    text-align:center!important;
    font-size:9px!important;
    line-height:1.15!important;
  }
  .mobile-nav-icon,.mobile-nav-icon .ui-icon{
    flex:0 0 auto!important;
  }
  .mobile-add{
    overflow:visible!important;
    background:transparent!important;
    border-color:transparent!important;
  }
  .mobile-add-button{
    position:relative!important;
    max-width:54px!important;
    width:54px!important;
    height:54px!important;
    margin-top:-22px!important;
  }
  body.mobile-keyboard-open .mobile-nav,
  body.mobile-menu-open .mobile-nav{
    transform:translateY(calc(100% + 16px))!important;
    opacity:0!important;
    visibility:hidden!important;
  }

  /* Profile is the only page with several intrinsic-width grids. */
  body.route-profile .page-stage,
  body.route-profile .profile-page-v912,
  body.route-profile .profile-hero-v912,
  body.route-profile .profile-layout-v912,
  body.route-profile .profile-main-v912,
  body.route-profile .profile-side-v912,
  body.route-profile .profile-panel-v912,
  body.route-profile .profile-avatar-section-v912,
  body.route-profile .profile-avatar-gallery-v912,
  body.route-profile .profile-avatar-grid-v912{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  body.route-profile .profile-page-v912{
    display:flex!important;
    flex-direction:column!important;
    overflow:clip!important;
  }
  body.route-profile .profile-layout-v912,
  body.route-profile .profile-main-v912,
  body.route-profile .profile-side-v912{
    display:block!important;
  }
  body.route-profile .profile-nav-v912{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  body.route-profile .profile-nav-v912 a{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding-inline:6px!important;
    overflow:hidden!important;
  }
  body.route-profile .profile-nav-v912 a span{
    width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.route-profile .profile-avatar-gallery-v912{
    overflow:hidden!important;
  }
  body.route-profile .profile-avatar-grid-v912{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    overflow:hidden!important;
  }
  body.route-profile .profile-avatar-grid-v912>*{
    min-width:0!important;
    max-width:100%!important;
  }
}

@media (min-width:651px) and (max-width:980px){
  .mobile-nav{
    left:50%!important;
    right:auto!important;
    bottom:12px!important;
    width:min(calc(100% - 28px),620px)!important;
    max-width:620px!important;
    transform:translateX(-50%)!important;
    overflow:visible!important;
  }
  .mobile-nav-inner{
    border-width:1px!important;
    border-radius:22px!important;
    min-height:var(--ohd-mobile-dock-h)!important;
    padding-bottom:7px!important;
  }
  body.mobile-keyboard-open .mobile-nav,
  body.mobile-menu-open .mobile-nav{
    transform:translate(-50%,calc(100% + 40px))!important;
  }
}

@media (max-width:430px){
  .page-stage{padding-left:9px!important;padding-right:9px!important}
  .mobile-nav-inner{padding-left:4px!important;padding-right:4px!important}
  .mobile-nav-item{padding-inline:1px!important}
  .mobile-nav-label{font-size:8.5px!important}
  body.route-profile .profile-avatar-grid-v912{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
