/* Omni / Fixed global navigation and aligned workspace / 0.2.76
   minimalist-ui implementation: one continuous top row and one aligned
   workspace row. Every column begins on the same baseline below navigation.
   User artwork, covers, channel data and existing interactions are preserved. */

#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen){
  grid-template-rows:68px minmax(0,1fr)!important;
}

/* The notification / shop / friends / search bar spans the full application. */
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .global-navigation{
  grid-column:1 / -1!important;
  grid-row:1!important;
  position:relative!important;
  inset:auto!important;
  align-self:stretch!important;
  width:auto!important;
  min-width:0!important;
  height:68px!important;
  min-height:68px!important;
  max-height:68px!important;
  box-sizing:border-box!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(230,238,237,.13)!important;
  border-radius:0!important;
  background:rgba(27,34,40,.96)!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  z-index:30!important;
}

/* All workspaces start exactly under the global navigation. */
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .server-rail,
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .channel-sidebar,
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .chat-column,
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .member-sidebar{
  grid-row:2!important;
  min-height:0!important;
  align-self:stretch!important;
}
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .server-rail{
  grid-column:1!important;
  margin-top:0!important;
  border-top:0!important;
}
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .channel-sidebar{
  grid-column:2!important;
  margin-top:0!important;
  border-top:0!important;
}
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .chat-column{
  grid-column:3!important;
  min-width:0!important;
  margin-top:0!important;
  border-top:0!important;
  position:relative!important;
}
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .member-sidebar{
  grid-column:4!important;
  margin-top:0!important;
  border-top:0!important;
}

/* The channel cover / chat heading belongs to the workspace, not the
   global navigation. Its existing artwork follows the shifted chat column. */
#appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
 > .chat-column > .chat-topbar{
  box-sizing:border-box;
}

/* Keep the right drawer anchored to the new workspace top on compact layouts. */
@media(max-width:1150px){
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
   > .member-sidebar{
    grid-column:3!important;
  }
  #appShell.app-shell.mobile-members-open:not(.voice-fullscreen):not(.nexo-video-fullscreen)
   > .member-sidebar{
    grid-area:1 / 1 / -1 / -1!important;
    top:68px!important;
    right:0!important;
    bottom:0!important;
    height:auto!important;
    max-height:none!important;
    z-index:85!important;
    border-radius:0!important;
  }
}
@media(max-width:760px){
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen){
    grid-template-rows:60px minmax(0,1fr)!important;
  }
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
   > .global-navigation{
    grid-column:1 / -1!important;
    grid-row:1!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    padding-inline:12px!important;
  }
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
   > .server-rail{
    grid-column:1!important;
    grid-row:2!important;
  }
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
   > .chat-column{
    grid-column:2!important;
    grid-row:2!important;
  }
  #appShell.app-shell:not(.voice-fullscreen):not(.nexo-video-fullscreen)
   > .member-sidebar{
    grid-column:2!important;
    grid-row:2!important;
  }
  #appShell.app-shell.mobile-members-open:not(.voice-fullscreen):not(.nexo-video-fullscreen)
   > .member-sidebar{
    top:60px!important;
  }
}

/* Both fullscreen modes deliberately remove the global bar.
   Existing fullscreen geometry and stream controls remain in charge. */
#appShell.app-shell.voice-fullscreen,
#appShell.app-shell.nexo-video-fullscreen{
  grid-template-rows:minmax(0,1fr)!important;
}
#appShell.app-shell:is(.voice-fullscreen,.nexo-video-fullscreen)
 > .global-navigation{
  display:none!important;
}
#appShell.app-shell.voice-fullscreen > .chat-column{
  grid-column:1!important;
  grid-row:1!important;
}
#appShell.app-shell.voice-fullscreen > .server-rail,
#appShell.app-shell.voice-fullscreen > .channel-sidebar,
#appShell.app-shell.voice-fullscreen > .member-sidebar{
  display:none!important;
}

/* Keep keyboard navigation and reduced-motion behavior intact. */
#appShell .global-navigation .global-nav-button:focus-visible{
  outline:2px solid #adcbbb!important;
  outline-offset:-2px!important;
}
@media(prefers-reduced-motion:reduce){
  #appShell .global-navigation,
  #appShell .global-navigation .global-nav-button{
    transition:none!important;
    animation:none!important;
  }
}
