[hidden]{display:none!important}.shelf-view{height:100%;overflow:auto;background:radial-gradient(ellipse at 45% 0,#f6f7f2,#e5e8df 75%)}.shelf-header{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 6vw;border-bottom:1px solid #85937a14}.import-button{display:flex;align-items:center;gap:8px;padding:10px 17px;border:1px solid #7e8c7140;background:#f8faf4;border-radius:7px;font-size:14px}.import-button:hover{background:#eef2e6}.shelf-main{max-width:1460px;margin:auto;padding:48px 6vw 70px}.shelf-title{display:flex;align-items:baseline;gap:18px;margin-bottom:38px}.shelf-title h1{font-family:SimSun,serif;font-size:28px;font-weight:400;letter-spacing:3px;margin:0}.shelf-title span{color:var(--quiet);font-size:13px}.shelf-books{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:40px 32px;align-items:stretch}.shelf-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:left;min-width:0;padding:0 10px 23px;background:none;border:0;isolation:isolate}.shelf-card::after{content:"";position:absolute;left:-15px;right:-15px;top:303px;height:9px;z-index:-1;background:linear-gradient(#a8b19b,#85917b);border-radius:2px;box-shadow:0 12px 18px #57694726}.shelf-cover{height:294px;width:220px;max-width:100%;background:#68775c;border-radius:2px 5px 4px 2px;padding:3px 5px 5px 8px;position:relative;box-shadow:3px 4px 0 #e4e4d6,5px 6px 0 #b0b7a0,9px 9px 18px #46593b32;transform:perspective(800px) rotateY(-8deg);transition:transform .3s,box-shadow .3s}.shelf-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#2e432855 0,#ffffff12 4%,transparent 10%);pointer-events:none;border-radius:inherit}.shelf-cover img{display:block;width:100%;height:100%;object-fit:contain;background:#fffefa}.shelf-card:hover .shelf-cover{transform:perspective(800px) rotateY(0deg) translateY(-8px);box-shadow:4px 6px 0 #e4e4d6,6px 8px 0 #b0b7a0,12px 20px 28px #46593b2a}.shelf-book-info{width:100%;max-width:240px;margin-top:35px}.shelf-book-info strong{font-size:14px;font-weight:500;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7}.shelf-book-info span{display:block;color:var(--quiet);font-size:12px;margin-top:9px}.shelf-add{justify-content:flex-start}.empty-cover{height:294px;width:220px;max-width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border:1px dashed #8e9b795c;border-radius:3px;color:#7b886b;background:#f8faf32b;transition:background .2s}.empty-cover svg{width:28px;height:28px;stroke-width:1}.shelf-add:hover .empty-cover{background:#f8faf384}.shelf-note{color:var(--quiet);font-size:12px;margin-top:44px}.import-status{font-size:14px;color:#597242;min-height:24px;margin-top:26px}.import-status.error-status{color:#955342}.reader-view{height:100%;position:relative}.header{height:52px;padding:0 15px;background:#e9ebe4b3;backdrop-filter:blur(12px);z-index:8}.reader-left-tools{display:flex;gap:3px}.document-name{max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.reader-layout{position:absolute;inset:52px 0 56px;display:grid;grid-template-columns:246px minmax(0,1fr)}.reader-layout.sidebar-hidden{grid-template-columns:0 minmax(0,1fr)}.sidebar{height:100%;min-width:0;overflow:auto;overscroll-behavior:contain;background:#eef0e8ec;border-right:1px solid #909b7f26;z-index:6}.sidebar-hidden .sidebar{visibility:hidden;pointer-events:none}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:10px 12px 5px 20px;font-size:14px}.sidebar-tabs{display:flex;gap:6px;padding:8px 14px 14px}.sidebar-tabs button{flex:1;border:0;border-radius:5px;padding:7px;background:transparent;color:var(--quiet);font-size:13px}.sidebar-tabs button[aria-pressed=true]{background:#dfe5d5;color:#43533a}.outline-tree{padding:0 11px 30px 8px}.outline-tree ul{list-style:none;padding:0;margin:0}.outline-tree ul ul{padding-left:13px;border-left:1px solid #87967626;margin-left:11px}.toc-line{display:flex;align-items:flex-start;border-radius:5px;margin:2px 0}.toc-line.current{background:#dfe7d3}.toc-toggle{width:24px;min-width:24px;height:33px;display:flex;align-items:center;justify-content:center;background:none;border:0;color:#7b876d;padding:0}.toc-toggle svg{width:12px;height:12px;transition:transform .2s}.toc-toggle[aria-expanded=true] svg{transform:rotate(90deg)}.toc-spacer{width:24px;min-width:24px}.chapter-link{flex:1;text-align:left;min-width:0;background:none;border:0;padding:7px 4px;font-size:12px;line-height:1.55;overflow-wrap:anywhere}.toc-page{font-size:11px;color:#818b76;padding:8px 7px 0 4px;min-width:24px;text-align:right}.outline-empty{padding:6px 10px;color:var(--quiet);font-size:13px;line-height:1.8}.page-thumbnails{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 14px 26px}.thumbnail-button{border:0;background:transparent;padding:4px;display:block;border-radius:3px}.thumbnail-button img{width:100%;height:auto;box-shadow:0 2px 6px #596b4326;display:block;background:white}.thumbnail-button span{font-size:11px;color:var(--quiet);display:block;margin-top:6px}.thumbnail-button.current{outline:2px solid #8d9f77;background:#dfe7d3}.outline-empty{margin:0}.stage{min-width:0;height:100%;padding:12px 15px 22px;display:block;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a5af98 transparent}.book-space{width:var(--book-width);height:var(--book-height);margin:0 auto;position:relative}.book{transform:none;touch-action:none}.book.entering{animation:open-book .6s ease both}.book.single .left-page{display:none}.book.single .right-page{width:100%;left:0;right:auto;border-radius:2px}.book.single .spine{left:0;transform:none;opacity:.4}.book.single .right-page .page-shading{background:linear-gradient(90deg,#443d2815,transparent 6%,transparent 97%,#8b846b08)}.book.single .turn-sheet{left:0;width:100%}.book.single .turn-sheet.backward{left:0;transform-origin:right center}.book.magnified .page{cursor:grab}.book.magnified.panning .page{cursor:grabbing}.footer{left:12px;right:12px;bottom:7px;gap:10px}.reading-controls{padding:0 7px;gap:2px}.reading-controls .icon-button{width:32px;height:32px}.reading-controls .page-count{min-width:86px;padding:7px 4px;font-size:13px}.scale-label{border:0;background:transparent;min-width:44px;font-size:12px;padding:7px 2px;font-variant-numeric:tabular-nums}.reading-hint,.end-hint{font-size:11px}.reading .header{opacity:.3;pointer-events:auto;transform:none}.reading .footer{opacity:.3;pointer-events:auto;transform:none}.reading .chrome:hover,.reading .chrome:focus-within{opacity:1}.error{z-index:12;top:65px;left:50%;transform:translateX(-50%);font-size:14px}.progress-track{z-index:9}.header-tools{gap:3px}.zoom-scroll img{margin:0 auto}.zoom-scroll{overflow-anchor:none}@keyframes open-book{from{opacity:0;transform:scale(.96) rotateX(3deg)}to{opacity:1;transform:none}}@media(max-width:1100px){.reader-layout,.reader-layout.sidebar-hidden{grid-template-columns:0 minmax(0,1fr)}.sidebar{position:absolute;left:0;top:0;bottom:0;width:246px;box-shadow:15px 0 35px #394b3029}.sidebar-hidden .sidebar{display:none}.reading-hint,.end-hint{display:none}.footer{display:flex;justify-content:center}}@media(max-width:700px){.shelf-header{height:65px;padding:0 22px}.shelf-main{padding:30px 22px}.shelf-books{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:30px 20px}.shelf-cover,.empty-cover{height:218px;width:165px}.shelf-card::after{top:227px}.shelf-book-info{margin-top:30px}.shelf-book-info strong{font-size:13px}.shelf-card{padding-left:0;padding-right:0}.shelf-title{margin-bottom:30px}.shelf-title h1{font-size:24px}.stage{padding:9px 11px 19px}.header{padding:0 8px;height:48px}.reader-layout{inset:48px 0 48px}.header-tools .icon-button,.reader-left-tools .icon-button{width:33px;height:33px}.document-name{max-width:42%;font-size:12px}.footer{bottom:4px}.reading-controls{gap:0}.reading-controls .icon-button{width:29px;height:31px}.page-count span{margin-left:4px}.reader-layout .sidebar{width:240px}}@media(max-width:420px){.document-name{display:block}.shelf-book-info strong{-webkit-line-clamp:4}.shelf-note{font-size:11px}}@media(prefers-reduced-motion:reduce){.book.entering{animation:none}.shelf-cover{transition:none}}
/* Readable chapter hierarchy, including when the browser is reduced in size. */
.reader-layout{grid-template-columns:290px minmax(0,1fr)}
.sidebar-heading{font-size:16px;font-weight:500;padding-left:18px}
.sidebar-tabs button{font-size:14px;padding:9px}
.chapter-link{font-size:16px;line-height:1.65;color:#35452f;padding:9px 5px}
.outline-tree ul ul .chapter-link{font-size:14px;color:#45563e}
.toc-page{font-size:13px;color:#64745b;padding-top:12px}
.toc-toggle{height:44px;width:26px;min-width:26px}
.toc-toggle svg{width:14px;height:14px}
.toc-line{margin:4px 0}
@media(max-width:1100px){.reader-layout,.reader-layout.sidebar-hidden{grid-template-columns:0 minmax(0,1fr)}.sidebar,.reader-layout .sidebar{width:min(290px,82vw)}}
/* Large reading controls and adjustable chapter column. */
:root{--sidebar-width:360px}
body{font-size:18px}
.shelf-header{height:96px;padding:0 clamp(24px,4vw,90px)}
.wordmark{font-size:clamp(24px,1.1vw,32px);gap:14px;letter-spacing:3px}
.wordmark svg{width:30px;height:30px}
.import-button{font-size:22px;padding:12px 22px;gap:12px}
.import-button svg{width:25px;height:25px}
.shelf-main{max-width:none;margin:0;padding:48px clamp(24px,4vw,90px) 40px}
.shelf-title h1{font-size:clamp(36px,1.8vw,48px);font-weight:500}
.shelf-title span{font-size:20px;color:#59664f}
.shelf-books{grid-template-columns:repeat(auto-fill,minmax(290px,350px));gap:48px 36px;justify-content:start}
.shelf-cover,.empty-cover{width:300px;height:388px}
.shelf-card::after{top:398px;height:10px}
.shelf-book-info{max-width:320px;margin-top:38px}
.shelf-book-info strong{font-size:clamp(24px,1vw,30px);line-height:1.45;font-weight:500;-webkit-line-clamp:4;color:#34412f}
.shelf-book-info span{font-size:18px;line-height:1.5;color:#58674e}
.empty-cover{font-size:24px;color:#586e48}
.empty-cover svg{width:36px;height:36px}
.import-status{font-size:18px;min-height:0;margin:26px 0 0}
.import-status:empty{display:none}
.header{height:68px;padding:0 18px}
.document-name{font-size:clamp(22px,1vw,28px);font-weight:500;color:#43533a;letter-spacing:.2px}
.header .icon-button{width:44px;height:44px}
.header svg{width:24px;height:24px}
.reader-layout{inset:68px 0 54px;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.sidebar-heading{font-size:24px;padding:14px 15px 8px 22px}
.sidebar-tabs{padding:10px 16px 18px}
.sidebar-tabs button{font-size:20px;padding:10px}
.chapter-link{font-size:clamp(22px,.85vw,30px);line-height:1.5;padding:12px 6px}
.outline-tree ul ul .chapter-link{font-size:clamp(20px,.75vw,26px);line-height:1.5}
.toc-page{font-size:18px;color:#57694b;padding:15px 8px 0 4px;min-width:32px}
.toc-toggle{width:30px;min-width:30px;height:52px}
.toc-toggle svg{width:17px;height:17px}
.toc-spacer{width:30px;min-width:30px}
.thumbnail-button span{font-size:18px;color:#4e6043}
.outline-empty{font-size:20px}
.sidebar-resizer{position:absolute;left:calc(var(--sidebar-width) - 5px);top:0;bottom:0;width:10px;z-index:9;cursor:col-resize;touch-action:none;outline-offset:-2px}
.sidebar-resizer::after{content:"";position:absolute;width:2px;left:4px;top:0;bottom:0;background:#9dac8859;transition:width .15s,background .15s}
.sidebar-resizer:hover::after,.sidebar-resizer:focus-visible::after,.resizing-sidebar .sidebar-resizer::after{width:4px;left:3px;background:#7e9964}
.sidebar-hidden .sidebar-resizer{display:none}
.resizing-sidebar{cursor:col-resize;user-select:none}
.resizing-sidebar .stage{pointer-events:none}
.footer{display:flex;justify-content:center;left:12px;right:12px;bottom:6px}
.reading-controls .page-count{font-size:18px;min-width:112px}
.page-count span{font-size:16px}
.scale-label{font-size:16px;min-width:54px}
.reading-controls .icon-button{width:36px;height:36px}
.reading .chrome{opacity:0;pointer-events:none}
.reading .chrome:hover,.reading .chrome:focus-within{opacity:1;pointer-events:auto}
@media(max-width:1100px){.reader-layout,.reader-layout.sidebar-hidden{grid-template-columns:0 minmax(0,1fr)}.sidebar,.reader-layout .sidebar{width:var(--sidebar-width)}}
@media(max-width:700px){.shelf-header{height:80px;padding:0 22px}.import-button{font-size:18px;padding:10px 14px}.shelf-main{padding:30px 24px}.shelf-title{gap:14px}.shelf-title h1{font-size:32px}.shelf-title span{font-size:18px}.shelf-books{grid-template-columns:repeat(auto-fill,minmax(240px,320px));gap:38px 28px}.shelf-cover,.empty-cover{width:270px;height:350px}.shelf-card::after{top:360px}.shelf-book-info strong{font-size:24px}.header{height:62px;padding:0 9px}.document-name{font-size:20px;max-width:44%}.header .icon-button{width:35px;height:40px}.header svg{width:22px;height:22px}.reader-layout{inset:62px 0 52px}.sidebar-heading{font-size:24px}.chapter-link{font-size:22px}.outline-tree ul ul .chapter-link{font-size:20px}.reading-controls .icon-button{width:30px}.reading-controls .page-count{min-width:96px;font-size:16px}.page-count span{font-size:14px}.scale-label{font-size:14px;min-width:44px}}
/* Real geometric paper surfaces, with a gently bowed top and bottom edge. */
.page.has-curvature{background:transparent;overflow:visible;transform-style:preserve-3d}
.page.has-curvature>img{opacity:0}
.page.has-curvature>.page-shading{display:none}
.paper-surface{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}
.paper-strip{position:absolute;left:0;top:0;transform-origin:0 0;transform-style:preserve-3d;pointer-events:none}
.paper-texture{position:absolute;inset:0;background-color:#fffefa;background-repeat:no-repeat;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}
.paper-texture::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(80,69,43,var(--paper-light,.03)),transparent 45%,#ffffff12);pointer-events:none}
.paper-back{transform:rotateY(180deg)}
.turn-sheet.has-curl>.sheet-face{display:none}
.turn-sheet.has-curl{filter:none!important;transform-style:preserve-3d}
.turn-sheet.has-curl .paper-strip{will-change:transform}
.spine{width:5px;background:linear-gradient(90deg,#332d1e28,#eeeadd55,#332d1e28)}
.book-cover{inset:1px -6px -11px;border-radius:4px 4px 9px 9px;box-shadow:0 28px 44px -18px #343c366b,0 12px 20px -9px #343c3640}
.paper-texture{transform-origin:0 0}
.paper-texture::after{background:rgba(80,69,43,var(--paper-light,.015))}
/* Readable controls in a reserved right rail; no bottom toolbar. */
:root{--tools-width:104px;--reader-header-height:72px}
.reader-view .header{height:var(--reader-header-height);padding:0 16px;background:#e9ebe4;color:#34462f}
.reader-view .header .icon-button{width:56px;height:56px;border:1px solid #7f8f7140;background:#fbfcf7;color:#34482c;border-radius:12px}
.reader-view .header svg{width:30px;height:30px;stroke-width:2}
.reader-view .document-name{font-size:clamp(22px,1vw,28px);max-width:calc(100% - 340px);color:#34472e}
.reader-layout{inset:var(--reader-header-height) var(--tools-width) 0 0}
.stage{padding:10px 12px 18px}
.reader-tools{position:fixed;top:var(--reader-header-height);right:0;bottom:0;width:var(--tools-width);padding:16px 10px;overflow-y:auto;overflow-x:hidden;border-left:1px solid #899a7629;background:#edf0e8;display:flex;align-items:center;flex-direction:column;scrollbar-width:thin;scrollbar-color:#a3b08f transparent;z-index:8}
.reader-tools .reading-controls{display:flex;flex-direction:column;gap:8px;width:100%;margin:auto 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;flex-shrink:0}
.reader-tools .icon-button,.reader-tools .scale-label,.reader-tools .mode-button{width:64px;min-width:64px;height:56px;min-height:56px;border:1px solid #7e907146;border-radius:12px;background:#fcfdf8;color:#34482c;box-shadow:0 2px 4px #34482c08;font-size:22px;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.reader-tools svg{width:32px;height:32px;stroke-width:2.1}
.reader-tools .icon-button:hover:not(:disabled),.reader-tools .mode-button:hover:not(:disabled),.reader-tools .scale-label:hover{background:#e0e9d4;border-color:#779160}
.reader-tools .page-count{width:80px;min-width:80px;min-height:64px;line-height:1.35;font-size:23px;font-weight:500;text-align:center;padding:8px 2px;border:0;border-radius:8px;white-space:nowrap;color:#34482c}
.reader-tools .page-count span{display:block;font-size:18px;margin:2px 0 0;color:#536648}
.tool-divider{width:44px;height:1px;min-height:1px;background:#97a98348;margin:4px 0;flex-shrink:0}
.reader-tools .icon-button:disabled{opacity:.4}
.reading .reader-tools,.reading .header{opacity:1;transform:none;pointer-events:auto}
.reader-tools:focus-within{opacity:1}
.header .reader-left-tools{gap:9px}
@media(max-width:700px){:root{--tools-width:78px}.reader-view .header{padding:0 9px}.reader-view .document-name{left:143px;right:12px;transform:none;max-width:none;white-space:nowrap;font-size:20px}.reader-view .header .icon-button{width:56px;height:56px}.reader-tools{padding:10px 5px}.reader-tools .reading-controls{gap:6px}.reader-tools .icon-button,.reader-tools .scale-label,.reader-tools .mode-button{width:58px;min-width:58px;height:52px;min-height:52px;font-size:20px}.reader-tools svg{width:30px;height:30px}.reader-tools .page-count{width:68px;min-width:68px;font-size:20px;min-height:58px}.reader-tools .page-count span{font-size:16px}.stage{padding:9px 10px 16px}}
@media(max-height:780px){.reader-tools .reading-controls{margin:0}.reader-tools{padding-top:10px;padding-bottom:10px}}
.stage{overflow:hidden;padding:18px 18px 22px}
.stage.is-zoomed{overflow:auto}
@media(max-width:700px){.stage{padding:14px 12px 20px}}
/* Keep resting text crisp; curvature decorates paper edges, not printed glyphs. */
.page.has-curvature{transform-style:flat}
.page.has-curvature>.paper-surface{z-index:0}
.page.has-curvature>img{opacity:1;position:relative;z-index:1}
.page.has-curvature>.page-shading{display:block;z-index:2}
@media(max-height:780px){.reader-tools .reading-controls{gap:6px}.reader-tools .icon-button,.reader-tools .scale-label,.reader-tools .mode-button{height:48px;min-height:48px}.reader-tools .page-count{min-height:56px;padding:4px 2px}.reader-tools .tool-divider{margin:3px 0}}
.sidebar-heading .icon-button,.jump-dialog .icon-button{width:48px;height:48px;color:#34482c}
.sidebar-heading .icon-button svg,.jump-dialog .icon-button svg{width:28px;height:28px;stroke-width:2}
.zoom-toolbar .icon-button{width:52px;height:52px;color:#34482c}
.zoom-toolbar .icon-button svg{width:30px;height:30px;stroke-width:2}
.zoom-pagination span{font-size:20px}
.zoom-range{font-size:18px;color:#43573a}
