.social-ui {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: #403750;
  font-size: 14px;
  line-height: 1.55;
}
.social-ui *, .social-ui *::before, .social-ui *::after { box-sizing: border-box; }
.social-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.social-heading img { object-fit: contain; flex: 0 0 36px; image-rendering: auto; }
.social-heading h2 { flex: 1; margin: 0; font-size: 19px; }
.social-ui h3 { margin: 0 0 8px; color: #64518a; font-size: 16px; overflow-wrap: anywhere; }
.social-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8c9e8;
  border-radius: 15px;
  background: linear-gradient(135deg, #fffef4, #fff7fc);
  box-shadow: 0 2px 0 #e7dcf0;
}
.social-card > .social-card { margin-top: 10px; box-shadow: none; background: #fffdf8; }
.social-note { margin: 6px 0; color: #625670; font-size: 13px; overflow-wrap: anywhere; }
.social-warning {
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 4px solid #d28439;
  border-radius: 5px;
  color: #73420f;
  background: #fff1ce;
  overflow-wrap: anywhere;
}
.social-person {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #e7deef;
}
.social-person:last-child { border-bottom: 0; }
.social-person-info { display: grid; gap: 3px; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.social-person-info small { color: #6b5b78; font-size: 12px; }
.social-badge {
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid #d2c2e5;
  border-radius: 20px;
  background: #eee6fb;
  color: #5c407c;
  font-size: 12px;
}
.social-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.social-ui button {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid #bba2cf;
  border-radius: 11px;
  color: #4e3b68;
  background: linear-gradient(#fffdfb, #ece3fc);
  white-space: normal;
  overflow-wrap: anywhere;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.social-ui button:hover:not(:disabled) { background: #e9ddfa; border-color: #9b7bbc; }
.social-ui button:disabled { opacity: .6; cursor: not-allowed; }
.social-ui button.social-danger { border-color: #d99a9c; color: #8c3443; background: linear-gradient(#fff5ef, #ffdfdf); }
.social-ui button.social-danger:hover:not(:disabled) { background: #ffd0d4; border-color: #c2767d; }
.social-ui :is(button, input, textarea, select):focus-visible { outline: 3px solid #427ca9; outline-offset: 3px; }
.social-field { display: grid; gap: 5px; min-width: 0; margin: 10px 0; color: #584866; font-size: 13px; }
.social-field input, .social-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #c6b4d8;
  border-radius: 10px;
  color: #403750;
  background: #fffefa;
  font: inherit;
  font-size: 16px;
}
.social-field textarea { resize: vertical; }
.social-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.social-offers .social-card { padding: 12px; }
.social-ui .item-row { min-width: 0; flex-wrap: wrap; }
.social-ui .item-info { min-width: 0; overflow-wrap: anywhere; }
.social-ui .item-info small { white-space: normal; overflow-wrap: anywhere; }
.social-offer-entry > .social-field { flex: 1 0 100%; margin: 5px 0; }
.social-offer-entry > .social-field input { max-width: 170px; }
.social-ready { background: #effbf2; border-color: #8bbd9c; }
.social-ready h3 { color: #32674b; }
.social-destructive { border: 2px solid #db929b; background: #fff1ed; box-shadow: 0 2px 0 #f5cbd2; }
.social-destructive h3 { color: #97394d; }
.social-destructive .social-actions { margin-top: 12px; }
.social-guild-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: #edf6ff; border-radius: 9px; }
.social-rules { background: #eef6ff; border-color: #bfd5e9; box-shadow: none; }
.social-rules h3 { color: #426e92; }
.social-ranking-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d8c9e8; border-radius: 10px; margin: 10px 0; }
.social-ranking-scroll:focus-visible { outline: 3px solid #427ca9; outline-offset: 3px; }
.social-ranking-table { border-collapse: collapse; width: 100%; min-width: 490px; font-size: 13px; font-variant-numeric: tabular-nums; }
.social-ranking-table caption { padding: 9px; text-align: left; color: #625670; }
.social-ranking-table th, .social-ranking-table td { padding: 9px; text-align: right; border-bottom: 1px solid #e7deef; }
.social-ranking-table th { background: #eee6fb; white-space: nowrap; }
.social-ranking-table :is(th, td):nth-child(2) { text-align: left; max-width: 220px; overflow-wrap: anywhere; }
.social-ranking-table tbody tr:last-child td { border-bottom: 0; }
.social-ranking-mine { background: #e6f6ed; font-weight: 600; }
@media (max-width: 600px) {
  .social-ui { gap: 11px; }
  .social-card { padding: 11px; }
  .social-offers { grid-template-columns: minmax(0, 1fr); }
  .social-person > .social-actions { flex-basis: 100%; }
  .social-actions > button { flex: 1 1 125px; }
  .social-heading h2 { font-size: 17px; }
  .social-heading button { padding-inline: 10px; }
}
@media (max-height: 450px) and (orientation: landscape) {
  .social-ui { gap: 9px; }
  .social-card { padding: 10px; }
  .social-heading h2 { font-size: 17px; }
}
