.maia-widget{--maia-color:#245c4f;position:fixed;right:22px;bottom:22px;z-index:999999;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1f2937}.maia-launch{width:58px;height:58px;border:0;border-radius:50%;background:var(--maia-color);color:white;font-size:27px;box-shadow:0 4px 18px #0003;cursor:pointer}.maia-panel{position:absolute;right:0;bottom:72px;width:min(360px,calc(100vw - 32px));height: min(510px,calc(100vh - 115px));background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 12px 40px #0003;overflow:hidden;display:flex;flex-direction:column}.maia-panel[hidden]{display:none}.maia-panel header{background:var(--maia-color);color:white;padding:15px 16px;display:flex;justify-content:space-between;align-items:center;font-weight:650}.maia-close{border:0;background:transparent;color:white;font-size:25px;cursor:pointer}.maia-messages{padding:14px;overflow-y:auto;flex:1;background:#f8fafc;display:flex;flex-direction:column;gap:10px}.maia-msg{max-width:88%;padding:10px 12px;border-radius:13px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.maia-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e5e7eb}.maia-msg.user{align-self:flex-end;background:var(--maia-color);color:white}.maia-msg.error{border-color:#fca5a5;color:#991b1b}.maia-form{display:flex;gap:8px;padding:10px;border-top:1px solid #e5e7eb}.maia-form input{min-width:0;flex:1;border:1px solid #d1d5db;border-radius:9px;padding:10px;font:inherit;font-size:14px}.maia-form button{border:0;border-radius:9px;padding:0 13px;background:var(--maia-color);color:#fff;font-weight:600;cursor:pointer}.maia-form button:disabled{opacity:.6}.maia-foot{font-size:10px;color:#6b7280;text-align:center;padding:0 8px 8px;background:#fff}@media(max-width:480px){.maia-widget{right:12px;bottom:12px}.maia-panel{right:0;width:calc(100vw - 24px);height:min(70vh,560px)}}