.progress-bar {
  display: flex;
  flex-direction: column;
  gap: var(--app-spacing-xs);
  width: 100%;
}

.progress-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--app-spacing-md);
}

.progress-bar__row--bytes {
  justify-content: flex-end;
}

.progress-bar__label {
  font-size: var(--app-font-size-sm);
  color: var(--app-color-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-bar__percent {
  font-size: var(--app-font-size-sm);
  color: var(--app-color-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.progress-bar__bytes {
  font-size: var(--app-font-size-xs);
  color: var(--app-color-text-muted);
  font-variant-numeric: tabular-nums;
}

.progress-bar__track {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--app-color-surface-alt);
  border-radius: var(--app-radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--app-color-primary), var(--app-color-primary-dark));
  border-radius: var(--app-radius-full);
  transition: width var(--app-transition-base);
}
