/* SORA Project v135 — reliable, visually unified comment identities and avatar sizing. */

/* A frame is decoration, not a reason to shrink the user's photo. */
.avatar-frame-stack > .avatar-frame-photo,
.profile-public-card .profile-public-avatar.avatar-frame-stack > .avatar-frame-photo,
.profile-edit-card .avatar-frame-choice .avatar-frame-preview.avatar-frame-stack > .avatar-frame-photo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Keep the outer avatar boxes identical for framed and unframed users. */
.comment-avatar-column .avatar.avatar-frame-stack {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  flex: 0 0 48px !important;
}

.team-card .avatar.avatar-lg.avatar-frame-stack {
  width: 84px !important;
  height: 84px !important;
  min-width: 84px !important;
  min-height: 84px !important;
  flex: 0 0 84px !important;
}

.user-chip .avatar.avatar-frame-compact.avatar-frame-stack {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  flex: 0 0 38px !important;
}

/* Comment name now uses the same fully-rounded gradient pill as the header. */
.comment-identity-row {
  display: flex !important;
  align-items: center !important;
}

.comment-identity-row .comment-author,
.comment-identity-row .comment-author.nick-style {
  position: relative !important;
  isolation: isolate !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 25px !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--comment-nick-gradient, linear-gradient(110deg, #ffe38a, #ff8a5b 52%, #ff5f7e)) !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  color: #11151d !important;
  -webkit-text-fill-color: #11151d !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-shadow: 0 1px rgba(255, 255, 255, .22) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .38), 0 7px 16px rgba(0, 0, 0, .18) !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.comment-identity-row .comment-author::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  display: block !important;
  background: linear-gradient(110deg, rgba(255,255,255,.24), transparent 34%, transparent 68%, rgba(255,255,255,.12)) !important;
  pointer-events: none !important;
}

.comment-identity-row .comment-author.hover-effect,
.comment-identity-row .comment-author.hover-effect:hover,
.comment-identity-row .comment-author.hover-effect:focus-visible {
  filter: none !important;
  animation: none !important;
}

.comment-identity-row .comment-author.hover-effect::after {
  display: none !important;
}

@media (max-width: 680px) {
  .comment-avatar-column .avatar.avatar-frame-stack,
  .comment.comment-reply .comment-avatar-column .avatar.avatar-frame-stack {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }

  .comment-identity-row .comment-author,
  .comment-identity-row .comment-author.nick-style {
    min-height: 23px !important;
    padding: 4px 9px !important;
    font-size: 11px !important;
  }
}
