.st-shell-sidebar {
  background: var(--st-color-surface-white);
  border-right: 1px solid var(--st-color-border-default);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  left: 0;
  overflow: hidden;
  padding: 0;
  position: fixed;
  top: var(--st-shell-topbar-height);
  transition: width 0.18s ease;
  width: var(--st-current-sidebar-width);
  z-index: 180;
}

.st-sidebar-nav {
  align-content: start;
  align-items: start;
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 10px;
}

.st-nav-link {
  align-items: center;
  border-radius: 7px;
  color: var(--st-color-text-secondary);
  display: flex;
  font-size: 14px;
  font-weight: var(--st-font-weight-medium);
  gap: 11px;
  height: 38px;
  line-height: normal;
  min-width: 0;
  padding: 0 9px;
  position: relative;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.st-nav-link::before {
  background: transparent;
  border-radius: 2px;
  content: "";
  height: 24px;
  left: 0;
  position: absolute;
  width: 3px;
}

.st-nav-link:hover {
  background: var(--st-color-surface-muted);
  color: var(--st-color-brand-primary);
}

.st-nav-link.active {
  background: var(--st-color-brand-primary-light);
  color: var(--st-color-brand-primary);
  font-weight: var(--st-font-weight-semibold);
}

.st-nav-link.active::before {
  background: var(--st-color-brand-primary);
}

.st-nav-link.is-disabled {
  color: #c2c9d0;
  cursor: default;
  opacity: 0.55;
}

.st-nav-link.is-disabled:hover {
  background: transparent;
  color: #c2c9d0;
}

.st-nav-icon {
  align-items: center;
  background: transparent;
  border-radius: var(--st-radius-sm);
  display: inline-flex;
  flex-shrink: 0;
  height: 17px;
  justify-content: center;
  width: 17px;
}

.st-nav-icon .st-icon {
  height: 17px;
  width: 17px;
}

.st-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-nav-badge {
  background: var(--st-color-warning-surface);
  border-radius: var(--st-radius-pill);
  color: var(--st-color-warning);
  font-size: var(--st-font-caption-size);
  font-weight: var(--st-font-weight-semibold);
  margin-left: auto;
  padding: var(--st-space-1) var(--st-space-2);
}

.st-nav-dot {
  background: var(--st-color-warning);
  border-radius: var(--st-radius-pill);
  flex-shrink: 0;
  height: 8px;
  margin-left: auto;
  width: 8px;
}

.st-sidebar-footer {
  border-top: 1px solid var(--st-color-border-subtle);
  flex: 0 0 auto;
  margin-top: 0;
  padding: var(--st-space-3);
}

.st-sidebar-toggle {
  align-items: center;
  background: var(--st-color-surface-muted);
  border: 1px solid var(--st-color-border-default);
  border-radius: var(--st-radius-lg);
  color: var(--st-color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  gap: var(--st-space-2);
  height: 40px;
  justify-content: flex-start;
  padding: 0 var(--st-space-3);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  width: 100%;
}

.st-sidebar-toggle:hover {
  background: var(--st-color-brand-primary-light);
  border-color: var(--st-color-border-strong);
  color: var(--st-color-brand-primary);
}

.st-sidebar-toggle-copy {
  display: flex;
  flex-direction: column;
  line-height: var(--st-line-height-tight);
  text-align: left;
}

.st-sidebar-toggle-copy strong {
  color: var(--st-color-text-primary);
  font-size: var(--st-font-caption-size);
  font-weight: var(--st-font-weight-semibold);
}

.st-sidebar-toggle-copy span {
  color: var(--st-color-text-muted);
  font-size: var(--st-font-nav-overline-size);
  font-weight: var(--st-font-weight-medium);
}

:root[data-sidebar-collapsed="true"] .st-shell .st-nav-label,
:root[data-sidebar-collapsed="true"] .st-shell .st-nav-badge,
:root[data-sidebar-collapsed="true"] .st-shell .st-sidebar-toggle-copy {
  display: none;
}

:root[data-sidebar-collapsed="true"] .st-shell .st-sidebar-nav,
.st-shell.is-sidebar-collapsed .st-sidebar-nav {
  justify-items: center;
  padding-left: var(--st-space-2);
  padding-right: var(--st-space-2);
}

:root[data-sidebar-collapsed="true"] .st-shell .st-nav-link,
.st-shell.is-sidebar-collapsed .st-nav-link {
    justify-content: center;
    padding-left: var(--st-space-2);
    padding-right: var(--st-space-2);
}

:root[data-sidebar-collapsed="true"] .st-shell .st-shell-skeleton-sidebar,
.st-shell.is-sidebar-collapsed .st-shell-skeleton-sidebar {
  justify-items: center;
  padding-left: var(--st-space-2);
  padding-right: var(--st-space-2);
}

:root[data-sidebar-collapsed="true"] .st-shell .st-shell-skeleton-nav-item,
.st-shell.is-sidebar-collapsed .st-shell-skeleton-nav-item {
  width: 38px;
}

:root[data-sidebar-collapsed="true"] .st-shell .st-sidebar-toggle,
.st-shell.is-sidebar-collapsed .st-sidebar-toggle {
  justify-content: center;
  padding: 0;
}

.st-drawer {
  background: var(--st-color-surface-white);
  border: 1px solid var(--st-color-border-default);
  border-radius: var(--st-radius-xl);
  box-shadow: var(--st-elevation-lg);
}

.st-drawer-backdrop {
  background: var(--st-color-backdrop);
}

.st-drawer-header span {
  color: var(--st-color-text-secondary);
  display: block;
  font-size: var(--st-font-caption-size);
  margin-top: var(--st-space-1);
}
