.agent-chat{position:absolute;z-index:20;right:24px;top:154px;bottom:92px;width:390px;max-height:730px;display:flex;flex-direction:column;overflow:hidden;background:#fcfff8f7;border:1px solid #cbdcc5;border-radius:20px;box-shadow:0 16px 65px #263e302b;backdrop-filter:blur(22px);animation:panel-in .28s ease;color:#244031}
.chat-head{display:flex;align-items:center;gap:12px;padding:19px 20px 16px;background:#f2f7e9;border-bottom:1px solid #dfe8d8}.chat-avatar{width:40px;height:40px;border:1px solid #b5c8aa;border-radius:50%;display:grid;place-items:center;font:23px Georgia,serif;flex-shrink:0}.chat-head strong{display:block;font-size:17px;font-weight:600}.chat-head small{display:block;margin-top:4px;font-size:10px;color:#68805c}.chat-head button{margin-left:auto;font-size:27px;color:#6b8063;min-width:32px;min-height:36px}.chat-context{font-size:9px;letter-spacing:.35px;color:#6c825e;padding:10px 20px;border-bottom:1px solid #e0e9d9}
#chat-conversation{display:flex;flex:1;flex-direction:column;min-height:0}.chat-messages{flex:1;min-height:110px;overflow:auto;overscroll-behavior:contain;padding:19px 18px;scrollbar-width:thin}.chat-welcome{padding:22px 8px;color:#4e704e}.chat-welcome strong{font:25px Georgia,'Segoe UI',serif}.chat-welcome p{font-size:12px;line-height:1.85;color:#758a6c;margin:12px 0 0}.chat-message{margin:0 0 16px;max-width:94%}.chat-message small{display:block;font-size:9px;color:#758c69;margin:0 4px 6px}.chat-message p{margin:0;padding:12px 14px;border:1px solid #dce7d5;border-radius:3px 14px 14px 14px;background:#f2f6eb;font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.from-owner{margin-left:auto}.chat-message.from-owner small{text-align:right}.chat-message.from-owner p{background:#e1ecd6;border-color:#d2e0c5;border-radius:14px 3px 14px 14px}
.chat-status{font-size:10px;line-height:1.6;color:#738564;padding:0 20px;margin:0 0 10px;overflow-wrap:anywhere}.agent-chat textarea,.agent-chat input{font:inherit;color:#294430;background:#fffef8;border:1px solid #cfdcc5;border-radius:11px;outline:0}.agent-chat textarea:focus,.agent-chat input:focus{border-color:#6e915e;box-shadow:0 0 0 3px #dbe8d14d}#chat-composer{padding:0 16px}#chat-message{display:block;width:100%;resize:none;font-size:13px;line-height:1.65;padding:12px;min-height:72px;max-height:140px}.chat-tools{display:flex;align-items:center;gap:6px;margin:9px 0}.chat-tools button{padding:9px 10px;border:1px solid #d3dfc9;border-radius:8px;font-size:11px;min-height:36px;background:#f0f6e9}.chat-tools #chat-send{margin-left:auto;background:#365e46;color:#fff;border-color:#365e46}.agent-chat button:disabled{opacity:.5;cursor:default}.chat-hint{font-size:8px;line-height:1.7;color:#879876;margin:9px 0 12px}.chat-boundary{font-size:8px;line-height:1.6;color:#7b8c71;margin:0;padding:11px 18px;background:#eff4e6;border-top:1px solid #dce6d1}.chatting .activity-panel,.chatting .inspector,.chatting .walk-controls{display:none}.agent-label{pointer-events:auto;cursor:pointer}.agent-label:hover{background:#dcebcf;box-shadow:0 2px 12px #3b5c3826}.talk-person{display:block;width:100%;padding:9px 10px;margin-top:12px;border:1px solid #becfb2;border-radius:8px;background:#edf5e4;color:#3b623d;font-size:11px}
#chat-login{padding:28px 22px;overflow:auto;flex:1}#chat-login h3{font-size:21px;font-weight:500;margin:10px 0}#chat-login p{font-size:12px;line-height:1.8;color:#728668}#chat-login-form{margin-top:25px;display:grid;gap:10px}#chat-login-form label{font-size:11px}#chat-password{width:100%;padding:12px}#chat-login-form button{padding:13px;background:#365e46;border-radius:9px;color:white;font-size:12px}#chat-login-error{color:#966542!important}.agent-chat .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.detail-person{flex-wrap:wrap}.detail-person .talk-person{flex-basis:100%;margin-top:2px}
@media(max-width:1100px){.agent-chat{right:18px;width:350px}}
@media(max-width:740px){.agent-chat{top:auto;bottom:max(12px,env(safe-area-inset-bottom));left:10px;right:10px;width:auto;height:min(650px,calc(100dvh - 85px));max-height:calc(100dvh - 85px);border-radius:18px}.chat-head{padding:15px 16px 13px}.chat-head strong{font-size:16px}.chat-context{padding:9px 16px;font-size:8px}.chat-messages{padding:14px;min-height:60px}.chat-message p{font-size:13px}.chat-message{margin-bottom:13px}.chat-tools button{min-height:40px;padding:10px 12px}#chat-message{font-size:16px;min-height:66px}.chat-hint{font-size:8px;margin-bottom:9px}.chat-boundary{padding:8px 16px}.chatting .world-title{display:none}}
@media(prefers-reduced-motion:reduce){.agent-chat{animation:none}}
