.textLayer{--csstools-color-scheme--light:initial;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only;text-align:initial;opacity:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;caret-color:canvastext;z-index:0;line-height:1;position:absolute;inset:0;overflow:clip}.textLayer.highlighting{touch-action:none}.textLayer :is(span,br){color:#0000;white-space:pre;cursor:text;transform-origin:0 0;position:absolute}.textLayer{--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor) * var(--min-font-size));--min-font-size-inv:calc(1 / var(--min-font-size))}.textLayer>:not(.markedContent),.textLayer .markedContent span:not(.markedContent){z-index:1;--font-height:0;font-size:calc(var(--text-scale-factor) * var(--font-height));--scale-x:1;--rotate:0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}.textLayer .markedContent{display:contents}.textLayer span[role=img]{-webkit-user-select:none;user-select:none;cursor:default}.textLayer .highlight{--highlight-bg-color:#b400aa40;--highlight-selected-bg-color:#00640040;--highlight-backdrop-filter:none;--highlight-selected-backdrop-filter:none}@media screen and (forced-colors:active){.textLayer .highlight{--highlight-bg-color:transparent;--highlight-selected-bg-color:transparent;--highlight-backdrop-filter:var(--hcm-highlight-filter);--highlight-selected-backdrop-filter:var(--hcm-highlight-selected-filter)}}.textLayer .highlight{background-color:var(--highlight-bg-color);-webkit-backdrop-filter:var(--highlight-backdrop-filter);backdrop-filter:var(--highlight-backdrop-filter);border-radius:4px;margin:-1px;padding:1px}.appended:is(.textLayer .highlight){position:initial}.begin:is(.textLayer .highlight){border-radius:4px 0 0 4px}.end:is(.textLayer .highlight){border-radius:0 4px 4px 0}.middle:is(.textLayer .highlight){border-radius:0}.selected:is(.textLayer .highlight){background-color:var(--highlight-selected-bg-color);-webkit-backdrop-filter:var(--highlight-selected-backdrop-filter);backdrop-filter:var(--highlight-selected-backdrop-filter);scroll-margin-top:50px}.textLayer ::selection{background:#0000ff40;background:color-mix(in srgb, AccentColor, transparent 75%)}.textLayer br::selection{background:0 0}.textLayer .endOfContent{z-index:0;cursor:default;-webkit-user-select:none;user-select:none;display:block;position:absolute;inset:100% 0 0}.textLayer.selecting .endOfContent{top:0}:root{--bg:#f7f8fb;--surface:#fff;--sidebar:#f7f8fb;--paper:#fff;--ink:#282c35;--muted:#7b808e;--line:#e8eaf0;--accent:#7455b1;--accent-hover:#604496;--accent-soft:#f0ebf9;--toolbar:#fff;--shadow:0 12px 50px #20203714;--yellow:#f8e8a6;--green:#d5ebce;--blue:#d4e8f8;--pink:#f6d6e4;--reading-size:21px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=paper]{--bg:#eee9e1;--surface:#f7f2e9;--sidebar:#f0ebe2;--paper:#faf5e9;--ink:#3d3730;--muted:#81786b;--line:#e2dace;--accent:#745646;--accent-hover:#614532;--accent-soft:#eee1cf;--toolbar:#faf5e9}:root[data-theme=dark]{--bg:#17191f;--surface:#21232b;--sidebar:#1b1d24;--paper:#1d1f26;--ink:#dedee5;--muted:#9b9baa;--line:#30323d;--accent:#b399e4;--accent-hover:#c6afed;--accent-soft:#332a46;--toolbar:#272934;--shadow:0 16px 60px #0005;--yellow:#61532b;--green:#334c36;--blue:#2d475e;--pink:#593448;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{overscroll-behavior:none;height:100%;margin:0;padding:0}body{color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;font-size:16px}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;background:0 0;border:0}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[role=button]:focus-visible{outline-offset:3px;outline:3px solid #9977d4}a{color:var(--accent)}button{transition:background .15s,color .15s,box-shadow .15s}button:hover:not(:disabled){color:var(--accent)}svg{flex-shrink:0}input,textarea{min-width:0}::selection{color:inherit;background:#bda1ed7a}h1,h2,h3,p{margin:0}button{line-height:1.4}input[type=range]{width:100%;height:22px;accent-color:var(--accent)}input[type=checkbox]{width:34px;height:19px;accent-color:var(--accent)}kbd{background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:1px 5px;font-family:inherit;font-size:13px}.app-shell{background:var(--surface);grid-template-columns:282px minmax(0,1fr);width:100%;height:100dvh;display:grid;overflow:hidden}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);flex-direction:column;min-width:0;height:100dvh;display:flex;overflow:hidden}.sidebar-hidden{grid-template-columns:minmax(0,1fr)}.sidebar-hidden .sidebar{display:none}.sidebar-brand{justify-content:space-between;align-items:center;height:88px;padding:0 27px;display:flex}.brand-button{text-align:left;padding:0}.brand{letter-spacing:-1px;color:var(--ink);align-items:center;gap:12px;font-size:27px;font-weight:650;display:flex}.brand-icon{width:39px;height:42px;color:var(--accent);place-items:center;display:grid}.brand-sub{letter-spacing:1.55px;color:var(--muted);margin-top:2px;font-size:8.5px;font-weight:600;display:block}.library-link{border:1px solid var(--line);text-align:left;background:var(--surface);color:var(--ink);border-radius:10px;align-items:center;gap:11px;margin:10px 20px 24px;padding:12px 14px;font-size:14px;font-weight:550;display:flex}.library-link:hover,.library-link.selected{background:var(--accent-soft);color:var(--accent);border-color:#cabadd}.number-badge{background:var(--bg);border:1px solid var(--line);min-width:22px;height:22px;color:var(--muted);border-radius:6px;place-items:center;margin-left:auto;font-size:12px;display:grid}.side-book{align-items:center;gap:12px;padding:0 27px 22px;display:flex}.mini-cover{width:37px;height:54px;color:var(--accent);background:var(--accent-soft);border-radius:3px;flex-shrink:0;place-items:center;display:grid;overflow:hidden;box-shadow:0 3px 8px #0001}.mini-cover img{object-fit:cover;width:100%;height:100%}.side-book p{font-size:13px;font-weight:600;line-height:1.5}.side-book span{color:var(--muted);margin-top:4px;font-size:11px;line-height:1.6;display:block}.side-tabs{border-bottom:1px solid var(--line);gap:3px;margin:0 21px;display:flex}.side-tabs>button{height:44px;color:var(--muted);border-bottom:2px solid #0000;border-radius:5px 5px 0 0;flex:1;justify-content:center;align-items:center;gap:4px;display:flex;position:relative}.side-tabs>button[aria-selected=true]{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.side-tabs small{font-size:10px;font-weight:700}.side-section-title{justify-content:space-between;align-items:center;min-height:24px;margin:24px 27px 12px;display:flex}.side-section-title h2{text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);font-size:11px;font-weight:650}.side-content{scrollbar-width:thin;scrollbar-color:#d9d6e2 transparent;flex:1;padding:0 15px 24px;overflow:auto}.toc-item{text-align:left;color:#6f7380;border-radius:7px;align-items:flex-start;gap:12px;width:100%;margin-bottom:3px;padding:11px 13px;font-size:12.5px;line-height:1.5;display:flex}.toc-item>span:first-child{flex:1}.toc-item>span:last-child{opacity:.6;text-align:right;min-width:20px;margin-top:2px;font-size:11px}.toc-item.current{background:var(--accent-soft);color:var(--accent);font-weight:600}.toc-item:hover{background:var(--accent-soft)}.side-bottom{background:var(--sidebar);border-top:1px solid var(--line);padding:18px 22px 15px}.add-file{background:var(--surface);border:1px solid #dcd7e5;border-radius:8px;justify-content:center;align-items:center;gap:10px;width:100%;padding:11px 12px;font-size:13px;font-weight:550;display:flex}.side-bottom-row{justify-content:space-between;align-items:center;margin-top:12px;display:flex}.sync-state{color:var(--muted);align-items:center;gap:8px;padding:4px 0;font-size:11px;display:flex}.sync-state.synced{color:#688476}.sync-state.error{color:#a27b42}.sidebar-scrim,.mobile-close,.mobile-menu{display:none!important}.main-area{background:var(--paper);flex-direction:column;min-width:0;height:100dvh;display:flex}.topbar{border-bottom:1px solid var(--line);background:var(--surface);z-index:5;justify-content:space-between;align-items:center;gap:14px;height:76px;min-height:76px;padding:0 28px;display:flex}.topbar-start{flex:1;align-items:center;gap:13px;min-width:0;display:flex}.topbar-title{min-width:0}.topbar-title>span{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:550;display:block;overflow:hidden}.topbar-title small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:290px;margin-top:5px;font-size:11px;display:block;overflow:hidden}.icon-button{width:36px;min-width:36px;height:36px;color:var(--muted);border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover:not(:disabled),.icon-button.active{background:var(--accent-soft);color:var(--accent)}.topbar-actions{flex:1;justify-content:flex-end;align-items:center;gap:6px;display:flex}.type-icon{letter-spacing:-1px;color:var(--ink);font-family:Georgia,serif;font-size:19px}.reading-mode{background:var(--bg);border:1px solid var(--line);border-radius:9px;align-items:center;gap:2px;padding:4px;display:flex}.reading-mode button{height:31px;color:var(--muted);border-radius:5px;align-items:center;gap:7px;padding:0 13px;font-size:12px;display:flex}.reading-mode button.selected{background:var(--surface);color:var(--accent);font-weight:600;box-shadow:0 1px 5px #25233b0c}.reader-context{height:51px;min-height:51px;color:var(--muted);justify-content:space-between;align-items:center;padding:0 44px;font-size:11px;display:flex}.reader-context>span{align-items:center;gap:7px;display:flex}.reader-context>span:last-child{color:#8b91a0;font-size:10px}.reading-scroll{scrollbar-width:thin;scrollbar-color:#dedce6 transparent;scroll-behavior:auto;overscroll-behavior:contain;flex:1;overflow:auto}.reading-inner{max-width:calc(var(--reading-width,720px) + 96px);min-width:0;margin:0 auto;padding:36px 48px 64px}.page-kicker{letter-spacing:1.65px;color:var(--muted);justify-content:space-between;align-items:center;gap:15px;margin-bottom:30px;font-size:9px;font-weight:550;display:flex}.page-bookmark{color:#9c97a9;letter-spacing:0;align-items:center;gap:7px;padding:0;font-size:10px;font-weight:400;display:flex}.page-bookmark.marked{color:var(--accent)}.reading-text{font-family:var(--reading-font);font-size:var(--reading-size);line-height:var(--reading-leading);color:var(--ink);overflow-wrap:break-word;word-break:normal;-webkit-hyphens:auto;hyphens:auto;text-wrap:pretty}.reading-text p{text-align:left;white-space:pre-wrap;margin:0 0 1em}.reading-text .chapter-heading{-webkit-hyphens:none;hyphens:none;text-wrap:balance;margin:1.4em 0 .8em;font-size:1.08em;font-weight:700;line-height:1.45}.reading-text .chapter-heading:first-child{letter-spacing:2px;color:var(--accent);margin-top:0;font-family:Arial,sans-serif;font-size:11px;font-weight:600}.reading-text .chapter-heading:nth-child(2){letter-spacing:-.4px;text-transform:none;margin-top:18px;margin-bottom:32px;font-size:1.55em;font-weight:500;line-height:1.25}.reading-text .folio{display:none}.reading-text .footnote{color:var(--muted);font-size:.8em;line-height:1.6}.highlight{color:inherit;cursor:pointer;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:2px;padding:1px 0}.highlight.yellow,.note-quote.yellow,.original-highlight.yellow{background:var(--yellow)}.highlight.green,.note-quote.green,.original-highlight.green{background:var(--green)}.highlight.blue,.note-quote.blue,.original-highlight.blue{background:var(--blue)}.highlight.pink,.note-quote.pink,.original-highlight.pink{background:var(--pink)}.note-marker{color:var(--accent);vertical-align:super;margin-left:4px;display:inline}.search-match{color:var(--ink);background:#dac7fa;border-radius:2px}.page-end{color:var(--muted);align-items:center;gap:20px;margin:42px 0 20px;font-size:11px;display:flex}.page-end div{background:var(--line);flex:1;height:1px}.ocr-footnote{text-align:center;color:var(--muted);font-size:10px;line-height:1.7}.ocr-footnote .text-button{padding:0;font-size:10px;display:inline}.end-navigation{justify-content:space-between;align-items:center;gap:12px;margin-top:34px;display:flex}.reader-footer{border-top:1px solid var(--line);background:var(--surface);z-index:4;justify-content:space-between;align-items:center;gap:15px;height:70px;min-height:70px;padding:0 35px;display:flex}.footer-progress{min-width:105px;color:var(--muted);font-size:10px}.footer-progress>div{background:var(--line);border-radius:4px;width:110px;height:3px;margin-top:9px;overflow:hidden}.footer-progress i,.book-progress i{background:var(--accent);border-radius:10px;height:100%;display:block}.pagination{align-items:center;gap:18px;display:flex}.pagination form{white-space:nowrap;color:var(--muted);align-items:center;gap:7px;font-size:11px;display:flex}.pagination input{text-align:center;border:1px solid var(--line);background:var(--bg);-moz-appearance:textfield;width:40px;height:30px;color:var(--ink);border-radius:5px;font-size:12px}.pagination input::-webkit-inner-spin-button{display:none}.page-nav{color:var(--muted);padding:8px;font-size:11px}.footer-note{color:var(--muted);align-items:center;gap:8px;font-size:10px;display:flex}.page-loading{text-align:center;min-height:380px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:16px;max-width:600px;margin:0 auto;padding:50px 30px;display:flex}.page-loading h2{color:var(--ink);font-size:18px;font-weight:550}.page-loading p{max-width:450px;font-size:14px;line-height:1.65}.ocr-progress{background:var(--line);border-radius:5px;width:250px;height:5px;overflow:hidden}.ocr-progress i{background:var(--accent);height:100%;transition:width .3s;display:block}.no-text{text-align:center;flex-direction:column;align-items:center;gap:18px;padding:55px 0;font-family:Arial,sans-serif;font-size:15px;display:flex}.no-text h2{font-size:24px}.no-text p{color:var(--muted);text-align:center}.original-scroll{background:var(--bg)}.original-scroll .reading-inner{max-width:930px;padding-top:20px}.original-wrapper{min-width:0;margin:0 auto}.original-page{background:#fff;position:relative;overflow:hidden;box-shadow:0 5px 24px #00000012;container-type:inline-size}.original-page>img{object-fit:fill;width:100%;height:100%;display:block;position:absolute;inset:0}.original-marks{pointer-events:none;position:absolute;inset:0}.original-highlight{opacity:.55;mix-blend-mode:multiply;position:absolute}.ocr-layer{-webkit-user-select:text;user-select:text;color:#0000;cursor:text;line-height:1;position:absolute;inset:0;overflow:hidden;container-type:inline-size}.ocr-word{color:#0000;white-space:pre;transform-origin:0 0;font-family:Arial,sans-serif;line-height:1;position:absolute}.ocr-word::selection{color:#0000;background:#ae8be980}.original-caption{text-align:center;color:var(--muted);margin-top:18px;font-size:11px;line-height:1.6}.remote-position{background:var(--accent-soft);align-items:center;gap:10px;padding:7px 28px;font-size:12px;display:flex}.remote-position .icon-button{margin-left:auto}.empty-side{text-align:center;color:#a19aaa;flex-direction:column;align-items:center;gap:13px;padding:25px 17px;display:flex}.empty-side p{color:var(--ink);font-size:14px;line-height:1.5}.empty-side span{color:var(--muted);font-size:12px;line-height:1.7}.saved-list{padding:0 9px}.saved-item{border-bottom:1px solid var(--line);align-items:flex-start;gap:7px;padding:14px 0;display:flex}.saved-main{text-align:left;flex:1;min-width:0;padding:0}.saved-page{color:var(--accent);align-items:center;gap:6px;margin-bottom:9px;font-size:11px;display:flex}.saved-main p{font-size:13px;line-height:1.6}.saved-item .icon-button{width:24px;min-width:24px;height:24px}.quote-item{border-left:3px solid var(--yellow);background:var(--surface);border-radius:0 7px 7px 0;margin:0 0 13px;padding:13px;box-shadow:0 1px 4px #00000003}.quote-item.green{border-color:var(--green)}.quote-item.blue{border-color:var(--blue)}.quote-item.pink{border-color:var(--pink)}.quote-content{text-align:left;width:100%;padding:0}.quote-content p{overflow-wrap:anywhere;font-family:Georgia,serif;font-size:13px;line-height:1.7}.quote-note{border-top:1px solid var(--line);color:var(--muted);overflow-wrap:anywhere;align-items:flex-start;gap:7px;margin-top:10px;padding-top:10px;font-size:12px;line-height:1.6;display:flex}.quote-note svg{margin-top:3px}.quote-item .text-button{margin-top:8px;font-size:10px}.search-panel{padding:0 10px}.search-panel form{flex-direction:column;gap:10px;display:flex}.search-input{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:7px;align-items:center;gap:8px;padding:11px;display:flex}.search-input input{background:0 0;border:0;outline:0;width:100%;font-size:12px}.search-count{color:var(--muted);margin:18px 0 8px;font-size:11px}.search-result{text-align:left;border-bottom:1px solid var(--line);width:100%;padding:14px 0;display:block}.search-result>span{color:var(--accent);font-size:11px}.search-result p{margin-top:6px;font-size:12px;line-height:1.7}.search-help{color:var(--muted);margin-top:20px;font-size:11px;line-height:1.7}.error-inline{color:#b66156;margin:12px 0;font-size:12px;line-height:1.7}.muted{color:var(--muted);font-size:12px;line-height:1.7}.small-button,.primary-button{border:1px solid var(--line);background:var(--surface);border-radius:7px;justify-content:center;align-items:center;gap:8px;padding:10px 15px;font-size:12px;font-weight:550;line-height:1.4;display:inline-flex}.small-button:hover:not(:disabled){background:var(--accent-soft);border-color:#cfc2e4}.primary-button,.small-button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.primary-button:hover:not(:disabled),.small-button.primary:hover:not(:disabled){background:var(--accent-hover);color:#fff}.text-button{color:var(--accent);align-items:center;gap:6px;padding:3px 0;font-size:12px;display:inline-flex}.text-button:hover{text-decoration:underline}.danger{color:#b75f5c}.danger-fill{background:#a85454;border-color:#a85454}.modal-shade{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:100;background:#1d192a65;justify-content:center;align-items:center;padding:28px;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border-radius:16px;outline:none;width:min(100%,510px);max-height:calc(100dvh - 56px);padding:27px;overflow:auto;box-shadow:0 25px 100px #0003}.modal.wide{width:min(100%,720px)}.modal-heading{justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px;display:flex}.modal-heading h2{letter-spacing:-.5px;font-size:21px;font-weight:600}.modal>p{font-size:14px;line-height:1.7}.modal-actions{justify-content:flex-end;align-items:center;gap:12px;margin-top:24px;display:flex}.modal-actions .danger{margin-right:auto}.modal-actions .primary-button{padding:11px 20px}.modal textarea,.modal input:not([type=range]):not([type=checkbox]){background:var(--bg);border:1px solid var(--line);resize:vertical;border-radius:8px;width:100%;padding:13px;font-size:15px;line-height:1.7}.field-label{margin-bottom:10px;font-size:13px;font-weight:550;display:block}.note-quote{border-radius:8px;max-height:180px;margin:0 0 18px;padding:17px 20px;font-family:Georgia,serif;font-size:16px;line-height:1.75;overflow:auto}.note-colors{gap:11px;margin-bottom:22px;display:flex}.color-dot{border:2px solid #00000006;border-radius:50%;place-items:center;width:26px;height:26px;padding:0;display:grid;color:#514960!important}.color-dot.yellow{background:#eed482}.color-dot.green{background:#aecd9f}.color-dot.blue{background:#9dc8e5}.color-dot.pink{background:#e5adc3}.color-dot.checked{outline:2px solid var(--accent);outline-offset:3px}.selection-bar{background:var(--toolbar);border:1px solid var(--line);z-index:45;border-radius:13px;align-items:center;gap:10px;max-width:calc(100vw - 24px);padding:10px 13px;display:flex;position:fixed;bottom:94px;left:calc(50% + 141px);transform:translate(-50%);box-shadow:0 5px 28px #20152c25}.sidebar-hidden .selection-bar,.focus-mode .selection-bar{left:50%}.selection-colors{gap:7px;display:flex}.selection-bar>button{color:var(--muted);white-space:nowrap;align-items:center;gap:6px;padding:5px;font-size:12px;display:flex}.toolbar-divider{background:var(--line);width:1px;height:25px}.settings-scrim{z-index:30;cursor:default;position:fixed;inset:0}.settings-panel{background:var(--surface);border:1px solid var(--line);width:325px;max-height:calc(100dvh - 84px);box-shadow:var(--shadow);z-index:35;border-radius:13px;padding:20px 24px;position:fixed;top:67px;right:28px;overflow:auto}.settings-header{justify-content:space-between;align-items:center;margin-bottom:17px;display:flex}.settings-header h2{letter-spacing:-.2px;font-size:17px;font-weight:600}.settings-group{border-bottom:1px solid var(--line);padding:16px 0}.settings-group:first-of-type{padding-top:0}.settings-group>label{justify-content:space-between;align-items:center;margin-bottom:13px;font-size:12px;font-weight:550;display:flex}.settings-group>label>span{color:var(--muted);font-size:11px;font-weight:400}.theme-options{gap:11px;display:flex}.theme-options>button{color:var(--muted);text-align:center;flex:1;padding:0;font-size:10px}.theme-preview{border:1px solid #ddd;border-radius:6px;place-items:center;height:45px;margin-bottom:7px;display:grid}.theme-preview.light{color:#888;background:#fff}.theme-preview.paper{color:#87755a;background:#f4ecdb}.theme-preview.dark{color:#cdc7df;background:#25232c;border-color:#25232c}.theme-options .chosen .theme-preview{outline:2px solid var(--accent);outline-offset:2px}.theme-options .chosen{color:var(--accent)}.font-options{border:1px solid var(--line);border-radius:6px;gap:4px;padding:3px;display:flex}.font-options button{border-radius:4px;flex:1;padding:7px 8px;font-size:13px}.font-options button:first-child{font-family:Georgia,serif}.font-options .chosen{background:var(--accent-soft);color:var(--accent)}.range-row{align-items:center;gap:10px;display:flex}.range-row .icon-button{border:1px solid var(--line);width:24px;min-width:24px;height:26px}.settings-group .toggle-label{gap:10px}.toggle-label>span{align-items:center;gap:8px;display:flex;color:var(--ink)!important;font-size:12px!important}.ocr-settings p{color:var(--muted);margin-bottom:13px;font-size:11px;line-height:1.7}.ocr-settings .small-button{width:100%;font-size:11px}.settings-reset{margin:17px auto 0;font-size:10px;display:block}.storage-status{color:var(--accent);gap:14px;padding:18px 0;display:flex}.storage-status strong{color:var(--ink);font-size:14px;font-weight:600}.storage-status p{color:var(--muted);margin-top:7px;font-size:12px;line-height:1.7}.backup-section{border-top:1px solid var(--line);margin-top:23px;padding-top:23px}.backup-section h3{margin-bottom:10px;font-size:15px;font-weight:550}.backup-section p{color:var(--muted);margin-bottom:16px;font-size:13px;line-height:1.7}.backup-buttons{flex-wrap:wrap;gap:10px;display:flex}.storage-info{color:var(--muted);margin-top:22px!important;font-size:11px!important}.signin-link{margin-top:14px;font-size:13px;display:block}.help-intro{color:var(--muted);margin-bottom:27px!important}.help-grid{grid-template-columns:1fr 1fr;gap:28px;display:grid}.help-grid>div>svg{color:var(--accent);margin-bottom:10px}.help-grid h3{margin-bottom:8px;font-size:15px;font-weight:550}.help-grid p{color:var(--muted);font-size:13px;line-height:1.75}.help-grid b{color:var(--ink);font-weight:550}.help-details{border-top:1px solid var(--line);margin-top:26px;padding-top:22px}.help-details p{color:var(--muted);margin-bottom:13px;font-size:12px;line-height:1.8}.help-details b{color:var(--ink);font-weight:550}.library-view{background:var(--surface);flex:1;padding:55px 56px;overflow:auto}.shelf-heading{margin-bottom:50px}.eyebrow{letter-spacing:1.9px;color:var(--accent);font-size:10px;font-weight:600}.shelf-heading h1{letter-spacing:-1.5px;margin:18px 0;font-family:Georgia,serif;font-size:45px;font-weight:400;line-height:1.15}.shelf-heading p{color:var(--muted);font-size:14px;line-height:1.7}.shelf-label{justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;display:flex}.shelf-label h2{font-size:14px;font-weight:600}.shelf-label h2 span{color:var(--muted);margin-left:8px;font-weight:400}.shelf-label .text-button{font-size:11px}.book-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:25px;max-width:1100px;display:grid}.book-card{border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden}.book-card:hover{box-shadow:0 8px 30px #3933500c}.book-card-open{text-align:left;width:100%;padding:0}.book-art{background:#f1f0f6;justify-content:center;align-items:center;height:220px;padding:22px;display:flex;position:relative}.seed-art{background:#f3eff0}.book-art>img{object-fit:contain;border-radius:1px 3px 3px 1px;max-width:100%;height:100%;transform:rotate(-4deg);box-shadow:6px 8px 12px #43313a26}.book-format{letter-spacing:.7px;color:#898093;background:#ffffffc4;border:1px solid #fff;border-radius:4px;padding:3px 6px;font-size:9px;position:absolute;top:12px;left:12px}.generated-cover{color:#fff;background:#776193;border-radius:2px;flex-direction:column;gap:13px;width:130px;height:177px;padding:17px;display:flex;overflow:hidden;transform:rotate(-4deg);box-shadow:6px 8px 12px #43313a26}.generated-cover strong{overflow-wrap:anywhere;max-height:70px;font-family:Georgia,serif;font-size:15px;font-weight:400;line-height:1.4;overflow:hidden}.generated-cover small{opacity:.6;letter-spacing:2px;margin-top:auto;font-size:8px}.book-info{padding:20px 19px 16px}.book-info h3{min-height:22px;color:var(--ink);margin-bottom:7px;font-size:15px;font-weight:600;line-height:1.45}.book-info p{color:var(--muted);margin-bottom:13px;font-size:11px;line-height:1.6}.book-info>span{color:var(--muted);font-size:10px}.book-progress{background:var(--line);border-radius:3px;height:3px;margin:17px 0 10px}.book-continue{color:var(--accent);justify-content:space-between;align-items:center;font-size:11px;display:flex}.book-continue>span:last-child{color:var(--muted);font-size:10px}.book-actions{border-top:1px solid var(--line);justify-content:space-between;align-items:center;padding:5px 17px;display:flex}.book-actions .text-button{font-size:10px}.book-actions .icon-button{width:28px;min-width:28px;height:28px}.upload-card{background:var(--bg);min-height:363px;color:var(--muted);border:1px dashed #d9d3e3;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:17px;padding:25px;display:flex}.upload-card>span{border:1px solid var(--line);background:var(--surface);width:44px;height:44px;color:var(--accent);border-radius:50%;place-items:center;margin-bottom:3px;display:grid}.upload-card strong{color:var(--ink);font-size:15px;font-weight:500;line-height:1.7}.upload-card small{font-size:11px;line-height:1.8}.shelf-tip{background:var(--accent-soft);max-width:720px;color:var(--accent);border-radius:9px;align-items:flex-start;gap:17px;margin-top:42px;padding:23px 25px;display:flex}.shelf-tip strong{color:var(--ink);font-size:13px;font-weight:550}.shelf-tip p{color:var(--muted);margin-top:6px;font-size:12px;line-height:1.7}.shelf-sidebar-note{color:#a39bac;flex:1;padding:22px 35px}.shelf-sidebar-note p{color:var(--ink);letter-spacing:-.5px;margin:20px 0 15px;font-family:Georgia,serif;font-size:25px;line-height:1.3}.shelf-sidebar-note span{color:var(--muted);font-size:12px;line-height:1.8}.focus-mode{grid-template-columns:1fr}.focus-mode .sidebar,.focus-mode .topbar,.focus-mode .reader-context{display:none}.focus-mode .reading-inner{padding-top:65px}.focus-mode .reading-scroll{padding-top:0}.exit-focus{z-index:10;background:var(--surface);border:1px solid var(--line);color:var(--muted);border-radius:7px;align-items:center;gap:8px;padding:9px 12px;font-size:11px;display:flex;position:fixed;top:17px;right:20px}.focus-mode .reader-footer{height:55px;min-height:55px}.toast{color:#fff;z-index:140;background:#35313f;border-radius:10px;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 24px);padding:14px 17px;font-size:12px;line-height:1.6;display:flex;position:fixed;bottom:22px;left:50%;transform:translate(-50%);box-shadow:0 8px 35px #0002}.toast>svg{color:#c9b5e9}.toast>span{max-width:530px}.toast>button{color:#c8c4d2;place-items:center;padding:0;display:grid}.import-status{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);z-index:150;border-radius:10px;align-items:center;gap:12px;max-width:calc(100vw - 30px);padding:16px 22px;font-size:13px;display:flex;position:fixed;top:90px;left:50%;transform:translate(-50%)}.drop-overlay{border:2px dashed var(--accent);background:var(--surface);opacity:.97;z-index:200;pointer-events:none;color:var(--accent);border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:20px;display:flex;position:fixed;inset:12px}.drop-overlay h2{font-family:Georgia,serif;font-size:35px;font-weight:400}.drop-overlay p{color:var(--muted);font-size:14px}.spin{animation:1.1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (min-width:1600px){.reading-inner{padding-top:55px}.topbar{padding-left:40px;padding-right:40px}.reader-context{padding:0 60px}}@media (max-width:1200px){.app-shell{grid-template-columns:250px minmax(0,1fr)}.sidebar-brand{padding:0 22px}.sidebar-hidden,.focus-mode{grid-template-columns:1fr}.topbar{padding:0 19px}.topbar-title small{max-width:190px}.reading-mode button{padding:0 10px}.topbar-actions{flex:0}.topbar-start{flex:1}.reading-inner{padding-left:40px;padding-right:40px}.reader-context{padding:0 35px}.reader-footer{padding:0 22px}.footer-note span{display:none}.library-view{padding:45px 35px}.selection-bar{left:calc(50% + 125px)}}@media (max-width:1000px){.topbar-title small{display:none}.reading-mode button{font-size:11px}.topbar{gap:10px}.topbar-title>span{max-width:180px}.topbar-actions{gap:1px}.focus-button{display:none}.reader-footer{gap:8px}.footer-progress{min-width:75px}.footer-progress>div{width:75px}.pagination{gap:6px}.reading-inner{padding:28px 32px 50px}.reader-context{padding:0 30px}}@media (max-width:820px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar,.sidebar-hidden .sidebar{z-index:65;width:290px;transition:transform .2s;display:flex;position:fixed;top:0;left:0;transform:translate(-100%)}.sidebar.mobile-open{transform:translate(0)}.mobile-close,.mobile-menu{display:inline-flex!important}.desktop-menu{display:none!important}.sidebar-scrim{z-index:60;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#1c192750;position:fixed;inset:0;display:block!important}.topbar-title small{max-width:210px;display:block}.topbar-title>span{max-width:260px}.topbar-actions{gap:5px}.focus-button{display:inline-flex}.topbar{padding:0 20px}.reading-inner{padding:30px 42px 50px}.reader-context{padding:0 35px}.selection-bar{left:50%}.sidebar-hidden .sidebar.mobile-open{display:flex}.side-tabs button{min-height:46px}.toc-item{padding:12px;font-size:14px}.side-book p{font-size:14px}.side-book span{font-size:12px}.library-link{font-size:14px}.side-bottom-row .sync-state,.side-section-title h2{font-size:12px}.side-tabs small{font-size:11px}.empty-side p{font-size:15px}.empty-side span,.saved-main p{font-size:14px}.quote-content p{font-size:15px}.quote-note{font-size:14px}.search-input input{font-size:16px}.search-result p,.shelf-sidebar-note span{font-size:14px}.search-help{font-size:13px}.library-view{padding:40px}.reader-footer{padding:0 25px}.footer-note span{display:inline}.footer-progress>div{width:90px}}@media (max-width:560px){.topbar{gap:5px;height:112px;min-height:112px;padding:10px 14px 51px;position:relative}.topbar-start{gap:5px}.topbar-title>span{max-width:calc(100vw - 190px);font-size:12px}.topbar-title small{display:none}.topbar-actions{gap:0}.topbar-actions .icon-button{width:34px;min-width:34px;height:36px}.reading-mode{border-radius:7px;height:34px;padding:3px;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.reading-mode button{gap:6px;height:26px;padding:0 15px;font-size:12px}.reading-mode svg{width:14px}.focus-button{display:none!important}.type-icon{font-size:20px}.reader-context{gap:10px;height:40px;min-height:40px;padding:0 21px;font-size:10px}.reader-context>span:last-child{font-size:9px}.reader-context svg{width:12px}.reading-inner{max-width:100%;padding:23px 23px 42px}.reading-text{font-size:var(--reading-size);line-height:var(--reading-leading);text-wrap:wrap}.reading-text .chapter-heading:nth-child(2){letter-spacing:-.5px;margin-bottom:25px;font-size:1.35em;line-height:1.35}.reading-text .chapter-heading{font-size:1.04em}.reading-text p{margin-bottom:1.1em}.page-kicker{letter-spacing:1px;margin-bottom:24px;font-size:9px}.page-bookmark{gap:0;font-size:0}.page-bookmark svg{width:19px;height:19px}.reader-footer{min-height:66px;height:calc(66px + env(safe-area-inset-bottom));padding:0 13px env(safe-area-inset-bottom);justify-content:space-between;gap:4px}.footer-progress{width:34px;min-width:0;font-size:0}.footer-progress>div{width:34px;height:3px;margin:0}.footer-note{padding:7px}.footer-note span{display:none}.pagination{gap:4px}.pagination form{gap:6px;font-size:11px}.pagination input{width:40px;height:32px;font-size:14px}.page-nav{min-height:44px;padding:9px 7px;font-size:12px}.original-scroll .reading-inner{max-width:100%;padding:15px 12px 32px}.original-wrapper{width:100%}.original-caption{margin-top:15px;font-size:11px}.ocr-footnote{font-size:11px;line-height:1.8}.ocr-footnote .text-button{font-size:11px}.end-navigation .small-button{padding:10px 12px;font-size:12px}.page-end{gap:12px;font-size:11px}.small-button,.primary-button{min-height:42px;font-size:14px}.text-button{font-size:13px}.settings-panel{width:min(330px,100vw - 24px);max-height:calc(100dvh - 85px);padding:16px 21px;top:60px;right:12px}.settings-group{padding:14px 0}.settings-group>label{font-size:14px}.settings-group>label>span,.theme-options button{font-size:12px}.font-options button{font-size:14px}.ocr-settings p,.ocr-settings .small-button{font-size:12px}.toggle-label>span{font-size:13px!important}.settings-reset{font-size:12px}.selection-bar{border-radius:12px;gap:9px;padding:11px;bottom:83px}.color-dot{width:27px;height:27px}.selection-bar>button{padding:4px}.selection-bar>button>span{font-size:11px}.selection-colors{gap:6px}.modal-shade{align-items:center;padding:12px}.modal{border-radius:13px;max-height:calc(100dvh - 24px);padding:21px}.modal-heading{margin-bottom:16px}.modal-heading h2{font-size:20px}.modal textarea,.modal input:not([type=range]):not([type=checkbox]){font-size:16px}.note-quote{max-height:160px;font-size:16px}.modal .storage-status p,.backup-section p{font-size:13px}.help-grid{grid-template-columns:1fr;gap:23px}.help-grid p{font-size:14px}.help-grid h3{font-size:16px}.help-details p{font-size:13px}.help-intro{font-size:15px!important}.modal-actions .primary-button{font-size:14px}.library-mode .topbar{height:65px;min-height:65px;padding:10px 15px}.library-mode .topbar .primary-button{gap:4px;min-height:34px;padding:8px 10px;font-size:11px}.library-mode .topbar-title>span{font-size:14px}.library-view{padding:32px 23px}.shelf-heading{margin-bottom:35px}.shelf-heading h1{margin-top:15px;font-size:36px}.shelf-heading p{font-size:13px}.eyebrow{letter-spacing:1.6px;font-size:9px}.shelf-label{align-items:center;gap:12px}.shelf-label h2{font-size:13px}.shelf-label .text-button{font-size:10px}.book-grid{grid-template-columns:1fr 1fr;gap:13px}.book-art{height:170px;padding:18px}.book-info{padding:14px 12px}.book-info h3{font-size:13px}.book-info p{margin-bottom:10px;font-size:10px}.book-info>span{font-size:10px}.book-continue{flex-wrap:wrap;gap:7px;font-size:10px}.book-continue>span:last-child{font-size:9px}.book-format{font-size:8px;top:8px;left:8px}.upload-card{gap:14px;min-height:290px;padding:18px 12px}.upload-card strong{font-size:13px}.upload-card small{font-size:10px}.upload-card>span{width:36px;height:36px}.generated-cover{gap:9px;width:100px;height:134px;padding:13px}.generated-cover svg{width:24px}.generated-cover strong{font-size:12px}.shelf-tip{gap:12px;margin-top:25px;padding:18px 15px}.shelf-tip strong{font-size:13px}.shelf-tip p{font-size:12px}.shelf-tip svg{width:21px}.toast{max-width:calc(100vw - 24px);padding:12px;font-size:12px;bottom:80px}.toast>span{max-width:calc(100vw - 100px)}.focus-mode .reading-inner{padding-top:65px}.focus-mode .reader-footer{min-height:64px}.exit-focus{padding:8px 10px;font-size:11px;top:13px;right:15px}.page-loading{min-height:330px;padding:45px 23px}.page-loading h2{font-size:19px}.page-loading p{font-size:14px}.remote-position{padding:8px 17px;font-size:11px}.remote-position .text-button{font-size:11px}.drop-overlay h2{font-size:27px}.import-status{width:calc(100vw - 30px);font-size:12px;top:70px}.no-text h2{font-size:22px}.book-actions{padding:6px 9px}.book-actions .text-button{font-size:10px}.backup-buttons .small-button{font-size:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}.spin{animation-duration:2s}}.toc-item,.side-book p{font-size:14px}.side-book span{font-size:12px}.topbar-title>span{font-size:14px}.topbar-title small{font-size:12px}.reading-mode button,.library-link,.add-file,.small-button,.primary-button,.settings-group>label,.font-options button{font-size:14px}.sync-state,.reader-context,.reader-context>span:last-child,.footer-progress,.page-nav,.pagination form,.footer-note{font-size:12px}.pagination input{font-size:14px}.side-section-title h2{font-size:12px}.saved-main p,.quote-content p,.search-result p{font-size:14px}.text-button{font-size:13px}.quote-item .text-button{font-size:12px}.shelf-sidebar-note span,.backup-section p{font-size:14px}.book-info h3{font-size:16px}.book-info p,.book-info>span,.book-continue,.theme-options>button,.ocr-settings p,.ocr-settings .small-button,.ocr-footnote,.ocr-footnote .text-button{font-size:12px}.ocr-layer.textLayer{z-index:2}@media (max-width:560px){.topbar-title>span,.reading-mode button{font-size:12px}.reader-context,.reader-context>span:last-child{font-size:10px}.footer-progress{font-size:0}.pagination form{font-size:11px}.book-info h3{font-size:13px}.book-info p,.book-info>span,.book-continue{font-size:10px}.ocr-footnote,.ocr-footnote .text-button{font-size:11px}}.account-panel{gap:20px;font-size:16px;line-height:1.55;display:grid}.account-intro,.account-connected{align-items:flex-start;gap:15px;display:flex}.account-symbol{background:var(--accent-soft);width:48px;height:48px;color:var(--accent);border-radius:15px;flex-shrink:0;place-items:center;display:grid}.account-panel h3{margin:0 0 6px;font-size:19px;line-height:1.35}.account-panel p{color:var(--muted);font-size:15px;line-height:1.6}.account-panel form{gap:12px;display:grid}.account-input{border:1px solid var(--line);background:var(--paper);border-radius:10px;align-items:center;gap:10px;padding:0 13px;display:flex}.account-input input{background:0 0;border:0;outline:none;width:100%;padding:14px 0;font-size:16px}.account-input:focus-within{outline:2px solid var(--accent);outline-offset:2px}.account-transfer{align-items:flex-start;gap:10px;padding:7px 0;font-size:14px;line-height:1.5;display:flex}.account-transfer input{flex-shrink:0;width:18px;height:18px;margin:3px 0}.account-panel .account-small{font-size:13px}.account-submit{justify-content:center;width:100%;min-height:46px;margin-top:5px}.account-code{font-variant-numeric:tabular-nums;letter-spacing:.35em;border:1px solid var(--line);background:var(--paper);border-radius:10px;width:100%;padding:13px 18px;font-size:25px!important}.account-code-actions{flex-wrap:wrap;justify-content:space-between;gap:15px;display:flex}.account-code-actions button{font-size:14px}.account-migration-note,.account-unavailable,.account-explainer{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:15px}.account-explainer{gap:12px;font-size:14px;display:flex}.account-unavailable strong{font-size:16px}.account-unavailable p{margin-top:5px}.account-manage{overflow-wrap:anywhere;max-width:100%;margin-top:14px;display:block}.account-connected p{overflow-wrap:anywhere}.guest-banner{background:var(--accent-soft);border:1px solid var(--line);border-radius:14px;align-items:center;gap:15px;margin:0 0 28px;padding:18px 20px;display:flex}.guest-banner>svg{color:var(--accent)}.guest-banner strong{font-size:15px}.guest-banner p{color:var(--muted);margin-top:4px;font-size:14px;line-height:1.5}.guest-banner .small-button{flex-shrink:0;margin-left:auto}.book-actions{flex-wrap:wrap;gap:8px}.book-actions>.text-button{align-items:center;gap:4px;display:inline-flex}.account-panel .field-label{font-size:15px}.account-panel .error-inline{color:#b63e41}.modal .account-panel{margin-top:6px}@media (max-width:560px){.account-panel{gap:17px}.account-panel h3{font-size:18px}.account-panel p{font-size:15px}.account-symbol{width:42px;height:42px}.account-intro,.account-connected{gap:12px}.guest-banner{flex-wrap:wrap;align-items:flex-start;gap:12px;padding:16px}.guest-banner>div{flex:1;min-width:180px}.guest-banner .small-button{margin-left:33px}.guest-banner p{font-size:13px}.topbar-actions{gap:3px}.book-actions .text-button{font-size:11px}.account-code-actions button{font-size:13px}}.storage-warning{background:var(--yellow);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;padding:12px 24px;font-size:14px;line-height:1.5;display:flex}.storage-warning .small-button{flex-shrink:0}@media (max-width:560px){.storage-warning{flex-wrap:wrap;padding:12px 15px;font-size:13px}}
