/* Shared header presence. Initials and the green indicator render immediately;
   downloading the optional photo never gates membership or animation. */
.crm-header-presence{display:flex;align-items:center;gap:0;min-width:0;isolation:isolate}
.crm-header-presence:not(.has-people){display:none}
.crm-presence-person{position:relative;display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;margin-left:-5px;border:2px solid var(--crm-company-header,#373738);border-radius:50%;background:#66666c;color:#fff;opacity:1;transform:scale(1);transition:opacity .2s ease,transform .2s ease,width .2s ease,margin .2s ease,border-width .2s ease}
.crm-presence-person:first-child{margin-left:0}
.crm-presence-person::after{content:"";position:absolute;z-index:3;right:-2px;bottom:-2px;width:8px;height:8px;border:1.5px solid var(--crm-company-header,#373738);border-radius:50%;background:#4bca7a}
.crm-presence-person img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;opacity:0;transition:opacity .15s}
.crm-presence-person.has-image img{opacity:1}
.crm-presence-initial{font:500 11px/1 var(--crm-font);text-transform:uppercase}
.crm-presence-person:is(.is-entering,.is-leaving){width:0;margin:0;border-width:0;opacity:0;transform:scale(.6)}
.crm-presence-person.is-leaving{pointer-events:none}
.crm-presence-more{display:grid;place-items:center;flex:none;min-width:24px;height:24px;padding:0 3px;margin-left:2px;border-radius:50%;background:rgba(255,255,255,.12);color:inherit;font:500 10px/1 var(--crm-font)}
@media(min-width:768px) and (max-width:1100px){
 .crm-header .crm-mobile-actions .crm-action-label{display:none!important}
 .crm-header .crm-mobile-actions>a{width:38px!important;min-width:38px;padding-inline:0!important}
 .crm-header .crm-mobile-actions{gap:3px}
 .crm-header .crm-mobile-actions .crm-action-search{width:180px!important}
}
@media(max-width:767px){
 .crm-header .crm-mobile-actions .crm-action-search{transition:none}
 .crm-header .crm-header__actions{gap:3px}
 .crm-presence-person{width:25px;height:25px}
 .crm-presence-more{min-width:20px;height:20px;font-size:9px}
 .crm-presence-person:nth-of-type(n+3){display:none}
}
@media(max-width:420px){
 .crm-header .crm-header__inner{gap:3px;padding-inline:8px}
 .crm-header .crm-logo{width:44px;min-width:44px}
 .crm-header .crm-logo img{width:44px}
 .crm-header .crm-mobile-actions{gap:1px}
 .crm-header .crm-mobile-actions>a,.crm-header .crm-mobile-actions .crm-action-search,.crm-header .crm-mobile-actions .crm-nav-search__toggle,.crm-header .crm-account summary{width:32px!important;min-width:32px!important}
 .crm-header .crm-account summary{display:flex;justify-content:center}
 .crm-presence-more{display:none}
 .crm-presence-person:nth-of-type(n+2){display:none}
}
@media(prefers-reduced-motion:reduce){.crm-presence-person,.crm-presence-person img{transition:none}}
