.list {
  display: flex;
  flex-direction: column;
}

.namespace {
  border-bottom: 1px solid var(--border);
}

.nsHeader {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
  transition: background 0.1s, color 0.1s;
}

.nsHeader:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nsChevron {
  font-size: 10px;
  color: var(--accent-gold);
  min-width: 10px;
}

.nsName {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nsCount {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.nsClasses {
  display: flex;
  flex-direction: column;
}

.classRow {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 22px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}

.classRow:hover {
  background: var(--bg-hover);
}

.className {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classNs {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.badge {
  font-size: 9px;
  font-family: 'Cinzel', serif;
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid;
  min-width: 16px;
  text-align: center;
}

.badgeGump {
  color: #8888ff;
  border-color: #445;
  background: #1a1a2e;
}

.badgeMobile {
  color: #88cc88;
  border-color: #344;
  background: #1a2e1a;
}

.badgeItem {
  color: var(--accent-gold);
  border-color: #443;
  background: #1e1a10;
}

.empty {
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

.error {
  padding: 16px;
  color: #ff8080;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
