/* Top-right controls: the replay and theme buttons share one look. */
.ml-toolbar {
  position: fixed;
  z-index: 5;
  top: calc(env(safe-area-inset-top, 0px) + 6px);
  right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  gap: 8px;
}

ml-replay,
ml-theme-toggle { display: inline-flex; }

.ml-replay__btn,
.ml-theme-toggle__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--pill-bg);
  color: var(--pill-fg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}

.ml-replay__btn:focus-visible,
.ml-theme-toggle__btn:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.ml-replay__btn ml-icon,
.ml-theme-toggle__btn ml-icon { width: 20px; height: 20px; }
