/*
 * {% pill %} and {% severity %}, and the tones they share with list-row icons. A status or severity
 * gets its tone from ui.TONES, so the same word is the same colour on every page.
 */

.pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: var(--space-0-5) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  white-space: nowrap;
}

.pill + .pill {
  margin-left: var(--space-1);
}

.severity {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.tone-success {
  background: var(--success-soft);
  color: var(--text-success);
}

.tone-warning {
  background: var(--warning-soft);
  color: var(--text-warning);
}

.tone-danger {
  background: var(--danger-soft);
  color: var(--text-danger);
}

.tone-info {
  background: var(--accent-soft);
  color: var(--text-accent);
}

.tone-neutral {
  background: var(--surface-sunken);
  color: var(--text-tertiary);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}
