/* ── Avatars ── */

/* Floating app avatar (top-right nav) */
.app-avatar-wrap {
  position: fixed;
  top: var(--space-5);
  right: 28px;
  z-index: 200;
}
.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: var(--color-text-tertiary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xs);
  font-weight: var(--weight-semibold);
}
.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  object-fit: cover;
}

/* Avatar wrap */
.avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* Role label under avatar */
.avatar-role-label {
  font-size: 7px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: -2px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.avatar-role-label--host {
  color: var(--color-white);
  background: var(--color-accent);
}
.avatar-role-label--steward {
  color: var(--color-white);
  background: var(--color-sage-dark);
  letter-spacing: 0.3px;
}

/* Admin table avatar */
.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: var(--color-text-tertiary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xs);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
}
.admin-avatar img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  object-fit: cover;
}
.admin-avatar-wrap {
  position: relative;
  display: inline-block;
  width: 32px;
  vertical-align: middle;
  overflow: visible;
}
.admin-avatar-wrap .avatar-role-label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 7px;
}

/* Nominee avatar */
.nominee-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--color-white);
}
.nominee-avatar.avatar-curate {
  width: 52px;
  height: 52px;
  font-size: var(--text-base);
}
.nominee-avatar.avatar-curate.has-chips {
  margin: 5px;
}
.nominee-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-circle);
}

/* Chip avatar ring (poker-chip: thick dashed ridges + thin outer rim) */
.nominee-avatar.has-chips {
  position: relative;
}
.nominee-avatar.has-chips::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: var(--radius-circle);
  border: 3px dashed var(--color-accent);
  pointer-events: none;
}
.nominee-avatar.has-chips::before {
  content: "";
  position: absolute;
  top: -4.5px;
  left: -4.5px;
  right: -4.5px;
  bottom: -4.5px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-accent);
  pointer-events: none;
}

/* Dossier avatar */
.dossier-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dossier-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-circle);
}
.dossier-initials {
  color: var(--color-white);
  font-size: 24px;
  font-weight: var(--weight-semibold);
}
.dossier-avatar.has-chips {
  position: relative;
  margin: 5px;
}
.dossier-avatar.has-chips::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: -3.5px;
  right: -3.5px;
  bottom: -3.5px;
  border-radius: var(--radius-circle);
  border: 3.5px dashed var(--color-accent);
  pointer-events: none;
}
.dossier-avatar.has-chips::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-accent);
  pointer-events: none;
}
.dossier-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* Comment author avatar */
.comment-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
  margin-top: 2px;
}
.comment-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-circle);
}

/* Comment thread avatar */
.comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pick avatar */
.pick-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xs);
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--color-white);
}

/* Cohort avatar */
.cohort-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  background: var(--color-accent);
  color: var(--color-white);
  margin: 0 auto;
}
.cohort-avatar.empty {
  background: rgba(79, 109, 122, 0.1);
  color: transparent;
}

/* Chip breakdown avatar */
.chip-breakdown-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-4xs);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.chip-breakdown-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-circle);
}

/* Timeline mini avatar */
.timeline-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: var(--weight-semibold);
  background: var(--color-accent);
  color: var(--color-white);
  flex-shrink: 0;
}
