/* Omni 0.2.59: Header panorama exists behind navigation, not above an
   opened community/channel. Right sidebar is always a foreground panel.
   The old 061 rules are preserved for unrelated surfaces. */
#appShell:is(.nexo-custom-banner,.nexo-community-header)
 :is(.global-navigation,.chat-topbar) {
  isolation:auto;
}
/* With an expanded right sidebar, draw the panorama up to its LEFT edge.
   With the sidebar collapsed, the same photo can occupy the full width.
   The source remains one continuous image (never independently tiled). */
#appShell:is(.nexo-custom-banner,.nexo-community-header):not(.nexo-video-fullscreen):not(.voice-fullscreen)::before {
  clip-path:inset(0 calc(100% - var(--nexo-panorama-wide-width,100%)) 0 0) !important;
}
/* A visible channel, voice room or room preview has priority in the middle:
   the application notification image must not overpaint the channel cover,
   welcome messages, chat text, video or player. The left navigation retains
   its original aligned segment. */
#appShell:is(.nexo-custom-banner,.nexo-community-header):not(.nexo-video-fullscreen):not(.voice-fullscreen):has(
 > .chat-column > :is(#conversation,#voiceStage,#voicePreviewPanel):not([hidden])
)::before {
  clip-path:inset(0 calc(100% - var(--nexo-panorama-nav-width,314px)) 0 0) !important;
}
/* Do not hollow out the first 68px of the right panel. This was the
   exact reason the cover appeared across its "COMUNIDADE ATIVA" heading. */
#appShell#appShell#appShell:is(.nexo-custom-banner,.nexo-community-header)
 > .member-sidebar.nexo-right-design:not([hidden]) {
  position:relative;
  z-index:28;
  isolation:isolate;
  background-color:var(--nexo-sidebar-right-bg,rgba(20,23,28,.90)) !important;
  background-image:none !important;
  border-left:1px solid rgba(242,246,252,.12) !important;
  box-shadow:inset 1px 0 rgba(255,255,255,.075),-7px 0 22px rgba(0,0,0,.18) !important;
  backdrop-filter:blur(28px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(28px) saturate(118%) !important;
}
#appShell#appShell:is(.nexo-custom-banner,.nexo-community-header)
 > .member-sidebar.nexo-right-design .nexo-right-heading {
  background:linear-gradient(140deg,rgba(255,255,255,.045),transparent 76%) !important;
  background-image:linear-gradient(140deg,rgba(255,255,255,.045),transparent 76%) !important;
}
/* Right-panel drop-down must be *over* every header and notification.
   It has its own surface from top to bottom, not a transparent cutout. */
@media(max-width:1150px) {
 #appShell#appShell#appShell:is(.nexo-custom-banner,.nexo-community-header).mobile-members-open
 > .member-sidebar.nexo-right-design:not([hidden]){
   position:absolute !important;
   z-index:85 !important;
   top:0 !important;
   right:0 !important;
   bottom:0 !important;
   height:100% !important;
   border-radius:12px 0 0 12px !important;
   background-color:var(--nexo-sidebar-right-bg,rgba(18,22,27,.96)) !important;
   background-image:none !important;
   backdrop-filter:blur(29px) saturate(115%) !important;
 }
}
/* The shared navigation image is never placed above an opened cover by
   a high z-index on the chat header's floating controls. */
#appShell:is(.nexo-custom-banner,.nexo-community-header)
 .chat-column.nexo-community-themed::before {
  background-position:center center,center center;
  background-repeat:no-repeat;
}
