*{box-sizing:border-box} :root{color-scheme:light;--brand-50:#eef3ff;--brand-100:#dce7fb;--brand-300:#8ca9df;--brand-500:#5c7fbe;--brand-600:#486aa7;--brand-700:#34558d;--gray-50:#f9fafb;--gray-100:#f3f4f6;--gray-200:#e5e7eb;--gray-300:#d1d5db;--gray-400:#9ca3af;--gray-500:#6b7280;--gray-600:#4b5563;--gray-900:#111827;--bg:#f8f9fb;--surface:#fff;--surface-soft:#f5f6f8;--border:#e7e9ed;--control-border:#d5d9e0;--fg:#20242c;--fg-muted:#697180;--fg-faint:#9299a6;--accent-bg:#252a34;--accent-fg:#fff;--green:#4f7c65;--green-bg:#edf5ef;--orange:#a26b3c;--orange-bg:#fbf3e9;--red:#a75151;--radius-control:7px;--radius-card:12px;--ease:cubic-bezier(.2,.7,.3,1);--sidebar:230px;--topbar:64px}html.dark{color-scheme:dark;--bg:#0b0c0e;--surface:#111316;--surface-soft:#17191d;--border:#25282e;--control-border:#373b44;--fg:#eff1f4;--fg-muted:#9ca3af;--fg-faint:#747c89;--accent-bg:#eff1f4;--accent-fg:#17191c;--brand-50:#182131;--brand-100:#202d43;--brand-600:#94b4e5;--brand-700:#aec7ec;--green:#8fb9a1;--green-bg:#17241d;--orange:#d2a476;--orange-bg:#292118;--red:#e39a9a}html{font-size:15px}body{margin:0;background:var(--bg);color:var(--fg);font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.45}svg.icon{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}:focus-visible{outline:3px solid rgb(107 114 128/.4);outline-offset:2px}::selection{background:var(--brand-100);color:var(--fg)}kbd{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;font-weight:400}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:20px 14px 14px;z-index:30}.brand{display:flex;align-items:center;gap:9px;height:34px;padding:0 8px;font-size:19px;font-weight:650;letter-spacing:-.04em}.brand-mark{width:29px;height:29px;border-radius:8px;background:var(--accent-bg);color:var(--accent-fg);display:grid;place-items:center}.brand-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4}.brand-beta{font-size:8px;letter-spacing:.08em;color:var(--fg-faint);border:1px solid var(--border);padding:1px 4px;border-radius:4px;margin-left:1px;font-weight:500}.workspace-switch{display:flex;align-items:center;width:100%;border:0;background:transparent;text-align:left;padding:11px 8px;margin:16px 0 12px;border-radius:8px;gap:9px}.workspace-switch:hover{background:var(--surface-soft)}.workspace-avatar,.avatar{display:grid;place-items:center;background:#e8e3db;color:#625d53;border:0;font-weight:600}.workspace-avatar{width:30px;height:30px;border-radius:8px;font-size:12px}.workspace-switch>span:nth-child(2){display:flex;flex-direction:column;flex:1}.workspace-switch b{font-size:12px;font-weight:550}.workspace-switch small{font-size:10px;color:var(--fg-faint)}.workspace-switch .icon{width:13px;color:var(--fg-faint)}.main-nav{display:flex;flex-direction:column;gap:3px;overflow:auto;scrollbar-width:thin}.nav-label{font-size:10px;letter-spacing:.09em;color:var(--fg-faint);font-weight:550;margin:8px 11px 6px}.main-nav>a{display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 11px;border-radius:7px;color:var(--fg-muted);font-size:13px;transition:background-color 150ms,color 150ms}.main-nav>a:hover{background:var(--surface-soft);color:var(--fg)}.main-nav>a.active{background:var(--surface-soft);color:var(--fg);font-weight:550}.main-nav>a .icon{width:17px;height:17px}.nav-count{margin-left:auto;font-size:10px;min-width:20px;height:19px;display:grid;place-items:center;background:var(--brand-50);color:var(--brand-700);border-radius:99px}.nav-section-head{display:flex;align-items:center;justify-content:space-between;margin-top:13px}.nav-section-head .nav-label{margin-top:0}.deck-link{display:flex;align-items:center;gap:9px;min-height:35px;padding:7px 11px;border-radius:7px;color:var(--fg-muted);font-size:12px}.deck-link:hover{background:var(--surface-soft);color:var(--fg)}.deck-link.active{background:var(--surface-soft);color:var(--fg)}.deck-link .deck-dot{width:7px;height:7px;border-radius:2px;flex-shrink:0}.deck-link>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.deck-link small{font-size:10px;color:var(--fg-faint)}.sidebar-bottom{margin-top:auto;padding-top:15px}.side-action{display:flex;align-items:center;gap:10px;width:100%;height:36px;border:0;background:transparent;color:var(--fg-muted);padding:0 10px;border-radius:6px;font-size:12px;text-align:left}.side-action:hover{background:var(--surface-soft);color:var(--fg)}.side-action .icon{width:16px}.shortcut{margin-left:auto;font-size:10px;border:1px solid var(--border);border-radius:4px;width:17px;text-align:center;color:var(--fg-faint)}.local-status{border-top:1px solid var(--border);margin-top:10px;padding:15px 10px 2px;font-size:9px;color:var(--fg-faint);display:flex;align-items:center;gap:6px}.status-dot{width:5px;height:5px;border-radius:50%;background:#65a17d}.main-column{margin-left:var(--sidebar);min-height:100vh}.topbar{height:var(--topbar);border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);display:flex;align-items:center;padding:0 34px;position:sticky;top:0;z-index:20;gap:20px}.search-trigger{height:34px;width:300px;display:flex;align-items:center;gap:8px;border:1px solid transparent;background:transparent;border-radius:7px;color:var(--fg-faint);font-size:12px;padding:0 9px}.search-trigger:hover{background:var(--surface);border-color:var(--border)}.search-trigger .icon{width:15px}.search-trigger>span:nth-child(2){flex:1;text-align:left}.search-trigger kbd{border:1px solid var(--border);border-radius:4px;padding:1px 5px;background:var(--surface);font-size:9px}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.streak-chip{display:flex;align-items:center;gap:4px;color:var(--fg-muted);font-size:11px;padding:5px 9px}.streak-chip .icon{width:15px;color:var(--orange)}.streak-chip b{font-weight:600;color:var(--fg)}.icon-btn{border:0;background:transparent;width:36px;height:36px;border-radius:7px;display:inline-grid;place-items:center;color:var(--fg-muted);padding:0;transition:background-color 150ms,color 150ms}.icon-btn:hover{background:var(--surface-soft);color:var(--fg)}.icon-btn.tiny{width:26px;height:26px}.icon-btn.tiny .icon{width:14px}.avatar{width:30px;height:30px;border-radius:50%;font-size:11px;margin-left:2px}.mobile-menu{display:none}#main-content{max-width:1320px;margin:0 auto;padding:38px 42px 70px;animation:page-in 280ms var(--ease)}@keyframes page-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:30px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--fg-faint);font-weight:550;margin:0 0 7px}.page-heading h1,.reader-header h1{font-size:28px;line-height:1.25;font-weight:600;letter-spacing:-.035em;margin:0 0 7px}.page-heading p:not(.eyebrow){margin:0;color:var(--fg-muted);font-size:13px}.heading-actions{display:flex;gap:9px;padding-top:7px}.btn{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 13px;border-radius:var(--radius-control);border:1px solid var(--control-border);background:var(--surface);color:var(--fg);font-size:12px;font-weight:500;white-space:nowrap;transition:background-color 150ms,border-color 150ms,opacity 150ms}.btn:hover{background:var(--surface-soft);border-color:var(--gray-400)}.btn.primary{background:var(--accent-bg);color:var(--accent-fg);border-color:var(--accent-bg)}.btn.primary:hover{opacity:.88}.btn.ghost{border-color:transparent;background:transparent;color:var(--fg-muted)}.btn.ghost:hover{background:var(--surface-soft);color:var(--fg)}.btn.danger{color:var(--red)}.btn.large{height:44px;padding:0 20px;font-size:13px}.btn .icon{width:16px;height:16px}.btn.small{min-height:31px;padding:4px 9px;font-size:11px}.today-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.review-hero{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:28px;position:relative;overflow:hidden}.review-hero-top{display:flex;justify-content:space-between;align-items:flex-start}.review-hero h2{font-size:20px;font-weight:600;letter-spacing:-.025em;margin:0 0 7px}.review-hero p{margin:0;color:var(--fg-muted);font-size:12px}.review-number{font-size:48px;font-weight:550;letter-spacing:-.06em;line-height:1}.review-number small{font-size:11px;color:var(--fg-faint);font-weight:400;letter-spacing:0;margin-left:7px}.review-breakdown{display:flex;gap:28px;margin:28px 0}.review-breakdown>div{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--fg-muted)}.review-breakdown b{font-size:14px;color:var(--fg);font-weight:550}.legend-dot{width:7px;height:7px;border-radius:50%;background:var(--brand-500)}.legend-dot.new{background:#91a58f}.legend-dot.learning{background:#c39c6f}.review-hero-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:20px}.review-hero-footer small{color:var(--fg-faint);font-size:10px}.focus-card{margin-top:20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:24px}.section-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title-row h2,.section-title-row h3{font-size:14px;font-weight:600;margin:0;letter-spacing:-.015em}.text-link{border:0;background:transparent;color:var(--fg-muted);font-size:11px;display:inline-flex;align-items:center;gap:4px;padding:4px}.text-link:hover{color:var(--fg)}.text-link .icon{width:13px}.continue-reading{display:flex;gap:20px}.book-cover{position:relative;flex-shrink:0;width:106px;aspect-ratio:2/3;border-radius:4px 8px 8px 4px;background:var(--cover,#687766);color:#fff;padding:15px 11px;display:flex;flex-direction:column;box-shadow:inset 3px 0 0 rgb(0 0 0/.09),inset 4px 0 0 rgb(255 255 255/.12);overflow:hidden}.book-cover:after{content:"";position:absolute;inset:auto -20% -20% 20%;height:55%;border:1px solid rgb(255 255 255/.2);border-radius:50%}.book-cover b{font-family:Georgia,"Songti SC",serif;font-weight:500;font-size:16px;line-height:1.45;letter-spacing:.04em;position:relative;z-index:1}.book-cover small{font-size:8px;letter-spacing:.07em;opacity:.75;margin-top:auto;position:relative;z-index:1}.book-cover .cover-en{font-size:6px;text-transform:uppercase;letter-spacing:.12em;opacity:.65;margin-top:7px}.continue-info{min-width:0;flex:1;padding:4px 0}.continue-info .tag{font-size:9px;color:var(--brand-700);background:var(--brand-50);border-radius:99px;padding:3px 8px}.continue-info h3{font-size:18px;font-weight:550;margin:12px 0 4px;letter-spacing:-.02em}.continue-info>p{font-size:11px;color:var(--fg-faint);margin:0 0 22px}.progress-line{height:4px;border-radius:99px;background:var(--gray-100);overflow:hidden}.progress-line>span{height:100%;display:block;background:var(--brand-500);border-radius:99px}.progress-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--fg-faint);margin-top:7px}.continue-info .btn{margin-top:18px}.today-side{display:flex;flex-direction:column;gap:18px}.side-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:20px}.side-panel h3{font-size:12px;font-weight:550;margin:0 0 17px}.week-chart{height:100px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding-top:5px}.day-bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;height:100%;justify-content:flex-end}.day-bar .bar-track{height:68px;width:100%;max-width:18px;display:flex;align-items:flex-end;background:var(--surface-soft);border-radius:4px;overflow:hidden}.day-bar .bar-fill{width:100%;background:var(--brand-300);border-radius:4px;min-height:2px}.day-bar.today .bar-fill{background:var(--brand-600)}.day-bar small{font-size:8px;color:var(--fg-faint)}.chart-caption{display:flex;justify-content:space-between;margin-top:13px;padding-top:12px;border-top:1px solid var(--border);font-size:10px;color:var(--fg-faint)}.chart-caption b{color:var(--fg);font-weight:550}.retention-ring{display:flex;align-items:center;gap:15px}.ring{width:62px;height:62px;border-radius:50%;background:conic-gradient(var(--green) calc(var(--value)*1%),var(--gray-100) 0);display:grid;place-items:center;position:relative}.ring:before{content:"";position:absolute;inset:6px;background:var(--surface);border-radius:50%}.ring b{position:relative;font-size:14px;font-weight:600}.retention-copy b{display:block;font-size:13px;font-weight:550}.retention-copy small{font-size:10px;color:var(--fg-faint)}.daily-quote{padding:4px 4px 2px}.daily-quote .quote-mark{font-family:Georgia,serif;font-size:35px;line-height:1;color:var(--gray-300)}.daily-quote blockquote{margin:3px 0 12px;font-family:Georgia,"Songti SC",serif;font-size:14px;line-height:1.8;color:var(--fg-muted)}.daily-quote cite{font-style:normal;font-size:10px;color:var(--fg-faint)}.recent-section{margin-top:27px}.recent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.recent-card{border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:17px;min-width:0;transition:border-color 150ms}.recent-card:hover{border-color:var(--control-border)}.recent-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.mini-cover{width:27px;height:37px;border-radius:2px 4px 4px 2px;background:var(--cover);box-shadow:inset 2px 0 rgb(0 0 0/.1)}.recent-card h3{font-size:13px;font-weight:550;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-card p{font-size:10px;color:var(--fg-faint);margin:0}.recent-card .progress-line{margin-top:16px}.recent-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:var(--fg-faint);font-size:9px}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:23px}.filter-tabs{display:flex;gap:3px;background:var(--surface-soft);padding:3px;border-radius:8px}.filter-tab{border:0;background:transparent;color:var(--fg-muted);padding:5px 12px;border-radius:5px;font-size:11px}.filter-tab.active{background:var(--surface);color:var(--fg);box-shadow:0 0 0 1px var(--border)}.toolbar-spacer{flex:1}.compact-search{height:34px;border:1px solid var(--border);background:var(--surface);border-radius:7px;display:flex;align-items:center;padding:0 10px;gap:7px;width:190px;color:var(--fg-faint)}.compact-search .icon{width:14px}.compact-search input{border:0;outline:0;background:transparent;width:100%;font-size:11px;color:var(--fg)}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.library-card{border:1px solid var(--border);border-radius:11px;background:var(--surface);overflow:hidden;transition:border-color 150ms;min-width:0}.library-card:hover{border-color:var(--gray-400)}.library-cover{height:174px;background:var(--surface-soft);display:grid;place-items:center;position:relative}.library-cover .book-cover{width:80px;box-shadow:inset 3px 0 0 rgb(0 0 0/.09),0 7px 15px rgb(0 0 0/.12)}.library-cover .book-cover b{font-size:12px}.library-cover .book-cover small{font-size:6px}.library-status{position:absolute;top:11px;right:11px;background:color-mix(in srgb,var(--surface) 90%,transparent);border:1px solid var(--border);font-size:8px;padding:3px 7px;border-radius:99px;color:var(--fg-muted)}.library-info{padding:16px}.library-info h3{font-size:13px;font-weight:550;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-info>p{font-size:10px;color:var(--fg-faint);margin:0 0 16px}.library-info-foot{display:flex;align-items:center;justify-content:space-between;margin-top:11px;font-size:9px;color:var(--fg-faint)}.library-info-foot span{display:flex;align-items:center;gap:4px}.library-info-foot .icon{width:12px}.library-card-actions{display:flex;border-top:1px solid var(--border)}.library-card-actions button{flex:1;border:0;background:transparent;color:var(--fg-muted);font-size:10px;padding:9px;display:flex;align-items:center;justify-content:center;gap:5px}.library-card-actions button+button{border-left:1px solid var(--border)}.library-card-actions button:hover{background:var(--surface-soft);color:var(--fg)}.library-card-actions .icon{width:12px}.empty-state{border:1px dashed var(--control-border);border-radius:12px;padding:55px 20px;text-align:center;background:var(--surface);grid-column:1/-1}.empty-icon{width:48px;height:48px;border-radius:50%;background:var(--surface-soft);display:grid;place-items:center;margin:0 auto 15px;color:var(--fg-muted)}.empty-state h3{font-size:16px;margin:0 0 8px}.empty-state p{color:var(--fg-muted);font-size:12px;margin:0 auto 18px;max-width:360px}.cards-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px}.deck-panel{border-right:1px solid var(--border);padding-right:20px}.deck-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.deck-panel h2{font-size:11px;color:var(--fg-faint);font-weight:500;margin:0}.deck-filter{width:100%;display:flex;align-items:center;gap:9px;padding:9px 10px;border:0;background:transparent;border-radius:7px;text-align:left;font-size:11px;color:var(--fg-muted)}.deck-filter:hover,.deck-filter.active{background:var(--surface);color:var(--fg)}.deck-filter>span:nth-child(2){flex:1}.deck-filter small{font-size:9px;color:var(--fg-faint)}.deck-color{width:8px;height:8px;border-radius:2px}.deck-summary{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:13px;margin-top:18px}.deck-summary p{font-size:9px;color:var(--fg-faint);margin:0 0 4px}.deck-summary b{font-size:20px;letter-spacing:-.04em;font-weight:550}.deck-summary small{font-size:9px;color:var(--fg-muted);margin-left:5px}.card-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.card-list-head h2{font-size:13px;margin:0;font-weight:550}.card-list-head span{font-size:10px;color:var(--fg-faint)}.memory-card-list{display:flex;flex-direction:column;gap:10px}.memory-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:18px;transition:border-color 150ms}.memory-card:hover{border-color:var(--gray-400)}.memory-card-top{display:flex;align-items:center;gap:7px;margin-bottom:11px}.card-type{font-size:8px;border:1px solid var(--border);border-radius:4px;padding:2px 6px;color:var(--fg-faint)}.card-deck-name{font-size:9px;color:var(--fg-faint)}.card-due{margin-left:auto;font-size:9px;color:var(--green)}.card-due.due{color:var(--orange)}.memory-card h3{font-size:13px;font-weight:500;margin:0 0 8px;line-height:1.65}.memory-card-answer{font-size:11px;color:var(--fg-muted);margin:0;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.memory-card-foot{display:flex;align-items:center;gap:13px;border-top:1px solid var(--border);padding-top:11px;margin-top:13px;font-size:9px;color:var(--fg-faint)}.memory-card-foot>span{display:flex;align-items:center;gap:4px}.memory-card-foot .icon{width:11px}.memory-card-foot .card-actions{margin-left:auto;display:flex;gap:3px}.memory-card-foot .icon-btn{width:25px;height:25px}.memory-card-foot .icon-btn .icon{width:13px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:19px}.stat-card-top{display:flex;justify-content:space-between;align-items:center;color:var(--fg-muted);font-size:11px}.stat-card-top .icon{width:15px;color:var(--fg-faint)}.stat-value{font-size:28px;font-weight:550;letter-spacing:-.045em;margin:9px 0 3px}.stat-note{font-size:9px;color:var(--fg-faint)}.stat-note.positive{color:var(--green)}.analytics-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);gap:20px}.analytics-panel{border:1px solid var(--border);border-radius:11px;background:var(--surface);padding:22px}.analytics-panel h2{font-size:13px;font-weight:550;margin:0}.analytics-panel .panel-sub{font-size:10px;color:var(--fg-faint);margin:4px 0 20px}.activity-chart{height:220px;display:flex;gap:13px;align-items:flex-end;border-bottom:1px solid var(--border);padding:0 5px}.activity-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;position:relative}.activity-col .activity-value{font-size:8px;color:var(--fg-faint)}.activity-col .activity-bar{width:100%;max-width:28px;background:var(--brand-300);border-radius:4px 4px 0 0;min-height:3px}.activity-col.today .activity-bar{background:var(--brand-600)}.activity-col small{position:absolute;bottom:-25px;font-size:9px;color:var(--fg-faint)}.activity-chart-wrap{padding-bottom:28px}.deck-stats{margin-top:20px}.deck-stat{margin-top:17px}.deck-stat-row{display:flex;justify-content:space-between;font-size:10px;margin-bottom:7px}.deck-stat-row span{display:flex;align-items:center;gap:7px}.deck-stat-row b{font-weight:500}.calendar-heatmap{display:grid;grid-template-columns:repeat(14,1fr);gap:5px;margin-top:20px}.heat-cell{aspect-ratio:1;border-radius:3px;background:var(--gray-100)}.heat-cell.l1{background:var(--brand-100)}.heat-cell.l2{background:var(--brand-300)}.heat-cell.l3{background:var(--brand-600)}.calendar-labels{display:flex;justify-content:space-between;color:var(--fg-faint);font-size:9px;margin-top:10px}.reader-page{max-width:1100px;margin:0 auto}.reader-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.reader-breadcrumb{display:flex;align-items:center;gap:8px;color:var(--fg-faint);font-size:10px}.reader-breadcrumb a:hover{color:var(--fg)}.reader-breadcrumb .icon{width:12px}.reader-tools{display:flex;gap:6px;align-items:center}.reader-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:45px}.reader-aside{position:sticky;top:95px;align-self:start}.reader-aside .book-cover{width:90px;margin-bottom:17px}.reader-aside .book-cover b{font-size:13px}.reader-aside h2{font-size:12px;font-weight:550;margin:0 0 4px}.reader-aside>p{font-size:9px;color:var(--fg-faint);margin:0 0 20px}.reader-aside .progress-line{height:3px}.reader-aside .progress-meta{font-size:8px}.toc{margin-top:24px;border-top:1px solid var(--border);padding-top:16px}.toc h3{font-size:9px;color:var(--fg-faint);font-weight:500;margin:0 0 9px}.toc a{display:block;font-size:9px;color:var(--fg-muted);padding:5px 0}.toc a:hover{color:var(--fg)}.reader-content{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:44px 56px;min-width:0}.reader-header{border-bottom:1px solid var(--border);padding-bottom:25px;margin-bottom:28px}.reader-header .eyebrow{color:var(--brand-600)}.reader-header h1{font-family:Georgia,"Songti SC",serif;font-weight:500;font-size:29px;letter-spacing:.01em}.reader-header p{font-size:10px;color:var(--fg-faint);margin:0}.article-body{font-family:Georgia,"Songti SC","Noto Serif SC",serif;font-size:16px;line-height:2.05;color:var(--fg)}.article-body p{margin:0 0 1.35em}.article-body h2{font-size:20px;font-weight:550;margin:1.8em 0 .8em}.article-body mark{background:#f1e6b8;color:inherit;border-radius:2px;padding:1px 0;cursor:pointer}.dark .article-body mark{background:#544c25}.article-body mark.card-highlight{background:var(--brand-100)}.article-body mark:hover{filter:brightness(.97)}.reader-end{border-top:1px solid var(--border);margin-top:32px;padding-top:20px;display:flex;align-items:center;justify-content:space-between;color:var(--fg-faint);font-size:10px}.reader-end .btn{font-family:ui-sans-serif,system-ui,sans-serif}.selection-toolbar{position:fixed;z-index:70;background:var(--accent-bg);color:var(--accent-fg);border-radius:8px;padding:5px;display:flex;gap:3px;box-shadow:0 5px 20px rgb(0 0 0/.18);animation:fade-in 120ms}.selection-toolbar button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;border-radius:5px;padding:7px 9px;font-size:10px}.selection-toolbar button:hover{background:rgb(128 128 128/.2)}.selection-toolbar .icon{width:13px}.reading-note{margin-top:20px;border:1px solid var(--border);border-radius:9px;background:var(--surface);padding:15px}.reading-note h3{font-size:11px;margin:0 0 10px}.reading-note textarea{width:100%;border:0;background:transparent;resize:vertical;min-height:60px;outline:0;font-size:11px;line-height:1.7}.reading-note-foot{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--fg-faint)}.review-session{max-width:760px;margin:0 auto}.review-session-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.review-progress{display:flex;align-items:center;gap:10px;font-size:10px;color:var(--fg-faint)}.review-progress .progress-line{width:130px}.study-card{border:1px solid var(--border);border-radius:14px;background:var(--surface);min-height:390px;padding:45px 50px;display:flex;flex-direction:column}.study-card-meta{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--fg-faint)}.study-card-meta>span:first-child{display:flex;align-items:center;gap:6px}.study-question{font-size:21px;line-height:1.75;font-weight:500;letter-spacing:-.015em;margin:auto 0;padding:40px 0;text-align:center}.study-answer{font-size:14px;color:var(--fg-muted);line-height:1.9;padding:22px 0;margin:auto 0;border-top:1px solid var(--border);white-space:pre-wrap}.study-source{display:flex;align-items:center;gap:6px;color:var(--fg-faint);font-size:9px}.study-source .icon{width:12px}.review-reveal{display:flex;justify-content:center;margin-top:24px}.review-reveal .btn{min-width:190px}.review-ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:24px}.rating-btn{background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:13px 8px;display:flex;flex-direction:column;align-items:center;gap:4px}.rating-btn:hover{border-color:var(--gray-400);background:var(--surface-soft)}.rating-btn b{font-size:12px;font-weight:550}.rating-btn small{font-size:9px;color:var(--fg-faint)}.rating-btn kbd{margin-top:3px;color:var(--fg-faint)}.review-shortcuts{text-align:center;color:var(--fg-faint);font-size:9px;margin-top:18px}.session-complete{text-align:center;padding:60px 25px;border:1px solid var(--border);background:var(--surface);border-radius:14px}.session-complete .empty-icon{background:var(--green-bg);color:var(--green)}.session-complete h2{font-size:24px;letter-spacing:-.03em;margin:0 0 9px}.session-complete p{color:var(--fg-muted);font-size:12px;margin:0 0 22px}.complete-stats{display:flex;justify-content:center;gap:40px;margin:25px 0}.complete-stats b{display:block;font-size:23px}.complete-stats small{font-size:9px;color:var(--fg-faint)}.modal-backdrop{position:fixed;inset:0;background:rgb(10 12 16/.45);backdrop-filter:blur(3px);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;animation:fade-in 120ms}.modal{width:min(520px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 20px 60px rgb(0 0 0/.18);animation:modal-in 180ms var(--ease)}.modal.wide{width:min(650px,100%)}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px 15px}.modal-header h2{font-size:17px;font-weight:600;letter-spacing:-.02em;margin:0 0 4px}.modal-header p{font-size:10px;color:var(--fg-faint);margin:0}.modal-body{padding:5px 24px 24px}.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:15px 24px;border-top:1px solid var(--border)}.field{margin-bottom:16px}.field label{display:block;font-size:11px;font-weight:500;margin-bottom:6px}.field input,.field textarea,.field select{width:100%;border:1px solid var(--control-border);border-radius:7px;background:var(--surface);padding:9px 11px;outline:0;font-size:12px}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--gray-400);box-shadow:0 0 0 2px rgb(156 163 175/.2)}.field textarea{min-height:95px;resize:vertical;line-height:1.7}.field small{display:block;color:var(--fg-faint);font-size:9px;margin-top:5px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-error{background:#fef2f2;color:#b91c1c;border-radius:7px;padding:9px 11px;font-size:11px;margin-bottom:13px}.dark .form-error{background:#32191b;color:#f87171}.search-modal-input{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid var(--border)}.search-modal-input .icon{color:var(--fg-faint)}.search-modal-input input{flex:1;border:0;background:transparent;outline:0;font-size:14px}.search-results{padding:10px;max-height:440px;overflow:auto}.search-result{display:flex;align-items:flex-start;gap:11px;padding:11px;border-radius:8px;width:100%;border:0;background:transparent;text-align:left}.search-result:hover{background:var(--surface-soft)}.search-result>.result-icon{width:30px;height:30px;border-radius:6px;background:var(--surface-soft);display:grid;place-items:center;color:var(--fg-muted)}.search-result .icon{width:14px}.search-result>span:nth-child(2){flex:1;min-width:0}.search-result b{display:block;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-result small{display:block;font-size:9px;color:var(--fg-faint);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-empty{text-align:center;padding:40px;color:var(--fg-faint);font-size:11px}.guide-step{display:flex;gap:13px;margin-bottom:19px}.guide-number{width:25px;height:25px;border-radius:50%;background:var(--brand-50);color:var(--brand-700);display:grid;place-items:center;font-size:10px;flex-shrink:0}.guide-step h3{font-size:12px;margin:2px 0 4px;font-weight:550}.guide-step p{font-size:10px;color:var(--fg-muted);line-height:1.7;margin:0}.shortcut-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}.shortcut-list>div{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--fg-muted)}.shortcut-list kbd{background:var(--surface-soft);border:1px solid var(--border);padding:2px 6px;border-radius:4px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--border)}.settings-row h3{font-size:12px;font-weight:500;margin:0 0 3px}.settings-row p{font-size:9px;color:var(--fg-faint);margin:0}.toggle{width:38px;height:22px;border:0;border-radius:99px;background:var(--gray-300);padding:3px;transition:background 150ms}.toggle:after{content:"";display:block;width:16px;height:16px;border-radius:50%;background:white;transition:transform 150ms}.toggle.on{background:var(--brand-600)}.toggle.on:after{transform:translateX(16px)}.toast-root{position:fixed;right:22px;bottom:22px;z-index:150;display:flex;flex-direction:column;gap:8px}.toast{display:flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:0 8px 24px rgb(0 0 0/.08);padding:11px 14px;font-size:11px;animation:modal-in 180ms var(--ease)}.toast .icon{width:15px;color:var(--green)}.toast.error .icon{color:var(--red)}.mobile-overlay{display:none}.loading-skeleton{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:25px}.skeleton{height:16px;background:var(--gray-100);border-radius:5px;margin:12px 0;animation:pulse 1.4s infinite}.dark .skeleton{background:#1f1f1f}@keyframes pulse{50%{opacity:.45}}@media(min-width:1500px){:root{--sidebar:245px}#main-content{padding:44px 55px 70px}.library-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1100px){.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.today-grid{grid-template-columns:minmax(0,1fr) 245px;gap:18px}#main-content{padding:32px 28px 60px}.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recent-card:last-child{display:none}.reader-layout{grid-template-columns:140px minmax(0,1fr);gap:28px}.reader-content{padding:36px}.stats-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){:root{--sidebar:210px}.topbar{padding:0 22px}.today-grid{grid-template-columns:1fr}.today-side{display:grid;grid-template-columns:1fr 1fr}.daily-quote{display:none}.cards-layout{grid-template-columns:1fr}.deck-panel{border-right:0;border-bottom:1px solid var(--border);padding:0 0 15px;display:flex;gap:5px;overflow:auto}.deck-panel-head,.deck-summary{display:none}.deck-filter{width:auto;white-space:nowrap}.deck-filter small{display:none}.analytics-grid{grid-template-columns:1fr}.reader-layout{grid-template-columns:1fr}.reader-aside{display:none}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){:root{--topbar:56px}.sidebar{transform:translateX(-100%);transition:transform 220ms var(--ease);width:245px;box-shadow:8px 0 30px rgb(0 0 0/.1)}body.nav-open .sidebar{transform:translateX(0)}.mobile-overlay{display:block;position:fixed;inset:0;background:rgb(0 0 0/.3);z-index:25;opacity:0;pointer-events:none;transition:opacity 180ms}body.nav-open .mobile-overlay{opacity:1;pointer-events:auto}.main-column{margin-left:0}.mobile-menu{display:grid}.topbar{padding:0 14px;gap:7px}.search-trigger{width:auto;flex:1}.search-trigger>span:nth-child(2){font-size:0}.search-trigger>span:nth-child(2):after{content:"搜索…";font-size:11px}.search-trigger kbd{display:none}.streak-chip{display:none}.topbar-actions{gap:3px}#main-content{padding:25px 17px 50px}.page-heading{margin-bottom:23px}.page-heading h1{font-size:25px}.page-heading{align-items:flex-start}.heading-actions .btn span.btn-label{display:none}.heading-actions .btn{padding:7px 10px}.review-hero{padding:22px}.review-breakdown{gap:15px;flex-wrap:wrap}.review-hero-footer{gap:10px}.review-hero-footer small{max-width:110px}.focus-card{padding:19px}.continue-reading{gap:15px}.book-cover{width:86px}.today-side{grid-template-columns:1fr}.recent-grid{grid-template-columns:1fr}.recent-card:last-child{display:block}.toolbar{flex-wrap:wrap}.compact-search{width:100%;order:-1}.filter-tabs{max-width:100%;overflow:auto}.library-grid{gap:12px}.library-cover{height:145px}.library-info{padding:13px}.stats-grid{gap:10px}.stat-card{padding:15px}.stat-value{font-size:24px}.analytics-panel{padding:17px}.activity-chart{gap:7px}.reader-top{margin-bottom:18px}.reader-tools .btn{font-size:0;padding:8px}.reader-tools .btn .icon{margin:0}.reader-content{padding:28px 22px}.reader-header h1{font-size:25px}.article-body{font-size:16px}.study-card{padding:30px 24px;min-height:360px}.study-question{font-size:18px}.review-ratings{gap:5px}.rating-btn{padding:11px 3px}.modal-backdrop{padding:12px}.modal-header{padding:20px 20px 13px}.modal-body{padding:5px 20px 20px}.modal-footer{padding:13px 20px}.field-row{grid-template-columns:1fr}.shortcut-list{grid-template-columns:1fr}.toast-root{left:15px;right:15px;bottom:15px}.toast{justify-content:center}.selection-toolbar{max-width:calc(100vw - 20px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Dual-scheduler workflow additions */
.reading-queue-list{display:grid;gap:6px;max-height:430px;overflow:auto}.queue-row{display:grid;grid-template-columns:32px minmax(0,1fr) 42px;align-items:center;gap:12px;width:100%;padding:13px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--fg);text-align:left;cursor:pointer}.queue-row:hover{background:var(--surface-soft);border-color:var(--border)}.queue-index{font:11px/1.2 ui-monospace,monospace;color:var(--fg-faint)}.queue-row>span:nth-child(2){min-width:0}.queue-row b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue-row small{display:block;margin-top:5px;color:var(--fg-muted);font-size:10px}.queue-score{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--brand-50);color:var(--brand-700);font-size:11px;font-weight:700}.algorithm-note{padding:12px 14px;border-radius:8px;background:var(--surface-soft);color:var(--fg-muted);font-size:10px;line-height:1.8}.reading-feedback-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.reading-feedback{display:flex;flex-direction:column;gap:6px;padding:17px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--fg);text-align:left;cursor:pointer}.reading-feedback:hover{border-color:var(--brand-500);background:var(--brand-50)}.reading-feedback b{font-size:13px}.reading-feedback small{color:var(--fg-muted);font-size:10px}.global-search-field{display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}.global-search-field .icon{color:var(--fg-faint)}.global-search-field input{width:100%;height:44px;border:0;outline:0;background:transparent;color:var(--fg);font:inherit}.backup-actions{display:flex;flex-wrap:wrap;gap:10px}.help-sections{display:grid;gap:18px}.help-sections h3{margin:0 0 5px;font-size:13px}.help-sections p{margin:0;color:var(--fg-muted);font-size:11px;line-height:1.8}input[type="range"]{accent-color:var(--brand-600)}
@media(max-width:600px){.reading-feedback-grid{grid-template-columns:1fr}.queue-row{grid-template-columns:24px minmax(0,1fr) 36px;gap:8px;padding-inline:4px}.queue-score{width:32px;height:32px}.review-ratings{gap:6px!important}.review-ratings .rating-btn{padding-inline:5px}.backup-actions{flex-direction:column;align-items:stretch}}


