.chat-root{z-index:60;pointer-events:none;flex-direction:column;align-items:flex-end;gap:14px;display:flex;position:fixed;bottom:22px;right:22px}.chat-root>*{pointer-events:auto}.chat-launcher{cursor:pointer;background:var(--grad);color:#050816;border:0;border-radius:50%;justify-content:center;align-items:center;width:58px;height:58px;transition:transform .2s,box-shadow .2s;display:inline-flex;box-shadow:0 14px 34px -10px #1d63f0d9}.chat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 40px -12px #22d3eebf}.chat-launcher:focus-visible,.chat-panel button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}.chat-launcher svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:26px;height:26px}.chat-panel{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius);width:380px;height:min(580px,100dvh - 120px);box-shadow:var(--shadow), 0 0 0 1px #22d3ee0f;flex-direction:column;animation:.18s ease-out chat-in;display:flex;overflow:hidden}@keyframes chat-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.chat-head{background:linear-gradient(180deg, var(--panel), var(--bg-2));border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:14px 14px 14px 16px;display:flex}.chat-head img{width:34px;height:34px}.chat-head div{flex-direction:column;flex:1;min-width:0;line-height:1.25;display:flex}.chat-head strong{font-family:Space Grotesk,Inter,sans-serif;font-size:.98rem}.chat-head span{color:var(--muted);font-size:.8rem}.chat-close{width:34px;height:34px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;display:inline-flex}.chat-close:hover{color:var(--text);background:#ffffff0f}.chat-close svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;width:18px;height:18px}.chat-log{overscroll-behavior:contain;flex-direction:column;flex:1;gap:10px;padding:16px;display:flex;overflow-y:auto}.chat-empty p{color:var(--muted);font-size:.92rem}.chat-suggest{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.chat-suggest button{font:inherit;color:var(--text);cursor:pointer;border:1px solid var(--line);background:#ffffff08;border-radius:999px;padding:8px 12px;font-size:.84rem}.chat-suggest button:hover{background:#22d3ee12;border-color:#22d3ee73}.chat-msg{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:16px;max-width:86%;padding:10px 13px;font-size:.92rem;line-height:1.5}.chat-msg.assistant{background:var(--panel-2);border:1px solid var(--line);border-bottom-left-radius:6px;align-self:flex-start}.chat-msg.user{background:var(--grad);color:#050816;border-bottom-right-radius:6px;align-self:flex-end;font-weight:500}.chat-msg.error{color:var(--amber)}.chat-msg a{color:var(--cyan);text-underline-offset:2px;text-decoration:underline}.chat-msg.typing{gap:5px;padding:14px;display:inline-flex}.chat-msg.typing i{background:var(--muted);border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite chat-dot}.chat-msg.typing i:nth-child(2){animation-delay:.15s}.chat-msg.typing i:nth-child(3){animation-delay:.3s}@keyframes chat-dot{0%,80%,to{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}.chat-form{border-top:1px solid var(--line);align-items:flex-end;gap:8px;padding:12px 12px 6px;display:flex}.chat-form textarea{resize:none;min-height:44px;max-height:120px;font:inherit;color:var(--text);border:1px solid var(--line);background:var(--panel);field-sizing:content;border-radius:14px;outline:none;flex:1;padding:11px 14px;font-size:.92rem}.chat-form textarea::placeholder{color:var(--muted)}.chat-form textarea:focus{border-color:#22d3ee80}.chat-send{cursor:pointer;background:var(--grad);color:#050816;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.chat-send:disabled{opacity:.45;cursor:default}.chat-send svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.chat-fine{color:var(--muted);text-align:center;padding:0 12px 10px;font-size:.72rem}@media (max-width:760px){.chat-root{bottom:12px;left:12px;right:12px}.chat-panel{width:100%;height:min(620px,100dvh - 96px)}}@media (prefers-reduced-motion:reduce){.chat-panel,.chat-msg.typing i{animation:none}.chat-launcher{transition:none}}
