.kage{--kg-bg:#15111e;--kg-panel:#1d1728;--kg-line:#3b2e4c;--kg-text:#f5f1fa;--kg-muted:#b7a8c8;--kg-accent:#c8a2f3;--kg-user:#634294;position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:1200;font-family:inherit;font-size:14px;color:var(--kg-text);line-height:1.5;text-align:left}.kage *{box-sizing:border-box}.kage button,.kage textarea{font:inherit}.kage button{cursor:pointer}.kage button:focus-visible,.kage a:focus-visible,.kage textarea:focus-visible{outline:2px solid var(--kg-accent);outline-offset:4px}.kage [hidden]{display:none!important}.kage__launcher{position:relative;display:flex;align-items:center;gap:8px;border:0;background:none;padding:0;color:var(--kg-text);min-height:76px;filter:drop-shadow(0 8px 18px #14082180)}.kage__launcher img{width:76px;height:76px;object-fit:contain;transition:transform .2s;filter:drop-shadow(0 0 12px #aa69e950)}.kage__launcher:hover img{transform:translateY(-4px)}.kage__launcher-label{padding:9px 14px;background:#21182eea;border:1px solid #6b478b;border-radius:12px;color:#f1e5ff;font-size:12px;font-weight:600}.kage__online{position:absolute;right:9px;bottom:8px;width:9px;height:9px;border:2px solid #291735;border-radius:50%;background:#85d6a2}.kage__panel{position:absolute;right:0;bottom:94px;width:400px;max-width:calc(100vw - 32px);height:610px;max-height:calc(100dvh - 135px);display:flex;flex-direction:column;background:var(--kg-bg);border:1px solid var(--kg-line);border-radius:22px;box-shadow:0 24px 80px #08030c65;overflow:hidden;animation:kage-open .18s ease-out}.kage__header{display:flex;align-items:center;gap:11px;padding:16px 17px;border-bottom:1px solid var(--kg-line);background:linear-gradient(110deg,#4b2b6940,transparent);flex:none}.kage__header img{width:48px;height:48px;object-fit:contain}.kage__header>div{flex:1;min-width:0}.kage h2{font-family:inherit;font-weight:700;font-size:20px;line-height:1.2;letter-spacing:-.03em;margin:0 0 4px;color:var(--kg-text)}.kage__header p{font-size:10px;color:var(--kg-muted);margin:0}.kage__header p span{display:block;margin-top:2px;color:var(--kg-accent);font-size:9px;font-weight:600;letter-spacing:.03em}.kage__icon-button{display:grid;place-items:center;width:32px;height:32px;border:1px solid transparent;background:none;color:var(--kg-muted);border-radius:9px;padding:0}.kage__icon-button:hover{border-color:var(--kg-line);background:var(--kg-panel);color:var(--kg-text)}.kage .ui-icon{width:16px;height:16px;fill:currentColor;stroke:none}.kage__scope{display:flex;align-items:center;gap:7px;padding:10px 18px;border-bottom:1px solid var(--kg-line);font-size:10px;color:var(--kg-muted);flex:none}.kage__scope-dot{width:5px;height:5px;border-radius:50%;background:var(--kg-accent);flex:none}.kage__scope-note{margin-left:auto;font-size:9px;white-space:nowrap}.kage__scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:20px 17px;scrollbar-width:thin;scrollbar-color:var(--kg-line) transparent}.kage__welcome{text-align:center;padding:1px 4px 12px}.kage__welcome>img{width:100px;height:100px;object-fit:contain;margin:0 auto 8px;filter:drop-shadow(0 8px 16px #7331ae22)}.kage__eyebrow{font-size:8px!important;letter-spacing:.12em;color:var(--kg-accent)!important;margin:3px 0 10px!important}.kage h3{font-family:inherit;font-weight:600;font-size:22px;letter-spacing:-.035em;color:var(--kg-text);line-height:1.2;margin:0 0 13px}.kage__welcome p{font-size:12px;line-height:1.65;color:var(--kg-muted);margin:0 auto 20px;max-width:280px}.kage__suggestions{display:grid;grid-template-columns:1fr 1fr;gap:8px;text-align:left}.kage__suggestions button{border:1px solid var(--kg-line);border-radius:12px;color:var(--kg-text);background:var(--kg-panel);min-height:45px;text-align:left;padding:11px 12px;font-size:11px;line-height:1.4}.kage__suggestions button:hover{border-color:#9b6ac2;color:var(--kg-accent)}.kage__message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 18px;animation:kage-open .15s ease-out}.kage__message-label{font-size:9px;font-weight:600;color:var(--kg-muted);margin:0 0 6px 3px}.kage__bubble{padding:13px 15px;background:var(--kg-panel);border:1px solid var(--kg-line);border-radius:3px 16px 16px 16px;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;color:var(--kg-text)}.kage__message--user{align-items:flex-end;margin-left:25px}.kage__message--user .kage__bubble{background:var(--kg-user);border-color:transparent;border-radius:16px 3px 16px 16px;color:white}.kage__links{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.kage__links a{display:inline-flex;align-items:center;gap:6px;font-size:10px;padding:8px 10px;border:1px solid var(--kg-line);color:var(--kg-accent);background:var(--kg-panel);border-radius:8px;text-decoration:none;line-height:1.4}.kage__links .ui-icon{width:11px;height:11px}.kage__links a:hover{border-color:var(--kg-accent)}.kage__answer-note{font-size:9px;line-height:1.5;color:var(--kg-muted);margin-top:8px}.kage__thinking{display:flex;gap:5px;padding:8px 4px}.kage__thinking>span:not(.kage__visually-hidden){width:5px;height:5px;background:var(--kg-accent);border-radius:50%;animation:kage-dot 1s infinite alternate}.kage__thinking>span:nth-child(2){animation-delay:.2s}.kage__thinking>span:nth-child(3){animation-delay:.4s}.kage__status{padding:0 18px;margin:0;font-size:10px;color:var(--kg-muted);line-height:1.5}.kage__status:not(:empty){padding-top:8px;padding-bottom:7px}.kage__status.is-error{color:#f4b0bb}.kage__composer{display:flex;gap:9px;padding:12px 14px 8px;margin:0;border-top:1px solid var(--kg-line);background:var(--kg-bg);flex:none;align-items:flex-end}.kage__composer textarea{width:100%;min-width:0;resize:none;height:43px;max-height:105px;padding:11px 13px;border:1px solid var(--kg-line);border-radius:12px;background:var(--kg-panel);color:var(--kg-text);font-size:12px;line-height:1.6;margin:0}.kage__composer textarea::placeholder{color:var(--kg-muted)}.kage__send{display:grid;place-items:center;height:43px;width:43px;border:0;border-radius:12px;background:var(--kg-accent);color:#22112e;flex:none;padding:0}.kage__send .ui-icon{width:19px;height:19px}.kage__send:disabled{opacity:.5;cursor:wait}.kage__footer{display:flex;justify-content:space-between;gap:10px;padding:2px 15px 12px;color:var(--kg-muted);font-size:8px;flex:none;line-height:1.5}.kage__footer a{color:var(--kg-accent);text-decoration:underline;white-space:nowrap}.kage__visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap;border:0}html[data-theme=light] .kage{--kg-bg:#faf9fd;--kg-panel:#f0edf6;--kg-line:#e1d9ec;--kg-text:#21162f;--kg-muted:#796c89;--kg-accent:#7041b3;--kg-user:#7041b3}html[data-theme=light] .kage__send{color:#fff}@keyframes kage-open{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes kage-dot{from{opacity:.25}to{opacity:1}}@media(max-width:600px){.kage{right:max(13px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}.kage__launcher img{width:64px;height:64px}.kage__launcher{min-height:64px}.kage__launcher-label{font-size:11px;padding:8px 12px}.kage__panel{bottom:80px;width:calc(100vw - 26px);max-width:none;height:610px;max-height:calc(100dvh - 110px);border-radius:18px}.kage__header{padding:12px 14px}.kage__header p{font-size:9px}.kage__scroll{padding:16px 13px}.kage__footer{font-size:7px}.kage__scope{padding:9px 14px}.kage__composer textarea{font-size:16px;padding:8px 12px}.kage__welcome p{font-size:12px}.kage__suggestions button{font-size:11px}.kage__bubble{font-size:12px}.kage__header img{width:42px;height:42px}.kage__scope-note{display:none}}@media(prefers-reduced-motion:reduce){.kage__panel,.kage__message,.kage__thinking>span,.kage__launcher img{animation:none;transition:none}}
