.group {
  display: inline-flex;
  align-items: center;
}

/* Each avatar (except the first) overlaps the previous */
.avatar {
  margin-left: -8px;
  outline: 2px solid var(--bg-surface);
  border-radius: 50%;
}

.first {
  margin-left: 0;
}

/* Size-specific overlap amounts */
.sm .avatar {
  margin-left: -6px;
}

.lg .avatar {
  margin-left: -10px;
}

/* Overflow circle */
.overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-inset);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: -8px;
  outline: 2px solid var(--bg-surface);
}

.overflow_sm {
  width: 24px;
  height: 24px;
  margin-left: -6px;
}

.overflow_md {
  width: 28px;
  height: 28px;
  margin-left: -8px;
}

.overflow_lg {
  width: 40px;
  height: 40px;
  margin-left: -10px;
}
