#member-social { min-width: 0; }
.social-head, .social-row, .social-nav, .social-actions, .social-tools, .social-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.social-head, .social-row, .social-nav { justify-content: space-between; }
.social-head { gap: 12px; padding-block: 6px 12px; }
.social-head .byline { min-width: 0; }
.social-tools { justify-content: flex-end; }
.social-nav { margin-bottom: 12px; }
.social-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
}
.social-group + .social-group, .social-rooms, .social-subtitle { margin-top: 20px; }
.social-group h3, .social-subtitle { margin-bottom: 6px; }
.social-row, .social-inbox-row { border-bottom: 1px solid var(--line); }
.social-row { padding: 8px 0; }
.social-person {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px 4px;
  min-width: 0;
  max-width: 100%;
}
.social-detail { min-width: 0; overflow-wrap: anywhere; }
.social-detail small { display: block; font-weight: 400; }
.social-actions { min-width: 0; }
.social-count {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 2px 6px;
  color: var(--green);
  background: #e1eee4;
  border-radius: 4px;
  white-space: nowrap;
}
.social-inbox-row { gap: 10px; }
.social-inbox-row .social-detail { flex: 1; }
.social-inbox-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-rooms { border-top: 1px solid var(--line); padding-top: 16px; }
.social-log {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-height: min(54dvh, 520px);
  overflow-y: auto;
  padding: 6px 4px;
}
.social-log .chat-msg { max-width: 85%; min-width: 0; }
.social-log .social-mine { align-self: flex-end; background: #dceee4; }
.social-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.social-by time, #member-social .post-copy time {
  color: var(--muted);
  font-size: 0.8rem;
}
#member-social .post-copy time { display: block; margin-bottom: 4px; }
.social-pages:not(:empty) { margin-top: 12px; }
#member-social .status:not(:empty) { margin: 4px 0 10px; overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .rail:has([data-section="people"]:not([hidden])) { gap: 3px; }
  .rail:has([data-section="people"]:not([hidden])) button { width: min(44px, 16%); }
  .social-inbox-row { gap: 6px; }
}
