/* Live presence in the selected chat header. */
.mail-page-viber .thread-peer-avatar{position:relative;overflow:visible!important;flex-shrink:0}
.mail-page-viber .thread-peer-avatar.is-online::after{content:"";position:absolute;right:0;bottom:0;width:11px;height:11px;border:2px solid var(--theme-surface,#fff);border-radius:50%;background:#20b46a;box-sizing:content-box}
.mail-page-viber .thread-peer-info{min-width:0}
.mail-page-viber .thread-peer-info #peerPresence{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal;line-height:1.4}
.mail-page-viber .thread-peer-info #peerPresence.is-online{color:#158348!important;font-weight:600}
.mail-page-viber #peerPresence.is-online::before{content:"";display:inline-block;width:7px;height:7px;background:currentColor;border-radius:50%;margin-right:5px;vertical-align:1px}
body.theme-night .mail-page-viber .thread-peer-info #peerPresence.is-online,body.theme-dark .mail-page-viber .thread-peer-info #peerPresence.is-online{color:#5ee69a!important}
body.theme-night .mail-page-viber .thread-peer-avatar.is-online::after,body.theme-dark .mail-page-viber .thread-peer-avatar.is-online::after{border-color:#15253b}

/* The existing chat header remains compact; its identity opens the profile. */
.mail-page-viber .thread-head>a.thread-peer-info{color:inherit;text-decoration:none;min-width:0;display:flex!important;flex:1;flex-direction:column}
.mail-page-viber .thread-head>a.thread-peer-avatar{display:block!important;flex:0 0 auto}
.thread-peer-info:focus-visible,.thread-peer-avatar:focus-visible,.message-peer-profile:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:8px}
.message-peer-profile{display:block;flex:0 0 auto;align-self:flex-end;line-height:0}
