/* Match dispatch typography without changing navigation sizing or behavior. */
.app-shell > .sidebar {
  width: 192px;
  min-width: 192px;
  padding-inline: 8px;
}
.sidebar .brand { gap: 7px; padding-inline: 2px; }
.sidebar .brand-logo { width: 30px; height: 30px; }
.sidebar .sidebar-user {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px 28px;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: 6px;
  box-shadow: none;
}
.sidebar .sidebar-user-avatar { width: 28px; height: 28px; font-size: 11px; }
.sidebar .sidebar-user .sidebar-user-info { gap: 0; }
.sidebar .sidebar-user .sidebar-user-info strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.sidebar .sidebar-user .sidebar-user-info span { font-size: 12px; font-weight: 400; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .sidebar-user .theme-switch {
  width: 32px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.sidebar .sidebar-user .theme-switch::before {
  content: '';
  position: absolute;
  inset: 5px 0;
  border: 1px solid var(--sb-border);
  border-radius: 999px;
  background: #101e3d;
}
.sidebar .sidebar-user .theme-switch[aria-checked="false"]::before { background: #e4ebf5; }
.sidebar .sidebar-user .theme-switch-knob { top: 8px; left: 3px; box-shadow: none; }
.sidebar .sidebar-user .theme-switch[aria-checked="false"] .theme-switch-knob { transform: translateX(14px); background: #101e3d; }
.sidebar .sidebar-user .sidebar-logout-button { width: 28px; height: 28px; border-radius: 4px; font-size: 16px; padding: 0; }
.sidebar .sidebar-user :is(.theme-switch,.sidebar-logout-button):is(:hover,:focus-visible) { background: var(--sb-item-hover); }
.sidebar.theme-light .sidebar-user { background: #f5f8fc; border-color: #dce5f0; }

.sidebar.theme-light {
  --sb-text: #101e3d;
  --sb-text-muted: #58729a;
  --sb-item-hover: #edf2f9;
  --sb-item-active-shadow: none;
}

.sidebar .menu button {
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  padding-inline: 10px;
  text-align: left;
}

.sidebar.theme-light .menu button:not(.active) {
  color: var(--sb-text);
  font-weight: 500;
}

.sidebar .menu-icon {
  opacity: 1;
}

.sidebar .menu-section-title {
  padding-inline: 10px;
  font-weight: 600;
}

.sidebar.theme-light .menu button:focus-visible:not(.active) {
  background: var(--sb-item-hover);
}

.sidebar.theme-light .sidebar-user-info strong,
.sidebar.theme-light .sidebar-logout-button {
  color: var(--sb-text);
}
