:root{--mq-accent:#00d4ff;--mq-bg:#0a1028;--mq-text:#eef1ff}
#mq.mq-left{right:auto;left:18px;align-items:flex-start}#mq.mq-left #mq-b::after{right:auto;left:30px}
@media (max-width:600px){#mq.mq-left{left:12px}}
#mq{position:fixed;right:18px;bottom:18px;z-index:9998;display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-family:inherit}
#mq-bot{width:78px;height:78px;border:0;padding:0;background:none;cursor:pointer;border-radius:50%;filter:drop-shadow(0 8px 22px rgba(0,212,255,.35))}
#mq-bot:focus-visible,#mq button:focus-visible,#mq input:focus-visible{outline:2px solid var(--mq-accent);outline-offset:3px}
#mq-bot{position:relative;border:2px solid var(--mq-accent)}#mq-bot img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 25%;display:block}
.mq-dot{position:absolute;right:4px;bottom:4px;width:14px;height:14px;border-radius:50%;background:#22c55e;border:2px solid var(--mq-bg)}
#mq-av{position:relative;height:190px;overflow:hidden;background:#0b1430;flex:none}
#mq-av::after{content:'';position:absolute;inset:0;box-shadow:inset 0 -30px 30px -10px var(--mq-bg);pointer-events:none;transition:box-shadow .3s}
#mq-b{display:none;width:min(360px,calc(100vw - 36px));max-height:min(640px,calc(100dvh - 130px));background:var(--mq-bg);color:var(--mq-text);border:1px solid rgba(0,212,255,.35);border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.55);overflow:hidden;flex-direction:column;position:relative}
#mq-b.o{display:flex}
#mq-b::after{content:"";position:absolute;right:30px;bottom:-8px;width:14px;height:14px;background:var(--mq-bg);border-right:1px solid rgba(0,212,255,.35);border-bottom:1px solid rgba(0,212,255,.35);transform:rotate(45deg)}
#mq-h{display:flex;justify-content:space-between;align-items:center;padding:.7rem .9rem;background:linear-gradient(135deg,rgba(124,92,255,.35),rgba(0,212,255,.25))}
#mq-h b{font-size:.92rem}#mq-h small{display:block;color:#a7b0d6;font-size:.72rem}
#mq-x{width:44px;height:44px;background:none;border:0;color:var(--mq-text);font-size:1.4rem;cursor:pointer;line-height:1}
#mq-t{padding:.9rem;font-size:.93rem;line-height:1.45}
#mq-t h4{margin:0 0 .35rem;font-size:1rem;color:var(--mq-accent)}#mq-t p{margin:0}
#mq-c{display:flex;gap:.5rem;flex-wrap:wrap;padding:0 .9rem .9rem}
#mq-c button,#mq-q button{min-height:44px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:var(--mq-text);border-radius:999px;padding:.45rem .9rem;font:inherit;font-size:.85rem;cursor:pointer}
#mq-c button.p{background:var(--mq-accent);border-color:transparent;color:#050816;font-weight:600}
#mq-chat{display:flex;flex-direction:column;flex:1;min-height:0}#mq-tour{overflow-y:auto}
#mq-m{flex:1;overflow-y:auto;padding:.8rem .9rem;display:flex;flex-direction:column;gap:.5rem;min-height:80px}
.mq-msg{max-width:88%;padding:.55rem .8rem;border-radius:14px;font-size:.9rem;line-height:1.4;white-space:pre-wrap}
.mq-a{background:rgba(255,255,255,.07);align-self:flex-start}.mq-u{background:#1c2752;border:1px solid rgba(0,212,255,.35);color:var(--mq-text);align-self:flex-end}
.mq-msg a{color:var(--mq-accent)}
#mq-q{display:flex;gap:.4rem;flex-wrap:wrap;padding:0 .9rem .6rem}#mq-q button{font-size:.8125rem;padding:.35rem .8rem}
#mq-f{display:flex;gap:.4rem;padding:.6rem .9rem .9rem;border-top:1px solid rgba(255,255,255,.08)}
#mq-i{min-height:44px;flex:1;min-width:0;background:#050816;border:1px solid rgba(255,255,255,.15);color:var(--mq-text);border-radius:10px;padding:.55rem .7rem;font:inherit;font-size:.9rem}
#mq-f button{min-height:44px;background:var(--mq-accent);border:0;color:#050816;border-radius:10px;padding:0 .9rem;font-weight:600;cursor:pointer}
.mq-hl{outline:3px solid var(--mq-accent)!important;outline-offset:6px;border-radius:20px;box-shadow:0 0 0 9999px rgba(5,8,22,.55);position:relative;z-index:9990;transition:outline-color .3s}
.mq-hidden{display:none!important}
@media (max-width:600px){#mq{right:10px;bottom:10px}#mq-bot{width:62px;height:62px}#mq-b{max-height:calc(100dvh - 96px);width:calc(100vw - 20px)}#mq-av{height:170px}#mq-cv{top:-44px}.mq-hl{box-shadow:0 0 0 9999px rgba(5,8,22,.45)}}
@media (prefers-reduced-motion:reduce){.mq-hl{transition:none}}


#mq-foto{position:absolute;left:0;top:-34px;width:100%;height:auto;aspect-ratio:1;display:block}
@media (max-width:600px){#mq-foto{top:-44px}}
/* mobile chat 20261101 */
#mq-h .mq-ph{display:none}
@media (max-width:600px){
#mq{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}
#mq-bot{width:56px;height:56px}.mq-dot{width:12px;height:12px;right:2px;bottom:2px}
#mq-b{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;max-height:var(--mq-vh,100dvh);border-radius:18px 18px 0 0;border:0;border-top:1px solid rgba(0,212,255,.35);z-index:9999}
#mq-b::after{display:none}
#mq-b:has(#mq-chat:not(.mq-hidden)){height:var(--mq-vh,100dvh);border-radius:0;border-top:0}
#mq-av{display:none}
#mq-h{gap:.6rem;justify-content:flex-start;padding:.5rem .5rem .5rem .75rem;padding-top:calc(.5rem + env(safe-area-inset-top));flex:none}
#mq-h .mq-ph{display:block;width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:50% 25%;border:2px solid var(--mq-accent);flex:none}
#mq-h>div{flex:1;min-width:0}#mq-h b{font-size:.95rem;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mq-t{font-size:.95rem}
.mq-msg{font-size:.95rem;max-width:85%}
#mq-q{flex-wrap:nowrap;overflow-x:auto;padding:0 .75rem .5rem;scrollbar-width:none;flex:none}#mq-q::-webkit-scrollbar{display:none}
#mq-q button,#mq-c button{white-space:nowrap;flex:none;min-height:38px;font-size:.8125rem;padding:.3rem .8rem}
#mq-f{padding:.5rem .75rem calc(.5rem + env(safe-area-inset-bottom));flex:none;background:var(--mq-bg)}
#mq-i{font-size:16px}
#mq:has(#mq-b.o) #mq-bot{display:none}
body.mq-open{overflow:hidden}
}
@media (max-width:600px){.admin-bar #mq-b{max-height:calc(var(--mq-vh,100dvh) - 46px)}.admin-bar #mq-b:has(#mq-chat:not(.mq-hidden)){height:calc(var(--mq-vh,100dvh) - 46px)}}
