/* Omni 0.2.57 - Compact voice call dock + safe centered screen playback.
   Device selectors, voice state, call termination, streaming and per-user
   personalization retain their existing event handlers and data model. */

/* The voice dock is a small centered glass capsule, not a row stretching
   nearly the full width of the chat. */
#appShell:not(.nexo-video-fullscreen) .chat-column
 #voiceStage:not([hidden]) > .voice-stage-controls {
  inset:auto auto clamp(11px,1.8vh,17px) 50% !important;
  left:50% !important;
  right:auto !important;
  top:auto !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  width:max-content !important;
  max-width:calc(100% - 22px) !important;
  min-height:0 !important;
  height:auto !important;
  padding:7px 9px !important;
  margin:0 !important;
  border-radius:16px !important;
  transform:translateX(-50%) !important;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls::-webkit-scrollbar{
  display:none;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls > .stage-control-spacer{
  display:none !important;
}
/* All main controls show only the icon. Their descriptive accessible labels,
   native tooltips and click handlers are deliberately kept. */
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
 > .stage-control:not(.nexo-hangup){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 !important;
  gap:0 !important;
  border-radius:11px !important;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
 > .stage-control:not(.nexo-hangup) > span,
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
 > .stage-control-group > .stage-control > span:not(.stage-control-icon){
  display:none !important;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls > .stage-control-group{
  display:inline-flex;
  align-items:center;
  box-sizing:border-box;
  min-height:38px !important;
  height:38px !important;
  border-radius:11px !important;
  overflow:hidden;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
 > .stage-control-group > .stage-control{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:38px !important;
  min-width:38px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 !important;
  margin:0 !important;
  gap:0 !important;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
 > .stage-control-group > .stage-control-arrow{
  display:inline-grid;
  place-items:center;
  box-sizing:border-box;
  width:22px !important;
  min-width:22px !important;
  height:36px !important;
  min-height:36px !important;
  padding:0 !important;
  margin:0 !important;
  font-size:16px;
  line-height:1;
  flex-shrink:0;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
 :is(.stage-control-icon,.stage-control-svg){
  width:18px;
  height:18px;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
 #stageLeaveButton.nexo-hangup{
  box-sizing:border-box;
  width:44px !important;
  min-width:44px !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 !important;
  margin-left:1px !important;
  border-radius:11px !important;
}
#appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
 #stageLeaveButton .nexo-hangup-icon{
  width:20px;
  height:20px;
}

/* Reserve the channel-cover/top-navigation band and the floating dock,
   then center the normal-sized stream and speaking photos in the remaining
   region. This does not affect fullscreen mode (no top/bottom insets). */
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 > .voice-stage-panel:has(> .remote-media.has-video){
  box-sizing:border-box;
  padding:clamp(86px,10vh,112px) clamp(10px,1.8vw,22px)
          clamp(83px,10vh,101px) !important;
  min-height:0;
  overflow:hidden;
}
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 .remote-media.has-video[data-watched-count="1"]{
  align-items:center !important;
  align-content:center !important;
  justify-content:center !important;
  box-sizing:border-box;
}
#appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
 .remote-media.has-video[data-watched-count="1"]
 > .remote-tile.is-voice-participant:not(.has-video){
  align-self:center;
}
@media(max-height:640px){
  #appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
   > .voice-stage-panel:has(> .remote-media.has-video){
    padding-top:clamp(62px,10vh,82px) !important;
    padding-bottom:clamp(67px,12vh,80px) !important;
  }
}
@media(max-width:760px){
  #appShell:not(.nexo-video-fullscreen) .chat-column
   #voiceStage:not([hidden]) > .voice-stage-controls{
    gap:4px !important;
    padding:6px 7px !important;
    max-width:calc(100% - 14px) !important;
  }
  #appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
   > .stage-control:not(.nexo-hangup){
    width:33px !important;
    min-width:33px !important;
    height:35px !important;
    min-height:35px !important;
  }
  #appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
   > .stage-control-group{
    height:35px !important;
    min-height:35px !important;
  }
  #appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
   > .stage-control-group > .stage-control{
    width:33px !important;
    min-width:33px !important;
    height:33px !important;
    min-height:33px !important;
  }
  #appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
   > .stage-control-group > .stage-control-arrow{
    width:19px !important;
    min-width:19px !important;
    height:33px !important;
    min-height:33px !important;
  }
  #appShell .chat-column #voiceStage:not([hidden]) > .voice-stage-controls
   #stageLeaveButton.nexo-hangup{
    width:40px !important;
    min-width:40px !important;
    height:35px !important;
    min-height:35px !important;
  }
  #appShell:not(.nexo-video-fullscreen) #voiceStage:not([hidden])
   > .voice-stage-panel:has(> .remote-media.has-video){
    padding-inline:7px !important;
  }
}
