.cm-chat{position:fixed;left:max(12px,env(safe-area-inset-left));top:76px;right:auto;bottom:auto;width:300px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 88px - env(safe-area-inset-bottom));z-index:42;background:#111b17f2;border:1px solid #526456;border-radius:7px;color:#ecefe4;box-shadow:0 6px 22px #0007;font:14px/1.4 system-ui;pointer-events:auto;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box}
.cm-chat[hidden],.cm-chat [hidden]{display:none!important}.cm-chat button,.cm-chat input{font:inherit}.cm-chat button{cursor:pointer;border:1px solid #5d705f;background:#263a2e;color:#eff1e6;border-radius:4px;padding:6px 9px}.cm-chat button:focus-visible,.cm-chat input:focus-visible{outline:2px solid #e6ce89;outline-offset:-2px}.cm-chat button:disabled{opacity:.55;cursor:default}
.cm-chat-head{display:flex;align-items:center;justify-content:space-between;padding:7px 9px;gap:8px;background:#19291f;flex-shrink:0}.cm-chat-head strong{font-size:13px;letter-spacing:.06em}.cm-chat-toggle{min-height:30px}.cm-chat-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}.cm-chat-tabs{display:flex;gap:6px;padding:7px 9px 0;flex-shrink:0}.cm-chat-tabs button{flex:1}.cm-chat-tabs button[aria-selected=true]{background:#547252;border-color:#a3b28c}
.cm-chat-messages{height:148px;min-height:36px;max-height:25vh;overflow-y:auto;overscroll-behavior:contain;list-style:none;padding:8px 10px;margin:0;word-break:break-word;scrollbar-width:thin}.cm-chat-messages li{margin:0 0 7px}.cm-chat-messages strong{color:#d6c993}.cm-chat-empty{color:#aebdae;font-style:italic}.cm-chat-form{display:flex;gap:6px;padding:4px 9px;flex-shrink:0}.cm-chat-form input{width:0;flex:1;min-width:0;border:1px solid #657363;border-radius:4px;background:#0c1510;color:#f2f4e9;padding:7px}.cm-chat-note{font-size:12px;margin:5px 10px 8px;min-height:17px;color:#c7cfbd;flex-shrink:0}
.cm-chat.is-minimized{width:max-content;max-height:none}.cm-chat.is-minimized .cm-chat-head{padding:0;background:transparent}.cm-chat.is-minimized .cm-chat-toggle{border:0;border-radius:6px;padding:6px 10px;min-height:32px;position:relative}.cm-chat.is-minimized.has-unread .cm-chat-toggle:after{content:'';position:absolute;top:3px;right:3px;width:5px;height:5px;border-radius:50%;background:#efcb79}
@media(max-width:600px),(pointer:coarse){.cm-chat{left:max(8px,env(safe-area-inset-left));top:74px;width:276px;max-width:calc(100vw - 16px)}.cm-chat-messages{height:112px;max-height:22vh}.cm-chat button{min-height:36px}.cm-chat.is-minimized{width:max-content}.cm-chat.is-minimized .cm-chat-toggle{min-height:36px}}
@media(max-height:420px){.cm-chat{top:64px;max-height:calc(100dvh - 72px)}.cm-chat-messages{height:60px}.cm-chat-note{display:none}}
