.chat-image-preview[hidden]{display:none!important}
.chat-image-preview{display:flex;align-items:center;gap:12px;flex:none;padding:9px 11px;border-top:1px solid #dfe5da;background:#f0f4ee;font-size:13px;border-radius:10px}
.chat-image-preview img{width:56px;height:56px;object-fit:cover;border-radius:8px}
.chat-image-preview span{flex:1}.chat-image-preview small{display:block;color:#687761;margin-top:3px}
.chat-image-preview button{background:white;border:1px solid #d4decd;border-radius:7px;padding:8px 12px;color:#435c37}
#sheet.chat-fullscreen .composer{align-items:flex-end;gap:8px;display:flex}
#sheet.chat-fullscreen .composer textarea{flex:1;min-width:0;margin:0;resize:none;min-height:46px;max-height:130px;line-height:24px;padding:10px 12px;font-size:16px;border:1px solid #dce2d6;border-radius:12px;background:#fff;color:#24311f;box-sizing:border-box}
#sheet.chat-fullscreen .composer .primary{min-height:46px;flex:none;margin:0;padding:10px 17px}
#sheet.chat-fullscreen .composer .chat-image-pick{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;width:44px;height:46px;margin:0;flex:none;border:1px solid #dce2d6;border-radius:12px;background:#fff;color:#526a43;font-size:29px;cursor:pointer}
#sheet.chat-fullscreen .composer .chat-image-pick input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
#sheet.chat-fullscreen .composer[aria-busy=true] .chat-image-pick{pointer-events:none;opacity:.5}
.chat-image-open{display:block;border:0;padding:0;margin:8px 0 0;background:transparent;color:inherit;max-width:100%;text-align:left;cursor:zoom-in}
.chat-image-open img{display:block;width:auto;height:auto;max-width:min(280px,62vw);max-height:320px;border-radius:10px;object-fit:contain;background:#e7eddf;min-width:40px;min-height:40px}
.chat-image-open span{display:block;font-size:11px;margin-top:5px;opacity:.75}
.message .msg-body p{overflow-wrap:anywhere;white-space:normal}
#chatImageViewer{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:max(65px,env(safe-area-inset-top)) 14px max(40px,env(safe-area-inset-bottom));border:0;border-radius:0;background:rgba(16,22,15,.96);color:white;overflow:auto;text-align:center}
#chatImageViewer::backdrop{background:#10160f}
#chatImageViewer img{max-width:100%;max-height:calc(100dvh - 145px);width:auto;height:auto;object-fit:contain}
#chatImageViewer button{position:fixed;top:max(16px,env(safe-area-inset-top));right:18px;background:#fff;color:#273725;border:0;border-radius:10px;padding:11px 20px;font-size:15px}
#chatImageViewer p{font-size:12px;color:#dce5d7;line-height:1.6;margin:14px 0}
@media(max-width:420px){#sheet.chat-fullscreen .composer{gap:6px}#sheet.chat-fullscreen .composer .primary{padding:10px 12px}#sheet.chat-fullscreen .composer textarea{padding:10px 8px}.chat-image-open img{max-width:60vw}}
.chat-forward-image,.chat-share-card button{margin:7px 0 0;padding:6px 10px;border:1px solid #cbdccc;background:#f7fbf5;color:#2b6942;border-radius:8px;font-size:12px;cursor:pointer}
.chat-payment-card,.chat-share-card{margin:9px 0;padding:12px;border:1px solid #d5e1d2;border-radius:12px;background:#f3f8ee;display:grid;gap:5px;max-width:280px;overflow-wrap:anywhere}
.chat-payment-card.gift{background:#fff0e5;border-color:#f2d4ba;color:#823818}
.chat-payment-card small,.chat-share-card small{opacity:.8;font-size:11px}
.chat-payment-card strong{font-size:22px}.chat-share-card strong{font-size:15px}
.chat-payment-card a,.chat-share-card a{font-size:12px;text-decoration:underline;color:inherit}
.message .msg-body a{overflow-wrap:anywhere}
.social-nav-badge{position:absolute;top:2px;right:calc(50% - 26px);min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#bb3c35;color:#fff;font-size:10px;line-height:17px;text-align:center}.social-nav-badge[hidden],.chat-unread[hidden]{display:none!important}.bottom-nav [data-tab]{position:relative}
.chat-unread{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#bb3c35;color:#fff;font-size:11px}.chat-muted{color:#7e8b7d;font-size:10px}
.social-room-actions{flex-wrap:wrap;gap:5px!important}.social-room-actions .secondary{font-size:12px;padding:7px 9px}.social-group-banner{background:#f2f5e8;border:1px solid #d8e4ce;border-radius:10px;padding:8px 12px;margin:7px 0;font-size:12px}.social-group-banner[hidden],.social-topic-bar[hidden],.social-reply-preview[hidden],.social-mention-menu[hidden],#social-message-actions[hidden]{display:none!important}.social-group-banner p{margin:4px 0;white-space:pre-wrap}.social-group-banner small{color:#60775c}
.social-topic-bar{display:flex;gap:5px;overflow-x:auto;padding:5px 0;flex:none}.social-topic-bar button{flex:none;font-size:12px;padding:6px 10px}.social-topic-bar button.selected{background:#d9e8d8;border-color:#8bad8b;color:#1c5636}
.social-reply-quote,.social-forward-label{background:#f0f3ed;border-left:3px solid #89a589;border-radius:4px;padding:5px 8px;font-size:11px;color:#647267;margin:6px 0;overflow-wrap:anywhere}.social-forward-label{background:transparent;border-left:0;padding:0;color:#738675}.social-topic-label{font-size:11px;color:#407251;display:inline-block;margin-top:5px}
.social-reply-preview{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;background:#edf4e9;border-radius:8px;font-size:12px}.social-reply-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-reply-preview button{flex:none;padding:5px 8px}
.social-mention-menu{display:flex;gap:5px;overflow-x:auto;max-height:88px;padding:7px;background:#f4f8f0}.social-mention-menu button{flex:none;padding:6px 8px;font-size:12px}
#social-message-actions{position:absolute;left:10px;right:10px;bottom:70px;z-index:5}.social-action-card{padding:12px;border-radius:12px;background:#fff;box-shadow:0 8px 25px #173e3033;border:1px solid #dfe9d9}.social-action-card strong{font-size:12px}.social-action-card .quick-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.social-action-card button{font-size:12px;padding:6px 9px}
.social-qr{text-align:center;display:grid;justify-items:center;gap:12px}.social-qr img{width:min(260px,72vw);aspect-ratio:1;background:#fff;border:12px solid #fff;border-radius:14px;box-shadow:0 4px 20px #173e3020}.social-qr input{width:100%;padding:8px;font-size:12px}.social-search-result{padding:11px 0;border-bottom:1px solid #e6ece2}.social-search-result small{color:#738273}.social-search-result p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}
.social-group-details section{padding:12px 0;border-bottom:1px solid #e6ece2}.social-group-details h3{font-size:15px;margin:0 0 8px}.social-group-details p{white-space:pre-wrap;overflow-wrap:anywhere}.social-group-details section>button{margin:4px 6px 4px 0}
#sheet.chat-fullscreen .composer [data-act="socialMentionMenu"]{flex:none;align-self:center;padding:8px 5px;font-size:12px}
#sheet.chat-fullscreen .chat-window{position:relative}
.social-mentions{font-size:11px;color:#a44c2b;background:#fff3e7;border-radius:9px;padding:5px 8px;white-space:nowrap}.social-mentions[hidden]{display:none!important}

/* Conversation takes the full app viewport; the header uses a back arrow. */
#sheet.chat-fullscreen{left:0!important;right:0!important;top:var(--chat-top,0px)!important;bottom:auto!important;width:100vw!important;max-width:100vw!important;height:var(--chat-height,100dvh)!important;max-height:var(--chat-height,100dvh)!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#sheet.chat-fullscreen .sheet-head{justify-content:flex-start;gap:12px}
#sheet.chat-fullscreen .sheet-head h2{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sheet.chat-fullscreen .sheet-head [data-act="close"]{order:-1;width:42px;height:42px;background:transparent;border:0;border-radius:12px;font-size:27px;color:#244b3d}
#sheet.chat-fullscreen .sheet-head [data-act="close"] svg{display:none}
#sheet.chat-fullscreen .sheet-head [data-act="close"]::before{content:"←"}
#sheet.chat-fullscreen #sheetBody{padding-top:0!important}
#sheet.chat-fullscreen .chat-composer-dock{position:relative;z-index:5;display:flex;align-items:flex-end;gap:8px;flex:none;border-top:1px solid #dfe5da;background:#fbfcf8;padding:8px 0 2px}
#sheet.chat-fullscreen .chat-composer-dock .composer{flex:1;min-width:0;border-top:0;margin:0;padding:0}
#sheet.chat-fullscreen .chat-plus-menu{position:relative;flex:none;margin:0}
#sheet.chat-fullscreen .chat-plus-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:46px;height:46px;border:1px solid #dce2d6;border-radius:12px;background:#fff;color:#426b4e;font-size:29px;line-height:1;cursor:pointer;user-select:none}
#sheet.chat-fullscreen .chat-plus-menu>summary::-webkit-details-marker{display:none}
#sheet.chat-fullscreen .chat-plus-menu[open]>summary{background:#e8f0e4}
#sheet.chat-fullscreen .chat-plus-panel{position:absolute;left:0;bottom:calc(100% + 12px);z-index:30;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(380px,calc(100vw - 28px));max-height:min(65dvh,520px);overflow-y:auto;padding:12px;background:#fff;border:1px solid #dce6da;border-radius:16px;box-shadow:0 15px 42px #233e2f38}
#sheet.chat-fullscreen .chat-plus-panel .secondary,#sheet.chat-fullscreen .chat-plus-image{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px;border:0;border-radius:12px;background:#edf3e9;color:#244b3d;font-size:13px;text-align:center;cursor:pointer}
#sheet.chat-fullscreen .chat-plus-image{position:relative;overflow:hidden;font-weight:600}
#sheet.chat-fullscreen .chat-plus-image input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
#sheet.chat-fullscreen .chat-plus-panel .secondary:focus-visible,#sheet.chat-fullscreen .chat-plus-menu>summary:focus-visible,#sheet.chat-fullscreen .chat-plus-image:focus-within{outline:2px solid #2d7952;outline-offset:2px}
#sheet.chat-fullscreen .chat-composer-dock .composer textarea{min-height:46px}
@media(max-width:420px){#sheet.chat-fullscreen .chat-plus-panel{width:min(330px,calc(100vw - 24px))}#sheet.chat-fullscreen .chat-composer-dock{gap:6px}#sheet.chat-fullscreen .chat-plus-menu>summary{width:42px}}
