/* Shared avatar/profile picture styles */
.sh-profile-avatar-block { display:flex; align-items:center; gap:14px; margin:6px 0 14px; flex-wrap:wrap; }
.sh-profile-avatar-wrap { width:72px; height:72px; border-radius:50%; overflow:hidden; background:#e9f1ed; color:#174d39; display:flex; align-items:center; justify-content:center; font:700 22px "Manrope",sans-serif; flex:0 0 72px; position:relative; }
.sh-profile-avatar-img { width:100%; height:100%; object-fit:cover; object-position:center; display:none; }
.sh-profile-avatar-fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.sh-profile-avatar-meta { display:flex; flex-direction:column; gap:6px; }
.sh-profile-avatar-status { margin:0; font:400 13px "DM Sans",sans-serif; color:#5f6d66; }
.sh-profile-avatar-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.sh-profile-avatar-btn { display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border-radius:8px; background:#174d39; color:#fff !important; font:600 13px "DM Sans",sans-serif; cursor:pointer; }
.sh-profile-avatar-input { display:none; }
.sh-profile-avatar-note { font:400 12px "DM Sans",sans-serif; color:#68736b; }

/* Generic avatar rendering for feeds/comments */
.sh-avatar, .sh-cpd-reply-avatar, #cpd6 {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
}
#cpd6 {
  width: 100%;
  height: 100%;
  display: block;
}
.sh-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}
.sh-avatar-initials {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  user-select: none;
}
.sh-avatar-img[hidden] { display: none !important; }
.sh-avatar-clickable { cursor: pointer; }

/* Avatar lightbox */
.sh-avatar-lightbox { position:fixed; inset:0; background:rgba(10,18,15,0.82); display:none; align-items:center; justify-content:center; z-index:9999; padding:20px; }
.sh-avatar-lightbox.is-open { display:flex; }
.sh-avatar-lightbox-inner { position:relative; max-width:min(92vw,720px); max-height:85vh; }
.sh-avatar-lightbox-img { max-width:100%; max-height:85vh; border-radius:14px; display:block; background:#fff; }
.sh-avatar-lightbox-close { position:absolute; top:-12px; right:-12px; width:36px; height:36px; border-radius:50%; border:none; background:#fff; color:#174d39; font-size:22px; line-height:1; cursor:pointer; box-shadow:0 4px 12px rgba(0,0,0,0.2); }
