:host {
  display: block;
  --avatar-size:40px;
  --avatar-shape:50%;
}

.avatar {
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: #c0c4cc;
  width: var(--avatar-size);
  height: var(--avatar-size);
  line-height: var(--avatar-size);
  font-size: 14px;
  border-radius: var(--avatar-shape);
  -webkit-border-radius: var(--avatar-shape);
  -moz-border-radius: var(--avatar-shape);
  -ms-border-radius: var(--avatar-shape);
  -o-border-radius: var(--avatar-shape);
}

img {
  width: var(--avatar-size);
  height: var(--avatar-size);
}

b {
  font-size: calc(var(--avatar-size) / 1.5);
}