.site-dialog.book-reader-dialog{background:#292824;width:100vw;height:100dvh;max-height:none;margin:0;overflow:hidden}.site-dialog.book-reader-dialog[open]{animation:.18s ease-out both reader-arrive}.book-reader,.reader-loading{color:#f4f4f0;background:#292824;width:100%;height:100%}.book-reader{flex-direction:column;display:flex}.book-reader button,.book-reader a,.reader-loading button{cursor:pointer;min-width:44px;min-height:44px}.book-reader button{font:inherit}.book-reader button:disabled{opacity:.35;cursor:default}.book-reader :is(button,a,input):focus-visible{outline-offset:3px;outline:3px solid #98a500}.reader-topbar{color:#20211d;background:#f4f4f0;border-bottom:1px solid #d1d1c9;flex-shrink:0;justify-content:space-between;align-items:center;gap:20px;padding:10px 24px;display:flex}.reader-heading{min-width:0}.reader-heading :is(h1,h2){font:700 18px/1.5 var(--font-body);overflow-wrap:anywhere;margin:0}.reader-heading p{color:#67685f;margin:1px 0 0;font-size:11px}.reader-tools{gap:6px;display:flex}.reader-tools :is(button,a){color:inherit;white-space:nowrap;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:3px 10px;font-size:10px;text-decoration:none;display:flex}.reader-tools button[aria-pressed=true]{background:#deff00}.reader-tools .reader-close{border-left:1px solid #cccdc4;margin-left:8px;padding-left:20px}.reader-body{flex:1;min-height:0;display:flex;position:relative}.reader-stage{background:radial-gradient(at 50% 35%,#37362f,#252420);flex-direction:column;flex:1;justify-content:center;align-items:center;min-width:0;min-height:0;padding:24px 32px 10px;display:flex;position:relative;overflow:hidden}.reader-book-host{filter:drop-shadow(0 14px 18px #0006);width:100%;min-height:0;transform:translateX(var(--reader-center,0px));flex:1}.reader-page{background:#fff8ed;overflow:hidden;box-shadow:inset 0 0 0 1px #0001}.reader-page img{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;width:100%;height:100%;display:block}.reader-page.opf-page--left:after,.reader-page.opf-page--right:after{content:"";pointer-events:none;position:absolute;inset:0}.reader-page.opf-page--left:after{background:linear-gradient(270deg,#251a101c,#0000 5%)}.reader-page.opf-page--right:after{background:linear-gradient(90deg,#251a1020,#0000 5%)}.reader-gesture-hint{letter-spacing:.06em;color:#bfbeb4;text-align:center;flex-shrink:0;margin:12px 0 0;font-size:11px}.reader-footer{color:#20211d;background:#f4f4f0;border-top:1px solid #d1d1c9;flex-shrink:0;grid-template-columns:100px minmax(80px,1fr) auto 100px;align-items:center;gap:24px;padding:12px 24px;display:grid}.reader-footer>button{background:0 0;border:1px solid #aaa99f;padding:0 16px;font-size:12px}.reader-footer>button span{vertical-align:-1px;font-size:21px}.reader-progress{accent-color:#8b9700;cursor:pointer;width:100%;min-width:0;height:44px}.reader-progress::-webkit-slider-runnable-track{background:#cbdc00;border-radius:4px;height:4px}.reader-progress::-webkit-slider-thumb{margin-top:-6px}.reader-page-form{font:12px/1.3 var(--font-body);white-space:nowrap;align-items:center;gap:6px;display:flex}.reader-page-form input{text-align:center;width:48px;height:44px;font:inherit;appearance:textfield;background:0 0;border:1px solid #c6c6bc;padding:4px}.reader-page-form input::-webkit-inner-spin-button{appearance:none}.reader-page-form button{text-underline-offset:4px;background:0 0;border:0;padding:4px 8px;font-size:11px;text-decoration:underline}.reader-sidebar{color:#20211d;background:#f4f4f0;border-right:1px solid #b4b3aa;flex-shrink:0;width:320px;padding:16px;overflow:auto}.reader-pane-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.reader-pane-heading h3{margin:0;font-size:16px}.reader-pane-heading button{background:0 0;border:0;font-size:28px}.reader-index-tabs{gap:8px;margin:12px 0;display:flex}.reader-index-tabs button{background:0 0;border:1px solid #b2b2a8;flex:1;font-size:12px}.reader-index-tabs button[aria-pressed=true]{background:#deff00;border-color:#20211d}.reader-toc,.reader-results{margin:0;padding:0;list-style:none}.reader-toc button,.reader-results button{text-align:left;background:0 0;border:0;border-bottom:1px solid #d5d5ca;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:12px 0;font-size:12px;line-height:1.6;display:flex}.reader-toc small{white-space:nowrap;color:#64645b}.reader-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.reader-thumbnails button{background:0 0;border:0;padding:0;font-size:11px}.reader-thumbnails img{width:100%;height:auto;margin-bottom:6px;display:block;box-shadow:0 2px 4px #0002}.reader-search-label{margin:16px 0;font-size:12px;display:block}.reader-search-label input{width:100%;height:46px;font:16px var(--font-body);background:#fff;border:1px solid #77796c;border-radius:0;margin-top:8px;padding:8px;display:block}.reader-result-count{font-size:12px;line-height:1.7}.reader-results button{display:block}.reader-results button>span{color:#636458;font-size:11px;display:block}.reader-results p{overflow-wrap:anywhere;margin:4px 0 0}.reader-zoom{background:#292824;align-items:flex-start;gap:0;width:100%;height:100%;display:flex;overflow:auto}.reader-zoom img{flex-shrink:0;width:989px;max-width:none;height:auto}.reader-message{text-align:center;align-self:center;max-width:440px;padding:24px;font-size:14px;line-height:1.9}.reader-message h3{font-size:20px}.reader-message button,.reader-message a{color:#20211d;background:#deff00;border:0;justify-content:center;align-items:center;margin:10px 6px;padding:8px 16px;display:inline-flex}.reader-notice{color:#20211d;background:#f4f4f0;padding:12px 56px 12px 12px;font-size:12px;position:absolute;bottom:16px;left:16px;right:16px}.reader-notice p{margin:0}.reader-notice>button{background:0 0;border:0;font-size:24px;position:absolute;top:0;right:0}.reader-notice label{margin-top:8px;display:block}.reader-notice input{width:100%;height:44px;font:14px var(--font-body);background:#fff;border:1px solid #888;margin-top:4px;padding:8px;display:block}.book-page{background:#292824;height:100dvh}.book-page-fallback{color:#f4f4f0;grid-template-columns:minmax(0,1fr) minmax(180px,400px);align-items:center;gap:48px;max-width:1120px;height:100%;margin:auto;padding:32px;display:grid;overflow:auto}.book-page-fallback h1{font-size:clamp(24px,4vw,42px);line-height:1.5}.book-page-fallback p{margin:12px 0;line-height:1.9}.book-page-fallback a{text-underline-offset:5px;align-items:center;width:fit-content;min-height:44px;margin-top:16px;display:flex}.book-page-fallback img{object-fit:contain;width:100%;height:auto;max-height:80dvh;display:block}.book-page .reader-tools,.book-page .reader-page{cursor:auto}.reader-loading{place-content:center;justify-items:center;gap:16px;padding:24px;display:grid}.reader-loading h2{font-size:18px}.reader-loading button{color:#20211d;background:#deff00;border:0;padding:8px 16px}@keyframes reader-arrive{0%{opacity:0}to{opacity:1}}@media (hover:hover) and (pointer:fine){.reader-tools :is(button,a):hover,.reader-toc button:hover,.reader-results button:hover{background:#e3e4da}.reader-tools button[aria-pressed=true]:hover{background:#deff00}.reader-footer>button:not(:disabled):hover{background:#deff00;border-color:#20211d}}@media (max-width:767px){.reader-topbar{flex-wrap:wrap;gap:7px;padding:10px 12px 6px}.reader-heading{justify-content:space-between;align-items:baseline;gap:8px;width:100%;display:flex}.reader-heading :is(h1,h2){font-size:13px}.reader-heading p{white-space:nowrap;font-size:10px}.reader-tools{justify-content:space-between;gap:0;width:100%}.reader-tools :is(button,a){min-width:44px;padding:4px 8px}.reader-tools .reader-close{margin-left:0;padding-left:10px}.reader-stage{padding:14px 12px 10px}.reader-gesture-hint{margin-top:10px;font-size:10px}.reader-gesture-hint span{display:none}.reader-footer{grid-template-columns:78px minmax(0,1fr) 78px;gap:2px 6px;padding:4px 12px 10px}.reader-progress{grid-area:1/1/auto/-1;height:44px}.reader-previous{grid-area:2/1}.reader-next{grid-area:2/3}.reader-page-form{grid-area:2/2;justify-content:center;gap:3px}.reader-page-form input{border:0;width:44px}.reader-page-form button{min-width:44px;padding:4px}.reader-footer>button{padding:0 8px}.reader-sidebar{z-index:10;width:min(340px,100%);position:absolute;inset:0 auto 0 0;box-shadow:12px 0 24px #0006}.book-page-fallback{padding:24px;display:block}.book-page-fallback img{width:min(100%,300px);margin:24px auto 0}}@media (prefers-reduced-motion:reduce){.site-dialog.book-reader-dialog[open]{animation:none}.reader-book-host{transition:none}}
