.anr-reader-open{overflow:hidden}
.anr-modal{position:fixed;inset:0;width:var(--anr-width,99vw);max-width:100vw;height:var(--anr-height,98dvh);max-height:100dvh;margin:auto;padding:0;border:1px solid var(--anr-border,#777);border-radius:0;background:var(--anr-background,#171717);color:var(--anr-text,#fff);box-shadow:0 20px 80px #0009;font:15px/1.4 Arial,Helvetica,sans-serif}
.anr-modal::backdrop{background:var(--anr-overlay,#000);opacity:.8}
.anr-modal *{box-sizing:border-box}
.anr-shell{height:100%;display:flex;flex-direction:column;overflow:hidden}
.anr-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:6px 16px;border-bottom:1px solid var(--anr-border,#777);background:var(--anr-background,#171717)}
.anr-header h2{margin:0;color:var(--anr-text,#fff)!important;font:700 19px/1.3 Arial,Helvetica,sans-serif}
.anr-modal button,.anr-modal a{font:14px/1.3 Arial,Helvetica,sans-serif;letter-spacing:0;text-transform:none}
.anr-modal .anr-shell button{border:1px solid var(--anr-border,#777)!important;border-radius:0;background:var(--anr-button,#252525)!important;color:var(--anr-button-text,#fff)!important;padding:9px 13px;cursor:pointer;min-height:40px}
.anr-modal .anr-shell button:hover{background:var(--anr-button-hover,#444)!important;color:var(--anr-button-text,#fff)!important}
.anr-modal button:disabled{opacity:.4;cursor:default}
.anr-modal button:focus-visible,.anr-modal a:focus-visible,.anr-modal input:focus-visible{outline:2px solid #fff;outline-offset:3px}
.anr-modal .anr-close{font-size:20px;flex-shrink:0}
.anr-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 16px;background:var(--anr-toolbar,#111);color:var(--anr-toolbar-text,#fff)}
.anr-toolbar[hidden]{display:none}
.anr-toolbar label{display:flex;align-items:center;gap:6px;color:var(--anr-toolbar-text,#fff)!important}
.anr-toolbar a{color:var(--anr-toolbar-text,#fff)!important;text-decoration:underline;margin-left:8px}
.anr-toolbar .anr-total,.anr-toolbar .anr-zoom-level{color:var(--anr-toolbar-text,#fff)!important}
.anr-toolbar .anr-page-input{width:65px;min-height:40px;padding:6px;background:#fff;color:#111;border:1px solid #aaa;border-radius:0;font-size:15px}
.anr-status{flex:none;margin:0!important;padding:2px 16px;color:var(--anr-text,#fff)!important;font-size:12px;min-height:20px}
.anr-stage{flex:1;min-height:0;overflow:auto;padding:8px;overscroll-behavior:contain;background:var(--anr-stage-background,var(--anr-stage,#303030))}
.anr-scale{margin:0 auto;position:relative}
.anr-book{margin:0!important;transform-origin:top left}
.anr-page{position:relative;overflow:hidden;background:#fff;color:#111;border:1px solid #ddd}
.anr-page canvas{display:none;width:100%;height:100%;object-fit:contain;background:#fff}
.anr-page>span{display:flex;position:absolute;inset:0;justify-content:center;align-items:center;padding:20px;color:#555;font-size:13px;text-align:center}
.anr-page.anr-rendered canvas{display:block}
.anr-page.anr-rendered>span{display:none}
.anr-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.anr-template-light .anr-header{order:0}
.anr-template-light .anr-status{order:1}
.anr-template-light .anr-stage{order:2}
.anr-template-light .anr-toolbar{order:3;border-top:1px solid var(--anr-border,#aaa)}
.anr-template-studio{border-radius:12px}
.anr-template-studio .anr-shell{border-radius:11px}
.anr-template-studio .anr-shell button{border-radius:8px}
.anr-template-studio .anr-header{padding:8px 20px}
.anr-template-studio .anr-toolbar{gap:10px;padding:8px 20px}
.anr-report-button{display:inline-flex;align-items:center;gap:16px;color:inherit;text-decoration:none;font:inherit}
@media(max-width:767px){.anr-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0}.anr-header,.anr-toolbar{padding:10px 12px}.anr-header h2{font-size:16px}.anr-toolbar{gap:6px}.anr-toolbar a{font-size:12px;margin-left:4px}.anr-hint{font-size:11px;padding:7px 12px}}

.anr-template-midnight .anr-header{order:0}
.anr-template-midnight .anr-status{order:1}
.anr-template-midnight .anr-stage{order:2}
.anr-template-midnight .anr-toolbar{order:3;border-top:1px solid var(--anr-border,#777)}
.anr-template-midnight,.anr-template-midnight .anr-shell{border-radius:14px}
.anr-template-midnight .anr-shell button{border-radius:20px}
.anr-template-paper .anr-header{padding:12px 20px}
.anr-template-paper .anr-shell button{border-radius:4px}
.anr-template-contrast .anr-shell button{font-weight:700;border-width:2px!important}

.anr-stage{background-size:cover;background-position:center}
.anr-toolbar-top .anr-header,.anr-toolbar-bottom .anr-header{order:0}
.anr-toolbar-top .anr-toolbar{order:1;border-top:0}
.anr-toolbar-top .anr-status{order:2}
.anr-toolbar-top .anr-stage{order:3}
.anr-toolbar-bottom .anr-status{order:1}
.anr-toolbar-bottom .anr-stage{order:2}
.anr-toolbar-bottom .anr-toolbar{order:3;border-top:1px solid var(--anr-border,#777)}
.anr-modal .anr-download[hidden]{display:none!important}

.anr-book.anr-single{width:var(--anr-page-width)!important;max-width:var(--anr-page-width)!important}

.anr-modal [data-action="autoplay"][hidden],.anr-plain-reader .anr-page[hidden]{display:none!important}
.anr-plain-reader{display:block!important}
.anr-plain-reader .anr-page{display:block;margin:0 auto 12px;flex:none}
.anr-slider-reader .anr-page{margin-bottom:0}
