/* v0.33.28 - workspace scroll and FHD layout stability. */
.ref-navigation {
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.module-orbit .orbit-command-page {
  min-height: 0;
  align-content: start;
  grid-auto-rows: max-content;
}
.module-orbit .orbit-section-stack {
  align-content: start;
  grid-auto-rows: max-content;
}
.module-orbit .orbit-blueprint-browser,
.module-orbit .orbit-queue-card {
  align-content: start;
}
.module-orbit .orbit-shipyard-layout {
  grid-template-columns: minmax(0, 1fr) clamp(380px, 27vw, 440px);
}

.module-atlas .system-atlas-layout {
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
}
.module-atlas .system-atlas-list {
  min-height: 0;
}
.module-atlas .system-object-inspector {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  padding: 0;
  gap: 0;
}
.module-atlas .system-inspector-scroll {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 12px;
}
.module-atlas .system-inspector-actions {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(105, 184, 239, .16);
  background: rgba(5, 14, 25, .98);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .2);
}

@media (max-height: 900px) and (min-width: 821px) {
  .ref-brand { height: 64px; flex-basis: 64px; }
  .ref-navigation { padding: 6px 9px 10px; }
  .ref-nav-group { padding: 3px 0 5px; }
  .ref-nav-group-title { min-height: 29px; }
  .ref-nav-entry { min-height: 34px; padding: 6px 8px; }
  .ref-nav-subentries { gap: 1px; margin-top: 2px; margin-bottom: 3px; }
  .ref-nav-subentry { min-height: 29px; padding: 4px 8px; }
  .ref-sidebar-status { margin: 0 8px 8px; padding: 9px 10px; gap: 5px; }
  .ref-sidebar-status-head { padding-bottom: 5px; }
  .ref-sidebar-release { padding-top: 5px; }
  .ref-sidebar-release-name { display: none; }
}

@media (max-width: 1250px) {
  .module-orbit .orbit-shipyard-layout { grid-template-columns: 1fr; }
  .module-atlas .system-atlas-layout { overflow: auto; }
  .module-atlas .system-object-inspector { height: auto; max-height: none; }
  .module-atlas .system-inspector-scroll { overflow: visible; }
}
