.wi-avatar{box-sizing:border-box;border-radius:var(--radius-full);border:var(--border-1) solid var(--border-subtle);background-color:var(--brand-primary);color:var(--text-primary-inverse);font-family:var(--font-family-sans);font-weight:var(--font-weight-semibold);-webkit-user-select:none;user-select:none;flex:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.wi-avatar--sm{width:var(--size-avatar-sm);height:var(--size-avatar-sm);font-size:10px}.wi-avatar--md{width:var(--size-avatar-md);height:var(--size-avatar-md);font-size:var(--font-size-xs)}.wi-avatar--lg{width:var(--size-avatar-lg);height:var(--size-avatar-lg);font-size:var(--font-size-sm)}.wi-avatar--xl{width:var(--size-avatar-xl);height:var(--size-avatar-xl);font-size:var(--font-size-base)}.wi-avatar--2xl{width:var(--size-avatar-2xl);height:var(--size-avatar-2xl);font-size:var(--font-size-xl)}.wi-avatar__img{object-fit:cover;width:100%;height:100%}

/* Tints (built here): a pale background and dark initials, without the border. */
.wi-avatar--turquoise,
.wi-avatar--blue-gray,
.wi-avatar--orange,
.wi-avatar--blue {
  border: 0;
  font-weight: var(--font-weight-bold);
}
.wi-avatar--turquoise {
  background-color: var(--turquoise-100);
  color: var(--turquoise-900);
}
.wi-avatar--blue-gray {
  background-color: var(--blue-gray-100);
  color: var(--blue-gray-700);
}
.wi-avatar--orange {
  background-color: var(--orange-100);
  color: var(--orange-900);
}
.wi-avatar--blue {
  background-color: var(--blue-100);
  color: var(--blue-800);
}

/* A tile (built here): an agency's initials on a rounded square, in the brand's turquoise, not a person's circle. */
.wi-avatar--tile {
  border: 0;
  border-radius: var(--radius-lg);
  background-color: var(--brand-accent);
  color: var(--brand-primary);
  font-weight: var(--font-weight-bold);
}

/* An avatar's icon in place of initials, round or a tile: icon-sized, inside its shape, never the shape's own size, and a
   block, so it centres in the shape instead of sitting on a line of text's baseline. */
.wi-avatar svg {
  display: block;
  width: var(--size-icon-xs);
  height: var(--size-icon-xs);
}

/* A small tile keeps a square's corners: the larger radius would round it into a circle. */
.wi-avatar--tile.wi-avatar--sm {
  border-radius: var(--radius-md);
}

/* The plain tone (built here), for a tile: white with a hairline, its code in grey. */
.wi-avatar--tile.wi-avatar--plain {
  border: var(--border-1) solid var(--border-subtle);
  background-color: var(--background-surface);
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
}

.wi-avatar--tile.wi-avatar--plain svg {
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
}

/* The light tone (built here), for a tile: a pale turquoise with a hairline, its code or icon in turquoise. An agency's
   small tile in an advisor's header, and the independent advisor's in its place. */
.wi-avatar--tile.wi-avatar--light {
  border: var(--border-1) solid var(--turquoise-200);
  background-color: var(--turquoise-100);
  color: var(--turquoise-700);
}

/* The muted tone (built here): grey, for what is over: an agency someone was in before, an advisor who left. */
.wi-avatar--muted {
  background-color: var(--gray-100);
  color: var(--gray-500);
}
