.photo-summary-v1 {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 250px;
}

.photo-summary-v1 .admin-photo-cell {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.photo-summary-v1 .admin-photo-thumb,
.admin-photo-list-table .admin-photo-thumb,
#registered-list .admin-photo-thumb {
  display: inline-grid;
  place-items: center;
  width: 100px;
  height: 125px;
  overflow: hidden;
  border: 1px solid rgba(55, 34, 101, 0.14);
  border-radius: 10px;
  background: linear-gradient(135deg, #f4efff, #fff7fb);
  color: #4a2d82;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.photo-summary-v1 .admin-photo-thumb img,
.admin-photo-list-table .admin-photo-thumb img,
#registered-list .admin-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-summary-v1 .admin-photo-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f6f0ff;
  color: #4a2d82;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.photo-summary-v1__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.photo-summary-v1__id {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.photo-summary-v1__id small,
.photo-summary-v1__metric small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.photo-summary-v1__id strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #17132f;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-summary-v1__metrics {
  display: grid;
  gap: 5px;
}

.photo-summary-v1__metric {
  display: grid;
  gap: 3px;
}

.photo-summary-v1__stars {
  color: #d946a0;
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
}

.photo-summary-v1__meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  width: min(120px, 100%);
}

.photo-summary-v1__meter span {
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
}

.photo-summary-v1__meter span.is-filled {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.photo-summary-v1__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.photo-summary-v1__badge[data-status="submitted"],
.photo-summary-v1__badge[data-status="completed"],
.photo-summary-v1__badge[data-status="active"] {
  background: #e8f8ef;
  color: #17633a;
}

.photo-summary-v1__badge[data-status="pending"],
.photo-summary-v1__badge[data-status="assigned"],
.photo-summary-v1__badge[data-status="candidate"],
.photo-summary-v1__badge[data-status="hold"] {
  background: #fff4dc;
  color: #8a4c00;
}

.photo-summary-v1__badge[data-status="approved"],
.photo-summary-v1__badge[data-status="ready"],
.photo-summary-v1__badge[data-status="eligible"] {
  background: #e8f0ff;
  color: #1d4ed8;
}

.photo-summary-v1__badge[data-status="rejected"],
.photo-summary-v1__badge[data-status="failed"],
.photo-summary-v1__badge[data-status="error"] {
  background: #fee2e2;
  color: #b91c1c;
}

.photo-summary-v1__badge[data-status="superseded"],
.photo-summary-v1__badge[data-status="archived"],
.photo-summary-v1__badge[data-status="not_measured"],
.photo-summary-v1__badge[data-status="not_available"] {
  background: #f3f4f6;
  color: #64748b;
}

.admin-data-table .photo-summary-v1-cell {
  min-width: 280px;
  vertical-align: middle;
}

.admin-data-table .photo-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-data-table .photo-summary-actions .btn.danger,
.admin-data-table .photo-summary-actions button.danger {
  border-color: rgba(185, 28, 28, 0.25);
  background: #fff1f2;
  color: #b91c1c;
}

@media (max-width: 640px) {
  .admin-data-table:has(.photo-summary-v1) {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .admin-data-table:has(.photo-summary-v1) thead {
    display: none;
  }

  .admin-data-table:has(.photo-summary-v1) tbody {
    display: grid;
    gap: 12px;
  }

  .admin-data-table:has(.photo-summary-v1) tr {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(55, 34, 101, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(25, 18, 63, 0.08);
  }

  .admin-data-table:has(.photo-summary-v1) td {
    display: grid;
    grid-template-columns: minmax(84px, 0.32fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0;
    border: 0;
    word-break: break-word;
  }

  .admin-data-table:has(.photo-summary-v1) td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
  }

  .admin-data-table:has(.photo-summary-v1) .photo-summary-v1-cell {
    display: block;
    min-width: 0;
  }

  .admin-data-table:has(.photo-summary-v1) .photo-summary-v1-cell::before {
    display: block;
    margin-bottom: 8px;
  }

  .photo-summary-v1 {
    grid-template-columns: 100px minmax(0, 1fr);
    min-width: 0;
  }
}
