:root{font-family:Noto Sans TC,PingFang TC,Microsoft JhengHei,Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#111827;background:#f4f7ff;color-scheme:light;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html{scroll-behavior:smooth}html,body,#root{width:100%;min-height:100%}html,body{margin:0;padding:0;min-width:320px;overflow-x:hidden}body{background:radial-gradient(circle at 100% 0%,#dbeafe,#dbeafe00 45%),radial-gradient(circle at 0% 100%,#e0e7ff,#e0e7ff00 40%),#f4f7ff;color:#0f172a;-webkit-tap-highlight-color:transparent}html[data-theme=dark] body{background:radial-gradient(circle at 100% 0%,#1e293ba6,#0f172a00 45%),radial-gradient(circle at 0% 100%,#312e8161,#0f172a00 40%),#020617;color:#e2e8f0}html[data-theme=dark]{color-scheme:dark}::selection{background:#4f46e533;color:inherit}button,input{font:inherit}.splash{min-height:100vh;display:grid;place-items:center;color:#475569;font-size:1rem}.auth-layout{min-height:100vh;display:grid;place-items:center;padding:1rem}.glass-card{width:min(100%,440px);border-radius:24px;padding:1.2rem;background:#ffffffd1;border:1px solid rgba(255,255,255,.85);box-shadow:0 22px 40px #0f172a1f,inset 0 1px #ffffff8c;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.auth-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.95rem}.auth-card-copy{display:grid;gap:.35rem;min-width:0}.brand{margin:0;font-size:.72rem;letter-spacing:.14em;font-weight:700;color:#4f46e5;text-transform:uppercase}.glass-card h1{margin:.4rem 0;font-size:1.55rem}.muted{margin:0;color:#64748b;font-size:.9rem}.stack{display:grid;gap:.8rem}.field{display:grid;gap:.35rem}.field span{font-size:.82rem;color:#475569;font-weight:600}input{width:100%;border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding:.72rem .82rem;min-height:var(--tap-size);color:#0f172a;font-family:inherit;font-size:.92rem;line-height:1.3}select{width:100%;border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding:.72rem 2.2rem .72rem .82rem;min-height:var(--tap-size);color:#0f172a;font-family:inherit;font-size:.92rem;font-weight:600;line-height:1.3;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#94a3b8 50%),linear-gradient(135deg,#94a3b8 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%;background-size:6px 6px,6px 6px;background-repeat:no-repeat}select:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f129}input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f129}.btn-primary,.btn-secondary,.btn-ghost,.btn-danger{border:0;border-radius:12px;padding:.68rem .9rem;min-height:var(--tap-size);font-weight:700;cursor:pointer;transition:transform .16s ease,opacity .16s ease}button:focus-visible,input:focus-visible{outline:2px solid #6366f1;outline-offset:2px}select:focus-visible{outline:2px solid #6366f1;outline-offset:2px}.btn-primary{color:#fff;background:linear-gradient(135deg,#4f46e5,#7c3aed)}.btn-secondary{color:#1e293b;background:#e2e8f0}.btn-ghost{color:#334155;background:transparent}button:hover{transform:translateY(-1px);opacity:.95}button:disabled{opacity:.55;transform:none;cursor:not-allowed}.error-msg{color:#dc2626;font-size:.88rem}.auth-theme-toggle{margin:0;flex:0 0 auto}.app-shell{min-height:100vh;min-height:100dvh;padding-bottom:calc(var(--mobile-nav-height) + var(--safe-bottom))}.app-shell--reader .topbar{display:none}.topbar{position:sticky;top:0;z-index:20;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:.9rem;background:#f4f7ffeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid #dbe3f4;padding:.9rem}.topbar--reader{padding:.62rem .75rem;gap:.45rem}.brand--reader{font-size:.66rem;letter-spacing:.1em}.page-title--reader{margin-top:.16rem;font-size:.96rem;line-height:1.28}.page-title{margin:.3rem 0 0;font-size:1.06rem}.top-actions{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}.session-actions{display:flex;gap:.4rem;width:auto;margin-left:auto;justify-content:flex-end}.session-actions .btn-ghost{flex:0 0 auto}.icon-action-btn{width:var(--tap-size);min-width:var(--tap-size);height:var(--tap-size);padding:0;border-radius:14px;border:1px solid #dbe3f4;background:#f8fafceb;display:inline-flex;align-items:center;justify-content:center;box-shadow:inset 0 1px #ffffffb3;flex:0 0 auto}.icon-action-btn svg{width:1.15rem;height:1.15rem}.icon-action-btn--danger{color:#b91c1c;border-color:#fecaca;background:#fff5f5}.top-actions .badge{width:100%;text-align:center}@media(max-width:767px){.topbar--reader{padding:.52rem .62rem;gap:.3rem}.topbar--reader .brand--reader{display:none}.topbar--reader .page-title--reader{margin:0;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions--reader{display:none}.content.reader-mode{padding:.55rem}.reader-panel{gap:.45rem}.reader-chapter-progress{display:none}.reader-content{height:auto;min-height:0;max-height:none;padding:.92rem;padding-bottom:calc(var(--reader-dock-height, 96px) + 1rem)}.reader-content--expanded{height:auto;min-height:0;max-height:none}@supports (height: 100dvh){.reader-content,.reader-content--expanded{height:auto}}.reader-content-footer{margin-top:.72rem}.top-actions .badge{overflow:hidden;max-height:44px;opacity:1;transform:translateY(0);transition:max-height .22s ease,opacity .2s ease,transform .2s ease}.badge--hidden{max-height:0;opacity:0;transform:translateY(-6px);pointer-events:none;margin:0;padding-top:0;padding-bottom:0;border-width:0}.session-actions{overflow:hidden;max-height:56px;opacity:1;transform:translateY(0);transition:max-height .22s ease,opacity .2s ease,transform .2s ease}.session-actions--hidden{max-height:0;opacity:0;transform:translateY(-6px);pointer-events:none}}.badge{padding:.35rem .58rem;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:.74rem;font-weight:700;white-space:nowrap}.toast{margin:.8rem .9rem 0;padding:.66rem .85rem;border-radius:10px;font-size:.85rem;color:#1e293b;background:#e0f2fe;border:1px solid #bae6fd}.toast.error{background:#fee2e2;border-color:#fecaca;color:#7f1d1d}.content{padding:.9rem}.content.reader-mode{padding-top:.7rem}.card{background:#ffffffe6;border:1px solid #e2e8f0;border-radius:16px;padding:.9rem;box-shadow:0 16px 36px #0f172a0f}.card h3{margin:0;font-size:1.03rem}.hero-card{position:relative;overflow:hidden;display:grid;gap:1rem;padding:1.1rem;background:linear-gradient(160deg,#4f46e51f,#fffffff5 46%,#f472b61a),#ffffffeb;border:1px solid rgba(165,180,252,.55);box-shadow:0 24px 48px #4f46e51f}.hero-card:before{content:"";position:absolute;right:-48px;bottom:-64px;width:170px;height:170px;border-radius:999px;background:radial-gradient(circle,#818cf847,#818cf800);pointer-events:none}.hero-copy,.hero-side{position:relative;z-index:1}.hero-copy{display:grid;gap:.9rem}.hero-eyebrow,.mini-label{margin:0;font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#4f46e5}.hero-title{margin:0;font-size:1.55rem;line-height:1.2;color:#0f172a}.hero-text{margin:0;font-size:.96rem;line-height:1.72;color:#334155}.hero-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.metric-card,.hero-continue,.hero-empty-state,.progress-highlight,.status-tile{border:1px solid #dbeafe;background:#fffc;box-shadow:inset 0 1px #ffffffb3}.metric-card,.hero-continue,.hero-empty-state,.list-item,.progress-highlight,.status-tile,.result-card,.book-cover-frame{transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.metric-card{display:grid;gap:.18rem;padding:.85rem;border-radius:18px}.metric-card strong{font-size:1.28rem;color:#1e1b4b}.metric-card span{font-size:.8rem;color:#475569}.metric-card--wide{grid-column:1 / -1}.hero-side{display:grid}.hero-continue,.hero-empty-state{align-self:stretch;display:grid;gap:.55rem;padding:1rem;border-radius:20px}.hero-continue strong,.hero-empty-state strong{color:#0f172a;font-size:1.05rem;line-height:1.4}.discover-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.85rem;margin-bottom:.85rem}.discover-card-head--stack-mobile{margin-bottom:.95rem}.discover-grid{display:grid;gap:.9rem}.source-grid{display:grid;gap:.7rem}.source-card{display:grid;gap:.72rem;padding:.92rem;border-radius:18px;border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fafcf5,#fffffffa);box-shadow:0 10px 24px #0f172a0d,inset 0 1px #ffffffc7}.source-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.source-card-head h4{margin:.18rem 0 0;font-size:1rem;color:#0f172a}.source-card--ready{border-color:#6366f13d}.source-card--experimental{border-color:#f59e0b47}.source-card--blocked{border-color:#fb923c4d;background:linear-gradient(180deg,#fff7edf5,#fffffffa)}.source-card.is-disabled{opacity:.8}.source-chip--enabled{background:#e0f2fe;border-color:#bae6fd;color:#075985}.source-chip--disabled{background:#f1f5f9;border-color:#cbd5e1;color:#475569}.source-note{margin:0;padding:.68rem .75rem;border-radius:14px;border:1px dashed #fdba74;background:#fff7edf5;color:#9a3412;font-size:.82rem;line-height:1.55}.source-homepage{margin:0;font-size:.78rem;line-height:1.55;color:#6366f1;overflow-wrap:anywhere}.source-footnote{font-size:.82rem;line-height:1.55}.warning-card{border-color:#fed7aa;background:linear-gradient(180deg,#fffbebfa,#fffffffa);border-radius:14px;padding:1rem}.warning-list{margin-top:.8rem;display:grid;gap:.55rem}.warning-item{margin:0;padding:.75rem .85rem;border-radius:14px;border:1px solid #fdba74;background:#fff7edf2;color:#9a3412;font-size:.84rem;line-height:1.6;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word;overflow-x:hidden}@media(max-width:767px){.topbar:not(.topbar--reader){padding:.76rem .82rem .68rem;gap:.72rem}.page-title:not(.page-title--reader){font-size:1rem;line-height:1.18}.content:not(.reader-mode){padding:.72rem .72rem .88rem}.content:not(.reader-mode)>.stack{gap:.72rem}.content:not(.reader-mode) .card{padding:.85rem;border-radius:15px}.hero-card{gap:.82rem;padding:.96rem;border-radius:24px;min-height:clamp(420px,calc(100vh - 252px - var(--safe-bottom)),540px);align-content:start}@supports (height: 100dvh){.hero-card{min-height:clamp(420px,calc(100dvh - 252px - var(--safe-bottom)),540px)}}.hero-card:before{right:-56px;bottom:-72px;width:152px;height:152px}.hero-copy{gap:.72rem}.hero-eyebrow,.mini-label{font-size:.68rem;letter-spacing:.13em}.hero-title{max-width:11ch;font-size:clamp(1.34rem,5vw,1.62rem);line-height:1.14}.hero-text{max-width:34ch;font-size:.92rem;line-height:1.62}.hero-side{align-content:start}.hero-continue,.hero-empty-state{gap:.5rem;padding:.92rem;border-radius:18px}.hero-continue strong,.hero-empty-state strong{font-size:1rem;line-height:1.35}.hero-continue .btn-primary{width:100%}.hero-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.metric-card{gap:.14rem;padding:.72rem .68rem;border-radius:16px}.metric-card--wide{grid-column:auto}.metric-card strong{font-size:1.02rem;line-height:1.06}.metric-card span{font-size:.72rem;line-height:1.3}.discover-card-head{gap:.65rem;margin-bottom:.72rem}.discover-card-head--stack-mobile{flex-direction:column;align-items:stretch}.discover-grid{gap:.78rem}.source-grid{gap:.62rem}.source-card{gap:.65rem;padding:.84rem;border-radius:16px}.source-card-head{flex-direction:column;align-items:stretch}.source-chip{width:fit-content}.warning-item{padding:.72rem .78rem}}.discover-divider{width:100%;height:1px;background:linear-gradient(90deg,transparent,#dbeafe,transparent)}.search-result-grid{grid-template-columns:1fr}.result-card{gap:.55rem;background:linear-gradient(180deg,#f8fbff,#fff)}.result-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.55rem}.meta-chips{display:flex;flex-wrap:wrap;gap:.38rem}.meta-chips--compact{justify-content:flex-end;flex-shrink:0}.meta-chip{display:inline-flex;align-items:center;min-height:28px;padding:.25rem .58rem;border-radius:999px;border:1px solid #c7d2fe;background:#eef2ff;color:#4338ca;font-size:.72rem;font-weight:700}.result-latest{margin:0;font-size:.84rem;line-height:1.55;color:#334155}.book-card,.book-hero{display:grid;gap:1rem}.book-cover-frame{width:min(100%,140px);aspect-ratio:2 / 3;border-radius:22px;overflow:hidden;border:1px solid #dbeafe;background:#e2e8f0}.book-cover{display:block;width:100%;height:100%;object-fit:cover}.book-cover--placeholder{display:grid;align-content:end;gap:.35rem;padding:.95rem;background:linear-gradient(180deg,#6366f1,#8b5cf6 58%,#312e81);color:#fff}.book-cover--placeholder span{font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.88}.book-cover--placeholder strong{font-size:1rem;line-height:1.35}.book-copy{display:grid;gap:.95rem}.book-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem;flex-wrap:wrap}.progress-highlight{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.92rem;border-radius:18px;background:linear-gradient(135deg,#e0e7ffe6,#fffffff5)}.progress-highlight-meter{flex:0 0 auto;min-width:84px;min-height:84px;padding:.75rem;border-radius:24px;border:1px solid #c7d2fe;background:#ffffffeb;display:grid;place-items:center;text-align:center}.progress-highlight-meter strong{font-size:1.45rem;line-height:1;color:#312e81}.progress-highlight-meter span{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#6366f1}.quick-actions-grid,.reader-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.status-tile{display:grid;gap:.18rem;padding:.78rem;border-radius:16px}.status-tile span{font-size:.75rem;font-weight:700;color:#475569}.status-tile strong{font-size:1.18rem;color:#0f172a}.status-tile small{color:#64748b;line-height:1.45}.reader-progress-track{width:100%;height:8px;border-radius:999px;overflow:hidden;background:#e2e8f0}.reader-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4f46e5,#8b5cf6);transition:width .22s ease}.intro{font-size:.9rem;line-height:1.65;color:#334155}.row-between{display:flex;justify-content:space-between;align-items:center;gap:.8rem}.icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:var(--tap-size);width:var(--tap-size);padding:0}.icon-refresh{width:1.2rem;height:1.2rem}.refresh-btn{flex:0 0 auto}.refresh-btn.is-spinning .icon-refresh{animation:spin .8s linear infinite}.list{margin-top:.7rem;display:grid;gap:.56rem}.list-item{width:100%;min-height:var(--tap-size);text-align:left;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:.65rem;display:grid;gap:.24rem}.list-item:hover{border-color:#c7d2fe;box-shadow:0 14px 28px #6366f114}.list-item strong{font-size:.95rem;color:#0f172a}.list-item span{font-size:.74rem;color:#64748b;overflow-wrap:anywhere}.library-item{display:grid;gap:.45rem}.library-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.library-open{margin:0}.btn-sm{padding:.45rem .65rem;font-size:.8rem}.btn-danger{border:1px solid #fecaca;color:#b91c1c;background:#fff1f2}.admin-account-submit,.admin-account-action-btn{white-space:nowrap}.chapter-tools{margin-top:.85rem;display:grid;gap:.58rem}.chapter-jump-form{display:flex;gap:.5rem;align-items:stretch}.chapter-jump-form .field{display:flex;align-items:stretch;flex:1;min-width:0}.chapter-jump-form .field span{flex-shrink:0}.chapter-jump-form input{flex:1;min-width:0;height:auto}.chapter-jump-form button{flex-shrink:0;height:auto;min-height:var(--tap-size)}.chapter-pagination{margin-top:.7rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;align-items:center}.chapter-page-info{grid-column:1 / -1;text-align:center;font-size:.82rem}.chapter-list{max-height:45vh;overflow:auto}.inline-form{display:grid;gap:.45rem}.account-row{border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:.72rem;display:grid;gap:.55rem}.reader-panel{display:grid;gap:.72rem}.reader-toolbar{display:grid;gap:.7rem}.reader-chapter-progress{margin:0}.reader-settings-panel{display:grid;gap:.7rem;overflow:visible}.reader-settings-panel--collapsed{gap:.6rem}.reader-toolbar-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.7rem}.reader-toolbar-head>div{min-width:0;flex:1 1 auto}.reader-toolbar-head h3,.reader-toolbar-head .muted{overflow:hidden;text-overflow:ellipsis}.reader-toolbar-head h3,.reader-toolbar-head .muted{white-space:nowrap}.reader-settings-toggle{white-space:nowrap;min-width:96px;flex:0 0 auto}.reader-settings-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.summary-chip{min-width:0;display:grid;gap:.18rem;padding:.72rem;border-radius:14px;border:1px solid #dbeafe;background:#f8fafceb}.summary-chip span{font-size:.72rem;font-weight:700;color:#64748b}.summary-chip strong{min-width:0;font-size:.98rem;line-height:1.2;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-settings-details{display:grid;gap:.7rem}.toolbar-grid{display:grid;gap:.55rem}.toolbar-grid label{display:grid;gap:.28rem;font-size:.8rem;color:#475569}.toolbar-grid input[type=range]{width:100%;padding:0;border:0;background:transparent}.theme-pills{display:flex;gap:.42rem}.theme-pills button{flex:1;border:1px solid #cbd5e1;border-radius:999px;background:#f1f5f9;padding:.4rem}.theme-pills .active{background:#4f46e5;border-color:#4f46e5;color:#fff}.reader-nav-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.reader-content{border-radius:16px;border:1px solid #e2e8f0;min-height:calc(var(--app-height, 100vh) - 330px);max-height:calc(var(--app-height, 100vh) - 206px - var(--safe-bottom));overflow:auto;padding:1.05rem}.reader-content--expanded{min-height:calc(var(--app-height, 100vh) - 286px);max-height:calc(var(--app-height, 100vh) - 162px - var(--safe-bottom))}@supports (height: 100dvh){.reader-content{min-height:calc(var(--app-height, 100dvh) - 330px);max-height:calc(var(--app-height, 100dvh) - 206px - var(--safe-bottom))}.reader-content--expanded{min-height:calc(var(--app-height, 100dvh) - 286px);max-height:calc(var(--app-height, 100dvh) - 162px - var(--safe-bottom))}}.reader-content pre{margin:0;font-family:Noto Sans TC,Microsoft JhengHei,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;color:inherit}.reader-content-footer{margin-top:1rem;padding-top:.8rem;border-top:1px dashed #cbd5e1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem}.reader-content.paper{background:#fffcf6;color:#2a2a2a}.reader-content.sepia{background:#f4ecd8;color:#4a3a20}.reader-content.dark{background:#0f172a;color:#dbeafe;border-color:#1e293b}.bottom-nav{position:fixed;left:.7rem;right:.7rem;bottom:calc(.7rem + (var(--safe-bottom) * .35));background:#fffffff2;border-top:1px solid #dbe3f4;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:.52rem .52rem calc(.52rem + var(--safe-bottom));display:grid;gap:.45rem;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:22px;box-shadow:0 20px 40px #0f172a24;justify-items:stretch;align-items:stretch}.bottom-nav--user{grid-template-columns:repeat(3,minmax(0,1fr))}.bottom-nav--admin{grid-template-columns:repeat(4,minmax(0,1fr))}.bottom-nav button{border-radius:10px;border:1px solid transparent;background:transparent;min-height:var(--tap-size);padding:.5rem;font-size:.8rem;color:#475569;width:100%;text-align:center;justify-content:center}@media(prefers-reduced-motion:reduce){button{transition:none}.refresh-btn.is-spinning .icon-refresh{animation:none}.session-actions,.top-actions .badge,.reader-settings-panel{transition:none!important}.skeleton,.book-cover-skeleton,.book-cover-skeleton-block,.splash-shimmer,.reader-panel-card--focus{animation:none!important}}.bottom-nav button.active{background:linear-gradient(135deg,#4f46e529,#7c3aed1f);color:#312e81;font-weight:700;border-color:#6366f138}html[data-theme=dark] .splash{color:#cbd5e1}html[data-theme=dark] .glass-card{background:#0f172ab3;border-color:#47556980;box-shadow:0 22px 40px #02061773,inset 0 1px #94a3b81f}html[data-theme=dark] .glass-card h1,html[data-theme=dark] .page-title,html[data-theme=dark] .card h3,html[data-theme=dark] .list-item strong,html[data-theme=dark] .account-row strong{color:#e2e8f0}html[data-theme=dark] .muted,html[data-theme=dark] .field span,html[data-theme=dark] .intro,html[data-theme=dark] .list-item span,html[data-theme=dark] .toolbar-grid label{color:#94a3b8}html[data-theme=dark] input{border-color:#334155;background:#0f172a;color:#e2e8f0}html[data-theme=dark] input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f13d}html[data-theme=dark] .btn-secondary{color:#e2e8f0;background:#1e293b}html[data-theme=dark] .btn-ghost{color:#cbd5e1}html[data-theme=dark] .icon-action-btn{background:#0f172adb;border-color:#334155;box-shadow:inset 0 1px #94a3b814}html[data-theme=dark] .icon-action-btn--danger{color:#fecaca;border-color:#7f1d1d;background:#450a0ae6}html[data-theme=dark] .btn-danger{border-color:#7f1d1d;color:#fecaca;background:#3f1010}html[data-theme=dark] .chapter-page-info{color:#94a3b8}html[data-theme=dark] .topbar{background:#0f172ad1;border-bottom-color:#1e293b}html[data-theme=dark] .badge{background:#1e1b4b;color:#c7d2fe}html[data-theme=dark] .toast{color:#dbeafe;background:#082f49;border-color:#0c4a6e}html[data-theme=dark] .toast.error{color:#fee2e2;background:#450a0a;border-color:#7f1d1d}html[data-theme=dark] .card,html[data-theme=dark] .list-item,html[data-theme=dark] .account-row{background:#0f172a;border-color:#1e293b}html[data-theme=dark] .card{box-shadow:0 20px 40px #02061747}html[data-theme=dark] .hero-card{background:linear-gradient(165deg,#4f46e538,#0f172af5 52%,#ec489924),#0f172aeb;border-color:#6366f147;box-shadow:0 28px 48px #02061759}html[data-theme=dark] .metric-card,html[data-theme=dark] .hero-continue,html[data-theme=dark] .hero-empty-state,html[data-theme=dark] .result-card,html[data-theme=dark] .progress-highlight,html[data-theme=dark] .progress-highlight-meter,html[data-theme=dark] .status-tile,html[data-theme=dark] .book-cover-frame,html[data-theme=dark] .source-card,html[data-theme=dark] .summary-chip{background:#0f172ac7;border-color:#334155;box-shadow:inset 0 1px #94a3b814}html[data-theme=dark] .hero-eyebrow,html[data-theme=dark] .mini-label,html[data-theme=dark] .hero-text,html[data-theme=dark] .metric-card span,html[data-theme=dark] .result-latest,html[data-theme=dark] .summary-chip span,html[data-theme=dark] .status-tile span,html[data-theme=dark] .status-tile small{color:#94a3b8}html[data-theme=dark] .hero-title,html[data-theme=dark] .metric-card strong,html[data-theme=dark] .hero-continue strong,html[data-theme=dark] .hero-empty-state strong,html[data-theme=dark] .source-card-head h4,html[data-theme=dark] .summary-chip strong,html[data-theme=dark] .status-tile strong,html[data-theme=dark] .progress-highlight-meter strong,html[data-theme=dark] .book-cover--placeholder strong{color:#f8fafc}html[data-theme=dark] .meta-chip{background:#1e1b4b;border-color:#312e81;color:#c7d2fe}html[data-theme=dark] .source-chip--enabled{background:#082f49;border-color:#0c4a6e;color:#bae6fd}html[data-theme=dark] .source-chip--disabled{background:#111827;border-color:#334155;color:#94a3b8}html[data-theme=dark] .source-card--blocked,html[data-theme=dark] .warning-card{background:linear-gradient(180deg,#311a0ab8,#0f172af0);border-color:#fb923c59}html[data-theme=dark] .source-note,html[data-theme=dark] .warning-item{background:#451a03c2;border-color:#fb923c66;color:#fdba74}html[data-theme=dark] .source-homepage{color:#a5b4fc}html[data-theme=dark] .discover-divider{background:linear-gradient(90deg,transparent,#1e293b,transparent)}html[data-theme=dark] .progress-highlight-meter span{color:#c7d2fe}html[data-theme=dark] .reader-progress-track{background:#172036}html[data-theme=dark] .list-item:hover{border-color:#4338ca;box-shadow:0 16px 28px #02061759}html[data-theme=dark] .theme-pills button{border-color:#334155;background:#0b1220;color:#cbd5e1}html[data-theme=dark] .theme-pills .active{background:#4f46e5;border-color:#4f46e5;color:#fff}html[data-theme=dark] .reader-content{border-color:#1e293b}html[data-theme=dark] .reader-content-footer{border-top-color:#334155}html[data-theme=dark] .reader-content.paper{background:#111827;color:#e5e7eb}html[data-theme=dark] .reader-content.sepia{background:#2f2618;color:#f5e8c8}html[data-theme=dark] .bottom-nav{background:#020617eb;border-top-color:#1e293b;box-shadow:0 20px 40px #02061766}html[data-theme=dark] .bottom-nav button{color:#94a3b8}html[data-theme=dark] .bottom-nav button.active{background:linear-gradient(135deg,#4f46e5a6,#6366f152);color:#e0e7ff;border-color:#818cf847}@media(min-width:768px){.app-shell{max-width:880px;margin:0 auto;padding-bottom:20px}.hero-card{grid-template-columns:minmax(0,1.55fr) minmax(260px,.9fr);align-items:stretch;padding:1.3rem}.hero-title{font-size:2rem;max-width:14ch}.metric-card--wide{grid-column:auto}.discover-grid{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start}.discover-divider{width:1px;height:auto;align-self:stretch;background:linear-gradient(180deg,transparent,#dbeafe,transparent)}.search-result-grid,.source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-hero{grid-template-columns:148px minmax(0,1fr);align-items:start}.content{padding:1rem}.topbar{flex-direction:row;justify-content:space-between;align-items:flex-start;border-radius:0 0 16px 16px}.top-actions{flex-wrap:nowrap}.session-actions{width:auto}.session-actions .btn-ghost{flex:0 0 auto}.top-actions .badge{width:auto;text-align:left}.bottom-nav{position:sticky;bottom:0;margin:1rem;left:auto;right:auto;border-radius:14px;border:1px solid #dbe3f4}.inline-form{grid-template-columns:1fr 1fr auto;align-items:center}.chapter-jump-form{display:flex;gap:.5rem;align-items:stretch}.chapter-jump-form .field{display:flex;align-items:stretch;flex:1;min-width:0}.chapter-jump-form input{flex:1;height:100%}.chapter-jump-form button{height:100%;min-height:var(--tap-size)}.chapter-pagination{grid-template-columns:auto auto 1fr auto auto}.chapter-page-info{grid-column:auto;text-align:center}.reader-toolbar{grid-template-columns:1fr}.reader-toolbar-head{align-items:center}.toolbar-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.reader-content-footer{display:grid}}@media(max-width:767px){.reader-toolbar-head{flex-direction:column;align-items:stretch}.reader-toolbar-head h3,.reader-toolbar-head .muted,.summary-chip strong{white-space:normal}.reader-settings-toggle{width:100%;min-width:0}.theme-pills{flex-wrap:wrap}.theme-pills button{min-width:calc(33.333% - .3rem)}.reader-content-footer__meta{text-align:center;display:flex;align-items:center;justify-content:center;font-size:.85rem;color:inherit;opacity:.85}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#root{--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--surface-0: rgba(255, 255, 255, .78);--surface-1: rgba(255, 255, 255, .92);--surface-2: rgba(248, 250, 252, .92);--border-soft: rgba(148, 163, 184, .18);--border-strong: rgba(129, 140, 248, .24);--text-strong: #0f172a;--text-muted: #64748b;--brand-start: #5b5df0;--brand-end: #8b5cf6;--accent-pink: #ec4899;--shadow-lg: 0 28px 60px rgba(15, 23, 42, .12);--shadow-md: 0 18px 36px rgba(15, 23, 42, .08)}.stack--sm{gap:.55rem}.stack--lg{gap:1rem}.stack--xl{gap:1.3rem}.btn-icon,.icon-action-btn{width:var(--tap-size);min-width:var(--tap-size);height:var(--tap-size);padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:14px}.btn-primary,.btn-secondary,.btn-ghost,.btn-danger,.bottom-nav button,.reader-dock button,.reader-utility-bar button,.list-item{-webkit-tap-highlight-color:transparent}.btn-primary,.btn-secondary,.btn-ghost,.btn-danger{display:inline-flex;align-items:center;justify-content:center;gap:.45rem}.btn-primary svg,.btn-secondary svg,.btn-ghost svg,.btn-danger svg,.feature-pill__icon svg,.install-banner__icon svg,.bottom-nav button svg,.reader-dock button svg,.reader-utility-bar button svg{width:1.2rem;height:1.2rem;flex:0 0 auto}.btn-ghost{border:1px solid transparent}.btn-ghost.btn-icon{border-color:#94a3b82e;background:#ffffffc2;box-shadow:inset 0 1px #ffffffa8}.card{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.splash{padding:calc(1.4rem + var(--safe-top)) 1rem calc(1.4rem + var(--safe-bottom));background:radial-gradient(circle at 100% 0%,rgba(129,140,248,.28),transparent 44%),radial-gradient(circle at 0% 100%,rgba(236,72,153,.14),transparent 36%),linear-gradient(180deg,#f8fafff0,#f0f4ffeb)}.splash-panel{width:min(100%,480px);padding:1.35rem;border-radius:28px;border:1px solid rgba(255,255,255,.8);background:#ffffffc7;box-shadow:0 28px 60px #4f46e524,inset 0 1px #ffffffb3;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.splash-panel h1{margin:.45rem 0 .35rem;font-size:clamp(1.5rem,5vw,1.95rem);line-height:1.12;color:var(--text-strong)}.splash-shimmer{margin-top:1rem;height:10px;border-radius:999px;background:linear-gradient(90deg,#e0e7ff85,#6366f180,#e0e7ff85);background-size:220% 100%;animation:shimmer 1.6s linear infinite}.auth-layout{padding:calc(1rem + var(--safe-top)) 1rem calc(1rem + var(--safe-bottom));background:radial-gradient(circle at 100% 0%,rgba(99,102,241,.2),transparent 34%),radial-gradient(circle at 0% 100%,rgba(236,72,153,.1),transparent 30%),linear-gradient(180deg,#f4f7fff5,#ecf2ffeb)}.auth-card{width:min(100%,1040px);display:grid;gap:1.4rem;padding:clamp(1rem,3vw,1.45rem);border-color:#bfdbfead;background:linear-gradient(180deg,#ffffffeb,#f8faffe6),#ffffffdb;box-shadow:0 28px 60px #4f46e51f,inset 0 1px #ffffffb8}.auth-brand-block{display:grid;gap:.2rem}.auth-kicker{margin:0;color:#6366f1;font-size:.82rem;font-weight:700;line-height:1.45}.auth-stage{display:grid;gap:1.2rem}.auth-copy-main{display:grid;gap:.7rem;max-width:680px}.auth-badge{width:fit-content;min-height:32px;padding:.35rem .72rem;border-radius:999px;border:1px solid rgba(129,140,248,.2);background:#eef2ffdb;color:#4338ca;font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.auth-copy-main h1{margin:0;font-size:clamp(1.95rem,6vw,3.1rem);line-height:1.06;letter-spacing:-.03em;color:var(--text-strong)}.auth-copy-main .muted{max-width:54ch;font-size:.96rem;line-height:1.72}.auth-content{display:grid;gap:1rem}.auth-form-card,.auth-highlight,.feature-pill,.inline-note{border:1px solid rgba(129,140,248,.14);background:linear-gradient(180deg,#ffffffd6,#f8fafce0);box-shadow:0 16px 32px #0f172a0f,inset 0 1px #ffffffb8}.auth-form-card{display:grid;gap:.95rem;padding:1.05rem;border-radius:24px}.auth-form-head{display:grid;gap:.28rem}.auth-form{gap:.9rem}.auth-form input{border-color:#bfdbfeeb;background:#f8fafff0;box-shadow:inset 0 1px #ffffffb8}.auth-form input::placeholder{color:#94a3b8}.auth-submit{width:100%;min-height:52px;box-shadow:0 18px 34px #6366f138}.auth-side,.auth-feature-list,.auth-note-stack{display:grid;gap:.75rem}.auth-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.auth-highlight{display:grid;gap:.28rem;padding:.82rem .88rem;border-radius:18px}.auth-highlight strong{color:var(--text-strong);font-size:.9rem;line-height:1.3}.auth-highlight span{color:var(--text-muted);font-size:.78rem;line-height:1.45}.feature-pill,.inline-note{display:grid;grid-template-columns:auto 1fr;gap:.8rem;padding:.9rem .95rem;border-radius:20px}.inline-note{grid-template-columns:1fr auto;align-items:center}.feature-pill strong,.inline-note strong{display:block;margin-bottom:.25rem;color:var(--text-strong)}.feature-pill p,.inline-note p,.helper-text{margin:0;color:var(--text-muted);line-height:1.6;font-size:.88rem}.feature-pill__icon{width:2.35rem;height:2.35rem;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#5b5df029,#ec489924);color:#4338ca}.inline-note--warm{border-color:#fbbf2447;background:#fffbebc7}.inline-note--warning{border-color:#fb923c3d;background:#fff7edd6}.topbar{position:sticky;top:0;padding:calc(.9rem + var(--safe-top)) .95rem .85rem;background:#f6f8ffc2;border-bottom:1px solid rgba(203,213,225,.45);box-shadow:0 12px 30px #0f172a0a}.topbar__main{min-width:0;display:grid;gap:.3rem}.topbar__eyebrow,.section-eyebrow{margin:0;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#6366f1}.page-title,.section-title{margin:0;color:var(--text-strong);line-height:1.16}.page-subtitle,.section-subtitle{margin:0;color:var(--text-muted);line-height:1.55;font-size:.9rem}.topbar__actions{display:grid;gap:.75rem}.topbar__status,.topbar__cluster,.banner-stack,.status-state__actions,.install-banner__actions{display:flex;flex-wrap:wrap;gap:.5rem}.topbar__cluster{justify-content:flex-end}.topbar__actions--hidden{max-height:0;opacity:0;overflow:hidden;pointer-events:none}.pill{display:inline-flex;align-items:center;gap:.35rem;min-height:32px;padding:.25rem .7rem;border-radius:999px;border:1px solid rgba(148,163,184,.16);background:#ffffffbd;color:#334155;font-size:.76rem;font-weight:700}.pill--brand{background:#e0e7ffeb;border-color:#818cf83d;color:#4338ca}.pill--success{background:#dcfce7eb;border-color:#4ade8047;color:#166534}.pill--warning{background:#fff7edf2;border-color:#fb923c4d;color:#9a3412}.toast-stack{position:fixed;top:calc(.55rem + var(--safe-top));left:0;right:0;z-index:35;display:grid;gap:.55rem;padding:0 .9rem;pointer-events:none}.toast{margin:0;pointer-events:auto;border-radius:16px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.toast--success{background:#e0f2feeb;border-color:#7dd3fc80;color:#0c4a6e}.toast--error{background:#fee2e2f5;border-color:#fca5a580;color:#7f1d1d}.banner-stack{padding:.85rem .9rem 0;display:grid}.install-banner{display:grid;gap:.8rem;padding:.95rem 1rem;border-radius:20px;border:1px solid rgba(129,140,248,.18);background:#ffffffbf;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:var(--shadow-md)}.install-banner__copy{display:grid;grid-template-columns:auto 1fr;gap:.8rem}.install-banner__copy strong{display:block;margin-bottom:.22rem;color:var(--text-strong)}.install-banner__copy p{margin:0;color:var(--text-muted);line-height:1.55;font-size:.88rem}.install-banner__icon{width:2.5rem;height:2.5rem;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:#ffffffad;color:#4338ca}.install-banner--brand{background:linear-gradient(135deg,#5b5df021,#ffffffd1 48%,#ec48991a)}.install-banner--warm{border-color:#facc1542;background:linear-gradient(180deg,#fffbebf2,#ffffffd1)}.install-banner--warning{border-color:#fb923c3d;background:linear-gradient(180deg,#fff7edf2,#ffffffd1)}.content{padding:.95rem .9rem 1rem}.content--reader{padding-top:.7rem}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.9rem}.section-head--compact{gap:.65rem}.section-head button{cursor:pointer;position:relative;z-index:1}[hidden]{display:none!important}.chapter-tools__header-actions{display:flex;align-items:center;gap:.5rem}.composer-grid,.result-grid,.status-grid,.library-grid,.admin-grid,.reader-panels-grid,.reader-overview__stats{display:grid;gap:.8rem}.search-form,.url-form{padding:.9rem;border-radius:18px;border:1px solid rgba(129,140,248,.14);background:linear-gradient(180deg,#f8faffeb,#fffffff0)}.result-grid,.search-result-grid{display:grid;grid-template-columns:1fr;gap:.75rem}.result-card,.progress-card,.reader-panel-card,.reader-overview,.reader-main-card,.status-state{position:relative;overflow:hidden}.result-card--skeleton,.progress-card{display:grid;gap:.75rem}.progress-card{background:linear-gradient(180deg,#f8fafff5,#fffffffa)}.progress-card__body,.progress-card__meter{display:grid;gap:.7rem}.book-cover-skeleton,.book-cover-skeleton-block,.skeleton{display:block;position:relative;overflow:hidden;background:linear-gradient(90deg,#e2e8f0cc,#f8fafcf5,#e2e8f0cc);background-size:220% 100%;animation:shimmer 1.4s linear infinite}.skeleton{width:100%;border-radius:12px}.skeleton--title{height:1.25rem;max-width:72%}.skeleton--line{height:.92rem}.skeleton--chip-row{height:2rem;max-width:56%}.skeleton--paragraph{height:5.2rem}.skeleton--card{height:132px}.book-cover-skeleton,.book-cover-skeleton-block{width:100%;height:100%;min-height:210px;border-radius:22px}.book-cover-frame{position:relative}.book-cover-frame.is-loading .book-cover{opacity:0}.book-cover-frame.is-ready .book-cover{opacity:1}.book-cover{transition:opacity .24s ease}.status-state{display:grid;gap:1rem;padding:1rem;border-radius:24px;border:1px solid rgba(148,163,184,.18);background:#ffffffdb;box-shadow:var(--shadow-md)}.status-state__copy{display:grid;grid-template-columns:auto 1fr;gap:.8rem;align-items:flex-start}.status-state__copy h4{margin:0 0 .25rem;font-size:1rem;color:var(--text-strong)}.status-state__copy p{margin:0;line-height:1.62;color:var(--text-muted)}.status-state__dot{width:.78rem;height:.78rem;margin-top:.25rem;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 6px #94a3b829}.status-state--success .status-state__dot{background:#22c55e;box-shadow:0 0 0 6px #22c55e24}.status-state--warning .status-state__dot{background:#f59e0b;box-shadow:0 0 0 6px #f59e0b26}.status-state--error .status-state__dot{background:#ef4444;box-shadow:0 0 0 6px #ef44441f}.status-state--success{border-color:#22c55e29;background:#f0fdf4eb}.status-state--warning{border-color:#f59e0b2e;background:#fffbebf0}.status-state--error{border-color:#ef444429;background:#fef2f2f0}.chapter-filter-row,.reader-layout,.reader-catalog{display:grid;gap:.8rem}.row-between--start{align-items:flex-start}.library-grid,.admin-grid{grid-template-columns:1fr}.load-more-wrap{display:flex;justify-content:center}.reader-layout{padding-bottom:.25rem}.reader-overview,.reader-main-card,.reader-panel-card{padding:1rem;border-radius:24px}.reader-overview-toggle{white-space:nowrap;border-color:#6366f133}.reader-panel-card{scroll-margin-top:104px}.reader-panel-card--focus{animation:panel-focus-pulse .88s ease}.reader-overview{display:grid;gap:.9rem;background:linear-gradient(160deg,#5b5df01a,#fffffff5 52%,#ec489914)}.reader-overview__head{display:flex;justify-content:space-between;align-items:flex-start;gap:.7rem}.reader-overview__head>div{min-width:0}.reader-overview--collapsed{gap:.55rem}.reader-main-card{display:grid;gap:.85rem}.reader-inline-loading{padding:.8rem .9rem;border-radius:16px;border:1px solid rgba(129,140,248,.18);background:#eef2ffd6;color:#4338ca;font-size:.88rem;font-weight:700}.reader-utility-bar,.reader-dock{position:fixed;left:.75rem;right:.75rem;bottom:calc(.75rem + (var(--safe-bottom) * .35));z-index:25;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;padding:.55rem .55rem calc(.55rem + var(--safe-bottom));border-radius:24px;border:1px solid rgba(148,163,184,.14);background:#ffffffd6;box-shadow:0 24px 48px #0f172a29;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);justify-items:stretch;align-items:stretch}.reader-utility-bar button,.reader-dock button{min-height:52px;padding:.55rem .35rem;border-radius:16px;border:1px solid transparent;background:transparent;color:#475569;font-weight:700;display:grid;gap:.22rem;place-items:center;align-content:center;line-height:1.1;width:100%;text-align:center}.reader-dock button svg,.reader-utility-bar button svg{width:1.45rem;height:1.45rem}.reader-dock__chapter-nav{display:inline-flex!important;align-items:center;justify-content:center;gap:.34rem}.reader-dock__chapter-nav svg{width:1.2rem!important;height:1.2rem!important}.reader-utility-bar button.active,.reader-dock button.active{background:linear-gradient(135deg,#5b5df026,#8b5cf61f);border-color:#6366f12e;color:#312e81}.reader-sheet-backdrop{position:fixed;inset:0;z-index:39;border:0;background:#0f172a61;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.reader-sheet{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:0 0 calc(.85rem + var(--safe-bottom))}.reader-sheet__panel{margin:0 auto;width:min(100%,760px);max-height:min(78vh,720px);overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);border-radius:28px 28px 0 0;border:1px solid rgba(148,163,184,.18);background:#fffffff0;box-shadow:0 -12px 40px #0f172a38;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.reader-sheet__head,.reader-sheet__body{padding:1rem}.reader-sheet__head{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem;border-bottom:1px solid rgba(226,232,240,.8)}.reader-sheet__body{overflow:auto}.list-item--active{border-color:#6366f147;background:linear-gradient(135deg,#e0e7ffb8,#ffffffeb);box-shadow:0 18px 28px #6366f11a}.chapter-list--compact{max-height:min(44vh,420px)}.bottom-nav{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.bottom-nav button{display:grid;gap:.22rem;place-items:center;align-content:center;line-height:1.1;width:100%;text-align:center}.bottom-nav button span,.reader-dock button span{justify-self:center;text-align:center}.bottom-nav button span[aria-hidden=true]{display:inline-flex;align-items:center;justify-content:center;line-height:0}.reader-content-footer button svg{width:1.32rem;height:1.32rem}.reader-content-footer .btn-ghost{border:1px solid rgba(148,163,184,.35);background:#f1f5f9b8}.reader-content-footer .btn-secondary{border:1px solid rgba(148,163,184,.2)}.reader-content-footer--desktop{grid-template-columns:minmax(0,1fr) minmax(176px,.92fr) minmax(0,1fr)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}html[data-theme=dark] .splash{background:radial-gradient(circle at 100% 0%,rgba(91,93,240,.22),transparent 44%),radial-gradient(circle at 0% 100%,rgba(236,72,153,.12),transparent 36%),linear-gradient(180deg,#020617f5,#090d18f0)}html[data-theme=dark] .splash-panel,html[data-theme=dark] .install-banner,html[data-theme=dark] .status-state,html[data-theme=dark] .reader-sheet__panel,html[data-theme=dark] .auth-form-card,html[data-theme=dark] .auth-highlight,html[data-theme=dark] .feature-pill,html[data-theme=dark] .inline-note,html[data-theme=dark] .btn-ghost.btn-icon,html[data-theme=dark] .search-form,html[data-theme=dark] .url-form,html[data-theme=dark] .progress-card,html[data-theme=dark] .reader-overview{background:#0f172ad6;border-color:#334155e6;box-shadow:0 24px 48px #02061752,inset 0 1px #94a3b814}html[data-theme=dark] .auth-card{background:linear-gradient(180deg,#0f172af0,#080f1ef5),#0f172aeb;border-color:#6366f138;box-shadow:0 28px 60px #0206176b,inset 0 1px #94a3b814}html[data-theme=dark] #root{--text-strong: #f8fafc;--text-muted: #cbd5e1}html[data-theme=dark] .auth-badge{background:linear-gradient(135deg,#4338ca8f,#6366f173);border-color:#a5b4fcb8;color:#f8fafc}html[data-theme=dark] .splash-panel h1,html[data-theme=dark] .page-subtitle,html[data-theme=dark] .section-subtitle,html[data-theme=dark] .helper-text,html[data-theme=dark] .install-banner__copy p,html[data-theme=dark] .status-state__copy p,html[data-theme=dark] .feature-pill p,html[data-theme=dark] .inline-note p{color:#94a3b8}html[data-theme=dark] .auth-kicker,html[data-theme=dark] .auth-badge,html[data-theme=dark] .topbar__eyebrow,html[data-theme=dark] .section-eyebrow{color:#c7d2fe}html[data-theme=dark] .auth-copy-main .muted,html[data-theme=dark] .section-subtitle,html[data-theme=dark] .helper-text,html[data-theme=dark] .feature-pill p,html[data-theme=dark] .inline-note p,html[data-theme=dark] .auth-highlight span,html[data-theme=dark] .install-banner__copy p{color:#cbd5e1}html[data-theme=dark] .auth-highlight strong,html[data-theme=dark] .feature-pill strong,html[data-theme=dark] .inline-note strong,html[data-theme=dark] .section-title,html[data-theme=dark] .page-title,html[data-theme=dark] .auth-copy-main h1,html[data-theme=dark] .auth-form-head .section-title{color:#f8fafc}html[data-theme=dark] .auth-form-head .section-subtitle,html[data-theme=dark] .auth-highlight span,html[data-theme=dark] .feature-pill p,html[data-theme=dark] .inline-note p,html[data-theme=dark] .auth-form .field span,html[data-theme=dark] .chapter-filter-row .field span,html[data-theme=dark] .chapter-jump-form .field span,html[data-theme=dark] .toolbar-grid label{color:#e2e8f0}html[data-theme=dark] .auth-form input::placeholder,html[data-theme=dark] .chapter-filter-row input::placeholder,html[data-theme=dark] .chapter-jump-form input::placeholder{color:#94a3b8}html[data-theme=dark] .topbar__eyebrow,html[data-theme=dark] .section-eyebrow{color:#a5b4fc}html[data-theme=dark] .page-subtitle,html[data-theme=dark] .section-subtitle,html[data-theme=dark] .topbar__status,html[data-theme=dark] .topbar__cluster{color:#cbd5e1}html[data-theme=dark] .pill{background:#0f172ac2;border-color:#334155e6;color:#cbd5e1}html[data-theme=dark] .pill--brand{background:#312e8170;color:#c7d2fe}html[data-theme=dark] .pill--success{background:#14532d70;color:#bbf7d0}html[data-theme=dark] .pill--warning{background:#78350f6b;color:#fdba74}html[data-theme=dark] .toast--success{background:#082f49eb;border-color:#0e749080;color:#bae6fd}html[data-theme=dark] .toast--error{background:#450a0aeb;border-color:#7f1d1d99;color:#fecaca}html[data-theme=dark] .status-state--success{background:#14532d33}html[data-theme=dark] .status-state--warning{background:#78350f38}html[data-theme=dark] .status-state--error{background:#7f1d1d38}html[data-theme=dark] .reader-inline-loading{background:#1e293bd6;border-color:#6366f13d;color:#c7d2fe}html[data-theme=dark] .reader-utility-bar,html[data-theme=dark] .reader-dock{background:#020617eb;border-color:#1e293be6;box-shadow:0 24px 48px #0206176b}html[data-theme=dark] .reader-utility-bar button,html[data-theme=dark] .reader-dock button{color:#94a3b8}html[data-theme=dark] .reader-utility-bar button.active,html[data-theme=dark] .reader-dock button.active,html[data-theme=dark] .list-item--active{background:linear-gradient(135deg,#5b5df06b,#8b5cf638);border-color:#818cf847;color:#e0e7ff}html[data-theme=dark] .reader-content-footer .btn-ghost{border-color:#475569eb;background:#0f172ad1;color:#e2e8f0}html[data-theme=dark] .reader-content-footer .btn-secondary{background:#1e293beb;border-color:#475569e6;color:#e2e8f0}html[data-theme=dark] .reader-content-footer--desktop{background:#0f172aeb;border:1px solid rgba(51,65,85,.95);border-radius:16px}html[data-theme=dark] .reader-panel-card--focus{box-shadow:0 0 0 1px #818cf8a3,0 22px 40px #0206176b}html[data-theme=dark] .skeleton,html[data-theme=dark] .book-cover-skeleton,html[data-theme=dark] .book-cover-skeleton-block{background:linear-gradient(90deg,#1e293bc7,#334155f5,#1e293bc7);background-size:220% 100%}@media(max-width:767px){#root{--mobile-nav-height: 90px;--reader-dock-height: 96px}.splash-panel,.glass-card{padding:1rem;border-radius:24px}.app-shell--reader{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;padding-bottom:calc(var(--reader-dock-height) + .35rem)}.content--reader{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.reader-content{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(var(--reader-dock-height, 96px) + 1rem)}.auth-hero-grid,.composer-grid,.reader-overview__stats,.status-grid,.library-grid,.result-grid,.feature-pill,.inline-note,.install-banner__copy{grid-template-columns:1fr}.auth-card{gap:1rem}.auth-copy-main{gap:.55rem}.auth-copy-main h1{font-size:clamp(1.7rem,7vw,2.2rem)}.auth-form-card{padding:.95rem;border-radius:22px}.auth-highlights{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-highlight{padding:.72rem}.auth-feature-list{display:none}.content--reader{padding-bottom:.6rem}.reader-overview__head{flex-direction:column;align-items:stretch}.reader-overview-toggle{width:100%}.reader-layout{padding-bottom:0}.reader-main-card{scroll-margin-bottom:calc(var(--reader-dock-height) + .75rem)}.inline-note .btn-secondary,.inline-note .btn-ghost,.install-banner__actions .btn-primary,.install-banner__actions .btn-secondary,.install-banner__actions .btn-ghost,.admin-account-submit,.admin-account-action-btn,.quick-actions-grid,.reader-content-footer{width:100%}.quick-actions-grid,.status-grid,.reader-overview__stats,.reader-content-footer{grid-template-columns:1fr}.topbar__cluster,.topbar__status{justify-content:flex-start}.reader-sheet__panel{width:100%;max-height:82vh}}@media(min-width:768px){.auth-content{grid-template-columns:minmax(0,1.08fr) minmax(280px,.82fr);align-items:start}.admin-account-create-form,.admin-account-actions{align-items:end}.admin-account-actions{grid-template-columns:minmax(0,1fr) auto auto}.composer-grid,.status-grid,.reader-overview__stats{grid-template-columns:repeat(3,minmax(0,1fr))}.composer-grid,.result-grid,.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid,.reader-panels-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.reader-panels-grid>.card{display:flex;flex-direction:column}.reader-panels-grid>.card .section-head{flex-shrink:0}.reader-panels-grid>.card .section-head+*{flex:1;min-height:0}.reader-dock{position:sticky;left:auto;right:auto;bottom:.75rem;margin:1rem;border-radius:16px;padding:.5rem}.reader-content-footer--desktop{margin-top:.85rem;border-top:0;border:1px solid rgba(148,163,184,.22);border-radius:16px;padding:.75rem;background:#f8fafcd1}.chapter-list--compact{max-height:min(56vh,560px)}.reader-dock button{min-height:48px;border-radius:12px;padding:.45rem .4rem}.topbar__actions{align-items:flex-end}.banner-stack{padding:.9rem 1rem 0}}@keyframes panel-focus-pulse{0%{box-shadow:0 0 #6366f100}35%{box-shadow:0 0 0 2px #6366f161}to{box-shadow:0 0 #6366f100}}
