.jl-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: visible;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  color: var(--text-on-brand);
  background: var(--brand-500);
  border-radius: 50%;
  user-select: none;
}
.jl-avatar--square { border-radius: var(--radius-lg); }
.jl-avatar__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.jl-avatar__ring { box-shadow: 0 0 0 2px var(--surface-card); }
.jl-avatar__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 28%;
  height: 28%;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface-card);
}
.jl-avatar__status--online { background: var(--success); }
.jl-avatar__status--busy { background: var(--danger); }
.jl-avatar__status--away { background: var(--warning); }
.jl-avatar__status--offline { background: var(--neutral-400); }

.jl-avatar-group { display: inline-flex; }
.jl-avatar-group > * { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface-card); }
.jl-avatar-group > *:first-child { margin-left: 0; }
.jl-avatar-group__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: 50%;
}
