/* Omni 0.2.77 - navigation polish with minimalist-ui
   Top navigation retains the old icon footprint, without reintroducing the
   duplicate blank row. The common toggle and translucent shop use existing
   right-sidebar behavior and preserve personalized themes. */

#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > #globalNavigation {
  /* Original row used the first 68px+246px of the four-column layout. */
  --omni-nav-icon-zone:314px;
  justify-content:flex-start!important;
  gap:max(0px,calc((var(--omni-nav-icon-zone) - 28px - 215px)/4))!important;
  padding-left:14px!important;
  padding-right:14px!important;
}

#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > #globalNavigation .global-nav-button {
  flex:0 0 43px!important;
  width:43px!important;
  height:43px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  color:rgba(230,239,237,.83)!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
}
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > #globalNavigation .global-nav-button svg {
  width:21px!important;
  height:21px!important;
  stroke-width:2.05!important;
  color:inherit!important;
}
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > #globalNavigation .global-nav-button:is(:hover,:focus-visible,[aria-pressed="true"],[aria-expanded="true"]),
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > #globalNavigation .global-nav-button.nexo-social-active {
  border-color:rgba(242,251,246,.09)!important;
  background:rgba(247,251,248,.045)!important;
  background-image:none!important;
  color:#f5faf8!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > #globalNavigation .global-nav-button:active{
  background:rgba(247,251,248,.065)!important;
}

/* The global navigation itself already occupies the first row. Social
   views must no longer reserve another 68px *inside* the chat column. */
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > .chat-column > #nexoSocialCenter.nexo-social-page:not([hidden]){
  top:0!important;
  bottom:0!important;
  left:0!important;
  right:0!important;
  inset:0!important;
}

/* The old translucent pseudo-header was painted across the empty strip
   above Friends. Both it and the artificial top padding are obsolete. */
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > .chat-column:has(> #friendsPanel:not([hidden]))::after {
  content:none!important;
  display:none!important;
}
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
  > .chat-column > #friendsPanel:not([hidden]) {
  padding-top:22px!important;
}
/* Reserve a place for the existing floating sidebar toggle. */
#appShell .friends-panel-header{
  padding-right:56px!important;
}

/* Identical panel toggle: inline outlined sidebar (not six stacked bars). */
#appShell #membersButton {
  font-size:0!important;
}
#appShell #membersButton .omni-members-icon,
#appShell .nexo-social-members-toggle .omni-members-icon{
  display:block!important;
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.85!important;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
#appShell:not(.nexo-video-fullscreen) .chat-column .topbar-actions
  #membersButton:not([hidden]),
#appShell .nexo-social-head .nexo-social-members-toggle,
#appShell #nexoShop .nexo-shop-members-toggle {
  box-sizing:border-box!important;
  min-width:38px!important;
  width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:8px!important;
  border:1px solid rgba(236,245,240,.15)!important;
  border-radius:9px!important;
  background:rgba(230,240,235,.045)!important;
  background-image:none!important;
  box-shadow:none!important;
  color:#edf5f2!important;
  text-shadow:none!important;
  backdrop-filter:blur(6px)!important;
  -webkit-backdrop-filter:blur(6px)!important;
  cursor:pointer;
}
#appShell:not(.nexo-video-fullscreen) .chat-column .topbar-actions
  #membersButton:is(:hover,:focus-visible):not([hidden]),
#appShell .nexo-social-head .nexo-social-members-toggle:is(:hover,:focus-visible),
#appShell #nexoShop .nexo-shop-members-toggle:is(:hover,:focus-visible) {
  background:rgba(235,244,238,.085)!important;
  border-color:rgba(243,252,247,.23)!important;
  color:#fff!important;
}

/* Shop stays a first-class page, not an opaque card floating above a
   custom wallpaper. Keep the original empty catalog and Premium notice. */
/* Match the legacy default-theme selector's specificity as well. */
html:not([data-nexo-personalized="1"]):not([data-nexo-theme="light"])
  #appShell #nexoSocialCenter.nexo-social-page:has(#nexoShop),
