@font-face{font-family:Literata Variable;font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/literata-cyrillic-ext-wght-normal-CGKlZYBf.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Literata Variable;font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/literata-cyrillic-wght-normal-DLqwHbi6.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Literata Variable;font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/literata-greek-ext-wght-normal-e3e57Shi.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Literata Variable;font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/literata-greek-wght-normal-CO1l-giJ.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Literata Variable;font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/literata-vietnamese-wght-normal-LcSrhZ7T.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Literata Variable;font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/literata-latin-ext-wght-normal-BnEbWgdZ.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Literata Variable;font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/literata-latin-wght-normal-DLxlUchJ.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--ink:#1d2433;--muted:#5d6577;--paper:#fff;--shelf:#f1f3f6;--line:#dde1e8;--accent:#2b5a4a;--accent-ink:#fff;--danger:#a3302f;--serif:"Literata Variable", "Iowan Old Style", Georgia, serif;--sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--radius:10px;--gutter:max(16px, env(safe-area-inset-left));--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--ink:#e4e7ee;--muted:#9aa2b2;--paper:#15181e;--shelf:#1d2129;--line:#2d323c;--accent:#7cc4a8;--accent-ink:#10231c;--danger:#ff8a80;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--ink:#e4e7ee;--muted:#9aa2b2;--paper:#15181e;--shelf:#1d2129;--line:#2d323c;--accent:#7cc4a8;--accent-ink:#10231c;--danger:#ff8a80;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--paper);color:var(--ink);font:16px/1.5 var(--sans);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;margin:0}h1,h2,p{margin:0}a{color:inherit}button,.button,input,textarea{font:inherit;color:inherit}button,.button{border:1px solid var(--line);background:var(--paper);cursor:pointer;white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:0 14px;text-decoration:none;display:inline-flex}button:hover,.button:hover{border-color:var(--muted)}button:disabled{opacity:.6;cursor:default}button.primary,.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}button.danger{color:var(--danger)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input,textarea{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);width:100%;min-height:44px;padding:10px 14px}textarea{resize:vertical;line-height:1.5}.icon-button{background:0 0;border-color:#0000;min-width:40px;padding:0}.icon-button[aria-pressed=true]{background:color-mix(in srgb, var(--accent) 14%, transparent);color:var(--accent)}.muted{color:var(--muted)}.error{color:var(--danger)}.wordmark{font-family:var(--serif);letter-spacing:-.01em;font-size:1.6rem;font-weight:650}.library,.page{max-width:1180px;padding:env(safe-area-inset-top) var(--gutter) 48px;margin:0 auto}.page{max-width:720px}.masthead{align-items:center;gap:12px;padding:20px 0 12px;display:flex}.masthead h1:not(.wordmark){font-family:var(--serif);font-size:1.5rem;font-weight:600}.masthead nav{gap:8px;margin-left:auto;display:flex}.library>.error,.page>.error{margin:8px 0}.empty{text-align:center;max-width:440px;margin:12vh auto 0}.empty h2{font-family:var(--serif);margin-bottom:8px;font-size:1.5rem;font-weight:600}.empty p{color:var(--muted);margin-bottom:20px}.shelf{margin-top:28px}.shelf h2{font-family:var(--serif);font-size:1.2rem;font-weight:600}.shelf-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.shelf-head input{border-radius:999px;max-width:300px;min-height:40px}.chips{gap:8px;margin-top:12px;display:flex;overflow-x:auto}.chips button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}.shelf-row,.grid{margin:14px 0 0;padding:0;list-style:none}.shelf-row{scroll-snap-type:x mandatory;grid-auto-columns:128px;grid-auto-flow:column;gap:18px;padding-bottom:8px;display:grid;overflow-x:auto}.shelf-row li{scroll-snap-align:start}.grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:28px 20px;display:grid}@media (width<=480px){.grid{grid-template-columns:repeat(2,1fr);gap:24px 16px}}.book{flex-direction:column;gap:4px;text-decoration:none;display:flex}.cover{aspect-ratio:2/3;object-fit:cover;background:var(--shelf);border-radius:3px 6px 6px 3px;width:100%;margin-bottom:6px;box-shadow:inset 3px 0 #0000001f,0 1px 2px #1418222e,0 6px 14px -8px #14182273}.cover.generated{background:var(--cloth);color:#f6f1e4;flex-direction:column;justify-content:space-between;padding:18% 12% 14%;display:flex;overflow:hidden}.generated-title{font-family:var(--serif);overflow-wrap:anywhere;-webkit-line-clamp:6;text-wrap:balance;-webkit-box-orient:vertical;font-size:1rem;font-weight:600;line-height:1.2;display:-webkit-box;overflow:hidden}.generated-author{font-family:var(--serif);opacity:.85;font-size:.75rem;font-style:italic}.book:hover .cover{transition:transform .15s;transform:translateY(-2px)}.book-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.9rem;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.book-meta{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;overflow:hidden}.progress{background:linear-gradient(to right, var(--accent) calc(var(--progress) * 100%), var(--line) 0);border-radius:2px;height:3px;margin:-2px 0 4px}.sources{border-top:1px solid var(--line);margin:12px 0 0;padding:0;list-style:none}.sources li{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;display:flex}.sources li>div:first-child{flex-direction:column;min-width:0;display:flex}.sources .muted{overflow-wrap:anywhere;font-size:.875rem}.status{color:var(--accent);font-size:.875rem}.actions{gap:8px;display:flex}.add{margin-top:36px}.add h2{font-family:var(--serif);font-size:1.2rem;font-weight:600}.add p{margin:4px 0 12px;font-size:.925rem}.add form{gap:8px;display:flex}@media (width<=480px){.add form{flex-direction:column}}.login{min-height:100dvh;padding:var(--gutter);background:var(--shelf);place-items:center;display:grid}.login form{background:var(--paper);border:1px solid var(--line);border-radius:16px;flex-direction:column;gap:10px;width:min(360px,100%);padding:32px 28px;display:flex}.login .wordmark{margin-bottom:12px;font-size:2rem}.login label{font-size:.9rem;font-weight:600}.login .primary{margin-top:6px}.reader{--paper:#fff;--ink:#1d2433;--muted:#5d6577;--line:#dde1e8;--shelf:#f1f3f6;--accent:#2b5a4a;--accent-ink:#fff;background:var(--paper);color:var(--ink);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;flex-direction:column;display:flex;position:fixed;inset:0}.reader[data-theme=sepia]{--paper:#f4ecd8;--ink:#433422;--muted:#7a6a52;--line:#e0d4b8;--shelf:#ebe1c8;--accent:#6b4f1d;--accent-ink:#f4ecd8}.reader[data-theme=dark]{--paper:#15181e;--ink:#d6d9e0;--muted:#8f97a8;--line:#2a2f38;--shelf:#1d2129;--accent:#7cc4a8;--accent-ink:#10231c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.reader-bar{padding:6px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));background:var(--paper);z-index:2;align-items:center;gap:8px;transition:transform .2s,opacity .2s;display:flex}.reader-bar.top{padding-top:max(6px, env(safe-area-inset-top));border-bottom:1px solid var(--line)}.reader-bar.bottom{padding-bottom:max(8px, env(safe-area-inset-bottom));border-top:1px solid var(--line);color:var(--muted);font-size:.8rem}.reader-title{min-width:0;font-family:var(--serif);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:1rem;font-weight:600;overflow:hidden}.reader-actions{display:flex}.reader-location{white-space:nowrap;text-overflow:ellipsis;flex:0 30%;overflow:hidden}.reader-percent{text-align:right;font-variant-numeric:tabular-nums;min-width:3ch}.reader input[type=range]{min-height:32px;accent-color:var(--accent);background:0 0;border:0;flex:1;padding:0}.reader-body{flex:1;min-height:0;display:flex;position:relative}.reader-view{flex:1;min-width:0;position:relative}.reader-view foliate-view{position:absolute;inset:0}.reader-status{padding:var(--gutter);text-align:center;font-family:var(--serif);color:var(--muted);place-items:center;display:grid;position:absolute;inset:0}@media (width<=899px){.reader-bar{position:absolute;left:0;right:0}.reader-bar.top{top:0}.reader-bar.bottom{bottom:0}.reader[data-chrome=hidden] .reader-bar.top{opacity:0;pointer-events:none;transform:translateY(-100%)}.reader[data-chrome=hidden] .reader-bar.bottom{opacity:0;pointer-events:none;transform:translateY(100%)}.reader-actions .icon-button{min-width:38px}}@media (prefers-reduced-motion:reduce){.reader-bar,.panel{transition:none!important;animation:none!important}}.panel{border-left:1px solid var(--line);background:var(--paper);z-index:3;flex-direction:column;width:360px;display:flex}.panel>header{justify-content:space-between;align-items:center;padding:10px 8px 6px 18px;display:flex}.panel h2{font-family:var(--serif);font-size:1.05rem;font-weight:600}.panel-body{overscroll-behavior:contain;flex:1;padding:4px 18px 24px;overflow-y:auto}@media (width<=899px){.panel{width:auto;max-height:72dvh;padding-bottom:env(safe-area-inset-bottom);border-left:0;border-radius:16px 16px 0 0;animation:.22s ease-out sheet;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -12px 40px #00000040}.panel:before{content:"";background:var(--line);border-radius:2px;align-self:center;width:36px;height:4px;margin-top:8px}}@keyframes sheet{0%{opacity:0;transform:translateY(40%)}}.toc,.results,.notes{margin:0;padding:0;list-style:none}.toc .toc{padding-left:14px}.toc button,.results button,.note{text-align:left;white-space:normal;background:0 0;border:0;border-radius:0;width:100%;min-height:0;padding:9px 0;line-height:1.4;display:block}.toc button[aria-current]{color:var(--accent);font-weight:600}.search input{border-radius:999px;margin-bottom:8px}.results li+li,.notes li+li{border-top:1px solid var(--line)}.result-label{color:var(--muted);font-size:.75rem;display:block}.excerpt{font-family:var(--serif);font-size:.925rem}.excerpt mark{color:inherit;background:#ffd84db3;border-radius:2px}.notes li{padding:6px 0 6px 14px;position:relative}.notes li:before{content:"";background:var(--color);border-radius:2px;width:4px;position:absolute;top:14px;bottom:14px;left:0}.note q,.note-editor q{font-family:var(--serif);quotes:none;font-size:.95rem;line-height:1.5;display:block}.note q{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.note-kind{font-weight:600}.note-comment{color:var(--muted);white-space:pre-wrap;margin-top:6px;font-size:.9rem;display:block}.note-actions{justify-content:flex-end;gap:4px;display:flex}.note-actions button:not(.icon-button){min-height:32px;font-size:.85rem}.note-editor{flex-direction:column;gap:14px;display:flex}.note-editor q{border-left:4px solid var(--color);padding-left:12px}.row{flex-wrap:wrap;gap:8px;display:flex}.settings fieldset{border:0;margin:0 0 22px;padding:0}.settings legend{margin-bottom:8px;font-size:.875rem;font-weight:600}.segmented{gap:8px;display:flex}.segmented button{flex:1}.segmented button[aria-pressed=true]{border:2px solid var(--accent);font-weight:600}.theme-light{color:#1d2433;background:#fff}.theme-sepia{color:#433422;background:#f4ecd8}.theme-dark{color:#d6d9e0;background:#15181e}.stepper{align-items:center;gap:12px;display:flex}.stepper output{text-align:center;font-variant-numeric:tabular-nums;min-width:5ch}.selection-menu{z-index:10;color:#f4f5f8;background:#1d2433;border-radius:999px;align-items:center;gap:6px;padding:6px;display:flex;position:fixed;box-shadow:0 8px 28px #0000004d}.selection-menu button{min-height:34px;color:inherit;background:0 0;border:0;padding:0 10px;font-size:.875rem}.selection-menu button:hover{background:#ffffff1a}.selection-menu .swatch{background:var(--color);border:2px solid #0000;border-radius:50%;width:28px;min-height:28px;padding:0}.selection-menu .swatch:hover{background:var(--color);transform:scale(1.1)}.selection-menu .swatch[aria-pressed=true]{border-color:#f4f5f8}.selection-menu .divider{background:#fff3;width:1px;height:22px}.toast{left:50%;bottom:calc(72px + env(safe-area-inset-bottom));border-radius:var(--radius);color:#fff;z-index:20;cursor:pointer;background:#1d2433;max-width:calc(100% - 32px);padding:10px 16px;position:fixed;transform:translate(-50%)}.pdf{-webkit-overflow-scrolling:touch;padding:16px 12px 96px;position:absolute;inset:0;overflow:auto}.pdf-page{background:#fff;margin:0 auto 14px;position:relative;box-shadow:0 1px 3px #0003}.pdf-page canvas{width:100%;height:100%;position:absolute;inset:0}.pdf[data-theme=dark] .pdf-page{background:#222}.pdf[data-theme=dark] canvas{filter:invert(.88)hue-rotate(180deg)}.pdf[data-theme=sepia] canvas{filter:sepia(.3)brightness(.97)}.pdf-highlights{z-index:1;pointer-events:none;position:absolute;inset:0}.pdf-highlight{background:var(--color);mix-blend-mode:multiply;opacity:.55;border-radius:2px;position:absolute}.pdf-highlight.commented{box-shadow:inset 0 -2px 0 color-mix(in srgb, var(--color) 60%, #000)}.pdf[data-theme=dark] .pdf-highlight{mix-blend-mode:normal;opacity:.35}.textLayer{opacity:1;text-align:initial;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2;--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));line-height:1;position:absolute;inset:0;overflow:clip}.textLayer :is(span,br){color:#0000;white-space:pre;cursor:text;transform-origin:0 0;position:absolute}.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 ::selection{background:#005aff40}.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}
