/* Ficha IA · экран 4 «Готовим паспорт» · S4_Proceso.dc.html, P.naranja (токены — app.css) */

@keyframes ptspin { to { transform: rotate(360deg); } }
@keyframes ptin { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page--process { gap: 20px; }

/* шаги: готово — зелёный круг с галочкой, идёт — оранжевое кольцо, ждёт — серое кольцо */
.psteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.psteps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; }
.psteps__icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-round);
  box-sizing: border-box;
  border: 3px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.psteps li[data-status="done"] .psteps__icon {
  border: 0;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.psteps li[data-status="active"] .psteps__icon {
  border-color: var(--pt-orange);
  border-right-color: transparent;
  animation: ptspin 1.1s linear infinite;
}
.psteps li[data-status="failed"] .psteps__icon { border-color: var(--danger); }
.psteps__text { display: flex; flex-direction: column; }
.psteps__title { font: 400 17px/24px var(--sans); color: var(--ink); }
.psteps li[data-status="active"] .psteps__title { font-weight: 600; }
.psteps li[data-status="pending"] .psteps__title { color: var(--ink-muted); }
.psteps__sub { font: 500 13px/18px var(--mono); color: var(--ink-muted); min-height: 18px; }

.process__retry { margin: 0; font: 500 14px/20px var(--sans); color: var(--pt-orange-ink); }

/* найденные зоны: по одной, новая — с оранжевой рамкой */
.found { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.found__list { display: flex; flex-direction: column; gap: 8px; }
.found__slot { height: 68px; border-radius: 12px; border: 2px dashed var(--line); }
.zcard {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
  border: 2px solid transparent;
}
.zcard--new { border-color: var(--pt-orange); animation: ptin 0.6s ease-out both; }
.zcard__img { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--line); overflow: hidden; }
.zcard__img img { width: 52px; height: 52px; object-fit: cover; display: block; }
.zcard__text { display: flex; flex-direction: column; min-width: 0; }
.zcard__text strong { font: 600 16px/22px var(--sans); overflow-wrap: anywhere; }
.zcard__text span { font: 400 14px/20px var(--sans); color: var(--ink-muted); }
.zcard__num {
  min-width: 34px; height: 34px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: var(--radius-round);
  background: var(--pt-orange-ink);
  color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
  font: 500 13px/18px var(--mono);
}

.process__deleted { color: var(--ok); font-weight: 600; }
.process__note {
  margin: auto 0 0;
  font: 400 14px/20px var(--sans);
  color: var(--ink-muted);
  display: flex; gap: 8px; align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .psteps li[data-status="active"] .psteps__icon, .zcard--new { animation: none; }
}
