.local-mirror-nav {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483647;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(680px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font: 600 13px/1.2 Arial, sans-serif;
  backdrop-filter: blur(10px);
}

.local-mirror-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: #202020;
  text-decoration: none;
  white-space: nowrap;
}

.local-mirror-nav a:hover,
.local-mirror-nav a:focus-visible {
  background: #ffe3ea;
  color: #b80034;
}

.local-mirror-nav a[aria-current="page"] {
  background: #ff2358;
  color: #fff;
}

a[data-missing-page],
button[disabled][aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .local-mirror-nav {
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-width: none;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
