.unreadbadge{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 6px;margin-left:7px;border-radius:20px;background:#df4b49;color:#fff;font-size:12px;font-weight:750;line-height:1;flex-shrink:0}.messenger{display:grid;grid-template-columns:285px minmax(0,1fr);height:calc(100dvh - 190px);min-height:460px;max-height:850px;overflow:hidden;background:#fff;border:1px solid #d9e3e9;border-radius:16px;box-shadow:0 8px 32px #20384908}.chat-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e1e8ed;background:#fbfcfe}.chat-sidebar-head{padding:20px 16px 12px}.chat-sidebar-head h3{margin:0 0 14px;font-size:20px}.chat-sidebar-head input{min-width:0;width:100%;padding:10px 12px;font-size:14px;background:#f0f4f8;border:0;border-radius:10px}.chat-list{overflow:auto;padding:4px 8px 12px}.chatperson{display:flex;gap:10px;align-items:center;width:100%;text-align:left;background:transparent;color:#203645;border:0;border-radius:11px;padding:12px 10px;margin:3px 0;min-height:68px}.chatperson:hover{background:#edf2f9}.chatperson.selected{background:#e6effe;color:#184fa5}.chatperson[hidden]{display:none}.chatavatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border-radius:13px;background:#dce7f3;color:#315b82;font-weight:750;font-size:15px}.selected .chatavatar{background:#cbdffd;color:#2057ac}.chatpersontext{min-width:0;flex:1}.chatpersontext b,.chatpersontext small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chatpersontext b{font-size:14px;line-height:1.4}.chatpersontext small{font-size:12px;color:#7b8b9c;margin-top:3px}.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{display:flex;gap:12px;align-items:center;padding:15px 22px;border-bottom:1px solid #e6ecf1}.chat-header h3{margin:0;font-size:17px}.chat-header small{color:#8291a0;font-size:12px}.chat-header .secondary{margin-left:auto;font-size:13px;padding:9px 12px}.messenger .teammessages{display:flex;flex-direction:column;align-items:flex-start;gap:12px;flex:1;min-height:0;max-height:none;overflow:auto;padding:24px;background:linear-gradient(160deg,#f4f7fb,#edf3f6);border:0;border-radius:0;scrollbar-width:thin}.messenger .teambubble{max-width:78%;padding:12px 15px;background:#fff;border:1px solid #e4ebf0;border-radius:15px 15px 15px 4px;box-shadow:0 2px 4px #20384904;margin:0;min-width:100px}.messenger .teambubble.own{align-self:flex-end;background:#e0edff;border-color:#d4e3f8;border-radius:15px 15px 4px 15px}.teambubble small{color:#3f678e;font-weight:650;font-size:12px}.teambubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;line-height:1.5;font-size:15px}.teambubble time{display:block;text-align:right;color:#7d8fa1;font-size:10px}.chatempty{margin:auto;text-align:center;color:#8a9cac}.chatempty span{font-size:44px;color:#9fb7cb}.chatempty h3{color:#4e677c;margin:10px 0}.chatempty p{font-size:14px}.chat-composer{padding:14px 20px 12px;background:#fff;border-top:1px solid #e1e8ee}.chat-composer textarea{display:block;width:100%;resize:vertical;min-height:54px;max-height:180px;border:0;background:#f5f7fa;border-radius:10px;padding:12px;font-size:15px;margin:0}.composer-tools{display:flex;align-items:center;gap:12px;margin-top:9px}.composer-tools small{color:#91a0ae;font-size:11px}.composer-tools .primary{margin-left:auto;padding:10px 16px;font-size:14px;border-radius:10px}.emoji-wrap{position:relative}.emoji-toggle{padding:4px 8px;border:0;background:transparent;color:#657e95;font-size:26px}.emoji-picker{position:absolute;bottom:45px;left:0;display:grid;grid-template-columns:repeat(5,40px);padding:10px;background:#fff;box-shadow:0 8px 35px #172e4b30;border:1px solid #dce6ef;border-radius:13px;z-index:5}.emoji-picker[hidden]{display:none}.emoji-picker button{padding:7px;border:0;background:transparent;font-size:22px;border-radius:8px}.emoji-picker button:hover{background:#edf3fc}.chat-back{display:none}.task-notices{display:grid;gap:8px;margin-bottom:14px}.task-notices:empty{display:none}.task-notice{display:flex;gap:12px;align-items:center;border:1px solid #cbdcf4;background:#edf4ff;border-radius:12px;padding:14px 18px}.notice-dot{width:9px;height:9px;border-radius:50%;background:#2762cc;flex-shrink:0}.task-notice>div{flex:1}.task-notice b{font-size:14px}.task-notice p{margin:4px 0;font-size:14px}.task-notice small{font-size:11px;color:#7c8b9d}.task-highlight{outline:3px solid #6199ed;outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
@media(max-width:700px){.messenger{grid-template-columns:1fr;height:calc(100dvh - 150px);min-height:400px}.chat-conversation{display:none}.conversation-open .chat-sidebar{display:none}.conversation-open .chat-conversation{display:flex}.chat-back{display:block}.chat-header{padding:12px;gap:8px}.chat-header h3{font-size:14px}.chat-header .secondary{padding:8px;font-size:11px}.messenger .teammessages{padding:14px}.messenger .teambubble{max-width:90%}.chat-composer{padding:10px}.composer-tools small{display:none}.task-notice{padding:10px;gap:6px}.task-notice b{font-size:12px}.task-notice button{padding:8px;font-size:12px}}

.chatattachment{display:block;padding:8px 10px;margin:5px 0;border:1px solid #c4d9df;border-radius:8px;background:#fff;overflow-wrap:anywhere}.chatfiles{font-size:13px;display:flex;align-items:center;gap:8px}.chatfiles input{font-size:12px;max-width:320px}
