.xd-room-chat-toggle-v19{position:fixed;left:18px;bottom:18px;z-index:850000;display:none;place-items:center;width:48px;height:48px;padding:0;border-radius:15px;border:1px solid rgba(245,158,11,.24);background:linear-gradient(145deg,#1c1c1d,#101011);color:#fff;box-shadow:0 14px 38px rgba(0,0,0,.36);cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}.xd-room-chat-toggle-v19.show{display:grid}.xd-room-chat-toggle-v19.active{display:none!important}.xd-room-chat-toggle-v19:hover{transform:translateY(-2px);border-color:rgba(245,158,11,.5);background:#201c17}.xd-chat-icon{font-size:1.05rem;line-height:1}.xd-chat-badge{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;border:2px solid #111;background:#f59e0b;color:#111;font:1000 .48rem/1 Cairo,sans-serif}.xd-chat-badge[hidden]{display:none!important}
.xd-room-chat-panel-v19{position:fixed;left:18px;top:88px;bottom:18px;z-index:849999;width:min(400px,calc(100vw - 36px));height:auto;display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid rgba(255,255,255,.095);border-radius:20px;background:rgba(14,14,15,.985);box-shadow:0 30px 90px rgba(0,0,0,.58);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);opacity:0;visibility:hidden;pointer-events:none;transform:translateX(-22px) scale(.985);transform-origin:left center;transition:opacity .18s ease,transform .24s cubic-bezier(.22,1,.36,1),visibility .18s ease;overflow:hidden;font-family:Cairo,sans-serif;direction:rtl}.xd-room-chat-panel-v19.open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.xd-room-chat-head-v19{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;border-bottom:1px solid rgba(255,255,255,.065);background:rgba(255,255,255,.018)}.xd-room-chat-title-v19{display:grid;min-width:0}.xd-room-chat-title-v19 b{font-size:.78rem;color:#f4f4f5}.xd-room-chat-title-v19 small{margin-top:2px;color:#74747c;font:800 .5rem JetBrains Mono,Cairo,sans-serif;direction:ltr;text-align:right}.xd-room-chat-head-actions-v19{display:flex;align-items:center;gap:6px}.xd-room-chat-sound-v19,.xd-room-chat-close-v19{display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:10px;border:1px solid rgba(255,255,255,.08);background:#1d1d1f;color:#c6c6ca;cursor:pointer;font-family:inherit;transition:.16s}.xd-room-chat-sound-v19:hover,.xd-room-chat-close-v19:hover{background:#262628;border-color:rgba(255,255,255,.14);color:#fff}.xd-room-chat-sound-v19.off{opacity:.6}.xd-room-chat-close-v19{font-size:1rem}
.xd-room-chat-messages-v19{min-height:0;overflow:auto;padding:14px 13px 18px;display:flex;flex-direction:column;gap:9px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#303034 transparent}.xd-room-chat-messages-v19::-webkit-scrollbar{width:6px}.xd-room-chat-messages-v19::-webkit-scrollbar-thumb{background:#303034;border-radius:99px}.xd-room-chat-empty-v19{margin:auto;color:#626269;font-size:.59rem;text-align:center;line-height:1.8}
.xd-room-chat-msg-v19{width:min(92%,340px);display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:start;align-self:flex-end;direction:rtl;outline:0;border-radius:14px;cursor:pointer;transition:background .14s ease,transform .14s ease}.xd-room-chat-msg-v19.me{align-self:flex-start;direction:ltr}.xd-room-chat-msg-v19:hover,.xd-room-chat-msg-v19:focus-visible{background:rgba(255,255,255,.025)}.xd-room-chat-msg-v19.reply-picked{transform:scale(.985);background:rgba(245,158,11,.07)}.xd-room-chat-msg-v19 img{width:34px;height:34px;border-radius:11px;object-fit:cover;background:#222;border:1px solid rgba(255,255,255,.06)}.xd-room-chat-bubble-v19{min-width:0;padding:9px 10px;border-radius:14px;background:#1b1b1d;border:1px solid rgba(255,255,255,.055);direction:rtl}.xd-room-chat-msg-v19.me .xd-room-chat-bubble-v19{background:rgba(245,158,11,.085);border-color:rgba(245,158,11,.16)}.xd-room-chat-meta-v19{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:3px}.xd-room-chat-meta-v19 b{font-size:.56rem;color:#dedee1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xd-room-chat-meta-v19 b.host{color:#fbbf24}.xd-room-chat-meta-v19 time{color:#64646c;font-size:.44rem;white-space:nowrap;direction:ltr}.xd-room-chat-bubble-v19 p{margin:0;color:#eeeef0;font-size:.61rem;line-height:1.72;overflow-wrap:anywhere;white-space:pre-wrap}.xd-room-chat-quote-v19{display:grid;gap:1px;margin:-1px -2px 7px;padding:6px 8px;border-right:3px solid rgba(245,158,11,.6);border-radius:8px;background:rgba(0,0,0,.2)}.xd-room-chat-quote-v19 b{color:#fbbf24;font-size:.49rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.xd-room-chat-quote-v19 span{color:#8b8b92;font-size:.47rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xd-room-chat-system-v19{align-self:center;max-width:90%;display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.055);background:rgba(255,255,255,.025);color:#777780;font-size:.49rem;font-weight:800;text-align:center}.xd-room-chat-system-v19 i{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;font-style:normal;font-size:.58rem;background:#1d1d1f;color:#999}.xd-room-chat-system-v19.join{color:#7fae8c}.xd-room-chat-system-v19.join i{background:rgba(34,197,94,.1);color:#86efac}.xd-room-chat-system-v19.leave{color:#85858d}.xd-room-chat-system-v19.kick{color:#c77c7c}.xd-room-chat-system-v19.kick i{background:rgba(239,68,68,.1);color:#fca5a5}
.xd-room-chat-compose-v19{display:grid;gap:7px;padding:10px;border-top:1px solid rgba(255,255,255,.065);background:rgba(8,8,9,.72)}.xd-room-chat-compose-row-v19{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.xd-room-chat-compose-row-v19 input{min-width:0;height:43px;border-radius:12px;border:1px solid rgba(255,255,255,.085);background:#0d0d0e;color:#fff;padding:0 12px;outline:none;font:700 .61rem Cairo,sans-serif}.xd-room-chat-compose-row-v19 input:focus{border-color:rgba(245,158,11,.42);box-shadow:0 0 0 3px rgba(245,158,11,.055)}.xd-room-chat-compose-row-v19>button{height:43px;padding:0 15px;border:0;border-radius:12px;background:linear-gradient(135deg,#f59e0b,#ea580c);color:#111;font:1000 .61rem Cairo,sans-serif;cursor:pointer}.xd-room-chat-compose-row-v19>button:disabled{opacity:.5}.xd-room-chat-reply-v19{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;padding:7px 9px;border-radius:11px;border:1px solid rgba(245,158,11,.13);background:rgba(245,158,11,.055)}.xd-room-chat-reply-v19[hidden]{display:none!important}.xd-room-chat-reply-v19>div{display:grid;min-width:0}.xd-room-chat-reply-v19 small{color:#888891;font-size:.46rem}.xd-room-chat-reply-v19 small b{color:#fbbf24}.xd-room-chat-reply-v19 span{color:#b3b3b8;font-size:.49rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.xd-room-chat-reply-cancel-v19{width:25px;height:25px;border:0;border-radius:8px;background:rgba(255,255,255,.06);color:#aaa;cursor:pointer}
body.xd-room-chat-open-v19 main,body.xd-room-chat-open-v19>.page,body.xd-room-chat-open-v19>.meme-page{transform:none!important;filter:none!important}
@media(max-width:999px){.xd-room-chat-panel-v19{top:auto;left:10px;bottom:72px;width:min(390px,calc(100vw - 20px));height:min(560px,calc(100dvh - 96px))}}
@media(max-width:600px){.xd-room-chat-toggle-v19{left:10px;bottom:max(10px,env(safe-area-inset-bottom));width:46px;height:46px;border-radius:14px}.xd-room-chat-panel-v19{left:0;right:0;top:auto;bottom:0;width:100%;height:min(72dvh,590px);border-radius:23px 23px 0 0;transform:translateY(102%);transform-origin:bottom center}.xd-room-chat-panel-v19.open{transform:none}.xd-room-chat-head-v19{padding:12px}.xd-room-chat-messages-v19{padding:11px}.xd-room-chat-msg-v19{width:min(94%,330px)}.xd-room-chat-compose-v19{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.xd-room-chat-panel-v19,.xd-room-chat-toggle-v19,.xd-room-chat-msg-v19{transition:none!important}}

/* XD_CHAT_ICON_ONLY_V60 */
.xd-room-chat-toggle-v19{
 width:48px!important;min-width:48px!important;height:48px!important;padding:0!important;
 display:none;place-items:center!important;justify-content:center!important;gap:0!important;
 border-radius:15px!important;
}
.xd-room-chat-toggle-v19.show{display:grid!important}
.xd-room-chat-toggle-v19.active{display:none!important}
.xd-room-chat-toggle-v19>span:not(.xd-chat-icon){display:none!important}
.xd-room-chat-toggle-v19 .xd-chat-icon{font-size:1.08rem!important;line-height:1!important}
.xd-room-chat-toggle-v19 .xd-chat-badge{
 position:absolute!important;top:-5px!important;right:-5px!important;
 min-width:18px!important;height:18px!important;padding:0 4px!important;
 border:2px solid #111!important;
}
@media(max-width:600px){
 .xd-room-chat-toggle-v19{width:46px!important;min-width:46px!important;height:46px!important;border-radius:14px!important}
}
/* /XD_CHAT_ICON_ONLY_V60 */

/* XD_CHAT_SEEN_MENTIONS_V150 */
.xd-room-chat-compose-v19{position:relative}.xd-room-chat-mentions-v150{position:absolute;left:10px;right:10px;bottom:58px;z-index:20;max-height:220px;overflow:auto;padding:6px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:#171717;box-shadow:0 14px 38px rgba(0,0,0,.45)}.xd-chat-mention-option-v150{width:100%;display:flex;align-items:center;gap:9px;padding:8px 9px;border:0;border-radius:10px;background:transparent;color:#fff;text-align:right;font:800 .75rem Cairo,sans-serif;cursor:pointer}.xd-chat-mention-option-v150:hover,.xd-chat-mention-option-v150.active{background:rgba(245,158,11,.12);color:#fbbf24}.xd-chat-mention-option-v150 img{width:28px;height:28px;border-radius:50%;object-fit:cover}.xd-chat-seen-v150{display:flex;align-items:center;gap:0;margin-top:5px;min-height:17px}.xd-chat-seen-v150[hidden]{display:none!important}.xd-chat-seen-v150 img{width:17px;height:17px;border-radius:50%;object-fit:cover;border:1.5px solid #171717;margin-inline-start:-4px;background:#222}.xd-chat-seen-v150 img:first-child{margin-inline-start:0}.xd-chat-seen-v150 span{font:800 .58rem Cairo,sans-serif;color:#888;margin-inline-start:4px}
/* /XD_CHAT_SEEN_MENTIONS_V150 */



/* XD_CHAT_SEEN_REPLY_LAYOUT_V152 */
.xd-room-chat-msg-v19{position:relative;flex-wrap:wrap!important}
.xd-room-chat-msg-v19>.xd-chat-seen-v150{flex-basis:100%!important;width:auto!important;margin-top:3px!important;padding-inline-start:42px!important;order:20!important;min-height:18px!important}
.xd-room-chat-msg-v19.me>.xd-chat-seen-v150{padding-inline-start:0!important;padding-inline-end:42px!important;justify-content:flex-end!important}
.xd-room-chat-msg-v19>.xd-chat-seen-v150 img{width:18px!important;height:18px!important;border:1.5px solid #101010!important}
.xd-room-chat-quote-v19{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;text-align:right!important}
.xd-room-chat-quote-v19>b{display:block!important;width:100%!important;order:1!important;font-weight:900!important}
.xd-room-chat-quote-v19>span{display:block!important;width:100%!important;order:2!important}
/* /XD_CHAT_SEEN_REPLY_LAYOUT_V152 */

/* XD_CHAT_SEEN_REPLY_LAYOUT_V153 */
/* message rows are CSS grid, so receipts must span both grid columns */
.xd-room-chat-msg-v19>.xd-chat-seen-v150{grid-column:1 / -1!important;grid-row:auto!important;width:100%!important;display:flex!important;align-items:center!important;min-height:20px!important;margin-top:0!important;padding-inline-start:42px!important;padding-inline-end:0!important;justify-content:flex-start!important;direction:rtl!important}
.xd-room-chat-msg-v19.me>.xd-chat-seen-v150{padding-inline-start:0!important;padding-inline-end:42px!important;justify-content:flex-end!important;direction:ltr!important}
.xd-room-chat-msg-v19>.xd-chat-seen-v150[hidden]{display:none!important}
.xd-room-chat-msg-v19>.xd-chat-seen-v150 img{width:19px!important;height:19px!important;min-width:19px!important;border-radius:50%!important;border:1.5px solid #101010!important;margin-inline-start:-4px!important;box-shadow:0 1px 4px rgba(0,0,0,.35)!important}
.xd-room-chat-msg-v19>.xd-chat-seen-v150 img:first-child{margin-inline-start:0!important}
/* reply preview: sender above quoted message, never beside/below it */
.xd-room-chat-quote-v19{display:block!important;text-align:right!important;direction:rtl!important;padding:6px 8px!important}
.xd-room-chat-quote-head-v153{display:block!important;width:100%!important;margin:0 0 2px!important;line-height:1.35!important}
.xd-room-chat-quote-head-v153>b{display:block!important;width:100%!important;color:#fbbf24!important;font-size:.50rem!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:right!important}
.xd-room-chat-quote-body-v153{display:block!important;width:100%!important;color:#8b8b92!important;font-size:.47rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:right!important}
/* /XD_CHAT_SEEN_REPLY_LAYOUT_V153 */

.xd-room-chat-system-v19.event{color:#d4a64e;border-color:rgba(245,158,11,.14);background:rgba(245,158,11,.045)}.xd-room-chat-system-v19.event i{background:rgba(245,158,11,.12);color:#fbbf24}
