#supRoot{position:fixed;bottom:24px;right:24px;z-index:900;display:flex;flex-direction:column;align-items:flex-end;gap:12px}.sup-popup{position:relative;width:260px;padding:16px 36px 16px 16px;border-radius:14px;background:var(--bg-elev);border:1px solid var(--border);box-shadow:var(--shadow-lg);font-size:13px;color:var(--text);opacity:0;visibility:hidden;transform:translateY(8px) scale(.96);transform-origin:bottom right;transition:opacity .28s ease,transform .28s ease,visibility 0s linear .28s;pointer-events:none}.sup-popup.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1);pointer-events:auto;transition:opacity .28s ease,transform .28s ease,visibility 0s linear 0s}.sup-popup::after{content:'';position:absolute;bottom:-6px;right:24px;width:12px;height:12px;background:var(--bg-elev);border-right:1px solid var(--border);border-bottom:1px solid var(--border);transform:rotate(45deg)}.sup-popup strong{display:block;margin-bottom:4px;font-weight:600;letter-spacing:-.01em;color:var(--text)}.sup-popup span{color:var(--text-muted);line-height:1.45}.sup-popup-close{position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;border:none;background:var(--surface);color:var(--text-muted);display:grid;place-items:center;cursor:pointer;transition:background .15s,color .15s}.sup-popup-close:hover{background:var(--border-strong);color:var(--text)}.sup-popup-close svg{width:11px;height:11px}.sup-toggle{width:56px;height:56px;border:none;border-radius:50%;background:var(--accent);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 12px 32px -8px color-mix(in srgb,var(--accent) 50%,transparent);transition:transform .15s ease,box-shadow .15s ease;animation:supFloat 3s ease-in-out infinite}[data-theme=dark] .sup-toggle{color:#0b0d10}.sup-toggle:hover{transform:translateY(-2px);box-shadow:0 16px 36px -8px color-mix(in srgb,var(--accent) 60%,transparent)}.sup-toggle svg{width:24px;height:24px}.sup-toggle .sup-icon-close{display:none}.sup-toggle.is-open{animation:none}.sup-toggle.is-open .sup-icon-chat{display:none}.sup-toggle.is-open .sup-icon-close{display:block}@keyframes supFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}@media (prefers-reduced-motion:reduce){.sup-toggle{animation:none}}#supPanel{position:absolute;bottom:72px;right:0;width:380px;max-height:560px;background:var(--bg-elev);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;overflow:hidden;transform-origin:bottom right;animation:supPanelIn .22s ease-out}#supPanel[hidden]{display:none}@keyframes supPanelIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.sup-header{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--bg-elev)}.sup-avatar{width:36px;height:36px;border-radius:50%;flex-shrink:0;background:var(--accent-soft);color:var(--accent-text);font-family:'Instrument Serif',serif;font-style:italic;font-size:18px;display:grid;place-items:center}.sup-title{font-weight:600;font-size:14px;color:var(--text);letter-spacing:-.01em}.sup-sub{font-size:12px;color:var(--text-soft);margin-top:1px;display:flex;align-items:center;gap:6px}.sup-sub::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent)}#supClose{margin-left:auto;width:30px;height:30px;border:none;background:0 0;cursor:pointer;color:var(--text-muted);border-radius:8px;display:grid;place-items:center;transition:background .15s,color .15s}#supClose:hover{background:var(--surface);color:var(--text)}.sup-messages{flex:1;overflow-y:auto;padding:18px 16px;display:flex;flex-direction:column;gap:10px;min-height:240px;max-height:380px;background:var(--bg);overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}.sup-messages::-webkit-scrollbar{width:6px}.sup-messages::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:3px}.sup-messages::-webkit-scrollbar-track{background:0 0}.sup-msg{max-width:85%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}.sup-bot{align-self:flex-start;background:var(--bubble-bot);color:var(--bubble-bot-text);border:1px solid var(--border);border-bottom-left-radius:4px}.sup-user{align-self:flex-end;background:var(--bubble-user);color:var(--bubble-user-text);border-bottom-right-radius:4px}.sup-bot a{color:var(--accent-text);text-decoration:none;border-bottom:1px solid var(--accent-soft)}.sup-bot a:hover{border-bottom-color:var(--accent)}.sup-typing{display:inline-flex;align-items:center;gap:4px;padding:12px 14px}.sup-typing span{width:6px;height:6px;border-radius:50%;background:var(--text-soft);animation:supBounce 1.2s infinite}.sup-typing span:nth-child(2){animation-delay:.15s}.sup-typing span:nth-child(3){animation-delay:.3s}@keyframes supBounce{0%,100%,60%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}.sup-bot strong{font-weight:600;color:var(--text)}.sup-h{display:block;margin:2px 0;font-weight:600}.sup-bot ol,.sup-bot ul{margin:6px 0;padding-left:20px}.sup-bot li{margin:3px 0}.sup-bot li::marker{color:var(--accent)}.sup-bot code{background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:1px 5px;font-family:'JetBrains Mono',monospace;font-size:12.5px}.sup-chips{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start;max-width:100%}.sup-chip{border:1px solid var(--border);background:var(--bg-elev);color:var(--text-muted);font-size:13px;font-family:inherit;padding:7px 13px;border-radius:100px;cursor:pointer;transition:border-color .15s,color .15s,background .15s}.sup-chip:hover{border-color:var(--border-strong);color:var(--text);background:var(--surface)}.sup-rate{display:flex;gap:4px;align-self:flex-start;margin-top:-4px}.sup-rate button{border:none;background:0 0;cursor:pointer;color:var(--text-soft);font-size:13px;padding:4px 6px;border-radius:6px;transition:color .15s,background .15s}.sup-rate button:hover{color:var(--accent-text);background:var(--accent-soft)}.sup-rate.is-rated button{cursor:default;opacity:.45}.sup-rate.is-rated button:hover{background:0 0;color:var(--text-soft)}.sup-rate button.is-active,.sup-rate.is-rated button.is-active{color:var(--accent-text);opacity:1}.sup-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border);background:var(--bg-elev)}.sup-input input{flex:1;border:1px solid var(--border-strong);border-radius:100px;padding:10px 16px;font-size:14px;font-family:inherit;background:var(--bg);color:var(--text);outline:0;transition:border-color .15s}.sup-input input:focus{border-color:var(--accent)}.sup-input input::placeholder{color:var(--text-soft)}#supSend{width:38px;height:38px;border:none;border-radius:50%;background:var(--accent);color:var(--bg);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s;flex-shrink:0}#supSend:hover{background:color-mix(in srgb,var(--text) 88%,var(--accent))}#supSend:disabled{opacity:.4;cursor:default}#supSend svg{width:14px;height:14px}.sup-footer{text-align:center;font-size:12px;color:var(--text-soft);padding:10px 12px 12px;background:var(--bg-elev);border-top:1px solid var(--border)}.sup-footer a{color:var(--accent-text);text-decoration:none}.sup-footer a:hover{text-decoration:underline}@media (max-width:480px){#supRoot{bottom:16px;right:16px;left:auto;align-items:flex-end}#supPanel{position:fixed;inset:auto 12px 84px auto;width:auto}.sup-popup{width:auto;max-width:280px;align-self:flex-end}}