/* Labels have their own flex item so the same links can become an icon rail. */
.sidebar nav a .nav-label {
  display: block;
  flex: 1;
  width: auto;
  min-width: 0;
  font-size: inherit;
  text-align: left;
}

.sidebar nav .nav-icon { flex: 0 0 21px; }
.sidebar nav { min-height: 0; }
.sidebar-brand, .sidebar-account { flex-shrink: 0; }
.sidebar-compact-logo, .sidebar-sign-out-icon, #sidebar-toggle { display: none; }

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
}

.sidebar-email {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account button {
  flex-shrink: 0;
  min-height: 36px;
  border-radius: 8px;
  font: inherit;
  white-space: nowrap;
}

.sidebar-account button:hover { background: var(--surface-2); }
.sidebar :is(a, button):focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.sidebar-account svg { width: 20px; height: 20px; }

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