/* GENMAHI AI assistant widget */
.gm-chat-launcher{position:fixed;right:22px;bottom:84px;z-index:2147483000;display:flex;align-items:center;gap:10px;padding:14px 20px 14px 16px;border:0;border-radius:999px;cursor:pointer;background:hsl(var(--accent));color:hsl(var(--primary));font:600 14px/1 var(--font-heading,system-ui);box-shadow:0 12px 32px -8px rgba(0,0,0,.45);transition:transform .2s,box-shadow .2s}
.gm-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 16px 36px -8px rgba(0,0,0,.5)}
.gm-chat-launcher svg{width:22px;height:22px}
.gm-chat-launcher .gm-dot{width:8px;height:8px;border-radius:50%;background:#1fb86a;box-shadow:0 0 0 3px rgba(31,184,106,.25)}
.gm-chat-panel{position:fixed;right:22px;bottom:84px;z-index:2147483001;width:min(400px,calc(100vw - 24px));height:min(620px,calc(100vh - 108px));display:flex;flex-direction:column;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 28px 70px -12px rgba(5,15,30,.55);border:1px solid rgba(0,0,0,.06);transform-origin:bottom right;animation:gmIn .22s ease-out}
.gm-chat-panel[hidden]{display:none}
@keyframes gmIn{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
.gm-chat-head{display:flex;align-items:center;gap:12px;padding:16px 18px;background:hsl(var(--primary));color:#fff;border-bottom:2px solid hsl(var(--accent))}
.gm-chat-avatar{width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.08);display:grid;place-items:center;flex-shrink:0}
.gm-chat-avatar img{width:30px;height:auto}
.gm-chat-title{font:700 15px/1.2 var(--font-heading,system-ui)}
.gm-chat-sub{font-size:12px;color:rgba(255,255,255,.6);margin-top:3px}
.gm-chat-close{margin-left:auto;background:none;border:0;color:rgba(255,255,255,.75);cursor:pointer;padding:6px;border-radius:8px}
.gm-chat-close:hover{color:hsl(var(--accent));background:rgba(255,255,255,.06)}
.gm-chat-body{flex:1;overflow-y:auto;padding:18px 16px;background:#f6f7f9;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.gm-msg{max-width:88%;padding:11px 14px;border-radius:14px;font-size:14px;line-height:1.55;word-wrap:break-word}
.gm-msg p{margin:0 0 .5em}.gm-msg p:last-child{margin:0}
.gm-msg ul,.gm-msg ol{margin:.3em 0 .6em;padding-left:1.2em}.gm-msg ul{list-style:disc}.gm-msg ol{list-style:decimal}
.gm-msg li{margin:.2em 0}
.gm-msg a{color:hsl(216 60% 30%);text-decoration:underline;text-decoration-color:hsl(var(--accent));text-underline-offset:2px;font-weight:600}
.gm-msg-bot{align-self:flex-start;background:#fff;color:#1a2230;border:1px solid #e6e8ec;border-bottom-left-radius:4px}
.gm-msg-user{align-self:flex-end;background:hsl(var(--primary));color:#fff;border-bottom-right-radius:4px}
.gm-typing{display:inline-flex;gap:4px;padding:4px 0}
.gm-typing span{width:6px;height:6px;border-radius:50%;background:hsl(var(--accent));animation:gmBlink 1.2s infinite}
.gm-typing span:nth-child(2){animation-delay:.2s}.gm-typing span:nth-child(3){animation-delay:.4s}
@keyframes gmBlink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.gm-chips{display:flex;flex-wrap:wrap;gap:8px;align-self:stretch}
.gm-chip{background:#fff;border:1px solid hsl(var(--accent)/.55);color:hsl(var(--primary));font-size:12.5px;padding:7px 12px;border-radius:999px;cursor:pointer;text-align:left;transition:background .15s}
.gm-chip:hover{background:hsl(var(--accent)/.15)}
.gm-chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid #e6e8ec;background:#fff}
.gm-chat-input{flex:1;resize:none;border:1px solid #d9dde3;border-radius:12px;padding:10px 12px;font:14px/1.4 inherit;max-height:110px;outline:none;color:#1a2230}
.gm-chat-input:focus{border-color:hsl(var(--accent));box-shadow:0 0 0 3px hsl(var(--accent)/.2)}
.gm-chat-send{border:0;border-radius:12px;width:44px;flex-shrink:0;background:hsl(var(--primary));color:hsl(var(--accent));cursor:pointer;display:grid;place-items:center}
.gm-chat-send:disabled{opacity:.45;cursor:not-allowed}
.gm-chat-foot{font-size:11px;color:#8a93a0;text-align:center;padding:0 12px 10px;background:#fff}
@media (max-width:520px){.gm-chat-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}.gm-chat-launcher{right:14px;bottom:calc(16px + env(safe-area-inset-bottom))}.gm-chat-launcher .gm-label{display:none}.gm-chat-launcher{padding:13px}}
@media (prefers-reduced-motion:reduce){.gm-chat-panel,.gm-typing span{animation:none}}
