.ccym-msg-panel,.ccym-msg-popup,.ccym-msg-launcher{box-sizing:border-box;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;letter-spacing:0;color:#273441}
.ccym-msg-panel *,.ccym-msg-popup *{box-sizing:border-box;letter-spacing:0}
.ccym-msg-panel[hidden],.ccym-msg-popup[hidden],.ccym-msg-launcher[hidden],.ccym-msg-count[hidden],.ccym-msg-avatar-count[hidden],.ccym-msg-link-count[hidden],.ccym-msg-feedback[hidden]{display:none!important}
.ccym-msg-launcher{position:fixed;z-index:11010;right:24px;bottom:24px;display:grid;place-items:center;width:48px;height:48px;border:1px solid #d7e3df;border-radius:8px;background:#fff;color:#15806a;box-shadow:0 4px 20px #1c3a2820;cursor:pointer;padding:0}
.ccym-msg-launcher>svg{width:24px;height:24px}
.ccym-msg-count,.ccym-msg-avatar-count,.ccym-msg-link-count{font:700 10px/1.2 sans-serif;display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#e34658;color:#fff}
.ccym-msg-count{position:absolute;right:-5px;top:-6px}
.ccym-msg-avatar{position:relative}
.ccym-msg-avatar-count{position:absolute;top:-3px;right:-5px;border:2px solid #fff;height:20px;min-width:20px}
.ccym-msg-link-count{margin-left:6px;vertical-align:middle}
.ccym-msg-panel{position:fixed;z-index:11020;right:24px;bottom:84px;width:390px;height:550px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 110px);display:flex;flex-direction:column;border:1px solid #dce4e2;border-radius:8px;background:#fff;box-shadow:0 10px 40px #243b3228;overflow:hidden;text-align:left}
.ccym-msg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e2e9e7;flex:none;background:#fff}
.ccym-msg-head>div:first-child{display:grid;gap:3px}
.ccym-msg-head>div{margin:0;max-width:none}
.ccym-msg-head strong{font-size:15px;font-weight:700;color:#20342d}
.ccym-msg-head span{font-size:11px;color:#738079}
.ccym-msg-head-controls{display:flex;align-items:center;gap:4px}
.ccym-msg-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border:0;border-radius:4px;background:transparent;color:#758078;cursor:pointer;padding:5px}
.ccym-msg-icon:hover{background:#edf4f1;color:#197d65}
.ccym-msg-panel button:focus-visible,.ccym-msg-popup button:focus-visible,.ccym-msg-launcher:focus-visible{outline:2px solid #138067;outline-offset:2px}
.ccym-msg-history{flex:1;min-height:0;overflow:auto;padding:18px 14px;background:#f6f8f7;overscroll-behavior:contain}
.ccym-msg-row{display:flex;flex-direction:column;gap:6px;align-items:flex-start;margin-bottom:17px}
.ccym-msg-outgoing{align-items:flex-end}
.ccym-msg-bubble{border:1px solid #e1e7e4;border-radius:6px;padding:10px 12px;max-width:91%;background:#fff;color:#263b32;min-width:0}
.ccym-msg-outgoing .ccym-msg-bubble{background:#e7f3ed;border-color:#cfe5d9}
.ccym-msg-bubble p{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400;margin:0;color:inherit}
.ccym-msg-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:10px;color:#7a877f}
.ccym-msg-meta .ccym-msg-read{color:#258366}
.ccym-msg-file{display:flex;align-items:center;gap:9px;min-width:0;color:#167662;text-decoration:none;padding:5px 0}
.ccym-msg-file svg{width:18px;height:18px;flex:none}
.ccym-msg-file>span{min-width:0;flex:1;display:grid;gap:4px}
.ccym-msg-file strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.ccym-msg-file small{font-size:11px;color:#78867e}
.ccym-msg-older{display:block;margin:0 auto 18px;padding:5px 10px;background:transparent;border:0;font:inherit;font-size:12px;color:#27836b;cursor:pointer}
.ccym-msg-empty{padding:42px 12px;text-align:center;color:#85918a;font-size:13px}
.ccym-msg-composer{flex:none;padding:12px 14px;margin:0;border-top:1px solid #e2e9e7;background:#fff}
.ccym-msg-composer textarea{display:block;resize:vertical;min-height:60px;max-height:150px;height:64px;width:100%;margin:0;padding:9px 10px;border:1px solid #dbe5df;border-radius:4px;background:#fff;color:#263b32;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.ccym-msg-composer textarea:focus{outline:2px solid #c5e6d8;border-color:#51a38a}
.ccym-msg-compose-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
.ccym-msg-send,.ccym-msg-popup-open{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:0;border-radius:4px;background:#158069;color:#fff;font:600 13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;cursor:pointer;padding:8px 14px;height:35px}
.ccym-msg-send>svg{width:16px;height:16px}
.ccym-msg-send:disabled{opacity:.55;cursor:wait}
.ccym-msg-composer button.ccym-msg-send{width:auto;min-width:76px;height:35px;margin:0;padding:8px 14px;border:0;border-radius:4px;background:#158069;color:#fff;box-shadow:none}
.ccym-msg-connection{font-size:10px;color:#879087}
.ccym-msg-feedback{color:#c54451;font-size:12px;line-height:1.5;margin:8px 0 0}
.ccym-msg-popup{position:fixed;z-index:11030;right:24px;top:calc(var(--ccym-header-height,64px) + 18px);width:330px;max-width:calc(100vw - 32px);padding:14px 16px;border:1px solid #d9e6dd;border-radius:8px;background:#fff;box-shadow:0 8px 30px #1d3b2622;text-align:left}
.ccym-msg-popup-head{display:flex;align-items:center;gap:9px}
.ccym-msg-popup-head>svg{color:#218569;width:20px;height:20px;flex:none}
.ccym-msg-popup-head>strong{font-size:14px;flex:1}
.ccym-msg-popup-head>.ccym-msg-icon{margin-right:-6px}
.ccym-msg-popup-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:145px;overflow:auto;font-size:13px;line-height:1.7;color:#5b6b61;margin:9px 0 14px;font-weight:400}
.ccym-msg-popup-open{width:100%}
.ccym-msg-inline{position:static;width:100%;height:650px;max-width:none;max-height:none;border-radius:6px;box-shadow:none}
.ccym-msg-inline .ccym-msg-bubble{max-width:min(85%,650px)}
.member-message-link{display:inline-flex;align-items:center;gap:6px}
[data-ccym-message-avatar].member-sidebar-user .ccym-msg-avatar-count{left:34px;right:auto;top:12px}
@media(max-width:600px){.ccym-msg-launcher{right:16px;bottom:16px}.ccym-msg-panel{right:12px;bottom:76px;width:calc(100vw - 24px);max-width:none;height:530px;max-height:calc(100dvh - 94px)}.ccym-msg-popup{right:16px;top:calc(var(--ccym-header-height,64px) + 10px)}.ccym-msg-inline{width:100%;height:580px;max-height:none}.ccym-msg-inline .ccym-msg-bubble{max-width:94%}}
@media(prefers-reduced-motion:reduce){.ccym-msg-panel,.ccym-msg-popup{scroll-behavior:auto}}
