/* Omni / desktop window edges / 0.2.75
   Minimalist UI: one clean window, no inset floating card.
   Fixes the dark gutter and rounded cutout below the Windows titlebar.
   Never changes user wallpaper, themes, community imagery or call media. */

body.nexo-desktop-window #appShell.app-shell:not(.nexo-video-fullscreen){
  box-sizing:border-box!important;
  margin:36px 0 0 0!important;
  padding:0!important;
  width:100%!important;
  max-width:100%!important;
  height:calc(100vh - 36px)!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  outline:none!important;
  box-shadow:none!important;
  clip-path:none!important;
  overflow:hidden!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Native Windows controls continue handling minimize/maximize/close.
   The exposed titlebar is flat so the first navigation row meets it cleanly. */
body.nexo-desktop-window .nexo-window-titlebar:not([hidden]){
  box-sizing:border-box!important;
  margin:0!important;
  padding-left:14px;
  border:0!important;
  border-bottom:1px solid rgba(224,234,235,.13)!important;
  border-radius:0!important;
  background:#101013!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow:visible!important;
}

/* Each column uses the frame edge instead of receiving a second corner. */
body.nexo-desktop-window #appShell.app-shell > .global-navigation{
  border-top-left-radius:0!important;
  border-top-right-radius:0!important;
  box-shadow:none!important;
}
body.nexo-desktop-window #appShell.app-shell > .server-rail{
  border-top-left-radius:0!important;
  border-bottom-left-radius:0!important;
  box-shadow:none!important;
}
body.nexo-desktop-window #appShell.app-shell > .channel-sidebar{
  border-top-left-radius:0!important;
  border-bottom-left-radius:0!important;
}
body.nexo-desktop-window #appShell.app-shell > .chat-column{
  border-radius:0!important;
}
body.nexo-desktop-window #appShell.app-shell > .member-sidebar{
  border-top-right-radius:0!important;
  border-bottom-right-radius:0!important;
}

/* Real video fullscreen must still cover the ENTIRE display without 36px. */
body.nexo-desktop-window #appShell.app-shell.nexo-video-fullscreen,
body.nexo-desktop-window:has(#appShell.app-shell.nexo-video-fullscreen)
 #appShell.app-shell{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  width:100vw!important;
  height:100vh!important;
  max-width:100vw!important;
}

@media(max-width:760px){
  body.nexo-desktop-window #appShell.app-shell:not(.nexo-video-fullscreen){
    /* Overrules old 6px margin and 16px radius even in compact layouts. */
    margin:36px 0 0!important;
    border-radius:0!important;
  }
}
