.social{background:#111b21;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;position:relative}
.social-heading{background:#1d2a31;border-bottom:1px solid #ffffff08}.social-heading h2{font-size:16px;font-weight:600;letter-spacing:0}.social-heading p{font-size:12px}
.messages,.in-room.mobile-room .messages{padding:16px 12px;background-color:#101a20;background-image:radial-gradient(#ffffff06 1px,transparent 1px);background-size:20px 20px;overflow-x:hidden}
.message,.message.mine{max-width:90%;margin:0 auto 9px 0;align-items:flex-start;text-align:left;position:relative}.message.mine{margin:0 0 9px auto;align-items:flex-end}
.message-bubble{min-width:100px;max-width:100%;padding:7px 9px 4px;background:#25343c;border-radius:2px 12px 12px 12px;box-shadow:0 1px 2px #0003;touch-action:pan-y;transition:background .2s;overflow-wrap:anywhere}
.mine .message-bubble{background:#c7efac;border-radius:12px 2px 12px 12px;color:#172c20}
.message .message-meta{display:block;font-size:12px;font-weight:600;color:#91d5bb;margin:0 0 4px}.message.mine .message-meta{color:#376943}
.message .message-bubble p,.message.mine .message-bubble p{background:none;color:inherit;padding:0;border-radius:0;font-size:15px;line-height:1.42;white-space:pre-wrap;max-width:100%;margin:0}
.bubble-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;height:23px;margin-top:2px}.bubble-footer time{font-size:10px;color:#a8b4ba}.mine .bubble-footer time{color:#47654b}
.reply-message{background:none;border:0;padding:2px 8px;font-size:19px;color:inherit;opacity:.7;min-width:34px;min-height:25px}.reply-message:hover{opacity:1}
.quoted-message{display:block;text-align:left;width:100%;border:0;border-left:3px solid #73cfb1;background:#0002;border-radius:5px;padding:7px 9px;margin:2px 0 7px;color:inherit;font-size:12px}.quoted-message strong,.quoted-message span{display:block}.quoted-message span{max-height:36px;overflow:hidden;margin-top:3px;line-height:1.4}.mine .quoted-message{background:#426d3217;border-color:#4e9461}
.highlight-message .message-bubble{outline:2px solid #c7ff70}
.chat-composer{flex:0 0 auto;min-width:0;background:#1d2a31;padding:7px 9px max(7px,env(safe-area-inset-bottom));position:relative}
.chat-composer .chat-form,.in-room.mobile-room .chat-composer .chat-form{margin:0;border:0;border-radius:24px;padding:4px 5px;min-height:44px;background:#2a3942;align-items:center;gap:2px}
.chat-composer #message,.in-room.mobile-room .chat-composer #message{font-family:inherit;font-size:16px;line-height:22px;padding:6px 5px;min-width:0}
.chat-tool{width:34px;height:36px;flex:0 0 34px;border:0;background:none;color:#bfccd3;font-size:25px;padding:0;border-radius:50%}
.chat-composer .send-button,.in-room.mobile-room .chat-composer .send-button{border-radius:50%;height:36px;width:36px;flex:0 0 36px;background:#c7ff70}
.chat-footnote{display:none}.chat-composer button:focus-visible{outline:2px solid #c7ff70;outline-offset:1px}
#chat-preview{max-height:142px;overflow:auto;margin-bottom:6px;background:#26383c;border-radius:8px}.reply-draft,.file-draft{display:flex;align-items:center;gap:10px;padding:8px 10px;min-width:0}.reply-draft{border-left:3px solid #9edda8}.reply-draft>span,.file-draft>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.reply-draft strong,.reply-draft span span{display:block;overflow:hidden;text-overflow:ellipsis}.reply-draft strong{color:#b5e6b9;margin-bottom:3px}.reply-draft button,.file-draft button{border:0;background:none;color:#d2dddc;font-size:24px;min-width:32px;min-height:32px}.file-draft img,.file-draft video{width:50px;height:45px;object-fit:cover;border-radius:5px}
.chat-media{display:block;max-width:100%;width:250px;max-height:240px;object-fit:contain;border-radius:7px;background:#0003;margin:3px 0;cursor:pointer}.media-label{display:block;font-size:10px;opacity:.7;margin:3px 0}.image-viewer{width:min(900px,95vw);max-height:90dvh}.image-viewer img{display:block;max-width:100%;max-height:75dvh;object-fit:contain;margin:10px auto}
#emoji-picker{position:absolute;bottom:100%;left:8px;right:8px;max-height:160px;overflow:auto;display:grid;grid-template-columns:repeat(8,1fr);gap:3px;padding:8px;background:#25343c;box-shadow:0 -5px 20px #0004;border:1px solid #3c4b52;border-radius:14px 14px 0 0;z-index:6}#emoji-picker button{border:0;background:none;font-size:24px;min-height:36px;border-radius:8px}#emoji-picker button:hover{background:#ffffff15}
.attachment-hint{font-size:10px;color:#b3c4c8;line-height:1.4;padding:2px 4px 7px}
.in-room.mobile-room.keyboard .chat-composer{padding-bottom:4px}.in-room.mobile-room .message{max-width:90%}.in-room.mobile-room .chat-composer{border-top:1px solid #ffffff08}
@media(prefers-reduced-motion:reduce){.message-bubble{transition:none}}

.message .message-meta .profile-avatar{width:18px;height:18px;font-size:13px;margin-right:5px;vertical-align:middle}

/* Touch-first conversation surface */
.social{background:#10191f}.messages,.in-room.mobile-room .messages{background-color:#10191f;background-image:radial-gradient(circle at center,#ffffff07 1px,transparent 1px);background-size:22px 22px}
.message,.message.mine{max-width:min(86%,560px);animation:message-arrive .22s cubic-bezier(.16,1,.3,1)}
.message-bubble{padding:9px 11px 6px;border-radius:5px 16px 16px 16px;box-shadow:0 3px 9px #0002;transition:transform .16s cubic-bezier(.16,1,.3,1),background-color .2s}
.mine .message-bubble{border-radius:16px 5px 16px 16px}
.message .message-bubble p,.message.mine .message-bubble p{font-size:15.5px;line-height:1.46}
.message .message-meta{font-size:12.5px}.message .message-meta .profile-avatar{width:22px;height:22px;margin-right:6px}
.reply-message{display:grid;place-items:center;min-width:36px;min-height:36px;border-radius:10px}.reply-message:active{background:#ffffff18}
.chat-composer{padding:8px 10px max(8px,env(safe-area-inset-bottom));background:#1b282f;border-top:1px solid #ffffff0a}
.chat-composer .chat-form,.in-room.mobile-room .chat-composer .chat-form{min-height:54px;border-radius:18px;padding:5px 6px;background:#26363f;border:1px solid #ffffff0b;box-shadow:0 5px 18px #0002}
.chat-tool{width:44px;height:44px;flex-basis:44px;display:grid;place-items:center}.chat-tool .ui-icon{width:23px;height:23px}
.chat-composer #message,.in-room.mobile-room .chat-composer #message{font-size:16px;line-height:24px;padding:9px 7px;caret-color:#c7ff70}.chat-composer #message::placeholder{color:#aebbc1}
.chat-composer .send-button,.in-room.mobile-room .chat-composer .send-button{width:44px;height:44px;flex-basis:44px;display:grid;place-items:center;box-shadow:0 4px 12px #0003}.send-button .ui-icon{width:21px;height:21px}
#emoji-picker{grid-template-columns:repeat(7,1fr);max-height:220px;padding:10px;border-radius:16px 16px 0 0}#emoji-picker button{min-height:44px;font-size:25px}
.new-messages{left:50%;bottom:88px;transform:translateX(-50%);min-height:40px;padding:9px 16px;box-shadow:0 7px 20px #0005}
@keyframes message-arrive{from{opacity:.2;transform:translateY(8px);filter:blur(2px)}to{opacity:1;transform:none;filter:blur(0)}}
@media(max-width:720px){.in-room.mobile-room .messages{padding:12px 11px}.in-room.mobile-room .message{max-width:88%;margin-bottom:10px}.in-room.mobile-room .chat-composer{padding:7px 8px max(7px,env(safe-area-inset-bottom))}.in-room.mobile-room .chat-composer .chat-form{min-height:54px}.in-room.mobile-room.keyboard .chat-composer{padding-bottom:5px}}
@media(pointer:coarse){.reply-message{min-width:44px;min-height:40px}}
@media(prefers-reduced-motion:reduce){.message,.message.mine{animation:none}.message-bubble{transition:none}}
.quoted-message{border-left:0;border:1px solid #ffffff18;border-radius:8px}.reply-draft{border-left:0;border:1px solid #9edda833;border-radius:8px}
