html.atlas-viewer-open{overflow:hidden}
.atlas-figure-open{display:block;margin:.65rem 0 0}
dialog.atlas-viewer{width:min(64rem,96vw);height:min(54rem,94vh);height:min(54rem,94dvh);max-width:96vw;max-height:94dvh;padding:0;overflow:hidden;border:1px solid #cbc2db;border-radius:12px;color:#29213c;background:white}
dialog.atlas-viewer[open]{display:grid;grid-template-rows:auto minmax(6rem,1fr) auto auto}
.atlas-viewer::backdrop{background:rgba(17,13,27,.76)}
.atlas-viewer header,.atlas-viewer-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:.55rem .85rem;background:white}
.atlas-viewer header{justify-content:space-between;border-bottom:1px solid #ded8e6}
.atlas-viewer header h2{flex:1 1 9rem;font-size:1rem;margin:0;line-height:1.2}
.atlas-viewer .btn{font-size:.86rem;min-height:40px;padding:.32rem .75rem}
.atlas-viewer-actions{border-bottom:1px solid #ded8e6}
.atlas-viewer [hidden]{display:none!important}
.atlas-viewer-stage{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;background:#211d27}
.atlas-viewer-surface{width:100%;height:100%;max-width:none;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0}
.atlas-viewer-surface.magnified{width:200%;height:200%}
.atlas-viewer .atlas-viewer-surface>img,.atlas-viewer .atlas-viewer-surface>svg{display:block;width:100%;height:100%;max-width:none;max-height:none;border:0;padding:0;margin:0;object-fit:contain}
.atlas-viewer .atlas-viewer-surface.rvi-plate,.atlas-viewer .atlas-viewer-surface.atlas-diagram{background:#f8f6fb}
.atlas-viewer-caption{max-height:26vh;max-height:26dvh;overflow:auto;padding:.6rem .9rem;overscroll-behavior:contain}
.atlas-viewer-caption:empty{display:none}
.atlas-viewer-caption p,.atlas-viewer-caption ol{margin:.25rem 0}
.atlas-viewer-caption small{display:block}
@media(max-width:600px){dialog.atlas-viewer{width:98vw;max-width:98vw;height:94dvh}.atlas-viewer .btn{min-height:44px}.atlas-viewer header,.atlas-viewer-actions{gap:.35rem;padding:.4rem .6rem}}
@media(max-height:480px){.atlas-viewer-caption{max-height:22dvh}.atlas-viewer-actions{padding-block:.15rem}.atlas-viewer header{padding-block:.2rem}}
