:root{--dark:#42474b;--green:#b2b22c;--paper:#fff;--line:#dfe2dd;--muted:#646b69}*{box-sizing:border-box}html,body{margin:0;height:100%;font:15px/1.45 system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--dark);background:#eff0ec}body{display:flex;flex-direction:column}button,a,input{font:inherit}button,header a{border:0;background:transparent;color:inherit;cursor:pointer;text-decoration:none;border-radius:6px;min-height:40px;padding:7px 12px}button:hover,header a:hover{background:#e5e7df}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #818219;outline-offset:3px}button:disabled{opacity:.25;cursor:default}header{height:84px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#fff;border-bottom:1px solid var(--line);gap:20px;z-index:2}.identity{display:flex;gap:16px;align-items:center}.identity strong{font-size:19px;font-weight:650;letter-spacing:-.4px}.identity strong span{font-weight:400;color:var(--muted)}.identity small{display:block;font-size:11px;letter-spacing:.5px;color:var(--muted);margin-top:1px}.mark{font-size:30px;font-style:italic;font-weight:850;color:var(--green);letter-spacing:-4px;padding-right:5px}nav{display:flex;gap:6px;align-items:center}nav button,nav a{font-size:19px}nav span{font-size:13px;margin-left:5px}main{flex:1;min-height:0;display:flex;position:relative;overflow:hidden}#reader{width:100%;min-width:0;position:relative;display:flex;align-items:center;justify-content:center;padding:22px 72px 42px;touch-action:pan-y}#book{display:flex;justify-content:center;align-items:center;max-width:100%;height:100%;filter:drop-shadow(0 12px 17px #24302022);perspective:1600px}#book .sheet{height:min(100%,calc((100vw - 160px)/2));max-height:100%;aspect-ratio:1;min-width:0;padding:0;border-radius:0;position:relative;background:#fff;overflow:hidden;box-shadow:0 0 1px #0005;animation:arrive .23s ease-out}#book .sheet:only-child{height:min(100%,calc(100vw - 160px))}#book img{width:100%;height:100%;object-fit:contain;display:block}#book .sheet:nth-child(2):before{content:"";position:absolute;inset:0 auto 0 0;width:14px;background:linear-gradient(90deg,#0002,transparent);pointer-events:none}.arrow{position:absolute;top:calc(50% - 28px);font-size:34px;width:42px;height:56px;background:#fff;box-shadow:0 2px 10px #0001;border:1px solid #e0e2db;padding:0;line-height:1;z-index:1}.prev{left:18px}.next{right:18px}.hint{position:absolute;bottom:11px;text-align:center;font-size:11px;color:#747a73;left:50px;right:50px}footer{display:flex;align-items:center;gap:10px;padding:8px 24px;background:#fff;border-top:1px solid var(--line);flex-shrink:0;min-height:62px}footer button{font-size:20px}footer #textBtn{font-size:12px;margin-left:auto}#pageNo{width:61px;border:1px solid #cbd0c7;border-radius:5px;padding:5px 3px 5px 9px;height:35px}#range{font-size:13px;white-space:nowrap}input[type=range]{accent-color:#8b8d23}#progress{max-width:420px;flex:1;margin:0 15px}#drawer{width:260px;flex-shrink:0;overflow:auto;background:#fff;border-right:1px solid var(--line);z-index:3}.drawerTitle{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:white;z-index:1;border-bottom:1px solid var(--line)}#thumbs{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px}#thumbs button{padding:5px;border:2px solid transparent;border-radius:4px;display:flex;align-items:center;flex-direction:column;font-size:11px}#thumbs button.active{border-color:var(--green);background:#f8f8ee}#thumbs img{width:95px;height:95px;object-fit:contain;border:1px solid #eee}dialog{border:0;border-radius:12px;box-shadow:0 24px 80px #0004;padding:22px;width:min(620px,94vw);max-height:88vh;color:var(--dark)}dialog::backdrop{background:#28332c99;backdrop-filter:blur(3px)}.dialogHeader{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.dialogHeader h1{font-size:19px;margin:0}.dialogHeader button{font-size:26px;padding:0 12px}.dialogHeader div{display:flex;align-items:center;gap:10px}#searchInput{width:100%;font-size:16px;border:1px solid #bcc2b6;padding:13px;border-radius:7px}#searchStatus{color:var(--muted);font-size:13px}#results button{display:block;width:100%;text-align:left;padding:14px 5px;border-bottom:1px solid var(--line);border-radius:0}#results strong{display:block;margin-bottom:4px}#results small{display:block;font-size:12px;color:var(--muted)}#zoomDialog{width:96vw;height:94vh;max-width:none;max-height:none;padding:15px;overflow:hidden}#zoomDialog .dialogHeader{height:45px;margin:0 0 10px}#zoomScroll{height:calc(100% - 55px);overflow:auto;background:#e5e7e0;text-align:center}#zoomImg{width:100%;max-width:1600px;height:auto;display:block;margin:auto}#pageText{white-space:pre-wrap;font-size:16px;line-height:1.7}.sr{position:absolute!important;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;padding:0;margin:-1px}@keyframes arrive{from{opacity:.65;transform:rotateY(-3deg)}to{opacity:1;transform:rotateY(0)}}[hidden]{display:none!important}@media(min-width:760px){body.drawerOpen #book .sheet{height:min(100%,calc((100vw - 420px)/2))}body.drawerOpen #book .sheet:only-child{height:min(100%,calc(100vw - 420px))}}@media(max-width:759px){header{height:73px;padding:0 15px;gap:10px}.identity{gap:10px}.identity strong{font-size:15px}.identity small{font-size:9px;letter-spacing:0}.mark{font-size:24px}nav{gap:0}nav button,nav a{padding:5px 9px}nav span:not(.sr){display:none}#fullBtn{display:none}#reader{padding:12px 15px 60px}#book .sheet,#book .sheet:only-child{height:auto;width:min(100%,calc(100vh - 220px));max-width:100%;max-height:100%;aspect-ratio:1}.arrow{top:auto;bottom:12px;width:38px;height:36px;font-size:27px}.prev{left:15px}.next{right:15px}.hint{bottom:21px;font-size:9px;left:60px;right:60px}footer{gap:7px;padding:7px 10px;min-height:58px}footer button{padding:5px}footer label{font-size:12px}#progress{margin:0 3px;min-width:30px}footer #textBtn{font-size:10px;padding:5px;max-width:50px}#pageNo{width:48px}#range{font-size:11px}#drawer{position:absolute;inset:0 auto 0 0;box-shadow:10px 0 30px #0002}#zoomScale{width:90px}.dialogHeader{gap:5px}#zoomTitle{font-size:12px}.dialogHeader label{font-size:12px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media(max-height:500px){header{height:58px}.hint{display:none}#reader{padding-top:10px;padding-bottom:10px}footer{min-height:48px;padding:4px 20px}}

nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}nav button,nav a{display:flex;align-items:center;justify-content:center;gap:3px}
