:root{font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;color:#173c28;background:#f6f9f5;--green:#007a3c}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,a,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,select{font:inherit}button{border:0;background:transparent;color:#235236;cursor:pointer;min-width:44px;height:44px;border-radius:8px;font-size:25px}button:hover{background:#e4f1e7}button:disabled{opacity:.3;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid #168349;outline-offset:-2px}[hidden]{display:none!important}.app{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.app.expanded{position:fixed;inset:0;z-index:99999;background:white}.site-header{display:flex;align-items:center;gap:20px;flex-shrink:0;min-height:58px;padding:8px 22px;background:#fff;border-bottom:2px solid var(--green)}.brand{display:flex;flex-shrink:0}.brand img{width:155px;height:auto}.site-header h1{font-size:14px;font-weight:500;color:#617769;margin:0;flex:1}.download{font-size:12px;font-weight:600;border:1px solid #c8ddcf;padding:10px 15px;border-radius:7px;white-space:nowrap}.save-pdf{background:var(--green);color:white;border-color:var(--green)}.workspace{display:flex;flex:1;min-height:0;min-width:0}.reading-area{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}main{position:relative;flex:1;min-height:0;min-width:0;background:#edf3ed}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}#message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f6faf6;z-index:2;text-align:center;padding:20px}#message img{width:180px;max-width:60%;height:auto;margin-bottom:15px}#message p{font-size:13px;color:#55745b}#message progress{accent-color:var(--green);width:200px;height:5px}#retry{font-size:14px;border:1px solid #89b998;padding:0 18px}.reader-footer{flex-shrink:0;padding:5px 18px 7px;border-top:1px solid #cadfce;background:#fff}.footer-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.navigation,.tools{display:flex;align-items:center;gap:0}.page-label{display:flex;align-items:center;font-size:12px;white-space:nowrap}select{background:transparent;color:inherit;border:0;padding:10px 2px;max-width:50px;height:44px;cursor:pointer}select option{background:white;color:#173c28}#total{color:#6e8b76;padding:0 8px 0 2px}.tools button{font-size:23px}.tools .divider{width:1px;height:18px;background:#d1e1d3;margin:0 6px}#reset{font-size:11px;min-width:65px}#textBtn{font-size:14px}.footer-bottom{display:flex;gap:20px;align-items:center;font-size:9px;color:#607e68;margin-top:2px}#hint{margin:0;white-space:nowrap}.reading-track{height:3px;background:#e3eee4;flex:1;border-radius:2px}.reading-track i{display:block;height:100%;background:#25964e;transition:width .3s}#spreadLabel{min-width:34px;text-align:right;font-size:9px;color:#456d4e;letter-spacing:1px}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#thumbs{display:flex;flex-shrink:0;height:114px;overflow-x:auto;gap:8px;padding:6px 16px;background:#e5f0e5;border-top:1px solid #c9dfcd;overscroll-behavior-x:contain}#thumbs button{flex-shrink:0;position:relative;width:74px;height:100px;border:2px solid transparent;border-radius:3px;padding:3px}#thumbs img{display:block;width:100%;height:100%;object-fit:contain}#thumbs button[aria-current=true]{border-color:var(--green);background:#d1e9d4}#thumbs span{position:absolute;right:1px;bottom:1px;font-size:9px;background:#176a35;color:white;padding:2px 4px}dialog{border:1px solid #a4c3ac;border-radius:12px;max-width:min(650px,94vw);max-height:80dvh;padding:25px;background:#fff;color:#173c28}dialog::backdrop{background:#102a1880}dialog form{float:right}dialog p,dialog a{font-size:14px;line-height:1.6}dialog a{color:var(--green);text-decoration:underline}#pageText{white-space:pre-wrap;line-height:1.6;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.site-header{min-height:52px;padding:8px 12px;gap:12px}.brand img{width:135px}.site-header h1{font-size:11px}.save-pdf{display:none}.download{font-size:11px;padding:9px}.reader-footer{padding:4px 7px 6px}.footer-top{flex-wrap:wrap;justify-content:center;gap:0}.navigation{justify-content:center;width:100%}.tools{justify-content:center;width:100%}#hint{font-size:8px}.footer-bottom{padding:0 5px;gap:10px}.tools .divider{margin:0 2px}#reset{min-width:55px}#textBtn{display:none}}@media(max-width:360px){.site-header h1{display:none}.site-header .download{margin-left:auto}.tools .divider{display:none}.tools button{min-width:40px;width:40px}#reset{min-width:54px}.footer-bottom #hint{white-space:normal;max-width:210px}}@media(max-height:450px){.site-header{display:none}.footer-top{flex-wrap:nowrap}.navigation,.tools{width:auto}.footer-bottom{display:none}.reader-footer{padding:2px 5px}.tools button,.navigation button{min-width:36px;width:36px;height:38px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

html,body{height:100%;overflow:hidden;overscroll-behavior:none}
@media(max-width:760px){.site-header h1{min-width:0}.footer-top{row-gap:0}#first,#last{min-width:40px}.tools button{height:40px}.reader-footer{padding-bottom:4px}}
