/* Ficha IA · экран 5 «Проверьте паспорт» · S5_Revision.dc.html, P.naranja (токены — app.css) */

.screen--review { background: var(--surface-2); }

.review-band {
  background: var(--surface);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-band .lead { font-size: 17px; line-height: 24px; }

.review {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 16px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  min-width: 0;
}
.rsection { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.screen--review .kicker { margin: 0; }
.screen--review .btn { min-height: 56px; }
.screen--review .btn--primary { min-height: 60px; }
.screen--review .btn--small { min-height: 48px; }

.rcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  min-width: 0;
}
.rcard--form { display: flex; flex-direction: column; gap: 12px; }

/* поля ввода */
.rfield {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font: 600 14px/20px var(--sans);
}
.rfield input, .rfield select, .rz__row input {
  height: 52px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/24px var(--sans);
}
.rfield input::placeholder { color: #6b7591; }
.rfield[data-source="manual"] input { border-color: var(--pt-orange-ink); }
.rfield__mono { font-family: var(--mono) !important; font-weight: 500 !important; }
.rfield input[type="range"] { height: 48px; padding: 0; border: 0; accent-color: var(--pt-orange-ink); }
.rfield input:focus-visible, .rfield select:focus-visible, .rz__row input:focus-visible {
  outline: 3px solid var(--pt-orange);
  outline-offset: 2px;
}

/* карточки зон */
.rzones { display: flex; flex-direction: column; gap: 10px; }
.rz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.rz--attention { border: 2px solid var(--pt-orange); }
.rz__grid { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.rz__pic { position: relative; width: 84px; height: 84px; background: var(--line); border-radius: var(--radius-sm); }
.rz__pic img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.rz__badge {
  position: absolute; left: 4px; top: 4px;
  min-width: 28px; height: 28px;
  padding: 0 5px;
  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);
}
.rz__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rz__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rz__time { font: 500 12px/16px var(--mono); color: var(--ink-muted); white-space: nowrap; }
.rz__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rz__chip {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font: 500 14px/18px var(--sans);
  color: var(--ink);
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.rz__chip--empty { border-style: dashed; color: var(--ink-muted); font-style: italic; }
.rz__room { font: 600 17px/22px var(--sans); background: transparent; border-color: transparent; padding-left: 0; }
.rz__where { background: transparent; border-color: transparent; padding-left: 0; font-weight: 400; color: var(--ink-muted); }
.rz__tag { font: 500 12px/16px var(--mono); color: var(--pt-orange-ink); }
.rz__issue { font: 600 14px/20px var(--sans); color: var(--danger); }

.rz__edit {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rz__unclear { font: 600 14px/20px var(--sans); color: var(--pt-orange-ink); }
.rz__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rpill {
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-round);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font: 500 15px/20px var(--sans);
  color: var(--ink);
  overflow-wrap: anywhere;
  cursor: pointer;
}
.rpill[aria-checked="true"] { background: var(--pt-orange-ink); border-color: var(--pt-orange-ink); color: var(--on-dark); font-weight: 600; }
.rpill--dashed { border-style: dashed; color: var(--ink-muted); }
.rz__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rz__row .btn { width: auto; min-height: 52px; }
.rz__cancel {
  align-self: flex-start;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font: 600 15px/20px var(--sans);
  cursor: pointer;
}

/* форма добавления зоны */
.radd { display: flex; flex-direction: column; gap: 12px; }
.radd__title { margin: 0; font: 600 17px/24px var(--sans); }
.rmoment { display: flex; flex-direction: column; gap: 6px; }
.rmoment img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-sm); display: block; }

/* схема «План / 3D» */
.rplan { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.rplan__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rtoggle { display: flex; padding: 3px; border-radius: var(--radius-round); background: var(--surface-2); border: 1px solid var(--line); }
.rtoggle button {
  min-height: 48px;
  min-width: 64px;
  padding: 0 14px;
  border-radius: var(--radius-round);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 15px/20px var(--sans);
  cursor: pointer;
}
.rtoggle button[aria-pressed="true"] { background: var(--pt-orange-ink); color: var(--on-dark); }
.rplan__view { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; min-width: 0; }
.rplan__view svg { display: block; width: 100%; height: auto; }
.rplan__rotate { display: flex; gap: 8px; justify-content: center; }
.rrot {
  min-height: 56px;
  min-width: 72px;
  border-radius: var(--radius-round);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.rapprox {
  border: 2px solid var(--pt-orange-ink);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rapprox strong { font: 700 16px/22px var(--sans); letter-spacing: 0.04em; color: var(--pt-orange-ink); overflow-wrap: anywhere; }
.rapprox span { font: 400 14px/20px var(--sans); color: var(--ink-muted); }

/* блок для пульта — красная рамка */
.rstation__title { display: flex; gap: 8px; align-items: center; color: var(--danger); }
.rstation { border: 2px solid var(--danger); }
.rcontacts { display: flex; flex-direction: column; gap: 8px; }
.rcontact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.rcontacts__add { border-style: dashed; }
.rnote { font: 400 13px/18px var(--sans); color: var(--ink-muted); }

.rconfirmed { margin: 0; font: 600 16px/22px var(--sans); color: var(--ok); text-align: center; }
.screen--review .actions { margin-top: 0; }
.screen--review .alert { margin: 0; }

@media (max-width: 360px) {
  .rz__grid { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .rz__pic, .rz__pic img { width: 72px; height: 72px; }
  .rcontact { grid-template-columns: minmax(0, 1fr); }
}
