/* Shared profile geometry. Never apply to app icons or attachment previews.
   Legacy .avatar max-width/max-height (38px) clipped later 50px mobile sizes. */
html body :is(.avatar,.header-avatar,.message-avatar,.profile-avatar-large,.group-preview-avatar,.forward-avatar,.pc-avatar,.sidebar-quick-avatar,.call-avatar) {
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  border-radius:50%!important;
  flex-shrink:0!important;
  align-self:center;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html body :is(.avatar,.header-avatar,.message-avatar,.profile-avatar-large,.group-preview-avatar,.forward-avatar,.pc-avatar,.sidebar-quick-avatar,.call-avatar) > img {
  display:block;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:inherit!important;
}
