/* taoke default user avatar: cartoon original, not the shop mark or favicon.
   PNG (RGBA) is the used file so the existing #d8f5f5 liner shows through the alpha.
   WebP is published alongside but is opaque, so CSS does not prefer it.
   Admin "guan" badge stays the Taoke four-color circular mark on teal, not this portrait.
   Does not change the coastal meadow background file or its hashed name.
*/

html body.new-store-page .user-menu-avatar,
html body .new-store .user-menu-avatar,
html body.new-store-page .workspace-avatar,
html body .new-store .workspace-avatar,
.user-menu-avatar,
.workspace-avatar {
  position: relative !important;
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  background-color: #d8f5f5 !important;
  background-image: url("/assets/taoke-user-avatar-2ce9dca4bead.png") !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.new-store-page .user-menu-avatar::after,
html body .new-store .user-menu-avatar::after,
html body.new-store-page .workspace-avatar::after,
html body .new-store .workspace-avatar::after,
.user-menu-avatar::after,
.workspace-avatar::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;
  background: url("/assets/taoke-user-avatar-2ce9dca4bead.png") center / cover no-repeat !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.user-menu-avatar > *,
.workspace-avatar > * {
  opacity: 0 !important;
}

/* Undo earlier overlay that painted the default user portrait on the admin badge.
   The admin badge has no portrait file; teal field + Taoke shop mark only. */
html body.new-admin-page .admin-shell .admin-avatar,
html body.new-admin-page .admin-shell .admin-brand > span {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
  background: #238a9b !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.new-admin-page .admin-shell .admin-avatar > *,
html body.new-admin-page .admin-shell .admin-brand > span > * {
  opacity: 0 !important;
}
html body.new-admin-page .admin-shell .admin-avatar::after,
html body.new-admin-page .admin-shell .admin-brand > span::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;
  background: url("/assets/taoke-brand-bbf191d6a47d.png") center / cover no-repeat !important;
  background-image: image-set(url("/assets/taoke-brand-bbf191d6a47d.webp") type("image/webp"), url("/assets/taoke-brand-bbf191d6a47d.png") type("image/png")) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
