.user-identity {
  display: grid;
  gap: 2px;
}

.user-identity small {
  color: var(--muted);
}

.admin-tag-select {
  min-width: 160px;
  padding: 8px;
}

.admin-badge-picker {
  display: grid;
  min-width: 190px;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-badge-picker label {
  display: grid;
  grid-template-columns: auto 32px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.admin-badge-picker input { width: auto; }
.admin-badge-picker img { display: block; object-fit: contain; }
.admin-badge-picker button { width: max-content; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.admin-users-table td:last-child button {
  white-space: nowrap;
}

.player-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(150px, .75fr) minmax(150px, .75fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.player-directory-toolbar button {
  width: auto;
  white-space: nowrap;
}

.player-directory-summary,
.player-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-directory-summary {
  margin: 12px 0;
  color: var(--muted);
  font-weight: 800;
}

.player-pagination {
  justify-content: center;
  margin-top: 16px;
}

.player-pagination span {
  min-width: 110px;
  text-align: center;
  font-weight: 900;
}

.player-pagination button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.photo-moderation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid #9c8961;
  border-radius: 9px;
  background: #fff8e9;
}

.photo-moderation-summary > span {
  font-weight: 850;
}

.photo-moderation-summary label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-moderation-summary select {
  width: auto;
  min-width: 170px;
  padding: 8px;
}

.photo-moderation-grid {
  display: grid;
  gap: 14px;
}

.photo-moderation-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid #9c8961;
  border-left: 6px solid #7a2f24;
  border-radius: 11px;
  background: #fff8e9;
}

.photo-moderation-image {
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #292720;
  color: #fff;
  text-decoration: none;
}

.photo-moderation-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
}

.photo-moderation-body {
  min-width: 0;
}

.photo-moderation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.photo-moderation-heading h3 {
  margin: 0 0 4px;
  color: #4f1d18;
}

.photo-state {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ded0ad;
  color: #41392c;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.photo-state.approved {
  background: #dce8cf;
  color: #304221;
}

.photo-state.rejected {
  background: #efd3cc;
  color: #6a231b;
}

.photo-state.manual_review,
.photo-state.pending {
  background: #eee0ad;
  color: #5c4610;
}

.photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.photo-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #ded0ad;
  font-size: .73rem;
  font-weight: 800;
}

.photo-reason {
  overflow-wrap: anywhere;
}

.photo-moderation-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.photo-moderation-actions button {
  white-space: nowrap;
}

.photo-approve {
  background: linear-gradient(#66854d, #3f5b32);
  border-color: #2e4527;
}

.photo-open-link {
  padding: 8px 10px;
  border: 1px solid #796744;
  border-radius: 9px;
  background: #fffaf0;
  color: #4f1d18;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.photo-moderation-empty {
  padding: 24px;
  border: 1px dashed #9c8961;
  border-radius: 9px;
  text-align: center;
  color: #625744;
  font-weight: 800;
}

@media (max-width: 700px) {
  .player-directory-toolbar {
    grid-template-columns: 1fr;
  }

  .player-directory-toolbar button {
    width: 100%;
  }

  .player-directory-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .player-directory-summary button {
    width: 100%;
  }

  .photo-moderation-card {
    grid-template-columns: 1fr;
  }

  .photo-moderation-summary,
  .photo-moderation-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-moderation-summary label {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-moderation-summary select,
  .photo-moderation-actions > * {
    width: 100%;
  }
}
