.section-progress {
  position: fixed;
  z-index: 7;
  inset-inline: max(12px, 1.6vw, env(safe-area-inset-left)) max(12px, 1.6vw, env(safe-area-inset-right));
  bottom: max(5px, calc(env(safe-area-inset-bottom) + 3px));
  display: flex;
  gap: clamp(2px, .38vw, 6px);
  height: 2px;
  opacity: .56;
  pointer-events: none;
  user-select: none;
}
.section-progress[hidden] { display: none; }
.section-progress > span {
  position: relative;
  flex: 1;
  border-radius: 2px;
  background: #d4e1e069;
  box-shadow: 0 0 1px 1px #051c2980;
}
.section-progress > span::after {
  position: absolute;
  content: "";
  inset: 0;
  background: #e7edeb;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(var(--section-fill, 0));
}
.section-progress .finished { --section-fill: 1; }
.section-progress .current { background: #e7cf925e; }
.section-progress .current::after { background: #ffe09a; }
.section-progress.on-paper > span { background: #546b7159; box-shadow: 0 0 1px 1px #edeee98c; }
.section-progress.on-paper > span::after { background: #587478; }
.section-progress.on-paper .current::after { background: #9d6e25; }
@media (forced-colors: active) {
  .section-progress { opacity: 1; }
  .section-progress > span { background: GrayText; forced-color-adjust: none; }
  .section-progress > span::after { background: Highlight; }
}
@media print { .section-progress { display:none; } }
