.kuchat{--kuchat-c:#6a3d9a;position:fixed;right:20px;bottom:20px;z-index:99990;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.45;color:#1f1f1f}.kuchat *{box-sizing:border-box}.kuchat-btn{display:flex;align-items:center;gap:8px;margin-left:auto;padding:12px 18px 12px 14px;border:0;border-radius:999px;background:var(--kuchat-c);color:#fff;font-family:inherit;font-size:15px;font-weight:600;line-height:1;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.22);transition:transform .15s}.kuchat-btn:hover{transform:translateY(-2px)}.kuchat-btn:focus-visible,.kuchat button:focus-visible,.kuchat textarea:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}.kuchat-open .kuchat-btn{display:none}.kuchat-panel{display:flex;flex-direction:column;width:370px;height:min(580px,calc(100vh - 40px));background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.25)}.kuchat-panel[hidden]{display:none}.kuchat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:var(--kuchat-c);color:#fff}.kuchat-head strong{display:block;font-size:16px}.kuchat-head small{display:block;opacity:.85;font-size:12px;margin-top:2px}.kuchat-close{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:24px;line-height:1;cursor:pointer}.kuchat-log{flex:1;overflow-y:auto;padding:16px;background:#f6f4fa;display:flex;flex-direction:column;gap:10px}.kuchat-msg{max-width:85%;padding:10px 13px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere}.kuchat-bot{align-self:flex-start;background:#fff;border:1px solid #e6e1ef;border-bottom-left-radius:4px}.kuchat-user{align-self:flex-end;background:var(--kuchat-c);color:#fff;border-bottom-right-radius:4px}.kuchat-msg a{color:var(--kuchat-c);font-weight:600}.kuchat-user a{color:#fff}.kuchat-err{border-color:#e5a5a5;background:#fff5f5}.kuchat-typing{display:flex;gap:4px;padding:14px}.kuchat-typing span{width:7px;height:7px;border-radius:50%;background:#9a90ad;animation:kuchat-b 1s infinite ease-in-out}.kuchat-typing span:nth-child(2){animation-delay:.15s}.kuchat-typing span:nth-child(3){animation-delay:.3s}@keyframes kuchat-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}.kuchat-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #ece8f2;background:#fff}.kuchat-form textarea{flex:1;resize:none;min-height:42px;max-height:120px;padding:10px 12px;border:1px solid #d8d2e3;border-radius:12px;font:inherit;color:inherit;background:#fff}.kuchat-form button{flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--kuchat-c);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}.kuchat-form button:disabled{opacity:.5;cursor:default}.kuchat-foot{padding:6px 12px 10px;font-size:12px;color:#666;text-align:center;background:#fff}.kuchat-foot a{color:#555}.kuchat-reset{border:0;background:0 0;padding:0;font:inherit;color:#555;text-decoration:underline;cursor:pointer}@media (max-width:700px){.kuchat{right:12px;bottom:12px}.kuchat.kuchat-left-mobile{right:auto;left:12px}.kuchat-btn-label{display:none}.kuchat-btn{padding:14px}.kuchat-open{left:0;right:0;top:0;bottom:0}.kuchat-open .kuchat-panel{width:100%;height:100%;border-radius:0}.kuchat-form textarea{font-size:16px}}@media (prefers-reduced-motion:reduce){.kuchat-btn,.kuchat-typing span{transition:none;animation:none}}