.bookPDFPreview{position:fixed;inset:0;z-index:32000;display:flex;flex-direction:column;box-sizing:border-box;height:100dvh;background:#0b3026;color:#f2e4bc;overflow:hidden;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.bookPDFPreview header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:8px 12px;align-items:center;flex:0 0 auto}
.bookPDFPreview h2{font:600 20px/1.25 Georgia,serif;margin:0;color:#f2e4bc}
.bookPDFPreview button{box-sizing:border-box;width:auto;min-width:44px;min-height:44px;height:auto;margin:0;padding:8px 12px;border:1px solid #dec67e77;border-radius:12px;background:#174b3b;color:#f3e4b5;font:650 15px/1.35 system-ui;white-space:normal}
.bookPDFPreview header button:first-child{padding-left:4px;border:0;background:transparent}
.bookPDFPreview .bookPDFSave{grid-column:1/-1;background:linear-gradient(115deg,#ead38a,#c4a149);color:#12382d;width:100%}
.bookPDFPreview nav{display:flex;gap:6px;align-items:center;padding:4px 12px 10px;flex:0 0 auto}
.bookPDFPreview nav button{padding:6px;font-size:20px}
.bookPDFPreview nav span{flex:1;text-align:center;font:600 14px/1.4 system-ui}
.bookPDFPreview>p{flex:0 0 auto;margin:0;padding:6px 14px;color:#e0e8d8;font:14px/1.4 system-ui}
.bookPDFPreview>p:empty{display:none}
.bookPDFViewport{position:relative;min-width:0;min-height:0;flex:1 1 auto;overflow:auto;overflow-anchor:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#273b33;padding:12px;box-sizing:border-box}
.bookPDFPages{position:relative;display:flex;flex-direction:column;align-items:center;gap:15px;width:100%;min-width:100%;padding-bottom:24px}
.bookPDFPage{position:relative;display:flex;align-items:center;justify-content:center;max-width:none;flex:0 0 auto;box-sizing:border-box;background:#f5f3ed;box-shadow:0 4px 20px #0006}
.bookPDFPage[data-rendered="false"]{background:linear-gradient(140deg,#deded7,#f9f8f4)}
.bookPDFPage canvas{display:block;max-width:none;margin:0 auto;background:transparent}
.bookPDFPage canvas:not([width]),.bookPDFPage canvas[width="0"]{visibility:hidden}
.bookPDFScrollTools span{font-size:14px;text-align:left}
.bookPDFViewport{scrollbar-gutter:stable}
.bookPDFPreview button:disabled{opacity:.45}.bookPDFPreview :focus-visible{outline:3px solid #ffedaa;outline-offset:2px}
@media(max-width:350px){.bookPDFPreview h2{font-size:18px}.bookPDFPreview header{grid-template-columns:1fr}.bookPDFPreview header button:first-child{text-align:left;padding:4px}.bookPDFPreview nav{gap:4px}.bookPDFPreview nav button{padding:4px}}

.bookPDFText{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:pre-wrap}

.bookPDFPreview [hidden]{display:none!important}
.bookPDFPreview .bookPDFReadMode{font-size:15px;padding-inline:8px}
.bookPDFReader{position:relative;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;padding:12px clamp(14px,4vw,32px) 28px;background:#f6f4ec;color:#19352b;font:1.1rem/1.65 system-ui,sans-serif;overflow-wrap:anywhere}
.bookPDFReaderPage{max-width:44rem;margin:0 auto;padding:1em 0}
.bookPDFReaderPage+.bookPDFReaderPage{border-top:1px solid #bdc8bd}
.bookPDFReaderPage h3{margin:0 0 .5em;color:#19352b;font:600 1.2em/1.35 Georgia,serif}
.bookPDFReaderPage p{margin:0 0 .5em;color:inherit;font:inherit}
.bookPDFReaderPage :focus-visible{outline-color:#2a5c48}