/* Integrated Rem notes and focused knowledge plex */
.notes-layout,.graph-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr);gap:20px;align-items:start}.notes-panel,.notes-context,.graph-stage,.graph-context{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);min-width:0}.notes-toolbar{padding:14px;border-bottom:1px solid var(--border)}.notes-toolbar .compact-search{width:100%}.rem-tree{padding:12px 8px;min-height:300px}.rem-row{display:flex;align-items:center;gap:5px;padding-left:calc(var(--depth,0)*21px);border-radius:7px;min-height:47px}.rem-row:hover{background:var(--surface-soft)}.rem-row.active{background:var(--brand-50)}.rem-bullet{width:6px;height:6px;border:1.5px solid var(--fg-faint);border-radius:50%;margin:0 5px;flex-shrink:0}.rem-row.active .rem-bullet{background:var(--brand-500);border-color:var(--brand-500)}.rem-open{flex:1;min-width:0;padding:9px 4px;border:0;background:transparent;text-align:left}.rem-open b,.rem-open small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rem-open b{font-size:12px;font-weight:550}.rem-open small{font-size:10px;color:var(--fg-muted);margin-top:3px}.rem-count{font-size:9px;color:var(--brand-600);white-space:nowrap}.notes-context{padding:24px;position:sticky;top:calc(var(--topbar) + 20px)}.notes-context h2{font-size:18px;line-height:1.4;margin:6px 0 12px;overflow-wrap:anywhere}.notes-context>p:not(.eyebrow){font-size:12px;line-height:1.85;color:var(--fg-muted);white-space:pre-wrap;overflow-wrap:anywhere}.note-context-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.notes-empty-graphic{width:50px;height:50px;border-radius:14px;background:var(--brand-50);color:var(--brand-600);display:grid;place-items:center;margin-bottom:16px}.notes-empty-graphic .icon{width:25px;height:25px}.workflow-hint{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:22px;font-size:10px;color:var(--fg-muted)}.workflow-hint .icon{width:12px}.backlinks{border-top:1px solid var(--border);margin-top:20px;padding-top:16px}.backlinks h3,.graph-neighbors h3{font-size:11px;margin:0 0 12px}.backlinks h3 span,.graph-neighbors h3 span{color:var(--fg-faint);font-weight:400}.backlink-row{display:flex;align-items:center;gap:9px;width:100%;padding:10px 0;border:0;border-bottom:1px solid var(--border);background:transparent;text-align:left}.backlink-row:hover b{color:var(--brand-600)}.backlink-row>span:last-child{min-width:0}.backlink-row b,.backlink-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.backlink-row b{font-size:11px}.backlink-row small{font-size:9px;color:var(--fg-faint);margin-top:3px}.backlinks>p,.graph-neighbors>p,.graph-footnote{font-size:10px;line-height:1.8;color:var(--fg-faint)}.inline-syntax{display:flex;gap:6px;flex-wrap:wrap;margin:-3px 0 14px}.inline-syntax button{border:0;background:var(--surface-soft);border-radius:5px;padding:5px 8px;color:var(--fg-muted);font-size:10px}.inline-syntax button:hover{background:var(--brand-50);color:var(--brand-700)}
.graph-layout{grid-template-columns:minmax(0,1fr) 310px}.graph-stage{overflow:hidden}.graph-stage-head{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--border)}.graph-stage-head .compact-search{flex:1}.scope-switch{display:flex;gap:3px;padding:3px;background:var(--surface-soft);border-radius:7px}.scope-switch button{border:0;background:transparent;border-radius:5px;padding:6px 9px;color:var(--fg-muted);font-size:10px;white-space:nowrap}.scope-switch button.active{background:var(--surface);color:var(--fg);box-shadow:0 1px 3px #0000000d}.graph-stage>span{display:block;padding:8px 16px;color:var(--fg-faint);font-size:9px}#knowledge-graph{height:560px;min-height:360px;background:radial-gradient(circle at 1px 1px,var(--border) 1px,transparent 0);background-size:25px 25px}.graph-legend{display:flex;gap:15px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--border);font-size:9px;color:var(--fg-faint)}.graph-legend span{display:flex;align-items:center;gap:5px}.graph-legend i{width:8px;height:8px;border-radius:50%;background:#789281}.graph-legend i.node-note{background:#5c7fbe}.graph-legend i.node-hl{background:#c3a65c;transform:rotate(45deg)}.graph-legend i.node-card{background:#85819c}.jump-legend{color:var(--brand-600)}.graph-context{padding:22px;position:sticky;top:calc(var(--topbar) + 20px)}.node-type{display:inline-block;background:var(--brand-50);color:var(--brand-700);padding:3px 7px;border-radius:4px;font-size:9px}.graph-context h2{font-size:19px;line-height:1.45;margin:12px 0 8px;overflow-wrap:anywhere}.graph-context>p:not(.eyebrow):not(.graph-footnote){font-size:11px;line-height:1.8;color:var(--fg-muted);overflow-wrap:anywhere}.graph-context>.btn{margin:12px 0 20px}.graph-neighbors{border-top:1px solid var(--border);padding-top:16px}.neighbor-wrap{display:flex;align-items:center;border-bottom:1px solid var(--border)}.neighbor{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:0;background:transparent;padding:10px 0;text-align:left}.neighbor>span:nth-child(2){flex:1;min-width:0}.neighbor b,.neighbor small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.neighbor b{font-size:10px}.neighbor small{font-size:9px;color:var(--fg-faint);margin-top:3px}.neighbor>.icon{width:12px;color:var(--fg-faint)}.relation-tag{font-size:8px;padding:2px 4px;border-radius:3px;background:var(--surface-soft);color:var(--fg-faint)}.relation-tag.jump{background:var(--brand-50);color:var(--brand-700)}.unlink{width:25px;height:25px;border:0;background:transparent;color:var(--fg-faint);display:grid;place-items:center}.unlink:hover{color:var(--red)}.unlink .icon{width:12px}.graph-footnote{margin-top:20px}.dark #knowledge-graph{filter:brightness(.85)}
@media(max-width:1100px){.graph-layout{grid-template-columns:minmax(0,1fr) 260px}.notes-layout{grid-template-columns:minmax(0,1fr) 280px}#knowledge-graph{height:480px}}
@media(max-width:850px){.notes-layout,.graph-layout{grid-template-columns:1fr}.notes-context,.graph-context{position:static}.graph-context{order:-1}.graph-neighbors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:15px}.graph-neighbors h3,.graph-neighbors>p{grid-column:1/-1}#knowledge-graph{height:440px}}
@media(max-width:640px){.graph-stage-head{flex-wrap:wrap}.graph-stage-head .compact-search{flex-basis:100%}.scope-switch{width:100%}.scope-switch button{flex:1}.graph-neighbors{grid-template-columns:1fr}#knowledge-graph{height:390px}.rem-tree{padding-inline:3px}.rem-row{padding-left:calc(var(--depth,0)*12px)}.notes-context,.graph-context{padding:18px}}

/* XMS library */
.xms-launch{width:100%;margin-bottom:18px}.xms-status{display:flex;align-items:center;gap:8px;padding:10px 12px;margin-bottom:15px;border:1px solid var(--border);border-radius:8px;color:var(--fg-muted);font-size:11px;background:var(--bg-soft)}.xms-status.connected .status-dot{background:#5f9875}.xms-status .text-link{margin-left:auto}.xms-search{display:grid;grid-template-columns:minmax(160px,1fr) auto auto;gap:8px}.xms-search input,.xms-search select{min-width:0;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:var(--bg);color:var(--fg)}.xms-source-note{font-size:10px;color:var(--fg-faint);line-height:1.65;margin:9px 0 15px}.xms-loading{padding:24px;text-align:center;color:var(--fg-muted);font-size:12px}.xms-result-count{font-size:10px;color:var(--fg-faint);margin-bottom:8px}.xms-book{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}.xms-book>div{min-width:0;flex:1}.xms-book b{display:block;font-size:12px;font-weight:500;line-height:1.5}.xms-book small{display:block;margin-top:4px;font-size:9px;color:var(--fg-faint);line-height:1.5}.xms-book>button{flex-shrink:0}.xms-book .xms-share{flex-basis:100%;padding:10px;background:var(--bg-soft);border-radius:6px}.xms-share a{display:inline-flex;gap:4px;align-items:center;color:var(--accent);font-size:11px;margin-right:15px}.xms-share span{font-size:11px}.xms-share small{margin-top:5px}.xms-book:has(.xms-share){flex-wrap:wrap}.xms-downloads{margin-top:22px;padding-top:16px;border-top:1px solid var(--border)}.xms-downloads h3{font-size:13px}.xms-downloads .section-title-row>span,.xms-downloads>p{font-size:10px;color:var(--fg-faint)}.download-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}.download-row>div{min-width:0;flex:1}.download-row b{display:block;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.download-row small{display:block;font-size:9px;color:var(--fg-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.load-more-paragraphs{display:flex;margin:30px auto}.reader-loading{min-height:65vh;display:grid;place-items:center}.modal:has(.xms-search){max-width:760px}.modal:has(.xms-search) .modal-body{max-height:65vh;overflow:auto}
@media(max-width:600px){.xms-search{grid-template-columns:1fr auto}.xms-search input{grid-column:1/-1}.xms-search select{font-size:11px}.xms-book{align-items:flex-start;flex-direction:column;gap:8px}.xms-book>button{align-self:flex-end}.download-row .btn{padding:7px;font-size:10px}}

/* EPUB 2/3 and Calibre-converted Kindle semantic layout */
.article-body>:is(h1,h2,h3,h4,h5,h6){font-weight:550;line-height:1.45;margin:1.8em 0 .8em;overflow-wrap:anywhere}
.article-body>h1{font-size:1.75em}.article-body>h2{font-size:1.35em}.article-body>h3{font-size:1.15em}
.article-body blockquote{margin:1.4em 0;padding:.3em 0 .3em 1.25em;border-left:3px solid var(--brand-300);color:var(--fg-muted)}
.article-body :is(ul,ol,dl){margin:0 0 1.35em;padding-left:2em}.article-body li{margin:.3em 0}.article-body dt{font-weight:600}.article-body dd{margin-left:1.5em}
.article-body table{display:block;max-width:100%;margin:1.5em 0;overflow-x:auto;border-collapse:collapse;font-size:.9em;line-height:1.6}
.article-body :is(th,td){min-width:3em;padding:.55em .8em;border:1px solid var(--border);text-align:left;vertical-align:top}.article-body th{background:var(--surface-soft);font-weight:600}.article-body caption{text-align:left;color:var(--fg-muted);margin-bottom:.5em}
.article-body figure{margin:1.6em auto;text-align:center}.article-body figcaption{margin-top:.6em;color:var(--fg-muted);font-size:.8em;line-height:1.6}
.article-body img{display:block;max-width:100%;height:auto;margin:1.3em auto;object-fit:contain}.article-body figure img{margin:.5em auto}
.article-body pre{max-width:100%;overflow-x:auto;padding:1em 1.2em;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);font:0.85em/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.article-body :is(code,kbd,samp){font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em}.article-body p code{padding:.1em .3em;border-radius:4px;background:var(--surface-soft)}
.article-body math{max-width:100%;overflow-x:auto;font-size:1.05em}.article-body ruby{line-height:2.2}.article-body rt{font-size:.6em}.article-body sub,.article-body sup{line-height:0}
.article-body a{color:var(--brand-700);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;word-break:break-word}.article-body hr{height:1px;border:0;background:var(--border);margin:2.5em 0}
.article-body :is(div,aside){overflow-wrap:anywhere}.article-body [dir="rtl"]{direction:rtl}.article-body [lang]{hyphens:auto}
@media(max-width:600px){.article-body table{font-size:.8em}.article-body :is(th,td){padding:.4em .5em}.article-body :is(ul,ol,dl){padding-left:1.5em}}

/* Account access and private cloud workspaces */
.auth-page{min-height:100vh;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(ellipse at 50% -20%,var(--brand-50),transparent 65%),var(--bg)}
.auth-card{width:min(100%,410px);padding:38px;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:0 16px 60px #1118270a}.auth-brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:650;letter-spacing:-.04em;margin-bottom:38px}.auth-card h1{font-size:28px;letter-spacing:-.04em;margin:0 0 10px}.auth-intro{font-size:13px;color:var(--fg-muted);line-height:1.8;margin:0 0 26px}.auth-card .field{margin-bottom:17px}.auth-card .field input{width:100%;height:43px}.auth-error{min-height:21px;color:var(--red);font-size:12px;margin:4px 0 12px}.auth-submit{width:100%;justify-content:center;height:43px}.auth-switch{font-size:12px;color:var(--fg-muted);text-align:center;margin:23px 0 17px}.auth-switch .text-link{font-size:12px}.auth-footnote{border-top:1px solid var(--border);padding-top:17px;margin:0;font-size:10px;line-height:1.8;color:var(--fg-faint)}
.account-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:22px}.account-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--fg-muted);padding:10px 13px;font-size:12px}.account-tabs button.active{color:var(--fg);border-bottom-color:var(--brand-600)}#account-profile form,#password-form{display:grid;gap:16px;max-width:440px}#account-profile .btn,#password-form .btn{justify-self:start}.field small{display:block;font-size:10px;color:var(--fg-faint);margin-top:6px}.btn.danger{color:var(--red)}.account-help{font-size:11px;color:var(--fg-muted);line-height:1.8}.admin-user{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--border)}.admin-user b{display:block;font-size:12px}.admin-user b span{font-weight:400;color:var(--fg-muted)}.admin-user small{display:block;font-size:10px;color:var(--fg-faint);margin-top:5px}.admin-user>div:last-child{display:flex;gap:7px;flex-shrink:0}.btn.small{padding:6px 10px;font-size:11px}.modal:has(.account-tabs){max-width:660px}
@media(max-width:600px){.auth-page{padding:16px}.auth-card{padding:28px 23px;border-radius:13px}.auth-brand{margin-bottom:30px}.admin-user{align-items:flex-start;flex-direction:column;gap:10px}.admin-user>div:last-child{align-self:flex-end}.account-tabs{overflow-x:auto}.account-tabs button{white-space:nowrap}}

/* Direct, continuous reading feedback */
.reader-end{display:block;margin-top:34px;padding:24px;border:1px solid var(--border);border-radius:var(--radius-card);background:var(--surface)}
.reader-end-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.reader-end-heading h2{margin:0 0 4px;font-size:17px}.reader-end-heading p{margin:0;color:var(--fg-muted);font-size:11px}
.reader-effective-time{flex-shrink:0;color:var(--fg-muted);font-size:10px}.reader-effective-time b{color:var(--fg);font-size:12px}
.reading-auto{width:100%;height:auto;min-height:58px;display:grid;grid-template-columns:auto auto;justify-content:center;column-gap:8px;padding:12px 16px}
.reading-auto>span{grid-column:1/-1;font-size:10px;font-weight:400;opacity:.8;text-align:center;margin-top:3px}
.reading-feedback-divider{margin:16px 0 10px;color:var(--fg-faint);font-size:10px;text-align:center}
.reader-end .reading-feedback-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.reader-end .reading-feedback{padding:12px 10px;gap:3px}.reader-end .algorithm-note{margin:14px 0 0}
@media(max-width:900px){.reader-end .reading-feedback-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.reader-end{padding:18px 14px}.reader-end-heading{flex-direction:column;gap:7px}.reading-auto{min-height:64px}.reader-end .reading-feedback{padding:13px 10px}}
