:root{--bg: #f7f4ef;--surface: #fffdfa;--surface-2: #f1ece4;--text: #23201c;--text-muted: #7b7369;--text-faint: #a49b90;--line: rgba(35, 32, 28, .1);--line-strong: rgba(35, 32, 28, .2);--accent: #8a5a2b;--danger: #b03a52;--shadow: 0 1px 2px rgba(35, 32, 28, .06), 0 8px 24px rgba(35, 32, 28, .08);--shadow-pop: 0 2px 6px rgba(35, 32, 28, .1), 0 16px 40px rgba(35, 32, 28, .18);--c-mainline: #c2600f;--c-highlight: #9a7400;--c-question: #2c6cb0;--c-critique: #b03a52;--c-association: #147a66;--c-note: #6f675f;--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--font-read: "Iowan Old Style", "Palatino", Georgia, "Songti SC", "Source Han Serif SC", serif;--radius: 10px;--radius-lg: 16px}@media (prefers-color-scheme: dark){:root{--bg: #16161a;--surface: #1e1e23;--surface-2: #26262c;--text: #e8e5e0;--text-muted: #9a948c;--text-faint: #6d6862;--line: rgba(232, 229, 224, .12);--line-strong: rgba(232, 229, 224, .24);--accent: #d8a469;--danger: #ef8a9d;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .4);--shadow-pop: 0 2px 8px rgba(0, 0, 0, .5), 0 16px 48px rgba(0, 0, 0, .6);--c-mainline: #f0a15e;--c-highlight: #e0c05e;--c-question: #7db6ee;--c-critique: #ef8a9d;--c-association: #56c6ab;--c-note: #a9a29a}}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-ui);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;padding:0}input,textarea,select{font:inherit;color:inherit}a{color:inherit;text-decoration:none}::selection{background:#8a5a2b38}.app{height:100%;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:16px;padding:0 20px;height:52px;flex:0 0 auto;border-bottom:1px solid var(--line);background:var(--surface)}.topbar .brand{font-weight:600;letter-spacing:.02em;font-size:14px}.topbar .brand small{display:block;font-weight:400;font-size:11px;color:var(--text-faint);letter-spacing:.04em}.nav{display:flex;gap:4px;margin-left:auto}.nav a{padding:6px 12px;border-radius:var(--radius);font-size:13px;color:var(--text-muted)}.nav a:hover{background:var(--surface-2);color:var(--text)}.nav a.active{background:var(--surface-2);color:var(--text);font-weight:600}.page{flex:1 1 auto;overflow-y:auto}.page-inner{max-width:1080px;margin:0 auto;padding:32px 24px 96px}.page-inner.narrow{max-width:760px}.page-head{margin-bottom:24px}.page-head h1{font-size:22px;margin:0 0 4px;font-weight:650}.page-head p{margin:0;color:var(--text-muted);font-size:13px}.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:var(--radius);border:1px solid var(--line-strong);background:var(--surface);font-size:13px;transition:background .12s,border-color .12s}.btn:hover{background:var(--surface-2)}.btn.primary{background:var(--text);color:var(--bg);border-color:var(--text)}.btn.primary:hover{opacity:.88}.btn.ghost{border-color:transparent;color:var(--text-muted)}.btn.ghost:hover{color:var(--text);background:var(--surface-2)}.btn.danger{color:var(--danger)}.btn:disabled{opacity:.45;cursor:not-allowed}.empty{padding:64px 24px;text-align:center;color:var(--text-muted);border:1px dashed var(--line-strong);border-radius:var(--radius-lg)}.empty h3{margin:0 0 8px;font-size:15px;color:var(--text);font-weight:600}.empty p{margin:0 auto;max-width:380px;font-size:13px;line-height:1.7}.shelf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:24px}.book-card{display:flex;flex-direction:column;gap:10px}.book-cover{position:relative;aspect-ratio:2 / 3;border-radius:6px;overflow:hidden;background:var(--surface-2);box-shadow:var(--shadow);display:block;transition:transform .15s ease}.book-card:hover .book-cover{transform:translateY(-3px)}.book-cover img{width:100%;height:100%;object-fit:cover;display:block}.book-cover .fallback{position:absolute;top:0;right:0;bottom:0;left:0;padding:18px 14px;display:flex;flex-direction:column;justify-content:space-between;font-family:var(--font-read);background:linear-gradient(155deg,var(--surface-2),var(--surface));border:1px solid var(--line)}.book-cover .fallback .t{font-size:14px;line-height:1.35;font-weight:600}.book-cover .fallback .a{font-size:11px;color:var(--text-muted)}.book-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:#0000001f}.book-progress i{display:block;height:100%;background:var(--accent)}.book-meta .t{font-size:13px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-meta .a{font-size:12px;color:var(--text-muted);margin-top:2px}.book-counts{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;font-size:11px;color:var(--text-muted)}.book-counts span{display:inline-flex;align-items:center;gap:3px}.book-actions{display:flex;gap:8px;margin-top:2px}.book-actions a,.book-actions button{font-size:12px;color:var(--text-muted);border-bottom:1px solid transparent}.book-actions a:hover,.book-actions button:hover{color:var(--text);border-bottom-color:var(--line-strong)}.dropzone{border:1px dashed var(--line-strong);border-radius:var(--radius-lg);padding:28px;text-align:center;color:var(--text-muted);font-size:13px;margin-bottom:28px;transition:background .12s,border-color .12s}.dropzone.over{background:var(--surface-2);border-color:var(--accent);color:var(--text)}.reader{height:100%;display:flex;flex-direction:column;background:var(--bg)}.reader-bar{position:relative;display:flex;align-items:center;gap:12px;height:48px;padding:0 16px;flex:0 0 auto;border-bottom:1px solid var(--line);background:var(--surface);font-size:13px}.reader-bar .title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw}.reader-bar .chapter{color:var(--text-muted);flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-bar .spacer{flex:1 1 auto}.reader-bar .tools{display:flex;align-items:center;gap:6px}.icon-btn{width:30px;height:30px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--text-muted);font-size:14px}.icon-btn:hover,.icon-btn.on{background:var(--surface-2);color:var(--text)}.reader-body{flex:1 1 auto;position:relative;overflow:hidden}.reader-stage{position:absolute;top:0;right:0;bottom:0;left:0;bottom:env(safe-area-inset-bottom);display:flex;justify-content:center;transition:right .16s ease}.reader-stage.with-side{right:340px}.reader-viewport{width:min(760px,100%);height:100%}.reader-viewport.scrolled{width:min(760px,calc(100% - 40px))}.page-arrow{position:absolute;top:0;bottom:0;width:8%;min-width:44px;display:flex;align-items:center;justify-content:center;color:var(--text-faint);opacity:0;transition:opacity .15s;font-size:20px;z-index:5}.reader-body:hover .page-arrow{opacity:1}.page-arrow:hover{color:var(--text);background:#7f7f7f0f}.page-arrow.prev{left:0}.page-arrow.next{right:0}.reader-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:13px}.sheet-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:39}.reader-settings{position:absolute;z-index:40;top:calc(100% + 6px);right:8px;width:min(300px,calc(100vw - 16px));background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop);padding:12px 14px}.reader-settings .row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:7px 0}.reader-settings .row+.row{border-top:1px solid var(--line)}.reader-settings .label{flex:1 1 100%;font-size:11px;color:var(--text-faint);letter-spacing:.03em}.reader-settings .value{font-size:12px;color:var(--text-muted);min-width:44px;text-align:center}.reader-settings .btn{min-width:44px;justify-content:center}.reader-settings .note{flex:1 1 100%;font-size:11px;line-height:1.5;color:var(--text-faint);margin-top:2px}.swatch{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:var(--radius);border:1px solid var(--line-strong);font-size:12px;color:var(--text-muted)}.swatch i{width:13px;height:13px;border-radius:50%;border:1px solid var(--line-strong);display:block}.swatch.on{color:var(--text);font-weight:600;border-color:var(--text-muted)}.capture{position:fixed;z-index:60;width:396px;--tc: var(--text-muted);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop);overflow:hidden}.capture.typed{border-top:2px solid var(--tc)}.capture-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:59;background:#14121052;animation:capture-fade .16s ease}@keyframes capture-fade{0%{opacity:0}}.capture-grip{width:34px;height:4px;margin:8px auto 2px;border-radius:999px;background:var(--line-strong)}.capture-head{display:flex;align-items:baseline;gap:8px;padding:10px 16px 11px;border-bottom:1px solid var(--line)}.capture-head .g{font-size:15px;line-height:1;color:var(--tc)}.capture-head .l{font-size:14px;font-weight:650;color:var(--text)}.capture-head .h{flex:1;min-width:0;font-size:11.5px;color:var(--text-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capture-lead{padding:12px 16px 10px;font-size:12.5px;color:var(--text-muted);border-bottom:1px solid var(--line)}.capture-types{display:flex;padding:8px;gap:4px}.capture-type{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 2px 8px;border-radius:var(--radius);border:1px solid transparent;transition:background .1s,border-color .1s}.capture-type:hover{background:var(--surface-2)}.capture-type .g{font-size:15px;line-height:1;color:var(--tc)}.capture-type .l{font-size:11px;color:var(--text-muted);white-space:nowrap}.capture-type.on{background:color-mix(in srgb,var(--tc) 16%,transparent);border-color:color-mix(in srgb,var(--tc) 55%,transparent)}.capture-type.on .l{color:var(--text);font-weight:650}.capture-hint{padding:0 16px 8px;font-size:11.5px;color:var(--text-faint)}.capture-notes{padding:10px 16px 6px;max-height:230px;overflow-y:auto;background:var(--surface);border-top:1px solid var(--line-strong)}.capture-notes .notes{margin-top:0}.capture-notes .note-editor{margin-top:6px;min-height:58px;font-size:13px}.capture-idle{border-top:1px solid var(--line-strong);padding:16px;font-size:12.5px;color:var(--text-faint);background:var(--surface)}.capture-foot{display:flex;align-items:center;gap:8px;padding:8px 12px 10px 16px;border-top:1px solid var(--line);background:var(--surface)}.capture-foot .keys{font-size:11px;color:var(--text-faint);margin-right:auto}kbd{font-family:var(--font-ui);font-size:10px;padding:1px 4px;border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:4px;color:var(--text-muted)}.existing{position:fixed;z-index:60;width:320px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop);padding:12px 14px}.existing .row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.existing .note{font-size:13px;line-height:1.6;white-space:pre-wrap;margin-bottom:10px}.existing .note.empty-note{color:var(--text-faint);font-style:italic}.existing .acts{display:flex;gap:6px}.reader-side{position:absolute;top:0;right:0;bottom:0;width:340px;background:var(--surface);border-left:1px solid var(--line);overflow-y:auto;z-index:20;padding:14px}.reader-side h4{margin:0 0 10px;font-size:12px;font-weight:600;color:var(--text-muted);letter-spacing:.04em}.side-empty{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--text-faint)}.toc-list,.search-results{display:flex;flex-direction:column;gap:4px}.toc-item,.search-hit{width:100%;border-radius:8px;text-align:left;color:var(--text-muted);background:transparent}.toc-item{min-height:38px;padding:8px 10px;font-size:13px;line-height:1.35}.toc-item:hover,.search-hit:hover{color:var(--text);background:var(--surface-2)}.reader-search{display:flex;align-items:center;gap:6px;margin-bottom:12px}.reader-search input{min-width:0;flex:1 1 auto;height:38px;border-radius:8px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);padding:0 11px;font-size:13px;outline:none}.reader-search input:focus{border-color:var(--accent)}.reader-search .icon-btn{width:38px;height:38px}.search-hit{display:flex;flex-direction:column;gap:4px;padding:10px 11px}.search-chapter{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;color:var(--text-faint)}.search-excerpt{font-family:var(--font-read);font-size:13.5px;line-height:1.55}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:var(--tc);padding:2px 8px 2px 6px;border-radius:999px;background:color-mix(in srgb,var(--tc) 12%,transparent);white-space:nowrap}.badge .g{font-size:11px}.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:20px}.chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;border:1px solid var(--line-strong);font-size:12px;color:var(--text-muted);background:var(--surface);transition:background .1s,color .1s,border-color .1s}.chip:hover{background:var(--surface-2);color:var(--text)}.chip .n{font-size:11px;color:var(--text-faint)}.chip.on{color:var(--tc, var(--text));border-color:color-mix(in srgb,var(--tc, var(--text)) 45%,transparent);background:color-mix(in srgb,var(--tc, var(--text)) 12%,transparent);font-weight:600}.chip.on .n{color:inherit;opacity:.7}.search{flex:1 1 180px;min-width:160px;max-width:320px;padding:6px 12px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);outline:none;font-size:13px}.search:focus{border-color:var(--accent)}.select{padding:5px 10px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);font-size:12px;outline:none}.thoughts{display:flex;flex-direction:column;gap:14px}.thought{--tc: var(--text-muted);background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--tc);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow)}.thought .head{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:11px;color:var(--text-faint)}.thought .head .sp{flex:1 1 auto}.thought .head .acts{display:flex;gap:2px;opacity:0;transition:opacity .12s}.thought:hover .head .acts{opacity:1}.thought .quote{font-family:var(--font-read);font-size:15.5px;line-height:1.72;margin:0;cursor:pointer}.thought .quote:hover{text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:4px}.thought .context{margin-top:8px;font-family:var(--font-read);font-size:13px;line-height:1.7;color:var(--text-faint);border-top:1px dashed var(--line);padding-top:8px}.thought .context b{font-weight:400;color:var(--text-muted)}.notes{margin-top:10px}.note{position:relative;padding:9px 12px;border-radius:8px;background:var(--surface-2);font-size:13.5px;line-height:1.65}.note+.note{margin-top:6px}.note+.note:before{content:"";position:absolute;left:12px;top:-5px;width:1px;height:5px;background:var(--line-strong)}.note-text{white-space:pre-wrap;cursor:text}.note-text strong,.note-format-hint strong{font-weight:650}.note-text em,.note-format-hint em{font-style:italic}.note-text mark,.note-format-hint mark{background:none;color:var(--c-critique);font-weight:600}.note-text code,.note-format-hint code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;padding:0 3px;border-radius:3px;background:var(--surface-2)}.note-format-hint{margin-top:5px;font-size:11px;line-height:1.5;color:var(--text-faint)}.note-meta{display:flex;align-items:center;gap:8px;margin-top:5px;font-size:10.5px;color:var(--text-faint)}.note-meta button{margin-left:auto;opacity:0;color:var(--text-faint);font-size:11px;transition:opacity .12s,color .12s}.note:hover .note-meta button{opacity:1}.note-meta button:hover{color:var(--danger)}.note-add{display:block;margin-top:4px;font-size:12.5px;color:var(--text-faint);opacity:.75;transition:opacity .12s,color .12s}.thought:hover .note-add{opacity:1;color:var(--text-muted)}.note-add:hover{color:var(--text)!important}.notes.compact .note{font-size:12.5px;padding:7px 10px}.thought .foot{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:11px;color:var(--text-faint)}.thought .foot a{border-bottom:1px solid var(--line-strong)}.thought .foot a:hover{color:var(--text)}.note-editor{margin-top:10px;width:100%;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface-2);padding:9px 12px;font-size:13.5px;line-height:1.65;resize:vertical;min-height:72px;outline:none;font-family:var(--font-ui)}.note-editor:focus{border-color:var(--accent)}.note-actions{display:flex;gap:8px;margin-top:8px}.thought.compact{padding:10px 12px;font-size:13px;box-shadow:none}.thought.compact .quote{font-size:13.5px;line-height:1.6}.book-hero{display:flex;gap:22px;align-items:flex-start;margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}.book-hero .cover{width:96px;flex:0 0 auto}.book-hero .info h1{margin:0 0 4px;font-size:24px;font-family:var(--font-read);font-weight:600}.book-hero .info .a{color:var(--text-muted);font-size:14px;margin-bottom:12px}.book-hero .info .acts{display:flex;gap:8px}.stat-row{display:flex;flex-wrap:wrap;gap:18px;margin:14px 0 4px}.stat{display:flex;flex-direction:column;gap:1px}.stat .n{font-size:20px;font-weight:650;color:var(--tc, var(--text));line-height:1.2}.stat .l{font-size:11px;color:var(--text-muted)}.chapter-group{margin-bottom:34px}.chapter-head{position:sticky;top:-1px;z-index:2;display:flex;align-items:baseline;gap:10px;padding:10px 0;margin-bottom:6px;background:linear-gradient(var(--bg) 70%,transparent);font-size:12px;color:var(--text-muted);letter-spacing:.03em}.chapter-head .name{font-weight:600;color:var(--text);font-size:13px}.chapter-head .line{flex:1 1 auto;height:1px;background:var(--line)}.spine-list{position:relative;padding-left:26px}.spine-list:before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;background:linear-gradient(var(--c-mainline),color-mix(in srgb,var(--c-mainline) 20%,transparent));border-radius:2px}.spine-list .thought{position:relative;border-left-color:transparent}.spine-list .thought:before{content:"";position:absolute;left:-23px;top:20px;width:9px;height:9px;border-radius:50%;background:var(--c-mainline);box-shadow:0 0 0 3px var(--bg)}.reconstruct-hint{margin-bottom:18px;padding:12px 16px;border-radius:var(--radius);background:var(--surface-2);font-size:13px;line-height:1.7;color:var(--text-muted)}.reconstruct-hint b{color:var(--text);font-weight:600}.data-panel{margin-top:56px;padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}.data-panel h3{margin:0 0 6px;font-size:14px;font-weight:650}.data-panel p{margin:0 0 4px;font-size:12.5px;line-height:1.65;color:var(--text-muted);max-width:62ch}.data-panel p.fine{font-size:11.5px;color:var(--text-faint);margin-top:10px}.data-panel p.ok{color:var(--c-association)}.data-panel p.warn{color:var(--danger)}.data-panel p:empty{display:none}.data-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.sync-box{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.sync-box label{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:10px;margin-top:8px;font-size:12px;color:var(--text-muted)}.sync-box input{width:100%;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface-2);padding:7px 10px;font-size:12.5px;outline:none}.sync-box input:focus{border-color:var(--accent)}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%);z-index:100;padding:9px 18px;border-radius:999px;background:var(--text);color:var(--bg);font-size:13px;box-shadow:var(--shadow-pop);pointer-events:none;animation:toast-in .18s ease}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}}.flash{animation:flash 1.6s ease}@keyframes flash{0%,40%{background:color-mix(in srgb,var(--accent) 18%,transparent)}to{background:transparent}}@media (hover: none){input,select,textarea,.note-editor,.capture-notes .note-editor{font-size:16px}.page-arrow{opacity:.4;width:12%}.page-arrow:hover{background:none}.thought .head .acts,.note-meta button{opacity:1}.icon-btn{width:38px;height:38px}.note-add{opacity:1;color:var(--text-muted)}}.reader-bar{padding-top:env(safe-area-inset-top);height:calc(48px + env(safe-area-inset-top))}.topbar{padding-top:env(safe-area-inset-top);height:calc(52px + env(safe-area-inset-top))}@media (max-width: 720px){.reader-side{width:100%}.reader-stage.with-side{right:0}.page-inner{padding:20px 16px 80px}.book-hero{gap:14px}.book-hero .cover{width:68px}.capture{width:min(396px,calc(100vw - 20px))}}.capture.sheet{left:0;right:0;bottom:0;top:auto;width:100%;max-height:min(76vh,600px);overflow-y:auto;border:none;border-radius:20px 20px 0 0;box-shadow:0 -1px 0 var(--line-strong),0 -10px 44px #14121047;padding-bottom:env(safe-area-inset-bottom);animation:sheet-up .2s cubic-bezier(.2,.8,.2,1)}.capture.sheet.typed{border-top:none}.capture.sheet.typed .capture-grip{background:var(--tc);opacity:.55}@keyframes sheet-up{0%{transform:translateY(16px);opacity:0}}.capture.sheet .capture-head{padding:4px 18px 12px}.capture.sheet .capture-head .l{font-size:15px}.capture.sheet .capture-lead{padding:4px 18px 12px;font-size:13px}.capture.sheet .capture-types{display:flex;gap:4px;padding:10px;background:var(--surface-2);border-top:1px solid var(--line)}.capture.sheet .capture-type{padding:10px 0 9px;min-height:56px;background:var(--surface);border-color:var(--line)}.capture.sheet .capture-type.on{background:color-mix(in srgb,var(--tc) 16%,var(--surface))}.capture.sheet .capture-hint{padding:8px 18px;background:var(--surface-2)}.capture.sheet .capture-notes{max-height:38vh;padding:14px 18px 10px}.capture.sheet .capture-idle{padding:20px 18px;text-align:center}.capture.sheet .capture-foot{position:sticky;bottom:calc(-1*env(safe-area-inset-bottom));gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line-strong)}.capture.sheet .capture-foot .keys{display:none}.capture.sheet .capture-foot .btn{flex:1;justify-content:center;padding:11px 12px}.capture.sheet .capture-foot>.btn:last-child{background:var(--text);color:var(--bg);border-color:var(--text)}.capture.sheet .capture-foot .btn.ghost{flex:0 1 auto;background:var(--surface-2);border-color:transparent}@media (max-width: 560px){.reader-bar .title{display:none}.reader-bar{gap:6px;padding:env(safe-area-inset-top) 8px 0}.reader-bar .tools{gap:2px}.reader-bar .chapter{font-size:12px}.topbar{padding:0 14px}.topbar .brand small{display:none}.nav a{padding:6px 9px}.shelf-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:18px}.page-head h1,.book-hero .info h1{font-size:20px}.stat-row{gap:14px}.stat .n{font-size:17px}.sync-box label{grid-template-columns:1fr;gap:4px}}@media (hover: none) and (max-width: 720px){.capture:not(.sheet){left:0!important;right:0;top:auto!important;bottom:0;width:100%;max-height:min(76vh,600px);border:none;border-radius:20px 20px 0 0;box-shadow:0 -10px 44px #14121047;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom)}.capture:not(.sheet) .capture-foot{position:sticky;bottom:calc(-1*env(safe-area-inset-bottom))}.capture:not(.sheet) .capture-foot .keys{display:none}.capture-notes .note-editor{min-height:88px}}
