.zoner-chat-launcher{
  position:fixed;right:24px;bottom:24px;z-index:1000;
  display:flex;align-items:center;gap:10px;padding:13px 18px;
  border:0;border-radius:999px;background:linear-gradient(135deg,#5E35B1,#4527A0);
  color:#fff;font:600 14px Inter,Arial,sans-serif;box-shadow:0 12px 30px rgba(69,39,160,.32);
  cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;
}
.zoner-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(69,39,160,.4);}
.zoner-chat-launcher svg{width:20px;height:20px;}
.zoner-chat-panel{
  position:fixed;right:24px;bottom:86px;z-index:1001;width:min(380px,calc(100vw - 32px));
  height:min(560px,calc(100dvh - 112px));display:none;flex-direction:column;overflow:hidden;
  border:1px solid #E4E2ED;border-radius:20px;background:#fff;color:#221C35;
  box-shadow:0 22px 65px rgba(35,20,80,.24);font:14px Inter,Arial,sans-serif;
}
.zoner-chat-panel.is-open{display:flex;animation:zoner-chat-in .2s ease-out;}
@keyframes zoner-chat-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.zoner-chat-head{display:flex;align-items:center;gap:11px;padding:15px 16px;background:#5E35B1;color:#fff;}
.zoner-chat-avatar{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:50%;background:#43A047;color:#fff;font-weight:700;}
.zoner-chat-title{flex:1;min-width:0;}
.zoner-chat-title strong{display:block;font-size:14px;}
.zoner-chat-title span{display:block;margin-top:3px;font-size:11px;opacity:.85;}
.zoner-chat-close{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#fff;font-size:23px;cursor:pointer;}
.zoner-chat-close:hover{background:rgba(255,255,255,.15);}
.zoner-chat-messages{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:16px;background:#F7F6FA;}
.zoner-chat-message{max-width:88%;padding:11px 13px;border-radius:15px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;}
.zoner-chat-message.assistant{align-self:flex-start;border:1px solid #E8E5EF;background:#fff;border-bottom-left-radius:5px;}
.zoner-chat-message.user{align-self:flex-end;background:#5E35B1;color:#fff;border-bottom-right-radius:5px;}
.zoner-chat-quick-action{align-self:flex-start;padding:8px 11px;border:0;border-radius:10px;background:#43A047;color:#fff;font:600 12px Inter,Arial,sans-serif;cursor:pointer;}
.zoner-chat-quick-action:hover{background:#388E3C;}
.zoner-chat-results{display:flex;flex-direction:column;gap:7px;align-self:stretch;}
.zoner-chat-result{padding:10px 11px;border:1px solid #E4E2ED;border-radius:12px;background:#fff;color:#221C35;text-decoration:none;}
.zoner-chat-result:hover{border-color:#5E35B1;}
.zoner-chat-result strong,.zoner-chat-result span{display:block;}
.zoner-chat-result strong{font-size:12px;}
.zoner-chat-result span{margin-top:4px;color:#6E6B80;font-size:11px;line-height:1.4;}
.zoner-chat-quick{display:flex;gap:7px;overflow-x:auto;padding:10px 12px;border-top:1px solid #E9E7EF;background:#fff;}
.zoner-chat-quick button{flex:none;padding:7px 10px;border:1px solid #DCD5EE;border-radius:999px;background:#fff;color:#4527A0;font:500 11px Inter,Arial,sans-serif;cursor:pointer;}
.zoner-chat-quick button:hover{background:#F1EDFB;}
.zoner-chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #E9E7EF;background:#fff;}
.zoner-chat-input{flex:1;min-width:0;padding:11px 12px;border:1px solid #DCD9E5;border-radius:12px;color:#221C35;font:13px Inter,Arial,sans-serif;outline:none;}
.zoner-chat-input:focus{border-color:#5E35B1;box-shadow:0 0 0 3px rgba(94,53,177,.12);}
.zoner-chat-send{width:42px;border:0;border-radius:12px;background:#43A047;color:#fff;font-size:18px;cursor:pointer;}
.zoner-chat-send:disabled{opacity:.55;cursor:wait;}
.zoner-chat-status{min-height:0;padding:0 14px;color:#6E6B80;font-size:11px;}
.zoner-chat-status:not(:empty){padding-bottom:8px;}
html[data-theme="dark"] .zoner-chat-panel{border-color:#332D4E;background:#1D1930;color:#F2F1FA;}
html[data-theme="dark"] .zoner-chat-messages{background:#171326;}
html[data-theme="dark"] .zoner-chat-message.assistant,
html[data-theme="dark"] .zoner-chat-result,
html[data-theme="dark"] .zoner-chat-quick,
html[data-theme="dark"] .zoner-chat-form{border-color:#332D4E;background:#1D1930;color:#F2F1FA;}
html[data-theme="dark"] .zoner-chat-result span{color:#A6A2BE;}
html[data-theme="dark"] .zoner-chat-quick-action{color:#fff;}
html[data-theme="dark"] .zoner-chat-input{border-color:#453E5E;background:#171326;color:#F2F1FA;}
@media(max-width:520px){
  .zoner-chat-launcher{right:16px;bottom:16px;}
  .zoner-chat-panel{right:8px;bottom:76px;width:calc(100vw - 16px);height:min(620px,calc(100dvh - 90px));}
}
@media(prefers-reduced-motion:reduce){.zoner-chat-panel.is-open{animation:none}.zoner-chat-launcher{transition:none}}
