:host {
  display: block;
  inline-size: 100%;
}
[part=base] {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: baseline;
  gap: 6px 12px;
}
label {
  min-inline-size: 0;
  color: var(--bythium-text-secondary);
  overflow-wrap: anywhere;
}
progress {
  grid-column: 1/-1;
  grid-row: 2;
  display: block;
  inline-size: 100%;
  block-size: 4px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bythium-track);
  color: var(--bythium-brand-primary-text);
}
progress::-webkit-progress-bar {
  background: transparent;
}
progress::-webkit-progress-value {
  background: var(--bythium-brand-primary-text);
  border-radius: 999px;
}
progress::-moz-progress-bar {
  background: var(--bythium-brand-primary-text);
  border-radius: 999px;
}
progress:indeterminate {
  background: linear-gradient(90deg,transparent,var(--bythium-brand-primary-text),transparent) no-repeat var(--bythium-track);
  background-size: 35% 100%;
}
progress:indeterminate::-moz-progress-bar {
  background: transparent;
}
[part=value] {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  color: var(--bythium-text-muted);
  font-variant-numeric: tabular-nums;
}
@keyframes slide {
  from {
    background-position: -55% 0;
  }
  to {
    background-position: 155% 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  progress:indeterminate {
    animation: slide 1.6s ease-in-out infinite;
  }
}
@media (forced-colors: active) {
  progress {
    border: 1px solid CanvasText;
  }
  progress::-webkit-progress-value {
    background: Highlight;
  }
}
