.chat-panel{display:grid;grid-template-columns:minmax(210px,280px) minmax(0,1fr);min-height:460px;height:calc(100dvh - 158px);background:#fff;border:1px solid #dce4e7;border-radius:8px;overflow:hidden;color:#233039}.chat-receipt{display:inline-flex;flex:0 0 15px;color:#5d737a}.chat-receipt.read{color:#126d57}.chat-icon{width:38px;height:38px;flex:0 0 38px;display:inline-grid;place-items:center;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#596d76}.chat-icon:not(:disabled):hover{color:#126d57;background:#eaf3f0}.chat-icon[aria-pressed=true]{color:#126d57;background:#e3f2ed}.chat-icon.primary,.chat-editor .primary,.chat-call-actions .primary{background:#167e65;color:#fff;border-color:#167e65}.chat-icon.primary:not(:disabled):hover,.chat-editor .primary:not(:disabled):hover{background:#126a55;color:#fff}.chat-rooms,.chat-conversation{min-width:0;min-height:0;display:flex;flex-direction:column}.chat-rooms{border-right:1px solid #e0e6e9;background:#fbfcfd}.chat-rooms>header,.chat-conversation-head{min-height:64px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 16px;border-bottom:1px solid #e3e9eb}.chat-rooms h2,.chat-conversation h2,.chat-dialog h2{margin:0;color:#1e2e36;overflow-wrap:anywhere}.chat-rooms-list{overflow:auto;padding:6px}.chat-rooms-list>button{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;min-height:62px;text-align:left;background:transparent;border:1px solid transparent;border-radius:6px;color:#263840}.chat-rooms-list>button:hover{background:#f0f4f5}.chat-rooms-list>.chat-room-current{background:#eaf4f1;border-color:#dbeae5}.chat-room-mark{width:36px;height:36px;border-radius:7px;display:grid;place-items:center}.chat-room-general{color:#12674f;background:#dceee7}.chat-room-direct{color:#3f6279;background:#e5edf2}.chat-room-group{color:#485e48;background:#e8efe2}.chat-room-channel{color:#825b30;background:#f2eadf}.chat-room-label{min-width:0}.chat-room-label strong,.chat-room-label small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-room-label small,.chat-conversation-head small,.chat-draft small,.chat-file-link small{color:#5e717a;font-size:12px}.chat-unread{min-width:20px;padding:1px 4px;background:#167e65;color:#fff;border-radius:5px;text-align:center;font-size:11px}.chat-conversation-head{justify-content:flex-start;background:#fff}.chat-conversation-title{flex:1 1 auto;min-width:0}.chat-conversation-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-panel small.chat-online{color:#14664e;font-weight:650}.chat-member-list small{display:block;color:#5e717a}.chat-edited{color:#586d76;white-space:nowrap}.chat-edit-message textarea{width:100%;min-height:88px;resize:vertical;padding:9px;border:1px solid #cdd9dd;border-radius:6px;font:inherit}.chat-header-tools,.chat-compose-tools{display:flex;align-items:center;gap:3px;flex:0 0 auto}.chat-icon.chat-back{display:none;position:relative}.chat-back-unread{position:absolute;top:6px;right:5px;width:8px;height:8px;border:1px solid #fff;border-radius:50%;background:#ad3946}.chat-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8a3d33;background:#fcf3f0;padding:2px 10px}.chat-notice span{overflow-wrap:anywhere}.chat-error{margin:0;color:#8a3d33;padding:8px 10px;overflow-wrap:anywhere}.chat-timeline{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:#f4f7f8;padding:14px clamp(10px,3%,30px) 22px}.chat-empty{color:#657982;display:grid;align-content:center;justify-items:center;gap:9px;min-height:100%}.chat-date{text-align:center;margin:17px 0 13px;color:#60737b;font-size:11px;font-weight:650}.chat-load{display:block;margin:0 auto 12px;background:transparent;color:#216450;border:0;padding:5px 8px}.chat-message{display:flex;align-items:center;gap:4px;margin:6px 0}.chat-message.chat-own{justify-content:flex-end}.chat-bubble{max-width:min(88%,560px);min-width:0;padding:8px 11px;border:1px solid #e4eaed;border-radius:8px;background:#fff;overflow-wrap:anywhere}.chat-own .chat-bubble{background:#e7f4ee;border-color:#d4e8dd}.chat-ai .chat-bubble{border-left:3px solid #3b8270}.chat-message-head{display:flex;align-items:center;gap:7px;font-size:11px;margin-bottom:3px;color:#486471}.chat-more{display:inline-grid;place-items:center;flex:0 0 22px;width:22px;height:22px;padding:0;border:0;border-radius:4px;color:#526b76;background:transparent}.chat-more:hover{background:#dceae5;color:#155b4a}.chat-message-head strong{min-width:0;flex:1}.chat-message-head time{color:#637983;white-space:nowrap}.chat-bubble p{margin:0;white-space:pre-wrap}.chat-bubble p+p{margin-top:4px}.chat-code{min-width:0;margin:5px 0 6px;border:1px solid #d5e0e5;border-radius:6px;background:#f2f6f8}.chat-code-head{display:flex;align-items:center;gap:7px;color:#405b69;padding:2px 5px 2px 9px;font-size:11px;border-bottom:1px solid #dbe5ea}.chat-code-head span{flex:1}.chat-code-head button{background:transparent;border:0;border-radius:4px;padding:5px;display:grid;color:#2d6558}.chat-code-head button:hover{background:#e1ece9}.chat-code pre{margin:0;padding:9px 10px;overflow:auto;overscroll-behavior-inline:contain;color:#263e49;font-size:12px}.chat-code small{display:block;color:#3a6659;font-size:11px;padding:0 9px 5px}.chat-quote{max-width:100%;min-width:0;display:block;background:#eaf1f2;border:0;border-left:3px solid #559382;border-radius:4px;color:#2a6356;padding:4px 8px;margin:2px 0 6px;text-align:start}.chat-quote strong,.chat-quote small,.chat-reply-draft small{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-forwarded{display:flex;align-items:center;gap:5px;color:#587184;font-size:11px;margin-bottom:4px}.chat-reply-draft{display:flex;align-items:center;gap:8px;border-bottom:1px solid #e0e9e5;padding:1px 2px 4px;margin-bottom:5px;color:#2b6c5c}.chat-reply-draft>div{flex:1;min-width:0}.chat-reply-draft small{color:#516b71}.chat-reaction-picker,.chat-reaction-counts{display:flex;flex-wrap:wrap;gap:5px;margin-block:4px}.chat-reaction-picker button,.chat-reaction-counts button{border:1px solid #d8e4e6;border-radius:5px;background:#fff;padding:4px 6px;color:#3f555e}.chat-reaction-picker button{width:37px;height:37px;font-size:17px}.chat-reaction-counts button{min-width:34px;padding:1px 4px;font-size:12px}.chat-reaction-picker button[aria-pressed=true],.chat-reaction-counts button[aria-pressed=true]{background:#e0f2eb;border-color:#a5cfbf}.chat-message-actions,.chat-forward-list{display:grid;gap:4px;margin-top:11px}.chat-message-actions button,.chat-message-actions a,.chat-forward-list button{min-height:40px;display:flex;align-items:center;gap:8px;background:#f7f9fa;border:1px solid #e8eef0;border-radius:5px;color:#324c56;padding:6px 9px;text-align:left;overflow-wrap:anywhere}.chat-forward-list{max-height:min(55dvh,370px);overflow:auto}.chat-message-actions .chat-delete{color:#8b4038}.chat-success{color:#225e50;background:#ebf6f0}.chat-bot-label,.chat-bot-status{color:#32715f;font-size:12px}.chat-bot-status{display:flex;align-items:center;gap:7px;padding:6px 12px;border-bottom:1px solid #e0eae6}.chat-attachment{max-width:100%;display:grid;gap:5px}.chat-transfer{display:grid;gap:4px;min-width:min(170px,100%);margin:4px 0;color:#41616d;font-size:12px}.chat-transfer>div{display:flex;justify-content:space-between;align-items:center;gap:5px}.chat-transfer .chat-icon{width:26px;height:26px;flex-basis:26px}.chat-transfer progress{width:100%;height:8px;accent-color:#167e65}.chat-pending-upload>img,.chat-pending-upload>video{display:block;max-width:min(220px,100%);max-height:170px;border-radius:5px}.chat-media-placeholder{display:grid;place-items:center;width:105px;height:54px;color:#60737b}.chat-media-retry{color:#215b48;background:transparent;border:1px solid #bccfc8;border-radius:5px;padding:5px 8px}.chat-image{max-width:100%;padding:0;display:block;background:transparent;border:0;text-align:start;-webkit-touch-callout:none}.chat-image img{display:block;max-width:min(100%,310px);max-height:250px;object-fit:contain;border-radius:5px}.chat-attachment video,.chat-draft video{width:min(100%,300px);max-height:230px;background:#232b30;border-radius:5px}.chat-attachment .chat-circle,.chat-draft .chat-circle{width:min(100%,160px);aspect-ratio:1;object-fit:cover;border-radius:50%}.chat-attachment audio,.chat-draft audio{width:min(100%,265px);height:38px}.chat-round{width:160px;max-width:100%}.chat-round>div{position:relative}.chat-round video{display:block}.chat-round .chat-icon{position:absolute;bottom:7px;left:50%;transform:translate(-50%);background:#293b42d9;color:#fff}.chat-round .chat-icon:not(:disabled):hover{background:#24453d;color:#fff}.chat-round input{height:22px;width:100%;padding:0;accent-color:#167e65}.chat-draft .chat-round{width:95px}.chat-file-link{display:flex;align-items:center;gap:8px;color:#225f52;min-width:0}.chat-file-link span{flex:1;min-width:0}.chat-file-link small,.chat-draft small{display:block}.chat-composer,.chat-readonly{border-top:1px solid #dee7e9;padding:8px 10px;background:#fff}.chat-readonly{display:flex;align-items:center;justify-content:center;gap:8px;color:#62737b;padding:14px}.chat-compose-line{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:4px}.chat-attach{position:relative}.chat-attach-menu{position:absolute;bottom:calc(100% + 6px);left:0;z-index:2;width:205px;padding:4px;border:1px solid #d5e0e3;border-radius:7px;background:#fff;box-shadow:0 5px 18px #263a4825}.chat-attach-menu button{width:100%;min-height:36px;display:flex;align-items:center;gap:8px;padding:6px 9px;border:0;border-radius:4px;background:#fff;color:#324c56;text-align:start}.chat-attach-menu button:hover{background:#eaf3f0}.chat-compose-line textarea{display:block;min-width:0;width:100%;box-sizing:border-box;height:38px;line-height:20px;font-size:16px;resize:none;overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere;white-space:pre-wrap;padding:8px 10px;border:1px solid #d6e1e5;border-radius:5px;color:#25383f;background:#fff}.chat-compose-line textarea:focus{outline:2px solid #a4d6c6;border-color:#55967e}.chat-draft,.chat-recording{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-bottom:1px solid #eef2f3;padding:6px 2px 10px;margin-bottom:7px}.chat-draft>span{flex:1;min-width:75px;overflow-wrap:anywhere}.chat-draft img,.chat-draft video{max-height:115px;max-width:135px;object-fit:contain;border-radius:5px}.chat-draft .chat-circle{width:95px;object-fit:cover}.chat-quality{display:flex;align-items:center;gap:7px;color:#4a626c;font-size:12px}.chat-quality select,.chat-photo-actions select{max-width:100%;min-width:0;border:1px solid #d5e0e3;border-radius:5px;background:#fff;color:#25383f;padding:6px}.chat-photo-editor{display:grid;gap:12px}.chat-photo-stage{min-height:140px;display:grid;place-items:center;background:#eff3f5;border-radius:6px}.chat-photo-stage canvas{max-width:100%;max-height:min(48dvh,420px);object-fit:contain}.chat-photo-actions,.chat-photo-actions label,.chat-photo-editor footer{display:flex;align-items:center;gap:8px;min-width:0}.chat-photo-editor footer{justify-content:flex-end}.chat-photo-editor footer button{padding:6px 10px}.chat-photo-position{display:grid;gap:5px}.chat-photo-position label{display:grid;grid-template-columns:115px minmax(0,1fr);align-items:center;font-size:12px}.chat-photo-position input{width:100%;accent-color:#167e65}.chat-recording .chat-stream video{object-fit:cover;width:80px;height:80px;border-radius:50%;background:#242d32}.chat-recording strong{color:#9a4239;font-variant-numeric:tabular-nums}.chat-dialog{width:min(calc(100% - 22px),490px);max-height:min(90dvh,720px);padding:0;border:1px solid #d5e0e3;border-radius:8px;background:#fff;color:#23333b}.chat-dialog::backdrop{background:#192c39a6}.chat-context-dialog{position:fixed;inset:auto;margin:0;width:min(calc(100% - 20px),286px);max-height:calc(100dvh - 20px)}.chat-context-dialog::backdrop{background:#192c394f}.chat-context-dialog .chat-reaction-picker{justify-content:space-between;gap:2px}.chat-dialog>section{padding:13px 15px 16px}.chat-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-editor{display:grid;gap:10px}.chat-editor button:not(.chat-icon),.chat-editor-footer button,.chat-call-actions button{min-height:38px;padding:7px 10px;display:inline-flex;gap:7px;align-items:center;justify-content:center;border:1px solid #d6e1e5;border-radius:5px;background:#fff;color:#324950}.chat-editor button.primary,.chat-call-actions button.primary{background:#167e65;color:#fff;border-color:#167e65}.chat-editor>label{display:grid;gap:4px}.chat-editor .chat-search{position:relative;display:flex;align-items:center}.chat-search svg{position:absolute;left:10px;color:#62767e}.chat-search input{padding-left:33px}.chat-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.chat-modes>button{line-height:1.2;min-width:0;padding-inline:3px;font-size:12px}.chat-modes>button[aria-pressed=true]{background:#e7f2ed;border-color:#a8ccbf;color:#176b55}.chat-selected{display:flex;flex-wrap:wrap;gap:4px}.chat-selected button{max-width:100%;overflow-wrap:anywhere}.chat-people,.chat-member-list{max-height:220px;min-height:30px;overflow:auto}.chat-people label,.chat-member-list>div{display:flex;align-items:center;gap:8px;min-height:38px;padding:2px 3px;border-bottom:1px solid #edf1f3}.chat-people input{flex:0 0 16px;width:16px;height:16px;margin:0;accent-color:#167e65}.chat-people label span,.chat-member-list span{overflow-wrap:anywhere;min-width:0;flex:1}.chat-editor-footer{border-top:1px solid #e5ecef;margin-top:9px;padding-top:9px}.chat-editor-footer button{color:#963f35}.chat-large-image{display:block;max-width:100%;max-height:62dvh;margin:7px auto;object-fit:contain}.chat-call{display:grid;gap:8px;position:fixed;z-index:95;bottom:18px;right:18px;width:min(360px,calc(100% - 24px));padding:12px;border:1px solid #d4e1e3;border-radius:8px;background:#fff;box-shadow:0 6px 24px #263a4824}.chat-call-title,.chat-call-actions{display:flex;align-items:center;gap:8px}.chat-call-title div{min-width:0;overflow-wrap:anywhere}.chat-call-title small{display:block;color:#5e717a}.chat-call-actions{justify-content:flex-end;flex-wrap:wrap}.chat-call-actions button.chat-hangup{background:#9d3834;border-color:#9d3834;color:#fff}.chat-call-video{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.chat-stream{min-width:0;position:relative}.chat-stream video{display:block;width:100%;height:auto;border-radius:5px}.chat-stream button{position:absolute;inset:auto 3px 3px auto;border:1px solid #b4c6ce;border-radius:5px;background:#fff;padding:4px}.chat-remote-audio video{height:1px}.chat-remote-audio .chat-stream{min-height:22px}@media(max-width:720px){.chat-panel{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 122px);min-height:420px}.chat-panel:not(.chat-panel-open)>.chat-conversation,.chat-panel-open>.chat-rooms{display:none}.chat-icon.chat-back{display:inline-grid;margin-left:-5px}.chat-conversation-head{padding-inline:8px}.chat-header-tools,.chat-compose-tools{gap:0}.chat-header-tools .chat-icon{flex-basis:34px;width:34px}.chat-rooms{border-right:0}.chat-call{right:12px;bottom:12px}}@media(max-width:365px){.chat-composer{padding-inline:5px}.chat-compose-line{gap:2px}.chat-compose-line .chat-icon{width:34px;flex-basis:34px}.chat-compose-line textarea{padding-inline:7px}}
