.socialBar,.socialHeader,.socialProfile,.socialPages,.socialRowActions {display:flex;align-items:center;gap:.7rem}
.top .wrap.nav,.top .wrap.publicProfileBar {max-width:100%}
@media(min-width:501px){.top .wrap.nav,.top .wrap.publicProfileBar {width:min(1220px,92%)}}
.top .wrap.nav:has(#socialSelfSlot:not([hidden])) {column-gap:clamp(.45rem,2vw,1.9rem)}
.socialIcon {position:relative;display:inline-flex;align-items:center;justify-content:center;gap:.25rem;min-width:2.25rem;min-height:2.5rem;padding:0 .25rem;color:var(--muted)}
.socialIcon:hover,.socialIcon:focus-visible {color:var(--white)}
.socialIcon svg {width:21px;height:21px}
.socialIcon kbd {font:10px var(--mono);color:var(--muted)}
.socialBadge {position:absolute;top:.05rem;right:-.15rem;min-width:1.05rem;height:1.05rem;border-radius:1rem;text-align:center;padding:0 .18rem;background:#f4adcd;color:#251523;font:700 .66rem/1.05rem var(--mono)}
.socialPlayerCard {display:flex;align-items:center;gap:.65rem;text-align:left;min-width:0;max-width:100%;padding:.2rem 0;color:var(--white);text-decoration:none}
.socialPlayerCard:not(#socialSelf):is(:hover,:focus-visible) .socialCardHeading strong {color:var(--lav);text-decoration:underline}
.socialImage {width:42px;height:42px;object-fit:cover;flex:none;background:#28223c;border-radius:4px}
.socialCardCopy,.socialDescription,.socialUser {display:grid;gap:.1rem;min-width:0}
.socialCardHeading {display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem;line-height:1.2}
.socialCardHeading strong {font-weight:700;overflow-wrap:anywhere}
.socialStanding {color:#f6d996;font:600 .75rem/1.2 var(--mono)}
.socialCardStats,.socialDescription small,.socialDescription time {color:var(--muted);font-size:.77rem;line-height:1.35;font-variant-numeric:tabular-nums}
.socialCardLevel {display:grid;place-items:center;justify-self:start;margin-top:.12rem;width:8rem;max-width:100%;height:.85rem;
  border:1px solid #b6a1d655;border-radius:.2rem;background:linear-gradient(to right,#665482 var(--progress),#2b253a var(--progress));
  color:#fff5ff;font:700 .67rem/1 var(--mono);font-variant-numeric:tabular-nums}
.socialGuestInbox {padding:0 1.2rem 1rem;color:var(--muted)}
.socialGuestInbox button {padding:.35rem 0;color:var(--lav);font-weight:650}
#socialSelf[data-guest-account] .socialCardHeading strong {max-width:none}
.publicLevel {display:flex;align-items:center;gap:.6rem;margin-top:.45rem;color:#e3d4ff;font:600 .8rem var(--mono)}
.publicLevel progress {width:clamp(80px,13vw,150px);height:.38rem;accent-color:var(--lav)}
#socialSelf .socialImage {width:34px;height:34px}
#socialSelfSlot:not([hidden]) {display:flex;align-self:stretch;min-width:0}
#socialSelf {align-self:stretch;flex:1;width:100%;padding:.3rem .45rem;border-radius:6px}
#socialSelf:is(:hover,:focus-visible) {background-color:color-mix(in srgb,var(--lav) 18%,transparent)}
#socialSelf .socialCardHeading {flex-wrap:nowrap}
#socialSelf .socialCardHeading strong {font-size:.84rem;max-width:13ch;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#socialSelf .socialCardStats {font:.68rem/1.25 var(--mono);white-space:nowrap}
.publicProfileBar nav {gap:.7rem;align-items:center}
.socialProfile {flex-wrap:wrap}
.socialProfile button {background:#181523c7;padding:.4rem .65rem!important;border-bottom:1px solid #a18cb6}
.socialFeedback:not(:empty) {flex-basis:100%;color:var(--yellow);font-size:.8rem}
.socialDialog {width:min(480px,calc(100vw - 24px));max-height:min(76dvh,710px);padding:0;background:#1b1825;color:var(--white);border:1px solid var(--stroke);border-top:3px solid var(--lav);overflow:auto}
.socialDialog::backdrop {background:rgba(12,10,20,.72);backdrop-filter:blur(3px)}
.socialHeader {padding:1rem 1.2rem .55rem}
.socialHeader h2 {font-size:1.45rem;margin:0 auto 0 0}
.socialHeader button,.socialPages button,.socialRowActions button {color:var(--lav);font-size:.84rem;font-weight:650}
.socialHeader .socialClose {color:var(--muted);font:1.6rem/1 var(--mono);min-width:32px;min-height:32px}
.socialPanelSelf {margin:0 1.2rem .6rem;padding:.2rem 0 .5rem;border-bottom:1px solid var(--stroke)}
.socialPanelSelf .socialPlayerCard {width:100%}
.socialTabs {display:flex;gap:1.1rem;margin:0 1.2rem;border-bottom:1px solid var(--stroke)}
.socialTabs button {color:var(--muted);padding:.45rem 0;font-size:.86rem;font-weight:650;line-height:1.4}
.socialTabs button[aria-selected=true] {color:var(--white);border-bottom:2px solid var(--lav)}
.socialPanel {padding:.2rem 1.2rem .9rem;min-height:9rem}
.socialList {list-style:none;margin:0;padding:0}
.socialRow {display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.55rem 0;border-bottom:1px solid var(--stroke)}
.socialRow:last-child {border-bottom:0}
.socialUser>.socialPresence {margin-left:calc(42px + .65rem)}
.socialPresence {font:.7rem/1.4 var(--mono);color:var(--muted);overflow-wrap:anywhere}
.socialPresence::before {content:'';display:inline-block;margin:0 .35em .1em 0;width:.48em;height:.48em;border-radius:100%;background:#858094}
.socialPresence:is([data-state=menu],[data-state=playing],[data-state=replay],[data-state=editing])::before {background:#93e8be}
.socialRowActions {flex-wrap:wrap;justify-content:end;gap:.35rem .7rem;max-width:44%}
.socialRowActions button {padding:.4rem 0}
.socialRow button:hover,.socialPages button:hover,.socialHeader button:hover {text-decoration:underline;text-underline-offset:.18rem}
.socialIdentity {color:var(--white);text-decoration:none;display:flex;align-items:center;gap:.7rem;min-width:0;flex:1;padding:.12rem 0}
.socialIdentity:hover strong {color:var(--lav)}
.socialDescription strong {font-size:.9rem;line-height:1.35;overflow-wrap:anywhere}
.socialRow.unread::after {content:'';width:7px;height:7px;border-radius:50%;background:var(--lav);flex:none}
.socialStatus {font-size:.86rem;color:var(--muted);margin:.75rem 0}
.socialStatus:empty,.socialPages:empty,.socialFeedback:empty {display:none}
.socialPages {margin-top:.45rem;justify-content:flex-end;flex-wrap:wrap}
@media(min-width:701px) and (max-width:980px){
  .top .wrap.nav:has(#socialSelfSlot:not([hidden])) {flex-wrap:wrap;row-gap:0}
  .top .wrap.nav:has(#socialSelfSlot:not([hidden])) .libraryTabs {order:3;width:100%;display:flex;justify-content:start}
}
@media(max-width:800px){
  .socialBar {gap:.05rem}
  .socialIcon kbd {display:none}
  .top .settingsLink span {display:none}
  .publicProfileBar > .brand {font-size:19px}
}
@media(max-width:500px){
  .socialDialog {max-height:85dvh}
  .top .wrap.nav:has(#socialSelfSlot:not([hidden])) {column-gap:.45rem}
  #socialSelf {gap:.32rem;padding:.2rem .25rem}
  #socialSelf .socialCardLevel {width:clamp(5.8rem,26vw,8rem)}
  #socialSelf .socialImage {width:27px;height:27px}
  #socialSelf .socialCardHeading {gap:.2rem}
  #socialSelf .socialCardHeading strong {max-width:9ch;font-size:.78rem}
  #socialSelf .socialStanding,#socialSelf .socialCardStats {font-size:.6rem}
  .publicProfileBar {flex-wrap:wrap}
  .publicProfileBar nav {flex-wrap:wrap;justify-content:flex-end;gap:.25rem}
  .publicProfileBar nav>a {font-size:.7rem}
  .socialIcon {min-width:1.8rem}
}
