@keyframes m-chat-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.m-chat-spin{animation:m-chat-spin .8s linear infinite}.m-chat-fab{position:fixed;right:24px;bottom:24px;z-index:150;width:48px;height:48px;border-radius:50%;background:var(--surface);color:var(--text);border:1px solid var(--border-2);cursor:pointer;display:grid;place-items:center;flex:none;box-shadow:0 6px 20px -8px rgba(0,0,0,.7);transition:background .15s,border-color .15s}.m-chat-fab:hover{background:var(--surface-3);border-color:var(--faint)}.m-chat-fab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.m-chat-fab svg{width:22px;height:22px}.m-chat-fab.mobile{right:16px;bottom:calc(56px + 16px + env(safe-area-inset-bottom,0px))}.m-chat-fab-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:var(--r-pill);background:var(--sell);color:#fff;font-size:11px;font-weight:600;line-height:1;display:grid;place-items:center;border:2px solid var(--bg);font-family:var(--font-num)}.m-chat-panel{position:fixed;z-index:150;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);color:var(--text)}.m-chat-panel:focus{outline:none}.m-chat-panel.desktop{right:24px;bottom:24px;width:min(492px,calc(100vw - 48px));height:min(810px,calc(100vh - 90px));border:1px solid var(--border-2);border-radius:var(--r-lg);box-shadow:0 20px 48px -22px rgba(0,0,0,.8)}.m-chat-panel.mobile{inset:0;width:100%;height:100dvh;border:0;border-radius:0}.m-chat-h{flex:none;display:flex;align-items:center;gap:12px;height:60px;padding:0 12px 0 16px;background:var(--surface);border-bottom:1px solid var(--border)}.m-chat-panel.mobile .m-chat-h{height:56px;padding-top:env(safe-area-inset-top,0);box-sizing:content-box}.m-chat-h-id{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.m-chat-h-txt{min-width:0}.m-chat-h-txt b{display:block;font-size:16px;font-weight:600;line-height:20px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-chat-h-txt span{display:block;font-size:12px;line-height:16px;color:var(--muted);margin-top:1px}.m-chat-h-actions{display:flex;align-items:center;gap:2px;flex:none}.m-chat-ib{width:32px;height:32px;border-radius:var(--r-sm);border:0;background:transparent;color:var(--muted);cursor:pointer;display:grid;place-items:center;transition:background .15s,color .15s}.m-chat-ib.on,.m-chat-ib:hover{background:var(--surface-3);color:var(--text)}.m-chat-ib svg{width:18px;height:18px}.m-chat-av{border-radius:50%;flex:none;position:relative;overflow:hidden;background:var(--surface-3);border:1px solid var(--border);display:grid;place-items:center}.m-chat-av img{width:100%;height:100%;object-fit:cover}.m-chat-av span{color:var(--muted);font-weight:600;letter-spacing:.4px}.m-chat-av svg{width:16px;height:16px;color:var(--muted)}.m-chat-ann{flex:none;display:flex;align-items:center;gap:10px;padding:0 12px 0 16px;height:46px;background:var(--surface-2);border-bottom:1px solid var(--border)}.m-chat-ann>svg:first-child{width:18px;height:18px;color:var(--accent);flex:none}.m-chat-ann-link{flex:1;min-width:0;border:0;background:transparent;padding:0;text-align:left;cursor:pointer;font:inherit;font-size:13px;font-weight:500;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-chat-ann-link:hover{color:var(--accent)}.m-chat-ann-x{width:24px;height:24px;border-radius:var(--r-sm);border:0;background:transparent;color:var(--muted);cursor:pointer;display:grid;place-items:center;flex:none}.m-chat-ann-x:hover{color:var(--text);background:var(--surface-3)}.m-chat-ann-x svg{width:14px;height:14px}.m-chat-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;background:var(--bg);display:flex;flex-direction:column;gap:12px}.m-chat-body::-webkit-scrollbar{width:6px}.m-chat-body::-webkit-scrollbar-track{background:transparent}.m-chat-body::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:3px}.m-chat-hub,.m-chat-hub-card{display:flex;flex-direction:column;gap:12px}.m-chat-hub-h{display:flex;align-items:center;justify-content:space-between;gap:8px}.m-chat-hub-h b{font-size:14px;font-weight:600;color:var(--text)}.m-chat-hub-h-r{display:flex;align-items:center;gap:6px;flex:none}.m-chat-more{display:inline-flex;align-items:center;gap:2px;border:0;background:transparent;padding:0;color:var(--muted);font:inherit;font-size:12px;cursor:pointer;flex:none}.m-chat-more:hover{color:var(--text)}.m-chat-more svg{width:14px;height:14px}.m-chat-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.m-chat-tool{display:flex;align-items:center;gap:10px;min-width:0;min-height:50px;padding:8px 12px;border-radius:var(--r);border:1px solid transparent;background:var(--surface-2);color:var(--text);font:inherit;font-size:12px;font-weight:500;cursor:pointer;text-align:left;transition:border-color .15s,background .15s}.m-chat-tool:hover{border-color:var(--border-2);background:var(--surface-3)}.m-chat-tool svg{width:20px;height:20px;color:var(--accent);flex:none}.m-chat-tool span{min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;font-size:12px;line-height:16px}.m-chat-hub .m-chips{gap:6px}.m-chat-hub .m-chip{height:26px;padding:0 10px;font-size:12px}.m-chat-search{position:relative}.m-chat-search input{width:100%;height:36px;padding:0 12px 0 36px;font:inherit;font-size:14px;border-radius:var(--r);border:1px solid var(--border);background:var(--surface-2);color:var(--text);outline:none}.m-chat-search input::placeholder{color:var(--faint)}.m-chat-search input:focus{border-color:var(--accent)}.m-chat-search>svg{position:absolute;left:12px;top:10px;width:16px;height:16px;color:var(--faint);pointer-events:none}.m-chat-qs{display:flex;flex-direction:column;margin-top:2px}.m-chat-q{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 0;border:0;background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:500;text-align:left;cursor:pointer;border-top:1px solid var(--border)}.m-chat-qs>.m-chat-q:first-child{border-top:0}.m-chat-q:hover{color:var(--accent)}.m-chat-q span{flex:1;min-width:0}.m-chat-q svg{width:14px;height:14px;color:var(--faint);flex:none}.m-chat-noresults{padding:12px 0 4px;margin:0;font-size:13px;color:var(--muted)}.m-chat-cta{flex:none;padding:12px 16px;background:var(--surface);border-top:1px solid var(--border)}.m-chat-panel.mobile .m-chat-cta{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.m-chat-grp{display:flex;flex-direction:column;gap:12px;flex:none}.m-chat-day{align-self:center;padding:4px 0}.m-chat-day span{font-size:12px;color:var(--faint)}.m-chat-row{display:flex;gap:10px;align-items:flex-start}.m-chat-row.me{flex-direction:row-reverse}.m-chat-row.cont{margin-top:-6px}.m-chat-av-gap{width:32px;flex:none}.m-chat-col{max-width:78%;min-width:0;display:flex;flex-direction:column}.m-chat-name{font-size:12px;color:var(--faint);margin:0 0 4px 2px}.m-chat-msg{border-radius:var(--r);padding:9px 13px;font-size:14px;line-height:1.5;background:var(--surface-2);border:1px solid var(--border);color:var(--text);word-break:break-word;white-space:pre-wrap}.m-chat-row:not(.me) .m-chat-msg{border-top-left-radius:var(--r-sm)}.m-chat-row.cont .m-chat-msg{border-top-left-radius:var(--r)}.m-chat-msg.me{background:var(--accent);border-color:transparent;color:#0B0B0D;border-top-right-radius:var(--r-sm)}.m-chat-msg.me strong{font-weight:600}.m-chat-msg img{border-radius:var(--r-sm);max-width:100%;display:block;cursor:pointer}.m-chat-msg img+p{margin-top:8px}.m-chat-msg p{margin:0}.m-chat-meta{font-size:12px;color:var(--faint);margin:4px 2px 0;font-variant-numeric:tabular-nums}.m-chat-row.me .m-chat-meta{text-align:right}.m-chat-pill{align-self:center}.m-chat-pill span{display:inline-block;font-size:12px;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);padding:4px 12px;border-radius:var(--r-pill)}.m-chat-jump,.m-chat-pill.agent span{color:var(--text)}.m-chat-jump{position:sticky;bottom:0;align-self:center;z-index:1;flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;border-radius:var(--r-pill);border:1px solid var(--border-2);background:var(--surface-3);font:inherit;font-size:12px;font-weight:500;cursor:pointer}.m-chat-jump svg{width:14px;height:14px}.m-chat-voice{display:flex;align-items:center;gap:10px;width:100%;min-width:200px;max-width:280px}.m-chat-voice-btn{width:32px;height:32px;border-radius:50%;flex:none;padding:0;background:var(--surface-3);color:var(--text);border:1px solid var(--border-2);cursor:pointer;display:grid;place-items:center}.m-chat-msg.me .m-chat-voice-btn{background:#0B0B0D;color:var(--accent);border-color:transparent}.m-chat-voice-btn svg{width:14px;height:14px}.m-chat-voice-main{flex:1;min-width:0}.m-chat-voice-track{height:4px;border-radius:2px;background:var(--border-2);cursor:pointer;overflow:hidden;margin:6px 0}.m-chat-voice-track i{display:block;height:100%;background:var(--accent)}.m-chat-msg.me .m-chat-voice-track{background:rgba(11,11,13,.25)}.m-chat-msg.me .m-chat-voice-track i{background:#0B0B0D}.m-chat-voice-t{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.m-chat-msg.me .m-chat-voice-t{color:rgba(11,11,13,.7)}.m-chat-err{flex:none;display:flex;align-items:center;gap:8px;padding:8px 12px 8px 16px;background:var(--surface-2);border-top:1px solid var(--border);font-size:12px;line-height:16px;color:var(--text)}.m-chat-err>svg:first-child{width:16px;height:16px;color:var(--sell);flex:none}.m-chat-err span{flex:1;min-width:0}.m-chat-preview{flex:none;display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--surface-2);border-top:1px solid var(--border)}.m-chat-preview-img{position:relative;flex:none}.m-chat-preview-img img{width:48px;height:48px;border-radius:var(--r-sm);object-fit:cover;display:block}.m-chat-preview-x{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background:var(--surface-3);color:var(--text);border:1px solid var(--border-2);cursor:pointer;display:grid;place-items:center}.m-chat-preview-x svg{width:10px;height:10px}.m-chat-preview p{margin:0;font-size:12px;color:var(--muted)}.m-chat-input{flex:none;display:flex;align-items:flex-end;gap:8px;padding:12px;background:var(--surface);border-top:1px solid var(--border)}.m-chat-panel.mobile .m-chat-input{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.m-chat-input-btn{width:40px;height:40px;border-radius:var(--r);flex:none;padding:0;background:var(--surface-2);border:1px solid var(--border);color:var(--muted);cursor:pointer;display:grid;place-items:center;transition:border-color .15s,color .15s}.m-chat-input-btn:hover:not(:disabled){color:var(--text);border-color:var(--border-2)}.m-chat-input-btn:disabled{opacity:.5;cursor:not-allowed}.m-chat-input-btn svg{width:16px;height:16px}.m-chat-input-btn.send{background:var(--accent);border-color:var(--accent);color:#0B0B0D}.m-chat-input-btn.send:hover:not(:disabled){background:var(--accent-2);border-color:var(--accent-2)}.m-chat-input-btn.send:disabled{background:var(--surface-3);border-color:var(--border);color:var(--faint);opacity:1}.m-chat-ta{flex:1;min-width:0;resize:none;font:inherit;font-size:14px;line-height:1.45;min-height:40px;max-height:72px;padding:9px 12px;border-radius:var(--r);background:var(--surface-2);border:1px solid var(--border);color:var(--text);outline:none}.m-chat-ta::placeholder{color:var(--faint)}.m-chat-ta:focus{border-color:var(--accent)}.m-chat-sheet-bg{position:absolute;inset:0;z-index:3;background:rgba(0,0,0,.6);display:flex;align-items:flex-end}.m-chat-sheet{width:100%;display:flex;flex-direction:column;gap:12px;padding:20px 16px 16px;background:var(--surface-2);border-top:1px solid var(--border-2);border-radius:var(--r-lg) var(--r-lg) 0 0}.m-chat-panel.desktop .m-chat-sheet{border-radius:var(--r-lg)}.m-chat-panel.mobile .m-chat-sheet{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}.m-chat-sheet-h{display:flex;align-items:center;justify-content:space-between;gap:8px}.m-chat-sheet-h b{font-size:20px;font-weight:600;color:var(--text)}.m-chat-sheet p{margin:0 0 8px;font-size:14px;line-height:1.45;color:var(--muted)}.m-chat-lightbox{position:fixed;inset:0;z-index:260;background:rgba(0,0,0,.92);display:grid;place-items:center;padding:24px;cursor:pointer}.m-chat-lightbox img{max-width:100%;max-height:100%;border-radius:var(--r);object-fit:contain}.m-chat-lightbox-x{position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:50%;background:var(--surface-2);border:1px solid var(--border);color:var(--text);cursor:pointer;display:grid;place-items:center}.m-chat-lightbox-x svg{width:16px;height:16px}.m-chat-loading{display:flex;flex-direction:column;gap:12px;padding:4px}.m-chat-loading .m-skel{height:56px}.m-chat-empty-art{display:flex;justify-content:center;padding:12px 0 4px;flex:none}.m-chat-panel.desktop{transform-origin:100% 100%}.m-chat-gone{display:inline-block;padding:8px 10px;border-radius:var(--r-sm);border:1px dashed var(--border-2);color:var(--muted);font-size:12px;line-height:16px}.m-chat-gone+p{margin-top:8px}