#appShell #nexoSocialCenter.nexo-social-page:has(#nexoShop){
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#appShell.app-shell:has(> .chat-column > #nexoSocialCenter:not([hidden]) #nexoShop)
  > .chat-column{
  background:transparent!important;
  background-image:none!important;
}
#appShell #nexoShop {
  background:transparent!important;
  background-image:none!important;
}
#appShell #nexoShop .nexo-shop-top-actions{
  display:flex;
  flex:0 0 auto;
  align-items:flex-start;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
}
#appShell #nexoShop .nexo-shop-top-actions > .nexo-shop-plan{
  flex:0 1 220px;
  min-width:0;
  width:220px;
}
#appShell #nexoShop .nexo-shop-members-toggle{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:0 0 38px!important;
  margin:0;
  align-self:flex-start;
}
#appShell #nexoShop .nexo-shop-members-toggle .omni-members-icon{
  width:20px!important;
  height:20px!important;
  color:inherit!important;
}
@media(max-width:1150px) and (min-width:761px){
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
    > #globalNavigation {--omni-nav-icon-zone:287px;}
}
@media(max-width:760px){
  /* Prior compact layout distributed shortcuts across the entire screen. */
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
    > #globalNavigation{
    justify-content:space-between!important;
    gap:4px!important;
    padding-inline:12px!important;
  }
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
    > .chat-column > #friendsPanel:not([hidden]){
    padding-top:18px!important;
  }
  #appShell #nexoShop .nexo-shop-head{align-items:flex-start;}
  #appShell #nexoShop .nexo-shop-top-actions{
    flex:1 1 100%;
    justify-content:space-between;
  }
  #appShell #nexoShop .nexo-shop-top-actions > .nexo-shop-plan{
    flex:1 1 auto;
    width:auto;
  }
}
@media(prefers-reduced-motion:reduce){
  #appShell #globalNavigation .global-nav-button,
  #appShell .nexo-social-members-toggle{
    transition:none!important;
  }
}

/* Compact layouts: the drawer must be truly hidden until requested.
   Some legacy panel display:flex rules superseded the base mobile media rule. */
@media(max-width:1150px){
  #appShell.app-shell:not(.mobile-members-open):not(.voice-fullscreen):not(.nexo-video-fullscreen)
    > .member-sidebar.nexo-right-design{
    display:none!important;
  }
  #appShell.app-shell.mobile-members-open:not(.voice-fullscreen):not(.nexo-video-fullscreen)
    > .member-sidebar.nexo-right-design{
    display:flex!important;
  }
}
/* With the account summary hidden in compact Shop, anchor the sidebar
   button beside the page title, never on a second row at the left edge. */
@media(max-width:780px){
  #appShell #nexoShop .nexo-shop-head{
    position:relative!important;
    padding-right:55px!important;
  }
  #appShell #nexoShop .nexo-shop-top-actions{
    position:absolute!important;
    top:4px!important;
    right:2px!important;
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
    align-items:flex-start!important;
    justify-content:flex-end!important;
  }
}

/* Compact drawer: the same restrained sidebar icon closes the drawer
   without losing access to the content beneath. */
#appShell .nexo-right-heading .omni-sidebar-dismiss{
  display:none!important;
}
@media(max-width:1150px){
  #appShell.app-shell.mobile-members-open:not(.voice-fullscreen):not(.nexo-video-fullscreen)
    > .member-sidebar.nexo-right-design .nexo-right-heading{
    padding-right:10px!important;
  }
  #appShell.app-shell.mobile-members-open:not(.voice-fullscreen):not(.nexo-video-fullscreen)
    .nexo-right-heading .omni-sidebar-dismiss{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    flex:0 0 32px;
    width:32px;
    height:32px;
    min-width:32px;
    padding:6px;
    color:#edf5f2;
    border:1px solid rgba(236,245,240,.15);
    border-radius:8px;
    background:rgba(230,240,235,.045);
    cursor:pointer;
  }
  #appShell .nexo-right-heading .omni-sidebar-dismiss .omni-members-icon{
    display:block;
    width:18px;
    height:18px;
    stroke:currentColor;
    stroke-width:1.85;
    fill:none;
    pointer-events:none;
  }
  #appShell .nexo-right-heading .omni-sidebar-dismiss:hover,
  #appShell .nexo-right-heading .omni-sidebar-dismiss:focus-visible{
    border-color:rgba(243,252,247,.23);
    background:rgba(235,244,238,.085);
  }
}
