.xm-chat-launch,.xm-chat-panel{position:fixed;z-index:60;right:max(.7rem,env(safe-area-inset-right));bottom:max(.7rem,env(safe-area-inset-bottom))}
.xm-chat-launch{display:flex;align-items:center;gap:.45rem;background:#efc674;color:#20150a;border:1px solid #6f5127;border-radius:999px;min-height:51px;font:inherit;font-weight:840;padding:.22rem .92rem .22rem .25rem;box-shadow:0 7px 30px #0009;cursor:pointer}
.xm-chat-launch img,.xm-chat-head img{width:37px;height:37px;border-radius:50%;background:#1b130c}
.xm-chat-launch[aria-expanded=true]{visibility:hidden}
.xm-chat-panel{width:min(390px,calc(100vw - 1.4rem));max-height:calc(100dvh - 1.4rem);display:flex;flex-direction:column;background:#191511;color:#fff4e0;border:1px solid #8e6e3f;border-radius:17px;box-shadow:0 14px 54px #000b;overflow:hidden}
.xm-chat-head{flex:0 0 auto;display:flex;align-items:center;gap:.62rem;background:#2c2319;padding:.61rem .72rem;border-bottom:1px solid #6e512e}
.xm-chat-head h2{font-size:1.04rem;line-height:1.12;letter-spacing:0;margin:0}.xm-chat-head p{font-size:.875rem;color:#deccb0;margin:.12rem 0 0}
.xm-chat-close{margin-left:auto;background:#1f180f;color:#f5ddb3;border:1px solid #886840;border-radius:.55rem;width:44px;height:44px;font:inherit;font-size:1.35rem;cursor:pointer}
.xm-chat-history{height:min(38vh,330px);min-height:100px;overflow:auto;overscroll-behavior:contain;padding:.64rem;display:flex;flex-direction:column;gap:.53rem}
.xm-chat-message{padding:.49rem .66rem;border-radius:.65rem;overflow-wrap:anywhere;line-height:1.4;font-size:.94rem;flex:none}
.xm-chat-message p{margin:0}.xm-chat-message.answer{background:#30261c;border:1px solid #584325;margin-right:1rem}
.xm-chat-message.question{background:#554022;border:1px solid #967140;margin-left:1rem}
.xm-chat-links{display:flex;gap:.35rem .7rem;flex-wrap:wrap;margin-top:.44rem}.xm-chat-links a{color:#f9d79c;font-size:.875rem;font-weight:740}
.xm-chat-quick{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:.28rem .4rem;padding:0 .62rem .5rem}
.xm-chat-quick button{background:#241c13;border:1px solid #7d5e36;border-radius:999px;color:#f9dfb4;font:inherit;font-size:.875rem;padding:.36rem .53rem;cursor:pointer;min-height:36px}
.xm-chat-footer{padding:.6rem;border-top:1px solid #66512f;flex:0 0 auto}.xm-chat-editor{display:flex;gap:.42rem}
.xm-chat-editor input{min-width:0;flex:1;background:#15110c;border:1px solid #987442;color:#fff2d6;padding:.5rem .55rem;border-radius:.53rem;font:inherit}
.xm-chat-editor button{min-height:44px;padding:.45rem .66rem}
.xm-chat-footer p{font-size:.79rem;line-height:1.3;color:#d0bea1;margin:.43rem 0 0}
.xm-chat-panel label{display:block;font-size:.88rem;margin-bottom:.3rem}.xm-chat-panel input:focus-visible{outline:2px solid #eec275;outline-offset:2px}
@media(max-height:500px){.xm-chat-history{height:27dvh;min-height:64px}.xm-chat-quick{display:none}.xm-chat-head p{display:none}}
