:root{color-scheme:light;--green:#00633b;--ink:#23392e;--muted:#737b70;--paper:#f2f1eb;--line:#dcdfd5;font-family:Arial,Helvetica,sans-serif;background:var(--paper);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,a,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled,select:disabled{cursor:default;opacity:.3}button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #749e77;outline-offset:4px}button,select{border:0}button{background:transparent}a{color:var(--green)}[hidden]{display:none!important}.symbols{position:absolute;width:0;height:0;overflow:hidden}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.masthead{min-height:100px;padding:9px 28px;display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(140px,1fr);align-items:center;gap:16px;border-bottom:1px solid var(--line);background:rgba(248,248,242,.84);flex-shrink:0}.header-brand{display:flex;align-items:center;min-width:0;justify-self:start}.header-brand img{display:block;width:82px;height:82px;object-fit:contain;object-position:left center}.header-title{margin:0;color:#0a7b39;font-size:20px;font-weight:500;line-height:1.35;text-align:center;justify-self:center}.header-actions{display:flex;justify-content:flex-end;justify-self:end;gap:10px}.icon-button{height:42px;min-width:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:50%;text-decoration:none;transition:background .16s}.icon-button:hover:not(:disabled){background:#e3e7dc}.download{border:1px solid #d5dccf;border-radius:25px;padding:0 16px;font-size:11px;letter-spacing:.6px}.download svg{width:17px;height:17px}
.reader{flex:1;min-height:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 40%,#faf9f3 0%,#efeee7 74%)}.stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:28px 54px 16px;overflow:hidden;isolation:isolate}.book-shell{position:relative;flex:none;transition:transform .6s cubic-bezier(.22,.8,.2,1);will-change:transform}.book-shell.front{transform:translateX(-25%)}.book-shell.back{transform:translateX(25%)}#book{height:100%;width:100%;user-select:none;-webkit-user-select:none;touch-action:pan-y;outline:0}#book .stf__wrapper{height:100%}#book .stf__block{overflow:visible!important}.page{background:#fff;overflow:hidden;box-shadow:0 3px 8px #10281b1a}.page img{display:block;width:100%;height:100%;object-fit:fill;-webkit-user-drag:none;pointer-events:none}.page::after{content:'';position:absolute;top:0;bottom:0;pointer-events:none;width:6%;opacity:.34}.page.--left::after{right:0;background:linear-gradient(to left,#0003,transparent)}.page.--right::after{left:0;background:linear-gradient(to right,#0003,transparent)}.book-shell.front .page::after,.book-shell.back .page::after{opacity:0}.loading{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}.spinner{height:18px;width:18px;border:1.5px solid #d4dcd0;border-top-color:var(--green);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error{text-align:center;font-size:14px}.error a{display:inline-block;margin-left:20px}
.controls{flex:none;display:flex;align-items:center;flex-direction:column;padding:4px 20px 24px;gap:12px}.hint{font-size:11px;letter-spacing:.15px;color:var(--muted);margin:0;min-height:14px}.toolbar{height:54px;display:flex;align-items:center;justify-content:center;gap:4px;padding:5px 7px;border:1px solid #dadfd2;border-radius:32px;box-shadow:0 3px 12px #283e2710;background:#fbfcf6}.turn-button{height:42px;width:44px;border-radius:50%;display:flex;align-items:center;justify-content:center}.turn-button:hover:not(:disabled){background:#e6ecdf}.page-picker{position:relative}.page-picker select{background:none;appearance:none;-webkit-appearance:none;border-radius:4px;min-width:110px;font-size:12px;font-variant-numeric:tabular-nums;padding:12px 27px 12px 14px;cursor:pointer;text-align:center}.page-picker>svg{position:absolute;right:9px;top:15px;width:12px;height:12px;pointer-events:none}.separator{height:22px;border-left:1px solid #dfe3d7;margin:0 3px}.progress{height:2px;background:#d8ded0;width:112px;border-radius:2px;overflow:hidden}.progress span{display:block;height:100%;width:0;background:#5f865a;transition:width .4s ease}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript{position:fixed;inset:40% 0 auto;text-align:center;padding:30px;background:var(--paper)}
dialog{position:fixed;inset:0;margin:auto;border:1px solid #d2d9cd;border-radius:12px;background:#e8e9e1;color:var(--ink);padding:0;width:min(1200px,96vw);max-width:96vw;height:94vh;height:94dvh;max-height:94dvh;box-shadow:0 20px 80px #0005;overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#13271de0;backdrop-filter:blur(5px)}.zoom-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px 8px 22px;background:#f8faf2;flex-shrink:0;border-bottom:1px solid #d2d9cd}.zoom-header h2{font-weight:500;font-size:14px;margin:0}.zoom-actions{display:flex;align-items:center;gap:3px}.zoom-actions .icon-button{font-size:24px}.zoom-actions output{font-size:11px;width:44px;text-align:center;font-variant-numeric:tabular-nums}.zoom-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;padding:20px;text-align:center}.zoom-scroll img{display:block;max-width:none;height:auto;box-shadow:0 3px 20px #19341d24;margin:0 auto;user-select:none}.zoom-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 12px;background:#f8faf2;border-top:1px solid #d2d9cd}.text-button{font-size:12px;min-height:42px;padding:8px 12px;border-radius:6px}.text-button:hover:not(:disabled){background:#e4ebdc}.page-text{max-height:35%;overflow:auto;padding:20px;white-space:pre-wrap;background:#fff;font-size:15px;line-height:1.6;border-top:1px solid #d2d9cd}
@media(max-width:700px){.masthead{min-height:78px;padding:8px 14px;grid-template-columns:64px minmax(0,1fr) 64px;gap:8px}.header-brand img{width:62px;height:62px}.header-title{font-size:13px;line-height:1.4}.header-title span{display:block;white-space:nowrap}.header-actions{min-width:0;margin-left:2px;gap:3px}.download{padding:0;min-width:38px;width:38px;height:38px;border:0}.download span{display:none}.header-actions #fullscreen{display:none}.stage{padding:20px 22px 14px}.book-shell.front,.book-shell.back{transform:none}.controls{padding:4px 16px max(16px,env(safe-area-inset-bottom));gap:10px}.hint{font-size:10px}.toolbar{height:52px}.zoom-header{padding-left:15px}.zoom-header h2{font-size:12px}.zoom-actions .icon-button{width:36px;min-width:36px;height:40px}.zoom-scroll{padding:12px}.zoom-footer{padding:4px 6px;gap:0}.zoom-footer .text-button{font-size:11px;padding:6px 9px}}
@media(max-height:520px){.masthead{min-height:58px;padding:4px 18px}.header-brand img{width:50px;height:50px}.hint{display:none}.stage{padding-top:12px;padding-bottom:10px}.controls{padding-bottom:10px;gap:6px}.toolbar{height:44px}.turn-button,.toolbar .icon-button{height:34px}.progress{display:none}}
@media(min-width:701px) and (max-height:520px){.header-title{font-size:16px}.masthead{grid-template-columns:minmax(140px,1fr) auto minmax(140px,1fr)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
