.root {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-right: 8px;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  user-select: none;
  outline: none;
  position: relative;
  min-height: 28px;
}

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

.row:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}

.selected {
  background: var(--amber-bg);
  border-left-color: var(--amber);
  color: var(--amber-deep);
}

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

/* Chevron slot — reserves space so leaf nodes align with parent icons */
.chevronSlot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  flex-shrink: 0;
}

.chevron {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1;
}

.selected .chevron {
  color: var(--amber-deep);
}

.icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 14px;
}

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

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  padding-left: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.selected .meta {
  color: var(--amber-deep);
  opacity: 0.8;
}
