.wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  transition: color var(--transition-fast);
}

.trigger:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.wrap:hover .trigger,
.wrap:focus-within .trigger {
  color: var(--text-primary);
}

.triggerActive {
  color: var(--accent-primary);
}

.triggerDanger {
  color: var(--status-stopped);
}

.panel {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  max-width: 320px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 10px;
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 50;
}

.wrap:hover .panel,
.wrap:focus-within .panel {
  opacity: 1;
}

.empty {
  color: var(--text-muted);
  font-style: italic;
}

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

.row {
  display: flex;
  gap: 6px;
  padding: 1px 0;
  font-family: var(--font-mono);
}

.value {
  color: var(--text-muted);
}

.danger {
  color: var(--status-stopped);
}

.more {
  margin-top: 4px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-sans);
}
