.animation-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.animation-controls .steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  flex: 1;
  min-width: 0;
  gap: 8px;
}
.steps button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 600 13px/1.2 var(--font-body);
  text-align: left;
}
.steps .track {
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.steps .fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
}
.steps .lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.steps button.active { color: var(--ink); }
.steps button.active .track { background: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.steps button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.animation-controls .ctrl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: 600 13px/1 var(--font-body);
}
.ctrl:hover { border-color: var(--teal); color: var(--teal); }
.ctrl:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ctrl svg { width: 13px; height: 13px; fill: currentColor; }

@media (max-width: 760px) {
  .animation-controls .steps { gap: 5px; }
  .steps .lbl { display: none; }
}
