#book-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid #d4ac64;
  border-radius: 999px;
  background: #102d4d;
  color: #fff;
  font: 700 .9rem/1.35 var(--v2-font, system-ui);
  text-decoration: none;
  box-shadow: 0 2px 8px #091d3826;
}
#book-to-top:hover { background: #174373; }
#book-to-top:focus-visible { outline: 3px solid #3084dc; outline-offset: 3px; }
#book-to-top[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}
@media print {
  #book-to-top, .v2-mast { display: none !important; }
}
