.operator-chat-launch,#operatorChatDialog{--operator-ink:#202522;--operator-muted:#59645d;--operator-line:#d9dfda;--operator-surface:#fff;--operator-soft:#f1f4f1;--operator-accent:var(--action,var(--accent,#222e27));font-family:inherit;font-size:16px;line-height:1.5;box-sizing:border-box}
.operator-chat-launch{position:fixed;right:22px;bottom:24px;z-index:980;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 24px);min-height:48px;padding:12px 18px;border:1px solid #ffffff8c;border-radius:999px;background:var(--operator-ink);color:#fff;box-shadow:0 6px 24px #14241c30;cursor:pointer;font-weight:650;text-align:left}
.operator-chat-launch svg{flex-shrink:0}.operator-chat-launch:hover{background:#35483b}.operator-chat-launch:focus-visible,#operatorChatDialog :focus-visible{outline:3px solid #26734a;outline-offset:3px}
.operator-chat-launch .operator-chat-unread{display:grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:50%;background:#fff;color:var(--operator-ink);font-size:12px;font-weight:750}.operator-chat-launch [hidden]{display:none}
#operatorChatDialog{position:fixed;inset:auto 20px 20px auto;width:min(420px,calc(100vw - 32px));max-width:none;height:min(650px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);margin:0;padding:0;overflow:hidden;border:1px solid var(--operator-line);border-radius:20px;color:var(--operator-ink);background:var(--operator-surface);box-shadow:0 20px 80px #1222194d}
#operatorChatDialog{border-top:3px solid var(--operator-accent)}#operatorChatDialog::backdrop{background:#13261a55;backdrop-filter:blur(2px)}
#operatorChatDialog:not([open]){display:none}#operatorChatDialog[open]{display:block}#operatorChatDialog *{box-sizing:border-box}#operatorChatDialog [hidden]{display:none!important}
#operatorChatDialog .operator-chat-layout{display:flex;flex-direction:column;height:100%;min-height:0}
#operatorChatDialog .operator-chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:19px 20px 15px;border-bottom:1px solid var(--operator-line);flex-shrink:0}
#operatorChatDialog .operator-chat-city{font-family:inherit;margin:0 0 4px;color:var(--operator-muted);font-size:12px;line-height:1.4;letter-spacing:0;text-transform:none}
#operatorChatDialog #operatorChatTitle{font-family:inherit;color:var(--operator-ink);font-size:22px;font-weight:700;line-height:1.25;letter-spacing:-.4px;margin:0;text-transform:none}
#operatorChatDialog .operator-chat-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--operator-line);border-radius:50%;background:#fff;color:var(--operator-ink);cursor:pointer}
#operatorChatDialog .operator-chat-intro{flex-shrink:0;font-family:inherit;font-size:14px;line-height:1.55;letter-spacing:0;margin:0;padding:14px 20px;color:var(--operator-muted);background:var(--operator-soft);border-bottom:1px solid var(--operator-line)}
#operatorChatDialog .operator-chat-messages{flex:1;min-height:60px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 14px;display:flex;flex-direction:column;gap:12px;overflow-wrap:anywhere}
#operatorChatDialog .operator-chat-message{align-self:flex-start;max-width:92%;padding:11px 13px;border:1px solid #e0e5e0;border-radius:14px 14px 14px 3px;background:var(--operator-soft)}
#operatorChatDialog .operator-chat-message.is-customer{align-self:flex-end;border-color:#cddfd1;background:#eaf3ed;border-radius:14px 14px 3px 14px}
#operatorChatDialog .operator-chat-message.is-system{align-self:center;max-width:100%;background:transparent;border:0;text-align:center;padding:3px 8px;color:var(--operator-muted)}
#operatorChatDialog .operator-chat-message p{font-family:inherit;font-size:15px;line-height:1.55;letter-spacing:0;margin:0;white-space:pre-wrap;color:inherit}#operatorChatDialog .operator-chat-message small{display:block;font-family:inherit;font-size:11px;line-height:1.4;letter-spacing:0;margin-top:6px;color:var(--operator-muted)}
#operatorChatDialog .operator-chat-attachment{display:flex;align-items:center;min-height:44px;margin-top:7px;padding:7px 10px;border:1px solid #89988d;border-radius:8px;color:#204d32;background:#fff;font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:3px}
#operatorChatDialog .operator-chat-status{font-family:inherit;flex-shrink:0;font-size:12px;line-height:1.45;letter-spacing:0;margin:0;padding:0 20px 12px;color:var(--operator-muted)}
#operatorChatDialog .operator-chat-form{flex-shrink:0;border-top:1px solid var(--operator-line);background:#fff;padding:14px 16px max(16px,env(safe-area-inset-bottom))}
#operatorChatDialog .operator-chat-form label{display:block;font-family:inherit;font-size:13px;line-height:1.5;letter-spacing:0;margin:0 0 6px;font-weight:650;color:var(--operator-ink)}
#operatorChatDialog .operator-chat-form textarea{display:block;resize:none;width:100%;height:72px;max-height:110px;min-height:52px;margin:0;padding:11px 12px;border:1px solid #89988d;border-radius:10px;background:#fff;color:var(--operator-ink);font-family:inherit;font-size:16px;line-height:1.45;letter-spacing:0;box-shadow:none}
#operatorChatDialog .operator-chat-form textarea::placeholder{color:#637167;opacity:1}
#operatorChatDialog .operator-chat-form-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
#operatorChatDialog .operator-chat-form-foot>span{font-family:inherit;font-size:11px;line-height:1.4;color:var(--operator-muted);max-width:190px}
#operatorChatDialog #operatorChatSend{display:block;min-width:126px;min-height:44px;padding:10px 16px;margin:0;border:0;border-radius:10px;font-family:inherit;font-size:14px;line-height:1.5;font-weight:700;letter-spacing:0;background:var(--operator-ink);color:#fff;cursor:pointer;white-space:nowrap}
#operatorChatDialog #operatorChatSend:hover{background:#35483b}#operatorChatDialog #operatorChatSend:disabled{cursor:wait;background:#59645d}
#operatorChatDialog .operator-chat-error{font-family:inherit;font-size:13px;line-height:1.45;color:#9b271a;margin:8px 0 0;letter-spacing:0}
@media(max-width:1150px){.operator-chat-launch{right:12px;bottom:calc(86px + env(safe-area-inset-bottom));font-size:14px;padding:10px 14px;min-height:46px}}
@media(max-width:600px){#operatorChatDialog{inset:var(--operator-viewport-top,8px) 8px auto;width:calc(100vw - 16px);height:var(--operator-viewport-height,calc(100dvh - 16px));max-height:var(--operator-viewport-height,calc(100dvh - 16px));border-radius:16px}#operatorChatDialog .operator-chat-head{padding:12px 14px}#operatorChatDialog #operatorChatTitle{font-size:20px}#operatorChatDialog .operator-chat-intro{padding:11px 14px;font-size:13px}#operatorChatDialog .operator-chat-form{padding:12px 12px max(12px,env(safe-area-inset-bottom))}#operatorChatDialog .operator-chat-messages{padding:14px 10px}#operatorChatDialog .operator-chat-status{padding:0 14px 9px}#operatorChatDialog .operator-chat-form-foot>span{max-width:160px}}
@media(max-height:500px){#operatorChatDialog .operator-chat-intro{display:none}#operatorChatDialog .operator-chat-form textarea{height:52px}#operatorChatDialog .operator-chat-head{padding-block:7px}#operatorChatDialog .operator-chat-form-foot>span{display:none}#operatorChatDialog .operator-chat-form-foot{justify-content:flex-end;margin-top:6px}}
@media(prefers-reduced-motion:reduce){.operator-chat-launch,#operatorChatDialog,#operatorChatDialog *{scroll-behavior:auto;animation:none;transition:none}}
