#cfx-chat{position:fixed;right:18px;bottom:18px;z-index:900;font-family:var(--fb,system-ui,sans-serif)}
#cfx-chat .cb-fab{width:58px;height:58px;border-radius:50%;border:0;cursor:pointer;color:#fff;background:linear-gradient(120deg,var(--g,#E04D1C),var(--g2,#F27A28));box-shadow:0 10px 28px -8px rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;transition:transform .2s}
#cfx-chat .cb-fab:hover{transform:translateY(-2px) scale(1.04)}
#cfx-chat .cb-fab svg{width:26px;height:26px}
#cfx-chat .cb-panel{position:absolute;right:0;bottom:70px;width:370px;max-width:calc(100vw - 28px);height:min(540px,calc(100vh - 110px));display:none;flex-direction:column;background:var(--card,#11141C);color:var(--tx,#EEF1F6);border:1px solid var(--bd,rgba(255,255,255,.12));border-radius:18px;box-shadow:0 24px 60px -18px rgba(0,0,0,.8);overflow:hidden}
#cfx-chat.open .cb-panel{display:flex}
#cfx-chat .cb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:linear-gradient(120deg,var(--g,#E04D1C),var(--g2,#F27A28));color:#fff}
#cfx-chat .cb-head b{font-size:1rem;display:block;line-height:1.2}#cfx-chat .cb-head small{opacity:.9;font-size:.78rem}
#cfx-chat .cb-x{background:rgba(255,255,255,.18);border:0;color:#fff;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:18px;line-height:1}
#cfx-chat .cb-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
#cfx-chat .cb-m{max-width:88%;padding:10px 13px;border-radius:14px;font-size:.92rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#cfx-chat .cb-b{align-self:flex-start;background:var(--card2,#171B26);border:1px solid var(--bd,rgba(255,255,255,.1));border-bottom-left-radius:4px}
#cfx-chat .cb-u{align-self:flex-end;background:var(--g,#E04D1C);color:#fff;border-bottom-right-radius:4px}
#cfx-chat .cb-row{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start;max-width:94%}
#cfx-chat .cb-chip,#cfx-chat .cb-link{font:inherit;font-size:.82rem;padding:6px 11px;border-radius:999px;border:1px solid var(--c,#FF8A4C);background:transparent;color:var(--c,#FF8A4C);cursor:pointer;text-decoration:none}
#cfx-chat .cb-chip:hover,#cfx-chat .cb-link:hover{background:rgba(255,138,76,.14)}
#cfx-chat .cb-ticket{border-color:var(--ok,#34D399);color:var(--ok,#34D399)}
#cfx-chat .cb-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--bd,rgba(255,255,255,.1));background:var(--bg2,#0E1118)}
#cfx-chat .cb-in{flex:1;min-width:0;font:inherit;font-size:.95rem;padding:10px 12px;border-radius:12px;border:1px solid var(--bd,rgba(255,255,255,.14));background:var(--bg3,#151A24);color:var(--tx,#EEF1F6)}
#cfx-chat .cb-send{border:0;border-radius:12px;padding:0 16px;font:inherit;font-weight:600;color:#fff;background:var(--g,#E04D1C);cursor:pointer}
#cfx-chat .cb-send:disabled{opacity:.5}
#cfx-chat .cb-note{font-size:.7rem;color:var(--mu,#9BA3B1);text-align:center;padding:0 10px 8px;background:var(--bg2,#0E1118)}
@media (max-width:520px){#cfx-chat{right:12px;bottom:12px}#cfx-chat .cb-panel{position:fixed;right:8px;left:8px;bottom:80px;width:auto;max-width:none;height:calc(100vh - 100px)}}
@media (prefers-reduced-motion:reduce){#cfx-chat *{transition:none!important;scroll-behavior:auto!important}}
