.toggles {
  display: flex;
  align-items: center;
  gap: 2px;
}

.toggle {
  background: none;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  transition: color var(--transition-fast), background var(--transition-fast);
}

/* Badge overlays the icon — same pattern as ChatToolbar chips */
.toggle :global(.shortcut-badge) {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: inherit;
  font-size: 10px;
  z-index: 1;
}

/* Crossfade icon out as badge fades in */
.toggle > svg {
  transition: opacity 0.5s ease;
}
.toggle:has(:global(.shortcut-badge-visible)) > svg {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.toggle:hover {
  color: var(--text-muted);
  background: var(--hover-bg);
}

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

.toggle.active svg rect {
  fill: currentColor;
  fill-opacity: 0.2;
}
