/* Omni 0.2.78: Full-width upper image and faithful crop editor.
   The global navigation already spans the full viewport width in v0.2.77.
   Paint exactly one photo on that surface: no separate #geral segment,
   no tiled image, no cross-column seams and no opaque tint over the image.
   Existing per-account colors and the separate Mini Central remain intact. */

#appShell.app-shell.nexo-custom-banner:not(.nexo-video-fullscreen):not(.voice-fullscreen)
 > #globalNavigation.global-navigation {
  position:relative!important;
  z-index:30!important;
  background-color:var(--nexo-banner-color,#172534)!important;
  background-image:
    linear-gradient(90deg,rgba(9,14,18,.17),rgba(9,14,18,.25)),
    var(--nexo-banner-image,none)!important;
  background-position:center center,center center!important;
  background-size:100% 100%,cover!important;
  background-repeat:no-repeat!important;
  background-attachment:scroll!important;
  border-bottom:1px solid rgba(237,247,241,.19)!important;
  box-shadow:none!important;
}
/* Avoid the old split/panorama layer covering chat and empty rows. */
#appShell.app-shell.nexo-custom-banner:not(.nexo-video-fullscreen):not(.voice-fullscreen)::before {
  content:none!important;
  display:none!important;
}
/* Image may be bright: keep buttons readable without opaque boxes. */
#appShell.app-shell.nexo-custom-banner:not(.nexo-video-fullscreen):not(.voice-fullscreen)
 > #globalNavigation .global-nav-button{
  color:#f6faf9!important;
  text-shadow:0 1px 4px rgba(0,0,0,.50)!important;
}
#appShell.app-shell.nexo-custom-banner:not(.nexo-video-fullscreen):not(.voice-fullscreen)
 > #globalNavigation .global-nav-button:is(:hover,:focus-visible,[aria-pressed="true"],[aria-expanded="true"],.nexo-social-active){
  background:rgba(8,15,20,.18)!important;
  border-color:rgba(235,250,241,.14)!important;
}

/* Editor preview is ONE continuous photo across the whole bar, not a
   fake split preview with a stale #geral label. Its aspect ratio is set
   from the real navigation width/height by updateSizes(). */
#profileEditorDialog #nexoBannerPreview.nexo-banner-whole-preview{
  display:block!important;
  box-sizing:border-box!important;
  position:relative;
  width:100%;
  height:auto!important;
  min-height:28px!important;
  max-height:none!important;
  overflow:hidden;
  margin:12px 0 16px;
  border-radius:7px;
  border:1px solid rgba(218,239,228,.20);
  background-color:var(--nexo-banner-color,#172534)!important;
  background-image:
    linear-gradient(90deg,rgba(9,14,18,.17),rgba(9,14,18,.25)),
    var(--nexo-banner-image,none)!important;
  background-position:center center,center center!important;
  background-size:100% 100%,cover!important;
  background-repeat:no-repeat!important;
  box-shadow:none!important;
}
#profileEditorDialog #nexoBannerPreview.nexo-banner-whole-preview > span{
  display:none!important;
}

/* Reuse the real image editor's drag, zoom, centralize and keyboard
   controls. The marked frame matches the current top navigation ratio. */
#imageCropDialog.is-notification-banner-crop{
  width:min(1160px,calc(100vw - 28px))!important;
  max-width:1160px!important;
}
#imageCropDialog.is-notification-banner-crop #imageCropCanvas{
  display:block;
  width:100%;
  height:auto;
  box-sizing:border-box;
  border:1px solid rgba(227,247,236,.28)!important;
  border-radius:9px!important;
  background:#151e23!important;
  cursor:grab;
  touch-action:none;
}
#imageCropDialog.is-notification-banner-crop #imageCropCanvas:active{
  cursor:grabbing;
}
@media(prefers-reduced-motion:reduce){
  #profileEditorDialog #nexoBannerPreview.nexo-banner-whole-preview{
    transition:none!important;
  }
}

/* Keep Save/Cancel visible on typical laptop-height windows. */
#imageCropDialog.is-notification-banner-crop{
  max-height:calc(100dvh - 24px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
#imageCropDialog.is-notification-banner-crop #imageCropCanvas{
  width:auto!important;
  max-width:100%!important;
  max-height:clamp(150px,calc(100dvh - 312px),350px)!important;
  height:auto!important;
  aspect-ratio:1100 / 350;
  margin:0 auto!important;
}
