/* CUIStoryBar - mirrors cui_story_bar.dart. N pill segments (thickness = border-thick, gap = space-2xs); segments before activeIndex are full,
   the active one fills to activeProgress (200ms ease), the rest are empty. */
.cui-story-bar { --_track: var(--cui-color-border-hairline); --_fill: var(--cui-color-border-brand);
  --_thick: var(--cui-border-thick); --_gap: var(--cui-space-2xs);
  display: flex; gap: var(--_gap); width: 100%; }
.cui-story-bar__segment { flex: 1; min-width: 0; height: var(--_thick); border-radius: var(--cui-radius-pill); background: var(--_track); overflow: hidden; }
.cui-story-bar__fill { height: 100%; width: 0; border-radius: var(--cui-radius-pill); background: var(--_fill); }
.cui-story-bar__segment.is-active .cui-story-bar__fill { transition: width calc(200ms / var(--cui-speed, 1)) ease; }
@media (prefers-reduced-motion: reduce) { .cui-story-bar__segment.is-active .cui-story-bar__fill { transition: none; } }
