.social-section{margin-top:22px}.social-compose{border-top:1px solid var(--line);padding-top:14px;min-width:0}.social-compose-actions,.social-profile-links,.social-counts{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.social-file{position:relative;overflow:hidden;cursor:pointer}.social-file input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.social-file:focus-within{outline:2px solid var(--gold);outline-offset:3px}.social-image{display:block;max-width:100%;max-height:440px;width:auto;height:auto;border-radius:16px;margin:12px 0;object-fit:contain}.social-audio{display:block;width:100%;max-width:460px;margin:12px 0}.social-reactions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.social-reactions button{min-width:44px;min-height:40px;border:1px solid var(--line);border-radius:99px;background:var(--panel2);color:var(--text);padding:7px 11px;cursor:pointer}.social-reactions button[aria-pressed=true]{border-color:var(--gold);background:color-mix(in srgb, var(--gold) 13.3%, transparent)}.social-counts{justify-content:center}.social-counts span{padding:12px;background:var(--panel2);border-radius:16px}.social-counts strong{display:block;font-size:22px}.anonymous-trader{max-width:640px;margin:30px auto;padding:20px}.anonymous-trader>.auth-logo{display:block;margin-bottom:24px}.anonymous-trader .profile-card h1{overflow-wrap:anywhere}.social-compose [role=status]{font-size:13px;line-height:1.5}.social-compose [data-social-preview]{max-width:100%;overflow:hidden}
.social-privacy-choice{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:18px;text-align:left}.social-privacy-choice span{display:block;min-width:0}.social-privacy-choice strong{display:block;color:var(--text);font-size:15px}.social-privacy-choice small{display:block;margin-top:5px;line-height:1.5}.social-privacy-choice input{flex:none;width:20px;height:20px;margin:0}
@media(max-width:600px){.social-compose-actions>*{flex:1;min-width:145px}.social-counts{gap:8px}.anonymous-trader{margin:10px auto;padding:14px}.social-reactions button{min-height:44px}}
/* Keep profile actions inside narrow cards and respect installed iPhone insets. */
@media (max-width:700px){
 .topbar{height:auto;min-height:calc(64px + env(safe-area-inset-top,0px));padding-top:calc(10px + env(safe-area-inset-top,0px));padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px))}
 .content{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
 .profile-card{min-width:0;overflow-wrap:anywhere}
 .profile-card .form-actions{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;width:100%;min-width:0}
 .profile-card .form-actions>.btn{box-sizing:border-box;flex:0 1 auto;width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px;text-align:center}
 .social-profile-links>.btn{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #social-privacy-form select{min-width:0;max-width:100%;width:100%}
}
.chat-list{display:grid;gap:12px}.chat-message{padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--panel);min-width:0}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:10px 0 0}.chat-meta{display:flex;align-items:center;gap:8px;min-width:0}.chat-meta strong{overflow-wrap:anywhere}.chat-meta small{margin-left:auto;color:var(--muted);white-space:nowrap}.chat-message .social-reactions{margin-bottom:0}.community-status{min-width:64px}.community-room-row{min-height:70px;border-radius:16px}.community-compose textarea{min-height:100px}
@media(max-width:700px){.chat-message{padding:14px}.chat-meta{flex-wrap:wrap}.chat-meta small{margin-left:auto}.community-statuses{gap:10px}.community-room-row{padding:12px 10px}.community-room-row .room-flag{font-size:8px}.community-compose summary{min-height:48px}.chat-compose .social-compose-actions>*{min-width:0}}
