:root{--font-ui:"Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;--font-display:"Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;--font-serif:Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;--accent:#2563eb;--accent-hover:#1d50cf;--accent-text:#1f56d6;--accent-soft:#ebf1ff;--accent-glow:#2563eba6;--on-accent:#fff;--ink:#14163a;--ink-2:#3d4263;--muted:#646a88;--line:#e6e8f0;--canvas:#f4f5f9;--surface:#fff;--chrome:var(--surface);--fill:var(--canvas);--success:#23905d;--warning-text:#865100;--warning-soft:#fff3dc;--toast:#191b3d;--backdrop:#14163a59;--scrollbar:#cdd2e1;--shadow-sm:0 1px 2px #14163a0d, 0 1px 3px #14163a0a;--shadow-md:0 10px 24px -10px #14163a2e, 0 2px 6px #14163a0d;--shadow-lg:0 24px 48px -16px #14163a4d, 0 4px 12px #14163a14;--ease:cubic-bezier(.2, .75, .25, 1);font-family:var(--font-ui);color:var(--ink);background:var(--chrome);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{background:var(--chrome);margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:var(--surface);min-height:44px;transition:background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .2s ease, transform .2s var(--ease), opacity .15s ease;border-radius:10px;padding:10px 16px}button:disabled,input:disabled,input[aria-disabled=true],select:disabled{cursor:default;opacity:.45;transition:opacity .2s .35s,background-color .3s,color .3s,border-color .3s}button:hover:enabled{background:var(--fill)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}a{color:inherit;text-decoration:none}p{line-height:1.6}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--font-display)}input,select{border:1px solid var(--line);background:var(--surface);border-radius:10px;max-width:100%;min-height:44px;padding:10px}.file-input{opacity:0;clip-path:inset(50%);width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.error{color:#85301c;background:#fff6f2;border:1px solid #f0cdbf;border-radius:14px;padding:14px 18px;font-size:13px}.error button{color:#85301c;background:#fff;border-color:#ecc3b4;margin-top:10px;font-size:13px;font-weight:600}.error button:hover:enabled{background:#ffece5}.notice{color:#74540f;background:#fff8e6;border:1px solid #f3e1b0;border-radius:12px;padding:10px 14px;font-size:12px}.spinner{opacity:.85;border:2px solid;border-right-color:#0000;border-radius:50%;flex-shrink:0;width:16px;height:16px;animation:.7s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0}}@keyframes rise-in{0%{opacity:0;transform:translateY(8px)}}@keyframes pop-in{0%{opacity:0;transform:translateY(-6px)scale(.98)}}@keyframes sheet-in{0%{opacity:0;transform:translateY(24px)}}@keyframes drawer-in{0%{opacity:0;transform:translate(-20px)}}@keyframes pulse{50%{opacity:.35}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#ececf0;--ink-2:#c5c6ce;--muted:#9a9ba5;--line:#2b2c31;--canvas:#121214;--surface:#1b1c1f;--chrome:var(--canvas);--fill:#26272c;--accent:#8fb1ff;--accent-hover:#a9c3ff;--accent-text:#9dbbff;--accent-soft:#222838;--accent-glow:#0000;--on-accent:#0c1631;--success:#6fd39d;--warning-text:#f0c879;--warning-soft:#2e2716;--toast:#2a2b30;--backdrop:#0009;--scrollbar:#3a3b42;--shadow-sm:0 0 0 1px #ffffff0b, 0 1px 2px #00000059;--shadow-md:0 0 0 1px #ffffff0f, 0 14px 28px -12px #000000b3;--shadow-lg:0 0 0 1px #ffffff12, 0 24px 48px -16px #000c}:root[data-theme=sepia]{--ink:#4a3c2b;--ink-2:#57452e;--muted:#6e5c40;--line:#dfd1b6;--canvas:#f4ead6;--surface:#fbf3e3}:root[data-theme=dark] .error{color:#ffb4a3;background:#2a1c1a;border-color:#4f2e27}:root[data-theme=dark] .error button{color:#ffb4a3;background:0 0;border-color:#64392f}:root[data-theme=dark] .error button:hover:enabled{background:#3a2420}:root[data-theme=dark] .notice{color:#f0d28c;background:#29241a;border-color:#50452a}:root[data-theme=dark] .drop-overlay{background:#121214e0}:root[data-theme=dark] .empty-book{background:var(--accent-soft)}:root[data-theme=dark] .toast{box-shadow:var(--shadow-lg)}.app-theme-toggle.icon-button{color:var(--ink-2);border-radius:50%}.theme-toggle-icons{width:22px;height:22px;display:block;position:relative}.theme-toggle-icons svg{transform-origin:50%;width:22px;height:22px;transition:opacity .22s ease, transform .36s var(--ease);position:absolute;inset:0}.theme-toggle-moon{opacity:1;transform:rotate(0)scale(1)}.theme-toggle-sun{opacity:0;color:#f2c56b;transform:rotate(-90deg)scale(.45)}.app-theme-toggle[aria-pressed=true] .theme-toggle-moon{opacity:0;transform:rotate(90deg)scale(.45)}.app-theme-toggle[aria-pressed=true] .theme-toggle-sun{opacity:1;transform:rotate(0)scale(1)}:root,body,.library-app,.library-header,.library-main,.library-rail,.library-summary,.continue-placeholder,.recent-card:before,.reading-list-panel,.reading-list-add select,.shelf-panel,.local-explanation,.library-drawer,.drop-overlay,.drop-overlay>div,.error,.notice{transition:background-color .3s,color .3s,border-color .3s,box-shadow .3s}.library-app :where(h1,h2,h3,p,span,strong,summary,dl,dt,dd,code,select,input,a){transition:background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .25s var(--ease)}.reading-list-region{margin-bottom:40px;scroll-margin-top:88px}.reading-list-head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.reading-list-add{align-items:center;gap:8px;min-width:0;display:flex}.reading-list-add .select-wrap{min-width:0}.reading-list-add select{appearance:none;text-overflow:ellipsis;width:250px;max-width:100%;box-shadow:var(--shadow-sm);cursor:pointer;border-color:#0000;border-radius:999px;padding:10px 36px 10px 16px;font-size:13px}.reading-list-add select:disabled{cursor:default}.reading-list-add .select-wrap .library-icon{color:var(--muted);right:14px}.reading-list-add .primary-button{gap:6px;padding:10px 18px 10px 14px;font-size:13px}.reading-list-add .primary-button .library-icon{width:16px;height:16px}.reading-list-panel{background:var(--surface);box-shadow:var(--shadow-sm);border-radius:20px;padding:8px}.reading-list-empty{color:var(--muted);padding:14px 16px;font-size:13.5px}.reading-list-items{margin:0;padding:0;list-style:none}.reading-list-items li{align-items:center;gap:4px;padding-right:4px;display:flex}.reading-list-items li+li{margin-top:2px}.reading-list-number{text-align:center;width:28px;color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:13px;font-weight:600}.reading-list-open{text-align:left;background:0 0;border:0;border-radius:12px;flex:1;align-items:center;gap:14px;min-width:0;padding:8px 10px 8px 6px;display:flex}.library-app .reading-list-open:hover:enabled{background:var(--fill)}.reading-list-open:hover:enabled .reading-list-title{color:var(--accent-text)}.reading-list-open:disabled{opacity:1}.mini-cover{border-radius:2px 5px 5px 2px;width:34px;height:50px;box-shadow:0 1px 2px #00000024,0 6px 12px -6px #0006}.mini-cover .cover-body{padding:20cqi 14cqi 0 24cqi}.mini-cover .cover-rule{width:44cqi}.fallback-cover.mini-cover p,.fallback-cover.mini-cover .cover-author{display:none}.reading-list-copy{flex-direction:column;min-width:0;display:flex}.reading-list-title{overflow-wrap:anywhere;font-size:14.5px;font-weight:600;line-height:1.35;transition:color .15s}.reading-list-meta{color:var(--muted);overflow-wrap:anywhere;font-size:12.5px;line-height:1.45}.is-missing .mini-cover{opacity:.4;filter:grayscale()}.is-missing .reading-list-meta{color:var(--warning-text)}.reading-list-actions{flex-shrink:0;display:flex}.reading-list-actions .icon-button{color:var(--muted);border-radius:50%}.library-app .reading-list-actions .icon-button[aria-disabled=false]:hover{color:var(--ink);background:var(--fill)}.library-app .reading-list-actions .icon-button[aria-disabled=true]{cursor:default;opacity:.45;background:0 0;transition:opacity .2s .35s,background-color .3s,color .3s}.reading-list-actions .library-icon{width:18px;height:18px}@media (max-width:780px){.reading-list-head{flex-wrap:wrap;gap:12px}.reading-list-add{flex:100%}.reading-list-add .select-wrap{flex:1}.reading-list-add select{width:100%}}@media (max-width:500px){.reading-list-panel{padding:6px}.reading-list-number{width:20px;font-size:12px}.reading-list-open{gap:12px;padding-right:4px}.reading-list-actions .icon-button{width:40px;min-height:40px}.library-header .brand>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}}@media (max-width:340px){.reading-list-number{display:none}.reading-list-open{padding-left:8px}}.library-app{--rail-width:245px;color:var(--ink);background:var(--chrome);min-height:100dvh;animation:.25s fade-in}.library-icon{vertical-align:middle;flex-shrink:0;width:20px;height:20px}.library-header{z-index:20;background:color-mix(in srgb, var(--chrome) 90%, transparent);border-bottom:1px solid var(--line);-webkit-backdrop-filter:saturate(1.5)blur(12px);align-items:center;gap:30px;height:64px;padding:0 32px 0 20px;display:flex;position:sticky;top:0}.brand{width:calc(var(--rail-width) - 20px);min-height:44px;font-family:var(--font-display);letter-spacing:-.02em;border-radius:12px;flex-shrink:0;align-items:center;gap:11px;font-size:18px;font-weight:700;display:flex}.brand-mark{color:#fff;background:linear-gradient(140deg,#4a86ff,#1f50cf);border-radius:10px;flex-shrink:0;place-items:center;width:34px;height:34px;display:grid;box-shadow:0 6px 14px -6px #2563ebb3}.brand-mark .library-icon{stroke-width:2px;width:19px;height:19px}.header-navigation{align-items:center;gap:36px;height:100%;font-size:15px;display:flex}.header-navigation a{color:var(--muted);white-space:nowrap;align-items:center;height:100%;transition:color .15s;display:flex;position:relative}.header-navigation a:hover{color:var(--ink)}.header-navigation a[aria-current]{color:var(--accent-text);font-weight:600}.header-navigation a[aria-current]:after{content:"";background:var(--accent);border-radius:2px;height:2px;position:absolute;bottom:-1px;left:0;right:0}.header-actions{align-items:center;gap:16px;margin-left:auto;display:flex}.local-badge{background:var(--fill);color:var(--ink-2);white-space:nowrap;border-radius:999px;align-items:center;gap:8px;padding:6px 12px;font-size:12px;font-weight:500;display:flex}.local-badge>span{background:var(--success);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #23905d26}.primary-button{background:var(--accent);color:var(--on-accent);white-space:nowrap;box-shadow:0 8px 18px -8px var(--accent-glow);border-color:#0000;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:10px 22px;font-size:14px;font-weight:600;display:inline-flex}.primary-button:hover:enabled,.library-app .primary-button:hover:enabled{background:var(--accent-hover);box-shadow:0 10px 22px -8px var(--accent-glow);transform:translateY(-1px)}.primary-button:active:enabled{transform:translateY(0)}.primary-button .library-icon{stroke-width:2.2px;width:18px;height:18px}.primary-button .spinner{width:15px;height:15px}.cancel-import{border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600}.icon-button{background:0 0;border-color:#0000;border-radius:12px;place-items:center;width:44px;padding:0;display:grid}.library-menu{display:none}.library-layout{grid-template-columns:var(--rail-width) minmax(0, 1fr);min-height:calc(100dvh - 64px);display:grid}.library-rail{flex-direction:column;align-self:start;gap:24px;height:calc(100dvh - 64px);padding:24px 16px 24px 20px;display:flex;position:sticky;top:64px;overflow-y:auto}.library-summary{border:1px solid var(--line);background:color-mix(in srgb, var(--accent-soft) 65%, var(--surface));border-radius:16px;flex-direction:column;gap:6px;padding:18px 18px 16px;display:flex}.library-summary p{letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-size:10.5px;font-weight:600}.library-summary strong{font-family:var(--font-display);letter-spacing:-.02em;color:var(--accent-text);font-size:28px;font-weight:650;line-height:1.25}.library-summary>span{color:var(--muted);font-size:12px}.rail-navigation{gap:4px;margin-left:-10px;display:grid}.rail-navigation a{min-height:44px;color:var(--ink-2);border-radius:12px;align-items:center;gap:12px;padding:10px 12px;font-size:14px;transition:background-color .15s,color .15s;display:flex}.rail-navigation a .library-icon{color:var(--muted);transition:color .15s}.rail-navigation a:hover{background:var(--fill);color:var(--ink)}.rail-navigation a[aria-current]{color:var(--accent-text);background:var(--accent-soft);font-weight:600}.rail-navigation a[aria-current] .library-icon{color:var(--accent)}.rail-count{background:var(--surface);text-align:center;border-radius:999px;min-width:24px;margin-left:auto;padding:1px 8px;font-size:11px;font-weight:600}.library-main{background:var(--canvas);border-top-left-radius:28px;min-width:0;padding:32px}.library-notices{margin-bottom:24px;font-size:13px}.library-notices:empty{display:none}.library-notices .error{animation:rise-in .25s var(--ease);align-items:flex-start;gap:12px;display:flex}.library-notices .error .library-icon{margin-top:1px}#my-shelf,#continue-reading,#google-setup,#supported-books{scroll-margin-top:88px}.section-heading{align-items:baseline;gap:14px;margin-bottom:22px;display:flex}.section-heading h2,.reading-list-head h2,.shelf-title h1{letter-spacing:-.02em;font-size:21px;font-weight:650}.section-heading p{color:var(--muted);font-size:13px}.continue-region{margin-bottom:40px}.continue-placeholder{background:var(--surface);min-height:136px;box-shadow:var(--shadow-sm);color:var(--muted);border-radius:20px;align-items:center;gap:22px;padding:26px 30px;font-size:14px;display:flex}.continue-placeholder h3{color:var(--ink);margin:0 0 4px;font-size:16px;font-weight:600}.continue-placeholder p{color:var(--muted);font-size:13.5px}.continue-symbol,.empty-book,.empty-symbol,.explanation-symbol{color:var(--accent);background:var(--accent-soft);flex-shrink:0;place-items:center;display:grid}.continue-symbol{border-radius:4px 10px 10px 4px;width:54px;height:72px;box-shadow:inset 4px 0 #2563eb1f}.continue-symbol .library-icon{width:26px;height:26px}.recent-books{scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--scrollbar) transparent;align-items:flex-start;gap:28px;margin:-8px -8px -16px;padding:8px 8px 16px;scroll-padding-inline:8px;display:flex;overflow-x:auto;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),#0000);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),#0000)}.recent-card{scroll-snap-align:start;isolation:isolate;text-align:left;width:304px;min-width:0;min-height:184px;animation:rise-in .35s var(--ease) both;background:0 0;border:0;border-radius:8px 22px 22px 8px;flex:0 0 304px;grid-template-columns:110px minmax(0,1fr);padding:0;display:grid;position:relative}.recent-card:nth-child(2){animation-delay:40ms}.recent-card:nth-child(3){animation-delay:80ms}.recent-card:nth-child(4){animation-delay:.12s}.recent-card:before{content:"";background:var(--surface);z-index:-1;box-shadow:var(--shadow-sm);transition:background-color .3s ease, box-shadow .25s var(--ease);border-radius:20px;position:absolute;inset:24px 0 0 30px}.library-app .recent-card:hover:enabled{background:0 0}.recent-card:hover:before{box-shadow:var(--shadow-md)}.recent-card:hover .recent-cover{transform:translateY(-4px)}.recent-copy{flex-direction:column;min-width:0;padding:42px 18px 18px 20px;display:flex}.recent-author{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.recent-title{overflow-wrap:anywhere;margin-top:4px;font-size:15.5px;font-weight:600;line-height:1.35}.recent-opened{color:var(--muted);margin-top:4px;font-size:12px}.recent-action{color:var(--accent-text);align-items:center;gap:6px;margin-top:auto;padding-top:8px;font-size:13px;font-weight:600;display:flex}.recent-action .library-icon{width:16px;height:16px;transition:transform .2s var(--ease)}.recent-card:hover .recent-action .library-icon{transform:translate(3px)}.shelf-toolbar{justify-content:space-between;align-items:center;gap:24px;margin-bottom:16px;display:flex}.shelf-title{align-items:center;gap:28px;min-height:48px;display:flex}.shelf-title h1{white-space:nowrap}.shelf-title h1:focus-visible{border-radius:6px}.shelf-tab{border-bottom:2px solid var(--accent);white-space:nowrap;align-self:stretch;align-items:center;font-size:13px;font-weight:600;display:flex}.shelf-controls{justify-content:flex-end;align-items:center;gap:16px;min-width:0;display:flex}.sort-field{color:var(--muted);white-space:nowrap;align-items:center;gap:4px;font-size:13px;display:flex}.select-wrap{align-items:center;display:flex;position:relative}.select-wrap .library-icon{width:16px;height:16px;color:var(--accent-text);pointer-events:none;position:absolute;right:8px}.sort-field select{appearance:none;color:var(--accent-text);cursor:pointer;background:0 0;border-color:#0000;border-radius:10px;padding:10px 30px 10px 8px;font-size:13px;font-weight:600;transition:background-color .15s}.sort-field select:hover{background:color-mix(in srgb, var(--accent) 8%, transparent)}.search-field{align-items:center;width:240px;min-width:0;display:flex;position:relative}.search-field .library-icon{width:16px;height:16px;color:var(--muted);pointer-events:none;position:absolute;left:15px}.search-field input{width:100%;box-shadow:var(--shadow-sm);border-color:#0000;border-radius:999px;padding:10px 14px 10px 40px;font-size:13px;transition:background-color .3s,color .3s,border-color .15s,box-shadow .2s}.search-field input::placeholder{color:var(--muted)}.search-field input:focus{border-color:color-mix(in srgb, var(--accent) 55%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);outline:none}.shelf-panel{background:var(--surface);box-shadow:var(--shadow-sm);border-radius:24px;padding:20px 24px 32px}.shelf-summary{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;font-size:12px;display:flex}.book-count{color:var(--ink-2);font-weight:600}.book-grid{grid-template-columns:repeat(auto-fill,148px);justify-content:space-between;gap:34px 24px;display:grid}.book-card{min-width:0;animation:rise-in .35s var(--ease) both}.book-open{text-align:left;background:0 0;border:0;border-radius:6px;flex-direction:column;width:100%;padding:0;display:flex}.library-app .book-open:hover:enabled{background:0 0}.book-open:focus-visible{outline-offset:6px}.book-open:hover .book-cover{transform:translateY(-5px);box-shadow:0 2px 4px #14163a1a,0 20px 30px -14px #14163a73}.book-open:hover h2,.book-open:hover h3{color:var(--accent-text)}.fallback-cover{background:var(--cover-bg);color:var(--cover-ink);transition:transform .3s var(--ease), box-shadow .3s var(--ease);border-radius:3px 8px 8px 3px;flex-shrink:0;position:relative;overflow:hidden;box-shadow:0 1px 2px #14163a1f,0 12px 22px -12px #14163a66;container-type:inline-size}.fallback-cover:before{content:"";z-index:1;background:linear-gradient(90deg,#0000003d,#ffffff29 62%,#0000001a);width:7%;position:absolute;inset:0 auto 0 0}.fallback-cover:after{content:"";pointer-events:none;background:linear-gradient(118deg,#fff3,#fff0 36%),radial-gradient(130% 90% at 100% 100%,#00000024,#0000 62%);position:absolute;inset:0}.book-cover{aspect-ratio:148/216;width:148px;max-width:100%}.recent-cover{width:110px;height:160px}.cover-body{flex-direction:column;height:100%;padding:15cqi 11cqi 12cqi 17cqi;display:flex;position:relative}.cover-rule{background:var(--cover-accent);border-radius:2px;flex-shrink:0;width:18cqi;height:2px;margin-bottom:10cqi}.fallback-cover p{font-family:var(--font-serif);font-size:21px;letter-spacing:-.01em;overflow-wrap:anywhere;-webkit-line-clamp:5;-webkit-box-orient:vertical;font-size:14.5cqi;line-height:1.13;display:-webkit-box;overflow:hidden}.cover-medium p{-webkit-line-clamp:6;font-size:12.5cqi}.cover-long p{-webkit-line-clamp:8;font-size:10cqi}.cover-author{letter-spacing:.12em;text-transform:uppercase;opacity:.85;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:auto;padding-top:6cqi;font-size:6.2cqi;font-weight:600;line-height:1.45;display:-webkit-box;overflow:hidden}.cover-0{--cover-bg:linear-gradient(160deg, #2d4f8b, #1b325f);--cover-ink:#f6f0e2;--cover-accent:#e8c27c}.cover-1{--cover-bg:linear-gradient(160deg, #316555, #1e4337);--cover-ink:#eef5ec;--cover-accent:#dac891}.cover-2{--cover-bg:linear-gradient(160deg, #8e3247, #61202f);--cover-ink:#fcf0ea;--cover-accent:#f3c59d}.cover-3{--cover-bg:linear-gradient(160deg, #f5e9d0, #e2cda4);--cover-ink:#4a3920;--cover-accent:#a8742f}.cover-4{--cover-bg:linear-gradient(160deg, #e6eefc, #c8d7f1);--cover-ink:#1b3055;--cover-accent:#3c67ba}.cover-5{--cover-bg:linear-gradient(160deg, #5f3e7c, #3d2654);--cover-ink:#f5eefa;--cover-accent:#e7bbdb}.cover-6{--cover-bg:linear-gradient(160deg, #27727e, #194d56);--cover-ink:#ebf8f6;--cover-accent:#a8dfd4}.cover-7{--cover-bg:linear-gradient(160deg, #c9684c, #9f4831);--cover-ink:#fff5ee;--cover-accent:#ffd9b2}.book-card h2,.book-card h3{overflow-wrap:anywhere;margin-top:14px;font-size:13.5px;font-weight:600;line-height:1.4;transition:color .15s}.book-progress{width:100%;color:var(--ink-2);flex-direction:column;gap:5px;margin-top:10px;font-size:12px;display:flex}.book-progress progress,.reader-progress progress{appearance:none;background:var(--line);width:100%;height:4px;color:var(--accent);border:0;border-radius:4px;display:block;overflow:hidden}.book-progress progress::-webkit-progress-bar{background:var(--line)}.reader-progress progress::-webkit-progress-bar{background:var(--line)}.book-progress progress::-webkit-progress-value{background:var(--accent);border-radius:4px}.reader-progress progress::-webkit-progress-value{background:var(--accent);border-radius:4px}.book-progress progress::-moz-progress-bar{background:var(--accent);border-radius:4px}.reader-progress progress::-moz-progress-bar{background:var(--accent);border-radius:4px}.progress-pages,.progress-estimate{color:var(--muted);font-size:11px}.completed-label{color:var(--accent-text);font-weight:600}.completed-region{margin-top:32px;scroll-margin-top:90px}.completed-empty{color:var(--muted);padding:8px 0;font-size:14px}.reader-progress{flex-direction:column;gap:5px;width:min(100%,240px);min-height:60px;padding:4px 0;font-size:12px;display:flex}.book-author{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:12px;overflow:hidden}.availability{color:var(--muted);align-items:center;gap:5px;margin-top:8px;font-size:11px;line-height:1.4;display:flex}.availability span{color:var(--success);font-weight:700}.availability.is-missing{background:var(--warning-soft);color:var(--warning-text);border-radius:999px;align-self:flex-start;padding:3px 9px;font-weight:600}.availability.is-missing span{color:inherit}.empty-library{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:340px;padding:32px 0 16px;display:flex}.empty-book{width:62px;height:84px;box-shadow:inset 5px 0 0 #2563eb1f, var(--shadow-md);background:linear-gradient(150deg,#f1f5ff,#dfe8fd);border-radius:5px 12px 12px 5px;margin-bottom:24px}.empty-book .library-icon{width:30px;height:30px}.empty-library h2{letter-spacing:-.02em;font-size:22px;font-weight:650}.empty-library p{color:var(--muted);margin-top:10px;font-size:14px}.empty-library .empty-import{margin-top:22px}.empty-library small{color:var(--muted);margin-top:12px;font-size:12px}.text-button{color:var(--accent-text);background:0 0;border-color:#0000;border-radius:999px;justify-content:center;align-items:center;gap:8px;font-size:13px;font-weight:600;display:inline-flex}.library-app .text-button:hover:enabled{background:var(--accent-soft)}.no-results{text-align:center;color:var(--muted);overflow-wrap:anywhere;flex-direction:column;align-items:center;gap:12px;padding:40px 12px;font-size:14px;display:flex}.empty-symbol{border-radius:50%;width:52px;height:52px}.empty-symbol .library-icon{width:24px;height:24px}.shelf-loading{color:var(--muted);align-items:center;gap:12px;padding:32px 12px;font-size:14px;display:flex}.shelf-loading .spinner{color:var(--accent)}.local-explanation{background:var(--surface);box-shadow:var(--shadow-sm);border-radius:20px;gap:16px;margin-top:32px;padding:22px 24px;display:flex}.explanation-symbol{border-radius:50%;width:38px;height:38px}.local-explanation>div{flex:1;min-width:0}.local-explanation h2{margin-top:2px;font-size:14px;font-weight:600}.local-explanation>div>p{color:var(--muted);max-width:800px;margin-top:6px;font-size:13px}.local-explanation details{border-top:1px solid var(--line)}.local-explanation details:first-of-type{margin-top:14px}.local-explanation summary{cursor:pointer;color:var(--ink-2);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:12px 0;font-size:13px;font-weight:600;list-style:none;transition:color .15s;display:flex}.local-explanation summary::-webkit-details-marker{display:none}.local-explanation summary:after{content:"";width:8px;height:8px;transition:transform .2s var(--ease);border-bottom:1.7px solid;border-right:1.7px solid;margin-right:6px;transform:translateY(-2px)rotate(45deg)}.local-explanation details[open]>summary:after{transform:translateY(2px)rotate(-135deg)}.local-explanation summary:hover{color:var(--accent-text)}.local-explanation details>p{color:var(--muted);max-width:800px;padding-bottom:12px;font-size:13px}.local-explanation details>p+p{margin-top:-4px}.library-footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;gap:20px;margin-top:28px;padding:18px 4px 0;font-size:12px;display:flex}.drive-connection{flex-direction:column;align-items:flex-end;gap:8px;margin-bottom:24px;display:flex}.drive-toolbar{align-items:center;gap:4px;display:flex}.drive-connect,.drive-connected{align-items:center;gap:8px;font-size:13px;font-weight:600;display:inline-flex}.drive-connect{background:var(--surface);border-radius:999px;padding:9px 16px}.drive-connected{color:var(--muted);padding:9px 8px}.drive-options{position:relative}.drive-options>summary{cursor:pointer;border-radius:12px;place-items:center;width:44px;height:44px;list-style:none;display:grid}.drive-options>summary::-webkit-details-marker{display:none}.drive-options>summary:hover{background:var(--fill)}.drive-menu{z-index:25;border:1px solid var(--line);background:var(--surface);width:min(300px,100vw - 48px);box-shadow:var(--shadow-lg);border-radius:16px;gap:8px;padding:16px;display:grid;position:absolute;top:48px;right:0}.drive-menu p,.drive-menu button,.drive-menu a{overflow-wrap:anywhere;font-size:13px}.drive-menu a{color:var(--accent-text);padding:8px}.drive-message{max-width:540px;color:var(--muted);text-align:right;overflow-wrap:anywhere;font-size:12px}.library-drawer{width:min(300px,100vw - 24px);max-height:calc(100dvh - 24px);color:var(--ink);background:var(--surface);box-shadow:var(--shadow-lg);border:0;border-radius:22px;margin:12px auto 12px 12px;padding:0}.library-drawer[open]{animation:drawer-in .25s var(--ease)}.library-drawer::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.library-drawer[open]::backdrop{animation:.25s fade-in}.drawer-content{padding:16px 20px 20px}.drawer-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.drawer-heading h2{font-size:18px;font-weight:650}.drawer-heading button:hover:enabled{background:var(--fill)}.library-drawer .rail-navigation{margin-top:18px}.library-toasts{z-index:30;width:max-content;max-width:calc(100vw - 32px);position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast{background:var(--toast);color:#fff;min-height:48px;box-shadow:var(--shadow-lg);animation:rise-in .3s var(--ease);border-radius:14px;align-items:center;gap:12px;padding:8px 8px 8px 16px;font-size:13.5px;display:flex}.toast p{overflow-wrap:anywhere;padding:4px 0;line-height:1.45}.toast>.library-icon{color:#74dba3;stroke-width:2.2px;width:18px;height:18px}.toast .spinner{color:#9bb9ff}.toast-dismiss{color:#ffffffb3;background:0 0;border:0;border-radius:9px;flex-shrink:0;place-items:center;width:34px;min-height:34px;padding:0;display:grid}.library-app .toast-dismiss:hover:enabled,.toast-dismiss:hover:enabled{color:#fff;background:#ffffff1f}.toast-dismiss .library-icon{width:16px;height:16px}.drop-overlay{z-index:40;pointer-events:none;border:2px dashed var(--accent);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#ebf1ffe0;border-radius:26px;place-items:center;animation:.15s fade-in;display:grid;position:fixed;inset:12px}.drop-overlay>div{text-align:center;background:var(--surface);box-shadow:var(--shadow-lg);border-radius:20px;gap:6px;padding:28px 36px;display:grid}.drop-overlay strong{font-family:var(--font-display);color:var(--accent-text);font-size:20px}.drop-overlay span{color:var(--muted);font-size:13px}.reader{--paper:#fdfcf9;--ink:#23262b;--muted:#6c7078;--line:#ebe9e2;--panel:#fff;--hover:#23262b0f;--accent:#2563eb;--accent-soft:#2563eb1a;background:var(--paper);color:var(--ink);height:100dvh;min-height:480px;padding-bottom:env(safe-area-inset-bottom);flex-direction:column;transition:background-color .3s,color .3s;animation:.25s fade-in;display:flex;position:relative}.theme-sepia{--paper:#f4ead6;--ink:#4a3c2b;--muted:#6e5c40;--line:#e3d4b5;--panel:#fbf3e3;--hover:#4a3c2b14;--accent:#9b5a19;--accent-soft:#9b5a191f}.theme-dark{--paper:#1d1e22;--ink:#dcdde2;--muted:#9b9ea8;--line:#2d2f35;--panel:#26282d;--hover:#ffffff12;--accent:#8cb0ff;--accent-soft:#8cb0ff24}.reader button{color:inherit;background:0 0;border:0}.reader button:hover:enabled{background:var(--hover)}.reader :focus-visible{outline-color:var(--accent)}.reader-header{border-bottom:1px solid var(--line);flex-shrink:0;grid-template-columns:minmax(0,1fr) minmax(0,2.2fr) minmax(0,1fr);align-items:center;gap:12px;height:56px;padding:0 12px;transition:border-color .3s;display:grid}.reader-start{min-width:0;display:flex}.reader-back{border-radius:999px;align-items:center;gap:4px;padding:0 14px 0 8px;font-size:14px;font-weight:500;display:inline-flex}.reader-heading{text-align:center;min-width:0}.reader-heading h1{font-family:var(--font-ui);white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:600;line-height:1.3;overflow:hidden}.reader-heading p{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:1.35;overflow:hidden}.reader-tools{justify-content:flex-end;gap:4px;min-width:0;display:flex}.tool-button{white-space:nowrap;border-radius:999px;align-items:center;gap:8px;padding:0 14px;font-size:13.5px;font-weight:500;display:inline-flex}.reader .tool-button[aria-expanded=true]{background:var(--accent-soft);color:var(--accent)}.reader-panel{z-index:5;border:1px solid var(--line);background:var(--panel);width:min(360px,100vw - 24px);max-height:calc(100dvh - 140px);color:var(--ink);transform-origin:100% 0;animation:pop-in .2s var(--ease);border-radius:20px;padding:16px 18px 20px;position:absolute;top:64px;right:12px;overflow:auto;box-shadow:0 24px 48px -18px #0000004d,0 4px 12px #0000000f}.panel-title{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.panel-title h2{font-family:var(--font-ui);font-size:17px;font-weight:650}.panel-close{border-radius:50%;place-items:center;width:40px;min-height:40px;margin-right:-8px;padding:0;display:grid}.reader-panel ol{gap:2px;margin:0 -6px;padding:0;list-style:none;display:grid}.reader-panel li button{text-align:left;border-radius:12px;align-items:baseline;gap:12px;width:100%;padding:11px 12px;font-size:14px;line-height:1.45;display:flex}.toc-number{font-variant-numeric:tabular-nums;min-width:18px;color:var(--muted);font-size:12px}.reader-panel li button[aria-current]{background:var(--accent-soft);color:var(--accent);font-weight:600}.reader-panel li button[aria-current] .toc-number{color:inherit}.appearance-settings{gap:22px;display:grid}.appearance-settings fieldset{border:0;min-width:0;margin:0;padding:0}.appearance-settings legend,.setting-label label{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:0;font-size:12px;font-weight:600}.appearance-settings legend{margin-bottom:10px}.theme-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.theme-option{border:1.5px solid var(--line);cursor:pointer;border-radius:14px;justify-items:center;gap:7px;padding:8px 8px 9px;font-size:13px;transition:border-color .15s,box-shadow .2s;display:grid;position:relative}.theme-option input,.segmented input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.theme-option:hover{border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}.theme-option:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);font-weight:600}.theme-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.segmented label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}.appearance-settings input[aria-disabled=true]{cursor:default}.theme-option:has(input[aria-disabled=true]){cursor:default}.segmented label:has(input[aria-disabled=true]){cursor:default}.swatch{width:100%;height:42px;font-family:var(--font-serif);border:1px solid #00000014;border-radius:9px;place-items:center;font-size:19px;display:grid}.swatch-light .swatch{color:#262b28;background:#fdfcf9}.swatch-sepia .swatch{color:#4a3c2b;background:#f4ead6}.swatch-dark .swatch{color:#dcdde2;background:#1d1e22;border-color:#ffffff14}.setting-label{justify-content:space-between;align-items:baseline;margin-bottom:6px;display:flex}.setting-label output{font-variant-numeric:tabular-nums;font-size:13px;font-weight:600}.slider-row{align-items:center;gap:14px;display:flex}.slider-row input{min-height:36px;accent-color:var(--accent);cursor:pointer;background:0 0;border:0;flex:1;padding:0}.size-small,.size-large{font-family:var(--font-serif);color:var(--muted);line-height:1}.size-small{font-size:13px}.size-large{font-size:22px}.segmented{background:var(--hover);border-radius:13px;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;display:grid}.segmented label{text-align:center;cursor:pointer;border-radius:10px;place-items:center;min-height:38px;padding:0 4px;font-size:13px;transition:background-color .15s,box-shadow .2s;display:grid;position:relative}.segmented label:has(input:checked){background:var(--panel);font-weight:600;box-shadow:0 1px 3px #0000001f}.reader-notices{flex-shrink:0;gap:8px;width:min(760px,100% - 24px);margin:0 auto;display:grid}.reader-notices:empty{display:none}.reader-notices>:first-child{margin-top:10px}.reader .error{margin:0}.reader .retry-button{border:1px solid var(--line);background:var(--panel);justify-self:center;font-size:13px;font-weight:600}.reading-area{flex:1;width:100%;max-width:760px;min-height:0;margin:0 auto;padding-top:8px;position:relative;overflow:hidden}.epub-surface{width:100%;height:100%}.reader-loading{pointer-events:none;color:var(--muted);place-items:center;display:grid;position:absolute;inset:0}.reader-loading .spinner{border-width:2.5px;width:28px;height:28px}.reader-footer{border-top:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:60px;padding:6px 12px;transition:border-color .3s;display:flex}.page-turn{width:48px;height:48px;color:var(--muted);border-radius:50%;flex-shrink:0;place-items:center;padding:0;display:grid}.reader .page-turn:hover:enabled{color:var(--ink)}.page-turn .library-icon{width:24px;height:24px}.reading-status{text-align:center;flex-direction:column;flex:1;align-items:center;gap:1px;min-width:0;display:flex}.reading-chapter{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:13px;font-weight:500;line-height:1.4;overflow:hidden}.chapter-count{color:var(--muted);font-weight:400}.save-state{max-width:100%;color:var(--muted);align-items:center;gap:7px;font-size:11.5px;line-height:1.4;display:inline-flex}.save-state small{font-size:inherit}.reader-save-status{flex-direction:column;align-items:center;gap:1px;display:flex}.reader-sync-status{color:var(--ink);opacity:.65;font-size:10.5px;line-height:1.4}.save-dot{opacity:.6;background:currentColor;border-radius:50%;flex-shrink:0;width:6px;height:6px;transition:background-color .2s}.save-saved .save-dot{opacity:1;background:#2fa36b}.save-saving .save-dot{background:var(--accent);opacity:1;animation:1s infinite pulse}.save-error .save-dot{opacity:1;background:#d24a36}.save-error{color:#c0412e}.theme-dark .save-error{color:#ff9583}@media (min-width:1100px){.reading-area{width:calc(100% - 160px);max-width:1600px}.reading-area:after{content:"";background:var(--line);opacity:.4;pointer-events:none;width:1px;position:absolute;top:26px;bottom:18px;left:50%}.page-turn{z-index:2;width:56px;height:56px;position:absolute;top:50%;transform:translateY(-50%)}.page-previous{left:24px}.page-next{right:24px}.page-turn .library-icon{stroke-width:1.5px;width:28px;height:28px}.reader-footer{min-height:52px;padding:6px 24px}.reading-status{flex-direction:row;justify-content:space-between;gap:24px;max-width:760px;margin:0 auto;padding:0 24px}}@media (max-width:1099px){.tool-button{justify-content:center;width:44px;padding:0}.tool-button span{display:none}}@media (max-width:1100px){.header-navigation{gap:24px;font-size:14px}.header-actions{gap:12px}.library-header{gap:16px;padding-right:24px}.local-badge{display:none}.library-main{padding:24px}.shelf-toolbar{flex-wrap:wrap;gap:8px}.shelf-controls{flex:1}}@media (max-width:780px){.library-header{gap:6px;padding:0 12px 0 8px}.library-menu{display:grid}.brand{flex:1;gap:9px;width:auto;min-width:0;font-size:17px}.brand-mark{border-radius:9px;width:30px;height:30px}.brand-mark .library-icon{width:17px;height:17px}.header-navigation{display:none}.header-actions{gap:6px;margin-left:0}.library-layout{display:block}.library-rail{display:none}.library-main{border-top-left-radius:24px;border-top-right-radius:24px;padding:24px 20px}.section-heading{flex-direction:column;align-items:flex-start;gap:2px;margin-bottom:18px}.continue-placeholder{gap:18px;padding:22px}.recent-books{gap:20px}.shelf-toolbar{flex-direction:column;align-items:stretch;gap:12px}.shelf-controls{justify-content:space-between;gap:12px}.search-field{flex:1}.library-toasts{bottom:16px}}@media (max-width:500px){.library-main{padding:22px 14px}.library-header{gap:2px;padding:0 10px 0 4px}.brand{gap:8px;font-size:16px}.primary-button{gap:6px;padding:10px 16px;font-size:13px}.import-format{display:none}.cancel-import{z-index:1;background:var(--surface);box-shadow:var(--shadow-md);position:absolute;top:72px;right:12px}.section-heading h2,.reading-list-head h2,.shelf-title h1{font-size:19px}.section-heading p{font-size:12px}.continue-placeholder{gap:14px;padding:18px}.continue-symbol{width:42px;height:58px}.continue-symbol .library-icon{width:22px;height:22px}.continue-placeholder h3{font-size:15px}.continue-placeholder p{font-size:13px}.continue-region{margin-bottom:30px}.recent-card{flex-basis:calc(100% - 20px)}.shelf-controls{flex-direction:column-reverse;align-items:stretch;gap:4px}.search-field{width:100%}.sort-field{justify-content:space-between;padding-left:4px}.shelf-title{justify-content:space-between;gap:16px}.shelf-panel{border-radius:20px;padding:16px 14px 24px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;gap:28px 14px}.book-cover{width:100%}.book-card h2{margin-top:12px;font-size:13px}.book-author{font-size:11.5px}.local-explanation{gap:12px;padding:18px}.explanation-symbol{display:none}}@media (max-width:380px){.recent-card{grid-template-columns:100px minmax(0,1fr)}.recent-cover{width:100px}.recent-copy{padding-left:16px;padding-right:12px}.book-grid{gap:24px 12px}.library-footer{gap:12px;font-size:11px}}@media (max-width:700px){.reader-header{grid-template-columns:auto minmax(0,1fr) auto;gap:4px;padding:0 6px}.reader-back{justify-content:center;width:44px;padding:0}.reader-back span{display:none}.reader-back .library-icon{width:24px;height:24px}.reader-heading h1{font-size:14px}.reader-heading p{font-size:11.5px}.tool-button{justify-content:center;width:44px;padding:0}.tool-button span{display:none}.reader-panel{top:auto;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));width:auto;max-height:min(72dvh,100dvh - 80px);animation:sheet-in .25s var(--ease);border-radius:22px}.reading-area{padding-top:4px}.reader-footer{min-height:56px;padding:4px 6px}.page-turn{width:44px;height:44px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.spinner{animation:1.4s linear infinite spin!important}}.drive-actions,.progress-choice{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.drive-actions button,.progress-choice button{border:1px solid var(--line);background:var(--surface);color:inherit;border-radius:.5rem;padding:.6rem .85rem}.progress-choice{max-height:min(40dvh,300px);padding:.75rem;overflow:auto}.progress-choice p{flex-basis:100%}.library-summary span{overflow-wrap:anywhere}
