.root {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-tint) 50%, var(--bg-panel)) 0%,
    var(--bg-panel) 60%
  );
  animation: next-step-in 200ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes next-step-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .root {
    animation: none;
  }
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* One flat row: Share + iteration directions all sit at the same level. */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Share is a peer of the chips but reads as an action: accent text + icon and
   a filled tint so it stands out without being promoted to its own tier. */
.share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-strong);
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 140ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.share:hover {
  background: color-mix(in srgb, var(--accent-tint) 70%, var(--accent) 14%);
  border-color: var(--accent);
}

.share:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.chip {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 140ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.chip:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.chipSelected,
.chipSelected:hover {
  color: var(--accent-strong);
  background: var(--accent-tint);
  border-color: var(--accent);
  font-weight: 500;
}

.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
