.chat-launcher{position:fixed;right:24px;bottom:22px;z-index:70;display:flex;align-items:center;gap:10px;padding:14px 20px;border:1px solid #3f6253;border-radius:30px;background:#193e38;color:#fff;box-shadow:0 5px 25px #193e3830;font:600 14px "Segoe UI","Microsoft YaHei",sans-serif;cursor:pointer}.chat-launcher:hover{background:#2b5549}.chat-unread,.chat-peer-unread{background:#dfb77d;color:#243e33;border-radius:20px;padding:1px 7px;font-size:11px;min-width:20px;text-align:center}.chat-panel{position:fixed;inset:auto 24px 85px auto;margin:0;width:min(780px,calc(100vw - 48px));height:min(690px,calc(100dvh - 115px));max-width:none;max-height:none;padding:0;border:1px solid #c5d1bf;border-radius:14px;background:#fafbf6;color:#193e38;box-shadow:0 15px 80px #17382f38;z-index:80;overflow:hidden;font-family:"Segoe UI","Microsoft YaHei",sans-serif;line-height:1.5}.chat-panel[open]{display:flex;flex-direction:column}.chat-panel header.chat-header{display:flex;justify-content:space-between;align-items:center;min-height:0;height:auto;width:100%;max-width:none;margin:0;padding:18px 22px;border-bottom:0;background:#193e38;color:#fff;gap:12px}.chat-eyebrow{font-size:9px;letter-spacing:1.8px;color:#d9e5c7;margin:0 0 5px}.chat-header h2{font-family:inherit;font-size:20px;line-height:1.3;margin:0;color:#fff;letter-spacing:0}.chat-close{border:1px solid #688777;background:transparent;color:white;border-radius:50%;width:34px;height:34px;font:24px Arial,sans-serif;cursor:pointer;flex-shrink:0}.chat-close:hover{background:#355a4c}.chat-connection{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#eaf0e0;padding:8px 20px;font-size:11px;min-height:31px}.chat-connection-dot{width:7px;height:7px;border-radius:50%;background:#b28d59}.chat-connection-dot[data-state=connected]{background:#4e874f}.chat-connection-dot[data-state=disconnected]{background:#bd674c}#chat-online-count{margin-left:auto}.chat-connection button{background:none;color:inherit;border:0;text-decoration:underline;cursor:pointer}.chat-profile{display:flex;align-items:center;gap:9px;padding:10px 20px;border-bottom:1px solid #d8dfd2;font-size:11px}.chat-profile label{white-space:nowrap}.chat-profile input{padding:6px 9px;min-width:0;width:190px;max-width:60%;border:1px solid #c7d1bf;border-radius:5px;background:white;color:inherit;font-size:12px}.chat-profile button{padding:6px 10px;background:#eaf0e0;color:#193e38;border:1px solid #ccd7c2;border-radius:5px;font-size:11px;cursor:pointer}.chat-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:0;flex:1}.chat-sidebar{border-right:1px solid #d8dfd2;overflow-y:auto;padding:12px 9px;background:#f0f3e9}.chat-sidebar h3{font-size:10px;font-weight:600;letter-spacing:.3px;padding:15px 10px 6px;margin:0;color:#65745f}.chat-person{width:100%;display:flex;align-items:center;gap:9px;padding:10px;border:1px solid transparent;border-radius:7px;background:transparent;color:inherit;text-align:left;cursor:pointer;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.chat-person:hover{background:#e3ead7}.chat-person-active{background:white;border-color:#c8d4bd;box-shadow:0 2px 6px #193e3808}.chat-avatar{height:28px;width:28px;flex-shrink:0;border-radius:8px;background:#e1e9d5;display:grid;place-items:center;font-size:12px;font-weight:bold;position:relative}.chat-avatar[data-online=true]:after{content:"";position:absolute;right:-2px;bottom:-2px;width:7px;height:7px;background:#4e874f;border:2px solid #f0f3e9;border-radius:50%}.chat-person-name{flex:1;min-width:0}.chat-person-name small{display:block;font-size:9px;color:#68746c;margin-top:2px}.chat-people-empty{font-size:11px;color:#68746c;padding:9px;line-height:1.7}.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;padding:0;border:0}.chat-thread-header{padding:13px 18px;border-bottom:1px solid #e1e7da;background:#fafbf6}.chat-thread-header h3{font:600 14px "Segoe UI","Microsoft YaHei",sans-serif;margin:0}.chat-thread-header p{font-size:10px;line-height:1.4;margin:4px 0 0;color:#68746c}.chat-messages{flex:1;min-height:80px;overflow-y:auto;padding:16px 18px;overscroll-behavior:contain;scroll-behavior:smooth}.chat-empty{font-size:12px;color:#75836a;text-align:center;padding:24px 10px}.chat-message{margin:0 30px 14px 0;max-width:90%;width:fit-content}.chat-message-own{margin-left:auto;margin-right:0}.chat-message-meta{font-size:9px;color:#68746c;display:flex;gap:9px;align-items:center;padding:0 3px;margin-bottom:4px}.chat-message-own .chat-message-meta{justify-content:flex-end}.chat-message-text{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:0;border:1px solid #dce4d4;border-radius:2px 12px 12px;padding:10px 13px;background:white;color:#233d32}.chat-message-own .chat-message-text{background:#e1ebd7;border-color:#d0dfc1;border-radius:12px 2px 12px 12px}.chat-message-state{font-size:9px;color:#886a43;text-align:right;margin:4px 0 0}.chat-compose{padding:12px 16px;border-top:1px solid #d8dfd2;background:#fafbf6}.chat-compose textarea{display:block;resize:none;width:100%;box-sizing:border-box;max-height:130px;padding:10px 12px;border:1px solid #bdcdb1;background:#fff;border-radius:7px;font:13px/1.55 "Segoe UI","Microsoft YaHei",sans-serif;color:#193e38}.chat-compose>div{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:8px}.chat-compose>div>span{font-size:9px;color:#7c8871}.chat-compose button{background:#193e38;color:white;border:0;border-radius:5px;font-size:12px;padding:9px 16px;cursor:pointer}.chat-compose button:disabled{opacity:.5;cursor:wait}.chat-error{font-size:11px;color:#8e4930;background:#fff0e5;margin:0;padding:8px 16px}.chat-older{font-size:10px;border:0;border-bottom:1px solid #e1e7da;background:#edf2e5;color:#53694b;cursor:pointer;padding:6px}.chat-panel [hidden],.chat-launcher [hidden]{display:none!important}.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}.chat-panel :is(button,input,textarea):focus-visible,.chat-launcher:focus-visible{outline:2px solid #c98b47;outline-offset:3px}@media(max-width:650px){.chat-launcher{right:14px;bottom:14px;padding:12px 16px}.chat-panel{inset:10px 10px 75px;width:calc(100vw - 20px);height:calc(100dvh - 85px);border-radius:10px}.chat-panel header.chat-header{padding:15px}.chat-header h2{font-size:18px}.chat-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.chat-sidebar{display:flex;align-items:stretch;gap:7px;overflow-x:auto;overflow-y:hidden;padding:8px;border-right:0;border-bottom:1px solid #d8dfd2;max-height:100px}.chat-sidebar h3,.chat-people-empty{display:none}.chat-sidebar #chat-people{display:flex;gap:7px}.chat-person{min-width:125px;width:125px;padding:7px;font-size:11px}.chat-person-name small{font-size:8px}.chat-sidebar>.chat-person{min-width:145px;width:145px}.chat-connection{padding:7px 14px}.chat-profile{padding:8px 14px}.chat-thread-header{padding:10px 14px}.chat-messages{padding:12px}.chat-compose{padding:10px 12px}.chat-compose>div>span{max-width:180px}.chat-message{max-width:94%}}@media print{.chat-launcher,.chat-panel{display:none!important}}
