/* Omni official identity + voice stage layout / remote silent update.
   Legacy technical IDs are preserved for existing accounts and links. */

#appShell .server-rail .brand-mark,
.auth-screen .auth-brand .auth-mark{
  background:#fff url("/omni-icon.png") center / contain no-repeat !important;
  border:1px solid rgba(225,238,240,.25) !important;
  box-shadow:0 5px 18px rgba(0,0,0,.27) !important;
}
#appShell .server-rail .brand-mark:hover{
  filter:brightness(1.055);
  border-color:rgba(244,249,251,.47) !important;
}
.auth-screen .auth-brand .auth-mark{
  color:transparent !important;font-size:0 !important;
  flex-shrink:0;border-radius:10px !important;
}
#nexoPremiumDialog .nexo-premium-top-brand > span{
  background:#fff url("/omni-icon.png") center / contain no-repeat !important;
  color:transparent !important;font-size:0 !important;border-radius:9px !important;
}
.nexo-join-logo{
  background:#fff url("/omni-icon.png") center / contain no-repeat !important;
  font-size:0 !important;color:transparent !important;
  border-radius:15px !important;
}
#appShell #nexoCustomWallpaperPreview span{font-weight:700;letter-spacing:.12em;}
#appShell .nexo-topbar-brand strong{letter-spacing:.14em;}

/* No misleading "waiting for other people" warning in an active room.
   The current user's avatar already communicates successful entry. */
#appShell #voiceStage #voiceStageEmpty{display:none!important;}

/* Audio-only: photo cards sit in a CENTERED row near the top,
   beneath the channel cover; never at the left or at mid-screen. */
#appShell:not(.nexo-video-fullscreen) .chat-column
 > #voiceStage:not([hidden]) > .voice-stage-panel:not(:has(> .remote-media.has-video)){
  box-sizing:border-box;
  display:flex!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  padding:clamp(110px,15vh,146px) clamp(14px,2vw,30px)
          clamp(75px,11vh,105px)!important;
  min-width:0;min-height:0;
}
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 #remoteMedia.remote-media:not(.has-video){
  box-sizing:border-box;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  width:100%!important;
  height:100%!important;
  min-height:0;
  justify-content:center!important;
  align-content:flex-start!important;
  align-items:flex-start!important;
  gap:clamp(12px,1.8vw,23px)!important;
  padding:clamp(5px,1vh,12px) clamp(4px,1vw,14px)!important;
  margin:0 auto!important;
  overflow-y:auto;
}
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 #remoteMedia.remote-media:not(.has-video)
 > .remote-tile.is-voice-participant:not(.has-video){
  align-self:flex-start!important;
  margin:0!important;
}

/* During streaming, voice portraits become the FIRST centered row.
   A fixed-width row breaker separates avatars from actual video players. */
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 #remoteMedia.remote-media.has-video:has(> .remote-tile.is-voice-participant:not(.has-video)){
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-content:flex-start!important;
  align-items:flex-start!important;
  gap:clamp(8px,1.2vh,16px)!important;
}
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 #remoteMedia.remote-media.has-video
 > .remote-tile.is-voice-participant:not(.has-video){
  order:-20!important;
  align-self:flex-start!important;
  flex-shrink:0!important;
  margin:0!important;
}
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 #remoteMedia.remote-media.has-video:has(> .remote-tile.is-voice-participant:not(.has-video))::before{
  content:""!important;
  display:block!important;
  visibility:hidden!important;
  pointer-events:none!important;
  position:relative!important;
  order:-10!important;
  box-sizing:border-box!important;
  flex:0 0 100%!important;
  width:100%!important;
  height:clamp(4px,.8vh,10px)!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 #remoteMedia.remote-media.has-video
 > .remote-tile:is(.is-stream-primary,.is-stream-secondary,.is-stream-equal,
                   .is-stream-watching,.is-stream-preview,.is-stream-pending){
  order:0!important;
}
#appShell:not(.nexo-video-fullscreen) .chat-column
 > #voiceStage:not([hidden]) > .voice-stage-panel:has(> .remote-media.has-video){
  padding-top:clamp(115px,14vh,146px)!important;
}
@media(max-height:680px){
  #appShell:not(.nexo-video-fullscreen) .chat-column
   > #voiceStage:not([hidden]) > .voice-stage-panel:not(:has(> .remote-media.has-video)){
    padding-top:clamp(80px,15vh,105px)!important;
    padding-bottom:70px!important;
  }
  #appShell:not(.nexo-video-fullscreen) .chat-column
   > #voiceStage:not([hidden]) > .voice-stage-panel:has(> .remote-media.has-video){
    padding-top:clamp(85px,14vh,112px)!important;
    padding-bottom:clamp(66px,12vh,83px)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #appShell .server-rail .brand-mark{transition:none!important;}
}
