.loading-progress-wrap {
  width: min(40%, 520px);
  margin: 20px auto 0;
}

.loading-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  line-height: 1;
  color: var(--text-muted-11);
}

.loading-progress-label span:first-child {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.loading-progress-label span:last-child {
  flex: 0 0 auto;
  min-width: 3.5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-subtle);
}

.loading-progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-elevated);
  border: 1px solid var(--border-soft-2);
}

.loading-progress-fill {
  position: relative;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-soft);
  box-shadow: 0 0 14px rgba(47, 107, 255, 0.28);
  transition: width 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.loading-progress-fill::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 2px;
  bottom: 1px;
  width: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0.9;
}

.loading-status {
  margin-top: 12px;
  min-height: 1.35em;
  font-size: 0.91rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.loading-error {
  display: none;
  margin-top: 10px;
  min-height: 1.35em;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #ffb4b4;
  text-align: center;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  .loading-progress-wrap {
    width: min(52%, 520px);
  }
}

@media (max-width: 800px) {
  .loading-progress-wrap {
    width: min(68%, 520px);
  }

  .loading-progress-label {
    font-size: 0.9rem;
  }

  .loading-status,
  .loading-error {
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .loading-progress-wrap {
    width: calc(100% - 40px);
    margin-top: 18px;
  }

  .loading-progress-bar {
    height: 9px;
  }

  .loading-progress-label {
    gap: 10px;
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-progress-fill {
    transition: none;
  }
}