:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#eef0f3;background:#0e1014;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0}html,body,#root{width:100%;min-height:100%}html,body{min-height:100dvh;background:#111318}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.3;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #8eb8ff;outline-offset:3px}.app{max-width:1120px;margin:auto;min-height:100dvh;padding:calc(30px + env(safe-area-inset-top)) 22px calc(95px + env(safe-area-inset-bottom))}.header,.header-actions,.section-header,.reading-row,.reader-top,.reader-bottom,.search-panel{display:flex;align-items:center;justify-content:space-between}.header{margin-bottom:35px}.header h1{font-size:32px;letter-spacing:-1.2px;margin:4px 0 0;font-weight:700}.library-brand-row{display:flex;align-items:center;gap:14px}.eyebrow{letter-spacing:1.6px;font-size:9px;color:#a1a7b2;font-weight:650}.header-actions{gap:10px}.icon-button{width:44px;height:44px;border:1px solid #2b3038;background:#1a1d23;border-radius:13px;display:grid;place-items:center}.icon-button svg{width:19px}.icon-button.primary,.cta{background:#d3d9e1;color:#13161b;border-color:transparent}.search-panel{padding:12px;background:#191c22;border:1px solid #30343d;border-radius:15px;gap:10px;margin-bottom:20px}.search-panel input{background:transparent;color:inherit;border:0;outline:0;width:100%}.search-panel button{background:none;border:0}.section-header{margin:26px 0 15px}.section-header h2{font-size:17px;letter-spacing:-.25px;margin:0}.muted,.subtle{color:#9ca3ae;font-size:12px}.featured{background:#1a1e24;border:1px solid #303640;border-radius:18px;text-align:left;padding:13px;display:flex;align-items:center;gap:16px;width:100%}.mini-cover{width:86px;aspect-ratio:3/4;background:#323944;flex-shrink:0;overflow:hidden;border-radius:6px}.mini-cover img,.cover img{width:100%;height:100%;object-fit:cover}.featured-content{flex:1;display:flex;gap:10px;flex-direction:column;min-width:0}.featured-content strong{font-size:16px;overflow:hidden;text-overflow:ellipsis}.progress{background:#2c323b;border-radius:12px;height:4px;overflow:hidden}.progress span{display:block;height:100%;background:#aab9cf;border-radius:12px}.reading-row{width:100%;gap:12px;background:transparent;border:0;border-bottom:1px solid #262b34;padding:16px 4px;text-align:left}.reading-row span{flex:1;font-size:13px}.reading-row small{color:#adb4bf}.cover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}.issue-tile{min-width:0;width:100%}.cover-button{border:0;padding:0;background:transparent;display:block;text-align:left;width:100%}.cover{aspect-ratio:3/4;background:#303640;border-radius:6px;overflow:hidden;box-shadow:0 8px 24px #0005}.cover-placeholder{height:100%;padding:12px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(160deg,#52676f,#252f3c)}.cover-placeholder span{letter-spacing:2px;font-size:10px}.cover-placeholder strong{font-size:14px;line-height:1.25;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.cover-button .progress{margin-top:8px}.cover-title{font-size:12px;margin:8px 0 4px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile-actions{display:flex;gap:12px;margin-top:7px}.tile-actions button{background:transparent;border:0;color:#9ba3af;padding:2px}.bottom-tabs{position:fixed;z-index:8;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#15191eef;border-top:1px solid #31363f;padding:12px 12px calc(12px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.bottom-tabs>div{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px}.bottom-tabs .disabled{opacity:.32}.prototype-note{text-align:center;font-size:10px;color:#707782;margin:30px 0}.welcome,.empty{border:1px dashed #353d48;border-radius:17px;min-height:220px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:30px;color:#aeb6c1}.welcome h2{color:#f1f2f5;font-size:19px}.welcome p{max-width:330px;font-size:13px;line-height:1.6}.cta{border-radius:12px;padding:12px 20px;border:0;display:flex;align-items:center;gap:8px;font-weight:600}.notice{background:#313b3c;padding:12px;border-radius:10px;margin-bottom:12px;font-size:13px}.notice.error{background:#502d35}.reader{--reader-safe-top: env(safe-area-inset-top, 0px);--reader-safe-right: env(safe-area-inset-right, 0px);--reader-safe-bottom: env(safe-area-inset-bottom, 0px);--reader-safe-left: env(safe-area-inset-left, 0px);--reader-content-top: var(--reader-safe-top);--reader-content-right: var(--reader-safe-right);--reader-content-bottom: calc(var(--reader-safe-bottom) + 68px);background:#111318;height:100vh;height:100svh;height:100dvh;width:100vw;display:flex;flex-direction:column;position:fixed;top:0;left:0;overflow:hidden;color:#f4f6f9}.document-opening{--opening-ink: #eff1f5;--opening-muted: #a0a9b7;--opening-surface: #1d2530;--opening-line: #354150;position:fixed;inset:0;z-index:60;display:grid;place-items:center;overflow:auto;overscroll-behavior:contain;padding:max(76px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));background:radial-gradient(ellipse at 50% 38%,#27324555,transparent 65%),#111318;color:var(--opening-ink);opacity:1;transition:opacity .18s ease}.document-opening.is-ready{opacity:0;pointer-events:none}.appearance-light .document-opening,.epub-theme-light .document-opening{--opening-ink: #252a32;--opening-muted: #6c737e;--opening-surface: #fafaf7;--opening-line: #d4d8dd;background:radial-gradient(ellipse at 50% 38%,#fff9,transparent 65%),#e8e6e1}.document-opening-back{position:absolute;top:max(16px,calc(env(safe-area-inset-top) + 10px));left:max(16px,env(safe-area-inset-left));display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid var(--opening-line);border-radius:999px;background:var(--opening-surface);color:inherit;font-size:13px}.document-opening-content{width:min(100%,340px);text-align:center}.document-opening-art{position:relative;width:114px;height:150px;margin:0 auto 30px}.document-opening-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;overflow:hidden;border:1px solid #8290a640;border-radius:5px 12px 12px 5px;background:linear-gradient(120deg,#3b5064,#263442);color:#dce5ef;box-shadow:inset 5px 0 #0002,0 16px 40px #0003;transform:rotate(-6deg)}.document-opening-cover img{width:100%;height:100%;object-fit:cover}.document-opening-cover span{font-size:8px;letter-spacing:.22em}.document-opening-page{position:absolute;inset:6px -9px -1px 10px;padding:29px 16px;background:var(--opening-surface);border:1px solid var(--opening-line);border-radius:5px 10px 10px 5px;transform:rotate(7deg)}.document-opening-page i{display:block;height:3px;margin-bottom:10px;border-radius:2px;background:var(--opening-line)}.document-opening-page i:last-child{width:60%}.document-opening-eyebrow{margin:0 0 10px;color:var(--opening-muted);font-size:9px;font-weight:650;letter-spacing:.2em}.document-opening h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:0;font-size:20px;font-weight:600;line-height:1.35;text-wrap:balance}.document-opening-status{margin:22px 0 13px;color:var(--opening-muted);font-size:13px}.document-opening-progress{width:148px;height:3px;margin:auto;border-radius:3px;overflow:hidden;background:var(--opening-line)}.document-opening-progress span{display:block;height:100%;border-radius:inherit;background:#91b3d8;transition:width .16s ease}.document-opening-progress.indeterminate span{width:42%;animation:opening-progress 1.4s ease-in-out infinite alternate}.document-opening-caption{margin:15px 0 0;color:var(--opening-muted);font-size:11px;line-height:1.5}.document-opening-error h2{margin:20px 0 8px;font-size:15px}.document-opening-error p{color:var(--opening-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.document-opening-error button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 20px;margin-top:8px;color:inherit;background:var(--opening-surface);border:1px solid var(--opening-line);border-radius:999px}@keyframes opening-progress{0%{transform:translate(0)}to{transform:translate(140%)}}@media(orientation:landscape)and (max-height:600px){.document-opening{padding-top:66px;padding-bottom:max(20px,env(safe-area-inset-bottom))}.document-opening-content{width:min(100%,560px);position:relative;text-align:left;padding-left:148px;min-height:150px;display:flex;flex-direction:column;justify-content:center}.document-opening-art{position:absolute;left:0;top:0;margin:0}.document-opening-progress{margin-left:0}.document-opening-status{margin-top:14px}}@media(prefers-reduced-motion:reduce){.document-opening,.document-opening-progress span{transition:none}.document-opening-progress.indeterminate span{animation:none;width:100%;opacity:.6}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.reader-top{height:calc(58px + var(--reader-safe-top));padding:var(--reader-safe-top) 13px 0;flex-shrink:0;position:absolute;top:0;left:0;right:0;background:#171a20ef;z-index:3;opacity:0;transform:translateY(-100%);transition:transform .18s ease-out,opacity .16s ease-out;pointer-events:none}.reader-top.visible{opacity:1;transform:translateY(0)}.reader-title{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55%}.page-surface{height:100%;overflow:auto;overscroll-behavior:contain;display:flex;align-items:flex-start;justify-content:center;padding:12px;position:relative}.pdf-canvas{display:block;max-width:none;box-shadow:0 5px 40px #0008;background:#fff}.loading{position:absolute;bottom:65px;background:#222936d9;padding:9px 14px;border-radius:12px;font-size:12px}.reader-bottom{position:absolute;bottom:calc(12px + var(--reader-safe-bottom));left:max(12px,var(--reader-safe-left));right:max(12px,var(--reader-safe-right));background:#20252deb;border:1px solid #3a4350;border-radius:18px;box-shadow:0 8px 30px #0007;z-index:3;gap:2px;padding:5px;opacity:0;transform:translateY(14px) scale(.985);transition:transform .18s ease-out,opacity .16s ease-out;pointer-events:none}.reader-bottom.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}.reader-bottom button{border:0;background:transparent;padding:9px;display:grid;place-items:center;min-width:44px;min-height:44px;color:#e7ebf2}.page-number{font-size:12px;color:#bbc4cd}.reader .empty button{margin-top:20px;padding:10px;background:#303943;border:0;border-radius:10px}@media(min-width:620px){.cover-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:900px){.cover-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:26px}.app{padding-left:45px;padding-right:45px}.reader .page-surface{padding:28px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.engine-surface{position:relative;width:100%;height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch;overflow-anchor:none;background:#111318;outline-offset:-3px;scroll-padding:calc(var(--reader-content-top) + 8px) calc(var(--reader-content-right) + 8px) calc(var(--reader-content-bottom) + 8px) calc(var(--reader-safe-left) + 8px)}.appearance-light,.appearance-light .engine-surface{background:#e8e6e1}.appearance-light{color-scheme:light}.appearance-dark{color-scheme:dark}.appearance-light .reader-top,.appearance-light .reader-bottom{color:#17191d;background:#f8f8f6eb;border-color:#c9c9c6}.appearance-light .reader-bottom button{color:#252a32}.appearance-light .reader-bottom{background:#fafaf8e6;box-shadow:0 -8px 28px #4c4c4c26}@supports (backdrop-filter: blur(18px)){.reader-top,.reader-bottom,.reader-sheet,.crop-editor{-webkit-backdrop-filter:blur(18px) saturate(125%);backdrop-filter:blur(18px) saturate(125%)}}.page-stack{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;padding:calc(var(--reader-content-top) + 8px) calc(var(--reader-content-right) + 8px) calc(var(--reader-content-bottom) + 8px) calc(var(--reader-safe-left) + 8px);min-width:100%;min-height:100%;width:max-content;box-sizing:border-box}.page-group{flex-direction:row;align-items:flex-start;justify-content:center;gap:8px;min-width:100%;width:max-content}.page-group.fit-centered{align-items:center}.pdf-page{position:relative;flex:none;background:#fff;overflow:hidden;box-shadow:0 4px 22px #0006;contain:layout paint;isolation:isolate}.pdf-full{position:absolute}.page-pixels,.page-pixels canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.page-status{position:absolute;bottom:12px;left:12px;max-width:90%;padding:6px 10px;background:#20252edb;color:#fff;border-radius:7px;font-size:11px;pointer-events:none}.textLayer{position:absolute;text-align:initial;inset:0;overflow:clip;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;caret-color:CanvasText;z-index:1}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}.textLayer>:not(.markedContent),.textLayer .markedContent span:not(.markedContent){z-index:1;--font-height: 0;--scale-x: 1;--rotation: 0;font-size:calc(var(--total-scale-factor) * var(--font-height));transform:rotate(var(--rotation)) scaleX(var(--scale-x))}.textLayer .markedContent{display:contents}.textLayer ::selection{background:#3585ff66}.textLayer br::selection{background:transparent}.engine .reader-bottom{left:auto;right:calc(16px + var(--reader-safe-right));bottom:max(24px,calc(12px + var(--reader-safe-bottom)));width:max-content;max-width:calc(100% - 24px);overflow:visible;box-sizing:border-box;justify-content:center;gap:3px;padding:4px;transform:translateY(6px) scale(.96)}.engine .reader-bottom.visible{transform:translateY(0) scale(1)}.engine .reader-bottom button{display:flex;flex-direction:column;flex:0 0 54px;width:54px;gap:1px;min-width:44px;min-height:46px;padding:5px 6px;margin:0;font-size:9px;line-height:1.15;border-radius:13px;transition:background .16s ease,color .16s ease,transform .12s ease}.engine .reader-bottom button:active{transform:scale(.96)}.engine .reader-bottom button.active{color:#bcd3ff;background:#6f98dc24}.engine .reader-bottom button[aria-expanded=true]{color:#c7d9fa;background:#6f98dc26}.appearance-light .engine .reader-bottom button.active,.appearance-light .engine .reader-bottom button[aria-expanded=true]{color:#245b9f;background:#477bc21f}.appearance-light .engine .reader-bottom{box-shadow:0 8px 28px #4c4c4c26}.engine .reader-bottom svg{width:19px;height:19px}.engine .reader-top{top:calc(10px + var(--reader-safe-top));left:max(10px,var(--reader-safe-left));right:max(10px,var(--reader-safe-right));width:auto;height:40px;padding:0 13px;gap:12px;border:1px solid rgba(115,126,142,.5);border-radius:999px;background:#181c23d1;box-shadow:0 7px 24px #0006;transform:translateY(-8px) scale(.96);font-size:12px;pointer-events:none}.engine .reader-top-action{pointer-events:auto;flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:inherit}.engine .reader-top-action svg{width:18px;height:18px}.engine .reader-top-action:active,.engine .reader-top-action.active{color:#bcd3ff;background:#6f98dc29}.engine .reader-title{flex:1;min-width:0;max-width:none}.engine .reader-top.visible{transform:translateY(0) scale(1)}@media(orientation:landscape)and (max-height:600px){.engine-surface{overflow-x:hidden;touch-action:pan-y pinch-zoom}.reader:not(.crop-editing){--reader-content-top: var(--reader-safe-top);--reader-content-right: calc(var(--reader-safe-right) + 68px);--reader-content-bottom: var(--reader-safe-bottom)}.engine .reader-bottom{inset:calc(50% + (52px + var(--reader-safe-top) - var(--reader-safe-bottom)) / 2) calc(8px + var(--reader-safe-right)) auto auto;max-height:calc(100% - 76px - var(--reader-safe-top) - var(--reader-safe-bottom));overflow-y:auto;scrollbar-width:none;width:58px;padding:7px 5px;flex-direction:column;justify-content:center;gap:3px;border:1px solid #3a4350;border-radius:20px;box-shadow:-8px 6px 30px #0007;translate:0 -50%;transform:translate(4px) scale(.96)}.engine .reader-bottom.visible{transform:translate(0) scale(1)}.engine .reader-bottom button{flex:0 0 auto;width:46px;min-width:46px;min-height:45px;padding:4px 2px;border-radius:13px;font-size:8px}.engine .reader-bottom svg{width:18px;height:18px}.engine .reader-top{top:calc(9px + var(--reader-safe-top));right:max(10px,var(--reader-safe-right));bottom:auto;left:max(10px,var(--reader-safe-left));width:auto;height:40px;padding:0 13px;gap:12px;border:1px solid rgba(115,126,142,.5);border-radius:999px;background:#181c23d1;box-shadow:0 7px 24px #0006;transform:translateY(-8px) scale(.96)}.engine .reader-top.visible{transform:translateY(0) scale(1)}.engine .reader-title{max-width:none;flex:1;font-size:11px}.appearance-light.engine .reader-top{background:#fafaf7e0;border-color:#62697259;box-shadow:0 7px 24px #4b515c2e}}.page-indicator{position:absolute;bottom:calc(76px + var(--reader-safe-bottom));left:50%;transform:translate(-50%);background:#2b3039e8;border:1px solid transparent;border-radius:20px;padding:7px 14px;font-size:12px;z-index:4;pointer-events:none}.appearance-dark.engine .reader-top,.appearance-dark.engine .page-indicator{color:#f1f4f8;background:#1c212ae0;border-color:#7f8da085;box-shadow:0 7px 24px #0007}.appearance-light.engine .reader-top,.appearance-light.engine .page-indicator{color:#252a30;background:#fafaf7eb;border-color:#62697259;box-shadow:0 7px 24px #4b515c2e}@media(orientation:landscape)and (max-height:600px){.page-indicator{top:calc(58px + var(--reader-safe-top));right:max(10px,var(--reader-safe-right));bottom:auto;left:auto;transform:none}}.zoom-next-page{position:absolute;z-index:9;top:60%;right:var(--reader-safe-right);width:46px;height:66px;padding:0 2px 0 6px;display:grid;place-items:center;color:#eef4ff;background:#2a3340ad;border:1px solid rgba(143,162,188,.48);border-right:0;border-radius:18px 0 0 18px;box-shadow:-5px 5px 18px #0005;-webkit-backdrop-filter:blur(12px) saturate(120%);backdrop-filter:blur(12px) saturate(120%);transform:translateY(-50%);opacity:.72;animation:zoom-next-in .18s ease-out}.zoom-next-page svg{width:22px;height:22px}.zoom-next-page:active{opacity:1;transform:translateY(-50%) scale(.94)}.appearance-light .zoom-next-page{color:#254d7d;background:#fafaf7c7;border-color:#4f698961;box-shadow:-5px 5px 18px #4b515c2e}.reader-error{position:absolute;top:calc(70px + var(--reader-safe-top));left:12px;right:12px;z-index:10;padding:14px;background:#592d38;border-radius:12px;display:flex;align-items:center;gap:12px;font-size:13px}.reader-error button{background:none;border:0}.sheet-backdrop{position:absolute;inset:0;z-index:20;background:#0007;display:flex;align-items:flex-end;padding-left:var(--reader-safe-left);padding-right:var(--reader-safe-right);justify-content:center;animation:sheet-backdrop-in .18s ease-out}.reader-sheet{background:#1b1f26f7;border:1px solid #3a414d;border-radius:20px 20px 0 0;width:100%;max-width:560px;max-height:75%;overflow:auto;padding:8px 12px calc(18px + var(--reader-safe-bottom));box-shadow:0 -10px 60px #0006;overscroll-behavior:contain;animation:sheet-in .22s cubic-bezier(.22,.78,.26,1)}.appearance-light .reader-sheet{color:#17191d;background:#f8f8f6fa;border-color:#c9c9c6}.appearance-light .reader-sheet button:not(.reader-top-action){color:#272c33;background:#f1f2f0;border-color:#c8cbd0}.appearance-light .reader-sheet header button{background:transparent;border-color:transparent}.appearance-light .reader-sheet header button:active{background:#e5e7e6}.sheet-handle{width:34px;height:4px;margin:1px auto 5px;border-radius:99px;background:#7c8490}.reader-sheet.expanded{height:90%;max-height:90%}.reader-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;min-height:44px;position:sticky;top:-8px;z-index:3;padding:4px 4px 5px;background:#1b1f26}.appearance-light .reader-sheet header{background:#f8f8f6}.reader-sheet button{border:1px solid #424b59;background:#2a313c;padding:10px 14px;border-radius:10px;margin:4px;color:inherit;min-height:44px}.reader-sheet header button{padding:6px;margin:0;border-radius:50%;background:transparent;border-color:transparent;display:grid;place-items:center}.reader-sheet header button:active{background:#343b46}.reader-sheet label{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;font-size:14px}.reader-sheet input[type=range]{width:55%;min-height:32px;accent-color:#b6c5de}.reader-sheet select{max-width:57%;background:#2a313c;border:1px solid #424b59;padding:10px;border-radius:8px;color:inherit}.reader-sheet p{font-size:12px;line-height:1.6;color:#b7bfcb}.reader-sheet fieldset{margin-top:15px;border:1px solid #424b59;border-radius:10px}.reader-sheet legend{font-size:14px}.appearance-light .reader-sheet p{color:#626a75}.appearance-light .reader-sheet fieldset{border-color:#9ca5b0;background:#ffffff61}.appearance-light .reader-sheet input[type=range]{accent-color:#3f72b5}.appearance-light .reader-sheet select{color:#24272e;background:#f3f3f1;border-color:#b8bec6}.reader-settings{display:grid;gap:10px}.settings-section{padding:7px;border:1px solid #343c48;border-radius:14px;background:#0f121785}.settings-section+.settings-section{border-top:1px solid #343c48;padding-top:7px}.settings-section h3{margin:1px 7px 4px;color:#aeb8c7;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.setting-row{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:center;gap:9px;padding:4px 0;font-size:13px}.setting-row>span{padding-left:7px;color:#d5dae2;font-weight:550}.setting-hint{grid-column:2;margin:-1px 4px 2px;color:#9fa9b7;font-size:10px;line-height:1.3}.appearance-light .setting-hint{color:#626974}.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px;padding:2px;border:1px solid #353d49;border-radius:10px;background:#11151b}.reader-sheet .segmented button{min-width:0;min-height:44px;margin:0;padding:6px 7px;border:0;border-radius:7px;background:transparent;color:#b8c0cc;font-size:12px;font-weight:550}.reader-sheet .segmented button.selected{color:#fff;background:linear-gradient(180deg,#495568,#394454);box-shadow:0 1px 3px #0006,inset 0 1px #ffffff18}.appearance-light .settings-section+.settings-section{border-color:#d4d3cf}.appearance-light .settings-section{background:#ffffff94;border-color:#d7d6d1}.appearance-light .settings-section h3{color:#666b73}.appearance-light .segmented{background:#e6e5e1;border-color:#d7d5d0}.appearance-light .reader-sheet .segmented button{color:#555a62}.appearance-light .reader-sheet .segmented button.selected{color:#181b20;background:#fff;background:linear-gradient(180deg,#fff,#f8f8f7);box-shadow:0 1px 3px #0002}.appearance-light .setting-row>span{color:#353941}.reader-sheet .switch-row,.reader-sheet .settings-action{width:100%;margin:0;padding:6px 7px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:0;background:transparent;text-align:left}.switch-row>span:first-child{display:grid;gap:3px}.switch-row small{color:#aeb6c1;font-size:12px;font-weight:400}.switch-row strong{font-size:13px}.appearance-light .switch-row small{color:#626974}.switch{width:44px;height:26px;flex:0 0 auto;padding:3px;border-radius:99px;background:#4a515c;transition:background .16s ease}.switch:after{content:"";display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0007;transition:transform .16s ease}.switch-row[aria-checked=true] .switch{background:#5684c9}.switch-row[aria-checked=true] .switch:after{transform:translate(18px)}.settings-action span{color:#9eabbc}.reader-sheet .settings-action{font-size:13px;font-weight:550}.settings-advanced{border:1px solid #343c48;border-radius:12px;padding:0 10px}.settings-advanced summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;font-weight:650}.appearance-light .settings-advanced{border-color:#d4d3cf}.settings-advanced>button{width:100%;margin:4px 0;text-align:left}.settings-advanced .danger-subtle{color:#f0b4b4}.book-crop-summary{display:grid;gap:7px;margin:10px 0 6px;padding:11px;border:1px solid #3d4653;border-radius:12px;background:#171c23}.book-crop-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.book-crop-summary small{color:#aeb9c8;font-size:11px;white-space:nowrap}.book-crop-summary p{margin:0}.settings-advanced .book-crop-summary button{width:100%;margin:0}.appearance-light .book-crop-summary{border-color:#c8cdd3;background:#f2f2ef}.appearance-light .book-crop-summary small{color:#59616c}.appearance-light .settings-advanced>button,.appearance-light .crop-actions button{color:#24272e;background:#f0f1f2;border-color:#b9c0c9;box-shadow:0 1px 2px #0000000d}.appearance-light .settings-advanced .danger-subtle{color:#a6323d;background:#fff0f1;border-color:#e5b7bc}.crop-editing{--reader-content-bottom: calc(var(--reader-safe-bottom) + 238px)}.crop-editing .reader-bottom{visibility:hidden;opacity:0;pointer-events:none}.crop-editor{position:absolute;z-index:21;right:calc(10px + var(--reader-safe-right));bottom:calc(8px + var(--reader-safe-bottom));left:calc(10px + var(--reader-safe-left));width:min(560px,calc(100% - 20px - var(--reader-safe-left) - var(--reader-safe-right)));margin:auto;padding:10px;color:#eef2f8;background:#1b1f26f5;border:1px solid #46505e;border-radius:18px;box-shadow:0 12px 44px #0009;animation:crop-editor-in .2s cubic-bezier(.22,.78,.26,1)}.crop-editor header{display:flex;align-items:center;justify-content:space-between;min-height:40px;gap:12px}.crop-editor header>div{display:grid;gap:1px}.crop-editor header strong{font-size:15px}.crop-editor header small,.crop-editor>p{color:#aab4c2;font-size:10px}.crop-editor button{min-height:40px;padding:7px 12px;color:inherit;background:#303946;border:1px solid #485565;border-radius:11px;font:inherit}.crop-editor header button{color:#d9e7ff;background:#38577e;border-color:#57769d;font-weight:650}.crop-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin-top:5px}.crop-editor label{min-width:0;min-height:48px;padding:5px 8px;display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:6px;color:#c7ced8;background:#151a21;border:1px solid #343e4a;border-radius:10px;font-size:11px;text-transform:capitalize}.crop-editor label b{color:#fff;font-variant-numeric:tabular-nums}.crop-editor input[type=range]{width:100%;min-width:0;min-height:32px;accent-color:#8fb8ed}.crop-editor-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:7px}.crop-editor>p{margin:7px 2px 0;text-align:center}.appearance-light .crop-editor{color:#1d2229;background:#fafaf7f7;border-color:#c1c5ca;box-shadow:0 12px 40px #3f465033}.appearance-light .crop-editor header small,.appearance-light .crop-editor>p{color:#626a75}.appearance-light .crop-editor button{color:#242a31;background:#eceeeb;border-color:#bdc3ca}.appearance-light .crop-editor header button{color:#fff;background:#356aa9;border-color:#2e5d96}.appearance-light .crop-editor label{color:#535b65;background:#f4f4f1;border-color:#d0d3d6}.appearance-light .crop-editor label b{color:#191d22}.appearance-light .crop-editor input[type=range]{accent-color:#3f72b5}@media(orientation:landscape)and (max-height:600px){.crop-editing{--reader-content-right: calc(var(--reader-safe-right) + 318px);--reader-content-bottom: calc(var(--reader-safe-bottom) + 68px)}.crop-editor{top:calc(8px + var(--reader-safe-top));right:calc(8px + var(--reader-safe-right));bottom:calc(8px + var(--reader-safe-bottom));left:auto;width:300px;margin:0;overflow-y:auto}.crop-editor-grid{grid-template-columns:1fr}}.document-info{padding:8px 4px 0}.bookmark-row{display:flex;justify-content:space-between}.thumbnails{display:flex;gap:10px;overflow-x:auto;margin-top:16px;padding-bottom:8px}.thumbnails.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));overflow:visible}.reader-sheet .thumbnail{flex:0 0 88px;padding:5px;margin:0;min-width:0}.appearance-light .reader-sheet .thumbnail{color:#30353c;background:#f6f6f3;border-color:#c9cbd0}.thumbnail canvas{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#111318}.appearance-light .thumbnail canvas{background:#e5e4df}.thumbnail span{display:block;font-size:12px;margin-top:5px}.visit-controls{position:absolute;bottom:calc(100px + var(--reader-safe-bottom));left:50%;transform:translate(-50%);display:flex;gap:8px;white-space:nowrap;z-index:11}.visit-controls button{background:#303d52;color:#fff;border:1px solid #67758a;border-radius:20px;padding:10px;font-size:12px;min-height:44px}.page-turn-overlay{position:absolute;z-index:2;pointer-events:none;perspective:1500px;perspective-origin:center;transform-style:preserve-3d}.page-turn-sheet,.page-turn-front,.page-turn-back{position:absolute;inset:0;transform-style:preserve-3d;backface-visibility:hidden}.page-turn-sheet{will-change:transform;box-shadow:-10px 8px 24px #00000047}.page-turn-overlay.forward .page-turn-sheet{transform-origin:left center;animation:book-turn-forward .46s cubic-bezier(.3,.04,.2,1) both}.page-turn-overlay.backward .page-turn-sheet{transform-origin:right center;animation:book-turn-backward .46s cubic-bezier(.3,.04,.2,1) both}.page-turn-front{overflow:hidden;background:#fff}.page-turn-front:after,.page-turn-back:after{content:"";position:absolute;inset:0;pointer-events:none}.page-turn-overlay.forward .page-turn-front:after{background:linear-gradient(90deg,rgba(13,18,26,.32),transparent 19%,transparent 72%,rgba(255,255,255,.18))}.page-turn-overlay.backward .page-turn-front:after{background:linear-gradient(270deg,rgba(13,18,26,.32),transparent 19%,transparent 72%,rgba(255,255,255,.18))}.page-turn-back{background:linear-gradient(100deg,#e1ddd3,#faf8f1 38%,#eeeae0);transform:rotateY(180deg)}.page-turn-back:after{background:linear-gradient(90deg,rgba(24,28,34,.2),transparent 30%,rgba(255,255,255,.28) 76%,rgba(41,45,51,.12))}.page-turn-copy{width:100%!important;height:100%!important;box-shadow:none;transform:none!important}@keyframes book-turn-forward{0%{transform:rotateY(0) translateZ(0)}48%{transform:rotateY(-88deg) translateZ(5px)}to{transform:rotateY(-179.5deg) translateZ(0)}}@keyframes book-turn-backward{0%{transform:rotateY(0) translateZ(0)}48%{transform:rotateY(88deg) translateZ(5px)}to{transform:rotateY(179.5deg) translateZ(0)}}@keyframes sheet-in{0%{opacity:.92;transform:translate3d(0,24px,0)}}@keyframes sheet-backdrop-in{0%{background:transparent}}@keyframes crop-editor-in{0%{opacity:0;transform:translate3d(0,12px,0) scale(.98)}}@keyframes zoom-next-in{0%{opacity:0;transform:translate(10px,-50%)}}@media(prefers-reduced-motion:reduce){.page-group,.reader-sheet,.sheet-backdrop,.crop-editor,.zoom-next-page{animation:none}html{scroll-behavior:auto}}.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));-webkit-text-size-adjust:none}.textLayer>:not(.markedContent),.textLayer .markedContent span:not(.markedContent){font-size:calc(var(--text-scale-factor) * var(--font-height));--rotate: 0deg;transform:rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv))}.textLayer span[role=img]{-webkit-user-select:none;user-select:none}@media(prefers-reduced-motion:reduce){.page-turn-sheet,.reader-top,.reader-bottom,.switch,.switch:after{animation:none;transition:none}}.auth-screen{position:fixed;top:var(--auth-viewport-top, 0px);right:0;left:0;width:100%;height:var(--auth-viewport-height, 100dvh);min-height:0;max-width:500px;padding-top:max(calc(18px + env(safe-area-inset-top)),8dvh);padding-bottom:max(calc(18px + env(safe-area-inset-bottom)),24px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:18px;display:flex;flex-direction:column;justify-content:center}.auth-screen h1{font-size:36px}.auth-card,.library-panel,.sync-panel{padding:20px;border:1px solid #343d48;border-radius:16px;background:#1a1e24;margin-bottom:20px}.auth-card h2,.library-panel h2{font-size:19px}.auth-card p,.library-panel p{font-size:13px;line-height:1.6;color:#aeb6c1}.auth-card label,.library-panel label{display:flex;flex-direction:column;gap:8px;margin:15px 0;font-size:13px}.auth-card input,.library-panel input,.edition-rename input{padding:12px;background:#11151b;border:1px solid #424b59;border-radius:9px;color:inherit;min-width:0}.auth-card input:not([type=checkbox]){min-height:48px;font-size:16px;line-height:1.25}.auth-card .check-label{flex-direction:row;align-items:center}.auth-card .cta{width:100%;justify-content:center;min-height:48px}.auth-screen.keyboard-open{justify-content:flex-start;padding-top:max(calc(10px + env(safe-area-inset-top)),10px);padding-bottom:10px}.auth-screen.keyboard-open .eyebrow,.auth-screen.keyboard-open .auth-intro,.auth-screen.keyboard-open .auth-owner-note{display:none}.auth-screen.keyboard-open h1{margin:0 0 8px;font-size:25px}.auth-screen.keyboard-open .auth-card{padding:14px;margin-bottom:0}.auth-screen.keyboard-open .auth-card h2{margin:0 0 5px}.auth-screen.keyboard-open .auth-card label{margin:9px 0}@media(max-height:600px){.auth-screen{justify-content:flex-start;padding-top:max(calc(10px + env(safe-area-inset-top)),10px);padding-bottom:10px}.auth-screen .eyebrow,.auth-screen .auth-intro,.auth-screen .auth-owner-note{display:none}.auth-screen h1{margin:0 0 8px;font-size:25px}.auth-screen .auth-card{padding:14px;margin-bottom:0}.auth-screen .auth-card h2{margin:0 0 5px}.auth-screen .auth-card label{margin:9px 0}}.library-panel button,.sync-panel button,.pagination button,.auth-card .notice button{padding:10px 14px;border:1px solid #465160;border-radius:9px;background:#2b3441;color:inherit}.library-panel .cta{color:#13161b;background:#d3d9e1}.publication-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:15px 0}.publication-filter select,.edition-picker select{padding:10px;background:#1c222c;border:1px solid #424b59;color:inherit;border-radius:9px;max-width:75%}.edition-picker{display:flex;flex-direction:column;gap:4px;font-size:11px;margin-top:8px}.edition-picker select{max-width:100%;width:100%;padding:6px}.publication-title{margin-top:7px;overflow-wrap:anywhere}.text-button{border:0;background:none;padding:7px 0;color:#c0ccdf;font-size:12px;text-align:left;display:block}.library-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:-3px 0 18px}.sort-control{display:flex;flex-direction:column;gap:6px;min-width:0;color:#9ca3ae;font-size:11px}.sort-control select,.batch-bar select,.issue-actions select{min-height:44px;min-width:0;padding:9px 34px 9px 11px;border:1px solid #424b59;border-radius:10px;background:#1c222c;color:#eef0f3}.secondary-button,.batch-bar button{min-height:44px;padding:9px 14px;border:1px solid #465160;border-radius:10px;background:#242b35;color:#e7eaf0}.section-header .text-button{padding:4px}.edition-rename{display:flex;flex-direction:column;gap:6px}.edition-rename input{width:100%;padding:7px}.edition-rename button{background:#2a3442;border:1px solid #424b59;border-radius:7px;padding:6px}.pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:25px 0;font-size:13px}.migration-panel{border-top:1px solid #424b59;margin-top:20px}.migration-row{display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #343d48;padding:12px 0;font-size:13px}.migration-row span{font-size:12px;color:#b5c1cf}.migration-panel .cta{margin-top:16px}.sync-panel{font-size:12px;background:#2d2d24}.sync-panel p{line-height:1.5}.sync-panel button{margin:4px}.notice.error{display:flex;align-items:center;justify-content:space-between;gap:10px}.notice.error button{background:transparent;color:inherit;border:0}.reader-sync-error{position:fixed;top:calc(65px + var(--reader-safe-top));left:12px;right:12px;background:#5b4033;padding:10px;border-radius:8px;font-size:12px;z-index:12;pointer-events:none}.library-tabs,.batch-bar{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.batch-bar{align-items:center;padding:12px;border:1px solid #343d48;border-radius:12px;background:#171b21}.batch-bar span{flex-basis:100%;color:#aeb6c1;font-size:12px}.library-tabs button{padding:10px 14px;border:1px solid var(--line, #ddd);border-radius:20px;background:transparent;color:inherit}.library-tabs button[aria-pressed=true]{background:#604ad6;color:#fff}.library-tabs[aria-label="Library sections"]{position:relative;display:flex;flex-wrap:nowrap;gap:20px;margin:12px 0 18px;padding:0 2px;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;touch-action:pan-x;user-select:none;-webkit-user-select:none;cursor:grab;scrollbar-width:none;border-bottom:1px solid #303741;-webkit-overflow-scrolling:touch}.library-tabs[aria-label="Library sections"]:active{cursor:grabbing}.library-tabs[aria-label="Library sections"]::-webkit-scrollbar{display:none}.library-tabs[aria-label="Library sections"] button{position:relative;flex:0 0 auto;min-height:38px;padding:6px 0 9px;border:0;border-radius:0;background:transparent;color:#9ca5b1;font-size:13px;font-weight:600;white-space:nowrap}.library-tabs[aria-label="Library sections"] button:after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;border-radius:2px 2px 0 0;background:transparent}.library-tabs[aria-label="Library sections"] button[aria-pressed=true]{color:#eef2f7;background:transparent}.library-tabs[aria-label="Library sections"] button[aria-pressed=true]:after{background:#79a9ed}html.appearance-light .library-tabs[aria-label="Library sections"]{border-bottom-color:#d4d1ca}html.appearance-light .library-tabs[aria-label="Library sections"] button{color:#747d88}html.appearance-light .library-tabs[aria-label="Library sections"] button[aria-pressed=true]{color:#253f61}html.appearance-light .library-tabs[aria-label="Library sections"] button[aria-pressed=true]:after{background:#356da8}.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px}.collection-card{display:flex;flex-direction:column;gap:10px;text-align:left;border:0;background:transparent;color:inherit}.collection-art{display:grid;grid-template-columns:repeat(2,1fr);width:160px;height:180px;overflow:hidden;background:#e8e5ee;border-radius:12px;gap:2px}.collection-art.count-1{grid-template-columns:1fr}.collection-art img{width:100%;height:100%;min-height:0;object-fit:cover}.collection-art-controls{margin-top:20px}.artwork-preview{display:block;max-width:240px;max-height:240px}.download-row,.attention-item{padding:16px 0;border-bottom:1px solid #bbb;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.download-row strong,.download-row span,.attention-item h3,.attention-item p{flex-basis:100%}.attention-item pre{max-height:240px;overflow:auto;max-width:75vw;font-size:11px}.attention-row{display:block;width:100%;text-align:left;padding:16px;margin:16px 0;border:1px solid #dcab68;border-radius:10px;background:#fff1d7;color:#5a3f17}.rearrange-list>div{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #aaa}.rearrange-list span{flex:1}.drag-handle{touch-action:none;cursor:grab;padding:12px}.crop-comparison{display:flex;gap:20px}.crop-comparison svg{display:block;width:110px;height:154px}fieldset{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}fieldset label{min-width:140px}.library-panel input,.library-panel select{max-width:100%}.collection-art img{object-fit:contain}.issue-actions{margin-top:10px;border:1px solid #303844;border-radius:11px;background:#161a20;overflow:hidden}.issue-actions>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 11px;color:#c6ced9;cursor:pointer;font-size:12px;list-style:none}.issue-actions>summary::-webkit-details-marker{display:none}.issue-actions>summary:after{content:"+";margin-left:auto;color:#8590a0;font-size:17px}.issue-actions[open]>summary:after{content:"−"}.issue-actions-panel{display:flex;flex-direction:column;gap:8px;padding:10px;border-top:1px solid #303844}.issue-actions-panel>button,.issue-actions-panel .smart-feature>button,.issue-context button,.edition-chooser button{width:100%;min-height:44px;padding:9px 11px;border:1px solid #414c5b;border-radius:9px;background:#252d38;color:#e8ebf0;text-align:left;overflow-wrap:anywhere}.issue-actions-panel .text-button{display:block;width:100%;min-height:40px;padding:8px 4px;border:0;background:transparent;color:#bdc9dc}.issue-actions-panel .library-panel{margin:0;padding:12px}.issue-actions-panel .library-panel button{width:100%}.issue-context{padding:10px 0;border-top:1px solid #303844;border-bottom:1px solid #303844;font-size:12px}.issue-context label{display:flex;flex-direction:column;gap:6px;margin-bottom:8px;color:#aeb6c1}.issue-context select{width:100%}.edition-chooser{display:flex;flex-direction:column;gap:8px;margin:10px 0;padding:12px;border:1px solid #465160;border-radius:11px;background:#1a2029;font-size:12px}.edition-chooser p{margin:0 0 4px;color:#b6bfcb;line-height:1.5}.issue-actions .edition-picker{margin:0}.issue-actions .tile-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:0}.issue-actions .tile-actions button{display:flex;align-items:center;gap:8px;width:100%;min-height:42px;padding:8px 4px;border:0;border-radius:8px;background:transparent;color:#bdc9dc;text-align:left}.publication-title{min-height:31px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media(max-width:420px){.app{padding-left:16px;padding-right:16px}.featured{gap:12px}.mini-cover{width:74px}.featured-content strong{font-size:14px}.library-toolbar{align-items:stretch}.sort-control,.secondary-button{flex:1}}@media(max-width:619px){.issue-actions[open]{position:fixed;z-index:30;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));max-height:min(82dvh,680px);margin:0;border-color:#4b5665;border-radius:16px;background:#171b21;box-shadow:0 12px 70px #000d;overflow:auto;overscroll-behavior:contain}.issue-actions[open]>summary{position:sticky;z-index:2;top:0;min-height:52px;padding:12px 14px;background:#202630;font-size:14px}.issue-actions[open] .issue-actions-panel{padding:12px 12px calc(12px + env(safe-area-inset-bottom))}}.account-settings-backdrop{position:fixed;z-index:45;inset:0;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:#0e1014fa;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:sheet-backdrop-in .18s ease-out}.account-settings{width:min(100%,480px);max-height:min(82dvh,720px);margin:0;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #0009;animation:sheet-in .2s cubic-bezier(.22,.78,.26,1)}.account-settings>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.account-settings>header h2,.account-settings>header p{margin:0}.account-settings>header p{margin-top:4px}.account-settings .account-settings-close{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;padding:0;border-radius:50%}.account-settings .account-sign-out{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;color:#ffdadd;background:#4b2930;border-color:#75424b}html.appearance-light .account-settings-backdrop{background:#f3f2eefa}html.appearance-light .account-settings .account-sign-out{color:#922f3a;background:#fff0f1;border-color:#e3b7bc}@media(max-width:520px){.account-settings-backdrop{place-items:end center;padding-top:max(40px,env(safe-area-inset-top));padding-right:max(8px,env(safe-area-inset-right));padding-bottom:max(8px,env(safe-area-inset-bottom));padding-left:max(8px,env(safe-area-inset-left))}.account-settings{width:100%;max-height:86dvh;border-radius:20px}}.search-highlight{position:absolute;z-index:4;border:2px solid #b86b00;background:#ffc43d52;pointer-events:none}.search-visit-controls{position:fixed;z-index:12;top:calc(62px + var(--reader-safe-top));left:50%;transform:translate(-50%);display:flex;gap:8px;align-items:center;padding:7px;border-radius:10px;background:#161618eb;color:#fff;width:min(calc(100% - 24px),560px);overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap;padding-left:max(7px,var(--reader-safe-left));padding-right:max(7px,var(--reader-safe-right))}.search-visit-controls button{min-height:44px}.performance-panel{position:fixed;z-index:40;right:max(8px,env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom));width:min(310px,calc(100% - 16px));max-height:45vh;overflow:auto;padding:10px;border:1px solid #586477;border-radius:10px;background:#0a0c10f0;font:11px/1.45 ui-monospace,monospace;pointer-events:none}.performance-panel strong,.performance-panel span{display:block}.performance-panel .slow{color:#ffbe73}@media(max-width:520px){.visit-controls{bottom:calc(92px + var(--reader-safe-bottom));max-width:calc(100% - 16px);white-space:normal}}.unified-results{margin:12px 0 24px;padding:16px;border:1px solid #c7c1b7;border-radius:12px}.unified-results h2{font-size:1rem;margin-top:18px}.result-chip{display:inline-block;margin:4px;padding:6px 9px;border-radius:999px;background:#ebe6dd}.library-kind-switch{display:flex;align-items:center;gap:3px;margin:0;padding:3px;border:1px solid #3a4350;border-radius:11px;background:#1b2028}.library-brand-row .library-kind-switch{width:178px;height:36px;flex:0 0 auto}@media(max-width:620px){.library-brand-row{align-items:flex-start;flex-direction:column;gap:9px}.library-brand-row .library-kind-switch{width:178px}}.library-kind-switch button{position:relative;flex:1 1 0;min-width:0;min-height:28px;height:28px;padding:3px 8px;border:0;border-radius:8px;background:transparent;color:#8d98a7;font-size:11px;font-weight:700;white-space:nowrap}.library-kind-switch button[aria-pressed=true]{color:#f3f6fa;background:#3e5f88;box-shadow:0 2px 7px #0005}html.appearance-light .library-kind-switch{border-color:#c8c9c6;background:#e4e3df}html.appearance-light .library-kind-switch button:not([aria-pressed=true]){color:#7b8490}html.appearance-light .library-kind-switch button[aria-pressed=true]{color:#fff;background:#354f70}.book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}.magazine-archive{display:grid;gap:22px}.magazine-publication>h3{margin:0 0 10px;font-size:20px}.magazine-publication details{margin-bottom:9px;border-top:1px solid #303741}.magazine-publication summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:650}.magazine-publication summary small{color:#9ea7b3;font-weight:400}.magazine-publication details>.cover-grid{margin:5px 0 22px}.book-card{--book-control-bg: #1c2128;--book-control-ink: #d3dbe7;--book-control-edge: #3b4450;--book-panel-bg: #171b21;--book-selected-bg: #2d4665;--book-selected-ink: #d9e8ff;--book-selected-edge: #6f91bd;min-width:0}html.appearance-light .book-card{--book-control-bg: #ffffff;--book-control-ink: #35404c;--book-control-edge: #c9cfd6;--book-panel-bg: #fafbfdf0;--book-selected-bg: #e5eefb;--book-selected-ink: #244d7b;--book-selected-edge: #9eb8d8}.book-card .cover-placeholder small{color:#d5dbe4;font-size:10px;line-height:1.35}.format-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.format-row button{min-height:30px;padding:4px 8px;border:1px solid var(--book-control-edge);border-radius:999px;background:var(--book-control-bg);color:var(--book-control-ink);font-size:9px}.format-row button.selected{color:var(--book-selected-ink);border-color:var(--book-selected-edge);background:var(--book-selected-bg)}.book-details{margin-top:8px;padding:10px;border:1px solid var(--book-control-edge);border-radius:12px;background:var(--book-panel-bg);color:var(--book-control-ink);font-size:11px;line-height:1.5}.book-details>p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5}.edition-list>div{display:flex;align-items:center;gap:5px;margin:5px 0}.edition-list small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-details button,.book-metadata-form button{min-height:36px;border:1px solid #3b4450;border-radius:9px;background:#272e38}.book-metadata-form{display:grid;gap:8px;margin-top:10px}.book-metadata-form label{display:grid;gap:4px}.book-metadata-form input,.book-metadata-form textarea{width:100%;min-height:40px;border:1px solid #3b4450;border-radius:9px;padding:8px;color:inherit;background:#101318}.book-metadata-form textarea{min-height:90px}@media(min-width:620px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:900px){.book-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}.epub-reader{--epub-safe-top: env(safe-area-inset-top, 0px);--epub-safe-right: env(safe-area-inset-right, 0px);--epub-safe-bottom: env(safe-area-inset-bottom, 0px);--epub-safe-left: env(safe-area-inset-left, 0px);--epub-footer-bottom: max(8px, calc(4px + var(--epub-safe-bottom)));position:fixed;inset:0;z-index:50;width:100vw;height:100dvh;overflow:hidden;color:#242424;background:#fbfaf7}.epub-theme-dark{color:#edf0f4;background:#15171b;color-scheme:dark}.epub-theme-sepia{color:#3a3024;background:#f3ead7;color-scheme:light}.epub-host,.epub-surface{display:block;width:100%;height:100%}.epub-surface::part(container){padding-top:var(--epub-safe-top);padding-right:var(--epub-safe-right);padding-bottom:var(--epub-safe-bottom);padding-left:var(--epub-safe-left)}.epub-top,.epub-toolbar{position:absolute;z-index:5;opacity:0;pointer-events:none;transition:opacity .16s ease,transform .18s ease;border:1px solid #59616c55;background:#f9f9f6e6;box-shadow:0 8px 30px #32363d33;-webkit-backdrop-filter:blur(18px) saturate(125%);backdrop-filter:blur(18px) saturate(125%)}.epub-top{top:calc(9px + var(--epub-safe-top));right:calc(12px + var(--epub-safe-right));left:calc(12px + var(--epub-safe-left));height:43px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-radius:999px;transform:translateY(-8px) scale(.98)}.epub-top span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:650}.epub-top small{flex:none;opacity:.72}.epub-toolbar{right:0;bottom:0;left:0;min-height:calc(62px + var(--epub-safe-bottom));padding:5px calc(8px + var(--epub-safe-right)) var(--epub-safe-bottom) calc(8px + var(--epub-safe-left));display:flex;justify-content:space-around;border-radius:18px 18px 0 0;transform:translateY(16px)}.epub-top.visible,.epub-toolbar.visible{opacity:1;pointer-events:auto;transform:none}.epub-toolbar button{flex:1;min-width:42px;min-height:50px;padding:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:12px;color:#29303a;background:transparent}.epub-toolbar button.active{color:#245d9c;background:#dce9f8}.epub-toolbar svg{width:19px;height:19px}.epub-toolbar small{font-size:8px}.epub-theme-dark :is(.epub-top,.epub-toolbar){color:#edf0f4;border-color:#59616c;background:#1b1f26e6;box-shadow:0 8px 30px #0008}.epub-theme-dark .epub-toolbar button{color:#edf0f4}.epub-theme-dark .epub-toolbar button.active{color:#bcd3ff;background:#31415a}.epub-theme-light :is(.epub-sheet,.epub-sheet header),.epub-theme-sepia :is(.epub-sheet,.epub-sheet header){color:#252a32;background:#fbfaf7}.epub-theme-light :is(.epub-settings select,.epub-search input),.epub-theme-sepia :is(.epub-settings select,.epub-search input){color:#252a32;background:#eeeee8}.epub-theme-light .epub-results span,.epub-theme-sepia .epub-results span{color:#5c6571}.epub-status{position:absolute;top:50%;left:50%;padding:10px 15px;border-radius:999px;color:#fff;background:#252a32dd;transform:translate(-50%,-50%)}.epub-visit{position:absolute;z-index:6;top:calc(62px + var(--epub-safe-top));left:max(12px,var(--epub-safe-left));display:flex;gap:6px}.epub-visit button{min-height:44px;border:1px solid #59616c66;border-radius:999px;padding:8px 12px;color:#252a32;background:#f9f9f6ed}.epub-theme-dark .epub-visit button{color:#edf0f4;background:#1b1f26ed}.epub-sheet-backdrop{position:absolute;inset:0;z-index:20;padding:var(--epub-safe-top) var(--epub-safe-right) var(--epub-safe-bottom) var(--epub-safe-left);display:flex;align-items:flex-end;justify-content:center;background:#0007}.epub-sheet{width:min(100%,580px);max-height:82%;overflow:auto;padding:8px 12px 18px;border:1px solid #424955;border-radius:21px 21px 0 0;color:#edf0f4;background:#1b1f26fa;box-shadow:0 -12px 60px #0008}.epub-sheet header{position:sticky;top:-8px;z-index:2;min-height:48px;display:flex;align-items:center;justify-content:space-between;background:#1b1f26}.epub-sheet header h2{margin:0;font-size:17px}.epub-sheet header button{width:42px;height:42px;border:0;border-radius:50%;background:transparent}.epub-toc{display:grid}.epub-toc button,.epub-results button{min-height:45px;border:0;border-bottom:1px solid #343b46;color:inherit;background:transparent;text-align:left}.epub-search{display:flex;gap:8px}.epub-search input{flex:1;min-width:0;min-height:44px;padding:8px 12px;border:1px solid #4a5360;border-radius:10px;color:inherit;background:#11151a}.epub-search button{min-height:44px;border:0;border-radius:10px;background:#d6e2f2;color:#17202b}.epub-results button{display:grid;width:100%;gap:3px;padding:10px 4px}.epub-results span{color:#abb4c1;font-size:11px}.epub-settings{display:grid;gap:6px}.epub-settings label{min-height:48px;display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:8px}.epub-settings :is(input,select){min-width:0}.epub-settings select{min-height:38px;padding:5px;border:1px solid #4a5360;border-radius:9px;color:inherit;background:#252c36}.epub-settings b{min-width:44px;font-size:11px;text-align:right}@media(orientation:landscape)and (max-height:600px){.epub-toolbar{inset:calc(50% + (52px + var(--reader-safe-top) - var(--reader-safe-bottom)) / 2) calc(8px + var(--reader-safe-right)) auto auto;max-height:calc(100% - 76px - var(--reader-safe-top) - var(--reader-safe-bottom));overflow-y:auto;scrollbar-width:none;width:58px;min-height:0;padding:6px;flex-direction:column;border-radius:19px;transform:translate(14px,-50%)}.epub-toolbar.visible{transform:translateY(-50%)}.epub-toolbar button{width:44px;min-height:42px}.epub-top{right:auto;width:min(48vw,420px)}}@media(prefers-reduced-motion:reduce){.epub-top,.epub-toolbar{transition:none}}.inside-result{width:100%;display:flex;flex-direction:column;gap:5px;margin:8px 0;padding:12px;text-align:left}.split-review{margin:10px 0;padding:12px;border:1px solid #aaa;border-radius:10px}.split-review article{margin:12px 0;padding-bottom:12px;border-bottom:1px solid #ccc}.split-preview{position:relative;max-width:520px;overflow:hidden;background:#ddd}.split-preview img{display:block;width:100%;height:auto}.split-preview i{position:absolute;top:0;bottom:0;width:3px;background:#e34b2f;box-shadow:0 0 0 1px #fff}html.appearance-light,html.appearance-light body,html.appearance-light #root{color:#20242a;background:#f3f2ee}html.appearance-light .app{color:#20242a}html.appearance-light .eyebrow,html.appearance-light .muted,html.appearance-light .subtle,html.appearance-light .prototype-note,html.appearance-light .sort-control{color:#686e77}html.appearance-light .icon-button,html.appearance-light .featured,html.appearance-light .search-panel,html.appearance-light .auth-card,html.appearance-light .library-panel,html.appearance-light .sync-panel,html.appearance-light .batch-bar{color:#20242a;background:#fff;border-color:#d5d2cc;box-shadow:0 4px 18px #4c49411a}html.appearance-light .icon-button.primary,html.appearance-light .cta,html.appearance-light .library-panel .cta{color:#fff;background:#356cae;border-color:#356cae}html.appearance-light .mini-cover,html.appearance-light .cover{background:#d9d8d3}html.appearance-light .progress{background:#d5d7da}html.appearance-light .progress span{background:#557cae}html.appearance-light .reading-row{border-color:#d8d5cf}html.appearance-light .reading-row small,html.appearance-light .tile-actions button,html.appearance-light .auth-card p,html.appearance-light .library-panel p,html.appearance-light .migration-row span,html.appearance-light .batch-bar span{color:#666e78}html.appearance-light .bottom-tabs{color:#272b31;background:#f9f8f5f0;border-color:#d4d1ca;box-shadow:0 -5px 18px #4b484018}html.appearance-light .welcome,html.appearance-light .empty{color:#656c75;border-color:#bbb8b1;background:#ffffff6b}html.appearance-light .welcome h2{color:#24282e}html.appearance-light .notice{color:#29404c;background:#dfecee}html.appearance-light .notice.error{color:#7d2833;background:#f7dfe2}html.appearance-light :is(.auth-card,.library-panel,.edition-rename) input,html.appearance-light :is(.publication-filter,.edition-picker) select,html.appearance-light :is(.sort-control,.batch-bar,.issue-actions) select{color:#252a30;background:#f8f8f5;border-color:#bfc3c8}html.appearance-light :is(.library-panel,.sync-panel,.pagination) button,html.appearance-light .secondary-button,html.appearance-light .batch-bar button,html.appearance-light .edition-rename button{color:#252a30;background:#f2f2ef;border-color:#bdc2c8}html.appearance-light .text-button{color:#315f98}html.appearance-light .migration-panel,html.appearance-light .migration-row,html.appearance-light .download-row,html.appearance-light .attention-item{border-color:#d1cec8}html.appearance-light .issue-actions{color:#252a30;background:#f8f8f5;border-color:#d0cdc7}html.appearance-light .issue-actions>summary{color:#3d444d}html.appearance-light .issue-actions-panel,html.appearance-light .issue-context{border-color:#d4d1cb}html.appearance-light .issue-actions-panel>button,html.appearance-light .issue-actions-panel .smart-feature>button,html.appearance-light .issue-context button,html.appearance-light .edition-chooser button{color:#262b32;background:#f0f1ef;border-color:#bec3c9}html.appearance-light .issue-actions-panel .text-button,html.appearance-light .issue-actions .tile-actions button{color:#315f98;background:transparent}html.appearance-light .issue-context label,html.appearance-light .edition-chooser p{color:#626a74}html.appearance-light .edition-chooser{color:#252a30;background:#fff;border-color:#c7c4be}@media(max-width:619px){html.appearance-light .issue-actions[open]{background:#faf9f6;border-color:#c5c2bc;box-shadow:0 12px 55px #45423b40}html.appearance-light .issue-actions[open]>summary{background:#efefeb}}.import-sources{max-width:960px;margin-inline:auto}.import-sources label{display:grid;gap:.4rem;margin-block:.8rem}.import-sources input,.import-sources select{width:100%;min-width:0;font-size:16px}.source-create,.source-credential{padding-block:1rem;border-bottom:1px solid var(--border, #78808c);margin-bottom:1rem}.source-credential pre{overflow-x:auto;padding:1rem;border:1px solid currentColor;border-radius:12px;font-size:.8rem}.source-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem}.source-actions p{flex-basis:100%}.source-items{padding:0;list-style:none}.source-items li{display:grid;gap:.65rem;padding-block:1rem;border-bottom:1px solid var(--border, #78808c)}.source-items strong{overflow-wrap:anywhere}.import-sources select{appearance:none;min-height:46px;padding:10px 36px 10px 12px;color:inherit;background-color:#11151b;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 19px) 50%,calc(100% - 14px) 50%;background-size:5px 5px;background-repeat:no-repeat;border:1px solid #424b59;border-radius:9px}html.appearance-light .import-sources select{color:#252a30;background-color:#f8f8f5;border-color:#bfc3c8}.source-review{padding:14px;border:1px solid #606a79;border-radius:12px;width:100%}.source-review label{display:grid;gap:6px;margin-block:12px}.source-review :is(input,select,textarea){min-width:0;width:100%;padding:10px;border-radius:9px;border:1px solid #606a79;color:inherit;background:#11151b;font:inherit;font-size:16px}.source-review textarea{min-height:90px;resize:vertical}.source-review small{display:block;margin-top:12px;line-height:1.5;opacity:.8}html.appearance-light .source-review :is(input,select,textarea){color:#252a30;background:#f8f8f5;border-color:#bfc3c8}.attention-book-list{list-style:none;padding:0;margin:22px 0}.attention-book-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px 0;border-bottom:1px solid #343d48}.library-panel .attention-book-open{flex:1;display:flex;align-items:center;gap:12px;min-width:0;padding:0;border:0;background:transparent;color:inherit;box-shadow:none;text-align:left;border-radius:10px}.attention-book-cover{flex:0 0 48px;width:48px;height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#f2eee7;background:linear-gradient(135deg,#5d756b,#2a4541);border-radius:4px 9px 9px 4px;box-shadow:inset 3px 0 #ffffff17,0 4px 10px #0002}.attention-book-cover.magazine{background:linear-gradient(135deg,#8a7064,#57443f)}.attention-book-cover small{font-size:8px;letter-spacing:.1em;font-weight:600}.attention-book-copy{display:flex;flex-direction:column;min-width:0;gap:5px}.attention-book-copy strong{font-size:14px;line-height:1.4;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.attention-book-copy>span{font-size:12px;color:#aeb6c1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attention-book-copy>small{display:flex;align-items:center;gap:4px;font-size:10px;color:#a9c9bb}.attention-book-chevron{flex-shrink:0;margin-left:auto;opacity:.5}.library-panel .attention-quick-import{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:9px 11px;border-radius:12px;color:#eaf2ed;background:#2d4941;border:1px solid #48665a;font-size:12px}.attention-book-error{width:100%}.attention-other{padding:16px 0;border-bottom:1px solid #424b59}.attention-other summary{cursor:pointer;font-weight:600;font-size:14px;padding:7px 0}.attention-item.attention-other{display:block}.attention-item.attention-other>:not(summary){margin-top:12px}.attention-dialog{position:fixed;inset:calc(var(--review-viewport-top, 0px) + 16px) 0 auto;margin:0 auto;padding:0;width:min(620px,calc(100% - 32px));max-height:calc(var(--review-viewport-height, 100dvh) - 32px);border:1px solid #414a56;border-radius:24px;color:#eef0f3;background:#1a1e24;box-shadow:0 24px 100px #0007;overflow:hidden}.attention-dialog::backdrop{background:#080d16a6;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.attention-dialog[open]{animation:attention-dialog-in .2s ease-out}.attention-dialog-frame{display:flex;flex-direction:column;max-height:calc(var(--review-viewport-height, 100dvh) - 32px)}.attention-dialog-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px 16px;border-bottom:1px solid #343d48}.attention-dialog-header small{font-size:9px;letter-spacing:.16em;color:#aeb6c1}.attention-dialog-header h2{margin:5px 0 0;font-size:21px;letter-spacing:-.03em}.attention-dialog-header button{width:44px;height:44px;display:grid;place-items:center;padding:0;color:inherit;background:#ffffff08;border:1px solid #ffffff0d;border-radius:50%}.attention-dialog-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:22px 24px max(22px,env(safe-area-inset-bottom));scroll-padding:20px}.attention-book-hero{display:flex;align-items:center;gap:18px;margin-bottom:24px}.attention-book-hero .attention-book-cover{flex-basis:66px;width:66px;height:88px}.attention-book-hero h3{margin:0 0 8px;font-size:20px;line-height:1.3;letter-spacing:-.025em;overflow-wrap:anywhere}.attention-book-hero p{margin:0;color:#aeb6c1;font-size:13px;line-height:1.5}.attention-dialog .source-review{padding:0;border:0}.attention-dialog .source-review>p:first-child{color:#add0bc;font-size:12px;margin-bottom:20px}.attention-dialog .source-review label{font-size:12px;font-weight:550;color:#bfc6d0;gap:7px;margin:18px 0}.attention-dialog .source-review :is(input,select,textarea){min-height:48px;color:#eef0f3;background:#11151b;border-color:#3d4653;padding:12px;font-size:16px;font-weight:400}.attention-dialog .source-review select{appearance:auto}.attention-dialog .source-review details{padding:13px 0;border-top:1px solid #343d48;font-size:12px;line-height:1.6;color:#aeb6c1}.attention-dialog .source-review summary{cursor:pointer;color:#d8dee7;font-size:13px}.attention-dialog .source-actions{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.attention-dialog .source-actions button{min-height:44px;padding:10px 12px;border:1px solid #424b59;background:#ffffff06;color:#c5cedb;border-radius:12px;font-size:12px}.attention-dialog .source-actions button:first-child{grid-column:1 / -1;min-height:50px;background:#b4d4c2;color:#172a22;border-color:#b4d4c2;font-size:15px;font-weight:650}.attention-dialog button:disabled{opacity:.45}.attention-dialog :is(button,input,textarea,select):focus-visible,.attention-book-row button:focus-visible{outline:2px solid #8fbea7;outline-offset:3px}html.appearance-light .attention-book-row{border-color:#e5e5df}html.appearance-light .library-panel .attention-book-open{background:transparent;color:inherit;border:0}html.appearance-light .attention-book-copy>span,html.appearance-light .attention-book-hero p{color:#757870}html.appearance-light .attention-book-copy>small{color:#4b7a61}html.appearance-light .library-panel .attention-quick-import{color:#264c38;background:#e4eee6;border-color:#c7dacb}html.appearance-light .attention-dialog{background:#fbfaf7;color:#242b26;border-color:#d9dcd4}html.appearance-light .attention-dialog-header{border-color:#e2e5dd}html.appearance-light .attention-dialog-header small{color:#727970}html.appearance-light .attention-dialog-header button{background:#edeee9;border-color:#e1e3dc}html.appearance-light .attention-dialog .source-review label{color:#626b61}html.appearance-light .attention-dialog .source-review :is(input,select,textarea){color:#252c25;background:#fff;border-color:#d5dad0}html.appearance-light .attention-dialog .source-review>p:first-child{color:#4a785e}html.appearance-light .attention-dialog .source-review details{color:#6b7468;border-color:#e0e4db}html.appearance-light .attention-dialog .source-review summary{color:#475644}html.appearance-light .attention-dialog .source-actions button{background:#f1f2ec;border-color:#d7ddcf;color:#53614d}html.appearance-light .attention-dialog .source-actions button:first-child{background:#2e5842;color:#fff;border-color:#2e5842}@media(max-width:600px)and (orientation:portrait){.attention-dialog{inset:auto 0 calc(100dvh - var(--review-viewport-top, 0px) - var(--review-viewport-height, 100dvh));width:100%;max-height:calc(var(--review-viewport-height, 100dvh) - 8px);border-radius:24px 24px 0 0;border-bottom:0}.attention-dialog-frame{max-height:calc(var(--review-viewport-height, 100dvh) - 8px)}.attention-dialog-header,.attention-dialog-scroll{padding-inline:max(20px,env(safe-area-inset-left))}.attention-book-chevron{display:none}}@keyframes attention-dialog-in{0%{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.attention-dialog[open]{animation:none}}.attention-dialog{max-width:none}.attention-dialog .source-review label{margin-block:12px}.review-assist-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}.review-assist-actions button{padding:8px 12px;min-height:40px;border-radius:999px;border:1px solid #536957;background:#314137;color:#c6dfce;font-size:12px}.attention-dialog .source-actions{grid-template-columns:1fr}.attention-dialog .source-actions button:nth-child(2){border:0;background:transparent;min-height:36px}html.appearance-light .review-assist-actions button{background:#e9eee5;color:#385d40;border-color:#c8d7c4}@media(max-width:600px)and (orientation:portrait){.attention-dialog,.attention-dialog-frame{max-height:calc(var(--review-viewport-height, 100dvh) - max(8px,env(safe-area-inset-top)))}}.cloud-library>.library-kind-switch{width:100%;max-width:700px;margin:0 0 18px;overflow-x:auto;scrollbar-width:none}.cloud-library>.library-kind-switch button{flex:1 0 auto;min-height:44px;padding:8px;font-size:12px}.reading-sync-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;padding:10px 14px;border-radius:12px;background:#ffffff08;color:#aeb8c5;font-size:13px;line-height:1.5}.reading-sync-status button{flex:0 0 auto;min-height:44px;padding:8px 12px;border:1px solid #526174;border-radius:9px;background:transparent;color:inherit;font:inherit;cursor:pointer}html.appearance-light .reading-sync-status{background:#182a3b08;color:#4d5d6e}.app-settings,.settings-source-page{width:100%;max-width:620px;margin-inline:auto}.cloud-library.is-settings>:is(.header,.library-kind-switch,.library-tabs){display:none}.app-settings-header{margin:0 0 18px}.app-settings-header h2{margin:8px 0 4px;font-size:24px}.app-settings-header p{margin:0;color:#9ca8b8;font-size:13px;overflow-wrap:anywhere}.settings-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer}.app-settings>.library-panel{padding:12px 14px;margin-bottom:12px;border-radius:14px;box-shadow:none}.app-settings .settings-appearance-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.app-settings .app-settings-section h3{margin:0;font-size:14px;font-weight:600}.app-appearance-options{display:flex;gap:4px;flex:0 1 190px;padding:3px;border-radius:10px;background:#ffffff08}.library-panel .app-appearance-options button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px 10px;background:transparent;border:1px solid transparent;border-radius:8px;color:inherit;font-size:13px}.app-appearance-options button svg{width:16px;height:16px}.library-panel .app-appearance-options button[aria-pressed=true]{border-color:#7194bd;background:#8fb8e61a}.app-settings .settings-links{padding-block:0}.app-settings .library-panel .settings-source-link{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;margin:0;padding:10px 0;text-align:left;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none}.app-settings .library-panel .settings-source-link+.settings-source-link{border-top:1px solid #343d48}.settings-source-link span{flex:1;min-width:0}.settings-source-link strong,.settings-source-link small{display:block}.settings-source-link strong{font-size:14px;font-weight:600}.settings-source-link small{margin-top:3px;color:#aeb8c5;font-size:12px;line-height:1.4}.settings-transfer>summary{min-height:44px;align-content:center;font-size:13px;cursor:pointer}.settings-transfer .migration-panel{margin-top:14px}.settings-sign-out{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:8px 14px;border:1px solid #75424b;border-radius:10px;background:#4b2930;color:#ffdadd;font-size:13px;cursor:pointer}.settings-source-page>.settings-back{margin-bottom:12px}html.appearance-light :is(.app-settings-header p,.settings-source-link small){color:#586778}html.appearance-light .app-appearance-options{background:#182a3b08}html.appearance-light .app-appearance-options button[aria-pressed=true]{border-color:#4779ae;background:#fff}html.appearance-light .app-settings .settings-source-link+.settings-source-link{border-color:#deded8}html.appearance-light .settings-sign-out{color:#922f3a;background:#fff0f1;border-color:#e3b7bc}@media(max-width:360px){.app-settings .settings-appearance-row{align-items:stretch;flex-direction:column;gap:8px}.app-appearance-options{flex-basis:auto}}.app-settings .settings-transfer-link{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;color:inherit;text-align:left;font-size:13px}.app-settings[data-settings-page]:not([data-settings-page=main])>.library-panel{padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}.engine.is-landscape .reader-top{right:auto;width:fit-content;max-width:min(420px,55vw,calc(100% - max(10px,var(--reader-safe-left)) - max(10px,var(--reader-safe-right)) - 60px));gap:8px;padding-inline:8px 14px}.engine.is-landscape .reader-title{flex:0 1 auto;font-size:11px}.engine .reader-landscape-bookmark{position:absolute;z-index:3;top:calc(9px + var(--reader-safe-top));right:max(10px,var(--reader-safe-right));width:44px;height:44px;border:1px solid rgba(127,141,160,.52);background:#1c212ae0;color:#f1f4f8;box-shadow:0 7px 24px #0007;opacity:0;pointer-events:none;transform:translateY(-8px);transition:transform .18s ease-out,opacity .16s ease-out}.engine .reader-landscape-bookmark.visible{opacity:1;pointer-events:auto;transform:translateY(0)}.appearance-light.engine .reader-landscape-bookmark{color:#252a30;background:#fafaf7eb;border-color:#62697259;box-shadow:0 7px 24px #4b515c2e}.appearance-light.engine .reader-landscape-bookmark.active{color:#245b9f}@media(prefers-reduced-motion:reduce){.engine .reader-landscape-bookmark{transition:none}}.manual-upload-dialog{color:var(--text, #edf0f5);background:var(--panel, #1c2129);border:1px solid var(--border, #3a4351);border-radius:24px;width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;box-shadow:0 24px 90px #0005;overflow:auto}.manual-upload-dialog::backdrop{background:#0008;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.manual-upload-dialog header{display:flex;align-items:flex-start;gap:12px;padding:24px 24px 12px}.manual-upload-dialog h2{margin:0;font-size:22px}.manual-upload-dialog header p{margin:8px 0;font-size:14px;opacity:.7}.manual-upload-dialog header .icon-button{flex-shrink:0;margin-left:auto}.manual-upload-body{padding:8px 24px}.manual-file-picker{position:relative;display:flex;align-items:center;flex-direction:column;gap:10px;padding:26px 16px;border:1px dashed currentColor;border-radius:16px;cursor:pointer}.manual-file-picker span{font-size:13px;opacity:.7}.manual-file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.manual-file-picker:focus-within{outline:2px solid #7ba8ff;outline-offset:3px}.manual-upload-files{list-style:none;margin:12px 0;padding:0}.manual-upload-files li{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #8883}.manual-upload-files li>div{flex:1;min-width:0}.manual-upload-files strong{display:block;overflow-wrap:anywhere;font-size:14px}.manual-upload-files small{display:block;margin-top:5px;opacity:.7}.manual-upload-files progress{width:100%;height:5px}.manual-upload-hint{font-size:13px;line-height:1.5;opacity:.7}.manual-upload-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:16px 24px 24px}.appearance-light .manual-upload-dialog{color:#202631;background:#fafbfc;border-color:#dce0e6}.manual-upload-dialog footer button{min-height:44px;border:1px solid #8884;border-radius:12px;padding:10px 16px;background:#8881;color:inherit;font-size:14px;font-weight:600}.manual-upload-dialog footer button.primary{background:#80aaff;color:#101d36;border-color:transparent}.manual-upload-dialog button:disabled{opacity:.55;cursor:wait}.manual-upload-dialog footer button:hover:not(:disabled){filter:brightness(1.08)}.appearance-light .manual-upload-dialog footer button.primary{background:#245bc8;color:#fff}.attention-bell{position:relative;flex-shrink:0}.attention-bell.has-attention{color:#b7d1ff}.attention-badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 4px;border-radius:10px;background:#8bb0ff;color:#111f3d;border:2px solid #0e1014;font-size:10px;font-weight:750;line-height:1}.attention-inbox-dialog{width:min(640px,calc(100% - 24px));top:max(16px,calc(env(safe-area-inset-top) + 12px))}.attention-inbox-dialog,.attention-inbox-dialog .attention-dialog-frame{max-height:calc(100dvh - max(16px,calc(env(safe-area-inset-top) + 12px)) - max(16px,calc(env(safe-area-inset-bottom) + 12px)))}.attention-inbox-dialog h2{display:flex;align-items:center;gap:10px}.attention-inbox-dialog .attention-dialog-scroll{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;min-width:0}.attention-inbox-content,.attention-inbox-content .attention-book-list{min-width:0;max-width:100%}.attention-inbox-content .attention-book-row{display:grid;grid-template-columns:minmax(0,1fr) auto;min-width:0;overflow-wrap:anywhere}.attention-inbox-content .attention-book-copy{flex:1}.attention-inbox-content .attention-book-copy>small{flex-wrap:wrap}.attention-inbox-content .attention-book-error{grid-column:1 / -1}.attention-inbox-dialog .library-panel.attention-inbox-content{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit}.attention-inbox-content>p:first-child{margin-top:0;font-size:14px;color:#aeb6c1}.attention-inbox-content .attention-empty{padding:28px 8px;text-align:center;color:#aeb6c1;font-size:14px}html.appearance-light .attention-bell.has-attention{color:#245bc8}html.appearance-light .attention-badge{border-color:#f5f4ef;background:#245bc8;color:#fff}html.appearance-light .attention-inbox-content>p:first-child,html.appearance-light .attention-inbox-content .attention-empty{color:#646b73}@media(max-width:420px){.cloud-library>.header{gap:8px}.cloud-library>.header>div:first-child{min-width:0}.cloud-library>.header .eyebrow{display:none}.cloud-library>.header h1{font-size:26px}.cloud-library>.header .header-actions{gap:6px;flex-shrink:0}}@media(max-width:360px){.cloud-library>.header{gap:6px}.cloud-library>.header h1{font-size:22px}.cloud-library>.header .header-actions{gap:2px}}.epub-page-navigation{position:absolute;z-index:6;right:calc(16px + var(--epub-safe-right));bottom:calc(12px + var(--epub-safe-bottom));display:flex;align-items:center;gap:2px;height:30px;padding:0 6px;border:1px solid #59616c44;border-radius:20px;background:#faf9f4e8;color:#202225;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 4px 22px #0002;transition:bottom .16s ease}.epub-page-navigation.with-toolbar{bottom:calc(78px + var(--epub-safe-bottom))}.epub-page-navigation button{display:grid;place-items:center;position:relative;width:24px;height:28px;padding:3px;border:0;border-radius:50%;background:transparent;color:inherit}.epub-page-navigation button:before{content:"";position:absolute;inset:-8px -10px}.epub-page-navigation button svg{width:16px;height:16px}.epub-page-navigation button:disabled{opacity:.3}.epub-page-navigation span{min-width:40px;line-height:14px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}.epub-theme-dark .epub-page-navigation{color:#e9edf3;background:#1b2028e8;border-color:#59616c88}.epub-theme-sepia .epub-page-navigation{background:#f3ead7e8;color:#3a3024}@media(orientation:landscape)and (max-height:600px){.epub-page-navigation{right:calc(84px + var(--epub-safe-right))}}@media(prefers-reduced-motion:reduce){.epub-page-navigation{transition:none}}:is(.epub-content-summary,.reading-content-summary){display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid #8884;border-radius:14px}:is(.epub-content-summary,.reading-content-summary) strong{font-size:14px}:is(.epub-content-summary,.reading-content-summary) span,:is(.epub-content-summary,.reading-content-summary) small{font-size:12px;opacity:.75}.epub-settings :is(input,select):disabled{opacity:.4;cursor:default}.epub-top{display:flex;align-items:center;gap:8px;padding:4px 6px;min-height:54px}.epub-top>span{flex:1;min-width:0;font-size:13px}.epub-top>span small{display:block;margin-top:3px;font-size:10px;font-weight:400}.epub-top-action{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:inherit}.epub-top-action svg{width:19px;height:19px}.epub-top-action.active{color:#3472be;background:#7aabff22}.epub-theme-dark .epub-top-action.active{color:#bcd3ff}.epub-toolbar{left:auto;right:calc(16px + var(--epub-safe-right));bottom:max(24px,calc(12px + var(--epub-safe-bottom)));width:max-content;max-width:calc(100% - 24px);min-height:0;padding:4px;gap:3px;border-radius:20px;justify-content:center;transform:translateY(6px) scale(.96)}.epub-toolbar.visible{transform:translateY(0) scale(1)}.epub-toolbar button{flex:0 0 54px;width:54px;min-width:44px;min-height:46px;padding:5px 6px;gap:2px}.epub-toolbar small{font-size:9px}.epub-toolbar button[aria-expanded=true]{background:#7ba6ed22}.epub-page-navigation.with-toolbar{bottom:calc(var(--epub-footer-bottom) + 68px)}.epub-modal{position:fixed;inset:auto 0 max(12px,env(safe-area-inset-bottom));margin:0 auto;width:min(540px,calc(100% - 24px));max-height:min(82dvh,calc(var(--epub-sheet-height, 100dvh) - 32px));padding:0;border-radius:24px;overflow:hidden}.epub-modal[open]{display:flex;flex-direction:column}.epub-modal::backdrop{background:#080d1688;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.epub-modal header{flex-shrink:0;position:static;padding:12px 16px;min-height:62px;border-bottom:1px solid #8883}.epub-modal header button{flex-shrink:0;width:44px;height:44px;color:inherit}.epub-sheet-body{padding:16px;min-height:0;overflow-y:auto;overscroll-behavior:contain}:is(.epub-settings-compact,.pdf-settings){gap:14px}:is(.epub-settings-compact,.pdf-settings) :is(.epub-content-summary,.reading-content-summary){display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 12px;padding:10px 12px;border:0;border-radius:12px;background:#8881}:is(.epub-settings-compact,.pdf-settings) :is(.epub-content-summary,.reading-content-summary) strong{font-size:12px}:is(.epub-settings-compact,.pdf-settings) :is(.epub-content-summary,.reading-content-summary) span{font-size:11px}:is(.epub-setting-group,.reading-setting-group){display:grid;gap:7px}:is(.epub-setting-caption,.reading-setting-caption){font-size:11px;font-weight:600;opacity:.7}:is(.epub-segments,.reading-segments){display:flex;gap:3px;padding:3px;background:#8881;border:1px solid #8882;border-radius:13px}:is(.epub-segments,.reading-segments) button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:12px}:is(.epub-segments,.reading-segments) button:is([aria-pressed=true],[aria-checked=true]){background:#fff;color:#20242a;box-shadow:0 2px 6px #0002}.epub-theme-dark :is(.epub-segments,.reading-segments) button:is([aria-pressed=true],[aria-checked=true]){background:#3b4657;color:#eff4ff}:is(.epub-theme-dot,.reading-theme-dot){width:13px;height:13px;border:1px solid #8886;border-radius:50%;background:#faf9f5}:is(.epub-theme-dot,.reading-theme-dot).sepia{background:#e8d9b7}:is(.epub-theme-dot,.reading-theme-dot).dark{background:#252a34}.epub-text-size{display:flex;align-items:center;gap:12px}.epub-text-size>button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;border:1px solid #8883;background:#8881;color:inherit}:is(.epub-settings-compact,.pdf-settings) .epub-text-size label{flex:1;min-width:0;min-height:44px;display:grid;grid-template-columns:1fr auto;gap:6px;font-size:12px}.epub-text-size label input{width:100%;grid-column:1 / -1}:is(.epub-settings-compact,.pdf-settings)>label{min-height:42px;grid-template-columns:80px 1fr;font-size:12px}:is(.epub-settings-compact,.pdf-settings) select{width:100%;font-size:16px;padding:7px 10px}:is(.epub-advanced,.reading-advanced){border-top:1px solid #8883}:is(.epub-advanced,.reading-advanced) summary{padding:14px 0 2px;font-size:12px;cursor:pointer}:is(.epub-advanced,.reading-advanced)>div{display:grid;gap:6px;padding-top:8px}:is(.epub-advanced,.reading-advanced) label{font-size:12px}:is(.epub-advanced,.reading-advanced) small{font-size:11px;opacity:.7;line-height:1.5}.epub-pages{display:grid;gap:16px}.epub-pages p{margin:0;font-size:13px;opacity:.75;line-height:1.5}.epub-pages form{display:flex;align-items:center;gap:12px;font-size:12px}.epub-pages form label{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.epub-pages form input[type=number]{width:80px;min-height:44px;padding:8px;border-radius:10px;border:1px solid #8885;background:#8881;color:inherit;font-size:16px}.epub-pages form input[type=range]{flex:1 0 100%;width:100%}.epub-pages form button,.epub-pages nav button,.epub-contents-link{min-height:44px;padding:8px 14px;border:1px solid #8883;border-radius:12px;background:#8881;color:inherit;font-size:12px}.epub-page-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.epub-page-grid button{min-height:60px;border:1px solid #8883;border-radius:10px;color:inherit;background:#8881;font-size:13px}.epub-page-grid button[aria-current=page]{background:#7ba6ed33;border-color:#6f9dec}.epub-pages nav{display:flex;justify-content:space-between;align-items:center;font-size:12px}.epub-contents-link{display:flex;align-items:center;justify-content:space-between}@media(orientation:landscape)and (max-height:600px){.epub-toolbar{inset:calc(50% + (52px + var(--epub-safe-top) - var(--epub-safe-bottom)) / 2) calc(8px + var(--epub-safe-right)) auto auto;max-height:calc(100% - 76px - var(--epub-safe-top) - var(--epub-safe-bottom));overflow-y:auto;scrollbar-width:none;width:58px;padding:7px 5px;flex-direction:column;translate:0 -50%;transform:translate(4px) scale(.96)}.epub-toolbar.visible{transform:translate(0) scale(1)}.epub-toolbar button{flex:0 0 auto;width:46px;min-width:46px;min-height:45px;padding:4px 2px}.epub-top{right:auto;width:min(52vw,420px)}.epub-top .epub-bookmark{position:fixed;top:calc(9px + var(--epub-safe-top));right:calc(12px + var(--epub-safe-right));background:inherit;border:1px solid #8884;box-shadow:0 4px 16px #0002}.epub-page-navigation.with-toolbar{bottom:calc(12px + var(--epub-safe-bottom))}.epub-modal{max-height:calc(var(--epub-sheet-height, 100dvh) - 24px)}}@media(prefers-reduced-motion:reduce){.epub-toolbar{transition:none}}.epub-modal{top:calc(var(--epub-sheet-top, 0px) + var(--epub-sheet-height, 100dvh) - max(12px,env(safe-area-inset-bottom)));bottom:auto;transform:translateY(-100%);max-height:min(82dvh,calc(var(--epub-sheet-height, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px))}.epub-landscape-bookmark{position:absolute;z-index:6;top:calc(9px + var(--epub-safe-top));right:calc(12px + var(--epub-safe-right));opacity:0;pointer-events:none;transform:translateY(-12px);transition:opacity .16s ease,transform .16s ease;border:1px solid #8884;background:#faf9f5e8;box-shadow:0 4px 16px #0002;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.epub-landscape-bookmark.visible{opacity:1;pointer-events:auto;transform:none}.epub-theme-dark .epub-landscape-bookmark{background:#1b1f26e8}.epub-theme-sepia .epub-landscape-bookmark{background:#f3ead7e8}@media(orientation:landscape)and (max-height:600px){.epub-top{width:max-content;max-width:min(52vw,420px)}}@media(prefers-reduced-motion:reduce){.epub-landscape-bookmark{transition:none}}.epub-cropping .epub-top,.epub-cropping .epub-toolbar,.epub-cropping .epub-page-navigation,.epub-cropping .epub-landscape-bookmark,.epub-cropping .epub-visit,.epub-cropping .epub-host{visibility:hidden}.epub-crop-workspace{position:absolute;inset:0;z-index:10;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:inherit;color:inherit;padding-top:env(safe-area-inset-top,0px)}.epub-crop-workspace button{min-height:44px;color:inherit;background:transparent;border:0;padding:8px 12px;font:inherit;cursor:pointer}.epub-crop-workspace button:focus-visible{outline:2px solid #527cff;outline-offset:-2px}.epub-crop-workspace button:disabled{opacity:.35;cursor:default}.epub-crop-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left))}.epub-crop-header>div{display:grid;gap:1px;text-align:center}.epub-crop-header strong{font-size:16px}.epub-crop-header small{opacity:.65;font-size:11px}.epub-crop-header .epub-crop-save{color:#315fce;font-weight:650}.epub-theme-dark .epub-crop-save{color:#a6bdff}.epub-crop-preview{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;overflow:hidden;background:#7f7f7f14;margin:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}.epub-crop-stage{position:relative;flex:none;background:#fff;box-shadow:0 2px 16px #0003;-webkit-user-select:none;user-select:none}.epub-crop-artwork{position:absolute;inset:0;overflow:hidden;pointer-events:none}.epub-crop-artwork iframe{display:block;max-width:none;position:absolute;inset:0 auto auto 0;transform-origin:top left;border:0;pointer-events:none}.epub-crop-shade{position:absolute;background:#080c1494;pointer-events:none}.epub-crop-boundary{position:absolute;border:1.5px solid #527cff;pointer-events:none}.epub-crop-workspace .epub-crop-handle{position:absolute;padding:0;width:44px;height:44px;display:grid;place-items:center;pointer-events:auto;touch-action:none;z-index:2}.epub-crop-handle.top{top:0;left:50%;transform:translate(-50%,-50%);cursor:ns-resize}.epub-crop-handle.bottom{bottom:0;left:50%;transform:translate(-50%,50%);cursor:ns-resize}.epub-crop-handle.left{left:0;top:50%;transform:translate(-50%,-50%);cursor:ew-resize}.epub-crop-handle.right{right:0;top:50%;transform:translate(50%,-50%);cursor:ew-resize}.epub-crop-handle i{width:28px;height:7px;background:#fff;border:2px solid #527cff;border-radius:6px;box-shadow:0 1px 5px #0005}.epub-crop-handle.left i,.epub-crop-handle.right i{width:7px;height:28px}.epub-crop-handle.selected i{background:#527cff;border-color:#fff}.epub-crop-editor{padding:4px max(16px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-top:1px solid rgb(127 127 127 / 18%);min-width:0}.epub-crop-options{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.epub-crop-options span{opacity:.65}.epub-crop-options button{font-size:12px;padding-inline:4px}.epub-crop-edges{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.epub-crop-edges button{display:grid;gap:2px;font-size:12px;border-radius:10px}.epub-crop-edges small{font-variant-numeric:tabular-nums;opacity:.65;font-size:11px}.epub-crop-edges button[aria-pressed=true]{color:#315fce;background:#527cff1f}.epub-theme-dark .epub-crop-edges button[aria-pressed=true]{color:#b3c6ff}.epub-crop-adjust{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:end;gap:8px;padding:8px 0}.epub-crop-adjust>button{display:grid;place-items:center}.epub-crop-adjust label{display:block;font-size:12px}.epub-crop-adjust output{float:right;font-variant-numeric:tabular-nums}.epub-crop-adjust input{display:block;width:100%;margin:0;height:36px;accent-color:#527cff}.epub-crop-editor :is(.epub-segments,.reading-segments){margin:0}.epub-crop-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.epub-crop-footer small{font-size:10px;opacity:.65}.epub-crop-footer button{display:flex;align-items:center;gap:4px;font-size:12px;padding-inline:4px;flex:none}:is(.epub-crop-open,.reading-crop-open){display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;min-height:48px}:is(.epub-crop-open,.reading-crop-open) span{font-size:12px;opacity:.7}@media(orientation:landscape)and (max-height:600px){.epub-crop-workspace{grid-template-columns:minmax(0,1fr) min(300px,42vw);grid-template-rows:auto minmax(0,1fr)}.epub-crop-header{grid-column:1 / -1}.epub-crop-preview{grid-row:2}.epub-crop-editor{grid-column:2;grid-row:2;border-top:0;border-left:1px solid rgb(127 127 127 / 18%);display:flex;flex-direction:column;justify-content:center;overflow-y:auto}.epub-crop-options{flex-wrap:wrap;gap:0}.epub-crop-header small{display:none}}.epub-uncrop{position:absolute;z-index:6;left:calc(12px + var(--epub-safe-left));bottom:calc(max(24px,calc(12px + var(--epub-safe-bottom))) + 6px);width:44px;height:44px;display:grid;place-items:center;padding:10px;border:1px solid #59616c44;border-radius:16px;color:#202225;background:#faf9f4e8;box-shadow:0 4px 22px #0002;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:0;pointer-events:none;transform:translateY(14px);transition:opacity .16s ease,transform .16s ease}.epub-uncrop.visible{opacity:1;pointer-events:auto;transform:none}.epub-uncrop svg{width:20px;height:20px}.epub-uncrop[aria-pressed=true]{color:#315fce;border-color:#527cff}.epub-theme-dark .epub-uncrop{color:#e9edf3;background:#1b2028e8;border-color:#59616c88}.epub-theme-dark .epub-uncrop[aria-pressed=true]{color:#b3c6ff;border-color:#8faaff}.epub-theme-sepia .epub-uncrop{color:#3a3024;background:#f3ead7e8}.epub-cropping .epub-uncrop{visibility:hidden}@media(orientation:landscape)and (max-height:600px){.epub-uncrop{bottom:calc(12px + var(--epub-safe-bottom))}}@media(prefers-reduced-motion:reduce){.epub-uncrop{transition:none}}.reader-corner-controls{--corner-safe-top: var(--reader-safe-top);--corner-safe-right: var(--reader-safe-right);--corner-safe-left: var(--reader-safe-left)}.epub-corner-controls{--corner-safe-top: var(--epub-safe-top);--corner-safe-right: var(--epub-safe-right);--corner-safe-left: var(--epub-safe-left)}.engine .reader-top.reader-corner-controls,.epub-top.epub-corner-controls{top:calc(9px + var(--corner-safe-top));left:calc(12px + var(--corner-safe-left));right:calc(12px + var(--corner-safe-right));width:auto;max-width:none;height:44px;padding:0;gap:0;display:flex;justify-content:space-between;align-items:center;background:transparent;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none}.reader-corner-controls .reader-top-action,.epub-corner-controls .epub-top-action{flex:0 0 44px;width:44px;height:44px;padding:0;pointer-events:auto;border-radius:50%;border:1px solid #7f8da085;background:#1c212ae0;box-shadow:0 4px 16px #0002;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.appearance-light .reader-corner-controls .reader-top-action,.epub-corner-controls .epub-top-action{background:#fafaf7eb;border-color:#62697259}.epub-theme-dark .epub-corner-controls .epub-top-action{background:#1c212ae0;border-color:#7f8da085}.epub-theme-sepia .epub-corner-controls .epub-top-action{background:#f3ead7eb}.appearance-light .reader-corner-controls .reader-top-action.active{color:#245b9f}.reader-book-context{margin:0 0 16px;font-size:13px;font-weight:500;opacity:.7;overflow-wrap:anywhere}:root,.reader.appearance-dark,.epub-theme-dark{--glass-rgb: 26 33 45;--glass-ink: #edf2fa;--glass-edge: rgb(220 233 255 / 30%);--glass-glint: rgb(255 255 255 / 17%);--glass-shadow: rgb(0 8 22 / 28%);--glass-selection: rgb(153 186 255 / 20%);--glass-accent: #b8d0ff}html.appearance-light,.reader.appearance-light,.epub-theme-light{--glass-rgb: 246 249 253;--glass-ink: #252a30;--glass-edge: rgb(255 255 255 / 85%);--glass-glint: rgb(255 255 255 / 75%);--glass-shadow: rgb(28 42 67 / 15%);--glass-selection: rgb(255 255 255 / 70%);--glass-accent: #2856a0}.epub-theme-sepia{--glass-rgb: 246 237 218;--glass-ink: #3a3024;--glass-edge: rgb(255 250 230 / 82%);--glass-glint: rgb(255 253 238 / 65%);--glass-shadow: rgb(65 45 20 / 17%);--glass-selection: rgb(255 252 239 / 72%);--glass-accent: #6d4c22}:root{--glass-alpha: 1;--glass-panel-alpha: 1}@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){:root{--glass-alpha: .68;--glass-panel-alpha: .9}}:is(.reader.engine,.epub-reader) :is(.reader-bottom,.epub-toolbar,.page-indicator,.epub-page-navigation,.epub-uncrop,.reader-top-action,.epub-top-action,.zoom-next-page,.reader-sheet,.epub-sheet,.crop-editor,.epub-crop-editor),.cloud-library .header-actions .icon-button,.cloud-library .library-kind-switch,.cloud-library .library-tabs[aria-label="Library sections"]{color:var(--glass-ink);background-color:rgb(var(--glass-rgb) / var(--glass-alpha));background-image:linear-gradient(145deg,var(--glass-glint),transparent 46%,rgb(255 255 255 / 5%));border-color:var(--glass-edge);box-shadow:inset 0 1px #ffffff4d,inset 0 -1px #0008181a,0 0 0 1px #1e2d4112,0 8px 28px -8px var(--glass-shadow);-webkit-backdrop-filter:blur(24px) saturate(165%);backdrop-filter:blur(24px) saturate(165%)}:is(.reader.engine,.epub-reader) :is(.reader-sheet,.epub-sheet,.crop-editor,.epub-crop-editor){background-color:rgb(var(--glass-rgb) / var(--glass-panel-alpha))}:is(.reader.engine,.epub-reader) :is(.reader-sheet,.epub-sheet)>header{background:rgb(var(--glass-rgb) / var(--glass-panel-alpha));-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom-color:#7f91a82e}:is(.reader.engine,.epub-reader) :is(.reader-bottom,.epub-toolbar) button{color:var(--glass-ink);transition:background-color .16s ease,box-shadow .16s ease,transform .12s ease}:is(.reader.engine,.epub-reader) :is(.reader-bottom,.epub-toolbar) button[aria-expanded=true],:is(.reader.engine,.epub-reader) :is(.reader-top-action,.epub-top-action,.epub-uncrop)[aria-pressed=true],.epub-reader .epub-crop-edges button[aria-pressed=true],.cloud-library .library-kind-switch button[aria-pressed=true]{color:var(--glass-accent);background-color:var(--glass-selection);box-shadow:inset 0 1px #ffffff47,0 2px 7px #0008181a}:is(.reader.engine,.epub-reader) :is(.reader-bottom,.epub-toolbar) button:active{background-color:var(--glass-selection);transform:scale(.96)}.epub-reader :is(.epub-crop-open,.reading-crop-open){color:var(--glass-ink);background:rgb(var(--glass-rgb) / .55);border:1px solid var(--glass-edge);border-radius:14px;padding:10px 12px;box-shadow:inset 0 1px 0 var(--glass-glint)}.epub-reader .epub-crop-editor{border-radius:24px 24px 0 0}.cloud-library .library-tabs[aria-label="Library sections"]{padding:4px 8px;gap:6px;border:1px solid var(--glass-edge);border-radius:19px}.cloud-library .library-tabs[aria-label="Library sections"] button{min-height:44px;padding:8px 14px;border-radius:13px;color:var(--glass-ink)}.cloud-library .library-tabs[aria-label="Library sections"] button[aria-pressed=true]{color:var(--glass-accent);background:var(--glass-selection);box-shadow:inset 0 1px 0 var(--glass-glint),0 2px 8px #0008181a}.cloud-library .library-tabs[aria-label="Library sections"] button:after{display:none}@media(orientation:landscape)and (max-height:600px){.cloud-library:not(.is-settings) .header{min-height:48px;margin-bottom:18px}.cloud-library:not(.is-settings) .library-nav-shell{position:absolute;z-index:12;top:calc(20px + var(--xl-safe-top));right:calc(70px + var(--xl-safe-right));left:auto;width:max-content;min-height:48px;margin:0;translate:none}.cloud-library:not(.is-settings) .library-navigation{width:max-content;max-width:calc(100vw - 360px - var(--xl-safe-left) - var(--xl-safe-right));min-height:48px}.cloud-library:not(.is-settings) .library-navigation .library-sections button{min-height:40px;padding:7px 10px}.cloud-library:not(.is-settings) .bottom-category-bar{top:calc(50% + (var(--xl-safe-top) - var(--xl-safe-bottom)) / 2 - 171px);right:max(0px,calc(var(--xl-safe-right) - 24px));bottom:auto;left:auto;width:58px;padding:4px;flex-direction:column;translate:none}.cloud-library:not(.is-settings) .bottom-category-bar>button{flex:0 0 44px;width:48px;min-height:44px;padding:4px 2px;gap:3px;font-size:8px}.cloud-library:not(.is-settings)>.header .header-actions{position:fixed;z-index:16;top:calc(50% + (var(--xl-safe-top) - var(--xl-safe-bottom)) / 2 - 13px);right:max(0px,calc(var(--xl-safe-right) - 24px));width:58px;padding:4px;flex-direction:column;gap:4px;border:1px solid var(--glass-edge);border-radius:22px;color:var(--glass-ink);background:rgb(var(--glass-rgb) / var(--glass-alpha));box-shadow:inset 0 1px 0 var(--glass-glint),0 6px 24px -8px var(--glass-shadow);backdrop-filter:blur(24px) saturate(165%);-webkit-backdrop-filter:blur(24px) saturate(165%)}.cloud-library:not(.is-settings)>.header .header-actions .icon-button{width:48px;min-width:48px;height:40px;min-height:40px;padding:9px;border:0;border-radius:13px;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}}@media(orientation:landscape)and (max-height:600px){.epub-reader .epub-crop-editor{border-radius:24px 0 0 24px}}@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){:root{--glass-alpha: 1;--glass-panel-alpha: 1}:is(.reader.engine,.epub-reader) :is(.reader-bottom,.epub-toolbar,.page-indicator,.epub-page-navigation,.epub-uncrop,.reader-top-action,.epub-top-action,.zoom-next-page,.reader-sheet,.epub-sheet,.crop-editor,.epub-crop-editor),:is(.reader.engine,.epub-reader) :is(.reader-sheet,.epub-sheet)>header,.cloud-library .header-actions .icon-button,.cloud-library .library-kind-switch,.cloud-library .library-tabs[aria-label="Library sections"]{background-image:none;border-color:currentColor;-webkit-backdrop-filter:none;backdrop-filter:none}}@media(prefers-reduced-motion:reduce){:is(.reader.engine,.epub-reader) :is(.reader-bottom,.epub-toolbar) button{transition:none}}.cloud-library .header-actions .icon-button.primary{color:var(--glass-accent)}.epub-reader.is-landscape:not(.epub-cropping) .epub-host{position:absolute;left:calc(8px + var(--epub-safe-left));right:calc(76px + var(--epub-safe-right));top:calc(var(--epub-safe-top) + var(--epub-chrome-top, 8px));bottom:calc(8px + var(--epub-safe-bottom));width:auto;height:auto}.epub-reader.is-landscape .epub-surface::part(container){padding:0}:is(.epub-setting-group,.reading-setting-group)>small{font-size:11px;opacity:.7;line-height:1.4}:is(.epub-segments,.reading-segments) button:disabled{opacity:.65;cursor:default}.epub-reader.is-landscape .epub-page-navigation{opacity:0;pointer-events:none;transition:opacity .16s ease}.epub-reader.is-landscape .epub-page-navigation.with-toolbar{opacity:1;pointer-events:auto}.cloud-library>.library-shelves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:700px;margin:2px 0 4px;padding:0;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.cloud-library>.library-shelves button{display:flex;align-items:center;justify-content:center;gap:10px;height:auto;min-height:64px;padding:10px 12px;border:1px solid var(--glass-edge);border-radius:20px;color:var(--glass-ink);background:rgb(var(--glass-rgb) / .38);font-size:14px;font-weight:650;letter-spacing:-.2px;box-shadow:inset 0 1px 0 var(--glass-glint);transition:background-color .18s ease,border-color .18s ease,transform .18s ease}.cloud-library>.library-shelves button[aria-pressed=true]{color:var(--glass-accent);border-color:var(--glass-accent);background:linear-gradient(135deg,var(--glass-selection),transparent),rgb(var(--glass-rgb) / .8);box-shadow:inset 0 1px 0 var(--glass-glint),0 6px 18px -12px var(--glass-accent)}.library-shelf-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:11px;background:#7f91a81a}.library-shelves button[aria-pressed=true] .library-shelf-icon{background:var(--glass-selection)}.cloud-library .library-sections[aria-label="Library sections"]{gap:22px;margin:8px 0 22px;padding:0 2px;border:0;border-bottom:1px solid var(--glass-edge);border-radius:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.cloud-library .library-sections[aria-label="Library sections"] button{display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:10px 2px 13px;border-radius:0;color:var(--glass-ink);background:none;box-shadow:none;opacity:.6;transition:opacity .18s ease,color .18s ease}.cloud-library .library-sections[aria-label="Library sections"] button[aria-pressed=true]{color:var(--glass-accent);background:none;box-shadow:none;opacity:1}.cloud-library .library-sections[aria-label="Library sections"] button:after{display:block;bottom:0;height:3px;border-radius:3px 3px 0 0;background:transparent}.cloud-library .library-sections[aria-label="Library sections"] button[aria-pressed=true]:after{background:var(--glass-accent)}html.appearance-light .cloud-library>.library-shelves{background:none}html.appearance-light .cloud-library>.library-shelves button{color:#59616d;border-color:#dcdfe3;background:#fff;box-shadow:0 2px 5px #1f2c3f08}html.appearance-light .cloud-library>.library-shelves button[aria-pressed=true]{color:#244d7b;border-color:#a9bfd8;background:linear-gradient(145deg,#f1f7ff,#e5eef9);box-shadow:inset 0 1px #fff,0 3px 9px #29486c14}html.appearance-light .library-shelves .library-shelf-icon{background:#f1f3f5}html.appearance-light .library-shelves button[aria-pressed=true] .library-shelf-icon{background:#d5e4f6}@media(hover:hover){.cloud-library>.library-shelves button:hover{transform:translateY(-2px)}.cloud-library .library-sections[aria-label="Library sections"] button:hover{opacity:1}}.cloud-library :is(.library-shelves,.library-sections) button:focus-visible{outline:2px solid var(--glass-accent);outline-offset:3px}@media(max-width:420px){.cloud-library>.library-shelves{gap:8px}.cloud-library>.library-shelves button{gap:6px;padding:9px 6px;min-height:58px;font-size:12px;border-radius:17px}.library-shelf-icon{width:28px;height:30px;border-radius:9px}}@media(max-width:360px){.cloud-library>.library-shelves button{flex-direction:column;gap:4px;min-height:76px}}@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.cloud-library>.library-shelves button{background:rgb(var(--glass-rgb));border-color:currentColor}.cloud-library .library-sections[aria-label="Library sections"] button{opacity:1}}@media(prefers-reduced-motion:reduce){.cloud-library :is(.library-shelves,.library-sections) button{transition:none;transform:none}}.epub-theme-sepia .document-opening{--opening-ink: #3a3024;--opening-muted: #796b58;--opening-surface: #faf2e2;--opening-line: #d9cbb4;background:radial-gradient(ellipse at 50% 38%,#fff6,transparent 65%),#f3ead7}.epub-theme-dark .document-opening{--opening-ink: #eff1f5;--opening-muted: #a0a9b7;--opening-surface: #1d2530;--opening-line: #354150;background:radial-gradient(ellipse at 50% 38%,#27324555,transparent 65%),#111318}.epub-reader.epub-settings-open{--epub-settings-height: min(52dvh, 430px)}.epub-reader.epub-settings-open:not(.epub-cropping) .epub-host{position:absolute;inset:var(--epub-safe-top) 0 auto;width:100%;height:calc(100% - var(--epub-settings-height) - var(--epub-safe-top))}.epub-settings-open :is(.epub-top,.epub-toolbar,.epub-page-navigation,.epub-uncrop){visibility:hidden}.epub-reader .epub-settings-sheet{inset:auto 0 0;transform:none;width:100%;max-width:none;height:var(--epub-settings-height);max-height:var(--epub-settings-height);border-radius:24px 24px 0 0;padding-bottom:var(--epub-safe-bottom)}.epub-settings-sheet::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}:is(.epub-settings-preview-hint,.reading-settings-preview-hint){margin:0;font-size:12px;opacity:.7;line-height:1.5}.epub-reader :is(.epub-reset-settings,.reading-reset-settings){display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin-top:10px;padding:12px;text-align:left;border:1px solid var(--glass-edge);border-radius:12px;color:var(--glass-ink);background:var(--glass-selection)}:is(.epub-reset-settings,.reading-reset-settings) small{display:block;margin-top:4px;font-size:11px;opacity:.7;line-height:1.4}@media(orientation:landscape){.epub-reader.epub-settings-open{--epub-settings-width: min(42vw, 360px)}.epub-reader.epub-settings-open:not(.epub-cropping) .epub-host{inset:var(--epub-safe-top) auto var(--epub-safe-bottom) var(--epub-safe-left);width:calc(100% - var(--epub-settings-width) - var(--epub-safe-left));height:auto}.epub-reader .epub-settings-sheet{inset:0 0 0 auto;margin:0;width:var(--epub-settings-width);height:100dvh;max-height:100dvh;border-radius:24px 0 0 24px;padding-top:var(--epub-safe-top);padding-right:var(--epub-safe-right)}}.epub-reader.epub-reflowable:not(.is-landscape):not(.epub-settings-open):not(.epub-cropping) .epub-host{position:absolute;top:calc(var(--epub-safe-top) + var(--epub-chrome-top, 12px));bottom:calc(var(--epub-safe-bottom) + 12px);left:var(--epub-safe-left);right:var(--epub-safe-right);width:auto;height:auto;overflow:hidden}.epub-reader.epub-reflowable.is-landscape:not(.epub-settings-open):not(.epub-cropping) .epub-host{top:var(--epub-safe-top);bottom:calc(var(--epub-safe-bottom) + 12px)}.epub-reader.epub-reflowable .epub-surface::part(container){padding:0}.epub-reader.epub-stable-layout:not(.is-landscape):not(.epub-settings-open):not(.epub-cropping) .epub-host{position:absolute;bottom:calc(var(--epub-footer-bottom) + 68px);height:auto}.epub-reader.epub-fixed.epub-stable-layout:not(.is-landscape):not(.epub-settings-open):not(.epub-cropping) .epub-host{top:calc(var(--epub-safe-top) + var(--epub-chrome-top, 0px));bottom:calc(var(--epub-footer-bottom) + 68px)}.epub-reader.epub-fixed.epub-stable-layout:not(.is-landscape) .epub-surface::part(container){padding-bottom:0}.epub-footer{display:contents}.epub-page-navigation .epub-page-label{width:auto;min-width:32px;padding:0 2px;font-size:11px;white-space:nowrap}@media(orientation:portrait),(min-height:601px){.epub-footer{position:absolute;z-index:6;left:calc(12px + var(--epub-safe-left));right:calc(12px + var(--epub-safe-right));bottom:var(--epub-footer-bottom);display:flex;align-items:center;gap:8px;pointer-events:none}.epub-footer .epub-toolbar{position:relative;inset:auto;width:auto;max-width:none;flex:0 0 auto;gap:0;margin-left:auto;padding:4px}.epub-footer .epub-toolbar button{flex:0 0 44px;width:44px;min-width:44px}.epub-footer .epub-page-navigation{position:relative;inset:auto;flex:0 0 auto;pointer-events:auto;transition:none}.epub-footer .epub-uncrop{position:relative;inset:auto;flex:0 0 44px}}@media(max-width:360px)and (orientation:portrait){.epub-footer{left:8px;right:8px;gap:4px}.epub-footer .epub-page-navigation{padding:0 4px}.epub-footer .epub-page-navigation>button:not(.epub-page-label){display:none}}.epub-reader .reader-error{top:calc(70px + var(--epub-safe-top));color:#fff}.epub-reader.epub-stable-layout{--epub-chrome-top: 64px}.epub-reader.epub-fixed.epub-stable-layout .epub-surface::part(container){padding-top:0}@media(orientation:portrait),(min-height:601px){.epub-reader .epub-footer{min-height:56px;padding:4px;gap:4px;border:1px solid var(--glass-edge);border-radius:22px;color:var(--glass-ink);background:rgb(var(--glass-rgb) / var(--glass-alpha));box-shadow:inset 0 1px 0 var(--glass-glint),0 6px 24px -8px var(--glass-shadow);backdrop-filter:blur(24px) saturate(165%);-webkit-backdrop-filter:blur(24px) saturate(165%);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .16s ease,transform .16s ease,visibility .16s}.epub-reader.epub-controls-visible .epub-footer{opacity:1;visibility:visible;transform:none}.epub-reader .epub-footer :is(.epub-toolbar,.epub-page-navigation,.epub-uncrop){color:inherit;background:transparent;background-image:none;box-shadow:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;transform:none}.epub-reader .epub-footer .epub-toolbar{padding:0;opacity:1;border-radius:0}.epub-reader .epub-footer .epub-page-navigation{height:44px;padding:0 5px;gap:0;border-right:1px solid var(--glass-edge);border-radius:0}.epub-reader .epub-footer .epub-uncrop{height:44px;border-radius:12px}.epub-reader .epub-footer .epub-page-label{font-size:11px;font-weight:650;font-variant-numeric:tabular-nums}.epub-reader .epub-footer button[aria-pressed=true]{background:var(--glass-selection);color:var(--glass-accent)}}@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.epub-reader .epub-footer{background:rgb(var(--glass-rgb));border-color:currentColor;backdrop-filter:none;-webkit-backdrop-filter:none}}@media(prefers-reduced-motion:reduce){.epub-reader .epub-footer{transition:none}}.book-card .book-details :is(button,input,select,textarea){color:var(--book-control-ink);background:var(--book-control-bg);border:1px solid var(--book-control-edge);border-radius:8px}.book-card .book-details :is(input,textarea)::placeholder{color:var(--book-control-ink);opacity:.65}.pdf-settings{display:grid;gap:14px;padding:4px 4px 12px}.pdf-settings :is(.reading-segments button,.reading-crop-open){margin:0}.reader.engine .pdf-settings .reading-segments button{min-height:44px;padding:7px;border:0;background:transparent;color:inherit;font-size:12px}.reader.engine .pdf-settings .reading-segments button[aria-checked=true]{background:#3b4657;color:#eff4ff;box-shadow:0 2px 6px #0002}.reader.engine.appearance-light .pdf-settings .reading-segments button[aria-checked=true]{background:#fff;color:#20242a}.pdf-settings .reading-segments button:disabled{opacity:.65}.pdf-settings .reading-advanced{padding:0;border:0;border-top:1px solid #8883}.pdf-settings .reading-advanced>div{gap:12px}.pdf-settings .reading-advanced>div>button{width:100%;margin:0;font-size:12px;text-align:left}.pdf-settings .switch-row{padding:10px 12px}.pdf-settings .switch-row strong{font-size:12px}.pdf-settings .settings-action span{margin-left:auto}.reader.engine .reading-crop-open{color:var(--glass-ink);background:rgb(var(--glass-rgb) / .55);border:1px solid var(--glass-edge);border-radius:14px;padding:10px 12px;box-shadow:inset 0 1px 0 var(--glass-glint)}.reader.engine .reading-reset-settings{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px;border:1px solid var(--glass-edge);border-radius:12px;color:var(--glass-ink);background:var(--glass-selection)}.reading-reset-settings>svg{flex-shrink:0}.pdf-settings-open{--pdf-settings-height: min(52%, 430px);--pdf-settings-width: min(42%, 360px)}.pdf-settings-open :is(.reader-top,.reader-bottom,.page-indicator){visibility:hidden}.pdf-settings-backdrop{padding:0;background:transparent;animation:none}.reader.engine .pdf-settings-sheet{width:100%;max-width:none;height:var(--pdf-settings-height);max-height:var(--pdf-settings-height);border-radius:24px 24px 0 0}.reader.engine.is-landscape .pdf-settings-backdrop{justify-content:flex-end;align-items:stretch}.reader.engine.is-landscape .pdf-settings-sheet{width:var(--pdf-settings-width);height:100%;max-height:100%;border-radius:24px 0 0 24px;padding-top:max(8px,var(--reader-safe-top));padding-right:max(12px,var(--reader-safe-right))}.reader.engine.pdf-settings-open{--reader-content-bottom: var(--pdf-settings-height);--reader-content-right: var(--reader-safe-right)}.reader.engine.pdf-settings-open.is-landscape{--reader-content-bottom: var(--reader-safe-bottom);--reader-content-right: var(--pdf-settings-width)}.reader.engine.is-landscape .pdf-settings-sheet .sheet-handle,.reader.engine.is-landscape .reader-top.reader-corner-controls,.epub-reader.is-landscape .epub-top.epub-corner-controls{display:none}.reader.engine.is-landscape .reader-bottom{top:calc(50% + (var(--reader-safe-top) - var(--reader-safe-bottom)) / 2);right:calc(8px + var(--reader-safe-right));bottom:auto;left:auto;width:58px;max-height:calc(100% - var(--reader-safe-top) - var(--reader-safe-bottom) - 16px);padding:4px;gap:2px;flex-direction:column;translate:0 -50%;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.reader.engine.is-landscape .reader-bottom .reader-top-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.reader.engine.is-landscape .reader-bottom button{width:48px;min-width:44px;min-height:44px;margin:0;padding:4px 2px;border-radius:13px}.reader.engine.is-landscape .reader-bottom svg{width:18px;height:18px}.reader.engine.is-landscape .reader-bottom small{font-size:8px}.reader.engine.is-landscape .rail-back{border-top:1px solid var(--glass-edge)}.reader.engine.is-landscape .page-indicator{display:none}.epub-reader.is-landscape .epub-footer{position:absolute;z-index:6;inset:calc(50% + (var(--epub-safe-top) - var(--epub-safe-bottom)) / 2) calc(8px + var(--epub-safe-right)) auto auto;width:58px;max-height:calc(100% - var(--epub-safe-top) - var(--epub-safe-bottom) - 16px);display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px;border:1px solid var(--glass-edge);border-radius:22px;color:var(--glass-ink);background:rgb(var(--glass-rgb) / var(--glass-alpha));box-shadow:inset 0 1px 0 var(--glass-glint),0 6px 24px -8px var(--glass-shadow);backdrop-filter:blur(24px) saturate(165%);-webkit-backdrop-filter:blur(24px) saturate(165%);opacity:0;visibility:hidden;pointer-events:none;translate:0 -50%;transform:translate(8px);transition:opacity .16s ease,visibility .16s,transform .16s ease}.epub-reader.is-landscape.epub-controls-visible .epub-footer{opacity:1;visibility:visible;pointer-events:auto;transform:none}.epub-reader.is-landscape .epub-footer :is(.rail-action,.epub-uncrop){position:static;inset:auto;flex:0 0 44px;width:48px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 2px;margin:0;border:0;border-radius:13px;color:inherit;background:transparent;background-image:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transform:none;opacity:1;pointer-events:auto}.epub-reader.is-landscape .epub-footer .rail-bookmark{order:0}.epub-reader.is-landscape .epub-footer .epub-uncrop{order:1}.epub-reader.is-landscape .epub-footer .epub-toolbar{order:2;position:static;inset:auto;translate:none;transform:none;display:flex;flex-direction:column;flex:0 1 auto;min-height:0;width:48px;max-height:none;padding:0;gap:2px;margin:0;overflow-y:auto;border:0;border-radius:0;background:transparent;background-image:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.epub-reader.is-landscape .epub-footer .epub-toolbar button{flex:0 0 44px;width:48px;min-width:44px;min-height:44px;padding:4px 2px;margin:0;border-radius:13px}.epub-reader.is-landscape .epub-footer svg{width:18px;height:18px}.epub-reader.is-landscape .epub-footer small{font-size:8px}.epub-reader.is-landscape .epub-footer .epub-page-navigation{order:3;position:static;inset:auto;translate:none;transform:none;flex:0 0 24px;height:24px;width:48px;padding:0;margin:0;gap:0;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;opacity:1;pointer-events:auto}.epub-reader.is-landscape .epub-footer .epub-page-navigation>button:not(.epub-page-label){display:none}.epub-reader.is-landscape .epub-footer .epub-page-label{width:48px;min-width:0;min-height:24px;padding:0;font-size:9px;overflow:hidden;text-overflow:ellipsis}.epub-reader.is-landscape .epub-footer .rail-back{order:4;border-top:1px solid var(--glass-edge);border-radius:0 0 13px 13px}.epub-reader.is-landscape .epub-footer button[aria-pressed=true],.reader.engine.is-landscape .reader-bottom button[aria-pressed=true]{color:var(--glass-accent);background:var(--glass-selection)}@media(prefers-reduced-motion:reduce){.epub-reader.is-landscape .epub-footer{transition:none}}@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.epub-reader.is-landscape .epub-footer{background:rgb(var(--glass-rgb));backdrop-filter:none;-webkit-backdrop-filter:none}}.book-byline{display:flex;align-items:center;gap:5px;min-width:0}.book-author{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-format-badges{display:inline-flex;flex:0 0 auto;gap:3px}.book-format-badge{padding:2px 4px;border:1px solid var(--book-control-edge);border-radius:4px;background:var(--book-control-bg);color:var(--book-control-ink);font-size:8px;font-weight:650;line-height:1.2;letter-spacing:.03em}.book-card .book-details-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;padding:4px 0;border:0;background:transparent;color:var(--book-control-ink);font-size:11px}.book-details-modal{width:min(560px,calc(100vw - 24px));max-height:min(85dvh,800px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--book-control-edge);border-radius:24px;color:var(--book-control-ink);background:var(--book-panel-bg);box-shadow:0 20px 80px #0005}.book-details-modal::backdrop{background:#0007;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.book-details-frame>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 18px 12px;position:sticky;top:0;z-index:1;background:var(--book-panel-bg);border-bottom:1px solid var(--book-control-edge)}.book-details-frame>header small{font-size:9px;letter-spacing:.1em;opacity:.65}.book-details-frame h2{margin:5px 0 0;font-size:18px;line-height:1.3;overflow-wrap:anywhere}.book-details-frame>header button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid var(--book-control-edge);border-radius:50%;color:inherit;background:var(--book-control-bg)}.book-details-modal .book-details{padding:16px 18px;margin:0;border:0;border-radius:0;background:transparent;font-size:13px}.book-details-modal .book-details>p{display:block;-webkit-line-clamp:unset}.book-details-modal .edition-list>div{flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--book-control-edge)}.book-details-modal .edition-list small{flex:1 0 100%;white-space:normal;overflow-wrap:anywhere}.book-details-modal .book-details button{min-height:44px}.book-details-modal .edition-list button[aria-pressed=true]{color:var(--book-selected-ink);background:var(--book-selected-bg);border-color:var(--book-selected-edge)}.book-details-modal :is(input,select,textarea){font-size:16px}@media(max-width:600px){.book-details-modal{max-height:calc(100dvh - env(safe-area-inset-top) - 12px);margin:auto auto 0;width:100%;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}}.epub-reader.is-landscape .epub-footer .epub-toolbar{max-width:none;align-items:center}:root{--surface-raised: rgb(255 255 255 / 5%);--surface-inset: rgb(0 0 0 / 16%);--surface-edge: rgb(210 221 239 / 13%);--surface-divider: rgb(210 221 239 / 10%);--surface-muted: #a9b3c2;--surface-accent: #a7c5ff;--surface-accent-wash: rgb(101 143 218 / 17%);--surface-danger: #ffb4b8;--surface-danger-wash: rgb(180 67 77 / 17%)}html.appearance-light{--surface-raised: #fff;--surface-inset: #f2f4f7;--surface-edge: #d9dee6;--surface-divider: #e6e9ee;--surface-muted: #667184;--surface-accent: #175bc5;--surface-accent-wash: #e8f0ff;--surface-danger: #a82d3b;--surface-danger-wash: #fff0f1}.cloud-library :is(.library-panel,.sync-panel,.issue-actions,.edition-chooser){border-color:var(--surface-edge);border-radius:8px;background:var(--surface-raised);box-shadow:none}.cloud-library :is(.library-panel,.sync-panel){padding:18px}.cloud-library :is(.library-panel,.sync-panel) h2,.cloud-library :is(.library-panel,.sync-panel) h3{margin-top:0;color:var(--xl-ink);font-size:15px;font-weight:650}.cloud-library :is(.library-panel,.sync-panel) p,.cloud-library .migration-row span,.cloud-library .settings-source-link small{color:var(--surface-muted)}.cloud-library :is(input:not([type=checkbox]):not([type=range]):not([type=radio]),select,textarea){min-height:44px;padding:10px 12px;border:1px solid var(--surface-edge);border-radius:8px;color:var(--xl-ink);background-color:var(--surface-inset);accent-color:var(--surface-accent);font-size:16px;line-height:1.35}.cloud-library select{appearance:none;padding-right:38px;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-repeat:no-repeat;background-size:5px 5px}.cloud-library select{color-scheme:dark}html.appearance-light .cloud-library select{color-scheme:light}.cloud-library :is(.library-panel,.sync-panel) button,.cloud-library .issue-actions-panel>button,.cloud-library .issue-actions-panel .smart-feature>button,.cloud-library .issue-context button,.cloud-library .edition-chooser button,.cloud-library .edition-rename button,.cloud-library .secondary-button,.cloud-library .batch-bar button{min-height:44px;padding:9px 13px;border:1px solid var(--surface-edge);border-radius:8px;color:var(--xl-ink);background:var(--surface-inset);box-shadow:none;font-size:13px;font-weight:550}.cloud-library :is(.library-panel,.sync-panel) button:active,.cloud-library .issue-actions-panel>button:active,.cloud-library .secondary-button:active{background:var(--surface-accent-wash)}.cloud-library :is(.library-panel,.sync-panel) .cta,.cloud-library .attention-dialog .source-actions button:first-child{border-color:var(--surface-accent);color:#101827;background:var(--surface-accent);font-weight:650}.cloud-library .settings-sign-out{min-height:48px;border:1px solid color-mix(in srgb,var(--surface-danger) 34%,transparent);border-radius:8px;color:var(--surface-danger);background:var(--surface-danger-wash);font-size:14px}.cloud-library .app-settings{max-width:680px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.cloud-library .app-settings-header{margin-bottom:20px}.cloud-library .app-settings-header h2{margin:12px 0 4px;font-size:28px;line-height:1.15;font-weight:720}.cloud-library .app-settings-header p{color:var(--surface-muted);font-size:13px}.cloud-library .settings-back{min-height:44px;padding:0 10px 0 0;color:var(--surface-accent);font-weight:600}.cloud-library .app-settings>.library-panel{margin-bottom:10px;padding:16px;border-radius:8px}.cloud-library .settings-appearance-row{align-items:center}.cloud-library .settings-appearance-row h3{margin:0;font-size:14px}.cloud-library .app-appearance-options{flex-basis:216px;gap:2px;padding:3px;border:1px solid var(--surface-edge);border-radius:8px;background:var(--surface-inset)}.cloud-library .library-panel .app-appearance-options button{min-height:38px;border-radius:6px;color:var(--surface-muted);font-size:13px}.cloud-library .library-panel .app-appearance-options button[aria-pressed=true]{border-color:var(--surface-edge);color:var(--xl-ink);background:var(--surface-raised);box-shadow:0 1px 3px #00000024}.cloud-library .settings-links{padding-block:0!important}.cloud-library .app-settings .settings-source-link{min-height:64px;padding:10px 2px}.cloud-library .settings-source-link>svg:first-child{color:var(--surface-accent)}.cloud-library .settings-source-link strong{font-size:14px;font-weight:600}.cloud-library .settings-transfer-link{min-height:60px}.cloud-library .settings-transfer-link>svg{color:var(--surface-muted)}.cloud-library .import-sources{max-width:none}.cloud-library .import-sources>p{max-width:68ch;font-size:13px;line-height:1.55}.cloud-library .import-sources .source-create,.cloud-library .import-sources .source-credential{margin:18px 0;padding:16px;border:1px solid var(--surface-edge);border-radius:8px;background:var(--surface-raised)}.cloud-library .import-sources .source-create label,.cloud-library .import-sources .source-credential label{margin:12px 0;gap:7px;color:var(--surface-muted);font-size:12px;font-weight:600}.cloud-library .import-sources select{min-height:44px;padding:9px 38px 9px 12px;border-radius:8px;background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;font-size:16px}.cloud-library .import-sources .source-items li{gap:10px;padding:14px 0;border-color:var(--surface-divider)}.cloud-library .source-credential pre{border-color:var(--surface-edge);border-radius:8px;background:var(--surface-inset);color:var(--xl-ink);line-height:1.5}.cloud-library .migration-panel{margin-top:16px;border-color:var(--surface-divider)}.cloud-library .migration-row{gap:6px;padding:14px 0;border-color:var(--surface-divider)}.attention-dialog,.cloud-library .book-details-modal{color:var(--xl-ink);border:1px solid var(--surface-edge);border-radius:12px;background:var(--xl-surface);box-shadow:0 24px 80px #00000052}.cloud-library .book-details-modal{color:var(--book-control-ink)}.attention-dialog::backdrop,.cloud-library .book-details-modal::backdrop{background:#0509108a;backdrop-filter:blur(10px) saturate(115%);-webkit-backdrop-filter:blur(10px) saturate(115%)}.attention-dialog-header,.cloud-library .book-details-frame>header{padding:18px 20px 14px;border-color:var(--surface-divider);background:var(--xl-surface)}.attention-dialog-header h2,.cloud-library .book-details-frame h2{font-size:19px;font-weight:680;letter-spacing:0}.attention-dialog-header small,.cloud-library .book-details-frame>header small{color:var(--surface-muted);font-size:10px;letter-spacing:0;font-weight:650}.attention-dialog-header button,.cloud-library .book-details-frame>header button{width:40px;height:40px;border:1px solid var(--surface-edge);border-radius:50%;color:var(--surface-muted);background:var(--surface-inset)}.attention-dialog-scroll,.cloud-library .book-details-modal .book-details{padding:18px 20px max(20px,env(safe-area-inset-bottom))}.cloud-library .book-details-modal .book-details{color:var(--book-control-ink);font-size:14px}.cloud-library .book-details-modal .edition-list>div{gap:8px;border-color:var(--surface-divider)}.cloud-library .book-details-modal .edition-list button,.cloud-library .book-details-modal .book-details>button{min-height:40px;padding:8px 11px;border:1px solid var(--surface-edge);border-radius:8px;color:var(--xl-ink);background:var(--surface-inset)}.cloud-library .book-details-modal .edition-list button[aria-pressed=true]{color:var(--surface-accent);border-color:color-mix(in srgb,var(--surface-accent) 34%,transparent);background:var(--surface-accent-wash)}.cloud-library .book-details-modal :is(input,select,textarea),.cloud-library .issue-actions-panel :is(input,select,textarea){width:100%;min-height:44px;border-radius:8px;border-color:var(--surface-edge);color:var(--xl-ink);background:var(--surface-inset)}.cloud-library .library-continue-section{margin-top:10px}.cloud-library .library-continue-section .section-header{margin:18px 0 8px}.cloud-library .library-continue-section .section-header h2{font-size:18px;font-weight:650}.cloud-library .library-continue-section .text-button{margin-left:auto;font-size:13px}.cloud-library .library-continue-section .featured{min-height:108px;gap:14px;padding:10px 12px;border:1px solid var(--surface-edge);border-radius:8px;background:var(--surface-raised);box-shadow:none}.cloud-library .library-continue-section .mini-cover{width:56px;border-radius:4px}.cloud-library .library-continue-section .featured-content{gap:5px}.cloud-library .library-continue-section .featured-content .eyebrow{color:var(--surface-muted);font-size:9px;font-weight:600;letter-spacing:0}.cloud-library .library-continue-section .featured-content strong{font-size:15px;line-height:1.35}.cloud-library .library-continue-section .featured-content .muted{color:var(--surface-muted);font-size:12px}.cloud-library .library-continue-section .reading-row{min-height:54px;gap:9px;padding:9px 4px;border-color:var(--surface-divider);color:var(--xl-ink)}.cloud-library .library-continue-section .reading-row span{overflow:hidden;font-size:13px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.cloud-library .library-continue-section .reading-row small{flex:0 0 auto;color:var(--surface-muted);font-size:12px}.cloud-library .magazine-issues-section{margin-top:24px}.cloud-library .magazine-issues-section .section-header{margin:18px 0 10px}.cloud-library .magazine-issues-section .section-header h2{font-size:19px;font-weight:650}.cloud-library .magazine-issues-section .library-toolbar{align-items:center;justify-content:flex-start;gap:10px;margin:0 0 12px}.cloud-library .magazine-issues-section .sort-control{display:block;flex:0 1 230px;color:var(--surface-muted);font-size:0}.cloud-library .magazine-issues-section .sort-control select{width:100%;max-width:230px;min-height:40px;font-size:13px}.cloud-library .magazine-issues-section .secondary-button{min-height:40px;font-size:12px}.cloud-library .magazine-issues-section .empty-library{margin:8px 0 0;color:var(--surface-muted);font-size:14px}.cloud-library .issue-actions{position:relative;overflow:visible}.cloud-library .issue-actions>summary{min-height:46px;padding:10px 12px;color:var(--xl-ink)}.cloud-library .issue-actions-panel{border-color:var(--surface-divider);border-radius:0 0 8px 8px;background:var(--xl-surface)}.cloud-library .issue-context{border-color:var(--surface-divider)}.cloud-library .issue-actions[open]{z-index:31}html.appearance-light .attention-dialog,html.appearance-light .cloud-library .book-details-modal{background:#fff;box-shadow:0 24px 80px #14203433}html.appearance-light .attention-dialog-header,html.appearance-light .cloud-library .book-details-frame>header{background:#fff}html.appearance-light .attention-dialog-header button,html.appearance-light .cloud-library .book-details-frame>header button{color:#596579;background:#f2f4f7}html.appearance-light .attention-dialog .source-actions button:first-child,html.appearance-light .cloud-library .library-panel .cta{color:#fff}@media(max-width:600px){.cloud-library .app-settings{padding-bottom:max(20px,env(safe-area-inset-bottom))}.cloud-library .app-settings-header h2{font-size:25px}.cloud-library .app-settings>.library-panel{padding:14px}.cloud-library .issue-actions[open]{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));border-radius:12px;background:var(--xl-surface)}.cloud-library .issue-actions[open]>summary{border-radius:12px 12px 0 0;background:var(--xl-surface)}.attention-dialog,.cloud-library .book-details-modal{border-radius:16px 16px 0 0}}@media(prefers-reduced-transparency:reduce){.attention-dialog::backdrop,.cloud-library .book-details-modal::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}:root{--xl-safe-top: env(safe-area-inset-top, 0px);--xl-safe-right: env(safe-area-inset-right, 0px);--xl-safe-bottom: env(safe-area-inset-bottom, 0px);--xl-safe-left: env(safe-area-inset-left, 0px);--xl-bg: #11141b;--xl-surface: #1b202a;--xl-ink: #eef2ff;--xl-muted: #a5aec2;--xl-accent: #9bbaff;--xl-active-ink: #e8f0ff;--xl-active: #4465a94d;--xl-glass: #262c3ac9;--xl-edge: #8f9ab326;--xl-shadow: 0 4px 16px #0002;--xl-header-blue: #4767b51c;--xl-header-pink: #a778b315;--xl-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", sans-serif;--xl-space-1: 4px;--xl-space-2: 8px;--xl-space-3: 12px;--xl-space-4: 16px;--xl-space-5: 24px;--xl-space-6: 32px;--xl-radius-sm: 10px;--xl-radius-md: 16px;--xl-radius-lg: 24px;--xl-radius-pill: 999px;--xl-blur: 16px;--xl-motion: .21s;--xl-ease: cubic-bezier(.2, .75, .25, 1)}html.appearance-light{--xl-bg: #f8f8fc;--xl-surface: #fff;--xl-ink: #12182c;--xl-muted: #657087;--xl-accent: #1768f5;--xl-active-ink: #0754e7;--xl-active: #dce8ff;--xl-glass: #ffffffb8;--xl-edge: #ffffffdb;--xl-shadow: 0 3px 14px #26365c0c;--xl-header-blue: #dfe9ff6b;--xl-header-pink: #f4e2f64a}.glass-surface,.glass-pill,.glass-header-action,.bottom-category-bar{color:var(--xl-ink);border:1px solid var(--xl-edge);background:var(--xl-glass);box-shadow:inset 0 1px #ffffff12,var(--xl-shadow);backdrop-filter:blur(var(--xl-blur)) saturate(130%);-webkit-backdrop-filter:blur(var(--xl-blur)) saturate(130%)}.glass-pill{border-radius:var(--xl-radius-pill);padding:8px 14px;min-height:44px;font:inherit}.glass-pill[aria-pressed=true]{color:var(--xl-active-ink);background:var(--xl-active)}.glass-header-action{border-radius:50%}.glass-segmented{display:flex;gap:4px;padding:4px;border-radius:18px;background:var(--xl-glass)}.glass-segmented button{flex:1}.xlibrary-glass{position:relative;isolation:isolate;min-height:100svh;padding:calc(24px + var(--xl-safe-top)) calc(24px + var(--xl-safe-right)) calc(108px + env(safe-area-inset-bottom)) calc(24px + var(--xl-safe-left));background:var(--xl-bg);color:var(--xl-ink);font-family:var(--xl-font)}.xlibrary-glass:before{content:"";position:absolute;z-index:-1;inset:0 0 auto;height:240px;pointer-events:none;background:radial-gradient(ellipse at 22% 0,var(--xl-header-blue),transparent 70%),radial-gradient(ellipse at 90% 0,var(--xl-header-pink),transparent 65%)}.xlibrary-glass>.header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 24px;padding:0}.xlibrary-glass .glass-brand{display:flex;align-items:center;gap:10px;min-width:0}.glass-brand>img{width:48px;height:48px;object-fit:contain;flex-shrink:0;border-radius:12px;box-shadow:var(--xl-shadow)}.glass-brand>div{display:flex;flex-direction:column-reverse;min-width:0;gap:5px}.xlibrary-glass .header h1{font-size:28px;line-height:1;letter-spacing:-1px;margin:0;font-weight:750}.xlibrary-glass .header .eyebrow{font-size:8px;color:var(--xl-muted);letter-spacing:.08em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xlibrary-glass .header .header-actions{display:flex;flex-wrap:nowrap;gap:4px}.xlibrary-glass .header .icon-button{width:44px;height:44px;min-width:44px;padding:11px;color:var(--xl-ink);border:1px solid var(--xl-edge);border-radius:50%;background:var(--xl-glass);box-shadow:var(--xl-shadow)}.xlibrary-glass .header .icon-button.primary{color:var(--xl-accent)}.xlibrary-glass .header .icon-button svg{width:20px;height:20px}.library-nav-shell{min-height:56px;position:relative;margin-bottom:28px}.library-navigation{display:flex;align-items:center;gap:4px;padding:4px;min-height:56px;border-radius:var(--xl-radius-pill);animation:xl-nav-in var(--xl-motion) var(--xl-ease)}.xlibrary-glass .library-navigation>.library-sections{display:flex;flex:1;min-width:0;gap:2px;overflow-x:auto;scrollbar-width:none;padding:0;margin:0;border:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.xlibrary-glass .library-navigation .library-sections button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1 0 auto;min-height:44px;padding:9px 15px;border:0;border-radius:var(--xl-radius-pill);color:var(--xl-ink);background:transparent;box-shadow:none;font-size:12px;white-space:nowrap;opacity:.85}.xlibrary-glass .library-navigation .library-sections button[aria-pressed=true]{color:var(--xl-active-ink);background:var(--xl-active);opacity:1}.xlibrary-glass .library-navigation .library-sections button:after{display:none}.nav-search{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:0;border-radius:50%;background:var(--xl-glass);color:var(--xl-ink)}.search-takeover{display:flex;align-items:center;gap:12px;min-height:56px;animation:xl-search-in var(--xl-motion) var(--xl-ease)}.search-field{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0 14px;min-height:56px;border-radius:var(--xl-radius-pill);box-shadow:inset 0 0 0 2px #97baff15,var(--xl-shadow)}.search-field>svg{flex-shrink:0}.search-field input{width:100%;min-width:0;height:52px;border:0;padding:0;border-radius:0;outline-offset:2px;background:transparent;color:var(--xl-ink);font-size:16px}.search-field input::-webkit-search-cancel-button{-webkit-appearance:none}.search-field input::placeholder{color:var(--xl-muted)}.search-field button{flex-shrink:0;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;color:var(--xl-ink);background:transparent}.search-cancel{padding:0;min-height:44px;border:0;color:var(--xl-accent);background:transparent;font-size:15px}.library-content[hidden]{display:none!important}.xlibrary-glass .library-content{animation:xl-content-in var(--xl-motion) var(--xl-ease)}.xlibrary-glass .library-content h2{font-size:24px;letter-spacing:-.7px;line-height:1.2;font-weight:750}.xlibrary-glass .section-header{align-items:center;gap:10px;margin:0 0 18px}.xlibrary-glass .section-header>.muted{margin-right:auto;font-size:12px;color:var(--xl-muted)}.xlibrary-glass .section-header select{min-height:44px;max-width:180px;margin-left:auto;padding:7px 12px;border:1px solid var(--xl-edge);border-radius:var(--xl-radius-pill);background:var(--xl-glass);color:var(--xl-ink);box-shadow:var(--xl-shadow);font-size:13px}.xlibrary-glass :is(.book-grid,.cover-grid){gap:20px 16px}.xlibrary-glass .cover{border-radius:12px;box-shadow:0 3px 9px #19243a12}.xlibrary-glass .cover-title{font-size:14px;font-weight:650;letter-spacing:-.25px}.xlibrary-glass .subtle{color:var(--xl-muted);font-size:12px}.xlibrary-glass .featured{border:0;background:var(--xl-surface);box-shadow:var(--xl-shadow);border-radius:var(--xl-radius-md)}.xlibrary-glass .prototype-note{color:var(--xl-muted)}.bottom-category-bar{position:fixed;z-index:15;bottom:max(2px,calc(var(--xl-safe-bottom) - 22px));left:50%;translate:-50% 0;width:min(480px,calc(100% - 24px));display:flex;gap:4px;padding:6px;border-radius:28px}.bottom-category-bar>button{flex:1;min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 10px;color:var(--xl-muted);background:transparent;border:0;box-shadow:none;font-size:11px}.bottom-category-bar>button[aria-pressed=true]{color:var(--xl-active-ink);background:var(--xl-active)}.search-empty{text-align:center;padding:clamp(24px,8vh,90px) 0 28px}.search-empty-art{display:grid;place-items:center;position:relative;isolation:isolate;width:150px;height:126px;margin:0 auto 34px;color:var(--xl-accent)}.search-empty-art:before,.search-empty-art:after{content:"";position:absolute;inset:10px 8px;z-index:-1;border:1px solid #ffffff70;border-radius:24px;background:linear-gradient(135deg,#b9d5ff90,#e7c4fa80);box-shadow:var(--xl-shadow);rotate:-14deg}.search-empty-art:after{rotate:12deg;translate:16px 14px}.search-empty h2{font-size:27px;letter-spacing:-1px;margin:0 0 12px}.search-empty p{color:var(--xl-muted);font-size:16px;line-height:1.6;margin:0}.search-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:30px auto 0;max-width:440px}.search-shortcuts button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:80px;padding:10px 4px;border:1px solid var(--xl-edge);border-radius:20px;color:var(--xl-ink);background:var(--xl-glass);box-shadow:var(--xl-shadow);font-size:12px}.search-shortcuts button[aria-pressed=true]{color:var(--xl-accent);border-color:var(--xl-accent)}.search-filters{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:4px 0 12px;margin:0 0 16px}.search-filters button{flex-shrink:0;white-space:nowrap;font-size:12px}.search-filters button[aria-pressed=true]{background:var(--xl-accent);color:var(--xl-bg)}html.appearance-light .search-filters button[aria-pressed=true]{color:#fff}.dedicated-search h2{font-size:22px;letter-spacing:-.6px;margin:12px 0 20px;overflow-wrap:anywhere}.search-result-list{display:grid;gap:12px}.glass-result-row{min-width:0;overflow:hidden;border:1px solid var(--xl-edge);border-radius:18px;background:var(--xl-surface);box-shadow:var(--xl-shadow)}.result-open{display:flex;align-items:center;gap:16px;width:100%;min-width:0;padding:10px;text-align:left;border:0;border-radius:inherit;background:transparent;color:inherit}.result-cover{display:grid;place-items:center;flex:0 0 76px;width:76px;height:104px;overflow:hidden;border-radius:10px;background:var(--xl-active);color:var(--xl-accent)}.result-cover img{width:100%;height:100%;object-fit:cover}.result-copy{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}.result-copy strong{font-size:16px;line-height:1.35;letter-spacing:-.4px;overflow-wrap:anywhere}.result-copy>span:not(.result-format){color:var(--xl-muted);font-size:12px;line-height:1.4}.result-copy .result-snippet{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.result-format{padding:4px 9px;border-radius:var(--xl-radius-pill);background:var(--xl-active);color:var(--xl-active-ink);font-size:10px;font-weight:650}.search-note{color:var(--xl-muted);font-size:13px;line-height:1.6}.search-load-more{margin-top:20px}.xlibrary-glass.is-settings>.library-nav-shell{display:none}.xlibrary-glass :is(button,input,select,textarea):focus-visible{outline:2px solid var(--xl-accent);outline-offset:3px}@keyframes xl-nav-in{0%{opacity:.5;transform:translateY(-3px)}to{opacity:1;transform:none}}@keyframes xl-search-in{0%{opacity:.4;clip-path:inset(0 20% 0 0 round 30px)}to{opacity:1;clip-path:inset(0 0 0 0 round 30px)}}@keyframes xl-content-in{0%{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:600px){.xlibrary-glass{padding:calc(18px + var(--xl-safe-top)) 16px calc(108px + env(safe-area-inset-bottom))}.xlibrary-glass .header h1{font-size:23px}.glass-brand>img{width:40px;height:40px}.glass-brand{gap:8px}.xlibrary-glass .header .eyebrow{display:block;max-width:108px;font-size:7px}.xlibrary-glass .section-header select{max-width:150px;font-size:12px}.xlibrary-glass .library-navigation .library-sections button{padding:9px 12px;font-size:11px}.search-shortcuts{gap:8px}.result-copy strong{font-size:15px}}@media(max-width:360px){.glass-brand>img,.xlibrary-glass .header .eyebrow{display:none}.xlibrary-glass .header h1{font-size:20px}.search-takeover{gap:8px}.search-field{padding:0 10px;gap:7px}}@media(prefers-reduced-motion:reduce){.library-navigation,.search-takeover,.xlibrary-glass .library-content{animation:none;transition:none}}@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.glass-surface,.glass-pill,.glass-header-action,.bottom-category-bar{background:var(--xl-surface);backdrop-filter:none;-webkit-backdrop-filter:none;border-color:var(--xl-muted)}}@supports not (backdrop-filter: blur(1px)){.glass-surface,.glass-pill,.glass-header-action,.bottom-category-bar{background:var(--xl-surface)}}.xlibrary-glass .cover-placeholder{background:#273343;color:#edf3ff}@media(orientation:landscape)and (max-height:600px){.xlibrary-glass{padding-left:max(72px,calc(24px + var(--xl-safe-left)));padding-right:calc(70px + var(--xl-safe-right))}}html.appearance-light .xlibrary-glass .cover-placeholder{background:#e5ecf6;color:#273b57}.xlibrary-glass .book-card .cover-placeholder small{color:inherit;opacity:.7}.library-content{overflow-anchor:none}.glass-pill{transition:color var(--xl-motion) var(--xl-ease),background-color var(--xl-motion) var(--xl-ease)}@media(prefers-reduced-motion:reduce){.glass-pill{transition:none}}.xlibrary-glass .library-nav-shell{position:sticky;top:calc(8px + var(--xl-safe-top));z-index:10}.xlibrary-glass .search-cancel{flex:0 0 52px;min-width:52px;max-width:none;overflow:visible;white-space:nowrap;text-align:center}.xlibrary-glass .search-field:focus-within{border-color:#8cb2fb99;box-shadow:0 0 0 3px #90b5ff18,var(--xl-shadow)}.xlibrary-glass .search-field input:focus-visible{outline:none;box-shadow:none}.xlibrary-glass .header .header-actions .icon-button.primary{background:var(--xl-glass);color:var(--xl-accent);border-color:var(--xl-edge)}.xlibrary-glass>.prototype-note{display:none}.search-correction{padding:0 14px;border-top:1px solid var(--xl-edge);color:var(--xl-muted);font-size:12px}.search-correction summary{min-height:44px;padding:12px 0;cursor:pointer}.search-correction form{display:grid;gap:10px;padding:0 0 14px}.search-correction label{display:grid;gap:8px}.search-correction textarea{width:100%;min-height:96px;padding:10px;border:1px solid var(--xl-muted);border-radius:10px;color:var(--xl-ink);background:var(--xl-surface);font-size:16px}
