/* Canonical DeX mode: the smoke and EDEM remain the desktop behind real app windows. */
body[data-dex-mode="only"] :is(#gx-studio, .dx-review, .dx-caption, #gx-dock-review) {
  display: none !important;
}

/* Рама, строка заголовка, материал и фокус окна - interfaces/os/window.css. Здесь только поведение движка. */
body[data-dex-mode="only"] .dex-window .dx-screen[hidden] { display: none !important; }

body[data-dex-mode="only"] .dex-window .dx-screen,
body[data-dex-mode="only"][data-academy-os] .dex-window #screen-academic {
  position: absolute !important;
  inset: 0 !important;
  z-index: auto !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 15px 18px 18px !important;
  overflow: auto;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
  scrollbar-width: thin;
}
body[data-dex-mode="only"][data-academy-os] .dex-window #screen-academic {
  padding: 0 !important;
  overflow: hidden;
}
body[data-dex-mode="only"] .dex-window[data-maximized="true"] .dx-screen {
  padding: 18px clamp(16px, 3vw, 46px) 20px !important;
}
body[data-dex-mode="only"][data-academy-os] .dex-window[data-maximized="true"] #screen-academic {
  padding: 0 !important;
}

/* экран входа прячет док (screen-integration.css), а в DeX док не прячется никогда */
body[data-dex-mode="only"] .stage[data-route="access"] #gx-dock {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

@media (max-width: 720px) {
  body[data-dex-mode="only"] .dex-window {
    min-width: 0;
    min-height: 0;
  }
  body[data-dex-mode="only"] .dex-window .dx-screen { padding: 12px 12px 16px !important; }
  body[data-dex-mode="only"][data-academy-os] .dex-window #screen-academic { padding: 0 !important; }
}
