/* Xmegram v19.73.31 · avatar initials final centering guard.
 * Presentation-only: no avatar size/layout changes; only centers fallback initials and nested images.
 */
.avatar{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  align-items:center!important;
  justify-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  border-radius:50%!important;
  vertical-align:middle!important;
  transform:none!important;
}
.avatar:not(:has(img)){
  font-weight:850!important;
  font-variant-numeric:tabular-nums!important;
  letter-spacing:-.025em!important;
}
.avatar>img,
.avatar img{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:inherit!important;
  margin:0!important;
  transform:none!important;
}
.home-story-scroll .home-story,
.story-strip-clean .story{
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
}
.home-story-scroll .home-story-avatar,
.story-strip-clean .story-ring,
.profile-story-ring,
.profile-avatar-edit [data-profile-avatar-preview],
.space-avatar-edit [data-space-avatar-preview],
.top-user,
.story-viewers-sheet .story-viewer-list>a,
.search-result,
.direct-recipient,
.member-card,
.modern-member-card,
.home-chat-row,
.chat-item,
.guest-space-row,
.guest-message-card header,
.space-plan-title-row,
.discussion-choice-avatar,
.share-target-avatar{
  box-sizing:border-box!important;
  align-items:center!important;
}
.home-story-scroll .home-story-avatar,
.story-strip-clean .story-ring,
.profile-story-ring,
.profile-avatar-edit [data-profile-avatar-preview],
.space-avatar-edit [data-space-avatar-preview],
.share-target-avatar,
.discussion-choice-avatar{
  display:grid!important;
  place-items:center!important;
  justify-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
  transform:none!important;
}
.home-story-scroll .home-story-avatar>.avatar,
.story-strip-clean .story-ring>.avatar,
.profile-story-ring>.avatar,
.profile-avatar-edit [data-profile-avatar-preview]>.avatar,
.space-avatar-edit [data-space-avatar-preview]>.avatar{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  inset:auto!important;
  transform:none!important;
}
.home-story-scroll .home-story-avatar>.avatar:not(:has(img)),
.story-strip-clean .story-ring>.avatar:not(:has(img)),
.profile-story-ring>.avatar:not(:has(img)){
  display:grid!important;
  place-items:center!important;
  font-size:clamp(11px,24%,15px)!important;
  line-height:1!important;
}
.top-user .avatar,
.search-result .avatar,
.direct-recipient .avatar,
.story-viewers-sheet .story-viewer-list .avatar,
.member-card .avatar,
.modern-member-card .avatar,
.home-chat-row>.avatar,
.chat-item>.avatar,
.guest-space-row>.avatar,
.guest-message-card header>.avatar,
.space-plan-title-row>.avatar,
.discussion-choice-avatar>.avatar,
.share-target-avatar>.avatar{
  flex:0 0 auto!important;
  margin:0!important;
}

/* v19.73.37: keep failed upload bubble cancel/close always clickable. */
.tv-inline-upload-bubble .upload-bubble-cancel,
.upload-failed .upload-bubble-cancel,
.upload-pending-row .upload-bubble-cancel{
  pointer-events:auto!important;
  cursor:pointer!important;
  z-index:999!important;
  opacity:1!important;
  visibility:visible!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}
.upload-failed .upload-bubble-cancel{background:rgba(239,68,68,.92)!important;box-shadow:0 10px 26px rgba(239,68,68,.34)!important}
.upload-failed .upload-bubble-cancel:after,.upload-pending-row .upload-bubble-cancel:after{content:""!important;position:absolute!important;inset:-10px!important;border-radius:999px!important}
.upload-failed .tv-inline-upload-bubble{pointer-events:auto!important}
