.tree-node {
  display: flex;
  flex-direction: column;
}

.tree-content {
  display: flex;
  align-items: center;
  padding: 6px 12px 6px 0;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: background 0.15s ease;
  user-select: none;
  border-left: 3px solid transparent;
}

.tree-content:hover {
  background: rgba(0, 0, 0, 0.03);
}

.tree-content.is-selected {
  background: var(--primary-light);
  color: var(--primary-hover);
  border-left-color: var(--primary-color);
  font-weight: 600;
}

.tree-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  border-radius: 4px;
}

.tree-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.tree-toggle.is-expanded {
  transform: rotate(90deg);
}

.tree-toggle.is-empty {
  opacity: 0;
  pointer-events: none;
}

.tree-icon {
  font-size: 18px;
  margin-right: 8px;
  color: var(--text-tertiary);
}

.tree-content.is-selected .tree-icon {
  color: var(--primary-color);
}

.tree-children {
  display: none;
  flex-direction: column;
}

.tree-children.is-visible {
  display: flex;
}
