/* AIMCODE sidebar collapse hotfix, 2026-08-30 */
.app-shell.sidebar-compact {
  grid-template-columns: 92px minmax(0, 1fr) !important;
}

.app-shell.sidebar-compact .sidebar {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  overflow: hidden !important;
}

.app-shell.sidebar-compact .sidebar-head {
  justify-content: center !important;
  gap: 0 !important;
  padding-inline: 12px !important;
}

.app-shell.sidebar-compact .sidebar-head .brand-mark {
  width: 42px !important;
  min-width: 42px !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.app-shell.sidebar-compact .sidebar-head .brand-mark span,
.app-shell.sidebar-compact .sidebar-head .brand-mark strong,
.app-shell.sidebar-compact .sidebar-head .brand-mark small,
.app-shell.sidebar-compact .sidebar-context small,
.app-shell.sidebar-compact .sidebar-context span,
.app-shell.sidebar-compact .main-navigation button span,
.app-shell.sidebar-compact .system-pulse span,
.app-shell.sidebar-compact .sidebar-system > button span {
  display: none !important;
}

.app-shell.sidebar-compact .collapse-button {
  position: absolute !important;
  top: 15px !important;
  right: -24px !important;
  z-index: 12 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: #12141a !important;
  border: 1px solid rgba(139, 106, 255, .72) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .42), 0 0 0 4px rgba(117, 71, 255, .18) !important;
}

.app-shell.sidebar-compact .sidebar-context {
  place-items: center !important;
  min-height: 54px !important;
  padding: 0 !important;
}

.app-shell.sidebar-compact .sidebar-context::before,
.app-shell.sidebar-compact .sidebar-system::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(32, 213, 154, .74);
}

.app-shell.sidebar-compact .main-navigation {
  align-items: center !important;
  gap: 8px !important;
  padding-inline: 10px !important;
}

.app-shell.sidebar-compact .main-navigation button,
.app-shell.sidebar-compact .sidebar-system > button,
.app-shell.sidebar-compact .system-pulse {
  justify-content: center !important;
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin-inline: auto !important;
  border-radius: 9px !important;
}

.app-shell.sidebar-compact .main-navigation button small {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  font-size: 9px !important;
  line-height: 16px !important;
}

.app-shell.sidebar-compact .nav-live {
  display: none !important;
}

.app-shell.sidebar-compact .sidebar-system {
  place-items: center !important;
  gap: 12px !important;
  padding: 16px 10px 18px !important;
}

.app-shell.sidebar-compact .system-pulse i {
  margin: 0 !important;
}

@media (width <= 760px) {
  .app-shell.sidebar-compact {
    grid-template-columns: 1fr !important;
  }

  .app-shell.sidebar-compact .sidebar {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
  }

  .app-shell.sidebar-compact .collapse-button {
    right: -22px !important;
  }

  .app-shell.sidebar-compact .main-navigation button,
  .app-shell.sidebar-compact .sidebar-system > button,
  .app-shell.sidebar-compact .system-pulse {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
  }
}
