.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #111827;
  color: #e5e7eb;
  padding: 24px 18px;
}

.brand {
  display: grid;
  gap: 8px;
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand strong {
  font-size: 18px;
  line-height: 1.25;
}

.brand-kicker {
  color: #93a4bc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.environment-pill {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  padding: 5px 9px;
  font-size: 12px;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 20px;
}

.sidebar-heading {
  color: #93a4bc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 12px 8px 4px;
  text-transform: uppercase;
}

.sidebar-nav a {
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #dbe4f0;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav a.active {
  background: #ffffff;
  color: #111827;
}

.sidebar-nav small {
  color: #93a4bc;
  font-size: 12px;
}

.sidebar-nav a.active small {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .sidebar {
    position: relative;
    height: auto;
  }

  .sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sidebar-nav {
    grid-template-columns: 1fr;
  }
}
