.miqel-back-to-top {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #475569;
  border-radius: 50%;
  background: #202c39;
  color: #fff;
  box-shadow: 0 2px 8px #0003;
  cursor: pointer;
}
.miqel-back-to-top[hidden] { display: none; }
.miqel-back-to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 2px 0 0 2px;
  transform: translateY(2px) rotate(45deg);
}
@media (hover: hover) {
  .miqel-back-to-top:hover { background: #394b60; }
}
.miqel-back-to-top:focus-visible {
  outline: 2px solid #1d65b5;
  outline-offset: 3px;
}
