.reader-page.svelte-e9xccr{flex:1 1 auto;height:100vh;min-height:0;display:flex;flex-direction:column;gap:.6rem;overflow:hidden;background:radial-gradient(circle at top,color-mix(in oklab,var(--app-bg),#ffffff 14%),var(--app-bg));color:var(--text)}button.svelte-e9xccr,.file-picker.svelte-e9xccr span:where(.svelte-e9xccr),select.svelte-e9xccr{border:1px solid rgba(148,163,184,.4);background:color-mix(in oklab,var(--panel-bg),#ffffff 4%);color:var(--text);border-radius:8px;padding:.34rem .62rem;cursor:pointer}button.active.svelte-e9xccr{border-color:#2563eb;background:#dbeafe;color:#1e3a8a}button.danger.svelte-e9xccr{border-color:#ef4444;color:#b91c1c}.icon-toggle.svelte-e9xccr{display:inline-flex;align-items:center;justify-content:center;padding:.3rem}.icon-toggle.svelte-e9xccr .material-icons:where(.svelte-e9xccr){font-size:1.1rem}#btn-toggle-side-panel.svelte-e9xccr{position:fixed;top:.5rem;left:.5rem;z-index:50;border-radius:30%;box-shadow:0 10px 24px #0f172a2e}.side-panel-backdrop.svelte-e9xccr{display:none}.file-picker.svelte-e9xccr{position:relative;overflow:hidden}.file-picker.svelte-e9xccr input:where(.svelte-e9xccr){position:absolute;inset:0;opacity:0;cursor:pointer}.side-file-picker.svelte-e9xccr{justify-self:stretch}.side-file-picker.svelte-e9xccr span:where(.svelte-e9xccr){display:block;text-align:center;background:linear-gradient(135deg,#0ea5e9,#2563eb 55%,#4f46e5);color:#f8fafc;border:1px solid rgba(59,130,246,.45);box-shadow:0 8px 20px #2563eb42,inset 0 1px #ffffff38;font-weight:700;letter-spacing:.01em;transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}.side-file-picker.svelte-e9xccr:hover span:where(.svelte-e9xccr){transform:translateY(-1px);box-shadow:0 11px 24px #2563eb4d,inset 0 1px #ffffff3d;filter:saturate(1.08)}.side-file-picker.svelte-e9xccr:active span:where(.svelte-e9xccr){transform:translateY(0)}.side-file-picker.svelte-e9xccr:focus-within span:where(.svelte-e9xccr){outline:2px solid rgba(125,211,252,.8);outline-offset:1px}.file-name.svelte-e9xccr{margin:-.1rem 0 .1rem;font-size:.74rem;opacity:.8;word-break:break-all}.workspace.svelte-e9xccr{display:grid;grid-template-columns:minmax(220px,300px) 1fr;grid-template-rows:minmax(0,1fr);flex:1 1 0%;gap:0;min-height:0;overflow:hidden;padding-top:0}.workspace.panel-hidden.svelte-e9xccr{grid-template-columns:0 1fr}.side-panel.svelte-e9xccr{display:grid;align-content:start;gap:.5rem;min-height:0;overflow:auto;padding:.5rem;border-right:1px solid rgba(148,163,184,.32);background:color-mix(in oklab,var(--panel-bg),#ffffff 5%)}.side-title.svelte-e9xccr{margin:0 0 .15rem;font-size:clamp(1rem,1.6vw,1.18rem);text-align:center}.workspace.panel-hidden.svelte-e9xccr .side-panel:where(.svelte-e9xccr){opacity:0;pointer-events:none;padding:0}.panel-block.svelte-e9xccr{padding:.55rem;border-radius:10px;border:1px solid rgba(148,163,184,.3);background:color-mix(in oklab,var(--panel-bg),#ffffff 5%);display:grid;gap:.35rem}.settings-panel.svelte-e9xccr{gap:.5rem}.setting-row.svelte-e9xccr{display:grid;grid-template-columns:1.2rem 1fr;align-items:center;gap:.4rem}.setting-row.svelte-e9xccr .material-icons:where(.svelte-e9xccr){font-size:1.05rem;opacity:.86}.theme-row.svelte-e9xccr{display:grid;grid-template-columns:repeat(3,1fr);gap:.3rem}.theme-button.svelte-e9xccr{background:var(--theme-btn-bg);color:var(--theme-btn-text);border-color:color-mix(in oklab,var(--theme-btn-text),#ffffff 72%);text-transform:capitalize}.theme-button.active.svelte-e9xccr{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb59 inset,0 2px 8px #2563eb33}.icon-highlight.svelte-e9xccr{border:1px solid rgba(148,163,184,.34);background:color-mix(in oklab,var(--panel-bg),#ffffff 10%);width:100%;height:2rem;padding:.2rem 0;display:inline-flex;align-items:center;justify-content:center;justify-self:stretch;color:#64748b;border-radius:999px;box-shadow:0 8px 20px #0f172a1a}.icon-highlight.on.svelte-e9xccr{color:color-mix(in oklab,#f59e0b 78%,var(--text));border-color:color-mix(in oklab,#f59e0b 46%,rgba(148,163,184,.34));background:color-mix(in oklab,var(--panel-bg),#f59e0b 12%);box-shadow:0 10px 24px #0f172a1f,0 0 0 1px color-mix(in oklab,#f59e0b 24%,transparent) inset}.highlight-mode-icon.svelte-e9xccr{display:block;width:1.22rem;height:1.22rem}.icon-highlight.svelte-e9xccr:hover{background:color-mix(in oklab,var(--panel-bg),#ffffff 18%)}.page-mode-toggle.svelte-e9xccr{padding:.2rem 0}.page-mode-icon.svelte-e9xccr{display:block;width:1.06rem;height:1.06rem}.dual-page-icon.svelte-e9xccr,.single-page-icon.svelte-e9xccr{width:1.59rem}.mode-actions.svelte-e9xccr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:.4rem;position:relative;padding:0 .1rem}.reader-help-button.svelte-e9xccr{display:inline-flex;align-items:center;justify-content:center;width:100%;height:2rem;border-radius:999px;border:1px solid rgba(148,163,184,.34);background:color-mix(in oklab,var(--panel-bg),#ffffff 10%);color:var(--text);font-size:.95rem;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 8px 20px #0f172a1a}.reader-help-button.svelte-e9xccr:hover{background:color-mix(in oklab,var(--panel-bg),#ffffff 18%)}.reader-help-popover.svelte-e9xccr{position:fixed;z-index:30;width:min(22rem,calc(100vw - 1.5rem));max-width:calc(100vw - 1.5rem);padding:.9rem .95rem .8rem;border-radius:16px;border:1px solid rgba(148,163,184,.34);background:color-mix(in oklab,var(--panel-bg),#ffffff 8%);box-shadow:0 18px 38px #0f172a33;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.reader-help-popover.svelte-e9xccr h2:where(.svelte-e9xccr){margin:0 1.6rem .55rem 0;font-size:.98rem}.reader-help-popover.svelte-e9xccr ul:where(.svelte-e9xccr){margin:0;padding-left:1.1rem;display:grid;gap:.38rem;font-size:.82rem;line-height:1.45}.reader-help-close.svelte-e9xccr{position:absolute;top:.35rem;right:.45rem;border:none;background:transparent;color:var(--text);font-size:1rem;cursor:pointer}.highlight-color-row.svelte-e9xccr{display:flex;gap:.32rem;align-items:center;justify-content:center}.swatch.svelte-e9xccr{width:1.15rem;height:1.15rem;border-radius:999px;border:1px solid rgba(15,23,42,.18);background:var(--swatch);padding:0}.swatch.active.svelte-e9xccr{outline:2px solid #2563eb;outline-offset:1px}.toc-block.svelte-e9xccr h2:where(.svelte-e9xccr){margin:0;font-size:.86rem;font-weight:800}.panel-head.svelte-e9xccr{display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.24rem .34rem;margin-bottom:.34rem;border-radius:9px;border:1px solid color-mix(in oklab,var(--text) 14%,transparent);background:linear-gradient(135deg,color-mix(in oklab,var(--panel-bg) 90%,var(--text) 10%),color-mix(in oklab,var(--panel-bg) 95%,#ffffff 5%) 58%,color-mix(in oklab,var(--panel-bg) 86%,var(--text) 14%));box-shadow:inset 0 1px color-mix(in oklab,#ffffff 26%,transparent)}.section-fold-toggle.svelte-e9xccr{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border-radius:999px;border:1px solid rgba(148,163,184,.36);background:color-mix(in oklab,var(--panel-bg),#ffffff 12%);color:var(--text)}.section-fold-toggle.svelte-e9xccr .material-icons:where(.svelte-e9xccr){font-size:1rem;line-height:1}.search-row.svelte-e9xccr{display:grid;grid-template-columns:auto 1fr auto;gap:.35rem;align-items:center}.search-icon.svelte-e9xccr{font-size:1rem;opacity:.82}.search-input-wrap.svelte-e9xccr{position:relative}.search-row.svelte-e9xccr input:where(.svelte-e9xccr){min-width:0;width:100%;border:1px solid rgba(148,163,184,.35);border-radius:8px;background:color-mix(in oklab,var(--panel-bg),#ffffff 8%);color:var(--text);padding:.35rem 1.9rem .35rem .45rem}.clear-search.svelte-e9xccr{position:absolute;right:.28rem;top:50%;transform:translateY(-50%);width:1.2rem;height:1.2rem;border:1px solid rgba(148,163,184,.36);border-radius:999px;padding:0;line-height:1;font-size:.9rem;background:color-mix(in oklab,var(--panel-bg),#ffffff 12%);color:#64748b}.search-results.svelte-e9xccr{border-top:1px solid rgba(148,163,184,.2);padding-top:.35rem}.highlight-list-block.svelte-e9xccr h2:where(.svelte-e9xccr){margin:0;font-size:.86rem;font-weight:800}.highlight-list-block.svelte-e9xccr ul:where(.svelte-e9xccr){margin:0;padding:0;list-style:none;display:grid;gap:.22rem;max-height:20vh;overflow-y:auto;overflow-x:hidden}.highlight-list-item.svelte-e9xccr{width:100%;min-width:0;text-align:left;border:1px solid transparent;padding:.28rem 1.85rem .28rem .35rem;border-radius:7px;font-size:.74rem;line-height:1.35;background:transparent;display:grid;gap:.08rem}.highlight-list-row.svelte-e9xccr{position:relative;display:block;min-width:0}.highlight-list-item.svelte-e9xccr .title:where(.svelte-e9xccr){font-weight:700;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.highlight-list-item.svelte-e9xccr .meta:where(.svelte-e9xccr){font-size:.68rem;opacity:.78}.highlight-list-item.svelte-e9xccr:hover{background:#22c55e21}.highlight-list-row.active.svelte-e9xccr .highlight-list-item:where(.svelte-e9xccr){background:#22c55e2e;border-color:#22c55e6b}.highlight-remove-btn.svelte-e9xccr{width:1.2rem;height:1.2rem;position:absolute;right:.34rem;top:50%;transform:translateY(-50%);padding:0;border-radius:999px;border:none;background:transparent;color:#b91c1c;line-height:0;opacity:0;pointer-events:none;transition:opacity .12s ease}.highlight-remove-btn.svelte-e9xccr .material-icons:where(.svelte-e9xccr){font-size:1rem;line-height:1}.highlight-list-row.svelte-e9xccr:hover .highlight-remove-btn:where(.svelte-e9xccr),.highlight-list-row.svelte-e9xccr:focus-within .highlight-remove-btn:where(.svelte-e9xccr){opacity:1;pointer-events:auto}.search-results.svelte-e9xccr ul:where(.svelte-e9xccr){margin:0;padding:0;list-style:none;display:grid;gap:.2rem;max-height:24vh;overflow:auto}.search-result-item.svelte-e9xccr{width:100%;text-align:left;border:1px solid transparent;padding:.3rem .35rem;border-radius:7px;font-size:.75rem;line-height:1.35;background:transparent}.search-result-item.svelte-e9xccr:hover{background:#2563eb1f}.search-result-item.active.svelte-e9xccr{background:#f9731629;border-color:#f9731673}.small.svelte-e9xccr{margin:0;font-size:.78rem;opacity:.82}.toc-block.svelte-e9xccr ul:where(.svelte-e9xccr){margin:0;padding:0;list-style:none;display:grid;gap:.12rem;max-height:52vh;overflow:auto}.toc-item.svelte-e9xccr{display:block;padding:.22rem .34rem;padding-left:calc(.34rem + (var(--depth, 0) * .7rem));font-size:.78rem;line-height:1.3;border-radius:6px;color:var(--text);text-decoration:none;border:1px solid transparent}.toc-item.svelte-e9xccr:hover{background:color-mix(in oklab,var(--text) 14%,transparent)}.toc-item.active.svelte-e9xccr{background:color-mix(in oklab,var(--text) 20%,var(--panel-bg));color:var(--text);border-color:color-mix(in oklab,var(--text) 36%,transparent);font-weight:700}.reader-stage.svelte-e9xccr{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0;overflow:hidden;background:color-mix(in oklab,var(--panel-bg),#ffffff 3%)}.reader-stage.dual-page-mode.svelte-e9xccr:after{content:"";position:absolute;top:1rem;bottom:2.2rem;left:50%;width:2rem;transform:translate(-50%);pointer-events:none;z-index:3;background:linear-gradient(90deg,#0f172a00,#0f172a14 40%,#0f172a29,#0f172a0d 60%,#0f172a00);opacity:.95;mix-blend-mode:multiply}.epub-view.svelte-e9xccr{min-width:0;min-height:0;height:100%;overflow:hidden}.nav-flash.svelte-e9xccr{position:absolute;z-index:6;transform:translate(-50%,-50%);pointer-events:none;width:4.8rem;height:4.8rem;background:color-mix(in oklab,var(--text) 44%,var(--panel-bg));opacity:.42;filter:drop-shadow(0 14px 22px rgba(15,23,42,.18)) drop-shadow(0 0 .45rem color-mix(in oklab,var(--text) 18%,transparent));animation:svelte-e9xccr-nav-flash-in .18s ease-out forwards}.nav-flash.prev.svelte-e9xccr{clip-path:polygon(78% 12%,22% 50%,78% 88%)}.nav-flash.next.svelte-e9xccr{clip-path:polygon(22% 12%,78% 50%,22% 88%)}@keyframes svelte-e9xccr-nav-flash-in{0%{opacity:0;transform:translate(-50%,-50%) scale(.88)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.overlay.svelte-e9xccr,.empty.svelte-e9xccr{position:absolute;inset:auto 1rem 2.1rem;padding:.5rem .72rem;border-radius:10px;background:#0f172ade;color:#fff;font-size:.84rem}.overlay.error.svelte-e9xccr{background:#991b1be6}.selection-menu.svelte-e9xccr{position:fixed;transform:translate(-50%);max-width:min(520px,calc(100vw - 1rem));z-index:25;padding:.6rem;border-radius:12px;border:1px solid rgba(148,163,184,.38);background:color-mix(in oklab,var(--panel-bg),#ffffff 8%);box-shadow:0 14px 32px #02061747}.highlight-prompt.svelte-e9xccr{position:fixed;transform:translate(-50%);max-width:min(320px,calc(100vw - 1rem));z-index:26;padding:.55rem .62rem;border-radius:12px;border:1px solid rgba(148,163,184,.4);background:color-mix(in oklab,var(--panel-bg),#ffffff 10%);box-shadow:0 14px 32px #02061747}.highlight-prompt.svelte-e9xccr p:where(.svelte-e9xccr){margin:0;font-size:.8rem}.selection-menu.svelte-e9xccr p:where(.svelte-e9xccr){margin:0;font-size:.8rem}.selection-highlight-palette.svelte-e9xccr{display:flex;align-items:center;gap:.3rem;margin-bottom:.45rem}.selection-highlight-palette.svelte-e9xccr .swatch:where(.svelte-e9xccr){width:1.05rem;height:1.05rem}.actions.svelte-e9xccr{margin-top:.5rem;display:flex;gap:.4rem;flex-wrap:wrap}.hidden-control.svelte-e9xccr{display:none!important}.error-text.svelte-e9xccr{margin-top:.4rem;font-size:.74rem;color:#dc2626}.translation-balloon.svelte-e9xccr{position:fixed;transform:translate(-50%);z-index:20;max-width:min(360px,calc(100vw - 1rem));background:#fefce8;border:1px solid rgba(234,179,8,.4);border-radius:12px;padding:.52rem .62rem;box-shadow:0 10px 24px #713f1247}.translation-balloon.svelte-e9xccr .close:where(.svelte-e9xccr){position:absolute;top:.1rem;right:.15rem;padding:.1rem .3rem;border:none;background:transparent;font-size:1rem}.translation-balloon.svelte-e9xccr p:where(.svelte-e9xccr){margin:0;font-size:.82rem}.translation-balloon.svelte-e9xccr .source:where(.svelte-e9xccr){color:#57534e;margin-right:1.1rem}.translation-balloon.svelte-e9xccr .translated:where(.svelte-e9xccr){margin-top:.3rem;font-weight:700;color:#1f2937}.reader-highlight{border-radius:2px}.highlight-jump-focus{stroke-linecap:round}@media(max-width:980px){.reader-stage.dual-page-mode.svelte-e9xccr:after{display:none}.workspace.svelte-e9xccr,.workspace.panel-hidden.svelte-e9xccr{grid-template-columns:1fr}.side-panel.svelte-e9xccr{position:fixed;top:0;left:0;bottom:0;z-index:46;width:min(22rem,calc(100vw - 3rem));max-width:100%;border-right:1px solid rgba(148,163,184,.3);border-bottom:none;box-shadow:0 10px 24px #0f172a1f;transform:translate(0);transition:transform .18s ease}.workspace.panel-hidden.svelte-e9xccr .side-panel:where(.svelte-e9xccr){display:grid;transform:translate(-100%);opacity:1;pointer-events:none}.side-panel-backdrop.svelte-e9xccr{display:block;position:fixed;inset:0;z-index:45;border:0;padding:0;background:#0f172a29;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}}.reader-progress.svelte-e9xccr{position:absolute;left:0;right:0;bottom:0;z-index:4;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.7rem;padding:.24rem .7rem .3rem;border-top:1px solid rgba(148,163,184,.26);background:color-mix(in oklab,var(--panel-bg),#ffffff 10%);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.reader-progress.svelte-e9xccr p:where(.svelte-e9xccr){margin:0;font-size:.76rem;font-variant-numeric:tabular-nums;opacity:.84}.bar-track.svelte-e9xccr{border:none;padding:0;width:100%;height:.44rem;border-radius:999px;background:#94a3b840;overflow:hidden;cursor:pointer}.bar-fill.svelte-e9xccr{height:100%;border-radius:inherit;background:linear-gradient(90deg,#06b6d4,#3b82f6 50%,#6366f1);box-shadow:0 0 10px #3b82f659;transition:width .14s ease-out}
