.vocabulary-counts {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 4px 16px;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.vocabulary-counts[hidden] {
  display: none;
}

.vocabulary-counts > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 5px;
}

.vocabulary-counts > div:first-child {
  grid-column: 1 / -1;
  font-size: 14px;
}

.vocabulary-counts dt {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vocabulary-counts dd {
  margin: 0;
  color: #282c27;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 801px) {
  .topbar .language-controls {
    min-width: 0;
  }
}

@media (max-width: 800px) {
  .topbar .vocabulary-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
