.chat-badge{margin-left:auto;background:#e85652;color:#fff;border-radius:15px;padding:2px 7px;font-size:11px;font-weight:800}
.chat-badge[hidden],.chat-new[hidden],.chat-more[hidden],.chat-reply[hidden],.chat-drawer[hidden],.chat-notification[hidden]{display:none!important}
.need-chat-button{border:0;background:transparent;color:#205bbf;cursor:pointer;font:inherit;text-align:left;white-space:nowrap;padding:2px 3px}.need-chat-button:hover{text-decoration:underline}.need-chat-count{display:inline-block;margin-left:5px;padding:2px 5px;border-radius:9px;background:#deecff;color:#1757b5;font-size:10px}
.chat-layout{display:grid;grid-template-columns:260px minmax(330px,1fr) 235px;min-height:610px;height:min(76vh,870px);border:1px solid #d9e2f0;border-radius:8px;background:#fff;overflow:hidden}
.chat-list-panel,.chat-info-panel{min-height:0;overflow:auto;background:#fbfcff}.chat-list-panel{border-right:1px solid #e2e8f1}.chat-info-panel{border-left:1px solid #e2e8f1;padding:17px}.chat-info-panel h3{font-size:13px;margin:0 0 15px}.chat-info-panel p{font-size:12px;line-height:1.5;color:#52617b;margin:8px 0}.chat-list-head{position:sticky;top:0;background:#fbfcff;padding:12px;border-bottom:1px solid #e2e8f1;z-index:2}.chat-list-head input[type=search]{width:100%;height:35px;border:1px solid #cbd5e1;border-radius:5px;padding:0 9px}.chat-list-head button{border:0;background:transparent;color:#2459c4;cursor:pointer;margin-top:8px}.chat-sound-label{display:block;color:#53627a;font-size:11px;margin-top:9px}.chat-thread{display:block;width:100%;border:0;border-bottom:1px solid #e8edf5;background:transparent;text-align:left;padding:13px 12px;cursor:pointer;color:#1a2b48}.chat-thread:hover,.chat-thread.active{background:#eaf2ff}.chat-thread strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.chat-thread small{display:block;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#67758d;font-size:11px}.chat-thread .chat-badge{float:right;margin:0 0 0 5px}
.chat-conversation{position:relative;display:flex;flex-direction:column;min-height:0}.chat-conversation-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #e2e8f1;background:#fff}.chat-conversation-head h2{margin:0;font-size:16px}.chat-conversation-head p{margin:5px 0 0;font-size:11px;color:#61718a}.chat-timeline{flex:1;min-height:0;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:11px;background:#f6f9fe}.chat-message{max-width:88%;align-self:flex-start;border:1px solid #e2e8f1;border-radius:12px 12px 12px 3px;background:#fff;padding:9px 12px;overflow-wrap:anywhere}.chat-message.own{align-self:flex-end;background:#e4efff;border-color:#cbdff9;border-radius:12px 12px 3px 12px}.chat-message.system{max-width:100%;align-self:center;border:0;background:#e9eff8;color:#53627a;text-align:center;font-size:11px}.chat-message.mentioned{outline:2px solid #eec772}.chat-author{font-size:11px;font-weight:750;color:#2459c4}.chat-message p{margin:6px 0;white-space:pre-wrap;line-height:1.45;font-size:13px}.chat-message footer{display:flex;align-items:center;gap:10px;color:#71809a;font-size:10px}.chat-message footer button{background:transparent;border:0;color:#3b68bd;cursor:pointer;font-size:10px;padding:2px}.chat-quote{display:block;border-left:3px solid #92b5e4;background:#f1f6ff;padding:5px 8px;font-size:11px;color:#52617b;white-space:pre-wrap}.chat-image{display:block;max-width:min(310px,100%);max-height:180px;margin-top:8px;border-radius:5px;object-fit:contain;cursor:pointer}.chat-file{display:block;border:0;background:transparent;color:#2459c4;margin:7px 0 0;padding:0;cursor:pointer;text-decoration:underline;text-align:left;font-size:12px}
.chat-compose{display:flex;align-items:center;gap:9px;padding:12px;background:#fff;border-top:1px solid #e2e8f1}.chat-compose textarea{flex:1;min-width:0;max-height:140px;resize:vertical;border:1px solid #cbd5e1;border-radius:6px;padding:8px 10px;font:inherit;font-size:13px}.chat-attach{padding:6px;cursor:pointer;font-size:19px}.chat-more,.chat-new{align-self:center;border:1px solid #c5d8f5;background:#fff;color:#2459c4;border-radius:12px;padding:6px 14px;cursor:pointer}.chat-new{position:absolute;bottom:100px;z-index:2;box-shadow:0 4px 16px #aaa}.chat-reply{padding:8px 14px;background:#eaf2ff;color:#405577;font-size:12px}.chat-reply button{float:right;border:0;background:transparent;color:#2459c4;cursor:pointer}.chat-uploads{display:flex;flex-wrap:wrap;gap:7px;padding:0 12px}.chat-uploads:empty{display:none}.chat-upload{background:#e9f1ff;border-radius:6px;padding:5px 9px;font-size:11px}.chat-upload button{border:0;background:transparent;color:#b42318;cursor:pointer}
.chat-drawer{position:fixed;z-index:55;right:0;top:0;bottom:0;width:min(470px,100vw);display:flex;flex-direction:column;border-left:1px solid #cbd5e1;box-shadow:-12px 0 35px #15284830;background:#fff}.chat-drawer-actions{display:flex;gap:9px}.chat-drawer-actions button{border:0;background:transparent;color:#586986;font-size:23px;cursor:pointer}.chat-notification{position:fixed;z-index:80;right:18px;top:70px;width:min(345px,calc(100vw - 36px));padding:14px;border:1px solid #a9c5ed;border-radius:8px;background:#fff;box-shadow:0 8px 24px #203c6550;cursor:pointer;color:#172a4b}.chat-notification strong{display:block;margin-bottom:5px}.chat-notification small{display:block;color:#687993}.chat-settings-panel{padding:14px}.chat-settings-panel label{display:block;margin:10px 0;font-size:12px}.chat-settings-panel input{max-width:100px}.chat-info-panel select{width:100%;margin-bottom:7px}.chat-info-panel button{border:1px solid #b7c9e2;border-radius:5px;background:#fff;color:#2459c4;padding:5px 8px;cursor:pointer}.chat-grant{display:flex;justify-content:space-between;align-items:center;margin:6px 0;font-size:11px}
@media(min-width:1250px){body.chat-drawer-open .shell>main{margin-right:min(470px,34vw)}}
.chat-audit-content{white-space:pre-wrap;max-height:65vh;overflow:auto;padding:18px;font-size:12px}
.chat-notification{max-height:65vh;overflow-y:auto;padding:0}.chat-notification-entry{display:block;width:100%;border:0;border-bottom:1px solid #dde6f4;background:#fff;text-align:left;padding:14px;cursor:pointer;color:inherit}.chat-notification-entry:hover{background:#edf4ff}.chat-notification-entry p{margin:5px 0 0;font-size:12px;white-space:pre-wrap}
@media(max-width:1200px){.chat-layout{grid-template-columns:210px minmax(330px,1fr)}.chat-info-panel{display:none}}
@media(max-width:700px){.chat-layout{grid-template-columns:1fr;height:75vh}.chat-list-panel{max-height:180px}.chat-info-panel{display:none}}
