/* ── Sidebar ── */
aside {
  width: 200px;
  min-width: 200px;
  background: #161616;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  padding: 0 0 28px;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 57px;
  min-height: 57px;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-logo {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo svg { display: block; }
.sidebar-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.sidebar-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-header-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.sidebar-header-badge {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  background: #222;
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}
.sidebar-header-sub {
  font-size: 11px;
  color: #555;
  white-space: nowrap;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #555;
  padding: 8px 16px 6px;
}
.sidebar-label.with-gap {
  margin-top: 14px;
  border-top: 1px solid #242424;
  padding-top: 16px;
}
.sidebar-label.hidden { display: none; }

.show-more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: color .12s;
}
.show-more-btn:hover { color: #aaa; }
.show-more-btn svg { flex-shrink: 0; transition: transform .2s; }
.show-more-btn.expanded svg { transform: rotate(180deg); }

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 7px 16px;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
  border-radius: 0;
  transition: background .1s, color .1s;
  user-select: none;
}
.nav-item span.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item:hover { background: #1e1e1e; color: #fff; }
.nav-item.active { background: #1e1e1e; color: #fff; }
.nav-logo {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav-logo-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  color: #666;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
}
/* Lucide category icon — sized like ecosystem logos (16×16), muted line icon */
.nav-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  color: #5e5e5e;
  transition: color .1s;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { color: #aaa; }

.nav-item .count {
  font-size: 11px;
  color: #555;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 6px;
}
.nav-item.active .count { color: #888; }

/* ── Section switcher ── */
.section-switcher {
  display: flex;
  padding: 6px 8px;
  gap: 2px;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
}

.section-switcher a {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.section-switcher a:hover {
  background: #1e1e1e;
  color: #bbb;
}

.section-switcher a.active {
  background: #222;
  color: #fff;
}
