.social-page {
  width: min(100%, 620px);
  margin-inline: auto;
}

.social-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block: 0 12px;
}

.social-heading h1 {
  margin: 0;
  font-size: 20px;
}

.social-back {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
}

.social-back:hover { background: #fff0f7; }
.social-member h2, .social-person strong { overflow-wrap: anywhere; }
.social-member .social-bio { margin-block: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-member .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.social-member .stats div { min-width: 0; overflow-wrap: anywhere; }
.member-home .social-member { text-align: left; }
.member-identity { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.member-identity .avatar { width: 72px; height: 72px; }
.member-identity-copy { min-width: 0; }
.member-identity h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.member-copy { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 3px; color: #744b62; background: transparent; border: 0; border-radius: 6px; font-size: 13px; }
.member-copy svg { width: 16px; height: 16px; flex: none; }
.member-home .stats { text-align: center; }
.member-mutual { display: block; margin-top: 11px; color: #7a4263; font-size: 12px; }
.member-home [hidden] { display: none !important; }
.member-tabs { margin: 16px 0 10px; }
.member-content-status:not(:empty) { margin: 16px 2px; }
.member-more { display: block; margin: 12px auto 0; min-height: 44px; }
.member-details { margin: 0; padding: 4px 16px; }
.member-details:empty { display: none; }
.member-details > div { display: grid; grid-template-columns: minmax(72px, 28%) minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 13px 0; }
.member-details > div + div { border-top: 1px solid #f2e5ec; }
.member-details dt { color: #74596a; font-size: 13px; }
.member-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }

.social-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.social-actions button,
.social-avatar-card button,
.social-profile-form button { min-height: 44px; }
.social-actions button { flex: 1 1 108px; }
.social-actions button[data-following="true"] { color: #962f69; background: #fff2f8; box-shadow: none; }
.social-actions button:disabled,
.social-avatar-card button:disabled { opacity: .6; cursor: default; }

.social-status {
  margin: 0;
  color: #7b315e;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.social-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.social-member .social-status:not(:empty) { margin-top: 12px; color: #7b315e; }
.social-people { margin: 0; padding: 0; list-style: none; }
.social-person { min-height: 66px; color: var(--ink); }
.social-person > svg { flex: none; color: #8d5575; }

.social-avatar-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.social-avatar-card .avatar { display: block; width: 52px; height: 52px; }
.social-avatar-copy h2 { margin: 0; font-size: 15px; }
.social-avatar-copy p { margin: 4px 0 0; line-height: 1.35; }
.social-avatar-card .social-status { grid-column: 1 / -1; }
.social-profile-form { margin-top: 12px; }

.social-profile-form select,
.social-profile-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #e8d9e1;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.social-profile-form textarea { resize: vertical; }
.social-page :is(button, select, textarea):focus-visible { outline: 3px solid #b35088; outline-offset: 2px; }

@media (max-width: 380px) {
  .social-avatar-card { grid-template-columns: auto minmax(0, 1fr); }
  .social-avatar-card button { grid-column: 2; justify-self: start; }
}
