.chat-shell{height:min(720px,calc(100dvh - 250px));min-height:480px;display:grid;grid-template-columns:300px minmax(0,1fr);background:#fff;border:1px solid #e3e8e6;border-radius:14px;overflow:hidden;box-shadow:0 3px 14px #192c2404}.chat-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e5eae7}.chat-list-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 18px 16px;gap:12px}.chat-list-heading h2{font-size:16px;font-weight:650}.chat-list-heading p{font-size:11px;color:#7b8580;margin-top:4px}.chat-search{display:flex;align-items:center;margin:0 15px 15px;background:#f5f7f6;border-radius:8px;padding-left:10px;color:#89938e}.chat-search input{border:0;box-shadow:none!important;background:transparent;height:36px;font-size:12px;min-width:0}.chat-demo{font-size:10px;color:#8d703c;background:#fcf8ed;padding:8px 15px}.chat-rooms{overflow-y:auto;flex:1;padding:8px}.chat-room{display:flex;align-items:center;text-align:left;gap:11px;padding:13px 10px;width:100%;border-radius:9px;margin-bottom:3px;transition:background .15s}.chat-room:hover{background:#f6f8f7}.chat-room.selected{background:#eaf5ef}.chat-avatar{width:39px;height:39px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#eff1f6;color:#646e87;font-size:12px;font-weight:650}.chat-avatar.team{background:#d8ede2;color:#237a52}.chat-room-copy{min-width:0;flex:1}.chat-room-title{font-size:12px;font-weight:600}.chat-room-preview,.chat-room-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-room-preview{color:#7c8780;font-size:11px;margin-top:5px}.chat-room-meta{display:flex;align-items:flex-end;flex-direction:column;gap:7px;align-self:stretch;padding-top:1px}.chat-room-meta time{font-size:9px;color:#8a958f;white-space:nowrap}.chat-badge{min-width:19px;height:19px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#287c53;color:#fff;font-size:10px;font-weight:650;padding:0 5px}.chat-list-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:35px 15px;color:#7c8780;font-size:12px;line-height:1.7}.chat-conversation{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative;background:#f7faf8}.chat-header{display:flex;align-items:center;gap:12px;padding:17px 24px;background:#fff;border-bottom:1px solid #e5eae7;flex:none}.chat-header h3{font-size:14px;font-weight:650;overflow-wrap:anywhere}.chat-header p{font-size:11px;color:#829088;margin-top:3px}.chat-header .chat-back{display:none}.chat-history{padding:20px 28px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}.chat-date{text-align:center;font-size:10px;color:#86948b;margin:12px 0 20px}.chat-message-row{display:flex;margin-bottom:12px}.chat-message-row.own{justify-content:flex-end}.chat-message{max-width:min(85%,600px);background:#fff;border:1px solid #e4ebe7;border-radius:12px 12px 12px 3px;padding:11px 13px 7px;box-shadow:0 2px 3px #26382e03}.chat-message-row.own .chat-message{background:#e3f2e9;border-color:#d9eadf;border-radius:12px 12px 3px 12px}.chat-sender{font-size:10px;color:#327557;display:block;margin-bottom:5px}.chat-message p{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message-time{display:flex;justify-content:flex-end;align-items:center;gap:5px;color:#87968e;font-size:9px;margin-top:4px}.chat-composer{background:#fff;border-top:1px solid #e5eae7;padding:16px 22px 12px;flex:none}.chat-compose-row{display:flex;gap:12px;align-items:flex-end}.chat-compose-row textarea{resize:none;min-height:60px;max-height:160px;font-size:13px;border-color:#e0e7e2;background:#fafcfb;box-shadow:none}.chat-compose-row button{flex:none;width:42px;height:42px;background:#287c53;margin-bottom:2px}.chat-compose-hint{display:flex;justify-content:space-between;gap:12px;color:#97a099;font-size:10px;padding-top:9px}.chat-empty{height:100%;min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;color:#87948c;padding:28px}.chat-empty h3{font-size:17px;font-weight:600;color:#35493d}.chat-empty p{font-size:12px;line-height:1.8;max-width:300px}.chat-empty-icon{width:68px;height:68px;background:#e8f2ec;border-radius:21px;display:flex;align-items:center;justify-content:center;color:#5a9173;margin-bottom:6px}.chat-welcome{flex:1}.chat-older{text-align:center;margin-bottom:12px}.chat-error{color:#a74036;background:#fff1ee;border-radius:7px;padding:10px 12px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.chat-error button{text-decoration:underline;font-weight:600}.chat-composer .chat-error{margin-bottom:10px}.chat-unavailable{font-size:12px;color:#87948c;text-align:center;padding:12px}.chat-new-below{position:absolute;bottom:132px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;border:1px solid #d5e4db;background:#fff;color:#287c53;border-radius:20px;padding:9px 15px;box-shadow:0 3px 16px #24483412;font-size:11px;white-space:nowrap}.chat-contacts{max-height:360px;overflow-y:auto}.chat-contact{width:100%;display:flex;gap:12px;align-items:center;padding:12px 6px;border-radius:8px;text-align:left}.chat-contact:hover{background:#f3f7f4}.chat-contact>span:nth-child(2){flex:1;min-width:0}.chat-contact strong{display:block;font-size:13px;overflow-wrap:anywhere}.chat-contact small{color:#859187;font-size:11px}.chat-contact>svg{color:#649178;margin-right:8px}.worker-tabs>[role=tablist]{max-width:100%;overflow-x:auto;justify-content:flex-start}.chat-contact:focus-visible,.chat-new-below:focus-visible,.chat-room:focus-visible{outline:2px solid #287c53;outline-offset:-2px}@media(min-width:1500px){.chat-shell{grid-template-columns:330px minmax(0,1fr)}}@media(max-width:900px){.chat-shell{grid-template-columns:260px minmax(0,1fr)}.chat-history{padding:15px}.chat-header{padding:16px}.chat-composer{padding:12px}.chat-compose-hint{font-size:9px}}@media(max-width:650px){.chat-shell{display:block;min-height:480px;height:calc(100dvh - 190px);max-height:720px}.chat-conversation,.chat-sidebar{height:100%}.chat-sidebar{border-right:0}.chat-conversation,.chat-mobile-detail .chat-sidebar{display:none}.chat-mobile-detail .chat-conversation{display:flex}.chat-header .chat-back{display:inline-flex;flex:none;margin-left:-8px}.chat-header{gap:9px;padding:12px}.chat-header h3{font-size:13px}.chat-message{max-width:90%}.chat-compose-hint span:first-child{display:none}.chat-compose-hint{justify-content:flex-end}.chat-list-heading{padding-top:18px}.chat-new-below{bottom:122px}.worker-main .chat-shell{height:600px;max-height:calc(100dvh - 130px)}}.chat-translator{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:9px 18px;background:#f0f6f2;border-bottom:1px solid #e0e9e3;font-size:11px;flex:none}.chat-translator-title{display:flex;align-items:center;gap:6px;color:#367652;font-weight:600}.chat-translator [data-slot=select-trigger]{max-width:230px;font-size:11px;background:#fff;flex:1;min-width:125px}.chat-auto-translate{display:flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}.chat-translator-details{color:#667d6e;text-decoration:underline;text-underline-offset:3px;margin-left:auto}.chat-translation-label{display:flex;align-items:center;gap:5px;font-size:9px;color:#437a5b;margin-bottom:4px}.chat-translation-actions{display:flex;align-items:center;font-size:10px;color:#4f7b60;margin-top:6px}.chat-translation-actions button{display:inline-flex;align-items:center;gap:4px;min-height:24px;text-decoration:underline;text-underline-offset:3px}.chat-translation-actions button:disabled{opacity:.65;cursor:wait}.chat-message-original{margin-top:9px;padding-top:8px;border-top:1px dashed #bcd1c3}.chat-message-original>span{display:block;font-size:9px;color:#6b7f71;margin-bottom:3px}.chat-message-original p{color:#63716a}.chat-translation-error{max-width:360px;font-size:10px;line-height:1.5;color:#a0563a;margin-top:5px}.chat-translation-info{display:grid;gap:14px;font-size:13px;line-height:1.7}.chat-translation-info a{color:#287c53;text-decoration:underline}.chat-translation-notice{padding:10px 12px;background:#fff7e7;border-radius:8px;color:#8a672b}.chat-translation-actions button:focus-visible,.chat-translator button:focus-visible{outline:2px solid #287c53;outline-offset:3px}.chat-translation-body p{unicode-bidi:plaintext}@media(max-width:900px){.chat-translator{padding:8px 12px;gap:7px}.chat-translator-title{font-size:10px}.chat-translator [data-slot=select-trigger]{max-width:190px}.chat-translator-details{font-size:10px}}@media(max-width:650px){.chat-translator-title{width:20px;overflow:hidden;white-space:nowrap;gap:8px;flex-shrink:0}.chat-translator-title svg{flex-shrink:0}.chat-translator-details{width:100%;text-align:right;font-size:10px}.chat-translator [data-slot=select-trigger]{max-width:none}.chat-translation-actions button{min-height:30px}}.chat-file-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px}.chat-file-actions span{font-size:11px;color:#697c73}.chat-file-actions button{gap:5px}.chat-draft-files{list-style:none;padding:0;margin:0 0 8px;display:grid;gap:6px;max-height:140px;overflow:auto}.chat-draft-files li{display:flex;gap:8px;align-items:center;min-width:0;padding:6px;background:#edf4ef;border-radius:8px}.chat-draft-files img,.chat-draft-files video{width:40px;height:40px;object-fit:cover;border-radius:4px;background:#000}.chat-draft-files li>span{flex:1;min-width:0}.chat-draft-files strong,.chat-file-download strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere;word-break:break-word}.chat-draft-files small,.chat-file-download small{display:block;font-size:11px;opacity:.75}.chat-draft-files button{flex:none;padding:7px;border-radius:4px}.chat-draft-files button:disabled{opacity:.4}.chat-message-files{display:grid;gap:8px;min-width:0}.chat-message-files:empty{display:none}.chat-file-card{max-width:280px;min-width:0;border:1px solid #728f7955;border-radius:8px;overflow:hidden}.chat-file-card img,.chat-file-card video{display:block;max-width:100%;max-height:300px;object-fit:contain;margin:auto;background:#000}.chat-file-card video{width:100%}.chat-file-download{display:flex;align-items:center;gap:7px;padding:9px;color:inherit;text-decoration:none;min-width:0}.chat-file-download svg{flex:none}.chat-file-download>span{min-width:0}.chat-file-download:hover{text-decoration:underline}.chat-upload-progress{font-size:12px;margin:0 0 6px;color:#33654f}.chat-draft-files button:focus-visible,.chat-file-card a:focus-visible{outline:2px solid #e6b55f;outline-offset:-2px}@media(max-width:520px){.chat-file-actions button{padding:5px 8px;font-size:12px}.chat-file-actions>span{width:100%}.chat-draft-files{max-height:100px}.chat-file-card{max-width:240px}}.chat-emoji-picker{width:min(296px,calc(100vw - 24px));padding:10px;z-index:85}.chat-emoji-picker>strong{display:block;font-size:12px;margin:0 0 8px}.chat-emoji-picker>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;max-height:240px;overflow:auto}.chat-emoji-picker button{font-size:24px;min-height:34px;border-radius:5px;line-height:1.4}.chat-emoji-picker button:focus-visible,.chat-emoji-picker button:hover{background:#e4f1e9;outline:2px solid #84af99}.chat-compose-hint{flex-wrap:wrap;align-items:center;gap:4px}.chat-compose-hint>button{height:26px;font-size:11px;gap:4px}.chat-deleted{opacity:.65;font-style:italic}.chat-message-time button{padding:4px;border-radius:4px}.chat-message-time button:hover{background:#dce7e0}