: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}#root{--safe-bottom: env(safe-area-inset-bottom, 0px);--tap-size: 44px;--mobile-nav-height: 74px}#root{width:100%}.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}input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f129}.btn-primary,.btn-secondary,.btn-ghost{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}.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))}.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:calc(100vh - 178px - var(--safe-bottom));min-height:0;max-height:none;padding:.92rem}.reader-content--expanded{height:calc(100vh - 126px - var(--safe-bottom));min-height:0;max-height:none}@supports (height: 100dvh){.reader-content{height:calc(100dvh - 178px - var(--safe-bottom))}.reader-content--expanded{height:calc(100dvh - 126px - var(--safe-bottom))}}.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-grid{display:grid;gap:.9rem}@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:.68rem;line-height:1.3}.discover-card-head{gap:.65rem;margin-bottom:.72rem}.discover-grid{gap:.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-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}.chapter-tools{margin-top:.85rem;display:grid;gap:.58rem}.chapter-jump-form{display:grid;gap:.5rem}.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(100vh - 330px);max-height:calc(100vh - 206px - var(--safe-bottom));overflow:auto;padding:1.05rem}.reader-content--expanded{min-height:calc(100vh - 286px);max-height:calc(100vh - 162px - var(--safe-bottom))}@supports (height: 100dvh){.reader-content{min-height:calc(100dvh - 330px);max-height:calc(100dvh - 206px - var(--safe-bottom))}.reader-content--expanded{min-height:calc(100dvh - 286px);max-height:calc(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}.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}@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}}.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] .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] .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] .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{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{grid-template-columns:1fr auto;align-items:center}.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)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
