/* Compact chat controls and a named, live availability roster. */
.shell .chat-drawer-head{gap:8px;padding:14px;flex:none}
.shell .chat-drawer-head>div.chat-header-actions,.chat-header-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}
.shell .chat-drawer-head>div:not(.chat-header-actions){min-width:0;flex:1}
.shell .chat-drawer-head h2{font-size:18px}
.shell .chat-drawer-head small{font-size:10px}
.chat-header-actions .btn{min-height:40px;padding:7px 10px;font-size:11px;white-space:nowrap;border-radius:12px;box-shadow:none!important}
.chat-header-actions .chat-new-button{width:40px;padding:0;font-size:23px;line-height:1}
.chat-archive-button [data-chat-archive-count]{font-size:10px;opacity:.65;margin-left:3px}
.shell .chat-drawer-head .chat-close-button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:9px!important;border:1px solid #c7cad3!important;border-radius:13px;background:#fff!important;color:#242b3b!important;box-shadow:0 2px 5px #202a4b0b!important}
.chat-close-button svg{display:block;width:24px;height:24px}
.shell .chat-drawer-head .chat-close-button:hover{background:#e6ecfa!important;border-color:#7187b8!important}
.chat-drawer .chat-drawer-glyph{display:none}
.chat-drawer>.chat-presence-strip,.conversation-full-list>.chat-presence-strip{flex:none;gap:6px;margin:0;padding:10px 14px 8px}
.chat-presence-strip .chat-presence-card{min-width:0;max-width:210px;min-height:38px;padding:6px 10px;gap:7px;border-radius:11px}
.chat-presence-strip .chat-presence-card strong{font-size:11px}
.chat-presence-strip .chat-presence-card small,.chat-presence-strip .chat-presence-card b{display:none}
.chat-presence-strip .chat-presence-card .workspace-mark{width:23px;height:23px;border-radius:6px}
.chat-presence-strip .workspace-mark img{max-width:21px;max-height:21px}
.chat-people-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:none;margin:0 14px;padding:8px 0 12px;border-bottom:1px solid var(--hm-line,#e0e1df)}
.chat-people-group{min-width:0}
.chat-people-group h3,.chat-list-label{margin:0 0 8px;font-size:11px;font-weight:650;color:var(--hm-muted,#646873);letter-spacing:0;text-transform:none}
.chat-people-group h3{display:flex;align-items:center;gap:5px}
.chat-people-group h3:before{content:'';width:6px;height:6px;border-radius:50%;background:#989ca4}
.chat-people-group.is-online h3:before{background:#329764}
.chat-people-group h3 span{font-size:10px;font-weight:500;color:var(--hm-muted,#646873)}
.chat-people-group ul{display:flex;flex-direction:column;gap:7px;list-style:none;padding:0;margin:0;max-height:105px;overflow-y:auto;scrollbar-width:thin}
.chat-people-group li{display:flex;align-items:center;gap:7px;min-height:28px;min-width:0;font-size:12px;color:var(--hm-ink,#252b37)}
.chat-people-group li>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-people-group .chat-person-avatar,.chat-people-group .avatar{width:28px;height:28px;flex:0 0 28px;font-size:10px}
.chat-people-group .chat-online-dot{width:7px;height:7px}
.chat-people-group li.chat-people-empty,.chat-availability-note{font-size:11px;color:var(--hm-muted,#646873)}
.chat-availability-note{grid-column:1/-1;margin:0}
.chat-people-group.is-unknown{grid-column:1/-1}
.chat-list-label{flex:none;margin:12px 16px 4px}
.chat-drawer>.chat-thread-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.conversation-full-list>.chat-list-filters{justify-content:flex-end}
@media(max-width:400px){.shell .chat-drawer-head{gap:5px;padding:11px}.shell .chat-drawer-head small{display:none}.chat-header-actions .btn{padding-inline:8px}.chat-header-actions .chat-new-button{padding:0}.chat-drawer .chat-header-actions{gap:3px}.chat-people-roster{margin-inline:12px}}
@media(max-height:600px){.chat-people-group ul{max-height:63px}.chat-people-roster{padding-block:5px}.chat-drawer>.chat-photo-prompt{display:none}}
