/* GizmoX shell: keep the DLE content and navigation inside one responsive grid. */
.gx-site { background: #080a10; }
.gx-site,
.gx-shell,
.gx-shell-layout,
.gx-shell-main,
.gx-shell-content {
  min-width: 0;
}

.gx-shell {
  padding-right: 16px !important;
  padding-left: 16px !important;
}

.gx-shell-layout {
  --bs-gutter-x: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

.gx-shell-main {
  width: 100%;
  max-width: none;
}

.gx-shell-sidebar {
  width: 0;
  min-width: 0;
  padding: 0;
}

.gx-shell-sidebar .off-cus {
  width: min(320px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px);
  background: #050505 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.gx-shell-sidebar .sidenow,
.gx-shell-sidebar .sidebarw {
  height: 100%;
  min-height: 0;
}

.gx-shell-sidebar .sidebarw {
  display: flex;
  flex-direction: column;
}

.gx-shell-sidebar .ovh {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gx-shell-sidebar .ovh-100vh {
  height: auto;
  min-height: 100%;
  padding-bottom: 16px;
}

.gx-mobile-header {
  position: sticky;
  top: 12px;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(12px);
}

.gx-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}

.gx-mobile-brand img {
  flex: 0 0 auto;
  max-width: 100%;
  object-fit: contain;
}

.gx-menu-toggle,
.gx-sidebar-close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(38, 198, 218, 0.22);
  border-radius: 10px;
  background: rgba(38, 198, 218, 0.08);
  color: #e5e7eb;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.gx-menu-toggle .bi {
  font-size: 22px;
  line-height: 1;
}

.gx-sidebar-close .bi {
  font-size: 18px;
  line-height: 1;
}

.gx-menu-toggle:hover,
.gx-sidebar-close:hover {
  border-color: rgba(38, 198, 218, 0.5);
  background: rgba(38, 198, 218, 0.14);
  color: #fff;
}

.gx-menu-toggle:focus-visible,
.gx-sidebar-close:focus-visible,
.gx-mobile-brand:focus-visible,
.gx-shell-sidebar a:focus-visible {
  outline: 2px solid #26c6da;
  outline-offset: 3px;
}

.gx-sidebar-mobile-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

@media (min-width: 992px) {
  .gx-shell {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  .gx-shell-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .gx-shell-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
  }

  .gx-shell-sidebar .off-cus {
    position: static;
    z-index: 1;
    width: 100% !important;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    visibility: visible !important;
    transform: none !important;
    transition: none;
  }

  .gx-shell-sidebar .sidebarw {
    padding-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gx-shell-sidebar .offcanvas {
    transition: none;
  }
}
