/* The token badges (tokens.mjs): red debt, gold credit, Chess Bender's colours.
   Shared by the Study page and the Students tab. */
.tokchip {
  display: inline-block;
  font-size: max(0.75rem, var(--text-min, 0.75rem)); font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-radius: 999px; padding: 0.0625rem 0.5rem;
  white-space: nowrap; cursor: help;
}
.tokchip.difficult { background: var(--lvl-0); color: var(--ui-accent-text, #fff); }
.tokchip.bender { background: var(--ui-gold); color: var(--ui-gold-text); }
/* Beside the level, wherever a level is drawn. */
.tokchips { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; vertical-align: middle; }
td .tokchips, .outcome .tokchips, #iSchedule .tokchips { margin-left: 0.375rem; }
/* A Library row on a phone: the status column must not squeeze the prompt, so
   "12 Language Bender tokens" may take two lines there. A touch screen shows no
   tooltip — the legend under the list says what the badges mean. */
.istatus .tokchips { justify-content: flex-end; }
.istatus .tokchip { white-space: normal; text-align: right; max-width: 9rem; }
.tokenlegend { margin-top: 0.5rem; }
