/* Freeze scrolling only while the eye is active. */
html[data-eye-scroll-lock] { overflow: hidden; overscroll-behavior: none; }
html[data-eye-scroll-lock="gutter"] { scrollbar-gutter: stable; }

/* The host app owns its logo image, typography and layout. */
a[data-n3x-hub-return]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
dialog.n3x-return-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}
dialog.n3x-return-dialog:not([open]) { display: none; }
dialog.n3x-return-dialog[open] { display: grid; place-items: center; }
dialog.n3x-return-dialog::backdrop { background: transparent; }
dialog.n3x-return-dialog canvas {
  display: block;
  width: calc(1.2 * min(78dvh, max(52vw, 64vmin)));
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  box-shadow: 0 0 0 150vmax black;
}
@media print {
  a[data-n3x-hub-return], dialog.n3x-return-dialog[open] { display: none; }
}
