.ziply-chat-launch{position:fixed;right:24px;bottom:24px;z-index:90;width:62px;height:62px;border:0;border-radius:21px;background:linear-gradient(135deg,#7357ff,#28cbe3);color:#fff;box-shadow:0 18px 50px #4a3ecb55;cursor:pointer;font-size:25px;transition:.25s}.ziply-chat-launch:hover{transform:translateY(-3px) rotate(-3deg)}
.ziply-chat-panel{position:fixed;right:24px;bottom:98px;z-index:91;width:min(420px,calc(100vw - 32px));height:min(650px,calc(100vh - 130px));display:none;grid-template-rows:auto 1fr auto auto;background:rgba(255,255,255,.96);backdrop-filter:blur(22px);border:1px solid #e4e5ef;border-radius:24px;box-shadow:0 28px 90px #151b3040;overflow:hidden}.ziply-chat-panel.open{display:grid;animation:chat-in .25s ease-out}
.ziply-chat-head{padding:20px;background:linear-gradient(135deg,#181d31,#4d37c7);color:#fff;display:flex;align-items:center;gap:12px}.ziply-chat-head img{width:38px;height:38px}.ziply-chat-head div{flex:1}.ziply-chat-head b,.ziply-chat-head span{display:block}.ziply-chat-head span{font-size:12px;color:#cbd2e5;margin-top:3px}.ziply-chat-head span i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#54e39a;box-shadow:0 0 0 4px #54e39a22}.ziply-chat-close{border:0;background:#ffffff18;color:#fff;width:32px;height:32px;border-radius:10px;cursor:pointer}
.ziply-chat-messages{padding:18px;overflow:auto;background:linear-gradient(#f8f8fc,#fff)}.ziply-chat-message{max-width:84%;margin:0 0 12px;padding:12px 14px;border-radius:16px;font-size:14px;line-height:1.45;background:#fff;border:1px solid #e6e7ef}.ziply-chat-message.user{margin-left:auto;background:#6650e8;color:#fff;border:0}.ziply-chat-message.error{color:#b42318;background:#fff1f0}.ziply-chat-message.assistant.llm{border-color:#cfc8ff;background:linear-gradient(145deg,#fff,#f7f4ff)}.ziply-chat-message.typing{display:flex;align-items:center;gap:5px;width:58px}.ziply-chat-message.typing i{width:7px;height:7px;border-radius:50%;background:#7a68e8;animation:ziply-chat-dot 1s infinite ease-in-out}.ziply-chat-message.typing i:nth-child(2){animation-delay:.15s}.ziply-chat-message.typing i:nth-child(3){animation-delay:.3s}
.ziply-chat-suggestions{display:flex;gap:7px;overflow:auto;margin-bottom:12px}.ziply-chat-suggestions button{white-space:nowrap;border:1px solid #dddfea;background:#fff;border-radius:999px;padding:7px 10px;font-size:12px;cursor:pointer}.ziply-chat-form{padding:14px;display:flex;gap:8px;border-top:1px solid #e8e9f0;background:#fff}.ziply-chat-form input{min-width:0;flex:1;border:1px solid #d9dbe6;border-radius:13px;padding:12px;font:inherit}.ziply-chat-form button{border:0;border-radius:13px;padding:0 16px;background:#6650e8;color:#fff;font-weight:800;cursor:pointer}.ziply-chat-panel>footer{padding:7px 14px 11px;background:#fff;color:#7b8191;font-size:10px;text-align:center}
@keyframes chat-in{from{opacity:0;transform:translateY(15px) scale(.97)}}@keyframes ziply-chat-dot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media(max-width:560px){.ziply-chat-launch{right:16px;bottom:16px}.ziply-chat-panel{right:16px;bottom:90px;height:calc(100vh - 115px)}}
