.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.profile-grid > div { min-width: 0; }
.profile-grid strong { overflow-wrap: anywhere; }
.profile-narrative {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.profile-narrative > article,
.profile-narrative > div {
  min-width: 0;
  padding: 16px;
  background: #faf6f2;
  border-radius: 12px;
}
.profile-narrative small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-weight: 700;
}
.profile-narrative p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.profile-bio { grid-column: 1 / -1; }
.profile-bio p {
  max-width: 85ch;
  font-size: 15px;
  line-height: 1.65;
}
.media-image-wrap { position: relative; }
.current-photo-card {
  border: 2px solid var(--wine);
  background: #fffaf7;
}
.current-photo-label {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.captured-time {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
}
.pet-photo-card {
  border: 2px solid var(--green);
  background: #f7fbf7;
}
.pet-photo-label {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.media-legend {
  display: flex;
  gap: 9px;
  margin: 12px 0 16px;
}
.media-legend span,
.legend-current,
.legend-pet {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.legend-current { background: var(--wine); }
.legend-pet { background: var(--green); }
.panel-help { margin: 6px 0 10px; color: var(--muted); }
.moderation-history { border-color: #dbcac5; }
.rejected-media-card {
  border-color: #c8bbb7;
  background: #f4f0ee;
}
.rejected-media-card img { filter: grayscale(.65); opacity: .82; }
.rejected-photo-label {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #5f5557;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
.rejected-current-label {
  position: absolute;
  top: 43px;
  left: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}
@media (max-width: 760px) {
  .profile-narrative { grid-template-columns: 1fr; }
  .profile-bio { grid-column: auto; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .user-actions { width: 100%; }
  .user-actions .toolbar { flex-wrap: wrap; }
}

.badge.rejected { background: #ffad42; color: #4b2500; }
