/* Shared dock geometry. Load after both legacy world styles. */
/* Old entrance transforms made fixed docks relative to differently sized
   world shells. World switching is instantaneous; keep both viewport-anchored. */
.pilcrow-app.space-app, .pilcrow-app.reader-app {
  transform: none !important;
  will-change: auto !important;
}
.space-app .figma-space-nav,
.reader-app.reader-v2 > #reader-shelf-nav.reader-shelf-nav--global {
  position: fixed !important;
  z-index: 999 !important;
  left: 50vw !important;
  right: auto !important;
  bottom: max(23px, env(safe-area-inset-bottom)) !important;
  width: min(315px, calc(100vw - 32px)) !important;
  max-width: none !important;
  height: 60px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border-radius: 37px !important;
  transform: translateX(-50%) !important;
  overflow: visible !important;
}
.space-app .figma-space-nav .figma-nav-center,
.reader-app.reader-v2 > #reader-shelf-nav button.figma-reader-nav-center {
  top: -19px !important;
  left: calc(50% - .5px) !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
}
/* Keep the same four slots even on a narrower phone. */
.space-app .figma-space-nav-side--left .figma-space-nav-item:first-child,
.reader-app.reader-v2 > #reader-shelf-nav .figma-reader-nav-side--left .figma-reader-nav-item:first-child { left: calc(50% - 133.5px) !important; }
.space-app .figma-space-nav-side--left .figma-space-nav-item:last-child,
.reader-app.reader-v2 > #reader-shelf-nav .figma-reader-nav-side--left .figma-reader-nav-item:last-child { left: calc(50% - 81.5px) !important; }
.space-app .figma-space-nav-side--right .figma-space-nav-item:first-child,
.reader-app.reader-v2 > #reader-shelf-nav .figma-reader-nav-side--right .figma-reader-nav-item:first-child { left: calc(50% + 36.5px) !important; }
.space-app .figma-space-nav-side--right .figma-space-nav-item:last-child,
.reader-app.reader-v2 > #reader-shelf-nav .figma-reader-nav-side--right .figma-reader-nav-item:last-child { left: calc(50% + 87.5px) !important; }
html.is-navigation-transitioning .figma-space-nav .figma-nav-center-static,
html.is-navigation-transitioning #reader-shelf-nav .figma-reader-nav-center-bg,
html.is-navigation-transitioning #reader-shelf-nav .figma-reader-nav-center-icon { visibility: hidden !important; }
.pilcrow-navigation-lottie { z-index: 1100 !important; }
.pilcrow-navigation-lottie .navigation-source-frame,
.pilcrow-navigation-lottie .navigation-animation-frame { position: absolute; inset: 0; display: block; }
.navigation-source-frame img { position: absolute; display: block; object-fit: contain; }
.navigation-source-frame.space-to-reader img { inset: 0; width: 64px; height: 64px; }
.navigation-source-frame .figma-reader-nav-center-bg { top: 1px; left: 1px; width: 62px; height: 62px; }
.navigation-source-frame .figma-reader-nav-center-icon { top: 21.5px; left: 22px; width: 20px; height: 21px; }
/* Preserve the live catalogue while restoring the approved Home composition. */
.space-view--home .space-home-catalog-card,
.space-view--home .space-reading-card--pending { top: 219px; left: 28px; border-radius: 29.077px; }
