/* Shared visual language with the homepage AI assistant. */
.k2chat-panel{width:min(500px,calc(100vw - 24px))}
.k2chat-inputrow{align-items:center;gap:12px}
.k2chat-inputrow textarea{min-height:84px}
.k2chat-mic{position:relative;display:grid;place-items:center;flex:0 0 62px;width:62px;height:62px;padding:0;border:3px solid #fff;border-radius:50%;background:#00b140;color:#fff;box-shadow:0 0 0 4px #087a34,0 8px 22px rgba(0,177,64,.35);transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.k2chat-mic:hover{transform:scale(1.06);background:#00c853}
.k2chat-mic-icon{display:grid;place-items:center;width:35px;height:35px}
.k2chat-mic-icon>*{grid-area:1/1}
.k2chat-mic svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.k2chat-stop-svg,.k2chat-processing-dot{display:none}
.k2chat-mic.is-listening{background:#e10600;box-shadow:0 0 0 4px #a80703,0 0 0 10px rgba(225,6,0,.18),0 9px 26px rgba(225,6,0,.42)}
.k2chat-mic.is-listening .k2chat-mic-svg{display:none}
.k2chat-mic.is-listening .k2chat-stop-svg{display:block;fill:#fff;stroke:none}
.k2chat-mic.is-processing{background:#f5b400;color:#2b2108;box-shadow:0 0 0 4px #a97900,0 9px 24px rgba(245,180,0,.4)}
.k2chat-mic.is-processing .k2chat-mic-svg,.k2chat-mic.is-processing .k2chat-stop-svg{display:none}
.k2chat-mic.is-processing .k2chat-processing-dot{display:block;width:21px;height:21px;border:4px solid rgba(43,33,8,.24);border-top-color:#2b2108;border-radius:50%;animation:k2chat-spin .7s linear infinite}
.k2chat-messages .bot.k2chat-thinking::after{content:' …';display:inline-block;min-width:22px;color:#7b336f;font-weight:900;animation:k2chat-thinking 1s steps(4,end) infinite;overflow:hidden;vertical-align:bottom}
@keyframes k2chat-spin{to{transform:rotate(360deg)}}
@keyframes k2chat-thinking{0%{width:0}100%{width:22px}}
@media(max-width:900px){.k2chat-panel{width:auto}}
@media(prefers-reduced-motion:reduce){.k2chat-processing-dot,.k2chat-messages .bot.k2chat-thinking::after{animation:none}}
