/* A reading preview, not server-side access control. */
.guest-preview { position: relative; }
/* Keep a full viewport of content clear; the fade occupies an extra band below it. */
body:not(.web-signed-in) .guest-preview-content { max-height: calc(100dvh + 240px); overflow: clip; overflow-anchor: none; }
.guest-gate { position: absolute; inset: auto 0 0; height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 20px 40px; background: linear-gradient(180deg, #eff8f400, #eff8f4ed 40%, #eff8f4 74%); z-index: 10; }
.guest-gate > svg { width: 30px; height: 30px; color: #438b81; }
.guest-gate .primary { border: 0; border-radius: 13px; padding: 13px 30px; background: #2b999e; color: white; font-size: 15px; font-weight: 600; box-shadow: 0 5px 16px #2b999e18; }
.guest-gate .primary:focus-visible { outline: 3px solid #ffd164; outline-offset: 4px; }
.guest-gate[hidden], .web-signed-in .guest-gate { display: none; }
.web-signed-in .guest-preview-content { max-height: none; overflow: visible; }
#mini-dialog { text-align: center; max-width: 380px; }
.mini-code-crop { width: 280px; height: 280px; max-width: 100%; margin: 20px auto; overflow: hidden; background: white; }
.mini-code-crop img { display: block; width: 330.2px; height: auto; max-width: none; margin: -22.4px 0 0 -19.9px; }
@media (max-width:820px) {
 body:not(.web-signed-in) .guest-preview-content { max-height: calc(100dvh + 220px); }
 .guest-gate { height: 220px; padding-bottom: 30px; }
}
@media (max-width:360px) {
 .mini-code-crop { width: 240px; height: 240px; }
 .mini-code-crop img { width: 283px; margin: -19.2px 0 0 -17px; }
}
