/* Both editions use one fit-to-screen viewer, with no raw-file navigation. */
.offline-script-note{background:#f5e9d8;color:#3b3427;padding:18px 24px;font-size:20.02px;line-height:1.75}
.image-dialog{width:min(1250px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:14px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}
.image-dialog::backdrop{background:#10272ce6;backdrop-filter:blur(3px)}.image-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:14px}
.image-toolbar .image-close{border:1px solid var(--ink);background:var(--ink);color:white;padding:11px 17px;min-height:48px;font-size:17.16px}
.image-stage{display:flex;align-items:center;justify-content:center;overflow:auto;max-height:calc(100dvh - 120px);background:white;overscroll-behavior:contain}
.image-stage img{width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 130px);object-fit:contain}
@media(prefers-reduced-motion:reduce){.image-stage{scroll-behavior:auto}}

@media(max-width:760px){.image-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:10px;border:0}.image-toolbar{margin-bottom:10px}.image-stage{max-height:calc(100dvh - 80px)}.image-stage img{max-height:calc(100dvh - 90px)}}
