/* A person as their initials in a circle: small and quiet in dense rows (.is-sm, .is-xs), larger where the person is the
   subject (.is-md on a card, .is-lg beside who is signing in), and a stack of them (.avatars) whose rings overlap but never
   the initials. Also on the account pages (layout/auth) and the client hub. Design: docs/mocks/app (assets/css/billgrid.css .avatar). */
:is(body.bg-app, .auth, body.client-hub) .avatar.is-sm,
:is(body.bg-app, .auth, body.client-hub) .avatar.is-xs {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--sand-200);
  font-weight: 700;
  color: var(--sand-700);
}

:is(body.bg-app, .auth, body.client-hub) .avatar.is-sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
  box-shadow: 0 0 0 2px var(--bg-panel);
}

:is(body.bg-app, .auth, body.client-hub) .avatar.is-xs {
  width: 18px;
  height: 18px;
  font-size: 9px;
}

/* someone at the client (a client task's, the composer's To): their initials ringed in gold */
:is(body.bg-app, .auth, body.client-hub) .avatar.is-client {
  background: var(--bg-panel);
  color: var(--gold-deep);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

/* no one yet: a dashed ring, where a task's assignee would be */
:is(body.bg-app, .auth, body.client-hub) .avatar.is-empty {
  border: 1px dashed var(--sand-400);
  background: none;
  box-shadow: none;
  color: var(--text-soft);
}

:is(body.bg-app, .auth, body.client-hub) .avatars {
  display: inline-flex;
}

:is(body.bg-app, .auth, body.client-hub) .avatars .avatar + .avatar {
  margin-left: -3px;
}

/* the person a card is about (the signup story's client), and who is signing in (Google's "Continue as") */
:is(body.bg-app, .auth, body.client-hub) :is(.avatar.is-md, .avatar.is-lg) {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--sand-100);
  font-weight: 700;
  color: var(--ink);
}

:is(body.bg-app, .auth, body.client-hub) .avatar.is-md {
  width: 28px;
  height: 28px;
  font-size: var(--fs-xs);
}

:is(body.bg-app, .auth, body.client-hub) .avatar.is-lg {
  width: 40px;
  height: 40px;
  font-size: var(--fs-sm);
}

[data-theme="dark"] :is(body.bg-app, .auth, body.client-hub) :is(.avatar.is-md, .avatar.is-lg) {
  background: var(--bg-hover);
}
