.mgc{--g:hsl(var(--primary,33 42% 59%));--d:hsl(var(--secondary,40 8% 15%));--bg:hsl(var(--background,50 15% 98%));--mu:hsl(var(--muted,40 15% 93%));--ln:hsl(var(--border,40 12% 85%));position:fixed;right:16px;bottom:16px;z-index:70;font-family:inherit;color:var(--d);display:flex;flex-direction:column;align-items:flex-end}
@media(min-width:640px){.mgc{right:20px;bottom:20px}}
.mgc *{box-sizing:border-box}
.mgc-art{width:100%;height:100%;display:block}
.mgc-fab{width:72px;height:72px;padding:0;border-radius:50%;background:#171512;border:1px solid hsl(33 42% 59%/.7);display:grid;place-items:center;cursor:pointer;box-shadow:0 14px 40px #00000061,0 0 0 5px #c9a16b1a;transition:transform .3s,box-shadow .3s}
.mgc-fab .mgc-art{width:56px;height:56px}
.mgc-fab:hover{transform:scale(1.05);box-shadow:0 16px 46px #0000006b,0 0 0 7px #c9a16b24}
.mgc.is-open .mgc-fab{display:none}
.mgc button:focus-visible,.mgc input:focus-visible,.mgc textarea:focus-visible,.mgc select:focus-visible{outline:2px solid var(--g);outline-offset:2px}
.mgc-panel{width:calc(100vw - 2rem);height:620px;max-height:calc(100dvh - 2rem);background:var(--bg);border:1px solid var(--ln);box-shadow:0 25px 50px -12px #00000066;display:flex;flex-direction:column;overflow:hidden;border-radius:2px;animation:mgc-in .25s ease-out}
@media(min-width:640px){.mgc-panel{width:410px;max-height:78vh}}
.mgc-panel[hidden]{display:none}
@keyframes mgc-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.mgc-head{background:var(--d);color:#fff;padding:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.mgc-hl{display:flex;gap:12px;min-width:0}
.mgc-av{width:44px;height:44px;flex:none;border-radius:50%;background:#0000004d;border:1px solid hsl(33 42% 59%/.3);display:grid;place-items:center;box-shadow:0 0 22px #c9a16b29}
.mgc-av .mgc-art{width:36px;height:36px}
.mgc-head h2{margin:0;font:400 18px/1.3 var(--app-font-serif,"Playfair Display",serif)}
.mgc-st{margin:2px 0 0;font-size:12px;color:#fff9;display:flex;align-items:center;gap:6px}
.mgc-st i{width:6px;height:6px;border-radius:50%;background:#34d399;flex:none}
.mgc-x{width:44px;height:44px;margin:-10px -10px 0 0;background:none;border:0;color:#fff;cursor:pointer;display:grid;place-items:center;flex:none}
.mgc-body{flex:1;min-height:0;display:flex;flex-direction:column}
.mgc-log{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px;min-height:0}
.mgc-wel{margin:auto;text-align:center;padding:0 8px;display:grid;gap:12px}
.mgc-wel-i{width:56px;height:56px;border-radius:50%;background:hsl(33 42% 59%/.1);display:grid;place-items:center;margin:0 auto 8px}
.mgc-wel-i .mgc-art{width:44px;height:44px}
.mgc-wel h3{margin:0;font:400 20px/1.3 var(--app-font-serif,"Playfair Display",serif);color:var(--d)}
.mgc-wel p{margin:0;font-size:14px;line-height:1.6;color:hsl(40 8% 15%/.6)}
.mgc-wel small{font-size:12px;line-height:1.6;color:hsl(40 8% 15%/.55)}
.mgc-pr{display:grid;gap:8px;padding-top:8px}
.mgc-pr button{text-align:start;font:inherit;font-size:14px;background:none;color:inherit;border:1px solid var(--ln);padding:12px;cursor:pointer;transition:border-color .2s,background .2s;min-height:44px}
.mgc-pr button:hover{border-color:var(--g);background:hsl(33 42% 59%/.05)}
.mgc-m{max-width:88%;display:grid;gap:3px;font-size:14px;line-height:1.6}
.mgc-m b{font-weight:500;font-size:11px;letter-spacing:.04em;color:hsl(40 8% 15%/.5)}
.mgc-m p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px}
.mgc-assistant p{background:var(--mu);color:var(--d)}
.mgc-team p{background:var(--bg);border:1px solid var(--g);color:var(--d)}
.mgc-team b{color:hsl(33 42% 40%)}
.mgc-visitor{align-self:flex-end;margin-inline-start:auto}.mgc-visitor b{display:none}.mgc-visitor p{background:var(--d);color:#fff}
.mgc-notice{align-self:center;font-size:12px;color:hsl(40 8% 15%/.55);text-align:center;line-height:1.5}
.mgc-state{padding:0 20px;font-size:12px;color:hsl(40 8% 15%/.55)}
.mgc-state:not(:empty){padding:6px 20px}
.mgc-state.err{color:#8a1f1f}
.mgc-consent{margin:0 16px 8px;padding:10px 12px;background:hsl(33 42% 59%/.12);font-size:12px;line-height:1.5;display:grid;gap:8px}
.mgc-consent p{margin:0}
.mgc-consent button{justify-self:start;min-height:36px;padding:0 14px;background:var(--d);color:#fff;border:0;cursor:pointer;font-size:12px}
.mgc-cons{margin:0 16px 12px;min-height:40px;border:1px solid hsl(33 42% 59%/.4);background:none;color:var(--g);font:inherit;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.mgc-cons:hover{background:hsl(33 42% 59%/.05)}
.mgc-cons[hidden]{display:none}
.mgc-form{padding:16px;border-top:1px solid var(--ln);display:flex;gap:8px}
.mgc-form input{flex:1;min-width:0;height:44px;border:1px solid var(--ln);background:var(--bg);padding:0 12px;font:inherit;font-size:14px;color:var(--d)}
.mgc-form input:focus{border-color:var(--g)}
.mgc-form button{width:44px;height:44px;flex:none;display:grid;place-items:center;background:var(--g);color:#fff;border:0;cursor:pointer}
.mgc-form button:disabled,.mgc-form input:disabled{opacity:.45;cursor:not-allowed}
.mgc-hand{flex:1;min-height:0;overflow-y:auto;padding:20px;display:grid;gap:12px;align-content:start}
.mgc-hand[hidden]{display:none}
.mgc-hand-h h3{margin:0;font:400 20px/1.3 var(--app-font-serif,"Playfair Display",serif)}
.mgc-hand-h p{margin:8px 0 0;font-size:12px;line-height:1.6;color:hsl(40 8% 15%/.55)}
.mgc-hand label{display:grid;gap:4px;font-size:12px;color:hsl(40 8% 15%/.7)}
.mgc-hand input:not([type=checkbox]),.mgc-hand select,.mgc-hand textarea{width:100%;border:1px solid var(--ln);background:var(--bg);padding:0 12px;font:inherit;font-size:14px;color:var(--d)}
.mgc-hand input:not([type=checkbox]),.mgc-hand select{height:44px}
.mgc-hand textarea{padding:12px;resize:none}
.mgc-chk{display:flex!important;align-items:flex-start;gap:8px;line-height:1.5}
.mgc-chk input{margin-top:2px;accent-color:var(--g)}
.mgc-primary{min-height:44px;background:var(--g);color:#fff;border:0;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.mgc-primary:disabled{opacity:.5}
.mgc-link{background:none;border:0;min-height:36px;color:hsl(40 8% 15%/.5);font:inherit;font-size:12px;cursor:pointer}
.mgc-link:hover{color:var(--g)}
.mgc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(prefers-reduced-motion:reduce){.mgc *{animation:none!important;transition:none!important}}
