.browser {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.subTabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.subTab {
  flex: 1;
  padding: 6px 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.subTab:last-child {
  border-right: none;
}

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

.subTabActive {
  color: var(--accent-gold);
  background: var(--bg-elevated);
  border-bottom: 2px solid var(--accent-gold);
}

.tagBar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.tag:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.tagActive {
  background: var(--bg-hover);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.count {
  font-size: 10px;
  color: var(--text-muted);
  padding: 4px 10px;
  flex-shrink: 0;
  font-family: 'Cinzel', serif;
}

.list {
  flex: 1;
  overflow-y: auto;
}

.item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  padding: 5px 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}

/* Art gump items: id + name side by side */
.item > .itemId + .itemName {
  flex-direction: row;
}

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

.itemId {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 10px;
  color: var(--accent-gold);
  flex-shrink: 0;
  min-width: 48px;
}

.itemName {
  font-family: 'EB Garamond', serif;
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itemPath {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 9px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.status {
  padding: 16px;
  color: var(--text-secondary);
  font-family: 'Cinzel', serif;
  font-size: 12px;
}

.error {
  padding: 16px;
  color: var(--accent-red);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
