:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#17243d;background:#f7f9fc;font-synthesis:none;--blue:#2563eb;--muted:#758198;--border:#e7ecf4;--surface:#fff;--reader-bg:#faf6ed;--reader-ink:#302d29}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #93bbff;outline-offset:3px}a{color:var(--blue);text-decoration:none}button{border:0;background:transparent;color:inherit}input,select,textarea{border:1px solid var(--border);background:#fff;border-radius:12px;padding:12px 14px;color:inherit;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #a2c2ff;border-color:var(--blue)}textarea{resize:vertical;width:100%;line-height:1.7}input[type=range]{padding:0;accent-color:var(--blue)}h1,h2,h3,p{margin:0}svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.boot{padding:40px;text-align:center}.app-shell{max-width:1280px;margin:0 auto;padding:0 42px 110px}.topbar{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);gap:20px}.brand{display:flex;align-items:center;gap:12px;font-weight:750;font-size:23px;letter-spacing:-.7px}.brand img{height:42px;width:42px;border-radius:13px;box-shadow:0 4px 10px #2563eb22}.brand small{font-weight:400;font-size:11px;letter-spacing:2px;display:block;color:var(--muted);margin-top:3px}.top-links{display:flex;gap:8px}.top-links button{display:flex;gap:8px;align-items:center;padding:12px 18px;border-radius:12px;color:var(--muted);font-size:14px}.top-links button.active{background:#eaf1ff;color:var(--blue);font-weight:600}.device-note{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.device-note i,.status-dot{width:6px;height:6px;border-radius:50%;background:#24a879;display:inline-block}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:42px 0 28px}.eyebrow{color:var(--blue);font-size:11px;letter-spacing:2px;font-weight:700;margin-bottom:10px}.page-heading h1{font-size:30px;font-weight:700;letter-spacing:-1px}.page-heading p{color:var(--muted);font-size:14px;margin-top:10px}.primary,.secondary,.danger-button{border-radius:12px;padding:13px 19px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:550;font-size:14px}.primary{background:var(--blue);color:white;box-shadow:0 4px 12px #2563eb1c}.primary:hover{background:#1d4ed8}.secondary{background:#fff;border:1px solid var(--border)}.secondary:hover{background:#f1f5fb}.danger-button{background:#fff0f0;color:#cf4545}.small-button{padding:7px 10px;font-size:12px;border-radius:8px;border:1px solid var(--border);background:white}.icon-button{width:38px;height:38px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:#edf2f9}.hero{background:linear-gradient(105deg,#ebf2ff,#f0f6ff 65%,#e8f0ff);border:1px solid #e1eafb;border-radius:22px;min-height:214px;position:relative;display:flex;align-items:center;padding:30px 36px;gap:26px;overflow:hidden}.hero:after{content:"";position:absolute;width:300px;height:300px;border:1px solid #dbe6fb;border-radius:50%;right:-100px;top:-68px;pointer-events:none}.hero:before{content:"";position:absolute;width:210px;height:210px;border:1px solid #dbe6fb;border-radius:50%;right:-54px;top:-24px;pointer-events:none}.hero-copy{flex:1;position:relative;z-index:1}.hero-copy h2{font-size:24px;line-height:1.5;margin:7px 0 10px}.hero-copy p{font-size:13px;color:#72809d;line-height:1.8;max-width:440px}.hero-tag{color:#57719c;font-size:11px;letter-spacing:1.4px}.hero .primary{position:relative;z-index:1}.empty-book{width:100px;height:142px;background:#fff8;border:1px solid #fff;border-radius:7px 13px 13px 7px;display:flex;align-items:center;justify-content:center;color:#81a4e7;box-shadow:6px 9px 18px #365c9f13;border-left:7px solid #cadbfa;transform:rotate(-7deg);flex-shrink:0}.empty-book svg{width:42px;height:42px}.shelf-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:36px 0 22px}.shelf-tabs{display:flex;gap:22px;align-items:center}.shelf-tabs button{padding:10px 0;color:var(--muted);border-bottom:2px solid transparent;font-size:14px}.shelf-tabs button.active{color:var(--blue);border-color:var(--blue);font-weight:600}.count{font-size:10px;background:#e8edf5;border-radius:6px;padding:3px 6px;margin-left:5px}.shelf-controls{display:flex;align-items:center;gap:10px}.input-search{position:relative}.input-search svg{position:absolute;top:11px;left:12px;width:18px;color:#8894aa}.input-search input{padding-left:38px;width:220px;background:white;font-size:13px}.shelf-controls select{font-size:12px;padding:10px;max-width:145px}.book-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 30px}.book-card{min-width:0;position:relative}.book-open{width:100%;text-align:left;padding:0}.cover{aspect-ratio:3/4;max-height:255px;background:linear-gradient(155deg,var(--cover-a,#264b72),var(--cover-b,#152d48));color:#f5f0e3;border-radius:5px 12px 12px 5px;border-left:5px solid #ffffff24;padding:22px 16px;position:relative;overflow:hidden;box-shadow:3px 6px 12px #17243d16;display:flex;flex-direction:column;justify-content:space-between}.cover:after{content:"";position:absolute;width:200px;height:200px;border:1px solid #ffffff20;border-radius:50%;bottom:-90px;right:-100px}.cover:before{content:"";position:absolute;inset:12px;border:1px solid #ffffff23}.cover .cover-mark{font-size:9px;letter-spacing:3px;opacity:.6;position:relative}.cover .cover-title{font-family:"Songti SC",SimSun,serif;font-size:24px;line-height:1.5;writing-mode:vertical-rl;max-height:70%;position:relative;align-self:center;overflow:hidden}.cover .cover-bottom{font-size:9px;letter-spacing:2px;opacity:.65}.book-card h3{font-size:14px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:14px 30px 6px 0}.book-meta{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:5px}.book-actions{position:absolute;right:-4px;bottom:24px;color:#9aa6b9}.offline{font-size:10px;display:flex;align-items:center;gap:4px;color:#569280;margin-top:9px}.offline svg{width:12px;height:12px}.add-card{aspect-ratio:3/4;border:1.5px dashed #cfd9eb;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:var(--muted);max-height:255px}.add-card svg{width:26px;height:26px;color:#6895e6}.add-card span{font-size:13px}.add-card small{font-size:10px;color:#9aa6bb}.empty-state{text-align:center;padding:65px 20px;color:var(--muted)}.empty-state .empty-symbol{margin:auto auto 20px;background:#eaf1ff;color:var(--blue);width:64px;height:64px;border-radius:20px;display:flex;align-items:center;justify-content:center}.empty-symbol svg{width:28px;height:28px}.empty-state h2{font-size:18px;color:#334159;margin-bottom:10px}.empty-state p{font-size:13px;line-height:1.8;margin-bottom:20px}.shelf-footer{display:flex;align-items:center;justify-content:space-between;color:#97a2b5;font-size:11px;margin-top:40px;border-top:1px solid var(--border);padding-top:22px}.shelf-footer span{display:flex;align-items:center;gap:6px}.shelf-footer svg{width:14px;height:14px}.bottom-nav{display:none}.panel{background:white;border:1px solid var(--border);border-radius:18px;padding:28px}.panel h2{font-size:17px;margin-bottom:18px}.panel p{font-size:13px;color:var(--muted);line-height:1.8}.two-column{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:24px}.form-label{font-size:13px;font-weight:600;display:block;margin-bottom:10px}.form-row{display:flex;gap:10px;margin-bottom:18px}.form-row input{flex:1}.form-row select{flex:1}.source-tabs{display:flex;gap:6px;padding:5px;background:#f4f6fb;border-radius:12px;margin-bottom:22px}.source-tabs button{flex:1;padding:10px;border-radius:9px;font-size:13px;color:var(--muted)}.source-tabs button.active{color:var(--blue);background:white;box-shadow:0 2px 5px #17243d0a}.upload-zone{border:1.5px dashed #c6d5ef;min-height:150px;border-radius:12px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--blue);background:#f8fbff}.upload-zone svg{width:30px;height:30px}.upload-zone small{color:var(--muted);font-size:11px}.hint{font-size:12px;color:var(--muted);line-height:1.8;margin-top:14px}.notice{padding:15px 17px;border-radius:12px;background:#f0f5ff;color:#577099;font-size:12px;line-height:1.8;margin-bottom:20px}.feature-line{display:flex;gap:14px;margin-bottom:23px}.feature-line>svg{padding:9px;width:40px;height:40px;background:#edf3ff;color:var(--blue);border-radius:10px}.feature-line h3{font-size:14px;margin-bottom:5px}.feature-line p{font-size:12px}.stats{display:flex;gap:12px;margin-bottom:20px}.stat{flex:1;text-align:center;padding:19px 8px;border-radius:12px;background:#f2f5fa}.stat strong{display:block;font-size:25px;margin-bottom:6px}.stat span{font-size:12px}.stat.verified{background:#eaf7f0;color:#21814d}.stat.pending{background:#fff6e5;color:#b87610}.stat.unsupported{background:#f0f2f6;color:#788399}.source-list{display:flex;flex-direction:column}.source-item{padding:20px 0;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;gap:14px}.source-item:last-child{border:0}.status-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;flex-shrink:0;background:#f0f2f6;color:#8792a5}.status-icon.verified{background:#e6f6ed;color:#27945c}.status-icon.pending{background:#fff4dd;color:#bd8423}.source-body{flex:1;min-width:0}.source-body h3{font-size:14px;margin-bottom:6px;overflow-wrap:anywhere}.source-body p{font-size:12px;overflow-wrap:anywhere}.source-tools{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap}.badge{font-size:10px;padding:4px 7px;border-radius:6px;background:#eef2f9;color:#687991;white-space:nowrap}.switch{width:36px;height:21px;background:#d8dee8;border-radius:15px;position:relative;flex-shrink:0}.switch:before{content:"";position:absolute;left:3px;top:3px;width:15px;height:15px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002}.switch[aria-checked=true]{background:var(--blue)}.switch[aria-checked=true]:before{left:18px}.search-main{display:flex;gap:12px;max-width:800px;margin:0 auto 24px}.search-main input{flex:1;padding:17px}.search-main .primary{padding:15px 25px}.results-list{display:flex;flex-direction:column;gap:14px}.result-card{display:flex;align-items:center;gap:18px;padding:22px}.result-card .mini-cover{width:50px;height:70px;min-width:50px;padding:8px;background:#eaf1ff;color:var(--blue);border-radius:5px;display:flex;align-items:center;justify-content:center}.result-info{flex:1;min-width:0}.result-info h3{font-size:16px;margin-bottom:8px}.result-info p{font-size:12px}.result-info .source-name{font-size:11px;color:#27945c;margin-top:8px}.progress-area{background:#fff;border:1px solid #e1e9f6;border-radius:14px;padding:18px 22px;margin:20px 0}.progress-line{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;margin-bottom:10px}.progress-track{height:5px;border-radius:4px;background:#e9eff8;overflow:hidden}.progress-fill{height:100%;background:var(--blue);transition:width .2s}.progress-meta{font-size:11px;color:var(--muted);margin-top:10px}.settings-list{display:flex;flex-direction:column;gap:24px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.setting-row label{font-size:14px}.setting-row small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.setting-row input[type=range]{width:180px}.theme-picker{display:flex;gap:12px}.theme-picker button{width:32px;height:32px;border:3px solid white;border-radius:50%;outline:1px solid #dde3ec}.theme-picker button.selected{outline:2px solid var(--blue)}.theme-picker .white{background:white}.theme-picker .paper{background:#faf6ed}.theme-picker .green{background:#e8f3e7}.theme-picker .dark{background:#232833}.storage-number{font-size:29px;font-weight:600;margin:8px 0 15px}.storage-track{height:7px;background:#edf2fa;border-radius:4px;overflow:hidden;margin-bottom:14px}.storage-track div{height:100%;background:var(--blue)}.section-space{margin-top:24px}.job-card{display:flex;gap:20px;align-items:center;margin-bottom:12px}.job-card>div{flex:1}.job-card h3{font-size:14px;margin-bottom:6px}.job-card p{font-size:12px}.error-panel{color:#b44141;background:#fff1f1;padding:15px;border-radius:10px;line-height:1.8;font-size:13px}.drag-overlay{position:fixed;inset:15px;border:3px dashed #2563eb;border-radius:22px;background:#eff5ffeb;z-index:90;display:flex;align-items:center;justify-content:center;font-size:25px;color:var(--blue);pointer-events:none}#toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,15px);background:#1e2d45;color:white;border-radius:12px;padding:13px 20px;box-shadow:0 8px 30px #0002;font-size:13px;opacity:0;pointer-events:none;z-index:200;transition:.2s;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--border);border-radius:20px;padding:28px;max-width:min(560px,92vw);width:560px;max-height:85dvh;color:#17243d;box-shadow:0 20px 100px #152b4a25}dialog::backdrop{background:#15243d66;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:16px}.dialog-head h2{font-size:19px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}dialog p{font-size:13px;color:var(--muted);line-height:1.8}dialog pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f6fb;padding:16px;border-radius:10px;max-height:45vh;overflow:auto}.toc-list{display:flex;flex-direction:column;max-height:52vh;overflow:auto;gap:3px}.toc-list button{padding:13px;text-align:left;border-radius:8px;font-size:13px;display:flex;justify-content:space-between;gap:10px}.toc-list button.active{background:#eaf1ff;color:var(--blue)}.toc-list button:hover{background:#f3f6fb}.reader-shell{height:100dvh;background:var(--reader-bg);color:var(--reader-ink);display:flex;flex-direction:column}.reader-top{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:8px 24px;padding-top:max(8px,env(safe-area-inset-top));border-bottom:1px solid #88888815}.reader-title{font-size:13px;text-align:center;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reader-title small{display:block;font-size:10px;color:#888;margin-top:4px}.reader-main{flex:1;min-height:0;width:min(780px,100%);margin:auto;display:flex;flex-direction:column}.chapter-heading{font-family:"Songti SC",SimSun,serif;font-size:21px;text-align:center;padding:24px 20px 4px}.reader-viewport{--reader-font:20px;--reader-line:1.9;--reader-margin:28px;flex:1;min-height:0;padding:var(--reader-margin);overflow:hidden;position:relative;contain:layout style paint;font-size:var(--reader-font);line-height:var(--reader-line);font-family:"Songti SC","Noto Serif CJK SC",SimSun,serif}.reader-text{white-space:pre-wrap;overflow-wrap:anywhere;text-align:justify;tab-size:2}.reader-viewport.pages .reader-text{column-fill:auto;will-change:transform}.reader-viewport.scroll{overflow-y:auto;overscroll-behavior:contain}.reader-loading{display:flex;align-items:center;justify-content:center;flex:1;color:#888;font-size:14px;padding:30px}.reader-bottom{border-top:1px solid #88888815;padding:12px 24px max(15px,env(safe-area-inset-bottom));flex-shrink:0;background:var(--reader-bg)}.reader-progress{max-width:730px;margin:auto}.reader-progress-row{display:flex;gap:14px;align-items:center;font-size:10px;color:#8b8d92}.reader-progress-row input{flex:1}.reader-buttons{display:flex;align-items:center;justify-content:space-between;max-width:730px;margin:12px auto 0;font-size:12px}.reader-buttons button{display:flex;align-items:center;gap:6px;padding:8px;border-radius:8px}.reader-buttons button:hover{background:#88888812}.reader-buttons svg{width:18px;height:18px}.theme-dark{--reader-bg:#232833;--reader-ink:#c9cdd5}.theme-white{--reader-bg:#fff;--reader-ink:#242a34}.theme-green{--reader-bg:#e8f3e7;--reader-ink:#2e3c31}.theme-paper{--reader-bg:#faf6ed;--reader-ink:#302d29}.install-banner{margin:18px 0;padding:13px 18px;border:1px solid #d9e5fa;background:#edf4ff;border-radius:12px;display:flex;align-items:center;gap:12px;font-size:12px}.install-banner p{flex:1}.sample-note{font-size:11px;color:var(--muted);margin-top:12px}.full-width{width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.muted{color:var(--muted)}.library-list{display:flex;flex-direction:column;gap:12px}.library-list .book-card{display:flex;gap:20px;padding:17px;background:white;border:1px solid var(--border);border-radius:12px}.library-list .book-open{display:flex;gap:18px;align-items:center}.library-list .cover{width:54px;min-width:54px;height:74px;aspect-ratio:auto;padding:8px}.library-list .cover-title{font-size:13px}.library-list .cover-mark,.library-list .cover-bottom{display:none}.library-list .book-actions{bottom:auto;top:25px;right:15px}.library-list .book-open>div:last-child{flex:1}
@media(min-width:1500px){.app-shell{max-width:1360px}.book-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1000px){.app-shell{padding:0 28px 100px}.device-note{display:none}.book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.top-links button{padding:11px 13px}.two-column{grid-template-columns:1fr}.hero{padding:26px}.panel{padding:23px}}
@media(max-width:700px){.app-shell{padding:0 20px 105px}.topbar{height:78px}.brand{font-size:20px}.brand img{height:36px;width:36px}.brand small{font-size:9px}.top-links{display:none}.device-note{display:flex;font-size:10px}.page-heading{padding:28px 0 22px;align-items:center}.page-heading h1{font-size:25px}.page-heading p{font-size:12px;max-width:220px;line-height:1.7}.eyebrow{font-size:9px}.page-heading .primary{padding:11px 12px;font-size:12px}.page-heading .primary svg{width:17px;height:17px}.hero{padding:22px;gap:18px;min-height:183px;flex-wrap:wrap}.empty-book{width:65px;height:98px}.empty-book svg{width:29px;height:29px}.hero-copy h2{font-size:20px}.hero-copy p{font-size:11px}.hero>.primary{padding:10px 15px;font-size:12px;margin-left:83px}.hero-tag{font-size:9px}.shelf-bar{flex-wrap:wrap;margin-top:26px;gap:13px}.shelf-tabs{gap:22px}.shelf-controls{width:100%}.input-search{flex:1}.input-search input{width:100%}.shelf-controls select{width:105px}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:23px 16px}.cover{padding:14px 9px;border-left-width:3px;border-radius:4px 8px 8px 4px}.cover .cover-title{font-size:19px}.cover .cover-mark{font-size:7px;letter-spacing:1px}.cover .cover-bottom{font-size:7px}.book-card h3{font-size:12px;margin-top:10px;margin-right:20px}.book-meta{font-size:9px}.book-actions{bottom:21px}.book-actions svg{width:17px;height:17px}.offline{font-size:9px}.add-card{gap:8px}.add-card span{font-size:11px}.add-card small{font-size:8px}.shelf-footer{align-items:flex-start;gap:15px;line-height:1.7;font-size:10px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#ffffffed;backdrop-filter:blur(15px);border-top:1px solid var(--border);padding:8px 12px max(10px,env(safe-area-inset-bottom));z-index:20;justify-content:space-around}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:#8a95a9;padding:6px 15px}.bottom-nav button.active{color:var(--blue)}.bottom-nav svg{width:21px;height:21px}.panel{padding:20px}.form-row{flex-wrap:wrap}.form-row input{min-width:160px}.stats{gap:8px}.stat{padding:15px 5px}.stat strong{font-size:23px}.source-item{gap:10px}.source-tools{gap:5px}.search-main{gap:8px}.search-main input{padding:14px;width:100px}.search-main .primary{padding:12px 15px}.result-card{padding:17px;gap:12px;flex-wrap:wrap}.result-card .primary{margin-left:62px;padding:8px 14px;font-size:12px}.setting-row input[type=range]{width:130px}.setting-row select{max-width:150px;font-size:12px}#toast{bottom:100px}.reader-top{padding-left:10px;padding-right:10px;height:57px}.chapter-heading{font-size:19px;padding-top:20px}.reader-bottom{padding-left:12px;padding-right:12px}.reader-buttons{font-size:10px}.reader-buttons button{padding:7px 5px;gap:4px}.reader-buttons svg{width:16px;height:16px}.reader-shell #toast{bottom:110px}dialog{padding:22px}.dialog-actions{flex-wrap:wrap}.job-card{gap:10px;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.hero .cover{width:95px;height:133px;flex-shrink:0;padding:14px 10px}.hero .cover-title{font-size:20px}.hero .cover-mark,.hero .cover-bottom{font-size:7px}
@media(max-width:700px){.hero .cover{width:65px;height:98px;padding:10px 7px}.hero .cover-title{font-size:16px}.hero .cover-mark,.hero .cover-bottom{font-size:5px}}
.reader-shell{position:relative;overflow:hidden}.reader-shell.rotated{position:fixed;top:0;left:0;transform-origin:0 0;z-index:30}.reader-main{padding-top:env(safe-area-inset-top);padding-bottom:max(12px,env(safe-area-inset-bottom))}.reader-top,.reader-bottom{position:absolute;left:0;right:0;z-index:5;background:var(--reader-bg);box-shadow:0 0 18px #00000014;opacity:0;pointer-events:none;transition:transform .2s ease,opacity .2s ease}.reader-top{top:0;height:auto;min-height:57px;transform:translateY(-100%)}.reader-bottom{bottom:0;transform:translateY(100%)}.reader-shell.chrome .reader-top,.reader-shell.chrome .reader-bottom{opacity:1;pointer-events:auto;transform:none}
html,body{overscroll-behavior:none}body{touch-action:manipulation;-webkit-touch-callout:none}html.reading body{position:fixed;inset:0;overflow:hidden}.reader-viewport.pages{touch-action:none;-webkit-user-select:none;user-select:none}.reader-viewport.scroll{touch-action:pan-y;overscroll-behavior:none}
dialog.sheet{margin:auto 0 0;width:100%;max-width:100%;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain;border-radius:20px 20px 0 0;border-bottom:0;padding:16px 22px max(18px,env(safe-area-inset-bottom));box-shadow:0 -10px 40px #0000001f}dialog.sheet::backdrop{background:transparent;backdrop-filter:none}dialog.sheet .dialog-head{margin-bottom:12px}dialog.sheet .dialog-head h2{font-size:16px}dialog.sheet .settings-list{gap:16px}@media(min-width:701px){dialog.sheet{max-width:640px;margin:auto auto 0}}
.reader-title span{display:block;overflow:hidden;text-overflow:ellipsis;font-weight:600}.reader-title small{overflow:hidden;text-overflow:ellipsis}
.reader-main{padding-bottom:max(26px,calc(env(safe-area-inset-bottom) + 18px))}.reader-status{position:absolute;left:0;right:0;bottom:max(6px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;padding:0 var(--reader-margin,24px);max-width:780px;margin:0 auto;opacity:.38;pointer-events:none;z-index:1;font-size:10px;font-variant-numeric:tabular-nums;color:var(--reader-ink)}.reader-status-track{flex:1;height:2px;border-radius:2px;background:color-mix(in srgb,var(--reader-ink) 18%,transparent);overflow:hidden}.reader-status-track i{display:block;height:100%;width:0;background:var(--reader-ink);transition:width .3s ease}
