/* Живой прогресс генерации (D1-зеркало). ТЗ:
   docs/specs/2026-08-13_webapp_generation_hub_full.md (репо бота), раздел
   «Экран — Прогресс». Переиспользует токены темы из styles.css (--bg/--text/
   --muted/--accent), отдельный файл — чтобы не раздувать styles.css сущностью,
   которая живёт только на одном узкоспециализированном экране (тот же приём,
   что уже применён для constructor.css/studio.css/boards.css). */

#pageProgress.tab-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
}

.progress-shell {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.progress-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-top-color: var(--accent);
  animation: progress-spin 0.9s linear infinite;
}

.progress-spinner.progress-spinner--done {
  animation: none;
  border-color: var(--accent);
  border-top-color: var(--accent);
}

.progress-spinner.progress-spinner--error {
  animation: none;
  border-color: color-mix(in srgb, #d9483a 40%, transparent);
  border-top-color: #d9483a;
}

@keyframes progress-spin {
  to { transform: rotate(360deg); }
}

.progress-stage {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.progress-hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.progress-block-btn {
  width: 100%;
  margin-top: 10px;
}
