/* Wire · h9310a · Mobile Menu Top Header Owner Fix
 *
 * Targets the exact remaining mobile-menu header owner proven by h9309f:
 *   aside[data-wire-left-drawer] > header
 * plus the direct mobile header brand:
 *   .wire-mobile-drawer-brand-303f1h9296k
 *
 * These selectors intentionally outrank the older inline !important rules
 * without rewriting those legacy owners.
 */

@media(max-width:820px){
  html body
  aside.wire-mobile-left-drawer[data-wire-left-drawer] > header{
    position:relative!important;
    min-height:70px!important;
    height:70px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:12px!important;
    padding:0 14px!important;
    border-bottom:1px solid rgba(71,86,99,.16)!important;
    background:#010305!important;
    background-color:#010305!important;
    background-image:none!important;
    box-shadow:none!important;
  }

  html body
  aside.wire-mobile-left-drawer[data-wire-left-drawer]
  > header
  .wire-mobile-drawer-brand-303f1h9296k{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:156px!important;
    max-width:46vw!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    transform:translate(-50%,-50%)!important;
    text-decoration:none!important;
  }

  html body
  aside.wire-mobile-left-drawer[data-wire-left-drawer]
  > header
  .wire-mobile-drawer-brand-303f1h9296k img{
    display:block!important;
    width:156px!important;
    max-width:46vw!important;
    height:auto!important;
    max-height:54px!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center center!important;
    transform:none!important;
    filter:none!important;
  }

  html body
  aside.wire-mobile-left-drawer[data-wire-left-drawer]
  > header
  > [data-wire-close-drawers]{
    position:relative!important;
    z-index:2!important;
    width:42px!important;
    height:42px!important;
    margin-left:auto!important;
    padding:0!important;
    border:1px solid rgba(96,115,130,.24)!important;
    border-radius:50%!important;
    background:#070b0f!important;
    background-color:#070b0f!important;
    color:#f6f8fa!important;
    box-shadow:0 8px 24px rgba(0,0,0,.44)!important;
  }

  /* Original v230m rail top dock: make the actual top dock match the same
     near-black surface and keep its logo geometrically centered. */
  html body.wire-original-left-menu-open
  .wire-app > .left-rail.wire-main-sidebar-303f1h213
  > .wire-main-sidebar-top-dock-303f1h9288b{
    background:#010305!important;
    background-color:#010305!important;
    background-image:none!important;
    border-bottom-color:rgba(71,86,99,.16)!important;
  }

  html body.wire-original-left-menu-open
  .wire-app > .left-rail.wire-main-sidebar-303f1h213
  > .wire-main-sidebar-top-dock-303f1h9288b
  > .wire-main-sidebar-brand-303f1h213{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:70px!important;
    min-height:70px!important;
    margin:0!important;
    padding:0!important;
    background:#010305!important;
    border-bottom:0!important;
    overflow:visible!important;
  }

  html body.wire-original-left-menu-open
  .wire-app > .left-rail.wire-main-sidebar-303f1h213
  > .wire-main-sidebar-top-dock-303f1h9288b
  > .wire-main-sidebar-brand-303f1h213
  > img.wire-primary-brand-logo{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    width:156px!important;
    max-width:46vw!important;
    height:auto!important;
    max-height:54px!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center center!important;
    transform:translate(-50%,-50%)!important;
  }
}

/* Installed Web App / standalone explicitly receives the exact same top owner.
   Safe-area padding from h9296p remains untouched. */
@media(display-mode:standalone) and (max-width:820px){
  html.wire-pwa-standalone-303f1h9296p
  body
  aside.wire-mobile-left-drawer[data-wire-left-drawer] > header,
  html.wire-pwa-standalone-303f1h9296p
  body.wire-original-left-menu-open
  .wire-app > .left-rail.wire-main-sidebar-303f1h213
  > .wire-main-sidebar-top-dock-303f1h9288b{
    background:#010305!important;
    background-color:#010305!important;
    background-image:none!important;
  }
}
