fieldset{border:0;margin:0;padding:0;min-width:0}fieldset:disabled{opacity:.45}.back-link{font-size:12px;color:#466d56}.secondary{width:100%;border:1px solid #dce3df;background:white;padding:10px;border-radius:8px;margin-top:8px;color:#5b7264;font-size:11px}#reader-stage{min-height:560px}#empty-book{text-align:center;padding:50px 20px;max-width:400px;color:#7f9181}#empty-book>span{font-size:64px;color:#849e88}#empty-book h2{font-family:Georgia,serif;font-size:25px;font-weight:400;color:#365943}#empty-book p,#empty-book a{font-size:12px}#empty-book a{text-decoration:underline}#document-name{max-width:65%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#pdf-book{margin:auto}.pdf-page{background:white;overflow:hidden;position:relative}.pdf-page>img{position:absolute;width:100%;height:100%;object-fit:contain;inset:0;pointer-events:none}.pdf-page.loading-page{display:grid;place-items:center;color:#708875;font-size:12px}.stat-overlay{position:absolute;z-index:3;max-width:75%;padding:16px 20px;background:#214d40f2;color:#fffaf0;border:1px solid #9aaa84;border-radius:12px;box-shadow:0 8px 24px #172e3025;pointer-events:none;overflow-wrap:anywhere}.stat-overlay strong{display:block;font-size:clamp(22px,3vw,42px);font-weight:500;letter-spacing:-1px}.stat-overlay span{display:block;font-size:11px;margin-top:5px;color:#d0dfc1}.bottom-right{bottom:6%;right:6%}.bottom-left{bottom:6%;left:6%}.top-right{top:6%;right:6%}.top-left{top:6%;left:6%}#reader-error{font-size:12px;color:#a23924;background:#fff4ef;padding:15px;margin:15px;border-radius:8px}.preview .controls .back-link{margin-left:auto;font-size:11px}#pdf-file{font-size:11px;padding:8px}#pdf-file::file-selector-button{border:0;background:#eaf0e8;border-radius:4px;padding:7px;margin-right:7px;color:#35543e}@media(max-width:720px){#reader-stage{min-height:450px}.stat-overlay{padding:12px 16px}.stat-overlay strong{font-size:30px}}

/* Book-sized preview and immersive reading mode. */
#reader-stage{height:75dvh;min-height:0;padding:0;overflow:hidden}#pdf-book{width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;margin:0}#reader-stage .stf__wrapper{width:100%!important;height:100%!important;padding-bottom:0!important}.preview:fullscreen,.preview.reading-fullscreen{position:fixed;inset:0;width:100vw;height:100dvh;border:0;border-radius:0;z-index:1000;background:#252a27}.preview:fullscreen #reader-stage,.preview.reading-fullscreen #reader-stage{height:100%;padding:0}.preview:fullscreen .preview-top,.preview.reading-fullscreen .preview-top{display:none}.preview:fullscreen .controls,.preview.reading-fullscreen .controls{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:max-content;max-width:100%;z-index:10;background:#eef3e6e8;border-radius:12px;padding:8px;opacity:.2}.preview:fullscreen .controls:hover,.preview:fullscreen .controls:focus-within,.preview.reading-fullscreen .controls:hover,.preview.reading-fullscreen .controls:focus-within{opacity:1}.preview:fullscreen .back-link,.preview.reading-fullscreen .back-link{display:none}@media(hover:none){.preview:fullscreen .controls,.preview.reading-fullscreen .controls{opacity:.85}}


/* Keep book navigation centered within the preview. */
.preview .controls{justify-content:center}

body:has(.preview.reading-fullscreen){overflow:hidden}
body:has(.preview.reading-fullscreen) .topbar{display:none}
/* Opening a PDF: red progress bar under the status text. */
#load-status.is-loading{background-image:linear-gradient(#e03131,#e03131),linear-gradient(#fbd5d5,#fbd5d5);background-size:var(--load-progress,0%) 6px,100% 6px;background-position:left bottom,left bottom;background-repeat:no-repeat;padding-bottom:14px;transition:background-size .25s ease}
