/* OMNI - channel workspace without opaque top title bar.
   Only Home retains the full channel heading. The existing invite, search
   and member-toggle controls remain in place and functional on channels.
   They float individually over the workspace; no 60px layout row is kept. */

/* Contexts other than Home: no full-width opaque separator, no stale title. */
#appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))):not(:has(> #nexoSocialCenter:not([hidden]))) > .chat-topbar {
  display:flex !important;
  box-sizing:border-box !important;
  position:absolute !important;
  top:clamp(10px,1.5vw,19px) !important;
  left:auto !important;
  right:clamp(10px,1.5vw,20px) !important;
  width:max-content !important;
  max-width:calc(100% - 18px) !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  flex:0 0 auto !important;
  border:0 !important;
  border-bottom:0 !important;
  border-radius:0 !important;
  background:none !important;
  background-image:none !important;
  background-color:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  z-index:22;
  pointer-events:none;
}

/* The title, # channel and room status remain in the live data model,
   but do not cover the conversation or the people in a voice call. */
#appShell .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar .current-channel,
#appShell .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar .online-pill,
#appShell .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar .topbar-voice-status {
  display:none !important;
}
#appShell:not(.nexo-video-fullscreen) .chat-column > .chat-topbar .topbar-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:8px;
  min-width:0;
  max-width:100%;
}
#appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar .topbar-actions {
  pointer-events:none;
}
#appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar
 .topbar-actions > :is(#inviteCurrentChatButton,#searchHistoryButton,#membersButton):not([hidden]) {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  position:relative;
  min-width:38px;
  height:38px;
  padding:0 11px;
  margin:0;
  border-radius:12px;
  color:#eaf5f1;
  background:
    radial-gradient(ellipse 100% 130% at 12% -60%,rgba(255,255,255,.21),transparent 80%),
    linear-gradient(142deg,rgba(184,201,195,.19),rgba(38,53,56,.26)) !important;
  border:1px solid rgba(229,249,239,.30) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.19),0 7px 17px rgba(0,0,0,.20) !important;
  backdrop-filter:blur(20px) saturate(122%);
  -webkit-backdrop-filter:blur(20px) saturate(122%);
  text-shadow:0 1px 2px rgba(0,0,0,.25);
  pointer-events:auto;
}
#appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar
 .topbar-actions > :is(#inviteCurrentChatButton,#searchHistoryButton,#membersButton):hover {
  background:rgba(203,228,217,.24) !important;
  border-color:rgba(246,255,250,.53) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.30),0 10px 25px rgba(0,0,0,.27) !important;
}
#appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar .topbar-actions
 #inviteCurrentChatButton {
  gap:8px;
  font-weight:650;
  font-size:11px;
  padding-inline:15px;
}
#appShell .chat-column > .chat-topbar .topbar-actions #searchHistoryButton,
#appShell .chat-column > .chat-topbar .topbar-actions #membersButton {
  font-size:16px;
  line-height:1;
}

/* The nonfunctional Help '?' is removed from all Omni topbar states. */
#appShell .topbar-actions > button.rail-utility[aria-label="Ajuda"],
#appShell .server-rail > button.rail-utility[aria-label="Ajuda"] {
  display:none !important;
}

/* Notifications, invitations and the search page have their own headers. */
#appShell .chat-column:has(> #nexoSocialCenter:not([hidden])) > .chat-topbar {
  display:none !important;
}
/* Never show floating controls on top of an immersive fullscreen stream. */
#appShell.nexo-video-fullscreen .chat-column > .chat-topbar {
  display:none !important;
}

/* Light mode uses the same detached controls, not a full-width light bar. */
html[data-nexo-theme="light"] #appShell:not(.nexo-video-fullscreen)
 .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar
 .topbar-actions > :is(#inviteCurrentChatButton,#searchHistoryButton,#membersButton) {
  color:#284e48;
  border-color:rgba(88,135,119,.34) !important;
  background:linear-gradient(141deg,rgba(255,255,255,.64),rgba(211,231,219,.44)) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.69),0 7px 18px rgba(37,61,54,.13) !important;
}
@media(max-width:760px){
  #appShell:not(.nexo-video-fullscreen)
   .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar {
    right:7px !important;top:7px !important;max-width:calc(100% - 14px) !important;
  }
  #appShell:not(.nexo-video-fullscreen) .chat-column > .chat-topbar .topbar-actions {gap:5px;}
  #appShell:not(.nexo-video-fullscreen)
   .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar .topbar-actions
   > :is(#inviteCurrentChatButton,#searchHistoryButton,#membersButton) {
    min-width:33px;height:34px;padding:0 8px;
  }
  #appShell:not(.nexo-video-fullscreen)
   .chat-column:not(:has(> #homePanel:not([hidden]))) > .chat-topbar .topbar-actions
   #inviteCurrentChatButton > span {display:none !important;}
}

/* A watched transmission is immersive: no channel title or floating
   top actions may cover its video playback area. */
#appShell:not(.nexo-video-fullscreen) .chat-column:not(:has(> #homePanel:not([hidden]))):not(:has(> #nexoSocialCenter:not([hidden]))):has(> #voiceStage:not([hidden]) #remoteMedia.has-watched-streams.has-video) > .chat-topbar {
  display:none !important;
}
