/* Страница статуса /f/:token (§5.6–5.7, §6.4). Порт f/[token]/page.module.css
   из pos-app с префиксом st-; skeleton-правила убраны вместе с
   loading-экранами (ADR 0001). */

.st-headerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.st-title {
  margin-top: 16px;
}

/* ===== Таймлайн (§5.6) ===== */
.st-statusChip {
  display: flex;
  margin: 20px auto 16px;
}

.st-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.st-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Соединительная линия между кругами (mobile — вертикальная) */
.st-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  height: 16px;
  width: 2px;
  background: var(--gray-200);
}

.st-stepCircle {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  background: var(--gray-100);
  color: var(--gray-600);
}

.st-stepLabel {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-700);
}

.st-stepPassed .st-stepCircle {
  background: var(--teal-tint);
  color: var(--teal);
}

.st-stepCurrent .st-stepCircle {
  color: var(--white);
}

.st-stepCurrent .st-stepLabel {
  color: var(--navy);
}

.st-stepFuture .st-stepLabel {
  color: var(--gray-600);
  opacity: 0.6;
}

.st-circleOrange {
  background: var(--orange);
}

.st-circleBlue {
  background: var(--blue);
}

.st-circleGreen {
  background: var(--green);
}

/* ≥768px — горизонтальная компоновка */
@media (min-width: 768px) {
  .st-timeline {
    flex-direction: row;
    justify-content: space-between;
  }

  .st-step {
    flex: 1;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .st-step:not(:last-child)::after {
    left: calc(50% + 26px);
    right: calc(-50% + 26px);
    top: 19px;
    width: auto;
    height: 2px;
  }
}

/* ===== Ссылка на отзыв (§6.4) ===== */
.st-reviewLink {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
}

.st-reviewLink i {
  color: var(--teal);
  font-size: 1.2rem;
}

.st-reviewLink a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* ===== Вложения миниатюрами (§6.4) ===== */
.st-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.st-attachment {
  display: block;
  aspect-ratio: 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.st-attachment img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Секция контактов (§6.4) ===== */
.st-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-contactsSent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-input);
  background: var(--gray-50);
}

.st-contactValue {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray-800);
  overflow-wrap: anywhere;
}

.st-contactValue i {
  flex: none;
  color: var(--teal);
}

/* ===== Вознаграждение (спека .scratch/reward-types) ===== */
.st-reward {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-input);
  background: var(--gray-50);
}

.st-rewardText {
  margin: 0;
}
