/* Four dock glyphs only. Existing button sizes, positions, colours and states stay intact. */
#app #bottom-controls button.ci-enhanced > svg.ci-glyph {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: .96;
  transition: opacity 150ms ease-out;
}
#app #bottom-controls button.ci-enhanced > svg.ci-glyph > * {
  vector-effect: non-scaling-stroke;
}
#app #bottom-controls button.ci-enhanced:is(#previous, #next) > svg.ci-glyph {
  stroke-width: 2;
}

/* Retire the old two-piece pseudo lock only after the replacement is present. */
#app #bottom-controls button.ci-enhanced.locked::before,
#app #bottom-controls button.ci-enhanced.locked::after {
  content: none;
}
#app #bottom-controls button.ci-enhanced > .ci-lock {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: -4px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid var(--tc-line, var(--line, #adc1e3));
  border-radius: 4px;
  background: var(--tc-surface, #17233b);
  color: var(--tc-muted, #bccae3);
  box-shadow: 0 1px 3px #0002;
  pointer-events: none;
}
#app #bottom-controls button.ci-enhanced > .ci-lock > svg.ci-lock-glyph {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
#app #bottom-controls button.ci-enhanced:focus-visible {
  outline: 2px solid var(--tc-cyan, #14d4ee);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  #app #bottom-controls button.ci-enhanced:not(:disabled):not([aria-disabled="true"]):hover > svg.ci-glyph {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app #bottom-controls button.ci-enhanced > svg.ci-glyph { transition: none; }
}
@media (forced-colors: active) {
  #app #bottom-controls button.ci-enhanced:focus-visible { outline-color: Highlight; }
  #app #bottom-controls button.ci-enhanced > .ci-lock {
    border-color: ButtonText;
    background: Canvas;
    color: ButtonText;
    box-shadow: none;
  }
}
