:root{--bg:#f7f9fb;--surface:#ffffff;--soft:#f0f2f4;--soft-2:#e6e8ea;--ink:#17191c;--muted:#666a73;--line:#c9ccd2;--accent:#4648d4;--accent-soft:#e7e7ff;--success:#139447;--error:#ba1a1a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Noto Sans SC,Microsoft YaHei,Arial,sans-serif;letter-spacing:0}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-shell{min-height:100vh}.topbar{height:82px;padding:0 max(32px,calc((100vw - 1440px) / 2));display:flex;align-items:center;gap:46px;background:rgba(247,249,251,.96);border-bottom:1px solid var(--line);position:-webkit-sticky;position:sticky;top:0;z-index:30;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand{border:0;background:none;padding:0;font-size:23px;font-weight:750;white-space:nowrap;cursor:pointer}.main-nav{align-self:stretch;display:flex;align-items:stretch;gap:22px}.nav-item{position:relative;display:flex;align-items:center;gap:7px;padding:0 10px;border:0;background:none;font-size:16px;cursor:pointer;color:#34373e}.nav-item svg{display:none}.nav-item:after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;background:var(--accent);transform:scaleX(0);transition:transform .2s}.nav-item.active:after,.nav-item:hover:after{transform:scaleX(1)}.nav-item.active{color:var(--ink);font-weight:650}.header-actions{margin-left:auto;gap:18px}.header-actions,.search-box{display:flex;align-items:center}.search-box{width:320px;height:46px;gap:10px;padding:0 16px;background:#eceef0;border-radius:8px;color:#5f636d}.search-box:focus-within{outline:2px solid var(--accent);outline-offset:2px}.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--ink)}.icon-button{width:38px;height:38px;padding:0;display:inline-grid;place-items:center;border:0;background:transparent;border-radius:6px;cursor:pointer}.icon-button:hover{background:var(--soft-2)}.icon-button.small{width:28px;height:28px}.menu-button{display:none}.page{max-width:1440px;margin:0 auto;padding:52px 40px 80px}.page-heading{margin-bottom:60px}.page-heading.compact{margin-bottom:40px}.page-heading.centered{text-align:center}.eyebrow{color:var(--accent)!important;font-size:12px!important;font-weight:700;text-transform:uppercase;margin-bottom:8px!important}.page-heading h1{margin:0 0 12px;font-size:34px;line-height:1.15;font-weight:750}.page-heading p{margin:0;font-size:17px;color:#353941}.page-heading strong{font-weight:750}.accent{color:var(--accent)}.library-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:38px}.segmented{display:grid;grid-template-columns:repeat(4,1fr);padding:4px;background:#eef0f2;border-radius:6px}.segmented button{min-width:108px;height:44px;border:0;background:transparent;border-radius:4px;cursor:pointer}.segmented button.active{background:white;box-shadow:0 1px 3px rgba(0,0,0,.06)}.outline-button{height:44px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;background:transparent;border:1px solid #b9bdc5;border-radius:6px;cursor:pointer}.outline-button:hover{background:white;border-color:#7b7f87}.outline-button.wide{width:100%;margin-top:8px}.book-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-gap:48px 28px;gap:48px 28px}.book-card{min-width:0}.cover-button{display:block;width:100%;aspect-ratio:3/4;padding:0;position:relative;overflow:hidden;background:var(--soft-2);border:1px solid #bbc0c8;border-radius:5px;cursor:pointer}.cover-button img{object-fit:cover;transition:transform .25s ease}.cover-art{width:100%;height:100%;display:block;object-fit:cover}.cover-button:hover img{transform:scale(1.025)}.generated-cover{width:100%;height:100%;padding:24px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#252832;background:#e9ebee}.generated-cover strong{max-width:100%;font-size:18px;line-height:1.35;overflow-wrap:anywhere}.generated-cover small{color:var(--muted)}.cover-progress{position:absolute;left:0;bottom:0;height:4px;background:#3538ef}.new-badge{position:absolute;top:10px;right:10px;width:28px;height:28px;display:grid;place-items:center;color:white;background:var(--accent);border-radius:4px;font-size:13px;font-weight:700}.book-info{padding-top:16px}.book-title{max-width:100%;padding:0;border:0;background:none;font-size:17px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.book-title:hover{color:var(--accent)}.book-info>p{margin:6px 0 14px;font-size:14px;color:var(--muted)}.book-meta{min-height:28px;justify-content:space-between;font-size:12px;font-weight:600}.add-book,.book-meta{display:flex;align-items:center}.add-book{aspect-ratio:3/4;min-height:250px;flex-direction:column;justify-content:center;gap:18px;border:2px dashed #c3c6cd;border-radius:5px;background:transparent;color:#646870;cursor:pointer}.add-book:hover{border-color:var(--accent);color:var(--accent);background:rgba(70,72,212,.025)}.more-button{margin:88px auto 0;height:50px;padding:0 32px;display:flex;align-items:center;gap:10px;border:1px solid #b9bdc5;border-radius:8px;background:transparent;cursor:pointer}.empty-state{grid-column:1/-1;padding:80px 20px;display:grid;place-items:center;grid-gap:12px;gap:12px;border:1px dashed var(--line);color:var(--muted)}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:28px;gap:28px;margin-bottom:36px}.chart-card,.milestones-card,.summary-card{background:var(--surface);border:1px solid #c2c6cd;border-radius:8px}.summary-card{min-height:250px;padding:34px 32px;position:relative;overflow:hidden}.summary-card .card-row p,.summary-card>p{margin:0 0 24px;color:#3d4149}.summary-card>div strong{font-size:48px;line-height:1}.summary-card>div>span:not(.stat-icon,.avatar-stack){margin-left:8px}.summary-card small{font-size:13px}.summary-card small:not(.muted){position:absolute;right:30px;bottom:28px;color:var(--success);font-weight:700}.muted{display:block;margin-top:30px;color:var(--muted)}.card-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.stat-icon{width:58px;height:58px;display:grid;place-items:center;background:#dfe2ff;border-radius:8px}.percent{font-size:18px!important;color:#3538ef}.goal-track{height:9px;margin-top:30px;overflow:hidden;background:#dfe2e5;border-radius:6px}.goal-track span{display:block;width:75%;height:100%;margin:0!important;background:var(--accent);border-radius:inherit}.goal-footer{margin-top:38px;display:flex;align-items:center;justify-content:space-between}.goal-footer small{position:static!important;color:var(--muted)!important;font-weight:400!important}.avatar-stack{display:flex;align-items:center}.avatar-stack b,.avatar-stack i{width:34px;height:34px;margin:0 -5px 0 0!important;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#d9c7b9;font-style:normal;font-size:11px}.avatar-stack i:nth-child(2){background:#c8d4c7}.avatar-stack b{background:#dfe2ff}.sparkline{height:55px;margin-top:30px;display:flex;align-items:flex-end;gap:9px}.sparkline i{flex:1 1;height:30%;border-top:3px solid #8789ee;transform:skewY(-10deg)}.sparkline i:nth-child(2),.sparkline i:nth-child(6){height:58%}.sparkline i:nth-child(4),.sparkline i:nth-child(5){height:82%}.stats-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.95fr);grid-gap:36px;gap:36px}.chart-card,.milestones-card{padding:32px}.chart-card h2,.milestones-card h2,.recent-header h2{margin:0;font-size:22px}.mini-segment{padding:4px;display:flex;background:var(--soft);border-radius:6px}.mini-segment button{padding:7px 12px;border:0;border-radius:4px;background:transparent;cursor:pointer}.mini-segment button.active{background:white}.bar-chart{height:400px;margin-top:36px;padding-top:20px;display:grid;grid-template-columns:repeat(7,1fr);grid-gap:22px;gap:22px;align-items:end;border-bottom:1px solid var(--line);background:repeating-linear-gradient(180deg,transparent,transparent 98px,#eceef1 99px)}.bar-column{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:11px}.bar-column i{width:min(42px,70%);display:block;background:#dfe2e5;border-radius:4px 4px 0 0}.bar-column i.today{background:var(--accent)}.bar-column span{padding-bottom:12px;font-size:13px;color:var(--muted)}.bar-value{height:18px;color:var(--accent);font-size:12px;font-weight:700}.chart-legend{display:flex;gap:26px;padding-top:22px;font-size:13px;color:var(--muted)}.chart-legend span{display:flex;align-items:center;gap:9px}.dot{width:10px;height:10px;border-radius:50%}.dot.indigo{background:var(--accent)}.dot.gray{background:#dfe2e5}.milestones-card h2{margin-bottom:26px}.milestone{display:flex;align-items:center;gap:18px;margin-bottom:24px}.milestone img{object-fit:cover;border:1px solid var(--line);border-radius:2px}.milestone strong{font-size:15px}.milestone p{margin:6px 0 0;color:var(--muted);font-size:13px}.personal-visualization{min-height:560px;background:white;border:1px solid #c2c6cd;border-radius:8px;overflow:hidden}.visualization-head{min-height:174px;padding:32px 38px;display:flex;align-items:flex-end;justify-content:space-between;gap:48px;border-bottom:1px solid #dde0e5}.visualization-head>div{display:grid;grid-template-columns:auto auto;align-items:baseline;grid-column-gap:14px;column-gap:14px}.visualization-head>div>span{grid-column:1/-1;margin-bottom:8px;color:var(--muted);font-size:14px}.visualization-head>div>strong{font-size:48px;line-height:1}.visualization-head>div>small{color:var(--muted)}.personal-metrics{margin:0;display:flex;gap:54px}.personal-metrics div{display:flex;flex-direction:column-reverse;gap:6px}.personal-metrics dt{color:var(--muted);font-size:13px}.personal-metrics dd{margin:0;font-size:28px;font-weight:700}.progress-visualization{padding:26px 38px 38px;display:grid;grid-gap:4px;gap:4px}.progress-row{min-height:68px;display:grid;grid-template-columns:minmax(160px,260px) minmax(180px,1fr) 48px;align-items:center;grid-gap:24px;gap:24px;border-bottom:1px solid #eceef1}.progress-book{min-width:0;display:grid;grid-gap:5px;gap:5px}.progress-book span,.progress-book strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress-book strong{font-size:14px}.progress-book span{color:var(--muted);font-size:12px}.progress-bar{height:10px;overflow:hidden;background:#e4e6e9;border-radius:5px}.progress-bar i{height:100%;display:block;background:var(--accent);border-radius:inherit}.progress-number{text-align:right;font-size:13px}.visualization-empty{min-height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;color:var(--muted);text-align:center}.visualization-empty strong{color:var(--ink);font-size:17px}.visualization-empty .outline-button{margin-top:12px}.import-page{max-width:1060px}.drop-zone{width:100%;height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border:2px dashed #bfc2ca;border-radius:8px;background:var(--surface);cursor:pointer}.drop-zone:hover{border-color:var(--accent);background:#fafaff}.upload-icon{width:112px;height:112px;display:grid;place-items:center;margin-bottom:14px;color:var(--accent);background:var(--accent-soft);border-radius:8px}.drop-zone strong{font-size:21px}.drop-zone small{color:var(--muted)}.recent-header{margin:64px 0 24px;display:flex;align-items:center;justify-content:space-between}.recent-header span{color:var(--muted);font-size:13px}.upload-list{display:grid;grid-gap:16px;gap:16px}.upload-row{min-height:104px;padding:20px 24px;display:flex;align-items:center;gap:20px;background:white;border:1px solid #bec2ca;border-radius:6px}.file-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;background:var(--soft);border-radius:4px}.file-copy{flex:1 1;min-width:0}.file-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-copy p{margin:7px 0 0;color:#3f434b;font-size:14px}.upload-progress{display:block;height:7px;margin-top:14px;background:#dfe2e5;border-radius:4px;overflow:hidden}.upload-progress i{display:block;height:100%;background:var(--accent)}.success{color:var(--success)}.error-color{color:var(--error)}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.feature-grid{margin-top:64px;display:grid;grid-template-columns:repeat(3,1fr);grid-gap:36px;gap:36px}.feature-grid article{padding:30px;background:#f0f2f4;border-radius:8px}.feature-grid svg{color:var(--accent)}.feature-grid h3{margin:22px 0 10px;font-size:18px}.feature-grid p{margin:0;color:#4e525b;line-height:1.7;font-size:14px}.reader{min-height:100vh;background:#f7f8fa;color:#16181b;--reader-line:#cfd1d6;transition:background .2s,color .2s}.reader.dark{background:#1d1f21;color:#e9e9e7;--reader-line:#45484c}.reader-bar{height:58px;padding:0 24px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--reader-line);background:inherit;position:-webkit-sticky;position:sticky;top:0;z-index:20}.reader-back{justify-self:start;display:flex;align-items:center;gap:5px;border:0;background:none;cursor:pointer}.reader-bar>strong{font-size:14px}.reader-tools{justify-self:end;display:flex;align-items:center;gap:2px}.reader-tools button{width:34px;height:34px;padding:0;display:grid;place-items:center;border:0;background:transparent;border-radius:5px;cursor:pointer}.reader-tools button:hover{background:rgba(127,127,127,.14)}.reader-tools span{min-width:26px;text-align:center;font-size:12px}.reader-progress{height:3px;position:fixed;left:0;right:0;top:58px;z-index:22}.reader-progress i{display:block;height:100%;background:#3639ee}.reading-content{width:min(720px,calc(100% - 40px));margin:0 auto;padding:72px 0 150px;font-family:Georgia,"Noto Serif SC",Songti SC,serif;line-height:1.95}.chapter-title{text-align:center;margin-bottom:62px}.chapter-title p{margin:0 0 10px!important;color:#3437e8;font:12px/1.3 Inter,sans-serif;letter-spacing:4px}.chapter-title h1{margin:0;font-size:34px}.chapter-title span{width:36px;height:3px;display:block;margin:20px auto 0;background:var(--reader-line)}.reading-content>p{margin:0 0 27px;text-align:justify}.reader-image{width:100%;height:auto;margin:34px 0 52px;display:block;object-fit:cover;border-radius:5px;filter:grayscale(1)}.next-chapter{margin-top:80px;padding-top:38px;display:flex;flex-direction:column;align-items:center;border-top:1px solid var(--reader-line);font-family:Inter,sans-serif}.next-chapter span{font-size:13px;color:#777b82}.dark .next-chapter span{color:#b7b9bd}.next-chapter strong{margin-top:8px;font-size:18px}.next-chapter button{margin-top:10px;border:0;background:none;color:var(--accent);cursor:pointer}.reader-footer{height:58px;padding:0 24px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;position:fixed;left:0;right:0;bottom:0;z-index:20;background:inherit;border-top:1px solid var(--reader-line);font-size:11px;color:#74777d}.dark .reader-footer{color:#b5b7bb}.reader-footer>span:last-child{text-align:right}.page-controls{display:flex;align-items:center;gap:18px}.page-controls button{width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}.page-controls button:disabled{opacity:.25}.page-controls strong{min-width:40px;text-align:center;color:currentColor;font-size:12px}.epub-reader{height:100vh;overflow:hidden}.epub-canvas{position:fixed;inset:61px 240px 0 280px;padding:0;background:inherit;transition:left .2s ease,right .2s ease}.epub-stage{width:100%;height:100%;overflow:hidden;background:inherit}.epub-stage iframe,.epub-stage>div{background:inherit!important}.epub-stage .epub-container{scrollbar-width:thin;scrollbar-color:#aeb2b9 transparent}.epub-stage .epub-container::-webkit-scrollbar{width:9px}.epub-stage .epub-container::-webkit-scrollbar-track{background:transparent}.epub-stage .epub-container::-webkit-scrollbar-thumb{background:#aeb2b9;border:2px solid #f7f8fa;border-radius:8px}.epub-stage .epub-container::-webkit-scrollbar-thumb:hover{background:#858a93}.dark .epub-stage .epub-container{scrollbar-color:#666a70 transparent}.dark .epub-stage .epub-container::-webkit-scrollbar-thumb{background:#666a70;border-color:#1d1f21}.dark .epub-stage .epub-container::-webkit-scrollbar-thumb:hover{background:#85898f}.reader-status{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:inherit;z-index:4;color:var(--muted)}.reader-status.error-state strong{color:var(--ink);font-size:18px}.dark .reader-status.error-state strong{color:#f2f2f0}.reader-status.error-state span{max-width:420px;padding:0 20px;text-align:center}.toc-drawer{width:min(360px,88vw);position:fixed;inset:0 auto 0 0;z-index:50;display:flex;flex-direction:column;background:white;border-right:1px solid #d7d9de;transform:translateX(-102%);transition:transform .22s ease}.toc-drawer.open{transform:translateX(0)}.dark .toc-drawer{background:#242628;border-color:#44474b}.toc-header{min-height:82px;padding:18px 16px 16px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--reader-line)}.toc-header>div{min-width:0;display:grid;grid-gap:5px;gap:5px}.toc-header span{color:var(--muted);font-size:12px}.toc-header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toc-list{padding:12px;overflow-y:auto}.toc-list button{width:100%;min-height:44px;padding:10px;display:block;border:0;border-radius:5px;background:transparent;text-align:left;line-height:1.45;cursor:pointer}.toc-list button:hover{background:#f0f2f4}.dark .toc-list button:hover{background:#34373a}.toc-list p{padding:18px 10px;color:var(--muted);font-size:14px}.drawer-backdrop{position:fixed;inset:0;z-index:45;border:0;background:rgba(0,0,0,.28);cursor:default}.reader-sidebar{width:280px;position:fixed;inset:61px auto 0 0;z-index:16;display:flex;flex-direction:column;background:#f1f3f5;border-right:1px solid var(--reader-line);transition:transform .2s ease}.dark .reader-sidebar,.dark .reader-utility{background:#252729}.left-collapsed .reader-sidebar{transform:translateX(-100%)}.left-collapsed .epub-canvas{left:0}.sidebar-book{min-height:78px;padding:17px 18px;display:grid;align-content:center;grid-gap:6px;gap:6px;border-bottom:1px solid var(--reader-line)}.sidebar-book span{color:#777b82;font-size:11px}.dark .sidebar-book span{color:#aeb1b5}.sidebar-book strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.sidebar-tabs{margin:12px;padding:3px;display:grid;grid-template-columns:1fr 1fr;background:#e2e5e8;border-radius:6px}.dark .sidebar-tabs{background:#34373a}.sidebar-tabs button{min-height:36px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:4px;background:transparent;font-size:12px;cursor:pointer}.sidebar-tabs button.active{background:white}.dark .sidebar-tabs button.active{background:#4a4d51}.reader-sidebar .toc-list{flex:1 1;min-height:0;scrollbar-width:thin;scrollbar-color:#b2b6bd transparent}.reader-sidebar .toc-list::-webkit-scrollbar{width:8px}.reader-sidebar .toc-list::-webkit-scrollbar-track{background:transparent}.reader-sidebar .toc-list::-webkit-scrollbar-thumb{background:#b2b6bd;border:2px solid #f1f3f5;border-radius:8px}.reader-sidebar .toc-list::-webkit-scrollbar-thumb:hover{background:#8b9098}.dark .reader-sidebar .toc-list{scrollbar-color:#62666d transparent}.dark .reader-sidebar .toc-list::-webkit-scrollbar-thumb{background:#62666d;border-color:#252729}.dark .reader-sidebar .toc-list::-webkit-scrollbar-thumb:hover{background:#81858c}.reader-sidebar .toc-list button{font-size:13px}.book-search{min-height:0;padding:0 12px 12px;display:flex;flex:1 1;flex-direction:column}.book-search-box{height:40px;padding:0 10px;display:flex;align-items:center;gap:8px;flex:0 0 auto;background:white;border:1px solid var(--reader-line);border-radius:6px}.dark .book-search-box{background:#303235}.book-search-box input{min-width:0;flex:1 1;border:0;outline:0;color:inherit;background:transparent;font-size:13px}.book-search-box button{width:28px;height:28px;padding:0;display:grid;place-items:center;border:0;border-radius:4px;background:transparent;cursor:pointer}.search-results{margin-top:10px;overflow-y:auto}.search-results button{width:100%;padding:11px 9px;display:grid;grid-gap:6px;gap:6px;border:0;border-bottom:1px solid var(--reader-line);background:transparent;text-align:left;cursor:pointer}.search-results button:hover{background:rgba(120,122,130,.1)}.search-results button>strong{overflow:hidden;color:#555a64;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.dark .search-results button>strong{color:#b5b8bd}.search-results span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:12px;line-height:1.6}.search-results mark{padding:0 2px;color:#17191c;background:#f5d76e;border-radius:2px}.dark .search-results mark{color:#17191c;background:#ffd65a}.search-results p{padding:18px 8px;color:#777b82;font-size:12px}.reader-utility{width:240px;position:fixed;inset:61px 0 0 auto;z-index:15;padding:24px 18px;background:#f1f3f5;border-left:1px solid var(--reader-line)}.utility-progress{padding-bottom:24px;display:grid;grid-gap:7px;gap:7px;border-bottom:1px solid var(--reader-line)}.reader-utility h3,.utility-progress>span{color:#777b82;font-size:11px;font-weight:500}.dark .reader-utility h3,.dark .utility-progress>span{color:#aeb1b5}.utility-progress>strong{font-size:36px}.utility-progress>small{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px}.utility-progress>small>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.utility-progress>small>b{flex:0 0 auto;color:var(--accent);font-size:10px;font-weight:650}.reader-utility section{padding:22px 0 0}.reader-utility h3{margin:0 0 10px}.font-stepper{height:40px;display:grid;grid-template-columns:40px 1fr 40px;align-items:center;border:1px solid var(--reader-line);border-radius:6px}.font-stepper button{height:100%;display:grid;place-items:center;padding:0;border:0;background:transparent;cursor:pointer}.font-stepper span{text-align:center;font-size:12px}.theme-segment{padding:3px;display:grid;grid-template-columns:1fr 1fr;background:#e2e5e8;border-radius:6px}.dark .theme-segment{background:#34373a}.theme-segment button{min-height:36px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:4px;background:transparent;font-size:12px;cursor:pointer}.theme-segment button.active{background:white}.dark .theme-segment button.active{background:#4a4d51}.focus-mode .reader-bar,.focus-mode .reader-footer,.focus-mode .reader-sidebar,.focus-mode .reader-utility,.reader-sidebar-backdrop{display:none}.focus-mode .reader-progress{top:0}.focus-mode .epub-canvas{inset:0;padding:0}.focus-mode .epub-stage{width:100%}.focus-exit{width:42px;height:42px;position:fixed;top:14px;right:14px;z-index:40;display:grid;place-items:center;padding:0;border:1px solid var(--reader-line);border-radius:6px;background:rgba(247,248,250,.9);color:#17191c;cursor:pointer}.dark .focus-exit{background:rgba(37,39,41,.9);color:#e9e9e7}.alert-dialog-layer{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.alert-dialog-overlay{position:absolute;inset:0;border:0;background:rgba(10,12,14,.48);animation:dialog-fade .16s ease-out}.alert-dialog-content{width:min(440px,100%);position:relative;z-index:1;padding:24px;background:white;border:1px solid #d3d6dc;border-radius:8px;box-shadow:0 16px 42px rgba(0,0,0,.18);animation:dialog-enter .18s ease-out}.alert-dialog-content h2{margin:0;font-size:19px}.alert-dialog-content p{margin:10px 0 24px;color:var(--muted);font-size:14px;line-height:1.6}.alert-dialog-actions{display:flex;justify-content:flex-end;gap:10px}.dialog-button{min-height:40px;padding:0 16px;border-radius:6px;cursor:pointer}.dialog-button.secondary{background:white;border:1px solid #c6c9cf}.dialog-button.destructive{color:white;background:#ba1a1a;border:1px solid #ba1a1a}@keyframes dialog-fade{0%{opacity:0}}@keyframes dialog-enter{0%{opacity:0;transform:translateY(5px) scale(.98)}}@media (max-width:1120px){.topbar{gap:20px;padding-inline:24px}.main-nav{gap:4px}.search-box{width:250px}.page{padding-inline:28px}.book-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.summary-grid{grid-template-columns:repeat(2,1fr)}.summary-card:last-child{grid-column:1/-1}.stats-layout{grid-template-columns:1fr}.milestones-card{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:18px 30px;gap:18px 30px}.milestones-card .wide,.milestones-card h2{grid-column:1/-1}.milestone{margin:0}.reader-utility{display:none}.epub-canvas{right:0}}@media (max-width:760px){.topbar{height:66px;padding:0 16px;position:-webkit-sticky;position:sticky}.brand{font-size:20px}.main-nav{display:none;position:absolute;left:12px;right:12px;top:72px;padding:8px;flex-direction:column;align-items:stretch;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.12)}.main-nav.open{display:flex}.nav-item{min-height:46px;padding:0 12px;border-radius:5px}.nav-item svg{display:block}.nav-item:after{display:none}.nav-item.active{background:var(--soft)}.header-actions{gap:4px}.menu-button{display:inline-grid}.profile-button{display:none}.search-box{width:40px;height:40px;padding:0;justify-content:center;background:transparent}.search-box input{display:none}.search-box:focus-within{position:absolute;left:12px;right:60px;top:12px;width:auto;padding:0 13px;justify-content:flex-start;background:white;z-index:2}.search-box:focus-within input{display:block}.page{padding:34px 16px 60px}.page-heading{margin-bottom:36px}.page-heading h1{font-size:28px}.page-heading p{font-size:14px;line-height:1.6}.eyebrow{font-size:11px!important}.library-toolbar{align-items:stretch;gap:12px;margin-bottom:26px}.segmented{flex:1 1;min-width:0;display:flex}.segmented button{min-width:0;flex:1 1;height:40px;padding:0 6px;white-space:nowrap}.library-toolbar .outline-button{width:44px;flex:0 0 44px;padding:0;font-size:0}.library-toolbar .outline-button svg{width:18px;height:18px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 16px}.book-info{padding-top:12px}.book-title{font-size:15px}.book-info>p{font-size:12px}.add-book{min-height:0}.more-button{margin-top:56px}.summary-grid{grid-template-columns:1fr;gap:14px}.summary-card:last-child{grid-column:auto}.summary-card{min-height:210px;padding:26px 22px}.summary-card>div strong{font-size:42px}.personal-visualization{min-height:500px}.visualization-head{min-height:0;padding:24px 20px;align-items:flex-start;flex-direction:column;gap:26px}.visualization-head>div>strong{font-size:40px}.personal-metrics{width:100%;gap:0;justify-content:space-between}.personal-metrics dd{font-size:23px}.progress-visualization{padding:12px 20px 28px}.progress-row{min-height:82px;grid-template-columns:1fr 42px;gap:8px 12px}.progress-book{grid-column:1/-1;padding-top:12px}.progress-bar{min-width:0}.visualization-empty{min-height:330px;padding:30px 20px}.stats-layout{gap:16px}.chart-card,.milestones-card{padding:22px 18px}.chart-card h2,.milestones-card h2{font-size:19px}.bar-chart{height:310px;gap:4px}.bar-column i{width:24px}.bar-column span{font-size:11px;writing-mode:vertical-rl;padding-bottom:8px}.milestones-card{display:block}.milestone{margin-bottom:20px}.import-page .page-heading{text-align:left}.drop-zone{height:260px;padding:24px;text-align:center}.upload-icon{width:82px;height:82px}.drop-zone strong{font-size:17px}.recent-header{margin-top:46px}.upload-row{min-height:88px;padding:15px 12px;gap:12px}.file-icon{width:40px;height:40px}.file-copy strong{font-size:14px}.file-copy p{font-size:12px}.feature-grid{grid-template-columns:1fr;gap:12px;margin-top:44px}.feature-grid article{padding:24px}.reader-bar{height:54px;padding:0 12px;grid-template-columns:1fr auto}.reader-bar>strong{display:none}.reader-back{font-size:13px}.reader-progress{top:54px}.reader-tools{gap:0}.reader-tools button{width:30px}.reader-tools span{display:none}.reading-content{width:min(100% - 32px,660px);padding-top:50px;line-height:1.85}.chapter-title{margin-bottom:46px}.chapter-title h1{font-size:29px}.reading-content>p{margin-bottom:23px}.reader-image{width:calc(100% + 32px);max-width:none;margin-left:-16px;border-radius:0}.reader-footer{height:52px;padding:0 12px;grid-template-columns:1fr auto}.reader-footer>span:last-child{display:none}.page-controls{gap:6px}.epub-canvas{inset:57px 0 0;padding:0}.epub-stage{width:100%}.toc-header{min-height:70px}.reader-sidebar{width:min(310px,88vw);inset:57px auto 0 0;z-index:46;transform:translateX(-102%);box-shadow:8px 0 28px rgba(0,0,0,.12)}.reader-sidebar.open{transform:translateX(0)}.left-collapsed .reader-sidebar{transform:translateX(-102%)}.reader-sidebar-backdrop{position:fixed;inset:57px 0 0;z-index:44;display:block;border:0;background:rgba(0,0,0,.24)}.left-collapsed .reader-sidebar-backdrop{display:none}.epub-canvas,.left-collapsed .epub-canvas{left:0}.focus-mode .epub-canvas{inset:0}.focus-mode .reader-sidebar-backdrop{display:none}}@media (max-width:390px){.book-grid{gap-inline:12px}.book-title{font-size:14px}.segmented button{min-width:78px}.reader-back{font-size:0}.reader-back svg{width:22px;height:22px}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;transition:none!important}}