.reader{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:var(--reader-paper);color:var(--reader-ink);height:100dvh;overflow:hidden;transition:background .15s}.reader-top{height:calc(76px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 30px 0;display:flex;align-items:center;gap:15px;position:absolute;top:0;left:0;right:0;z-index:35;background:var(--reader-paper);transition:opacity .2s}.reader-back{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px;padding:0 12px 0 0}.reader-title{flex:1;text-align:center;min-width:0;padding:0 20px;font:14px Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.65}.reader-tools{display:flex;gap:5px}.reader-tools .icon-button:hover,.reader-top .icon-button:hover{background:#88888815}.reader-top svg{width:21px;height:21px}.reader-top .active{color:#b08b44}.reader-stage{position:absolute;top:calc(76px + env(safe-area-inset-top));bottom:calc(63px + env(safe-area-inset-bottom));left:max(7vw,28px);right:max(7vw,28px);overflow:hidden;max-width:1200px;margin:auto}#epub-view{width:100%;height:100%;overflow:hidden}.epub-container{overscroll-behavior:none}#pdf-view{height:100%;width:100%;overflow:auto;display:flex;justify-content:flex-start;align-items:flex-start;overscroll-behavior:contain;touch-action:pan-x pan-y}#pdf-canvas{display:block;box-shadow:0 1px 8px #00000012;margin:auto}#pdf-view.dark-pdf canvas{filter:invert(.89) hue-rotate(180deg)}#pdf-view.sepia-pdf canvas{filter:sepia(.2)}.reader-bottom{position:absolute;bottom:0;left:0;right:0;height:calc(63px + env(safe-area-inset-bottom));padding:0 38px env(safe-area-inset-bottom);display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px;color:var(--reader-ink);opacity:.6;transition:opacity .2s;z-index:35;background:var(--reader-paper)}.reader-bottom span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-bottom .position{font-variant-numeric:tabular-nums;flex-shrink:0}.page-turn{position:absolute;top:45%;width:42px;height:70px;display:flex;align-items:center;justify-content:center;opacity:.22;z-index:34;border-radius:10px;color:var(--reader-ink);transition:opacity .2s}.page-turn:hover{opacity:.8;background:#88888810}.page-turn.prev{left:8px}.page-turn.next{right:8px}.reader.chrome-hidden .reader-top{opacity:0;pointer-events:none}.reader.chrome-hidden .reader-bottom{opacity:.25}.reader.chrome-hidden .page-turn{opacity:0}.reader.chrome-hidden .page-turn:focus-visible{opacity:.7}.reader-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;font:20px Georgia,serif;background:var(--reader-paper);z-index:36}.reader-error{max-width:450px;text-align:center;padding:30px}.reader-error p{font:16px/1.6 -apple-system,sans-serif;margin:15px 0 25px}.reader-error .button{margin:5px}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#10211940;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.sheet{background:var(--surface);color:var(--ink);border-radius:14px;width:min(100%,430px);max-height:min(85dvh,740px);display:flex;flex-direction:column;box-shadow:0 12px 80px #15251c35;overflow:hidden}.sheet.wide{width:min(100%,530px)}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:17px 19px 17px 25px;border-bottom:1px solid var(--line);flex-shrink:0}.sheet-header h2{font-size:24px}.sheet-body{padding:22px 25px;overflow:auto;overscroll-behavior:contain}.setting{margin:0 0 24px}.setting:last-child{margin-bottom:3px}.setting-label{font-size:12px;color:var(--muted);margin-bottom:11px;display:block}.segmented{display:flex;gap:8px}.segment{flex:1;border:1px solid var(--line);border-radius:7px;min-height:45px;font-size:14px}.segment.selected{outline:2px solid var(--accent);outline-offset:-2px;background:#e8ede3}.theme-choice{height:57px;border:1px solid #ccc}.theme-choice[data-theme=light]{background:#faf9f5;color:#252923}.theme-choice[data-theme=sepia]{background:#f1e8d3;color:#483e2d}.theme-choice[data-theme=dark]{background:#202522;color:#deded3}.theme-choice.selected{outline:2px solid #719a6b;outline-offset:3px}.size-control{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;overflow:hidden}.size-control button{width:70px;height:46px;font-size:19px;background:var(--soft)}.size-control output{flex:1;text-align:center;font-size:14px}.toc-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:16px}.toc-tabs button{padding:0 0 12px;font-size:14px;color:var(--muted)}.toc-tabs button.active{border-bottom:2px solid var(--accent);color:var(--ink)}.toc-item{display:flex;width:100%;text-align:left;padding:13px 4px;gap:12px;align-items:center;border-bottom:1px solid #e8eae2;font:15px/1.4 Georgia,serif}.toc-item:hover{color:var(--accent);background:var(--soft)}.bookmark-row{display:flex;align-items:center}.bookmark-row .toc-item{flex:1}.bookmark-row .icon-button{flex-shrink:0}.no-marks{font-size:14px;line-height:1.7;color:var(--muted);padding:20px 0}.go-page{display:flex;gap:10px;align-items:center}.go-page input{width:90px;padding:10px;border:1px solid var(--line);border-radius:6px}.reader-hint{font-size:12px;line-height:1.6;color:var(--muted);margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.sync-failed{color:#b26941!important}.reader[data-theme=dark]{--reader-paper:#202522;--reader-ink:#deded3}.reader[data-theme=sepia]{--reader-paper:#f1e8d3;--reader-ink:#483e2d}@media(max-width:700px){.reader-top{padding-left:13px;padding-right:13px;gap:5px;height:calc(66px + env(safe-area-inset-top))}.reader-stage{left:22px;right:22px;top:calc(66px + env(safe-area-inset-top));bottom:calc(56px + env(safe-area-inset-bottom))}.reader-title{padding:0 7px;font-size:12px}.reader-back{font-size:0;padding:0 8px}.reader-tools{gap:0}.reader-tools .icon-button{width:38px;height:42px}.reader-bottom{padding-left:25px;padding-right:25px;font-size:10px;height:calc(56px + env(safe-area-inset-bottom))}.page-turn{width:22px}.page-turn svg{width:15px}.page-turn.prev{left:0}.page-turn.next{right:0}.sheet-backdrop{padding:15px}.sheet-body{padding:20px}.reader-tools .fullscreen-button{display:none}}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#273b33;background:#f5f3ec;font-synthesis:none;--paper:#f5f3ec;--surface:#fffefa;--ink:#273b33;--muted:#758078;--line:#dbdfd6;--accent:#315744;--soft:#e9ede4;--reader-paper:#faf9f5;--reader-ink:#252923}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.55}button,input,select{outline-offset:5px}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #65856d}button{touch-action:manipulation}button svg{pointer-events:none}svg{width:21px;height:21px;stroke-width:1.6;flex-shrink:0}button{border:0;background:transparent}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,.wordmark,.serif{font-family:Georgia,Times New Roman,serif;font-weight:400}.wordmark{display:flex;gap:12px;align-items:center;font-size:29px;letter-spacing:-1px}.brand-icon{width:33px;height:35px}.eyebrow{text-transform:uppercase;letter-spacing:2.5px;font-size:11px;font-weight:650;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:45px;border-radius:8px;padding:0 20px;background:var(--accent);color:#fff;font-size:14px;font-weight:550}.button.secondary{background:transparent;border:1px solid var(--line);color:var(--ink)}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.icon-button:hover{background:var(--soft)}.muted{color:var(--muted)}.hidden{display:none!important}.shell{max-width:1260px;margin:auto;padding:0 54px}.site-header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.header-actions{display:flex;align-items:center;gap:17px}.private-badge{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.private-badge svg{width:14px;height:14px}.library-intro{padding:47px 0 34px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.library-intro h1{font-size:44px;letter-spacing:-1.3px;margin:10px 0 12px}.library-intro p{color:var(--muted);font-size:15px}.date-note{font-family:Georgia,serif;font-style:italic;font-size:15px;white-space:nowrap;color:#7c857a;margin-bottom:4px}.continue-card{border:1px solid #d7ddcf;background:#ebeee4;min-height:245px;border-radius:13px;display:flex;align-items:center;gap:32px;padding:26px 34px;margin:0 0 42px;position:relative;overflow:hidden}.continue-cover{height:195px;width:130px;flex-shrink:0;box-shadow:4px 8px 14px #263c3320;transform:rotate(-3deg);border-radius:2px;object-fit:cover}.continue-info{max-width:550px;z-index:1}.continue-info h2{font-size:30px;line-height:1.18;margin:12px 0 7px}.continue-info .author{font-size:14px;color:#6c786b}.continue-info .reading-line{font-size:12px;color:#6c786b;margin:19px 0 14px}.continue-art{position:absolute;right:-20px;bottom:-80px;width:330px;height:330px;opacity:.055;stroke-width:.6;transform:rotate(-17deg)}.continue-info .button{min-height:40px;font-size:13px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);margin-bottom:28px}.filters{display:flex;gap:24px}.filter{padding:0 1px 17px;font-size:14px;white-space:nowrap;color:#7d867e;border-bottom:2px solid transparent}.filter.active{color:var(--ink);border-bottom-color:var(--accent);font-weight:650}.count{font-size:11px;border-radius:20px;background:#e5e8df;padding:2px 6px;margin-left:5px}.tools{display:flex;align-items:center;gap:14px;margin-bottom:12px}.search{position:relative}.search svg{position:absolute;left:12px;top:10px;width:17px;color:var(--muted)}.search input{width:195px;border:1px solid var(--line);border-radius:6px;padding:10px 12px 10px 36px;background:transparent;font-size:13px;color:var(--ink)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;color:var(--muted);background:transparent;padding:8px 24px 8px 6px;font-size:12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23758078'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right center}.book-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:32px 29px;min-height:240px}.book-card{position:relative;min-width:0}.book-open{display:block;width:100%;text-align:left;padding:0}.book-cover{width:100%;aspect-ratio:2/3;border-radius:3px 6px 6px 3px;object-fit:cover;box-shadow:2px 5px 10px #25382b20;display:block;background:#e0e4da;transition:transform .2s,box-shadow .2s}.book-open:hover .book-cover{transform:translateY(-5px);box-shadow:4px 12px 20px #25382b25}.cover-fallback{display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(110deg,#344b3e,#5d7260);color:#faf5e7;text-align:center;position:relative;border-left:8px solid #ffffff15}.cover-fallback span{font:23px/1.25 Georgia,serif;border-top:1px solid #ffffff45;border-bottom:1px solid #ffffff45;padding:23px 0;overflow-wrap:anywhere}.book-title{font-family:Georgia,serif;font-size:18px;line-height:1.3;margin:15px 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-author{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-meta{display:flex;justify-content:space-between;margin-top:13px;font-size:10px;letter-spacing:.5px;color:var(--muted)}.book-bar{height:2px;background:var(--line);margin-top:8px}.book-bar span{display:block;height:100%;background:#71896b}.book-menu{position:absolute;top:8px;right:8px;width:30px;height:30px;background:#ffffffea;border-radius:50%;box-shadow:0 2px 5px #0002;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}.book-menu svg{width:16px}.book-card:hover .book-menu,.book-card:focus-within .book-menu{opacity:1}.add-card{border:1px dashed #cbd3c5;border-radius:7px;aspect-ratio:2/3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#7b8977;font-size:13px;width:100%;transition:background .2s}.add-card:hover{background:#e9ede2}.add-card .plus-circle{width:43px;height:43px;border-radius:50%;background:#e7ebe0;display:flex;align-items:center;justify-content:center}.add-card small{font-size:11px;color:#90998a}.library-footer{border-top:1px solid var(--line);padding:25px 0;margin:48px 0 0;display:flex;justify-content:space-between;gap:20px;color:#92998d;font-size:11px}.footer-left{display:flex;align-items:center;gap:7px}.footer-left svg{width:13px;height:13px}.text-button{padding:0;font-size:inherit;color:inherit;text-decoration:underline;text-underline-offset:3px}.empty-state{text-align:center;padding:50px 15px;color:var(--muted);grid-column:1/-1}.empty-state h2{font-size:29px;color:var(--ink);margin-bottom:12px}.empty-state p{font-size:14px;margin-bottom:20px}.upload-status{border:1px solid #cbd8c3;background:#edf2e7;padding:14px 18px;border-radius:8px;margin-bottom:25px;font-size:14px;display:flex;align-items:center;gap:10px}.spinner{width:18px;height:18px;border:2px solid #cad3c5;border-top-color:#3d6249;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;z-index:200;bottom:28px;left:50%;transform:translate(-50%,18px);background:#263f33;color:#fff;padding:13px 22px;border-radius:8px;box-shadow:0 5px 24px #0002;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;font-size:14px}#toast.show{transform:translate(-50%);opacity:1}.drop-overlay{position:fixed;top:15px;right:15px;bottom:15px;left:15px;background:#eff4eaf5;border:2px dashed #57774e;border-radius:20px;z-index:150;display:flex;align-items:center;justify-content:center;font:34px Georgia;color:#35513b;pointer-events:none}.login-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;position:relative}.login-brand{position:absolute;top:40px;left:50px}.login-card{width:100%;max-width:370px;text-align:center}.login-symbol{width:70px;height:70px;border:1px solid #d3dccc;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 27px}.login-symbol svg{width:29px;height:29px;stroke:#4d6e4c}.login-card h1{font-size:41px;letter-spacing:-1px;margin:12px 0}.login-card p{font-size:14px;color:var(--muted);line-height:1.7}.login-card form{margin-top:32px;text-align:left}.login-card label{font-size:12px;display:block;margin:0 0 9px;color:#667561}.login-card input{width:100%;height:52px;border:1px solid #cbd4c6;border-radius:7px;background:var(--surface);padding:0 15px;font-size:18px;letter-spacing:4px;color:var(--ink)}.login-card .button{width:100%;margin-top:14px;height:49px}.login-error{min-height:40px;color:#9f453a!important;text-align:center;margin-top:12px;font-size:13px!important}.login-footer{position:absolute;bottom:30px;font-family:Georgia,serif;font-style:italic;color:#929b8a;font-size:14px}.help-body{line-height:1.7;font-size:15px}.help-body p{margin:0 0 15px}.help-body ol{padding-left:23px}.help-body li{margin:10px 0}@media(min-width:1400px){.shell{max-width:1330px}.book-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1050px){.shell{padding:0 35px}.book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 26px}.tools select,.date-note{display:none}.filters{gap:20px}.search input{width:170px}}@media(max-width:700px){.shell{padding:0 24px}.site-header{height:86px}.private-badge{display:none}.header-actions{gap:7px}.header-actions .button{padding:0 13px;min-height:40px}.library-intro{padding-top:32px}.library-intro h1{font-size:36px}.continue-card{padding:23px;gap:24px;min-height:215px;margin-bottom:29px}.continue-cover{height:159px;width:106px}.continue-info h2{font-size:23px}.continue-info .reading-line{margin-top:14px}.continue-art{display:none}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 20px}.toolbar{align-items:flex-start;flex-direction:column;gap:0}.tools{order:-1;width:100%;margin-bottom:22px}.search{width:100%}.search input{width:100%;font-size:16px}.tools select{display:block;font-size:12px}.filters{gap:24px}.book-title{font-size:16px}.book-menu{opacity:1}.library-footer{flex-direction:column;align-items:center;font-size:11px}.login-brand{left:26px;top:28px}}@media(max-width:450px){.shell{padding:0 20px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 23px}.continue-card{padding:20px 17px;gap:18px}.continue-cover{height:139px;width:93px}.continue-info h2{font-size:20px}.continue-info .eyebrow{font-size:9px;letter-spacing:1.6px}.continue-info .author{font-size:12px}.continue-info .reading-line{font-size:10px;margin:12px 0 10px}.continue-info .button{padding:0 14px;min-height:35px;font-size:12px}.filters{gap:17px}.filter{font-size:12px}.count{font-size:10px}.wordmark{font-size:27px}.library-intro p{font-size:14px}}
