/* Progress bar, from the design system export (bundle.css ".pr-progress").
   Determinate: set the inner <i>'s width. Indeterminate: .pr-progress--indet
   (stands still under reduced motion). --warn colours the fill amber; --done
   uses the success fill ("progress complete" in tokens.css).
   Markup: <div class="pr-progress" role="progressbar" aria-valuenow=".."><i></i></div> */

.pr-progress {
  height: 6px;
  border-radius: var(--pr-radius-pill);
  background: var(--pr-surface-nested);
  box-shadow: inset 0 0 0 var(--pr-border-hairline) var(--pr-border-default);
  overflow: hidden;
}
.pr-progress > i {
  display: block; height: 100%; width: 0;
  background: var(--pr-brand-fill);
  border-radius: var(--pr-radius-pill);
  transition: width var(--pr-dur-base) var(--pr-ease-standard);
}
.pr-progress--indet > i { width: 35%; animation: pr-indet var(--pr-dur-skeleton) var(--pr-ease-standard) infinite; }
@keyframes pr-indet { from { margin-left: -35%; } to { margin-left: 100%; } }
.pr-progress--warn > i { background: var(--pr-warning-fill); }
.pr-progress--done > i { background: var(--pr-success-fill); }

@media (prefers-reduced-motion: reduce) {
  .pr-progress > i { transition: none; }
  .pr-progress--indet > i { animation: none; margin-left: 0; }
}
