/* Technician generator photos + pending-upload thumbnails (2026-11-19). */

.gen-photo-hint { margin: 6px 0 10px; font-size: 12.5px; color: var(--muted); }
.gen-photo-hint strong { color: var(--ink); font-weight: 750; }
.gen-photo-hint.is-short { color: #b42318; }
.gen-photo-hint.is-ok { color: #067647; }

.gen-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.gen-photo-actions .btn input[type="file"] { display: none; }

.gen-photo-tray {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
.gen-photo-thumb {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3, #f4f6f8);
  aspect-ratio: 1 / 1;
}
.gen-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gen-photo-thumb .gen-photo-x {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 18, 32, .72);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}
.gen-photo-thumb .gen-photo-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3px 6px;
  font-size: 10px;
  color: #fff;
  background: rgba(8, 18, 32, .55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gen-photo-count { font-weight: 750; }

.attach-form .attach-pending { margin-top: 10px; }

/* t97u (202611206) — stage-photo gate: count next to the transition buttons, hint, progress, rejection. */
.pg-count { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 750; line-height: 1.5; direction: ltr; unicode-bidi: isolate; }
.pg-count.is-short { background: #fee4e2; color: #b42318; }
.pg-count.is-ok { background: #dcfae6; color: #067647; }
.btn.primary .pg-count.is-short { background: #fff; color: #b42318; }
.btn.primary .pg-count.is-ok { background: #fff; color: #067647; }
.pg-hint { margin: 0 0 10px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.6; }
.pg-hint.is-short { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.pg-hint.is-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.pg-progress { margin: 8px 0; display: grid; gap: 4px; }
.pg-progress .pg-bar { height: 8px; border-radius: 999px; background: var(--line, #e4e7ec); overflow: hidden; }
.pg-progress .pg-bar span { display: block; height: 100%; background: var(--brand, #1570ef); transition: width .2s ease; }
.pg-block { margin: 10px 0 0; line-height: 1.7; }
