/* Compact global mobile navigation: desktop styles remain untouched. */
@media (max-width:800px){
 body>.mobile-menu-portal>.mobile-menu-drawer{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  align-content:initial!important;gap:2px!important;
  width:min(340px,calc(100vw - 24px))!important;
  height:auto!important;max-height:calc(100dvh - 88px - env(safe-area-inset-bottom))!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  padding:10px!important;border-radius:15px!important;
 }
 body>.mobile-menu-portal>.mobile-menu-drawer .mobile-menu-brand{
  flex:none!important;position:sticky!important;top:-10px!important;
  display:flex!important;flex-direction:column!important;gap:3px!important;
  padding:10px 12px 11px!important;margin:-10px -10px 5px!important;
  min-height:0!important;
 }
 body>.mobile-menu-portal>.mobile-menu-drawer .mobile-menu-brand strong{font-size:13px!important;line-height:1.25!important}
 body>.mobile-menu-portal>.mobile-menu-drawer .mobile-brand-company{font-size:9px!important;line-height:1.3!important}
 body>.mobile-menu-portal>.mobile-menu-drawer>a:not(.mobile-menu-user),
 body>.mobile-menu-portal>.mobile-menu-drawer>.report-nav>summary{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;gap:10px!important;
  width:100%!important;min-width:0!important;min-height:39px!important;
  height:auto!important;margin:0!important;padding:8px 10px!important;
  font-size:13px!important;line-height:1.3!important;text-align:left!important;
  white-space:normal!important;border-radius:9px!important;
 }
 body>.mobile-menu-portal>.mobile-menu-drawer>a:not(.mobile-menu-user)::before,
 body>.mobile-menu-portal>.mobile-menu-drawer>.report-nav>summary::before{
  display:block!important;position:static!important;
  flex:0 0 19px!important;width:19px!important;height:19px!important;
  min-width:19px!important;margin:0!important;
  background-size:19px 19px!important;
 }
 body>.mobile-menu-portal>.mobile-menu-drawer>.report-nav{
  display:block!important;width:100%!important;margin:0!important;padding:0!important;
  min-height:0!important;
 }
 body>.mobile-menu-portal>.mobile-menu-drawer>.report-nav>summary>span{margin-left:auto!important}
 body>.mobile-menu-portal>.mobile-menu-drawer .report-subnav{padding:3px 0 5px 26px!important;margin:0!important}
 body>.mobile-menu-portal>.mobile-menu-drawer .report-subnav a{
  display:flex!important;align-items:center!important;min-height:34px!important;
  padding:7px 9px!important;margin:0!important;font-size:12px!important;
 }
 body>.mobile-menu-portal>.mobile-menu-drawer>a.mobile-menu-user{
  display:flex!important;align-items:center!important;gap:9px!important;
  min-height:42px!important;padding:7px 10px!important;margin-top:7px!important;
  border-top:1px solid #e2e8f0!important;font-size:12px!important;
 }
 body>.mobile-menu-portal>.mobile-menu-drawer>a.mobile-menu-user .menu-avatar{
  flex:none!important;width:29px!important;height:29px!important;
 }
 body>.mobile-menu-portal>.mobile-menu-drawer>form{margin:2px 0 0!important}
 body>.mobile-menu-portal>.mobile-menu-drawer>form button{
  min-height:37px!important;padding:8px 11px!important;font-size:12px!important;
  border-radius:9px!important;
 }
}
@media(max-width:380px){
 body>.mobile-menu-portal>.mobile-menu-drawer{width:calc(100vw - 16px)!important;max-height:calc(100dvh - 76px - env(safe-area-inset-bottom))!important}
}

/* Mobile global header: reveal on slight upward page scroll. Desktop unchanged. */
@media screen and (max-width:800px){
.main>.top{position:sticky!important;top:0!important;z-index:80!important;transition:transform .18s ease-out!important;will-change:transform}
.main>.top.mobile-header-hidden{transform:translate3d(0,-105%,0)!important;pointer-events:none!important}
.main>.top.mobile-header-visible{transform:translate3d(0,0,0)!important}
}
@media(prefers-reduced-motion:reduce){.main>.top{transition:none!important}}

/* Mobile header follows viewport, not the main element's sticky containing block. */
@media(max-width:800px){
 .main>.top.mobile-header-fixed{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;margin:0!important;z-index:900!important;box-sizing:border-box!important;padding:11px 12px!important}
 .main>.top.mobile-header-fixed.mobile-header-hidden{transform:translate3d(0,-110%,0)!important}
 .main>.top.mobile-header-fixed.mobile-header-visible{transform:translate3d(0,0,0)!important}
 .mobile-header-spacer{display:block;width:100%;height:0;pointer-events:none}
}

/* Narrow mobile header: prioritize readable branding and title. */
@media screen and (max-width:380px){
 .main>.top{gap:4px!important;padding:9px 7px!important}
 .main>.top .top-identity{display:flex!important;align-items:center!important;gap:7px!important;flex:1 1 auto!important;min-width:0!important;overflow:hidden!important}
 .main>.top .top-identity>h1{display:block!important;flex:1 1 auto!important;min-width:0!important;margin:0!important;font-size:15px!important;font-weight:750!important;line-height:1.2!important;letter-spacing:-.03em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .main>.top .top-identity .mobile-header-logo{display:grid!important;flex:0 0 36px!important;width:36px!important;height:36px!important}
 .main>.top .top-identity .mobile-header-logo img{max-width:100%!important;max-height:100%!important;object-fit:contain!important}
 .main>.top .top-actions{flex:0 0 auto!important;gap:2px!important;min-width:0!important}
 .main>.top .locale-form{width:32px!important;height:36px!important}
 .main>.top .stock-bell>summary,.main>.top .mobile-menu>summary{width:33px!important;height:36px!important}
}
