.kfa{--kfa-ink:#212121;--kfa-bg:#ffffff;--kfa-muted:#5c5c5c;--kfa-line:rgba(33, 33, 33, 0.14);--kfa-bubble:#f4f4f4;--kfa-accent:#212121;--kfa-on-accent:#fafafa;position:fixed;right:1.25rem;bottom:1.25rem;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;gap:.75rem;font-size:15px;line-height:1.55}body.colorscheme-dark .kfa{--kfa-ink:#ebebeb;--kfa-bg:#232323;--kfa-muted:#a8a8a8;--kfa-line:rgba(235, 235, 235, 0.16);--kfa-bubble:#2e2e2e;--kfa-accent:#ebebeb;--kfa-on-accent:#212121}@media(prefers-color-scheme:dark){body.colorscheme-auto .kfa{--kfa-ink:#ebebeb;--kfa-bg:#232323;--kfa-muted:#a8a8a8;--kfa-line:rgba(235, 235, 235, 0.16);--kfa-bubble:#2e2e2e;--kfa-accent:#ebebeb;--kfa-on-accent:#212121}}.kfa__toggle{display:inline-flex;align-items:center;gap:.6rem;padding:.4rem 1rem .4rem .4rem;border:1px solid var(--kfa-line);border-radius:999px;background:var(--kfa-bg);color:var(--kfa-ink);font:inherit;font-weight:500;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.16)}.kfa__toggle:hover{border-color:var(--kfa-ink)}.kfa__toggle-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}.kfa.wants-attention .kfa__toggle{animation:kfa-pulse 1.4s ease-in-out 3}@keyframes kfa-pulse{0%,100%{transform:translateY(0);box-shadow:0 6px 20px rgba(0,0,0,.16)}50%{transform:translateY(-5px);box-shadow:0 14px 28px rgba(0,0,0,.24)}}@media(prefers-reduced-motion:reduce){.kfa.wants-attention .kfa__toggle,.kfa__dots i{animation:none}}.kfa__panel[hidden]{display:none}.kfa__panel{display:flex;flex-direction:column;width:min(380px,calc(100vw - 2.5rem));height:min(560px,calc(100vh - 7rem));border:1px solid var(--kfa-line);border-radius:14px;background:var(--kfa-bg);color:var(--kfa-ink);box-shadow:0 18px 48px rgba(0,0,0,.22);overflow:hidden}.kfa.is-expanded .kfa__panel{width:min(680px,calc(100vw - 2.5rem));height:min(80vh,calc(100vh - 7rem))}.kfa__header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.7rem .8rem;border-bottom:1px solid var(--kfa-line)}.kfa__identity{display:flex;align-items:center;gap:.6rem;min-width:0}.kfa__header-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none}.kfa__titles{min-width:0}.kfa__title{margin:0;font-size:15px;font-weight:600}.kfa__subtitle{margin:0;font-size:12.5px;color:var(--kfa-muted)}.kfa__actions{display:flex;gap:.15rem;flex:none}.kfa__action{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:0 0;color:var(--kfa-muted);cursor:pointer}.kfa__action:hover{background:var(--kfa-bubble);color:var(--kfa-ink)}.kfa__log{flex:1;overflow-y:auto;padding:.9rem .8rem;display:flex;flex-direction:column;gap:.7rem}.kfa__message{display:flex;gap:.5rem;align-items:flex-start}.kfa__message--user{justify-content:flex-end}.kfa__avatar{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:none;margin-top:.15rem}.kfa__bubble{max-width:84%;padding:.55rem .75rem;border-radius:12px;background:var(--kfa-bubble)}.kfa__message--user .kfa__bubble{background:var(--kfa-accent);color:var(--kfa-on-accent)}.kfa__message--error .kfa__bubble{border:1px solid var(--kfa-line);background:0 0}.kfa__who{display:block;font-size:11.5px;font-weight:600;opacity:.7;margin-bottom:.15rem}.kfa__text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.kfa__link{color:inherit;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.kfa__link:hover{text-decoration-thickness:2px}.kfa__dots{display:inline-flex;gap:4px;padding:.25rem 0}.kfa__dots i{width:6px;height:6px;border-radius:50%;background:var(--kfa-muted);animation:kfa-blink 1.2s infinite ease-in-out}.kfa__dots i:nth-child(2){animation-delay:.2s}.kfa__dots i:nth-child(3){animation-delay:.4s}@keyframes kfa-blink{0%,80%,100%{opacity:.25}40%{opacity:1}}.kfa__form{display:flex;align-items:flex-end;gap:.5rem;padding:.6rem .8rem .35rem;border-top:1px solid var(--kfa-line)}.kfa__input{flex:1;resize:none;max-height:120px;padding:.5rem .65rem;border:1px solid var(--kfa-line);border-radius:10px;background:0 0;color:var(--kfa-ink);font:inherit;line-height:1.45}.kfa__input:focus{outline:none;border-color:var(--kfa-ink)}.kfa__send{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border:0;border-radius:10px;background:var(--kfa-accent);color:var(--kfa-on-accent);cursor:pointer}.kfa__send:disabled{opacity:.45;cursor:default}.kfa__note{margin:0;padding:0 .85rem .7rem;font-size:11.5px;line-height:1.45;color:var(--kfa-muted)}.kfa__visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:480px){.kfa{right:.75rem;bottom:.75rem;left:.75rem;align-items:stretch}.kfa__toggle{align-self:flex-end}.kfa__panel,.kfa.is-expanded .kfa__panel{width:100%;height:min(70vh,calc(100vh - 6rem))}}