/* Sidebar redesign. Separate from the profile and DLE's account dialogs. */
.gx-shell-sidebar { --gx-nav-text: #c8d2e2; --gx-nav-muted: #7f90aa; --gx-nav-border: #202a3b; --gx-nav-cyan: #36deeb; }
.gx-shell-sidebar .off-cus { background: #0b101a !important; border-right: 0; }
.gx-shell-sidebar .gx-sidebar-frame {
  display: flex; flex-direction: column; gap: 0; height: 100%; min-height: 0;
  padding: 20px 14px 16px !important; overflow: hidden; border: 0; background: transparent;
}
.gx-sidebar-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0 8px 22px; text-decoration: none; }
.gx-sidebar-brand-mark { width: 50px; height: 56px; object-fit: contain; flex: 0 0 50px; }
.gx-sidebar-brand-wordmark { width: auto; max-width: 160px; height: 27px; object-fit: contain; }
.gx-sidebar-nav {
  flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding-right: 4px; scrollbar-width: thin; scrollbar-color: #2a3950 transparent; scrollbar-gutter: stable;
}
.gx-sidebar-nav::-webkit-scrollbar { width: 4px; }
.gx-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.gx-sidebar-nav::-webkit-scrollbar-thumb { background: #2a3950; border-radius: 8px; }
.gx-sidebar-list { display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gx-sidebar-list .sidebar-item { margin: 0; padding: 0; }
.gx-shell-sidebar .gx-sidebar-link {
  position: relative; display: flex; align-items: center; gap: 13px; min-height: 50px; padding: 12px 14px;
  border: 0; border-radius: 11px; background: transparent; color: var(--gx-nav-text); text-decoration: none;
  font-family: Inter, system-ui, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.4;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.gx-sidebar-link > .bi { flex: 0 0 23px; width: 23px; color: #8fa1be; font-size: 22px; line-height: 1; text-align: center; }
.gx-sidebar-link > span { min-width: 0; overflow-wrap: anywhere; }
.gx-shell-sidebar .gx-sidebar-link:hover { background: #151e2d; color: #fff; }
.gx-shell-sidebar .gx-sidebar-link:hover > .bi { color: #d6e4f9; }
.gx-shell-sidebar .gx-sidebar-list .active > .gx-sidebar-link,
.gx-shell-sidebar .gx-sidebar-link[aria-current=page] {
  border: 0; background: linear-gradient(105deg, #12313c 0%, #1a2439 55%, #241b3d 100%);
  box-shadow: none; color: #f6fbff; font-weight: 600;
}
.gx-sidebar-list .active > .gx-sidebar-link > .bi,
.gx-sidebar-link[aria-current=page] > .bi { color: var(--gx-nav-cyan); }
.gx-sidebar-list .gx-sidebar-section-start { border: 0; padding-top: 13px; margin-top: 10px; }
.gx-sidebar-platform { flex: 0 0 auto; margin-left: auto; border: 0; border-radius: 6px; padding: 1px 5px; background: #142031; color: #8d9eb8; font-size: 11px; font-weight: 500; line-height: 1.5; }
.gx-sidebar-account { flex: 0 0 auto; min-width: 0; padding-top: 14px; margin-top: 14px; border: 0; }
.gx-sidebar-account > .my-5 { margin: 0 !important; padding-bottom: 0 !important; }
.gx-sidebar-account .menu-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100% !important; min-height: 48px;
  margin: 0 !important; padding: 11px 15px !important; border: 0 !important; border-radius: 10px;
  background: #162033; color: #edf5ff !important; font-family: Inter, system-ui, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.gx-sidebar-account .menu-btn:hover { background: #1e2c43; }
.gx-sidebar-account .menu-btn > strong { min-width: 0; max-width: calc(100% - 35px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-sidebar-account .menu-btn > .badge { position: static !important; transform: none !important; padding: 3px 7px; margin-left: 2px; border-radius: 5px; background: #293b58 !important; color: #b8d6f7; font-size: 12px; }
.gx-sidebar-account .menu-btn > .bi { font-size: 20px; margin: 0 !important; }
.gx-sidebar-account > .my-5 > .menu-btn + .menu-btn { margin-top: 8px !important; background: transparent; border-color: transparent !important; color: #a5b5cd !important; }
.gx-shell-sidebar .gx-sidebar-mobile-head { flex: 0 0 auto; padding: 0 0 14px; margin-bottom: 12px; color: #edf5ff; border: 0; font-size: 17px; }
.gx-mobile-header, .gx-menu-toggle, .gx-shell-sidebar .gx-sidebar-close { border: 0; }
.gx-sidebar-brand:focus-visible,
.gx-shell-sidebar .gx-sidebar-link:focus-visible,
.gx-sidebar-account .menu-btn:focus-visible { outline: 2px solid var(--gx-nav-cyan); outline-offset: 2px; }
@media (min-width: 992px) {
  .gx-shell-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .gx-shell { padding-left: 0 !important; }
  .gx-shell-sidebar .gx-sidebar-frame { padding-left: 14px !important; }
}
@media (max-width: 991.98px) {
  .gx-shell-sidebar .off-cus { width: min(320px, calc(100vw - 24px)) !important; }
  .gx-sidebar-brand { margin-bottom: 18px; }
}
@media (max-width: 359.98px) {
  .gx-shell-sidebar .gx-sidebar-frame { padding-inline: 11px !important; }
  .gx-shell-sidebar .gx-sidebar-link { padding-inline: 10px; gap: 10px; }
  .gx-sidebar-brand { gap: 9px; margin-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) { .gx-shell-sidebar .gx-sidebar-link { transition: none; } }
