*{box-sizing:border-box}body{margin:0;color:#182820;background:#e7e6e0;font:15px/1.6 Tahoma,Arial,sans-serif;height:100dvh;display:flex;flex-direction:column}button,input,a{font:inherit}button,a,input{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #ba9254}button{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;border:1px solid #dedbd1;border-radius:6px;color:#315b4b;background:#fffdf8;cursor:pointer;padding:0 10px}button:hover{background:#f3f0e7}button:disabled{opacity:.4;cursor:default}.reader-header{display:flex;align-items:center;gap:24px;padding:16px 28px;background:#315b4b;color:#fffdf8;border-bottom:3px solid #ba9254}.reader-header>div{flex:1;min-width:0}.eyebrow{font-size:11px;color:#e1d5b6;letter-spacing:.2px}h1{font-size:18px;line-height:1.5;margin:3px 0 0;font-weight:400}.library-link{color:inherit;text-decoration:none;border:1px solid #ffffff55;border-radius:5px;padding:8px 12px;white-space:nowrap}.reader-header button{background:transparent;border-color:#ffffff55;color:white;flex-shrink:0}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.reader-toolbar{display:flex;justify-content:center;align-items:center;gap:28px;padding:10px 20px;background:#fffdf8;border-bottom:1px solid #d6d3ca;box-shadow:0 2px 6px #00000005;z-index:2}.tool-group{display:flex;gap:8px;align-items:center}.tool-group input{width:62px;height:38px;text-align:center;border:1px solid #dedbd1;border-radius:5px;background:#f8f6f0;color:#182820}.tool-group output{font-size:13px;min-width:44px;text-align:center}#total{direction:ltr;font-size:13px;white-space:nowrap}#reader{flex:1;min-height:0;overflow:auto;position:relative;padding:28px 16px;scrollbar-color:#a3afa5 #e7e6e0}#pages{width:max-content;min-width:100%;display:flex;flex-direction:column;align-items:center;gap:24px}.pdf-sheet{background:white;box-shadow:0 3px 16px #18282020;position:relative;flex-shrink:0}.pdf-sheet canvas{display:block;width:100%;height:100%}.pdf-sheet::before{content:attr(data-page);position:absolute;top:8px;right:10px;font-size:12px;color:#888}.pdf-sheet:has(canvas)::before{display:none}#status{text-align:center;margin:10vh auto;max-width:460px;padding:28px;background:#fffdf8;border:1px solid #ddd8cb;border-radius:8px}#status h2{font-size:20px;font-weight:400}#status p{color:#746c60}.loading-dot{display:inline-block;width:30px;height:30px;border:3px solid #e1d9ca;border-top-color:#315b4b;border-radius:50%;animation:spin 1s linear infinite}.reader-footer{display:flex;justify-content:space-between;gap:12px;background:#fffdf8;padding:9px 24px;position:relative;font-size:12px;color:#746c60}.reader-footer progress{position:absolute;top:0;left:0;width:100%;height:3px;border:0;accent-color:#ba9254}progress::-webkit-progress-bar{background:#e1d9ca}progress::-webkit-progress-value{background:#ba9254}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:600px){.reader-header{padding:12px;gap:12px}h1{font-size:15px}.eyebrow{font-size:10px}.library-link{font-size:12px;padding:7px}.reader-toolbar{gap:8px;flex-wrap:wrap;padding:8px}.tool-group{gap:5px}#reader{padding:16px 8px}.reader-footer{padding:8px 12px;font-size:10px}.tool-group button{font-size:13px;min-width:36px;height:36px}}@media(prefers-reduced-motion:reduce){.loading-dot{animation:none}}