/* Alts: a line with other versions kept behind it says so in pencil in the left margin, level with its first row
   (the revision asterisk has the right margin). While the caret's in it, a tab there flips between them. */
.scene__body > .element[data-alts]:not([data-revised])::before {
  content: "alt";
  position: absolute;
  left: -2.6em;
  color: var(--pencil);
  font: italic 0.7rem/1.9 var(--font-ui);
  text-indent: 0;
  pointer-events: none;
}

.alts-tab {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.1rem;
  border: 1px solid var(--sheet-line);
  border-radius: 999px;
  background: var(--sheet);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
  font: 0.72rem/1 var(--font-ui);
  color: var(--sheet-ink);
}
.alts-tab[hidden] { display: none; }
.alts-tab__count { padding: 0 0.2rem; white-space: nowrap; }
.alts-tab__flip {
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.alts-tab__flip:hover, .alts-tab__flip:focus-visible { background: var(--sheet-tint); }
