.chat-root{z-index:60;flex-direction:column;align-items:flex-end;gap:12px;display:flex;position:fixed;bottom:16px;right:16px}.chat-bubble{width:60px;height:60px;color:var(--text);cursor:pointer;background:#15152bf0;border:1px solid #a39cff57;border-radius:20px;place-items:center;transition:transform .2s,border-radius .2s;display:grid;position:relative;box-shadow:inset 0 1px #ffffff1f,0 18px 40px #0b092280}.chat-bubble:hover{transform:translateY(-2px)}.chat-bubble.is-open{background:#15152bf0;border-radius:50%}.chat-bubble-dot{border:2px solid var(--ink);background:var(--mint);border-radius:50%;width:11px;height:11px;position:absolute;top:9px;right:9px}.chat-bubble-badge{border:2px solid var(--ink);color:#fff;background:#ff5c7a;border-radius:999px;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:12px;font-weight:700;line-height:1;animation:.35s cubic-bezier(.2,.9,.3,1.4) both chat-badge-in;display:grid;position:absolute;top:-6px;right:-6px;box-shadow:0 4px 12px #ff5c7a73}.chat-bubble.has-nudge:after{content:"";border-radius:inherit;pointer-events:none;border:2px solid #a39cffb3;animation:2.2s ease-out infinite chat-ring;position:absolute;inset:-1px}.chat-nudge{-webkit-backdrop-filter:blur(16px);background:#15152bf5;border:1px solid #a39cff4d;border-radius:18px 18px 6px;align-items:flex-start;width:min(300px,100vw - 96px);animation:.3s both chat-in;display:flex;position:relative;box-shadow:inset 0 1px #ffffff14,0 18px 44px #0605148c}.chat-nudge-body{min-width:0;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:1;gap:11px;padding:14px 8px 14px 14px;display:flex}.chat-nudge-avatar{flex:none;place-items:center;width:34px;height:34px;display:grid}.chat-nudge-avatar .brand-mark{width:34px;height:34px}.chat-nudge-text{gap:3px;display:grid}.chat-nudge-text strong{align-items:center;gap:8px;font-size:14px;display:flex}.chat-nudge-text>span{color:var(--text-2);font-size:13.5px;line-height:1.45}.chat-nudge-online{color:var(--mint);align-items:center;gap:5px;font-size:11.5px;font-weight:600;display:inline-flex}.chat-nudge-online:before{content:"";background:var(--mint);border-radius:50%;width:7px;height:7px}.chat-nudge-close{width:36px;height:36px;color:var(--text-3);cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;place-items:center;margin:4px 4px 0 0;display:grid}.chat-nudge-close:hover{color:var(--text);background:#f2f0ff14}@keyframes chat-badge-in{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes chat-ring{0%{opacity:.9;transform:scale(1)}80%,to{opacity:0;transform:scale(1.35)}}@media (prefers-reduced-motion:reduce){.chat-bubble-badge,.chat-nudge,.chat-msg.is-new,.chat-quick,.chat-typing span,.chat-joined,.chat-joined-dots i,.chat-avatar:before,.chat-live-dot:after{animation:none}.chat-bubble.has-nudge:after{opacity:0;animation:none}}.chat-panel{border:1px solid var(--hair);width:min(400px,100vw - 32px);height:min(640px,100svh - 110px);color:var(--text);box-shadow:var(--sheen), 0 40px 100px #0000008c;-webkit-backdrop-filter:blur(24px)saturate(150%);background:linear-gradient(170deg,#2b2750,#15152b 55%);border-radius:24px;flex-direction:column;animation:.26s cubic-bezier(.2,.8,.2,1) chat-in;display:flex;overflow:hidden}.chat-head{border-bottom:1px solid var(--hair);align-items:flex-start;gap:12px;padding:16px 14px 14px 18px;display:flex}.chat-avatar{background:#a39cff2e;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;display:grid;position:relative;box-shadow:0 0 0 3px #a39cff24}.chat-avatar:before{content:"";border:2px solid #a39cff80;border-radius:50%;animation:2.6s ease-out infinite chat-ring;position:absolute;inset:-4px}.chat-avatar-dot{background:var(--cobalt);border:2px solid #15152b;border-radius:50%;width:12px;height:12px;position:absolute;bottom:0;right:0}.chat-avatar.is-online .chat-avatar-dot{background:var(--mint);box-shadow:0 0 8px var(--mint)}.chat-avatar.is-online:before{border-color:#46d6a58c}.chat-typing{background:#ffffff0f;border-radius:18px 18px 18px 6px;align-self:flex-start;gap:5px;padding:13px 16px;display:inline-flex}.chat-typing span{background:var(--cobalt-hi);border-radius:50%;width:7px;height:7px;animation:1.1s ease-in-out infinite chat-typing}.chat-typing span:nth-child(2){animation-delay:.15s}.chat-typing span:nth-child(3){animation-delay:.3s}.chat-msg.is-new{animation:.28s ease-out both chat-pop}.chat-quick-thread{flex-direction:column;gap:10px;display:flex}.chat-instant{color:var(--text-3);letter-spacing:.02em;margin-top:6px;font-size:11.5px;display:inline-flex}.chat-quick{flex-wrap:wrap;gap:8px;padding-top:4px;animation:.3s ease-out .15s both chat-pop;display:flex}.chat-quick-btn{min-height:38px;color:var(--cobalt-hi);font:inherit;cursor:pointer;background:#a39cff1a;border:1px solid #a39cff66;border-radius:999px;align-items:center;gap:7px;padding:0 13px;font-size:13.5px;font-weight:600;transition:background-color .18s,border-color .18s,color .18s;display:inline-flex}.chat-quick-btn:hover{border-color:var(--cobalt-hi);color:#fff;background:#a39cff38}@keyframes chat-typing{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}@keyframes chat-pop{0%{opacity:0;transform:translateY(6px)scale(.98)}to{opacity:1;transform:none}}.chat-head-text{flex:1;min-width:0}.chat-head h2{font-family:var(--font-head);letter-spacing:-.02em;font-variation-settings:"wdth" 90, "opsz" 32;margin:0;font-size:19px;font-weight:650}.chat-presence{color:var(--text-2);margin:2px 0 0;font-size:13.5px;line-height:1.4}.chat-presence.is-online{color:#9befd0;align-items:center;gap:7px;font-weight:600;display:flex}.chat-live-dot{background:var(--mint);width:8px;height:8px;box-shadow:0 0 10px var(--mint);border-radius:50%;flex:none;position:relative}.chat-live-dot:after{content:"";border:2px solid #46d6a599;border-radius:50%;animation:1.8s ease-out infinite chat-ring;position:absolute;inset:-4px}.chat-dot{background:var(--mint);width:8px;height:8px;box-shadow:0 0 10px var(--mint);vertical-align:1px;border-radius:50%;margin-right:7px;display:inline-block}.chat-log{overscroll-behavior:contain;flex-direction:column;flex:1;gap:10px;padding:18px 16px;display:flex;overflow-y:auto}.chat-msg{border-radius:18px;max-width:84%;padding:10px 14px;font-size:15px;line-height:1.45}.chat-msg p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.chat-msg time,.chat-status{color:var(--text-3);font-variant-numeric:tabular-nums;align-items:center;gap:6px;margin-top:4px;font-size:12px;display:flex}.chat-msg.is-team{background:#ffffff0f;border-bottom-left-radius:6px;align-self:flex-start}.chat-msg.is-me{background:var(--cobalt);color:var(--ink);border-bottom-right-radius:6px;align-self:flex-end}.chat-msg.is-me time,.chat-msg.is-me .chat-status{color:#15152bad;justify-content:flex-end}.chat-msg.is-sending{opacity:.78}.chat-msg.is-failed{color:var(--text);background:#ff7b8f29}.chat-msg.is-failed .chat-status{color:#ffc3cc;flex-wrap:wrap}.chat-inline-btn{color:#ffe1e6;cursor:pointer;background:0 0;border:1px solid #ffc3cc66;border-radius:8px;align-items:center;gap:4px;min-height:32px;padding:0 8px;font-size:12.5px;font-weight:700;display:inline-flex}.chat-msg.has-image{padding:5px 5px 8px}.chat-msg.has-image p,.chat-msg.has-image time,.chat-msg.has-image .chat-status{padding:0 9px}.chat-msg.has-image p{margin-top:7px}.chat-image{background:#0d0c2180;border-radius:14px;display:block;overflow:hidden}.chat-image img{object-fit:cover;width:100%;max-width:260px;max-height:300px;display:block}.chat-tick{color:#15152b8c;display:inline-flex}.chat-tick.is-seen{color:#1d4ed8}.chat-joined{color:#9befd0;background:#46d6a51a;border:1px solid #46d6a552;border-radius:999px;align-self:center;align-items:center;gap:7px;margin:6px 0;padding:6px 13px;font-size:12.5px;font-weight:600;animation:.3s ease-out both chat-pop;display:inline-flex}.chat-joined.is-waiting{color:var(--cobalt-hi);background:#a39cff1a;border-color:#a39cff57}.chat-joined-dots{gap:3px;margin-left:1px;display:inline-flex}.chat-joined-dots i{background:currentColor;border-radius:50%;width:4px;height:4px;animation:1.1s ease-in-out infinite chat-typing}.chat-joined-dots i:nth-child(2){animation-delay:.15s}.chat-joined-dots i:nth-child(3){animation-delay:.3s}.chat-system{max-width:92%;color:var(--text-3);text-align:center;align-self:center;margin:4px 0;font-size:13px}.chat-log .state{background:0 0;padding:8px 0}.chat-connection{color:#f8cf8f;background:#f4b75e1f;margin:0;padding:6px 16px;font-size:13px}.chat-compose{border-top:1px solid var(--hair);background:#0d0c2166;gap:10px;padding:12px 12px 14px;display:grid}.chat-compose-row{align-items:flex-end;gap:8px;display:flex}.chat-attach{border:1px solid var(--hair);width:44px;min-height:48px;color:var(--text-2);cursor:pointer;background:#ffffff0a;border-radius:14px;flex:none;place-items:center;transition:color .18s,border-color .18s,background-color .18s;display:grid}.chat-attach:hover{color:var(--cobalt-hi);background:#a39cff1a;border-color:#a39cff80}.chat-staged{border:1px solid var(--hair);background:#ffffff0a;border-radius:14px;align-items:center;gap:10px;padding:6px 6px 6px 8px;display:flex}.chat-staged img{object-fit:cover;border-radius:10px;flex:none;width:44px;height:44px}.chat-staged span{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text-2);flex:1;font-size:13px;overflow:hidden}.chat-input{resize:none;field-sizing:content;min-height:48px;max-height:140px}.chat-send{flex:none;width:48px;min-height:48px;padding:0}@keyframes chat-in{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:none}}@media (max-width:560px){.chat-root{bottom:12px;right:12px}.chat-panel{background:linear-gradient(170deg,#2b2750,#15152b 55%);border:0;border-radius:0;width:100%;height:100svh;position:fixed;inset:0}.chat-root:has(.chat-panel) .chat-bubble{display:none}}
