.chat-thread{min-width:0;position:relative}.chat-composer{flex:none;min-width:0;position:relative}.chat-bubble-row{justify-content:flex-start;width:100%;min-width:0;display:flex;position:relative}.chat-bubble-row.mine{justify-content:flex-end}.chat-item.flash .msg{animation:1.4s ease-out chatFlash}@keyframes chatFlash{0%,40%{box-shadow:0 0 0 3px color-mix(in srgb, var(--chat-green) 55%, transparent)}to{box-shadow:0 1px 1px #00000014}}.msg.pending{opacity:.75}.chat-pending{display:inline-flex}.chat-hover{background:var(--surface);border:1px solid var(--border);z-index:3;border-radius:999px;align-items:center;gap:1px;padding:3px;display:none;position:absolute;top:-22px;box-shadow:0 4px 14px #00000024}.chat-bubble-row:not(.mine) .chat-hover{left:8px}.chat-bubble-row.mine .chat-hover{right:8px}.chat-bubble-row:hover .chat-hover,.chat-bubble-row:focus-within .chat-hover{display:inline-flex}.chat-hover button{width:28px;height:28px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;display:grid}.chat-hover button:hover,.chat-hover button.on{background:var(--surface-alt);color:var(--text)}@media (max-width:640px),(hover:none){.chat-hover{display:none!important}}.chat-reactions{z-index:1;flex-wrap:wrap;gap:4px;max-width:100%;margin:-6px 8px 2px;display:flex;position:relative}.chat-react-chip{border:1px solid var(--border);background:var(--surface);height:24px;color:var(--text);cursor:pointer;border-radius:12px;align-items:center;gap:3px;padding:0 7px;font-size:12px;font-weight:700;display:inline-flex;box-shadow:0 1px 2px #0000001a}.chat-react-chip.mine{border-color:var(--chat-green);background:color-mix(in srgb, var(--chat-green) 14%, var(--surface))}.chat-react-chip:hover{filter:brightness(.97)}.chat-quote{border:0;border-left:4px solid var(--chat-green);width:100%;min-width:0;color:var(--chat-text);font:inherit;text-align:left;cursor:pointer;background:#0000000f;border-radius:6px;flex-direction:column;align-items:flex-start;gap:1px;margin:0 0 4px;padding:5px 8px;font-size:13px;line-height:17px;display:flex}:root[data-theme=dark] .chat-quote{background:#00000040}.chat-quote b{color:var(--chat-green);font-size:12.5px}.chat-quote span{-webkit-line-clamp:2;color:var(--chat-muted);overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-quote.missing{cursor:default;color:var(--chat-muted);font-style:italic}.msg>.chat-quote{flex-basis:100%}.chat-edit{flex-direction:column;gap:4px;width:min(72%,560px);display:flex}.chat-edit textarea{resize:none;border-radius:12px}.chat-edit-hint{color:var(--chat-muted);text-align:right;font-size:11.5px}.chat-menu{z-index:120;background:var(--surface);border:1px solid var(--border);width:232px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);color:var(--text);border-radius:12px;padding:6px 0;position:fixed;overflow-y:auto;box-shadow:0 8px 28px #00000038}.chat-menu-quick{border-bottom:1px solid var(--border);justify-content:space-between;margin-bottom:4px;padding:4px 8px 8px;display:flex}.chat-menu-quick button{cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:34px;height:34px;display:grid}.chat-menu-quick button:hover,.chat-menu-quick button.on{background:var(--surface-alt)}.chat-menu-item{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:10px 16px;font-size:15px;display:flex}.chat-menu-item:hover{background:var(--surface-alt)}.chat-menu-item.danger{color:var(--danger)}.chat-menu-back{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:6px 10px;font-weight:600;display:flex}.chat-menu-pick{width:300px;max-width:100%}.chat-menu:has(.chat-menu-pick){width:316px}.chat-menu-info dl{grid-template-columns:auto 1fr;gap:6px 14px;margin:0;padding:4px 16px 10px;font-size:14px;display:grid}.chat-menu-info dt{color:var(--muted)}.chat-menu-info dd{margin:0}.chat-menu-backdrop{z-index:120;background:#00000080;align-items:flex-end;display:flex;position:fixed;inset:0}.chat-menu.sheet{width:100%;max-width:none;max-height:80dvh;padding:8px 0 calc(12px + env(safe-area-inset-bottom));box-shadow:none;border:0;border-radius:20px 20px 0 0;position:static}.chat-menu.sheet .chat-menu-item{height:52px;padding:0 20px;font-size:16px}.chat-menu.sheet .chat-menu-quick{padding:6px 14px 10px}.chat-menu.sheet .chat-menu-quick button{width:44px;height:44px}.chat-menu.sheet .chat-menu-pick{width:100%}.chat-fwd-preview{border-left:4px solid var(--chat-green,#00a884);background:var(--surface-alt);text-overflow:ellipsis;white-space:nowrap;border-radius:6px;margin:0 0 10px;padding:6px 10px;font-size:13px;overflow:hidden}.chat-fwd-list{max-height:320px;margin-top:8px;overflow-y:auto}.chat-fwd-row{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;padding:8px 4px;display:flex}.chat-fwd-row:hover{background:var(--surface-alt)}.chat-fwd-row:disabled{opacity:.6;cursor:default}.chat-fwd-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.chat-fwd-empty{text-align:center;padding:20px}.chat-reply-banner{border-top:1px solid var(--border);background:var(--surface);border-left:4px solid var(--chat-green);align-items:center;gap:8px;padding:8px 14px;display:flex}.chat-reply-text{flex-direction:column;flex:1;min-width:0;font-size:13px;line-height:17px;display:flex}.chat-reply-text b{color:var(--chat-green)}.chat-reply-text span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-tray{border-top:1px solid var(--border);background:var(--surface);gap:8px;padding:8px 14px;display:flex;overflow-x:auto}.chat-tray-item{background:var(--surface-alt);border:1px solid var(--border);border-radius:10px;flex:none;width:72px;height:72px;position:relative;overflow:hidden}.chat-tray-item img{object-fit:cover;width:100%;height:100%;display:block}.chat-tray-item.busy img,.chat-tray-item.busy .chat-tray-file{opacity:.45}.chat-tray-file{height:100%;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:6px;font-size:11px;display:flex}.chat-tray-file span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.chat-tray-progress{place-items:center;display:grid;position:absolute;inset:0}.chat-tray-x{color:#fff;cursor:pointer;background:#0009;border:0;border-radius:50%;place-items:center;width:20px;height:20px;display:grid;position:absolute;top:3px;right:3px}.chat-attach-pop{z-index:20;background:var(--surface);border:1px solid var(--border);border-radius:12px;min-width:220px;padding:6px 0;position:absolute;bottom:calc(100% + 6px);left:10px;box-shadow:0 8px 24px #0000002e}.chat-attach-item{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:10px 16px;display:flex}.chat-attach-item:hover{background:var(--surface-alt)}.chat-attach-item.locked{opacity:.6;cursor:not-allowed}.chat-attach-item small{color:var(--muted);font-size:12px;display:block}.chat-gif{border:1.5px solid var(--muted);height:22px;color:var(--muted);cursor:pointer;background:0 0;border-radius:5px;flex:none;align-self:center;padding:0 5px;font-size:11px;font-weight:900;line-height:18px}.chat-gif:hover{color:var(--text);border-color:var(--text)}.chat-input .chat-emoji{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;align-self:center;place-items:center;display:grid}.chat-input .chat-emoji:hover{background:var(--surface-alt);color:var(--text)}.chat-send.chat-mic{background:var(--chat-green)}@media (min-width:641px){.chat-composer>.chat-emoji-panel{z-index:20;background:var(--surface);border:1px solid var(--border);border-radius:12px;width:340px;position:absolute;bottom:calc(100% + 6px);right:70px;overflow:hidden;box-shadow:0 8px 24px #0000002e}}.chat-recording{background:var(--surface-alt);border-radius:22px;flex:1;align-items:center;gap:10px;min-width:0;height:44px;padding:0 8px;display:flex}.chat-rec-dot{background:var(--danger);border-radius:50%;width:10px;height:10px;animation:1s ease-in-out infinite chatRec}@keyframes chatRec{50%{opacity:.25}}.chat-rec-time{font-variant-numeric:tabular-nums;font-weight:700}.chat-rec-label{color:var(--muted);font-size:14px}.chat-audio{align-items:center;gap:8px;width:260px;max-width:100%;padding:2px 0;display:flex}.chat-audio audio{display:none}.chat-audio-play{background:var(--chat-green);color:#fff;cursor:pointer;border:0;border-radius:50%;flex:none;place-items:center;width:36px;height:36px;display:grid}.chat-audio-seek{min-width:0;accent-color:var(--chat-green);flex:1}.chat-audio-time{font-variant-numeric:tabular-nums;min-width:34px;color:var(--chat-muted);flex:none;font-size:12px}.chat-audio-speed{height:24px;color:var(--chat-text);cursor:pointer;background:#0000001a;border:0;border-radius:12px;flex:none;padding:0 7px;font-size:12px;font-weight:700}:root[data-theme=dark] .chat-audio-speed{background:#ffffff24}@media (max-width:640px){.chat-input .chat-pill .chat-gif{order:3;align-self:center;margin:0 2px 0 4px}.chat-input .chat-pill .chat-attach{order:4}.chat-input .chat-recording{background:var(--mm-pill,var(--surface));border-radius:24px;height:48px}.chat-reply-banner,.chat-tray{background:var(--chat-bg)}.chat-attach-pop{bottom:calc(100% + 6px);left:8px;right:8px}.chat-edit{width:82%}.chat-audio{width:230px}.chat-send.chat-mic,.chat-send{flex:none}}
