/* AutoplaySteps (autoplay-steps.js): the current stage's own words as the caption, a quiet progress bar, and Back,
   Play/Pause/Replay and Forward at 44 px. Colours are docs-kit.css tokens only (tests/test_docs_visuals_tokens.py). */
.aps { margin-top: 12px; }
.aps-cap { margin: 0; min-height: 24px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); }
.aps-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.aps-bar { flex: 1 1 auto; display: flex; gap: 4px; min-width: 0; }
.aps-bar i { flex: 1 1 0; height: 4px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
.aps-bar i b { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
/* More than twelve stages (a research run's events): one continuous bar. */
.aps-bar.many { gap: 0; }
.aps-bar.many i { border-radius: 0; }
.aps-bar.many i:first-child { border-radius: 2px 0 0 2px; }
.aps-bar.many i:last-child { border-radius: 0 2px 2px 0; }
.aps-bar i.done b, .aps-bar i.now b { transform: scaleX(1); }
.aps.playing .aps-bar i.now b { animation: aps-fill var(--aps-d, 3000ms) linear both; }
@keyframes aps-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.aps-ctl { display: flex; gap: 4px; flex-shrink: 0; }
.aps-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); font: 600 14px/20px var(--sans);
  cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.aps-pp { padding: 0 12px; }
.aps-b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aps-b svg .f { fill: currentColor; stroke: none; }
.aps-b:disabled { color: var(--faint); cursor: default; }
.aps-b:not(:disabled):active { transform: scale(0.97); }
.aps-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .aps-b:not(:disabled):hover { border-color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .aps.playing .aps-bar i.now b { animation: none; } .aps-b { transition: none; } }
