.back-to-top { cursor: pointer; position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 3; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 88px; min-height: 44px; padding: 8px 12px; border: 1px solid #c8c8c8; border-radius: 3px; background: #fff; color: var(--blue); font: 13px/1.5 var(--font); }
.back-to-top:hover { background: var(--selected); border-color: var(--blue); text-decoration: none; }
.back-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
mark.search-match { color: #111111; background: #f6e1de; font-weight: 600; padding: 0; border-radius: 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (max-width: 720px) {
  .back-to-top { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media print { .back-to-top { display: none; } }

.passage:has(> .edition-anchor) { position: relative; }
.edition-anchor { position: absolute; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.passage > .edition-anchor { top: 0; left: 0; scroll-margin-top: 90px; }
.book-directory > .edition-information { margin-left: 0; }

@media (max-width: 720px) {
  .has-compact-reader .back-to-top { position: static; margin: 0 20px 24px auto; display: flex; width: fit-content; }
}
