.back-to-top {
  position: fixed;
  z-index: 5;
  right: calc(28px + env(safe-area-inset-right, 0px));
  bottom: max(calc(12px + env(safe-area-inset-bottom, 0px)), var(--device-banner-height, 0px));
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  touch-action: manipulation;
}

#record-drawer > .back-to-top {
  position: absolute;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.back-to-top svg {
  display: block;
  width: 30px;
  height: 30px;
  background: var(--accent, #b6ff00);
  border-radius: 6px;
}

.back-to-top.is-scrolling:not(:focus-visible) {
  visibility: hidden;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--ink, #111);
  outline-offset: -4px;
  border-radius: 6px;
}
