.table-social-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;border:1px solid #4c6456;border-radius:15px;background:#101d1b;color:#e2ede5;overflow:auto}.table-social-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.table-social-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.table-social-heading h2{margin:0;font-size:20px}.table-social-heading button{font-size:12px;padding:8px 12px}.table-social-context{font-size:11px;color:#98b5a5;line-height:1.6;overflow-wrap:anywhere}.table-social-status{min-height:35px;font-size:12px;line-height:1.6;color:#c5d8c9;margin:10px 0 0}.table-social-log{height:min(46dvh,380px);min-height:180px;overflow:auto;overscroll-behavior:contain;border:1px solid #304a3b;border-radius:10px;padding:12px;background:#0b1612}.table-social-message{padding:9px 0;border-bottom:1px solid #2a3d31}.table-social-message:last-child{border-bottom:0}.table-social-message>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.table-social-message strong{font-size:12px;color:#b6e1c7;overflow-wrap:anywhere}.table-social-message time{font-size:10px;color:#7f9c8b;white-space:nowrap}.table-social-message p{font-size:13px;line-height:1.6;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.table-social-empty{font-size:12px;text-align:center;color:#87a592;margin:24px 0}.table-social-composer{display:flex;align-items:end;gap:10px;margin-top:13px}.table-social-composer label{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px;font-size:11px;color:#acc3b5}.table-social-composer textarea{box-sizing:border-box;resize:vertical;width:100%;max-height:160px;min-height:72px;border:1px solid #486450;border-radius:8px;background:#17291e;color:#edf7ef;padding:10px;font:inherit;font-size:13px}.table-social-composer>button{min-height:42px;padding:10px 13px;max-width:150px}.table-social-avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.table-social-avatar-grid>button{aspect-ratio:1;display:grid;place-items:center;max-width:100px;width:100%;justify-self:center;border:2px solid #486451;border-radius:50%;background:radial-gradient(circle at 35% 25%,#42725b,#172d22);color:#e4f0e6;font-size:36px;padding:10px}.table-social-avatar-grid>button[aria-pressed=true]{border-color:#9edbb0;box-shadow:0 0 0 3px #74b89233}.table-social-avatar-grid>button:disabled{opacity:.6}.table-social-dialog button:focus-visible,.table-social-dialog textarea:focus-visible{outline:2px solid #a5d9b7;outline-offset:3px}
#seats .seat-avatar{position:relative}#seats .seat-avatar>.social-avatar-icon{position:absolute;inset:3px;display:grid;place-items:center;border-radius:50%;background:inherit;color:#f0f5e8;font-size:clamp(24px,2.5vw,38px);line-height:1;pointer-events:none;z-index:0}#seats .seat.is-paused .seat-avatar:after{z-index:1}
#seats .seat-avatar[data-social-own="1"]{cursor:pointer}#seats .seat-avatar[data-social-own="1"]:focus-visible{outline:2px solid #b0dec0;outline-offset:4px}
.profile-photo-editor{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:8px 12px;margin:12px 0 16px;padding:12px;border:1px solid #426254;border-radius:10px}.profile-photo-editor h3,.profile-photo-status{grid-column:1/-1;margin:0}.profile-photo-editor h3{font-size:15px}.profile-photo-editor input{width:100%;min-width:0;max-width:100%;font:inherit;font-size:12px}.profile-photo-editor input:focus-visible{outline:2px solid #a5d9b7;outline-offset:3px}.profile-photo-portrait{position:relative;display:grid;place-items:center;grid-row:span 2;width:64px;height:64px;overflow:hidden;border:2px solid #648875;border-radius:50%;background:#274b3a;color:#e4f0e6;font-size:29px}.profile-photo-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-photo-preview[hidden]{display:none}.profile-photo-actions{display:flex;flex-wrap:wrap;gap:6px}.profile-photo-actions button{min-height:40px;font-size:12px}.profile-photo-status{min-height:20px}
#seats .seat-avatar[data-profile-photo]::before{position:absolute;inset:2px;z-index:1;border-radius:inherit;background:var(--seat-profile-photo) center/cover no-repeat;content:"";pointer-events:none}#seats .seat-avatar[data-profile-photo]>.social-avatar-icon{visibility:hidden}#seats .seat.is-paused .seat-avatar[data-profile-photo]::after{z-index:2}
@media(max-width:540px){.table-social-dialog{padding:15px;width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.table-social-heading h2{font-size:18px}.table-social-composer{flex-wrap:wrap}.table-social-composer>label{flex-basis:100%}.table-social-composer>button{max-width:none;width:100%}.table-social-avatar-grid{gap:9px}.table-social-avatar-grid>button{font-size:29px}.table-social-log{height:40dvh}}

/* Review48: only messages scroll; the composer stays reachable. */
.table-social-dialog[open]:has(.table-social-log){display:grid;height:min(680px,calc(100dvh - 24px));grid-template-rows:44px auto minmax(0,1fr) auto auto;gap:8px;overflow:hidden}
.table-social-dialog:has(.table-social-log) .table-social-heading{min-height:44px}
.table-social-dialog:has(.table-social-log) .table-social-heading button{min-height:44px}
.table-social-dialog:has(.table-social-log) .table-social-context{margin:0;max-height:40px;overflow:auto}
.table-social-dialog:has(.table-social-log) .table-social-log{height:auto;min-height:0;margin:0}
.table-social-dialog:has(.table-social-log) .table-social-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin:0;min-width:0}
.table-social-dialog:has(.table-social-log) .table-social-composer label{font-size:0;gap:0;min-width:0}
.table-social-dialog:has(.table-social-log) .table-social-composer textarea{font-size:14px;height:56px;min-height:48px;max-height:88px;resize:none;line-height:1.4}
.table-social-dialog:has(.table-social-log) .table-social-composer>button{width:auto;min-width:64px;max-width:132px;min-height:48px;font-size:13px}
.table-social-dialog:has(.table-social-log) .table-social-status{min-height:0;max-height:48px;overflow:auto;margin:0}
.table-social-dialog:has(.table-social-log) .table-social-status:empty{display:none}
@media(max-width:540px){.table-social-dialog[open]:has(.table-social-log){padding:12px;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.table-social-dialog:has(.table-social-log) .table-social-composer textarea{font-size:16px}}



/* Account sheets share the palette of the mobile club directory. */
:is(.account-profile-dialog,.reference-menu[data-home-profile=true]){
  --profile-ink:#182b25;--profile-muted:#526c5d;--profile-accent:#27664e;
  --profile-edge:#d9e6dc;--profile-surface:linear-gradient(#fff,#f0f6f1);
  --profile-row:linear-gradient(#fff,#eaf3ed);--profile-tile:#dfeee5;
  --profile-danger:#8c3d30;--profile-danger-surface:linear-gradient(#fff9f7,#f8eae5);
  --profile-danger-edge:#ead5cd;--profile-danger-tile:#f3ddd6;
  box-sizing:border-box;width:min(390px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;
  padding:14px;border:1px solid var(--profile-edge);border-radius:19px;
  color:var(--profile-ink);background:var(--profile-surface);
}
body[data-home-theme=dark] :is(.account-profile-dialog,.reference-menu[data-home-profile=true]){
  --profile-ink:#eaf5ee;--profile-muted:#afc3b5;--profile-accent:#a1d4b8;
  --profile-edge:#4a6254;--profile-surface:linear-gradient(#273b30,#16261e);
  --profile-row:linear-gradient(#344c3e,#23382d);--profile-tile:#365446;
  --profile-danger:#f1b6a6;--profile-danger-surface:linear-gradient(#473631,#322723);
  --profile-danger-edge:#674940;--profile-danger-tile:#5d4139;
}
:is(.account-profile-dialog,.reference-menu[data-home-profile=true]) :is(.table-social-heading,.reference-menu-heading){
  margin:0 0 10px;padding-bottom:7px;border-bottom:1px solid var(--profile-edge);
}
:is(.account-profile-dialog,.reference-menu[data-home-profile=true]) :is(.table-social-heading,.reference-menu-heading) button{
  color:var(--profile-ink);background:var(--profile-row);border-color:var(--profile-edge);
}
:is(.account-profile-dialog,.reference-menu[data-home-profile=true]) h2{font-size:19px;color:var(--profile-ink)}
.profile-identity{display:grid;gap:4px;margin:8px 0 14px;overflow-wrap:anywhere}
.profile-identity strong{font-size:20px}
.profile-identity span,.reference-menu[data-home-profile=true] .reference-account-name{color:var(--profile-muted);font-size:14px}
.profile-actions,.reference-profile-menu{display:grid;gap:8px;min-width:0}
.profile-currency-action:has(> button:not([hidden])){margin-bottom:8px}
.profile-actions p,.profile-review p{margin:0;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.profile-actions>:is(button,a),.profile-review button,.reference-menu[data-home-profile=true] .reference-profile-row,
.account-profile-dialog .table-social-avatar-grid button{
  box-sizing:border-box;min-height:44px;min-width:0;
  padding:7px 10px;border:1px solid var(--profile-edge);border-radius:12px;
  background:var(--profile-row);color:var(--profile-ink);font-size:14px;font-weight:650;
  text-align:left;text-decoration:none;
}
.profile-actions>a{display:flex;align-items:center}
.profile-actions>[aria-pressed=true],.account-profile-dialog .table-social-avatar-grid button[aria-pressed=true]{
  border-color:var(--profile-accent);color:var(--profile-accent)
}
.account-profile-dialog .profile-danger,.reference-menu[data-home-profile=true] .reference-profile-signout{
  border-color:var(--profile-danger-edge);background:var(--profile-danger-surface);color:var(--profile-danger)
}
.account-profile-dialog .table-social-status{color:var(--profile-muted)}
.account-profile-dialog .table-social-avatar-grid{display:grid;grid-template-columns:1fr;gap:6px}
.account-profile-dialog .table-social-avatar-grid button{justify-content:center;text-align:center;font-size:22px}
.account-profile-dialog .profile-photo-editor{border-color:var(--profile-edge)}
.profile-review{display:grid;gap:6px;padding:8px;border:1px solid var(--profile-edge);border-radius:12px}
.reference-menu:not([data-home-profile=true]) .reference-profile-menu,
.reference-menu[data-home-profile=true] :is(.reference-account-desktop,.reference-brand){display:none}
.reference-menu[data-home-profile=true] .reference-profile-row{
  display:grid;grid-template-columns:30px minmax(0,1fr) 16px;align-items:center;gap:8px;min-height:48px;
  box-shadow:0 1px 2px #163c2a25;
}
.reference-profile-glyph{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:var(--profile-tile);color:var(--profile-accent)}
.reference-profile-arrow{color:var(--profile-accent);text-align:center}
.reference-profile-signout .reference-profile-glyph{background:var(--profile-danger-tile);color:inherit}
.reference-profile-signout .reference-profile-arrow{color:inherit}
.account-profile-dialog :is(a,button,input):focus-visible,.reference-profile-row:focus-visible{outline:2px solid var(--profile-accent);outline-offset:2px}
.reference-menu .reference-account-desktop>button{
  display:flex;width:100%;justify-content:flex-start;align-items:center;min-height:45px;margin:4px 0;
  padding:10px 12px;background:#272727;border:1px solid #3a3a3a;border-radius:7px;color:#eee;font-size:14px
}
.account-profile-dialog [hidden],.reference-account-desktop>[hidden]{display:none!important}

.account-profile-dialog .profile-wallet{
  display:grid;gap:7px;padding:10px;margin:0 0 14px;border:1px solid var(--profile-edge);border-radius:12px;
}
.account-profile-dialog .profile-wallet p{margin:0;font-size:13px;overflow-wrap:anywhere}
.account-profile-dialog .profile-wallet-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.account-profile-dialog .profile-wallet button{min-height:44px;min-width:0;padding:6px;color:var(--profile-ink);background:var(--profile-row);border-color:var(--profile-edge)}
.profile-wallet-dialog label{display:grid;gap:7px}
.profile-wallet-dialog input{width:100%;min-height:44px;font-size:16px}

/* Keep account controls readable when generic quiet-button hover styles apply. */
.account-profile-dialog .profile-actions>:is(button,a):is(:hover,:focus-visible,:active){
  background:var(--profile-row);color:var(--profile-ink);border-color:var(--profile-accent)
}
.account-profile-dialog .profile-actions>.profile-danger:is(:hover,:focus-visible,:active){
  background:var(--profile-danger-surface);color:var(--profile-danger);border-color:var(--profile-danger-edge)
}
.account-profile-dialog .profile-actions>button:disabled{
  opacity:1;background:var(--profile-row);color:var(--profile-muted);border-color:var(--profile-edge)
}
