:root{--reader-action-width:104px;--reader-action-height:38px;--reader-action-radius:8px;--theme-background:#f4f5f7;--theme-surface:#fbfbfc;--theme-surface-raised:#fff;--theme-surface-subtle:#eceef1;--theme-text-primary:#252a31;--theme-text-secondary:#4b5563;--theme-text-muted:#68717e;--theme-border:#d9dde3;--theme-accent:#527a9e;--theme-accent-readable:#527a9e;--theme-accent-rgb:82, 122, 158;--theme-accent-contrast:#fff;--theme-accent-soft:#e8edf2;--ion-background-color:var(--theme-background);--ion-text-color:var(--theme-text-primary);--ion-color-primary:var(--theme-accent);--ion-color-primary-rgb:82, 122, 158;--ion-color-primary-contrast:var(--theme-accent-contrast);--ion-color-primary-contrast-rgb:255, 255, 255;--ion-color-primary-shade:#486c8c;--ion-color-primary-tint:#678aa9;--ion-color-medium:var(--theme-text-muted);--ion-color-step-50:var(--theme-surface-subtle);--ion-color-step-100:var(--theme-border);--ion-color-step-150:var(--theme-border);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--theme-text-primary);background:var(--theme-background);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=mist]{--theme-background:#f4f5f7;--theme-surface:#fbfbfc;--theme-surface-raised:#fff;--theme-surface-subtle:#eceef1;--theme-text-primary:#252a31;--theme-text-secondary:#4b5563;--theme-text-muted:#68717e;--theme-border:#d9dde3;--theme-accent:#527a9e;--theme-accent-readable:#527a9e;--theme-accent-rgb:82, 122, 158;--theme-accent-contrast:#fff;--theme-accent-soft:#e8edf2;--ion-background-color:var(--theme-background);--ion-text-color:var(--theme-text-primary);--ion-color-medium:var(--theme-text-muted);--ion-color-light:var(--theme-surface-subtle);--ion-color-light-contrast:var(--theme-text-secondary);--ion-color-step-50:var(--theme-surface-subtle);--ion-color-step-100:var(--theme-border);--ion-color-step-150:var(--theme-border);--ion-color-step-250:var(--theme-border);--ion-color-primary:#527a9e;--ion-color-primary-rgb:82, 122, 158;--ion-color-primary-contrast:#fff;--ion-color-primary-contrast-rgb:255, 255, 255;--ion-color-primary-shade:#486c8c;--ion-color-primary-tint:#678aa9;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=deep-space]{--theme-background:#202124;--theme-surface:#27282b;--theme-surface-raised:#2d2f33;--theme-surface-subtle:#35373b;--theme-text-primary:#e1e3e6;--theme-text-secondary:#c4c7cc;--theme-text-muted:#a0a5ad;--theme-border:#3e4146;--theme-accent:#4c7898;--theme-accent-readable:#8aabc3;--theme-accent-rgb:76, 120, 152;--theme-accent-soft:#303c46;--ion-background-color:var(--theme-background);--ion-text-color:var(--theme-text-primary);--ion-color-medium:var(--theme-text-muted);--ion-color-light:var(--theme-surface-subtle);--ion-color-light-contrast:var(--theme-text-primary);--ion-color-step-50:var(--theme-surface-subtle);--ion-color-step-100:var(--theme-border);--ion-color-step-150:var(--theme-border);--ion-color-step-250:var(--theme-border);--ion-color-primary:#4c7898;--ion-color-primary-contrast:#fff;--ion-color-primary-contrast-rgb:255, 255, 255;--ion-color-primary-rgb:76, 120, 152;--ion-color-primary-shade:#436a86;--ion-color-primary-tint:#6086a2;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=graphite]{--theme-background:#2b2d30;--theme-surface:#313337;--theme-surface-raised:#383a3f;--theme-surface-subtle:#414349;--theme-text-primary:#d6d7da;--theme-text-secondary:#c0c2c6;--theme-text-muted:#a2a5ab;--theme-border:#4a4c52;--theme-accent:#547694;--theme-accent-readable:#91abc1;--theme-accent-rgb:84, 118, 148;--theme-accent-soft:#39434c;--ion-background-color:var(--theme-background);--ion-text-color:var(--theme-text-primary);--ion-color-medium:var(--theme-text-muted);--ion-color-light:var(--theme-surface-subtle);--ion-color-light-contrast:var(--theme-text-primary);--ion-color-step-50:var(--theme-surface-subtle);--ion-color-step-100:var(--theme-border);--ion-color-step-150:var(--theme-border);--ion-color-step-250:var(--theme-border);--ion-color-primary:#547694;--ion-color-primary-rgb:84, 118, 148;--ion-color-primary-contrast:#fff;--ion-color-primary-contrast-rgb:255, 255, 255;--ion-color-primary-shade:#496984;--ion-color-primary-tint:#6786a1;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=moss]{--theme-background:#292a25;--theme-surface:#30312c;--theme-surface-raised:#373833;--theme-surface-subtle:#3e403a;--theme-text-primary:#e5e4da;--theme-text-secondary:#d2d1c8;--theme-text-muted:#b0afa5;--theme-border:#4a4b43;--theme-accent:#9aa67a;--theme-accent-readable:#b2bd91;--theme-accent-rgb:154, 166, 122;--theme-accent-contrast:#20221b;--theme-accent-soft:#3b3e34;--ion-background-color:var(--theme-background);--ion-text-color:var(--theme-text-primary);--ion-color-medium:var(--theme-text-muted);--ion-color-light:var(--theme-surface-subtle);--ion-color-light-contrast:var(--theme-text-primary);--ion-color-step-50:var(--theme-surface-subtle);--ion-color-step-100:var(--theme-border);--ion-color-step-150:var(--theme-border);--ion-color-step-250:var(--theme-border);--ion-color-primary:#9aa67a;--ion-color-primary-rgb:154, 166, 122;--ion-color-primary-contrast:#20221b;--ion-color-primary-contrast-rgb:32, 34, 27;--ion-color-primary-shade:#87936a;--ion-color-primary-tint:#a5af88;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=tide]{--theme-background:#26343a;--theme-surface:#2c3b42;--theme-surface-raised:#33434a;--theme-surface-subtle:#3a4b52;--theme-text-primary:#e2e0d7;--theme-text-secondary:#c9d0cf;--theme-text-muted:#a4b0b2;--theme-border:#4a5a60;--theme-accent:#6d9995;--theme-accent-readable:#91b7b2;--theme-accent-rgb:109, 153, 149;--theme-accent-contrast:#20272a;--theme-accent-soft:#35484b;--ion-background-color:var(--theme-background);--ion-text-color:var(--theme-text-primary);--ion-color-medium:var(--theme-text-muted);--ion-color-light:var(--theme-surface-subtle);--ion-color-light-contrast:var(--theme-text-primary);--ion-color-step-50:var(--theme-surface-subtle);--ion-color-step-100:var(--theme-border);--ion-color-step-150:var(--theme-border);--ion-color-step-250:var(--theme-border);--ion-color-primary:#6d9995;--ion-color-primary-rgb:109, 153, 149;--ion-color-primary-contrast:#20272a;--ion-color-primary-contrast-rgb:32, 39, 42;--ion-color-primary-shade:#608784;--ion-color-primary-tint:#7ba6a1;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{background:var(--theme-background);min-width:320px;min-height:100vh;color:var(--theme-text-primary);margin:0}:root[data-theme] ion-content{--background:var(--theme-background)!important;--color:var(--theme-text-primary)!important}#app{min-height:100vh}ion-app,ion-page,ion-content{background:var(--theme-background);color:var(--theme-text-primary)}ion-content{--background:var(--theme-background);--color:var(--theme-text-primary)}ion-toolbar,ion-tab-bar,ion-card,ion-modal,ion-popover,ion-alert{--background:var(--theme-surface);--color:var(--theme-text-primary);--ion-item-background:var(--theme-surface);color:var(--theme-text-primary)}ion-item{--background:var(--theme-surface);--color:var(--theme-text-primary);--border-color:var(--theme-border)}ion-input,ion-textarea,ion-select{--color:var(--theme-text-primary);--placeholder-color:var(--theme-text-muted)}.page-wrap,.section-title{color:var(--theme-text-primary)}.meta-row,.stat-label{color:var(--theme-text-muted)}.summary{color:var(--theme-text-secondary)}.reader-surface{background:var(--theme-surface);color:var(--theme-text-primary)}.soft-chip,.stat-item{background:var(--theme-surface-subtle);color:var(--theme-text-secondary)}.stat-value{color:var(--theme-text-primary)}.locale-switcher select{border-color:var(--theme-border);background:var(--theme-surface);color:var(--theme-text-secondary)}.profile-page,.shelf-page,.review-page{color:var(--theme-text-primary)}:root[data-theme] .profile-page{--ink:var(--theme-text-primary)!important;--subtle:var(--theme-text-muted)!important;--accent:var(--theme-accent)!important;--line:var(--theme-border)!important;background:var(--theme-background)!important}:root[data-theme] .identity-card,:root[data-theme] .membership-card,:root[data-theme] .group-card,:root[data-theme] .profile-panel,:root[data-theme] .benefit-item,:root[data-theme] .review-settings-panel,:root[data-theme] .review-page ion-card,:root[data-theme] .book-card,:root[data-theme] .surface,:root[data-theme] .upload-section,:root[data-theme] .login-shell{color:var(--theme-text-primary);border-color:var(--theme-border)!important;background:var(--theme-surface)!important;background-image:none!important}:root[data-theme] .shelf-page .library-section{background:0 0!important}:root[data-theme] .benefit-meter{background:var(--theme-surface-subtle)!important}:root[data-theme] .benefit-meter span{background:var(--theme-accent-readable)!important}:root[data-theme] .profile-page .account-avatar,:root[data-theme] .profile-page .account-avatar--guest,:root[data-theme] .profile-page .identity-status,:root[data-theme] .profile-page .tier-badge,:root[data-theme] .profile-page .tier-badge--pro{background:var(--theme-accent-soft)!important;color:var(--theme-accent-readable)!important}:root[data-theme] .profile-page .section-kicker,:root[data-theme] .profile-page .profile-heading .eyebrow,:root[data-theme] .profile-page .group-title,:root[data-theme] .profile-page .benefit-item span,:root[data-theme] .profile-page .membership-footer,:root[data-theme] .profile-page .membership-note{color:var(--theme-text-muted)!important}:root[data-theme] .profile-page .membership-footer{border-color:var(--theme-border)!important}:root[data-theme] .profile-page .membership-link,:root[data-theme] .profile-page .copy-link,:root[data-theme] .profile-page .navigation-row:hover .service-copy strong{color:var(--theme-accent-readable)!important}:root[data-theme] .profile-page .identity-logout{--color:var(--theme-text-muted)!important}:root[data-theme] .list-divider{background:var(--theme-border)!important}:root[data-theme] .shelf-page .heading-kicker,:root[data-theme] .shelf-page .shelf-heading p,:root[data-theme] .shelf-page .section-heading p,:root[data-theme] .shelf-page .recent-copy>span,:root[data-theme] .shelf-page .recent-copy .recent-meta,:root[data-theme] .shelf-page .book-title-copy p,:root[data-theme] .shelf-page .book-progress-line,:root[data-theme] .shelf-page .empty-state{color:var(--theme-text-muted)!important}:root[data-theme] .shelf-page .shelf-heading h1,:root[data-theme] .shelf-page .section-heading h2,:root[data-theme] .shelf-page .recent-copy strong{color:var(--theme-text-primary)!important}:root[data-theme] .shelf-page .shelf-tab,:root[data-theme] .shelf-page .status-select,:root[data-theme] .shelf-page .category-toggle,:root[data-theme] .shelf-page .quiet-button{border-color:var(--theme-border)!important;background:var(--theme-surface-raised)!important;color:var(--theme-text-secondary)!important}:root[data-theme] .shelf-page .shelf-tab--active,:root[data-theme] .shelf-page .status-filter button.status-filter--active,:root[data-theme] .shelf-page .quiet-button--active,:root[data-theme] .shelf-page .category-toggle--active{border-color:var(--theme-border)!important;background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important}:root[data-theme] .shelf-page .shelf-tab span,:root[data-theme] .shelf-page .status-filter button,:root[data-theme] .shelf-page .icon-button{color:var(--theme-text-muted)!important}:root[data-theme] .shelf-page .text-button,:root[data-theme] .shelf-page .book-progress-line span:first-child{color:var(--theme-accent)!important}:root[data-theme] .shelf-page .category-editor,:root[data-theme] .shelf-page .category-picker,:root[data-theme] .shelf-page .selected-shelf-tools,:root[data-theme] .shelf-page .upload-quota{border-color:var(--theme-border)!important;background:var(--theme-surface-raised)!important;color:var(--theme-text-primary)!important}:root[data-theme] .shelf-page .category-editor label,:root[data-theme] .shelf-page .category-picker label,:root[data-theme] .shelf-page .upload-quota__labels{color:var(--theme-text-secondary)!important}:root[data-theme] .shelf-page .category-picker label:hover,:root[data-theme] .shelf-page .icon-button:hover{background:var(--theme-accent-soft)!important}:root[data-theme] .shelf-page .category-picker label span:last-child{color:var(--theme-accent)!important}:root[data-theme] .shelf-page .book-badges>span{background:var(--theme-surface-subtle)!important;color:var(--theme-text-muted)!important}:root[data-theme] .shelf-page .book-badges>span.category-badge{background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important}:root[data-theme] .shelf-page .progress-track,:root[data-theme] .shelf-page .offline-book-progress-track,:root[data-theme] .shelf-page .upload-quota__track{background:var(--theme-surface-subtle)!important}:root[data-theme] .shelf-page .progress-track span,:root[data-theme] .shelf-page .offline-book-progress-track span,:root[data-theme] .shelf-page .upload-quota__track span{background:var(--theme-accent)!important}:root[data-theme] .shelf-page .offline-banner,:root[data-theme] .shelf-page .offline-download-message:not(.offline-download-message--error),:root[data-theme] .shelf-page .offline-book-button,:root[data-theme] .shelf-page .offline-book-button--available{border-color:var(--theme-border)!important;background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important}.group-title,.group-title+*,.membership-footer,.membership-note,.service-copy>span,.identity-subtitle,.section-hint,.muted{color:var(--theme-text-muted)}.profile-page h1,.profile-page h2,.profile-page strong,.profile-page .account-name,.shelf-page h1,.shelf-page h2,.review-page .section-title,.review-page ion-card-title{color:var(--theme-text-primary)!important}.shelf-page .shelf-heading p,.shelf-page .section-heading p,.shelf-page .book-title-copy p,.shelf-page .heading-kicker{color:var(--theme-text-muted)!important}:root[data-theme] .shelf-page .book-title-copy h3,:root[data-theme] .shelf-page .book-title-row,:root[data-theme] .shelf-page .book-progress-line,:root[data-theme] .shelf-page .book-meta,:root[data-theme] .shelf-page .book-author{color:var(--theme-text-primary)!important}.shelf-page .primary-button,.review-page .review-primary,.review-page .review-load-more,.review-page .review-card-answer-toggle.active{border-color:var(--theme-accent)!important;background-color:var(--theme-accent)!important;color:var(--theme-accent-contrast)!important}.shelf-page .quiet-button,.shelf-page .selected-shelf-tools,.review-page .review-card,.review-page .review-front,.reader-page .assistant-panel,.reader-page .reader-toolbar-bar,.reader-page .reader-settings-panel{color:var(--theme-text-primary);border-color:var(--theme-border)!important;background-color:var(--theme-surface-raised)!important}.profile-page input,.profile-page select,.shelf-page input,.shelf-page select,.review-page input,.review-page select,.theme-switcher select{border-color:var(--theme-border);background-color:var(--theme-surface-raised);color:var(--theme-text-primary)}:root[data-theme] .profile-page .recovery-form ion-item{border-color:var(--theme-border)!important;--background:var(--theme-surface-raised)!important;--color:var(--theme-text-primary)!important}:root[data-theme] .profile-page .recovery-form ion-input{--color:var(--theme-text-primary)!important;--placeholder-color:var(--theme-text-muted)!important}:root[data-theme] .profile-page .recovery-form ion-button{--padding-start:8px;--padding-end:8px;width:max-content;min-width:var(--reader-action-width);max-width:100%;--border-width:1px!important;--border-color:var(--theme-border)!important;--color:var(--theme-accent-readable)!important;--border-radius:var(--reader-action-radius)!important}:root[data-theme] .profile-page .recovery-form ion-button::part(native){height:var(--reader-action-height);min-height:var(--reader-action-height);border:1px solid var(--theme-border);border-radius:var(--reader-action-radius);background:var(--theme-surface-raised);box-shadow:none}:root[data-theme] .profile-page .service-icon{border-color:var(--theme-border)!important;background:var(--theme-accent-soft)!important;color:var(--theme-accent-readable)!important}:root[data-theme] .profile-page .service-copy>span,:root[data-theme] .profile-page .invitation-hint{color:var(--theme-text-muted)!important}:root[data-theme] .profile-page .invite-code-value,:root[data-theme] .profile-page .copy-link,:root[data-theme] .profile-page .invitation-hint span{color:var(--theme-accent-readable)!important}:root[data-theme] .profile-page .recovery-result{color:var(--theme-text-secondary)!important}:root[data-theme] .profile-page .recovery-result code{border-color:var(--theme-border)!important;background:var(--theme-surface-raised)!important;color:var(--theme-text-primary)!important}.appearance-card{background:var(--theme-surface)!important}.review-page ion-card-content,.review-front,.selected-shelf-tools,.shelf-page .upload-quota,.shelf-page .book-card,.shelf-page .empty-state,.shelf-page .shelf-section{color:var(--theme-text-primary)}.login-page{background:radial-gradient(circle at 8% 15%, var(--theme-accent-soft), transparent 36%), var(--theme-background)!important}.login-panel{background:var(--theme-surface);color:var(--theme-text-primary)}:root[data-theme] .login-panel h2,:root[data-theme] .login-panel label{color:var(--theme-text-primary)!important}:root[data-theme] .login-panel p,:root[data-theme] .login-panel .panel-description{color:var(--theme-text-muted)!important}:root[data-theme] .login-panel .login-input,:root[data-theme] .login-panel ion-item{--background:var(--theme-surface-raised)!important;--color:var(--theme-text-primary)!important}.page-wrap{padding:16px}.hero-card{color:#fff;background:linear-gradient(135deg,#1d4ed8,#7c3aed);border-radius:18px;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;padding:18px;display:flex}.hero-title{font-size:22px;font-weight:700}.hero-subtitle{opacity:.9;margin-top:6px;font-size:14px}.section-title{color:#0f172a;margin:10px 0 12px;font-size:16px;font-weight:700}.meta-row{color:#64748b;justify-content:space-between;gap:12px;font-size:13px;display:flex}.summary{color:#334155;margin-top:8px;line-height:1.6}.reader-layout{grid-template-columns:1.6fr 1fr;gap:16px;display:grid}.reader-panel,.assistant-panel{min-width:0}.reader-surface{color:#1e293b;background:#fff;border-radius:18px;min-height:60vh;padding:18px;line-height:1.9;box-shadow:0 10px 30px #0f172a0f}.chip-list{flex-wrap:wrap;gap:10px;display:flex}.soft-chip{color:#334155;cursor:pointer;background:#e2e8f0;border-radius:999px;padding:8px 12px;font-size:13px}.mt-3{margin-top:12px}.stat-grid{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.stat-item{text-align:center;background:#f8fafc;border-radius:14px;padding:14px}.stat-value{color:#0f172a;font-size:24px;font-weight:700}.stat-label{color:#64748b;margin-top:6px;font-size:12px}@media (width<=900px){.reader-layout,.stat-grid{grid-template-columns:1fr}}:root[data-theme] .reader-page{--ion-color-primary-rgb:var(--theme-accent-rgb);--ion-color-primary-shade:var(--theme-accent);--ion-color-primary-tint:var(--theme-accent);--ion-color-primary:var(--theme-accent)!important;--ion-color-primary-contrast:var(--theme-accent-contrast)!important}:root[data-theme] .reader-page .offline-reader-note,:root[data-theme] .reader-page .assistant-shell,:root[data-theme] .reader-page .assistant-toolbar-group,:root[data-theme] .reader-page .assistant-card,:root[data-theme] .reader-page .segment-card,:root[data-theme] .reader-page .page-index-panel,:root[data-theme] .reader-page .page-index-row,:root[data-theme] .reader-page .ocr-result,:root[data-theme] .reader-page .memory-editor,:root[data-theme] .reader-page .selection-toolbar,:root[data-theme] .reader-settings-modal .reader-settings-dialog,:root[data-theme] .reader-settings-modal .reader-settings-nav,:root[data-theme] .reader-settings-modal .reader-setting-group,:root[data-theme] .reader-settings-modal .reader-prompt-editor,:root[data-theme] .reader-settings-modal .reader-radio-option span,:root[data-theme] .reader-settings-modal .reader-scope-options,:root[data-theme] .reader-page .pomodoro-reminder-dialog,:root[data-theme] .reader-page .pomodoro-duration-dialog,:root[data-theme] .reader-page .page-jump-dialog,:root[data-theme] .reader-page .screenshots-dialog{border-color:var(--theme-border)!important;background:var(--theme-surface)!important;color:var(--theme-text-primary)!important;background-image:none!important}:root[data-theme] .reader-page .assistant-shell,:root[data-theme] .reader-page .assistant-nav-list,:root[data-theme] .reader-page .assistant-toolbar-group,:root[data-theme] .reader-page .assistant-card,:root[data-theme] .reader-page .segment-card,:root[data-theme] .reader-page .page-index-panel,:root[data-theme] .reader-page .page-index-row,:root[data-theme] .reader-page .ocr-result,:root[data-theme] .reader-page .memory-editor,:root[data-theme] .reader-page .selection-toolbar,:root[data-theme] .reader-page .pomodoro-reminder-dialog,:root[data-theme] .reader-page .pomodoro-duration-dialog,:root[data-theme] .reader-page .page-jump-dialog,:root[data-theme] .reader-page .screenshots-dialog,:root[data-theme] .reader-settings-modal .reader-settings-dialog,:root[data-theme] .reader-settings-modal .reader-settings-nav,:root[data-theme] .reader-settings-modal .reader-setting-group,:root[data-theme] .reader-settings-modal .reader-prompt-editor{color:var(--theme-text-primary)!important}:root[data-theme] .reader-page .offline-reader-note,:root[data-theme] .reader-page .assistant-nav-list button,:root[data-theme] .reader-page .reader-layout ion-button[fill=clear]:not([color=danger]),:root[data-theme] .reader-page .reader-layout ion-button[fill=outline]:not([color=danger]),:root[data-theme] .reader-settings-modal ion-button[fill=clear]:not([color=danger]),:root[data-theme] .reader-settings-modal ion-button[fill=outline]:not([color=danger]){--color:var(--theme-accent)!important;--background:var(--theme-accent-soft)!important;--background-hover:var(--theme-accent-soft)!important;--background-activated:var(--theme-accent-soft)!important;--border-color:var(--theme-border)!important;color:var(--theme-accent)!important}:root[data-theme] .reader-page .reader-layout .assistant-toolbar ion-button:not(.assistant-toolbar-action--active){--color:var(--theme-text-secondary)!important;--background:transparent!important;--background-hover:var(--theme-accent-soft)!important;--background-activated:var(--theme-accent-soft)!important;--background-focused:var(--theme-accent-soft)!important;--border-color:var(--theme-border)!important;color:var(--theme-text-secondary)!important}:root[data-theme] .reader-page .reader-layout .assistant-toolbar ion-button.assistant-toolbar-action--active{--color:var(--theme-accent-readable)!important;--background:var(--theme-accent-soft)!important;--background-hover:var(--theme-accent-soft)!important;--background-activated:var(--theme-accent-soft)!important;--background-focused:var(--theme-accent-soft)!important;color:var(--theme-accent-readable)!important}:root[data-theme] .reader-page .reader-layout .assistant-heading-actions ion-button[fill=clear]:not([color=danger]){--color:var(--theme-text-secondary)!important;--background:transparent!important;--background-hover:var(--theme-accent-soft)!important;--background-activated:var(--theme-accent-soft)!important;--background-focused:var(--theme-accent-soft)!important;--border-color:transparent!important;color:var(--theme-text-secondary)!important}:root[data-theme] .reader-page .reader-pomodoro-clock-button{color:var(--theme-text-secondary)!important;background:0 0!important}:root[data-theme] .reader-page .reader-pomodoro-clock-button strong{color:var(--theme-accent-readable)!important}:root[data-theme] .reader-page .reader-pomodoro-clock-chevron{color:var(--theme-text-muted)!important}:root[data-theme] .reader-page .reader-pomodoro-clock-button:hover,:root[data-theme] .reader-page .reader-pomodoro-clock-button:focus-visible{background:var(--theme-accent-soft)!important}:root[data-theme] .reader-page .reader-layout ion-button:not([fill]):not([color=danger]),:root[data-theme] .reader-settings-modal ion-button:not([fill]):not([color=danger]),:root[data-theme] .reader-page .reader-prompt-save,:root[data-theme] .reader-page .selection-toolbar-btn:not(.selection-toolbar-btn--ghost):not(.selection-toolbar-btn--danger),:root[data-theme] .reader-page .segment-ai-badge,:root[data-theme] .reader-page .pdf-ai-badge,:root[data-theme] .reader-page .pdf-ai-page-link{--background:var(--theme-accent)!important;--background-hover:var(--theme-accent)!important;--background-activated:var(--theme-accent)!important;--color:var(--theme-accent-contrast)!important;background:var(--theme-accent)!important;color:var(--theme-accent-contrast)!important}:root[data-theme] .reader-page .assistant-shell,:root[data-theme] .reader-page .assistant-card,:root[data-theme] .reader-page .assistant-toolbar-group,:root[data-theme] .reader-page .reader-settings-panel,:root[data-theme] .reader-page .segment-card,:root[data-theme] .reader-page .reader-prompt-editor,:root[data-theme] .reader-page .page-index-row,:root[data-theme] .reader-page .page-index-panel,:root[data-theme] .reader-page .selection-toolbar,:root[data-theme] .reader-page .ocr-result,:root[data-theme] .reader-page .memory-editor{border-color:var(--theme-border)!important}:root[data-theme] .reader-page .assistant-heading-title .assistant-book-title,:root[data-theme] .reader-page .assistant-header-meta,:root[data-theme] .reader-page .assistant-book-title,:root[data-theme] .reader-page .segment-content,:root[data-theme] .reader-page .segment-summary,:root[data-theme] .reader-page .page-index-heading strong,:root[data-theme] .reader-page .page-index-row label,:root[data-theme] .reader-page .page-jump-slider-label,:root[data-theme] .reader-page .page-jump-number-label,:root[data-theme] .reader-page .page-jump-current,:root[data-theme] .reader-page .page-index-heading p,:root[data-theme] .reader-page .page-index-note,:root[data-theme] .reader-page .page-index-empty,:root[data-theme] .reader-page .reader-settings-heading strong,:root[data-theme] .reader-page .reader-setting-row,:root[data-theme] .reader-page .reader-setting-group h3,:root[data-theme] .reader-page .reader-setting-label,:root[data-theme] .reader-page .reader-prompt-description,:root[data-theme] .reader-page .reader-prompt-shelf-picker,:root[data-theme] .reader-page .reader-prompt-editor label,:root[data-theme] .reader-page .reader-pomodoro-duration-row,:root[data-theme] .reader-page .reader-margin-inputs label,:root[data-theme] .reader-page .reader-range-control output,:root[data-theme] .reader-page .scan-desc,:root[data-theme] .reader-page .ocr-result-header,:root[data-theme] .reader-page .ocr-result-text,:root[data-theme] .reader-page .selection-toolbar-btn--ghost{color:var(--theme-text-primary)!important}:root[data-theme] .reader-page .assistant-header-meta,:root[data-theme] .reader-page .assistant-heading-title .assistant-book-title,:root[data-theme] .reader-page .assistant-toolbar-group,:root[data-theme] .reader-page .reader-setting-row,:root[data-theme] .reader-page .reader-prompt-description,:root[data-theme] .reader-page .page-index-heading p,:root[data-theme] .reader-page .page-index-note,:root[data-theme] .reader-page .page-index-empty,:root[data-theme] .reader-page .page-jump-current,:root[data-theme] .reader-page .page-jump-slider-label,:root[data-theme] .reader-page .page-jump-number-label,:root[data-theme] .reader-page .segment-summary,:root[data-theme] .reader-page .reader-prompt-shelf-picker,:root[data-theme] .reader-page .reader-pomodoro-duration-row,:root[data-theme] .reader-page .reader-margin-inputs label,:root[data-theme] .reader-page .scan-desc,:root[data-theme] .reader-page .ocr-result-tag{color:var(--theme-text-secondary)!important}:root[data-theme] .reader-page .assistant-nav-list,:root[data-theme] .reader-page .assistant-nav-list button,:root[data-theme] .reader-page .reader-settings-nav,:root[data-theme] .reader-page .reader-settings-nav button,:root[data-theme] .reader-page .reader-settings-nav button:hover,:root[data-theme] .reader-page .reader-settings-nav .reader-settings-nav-item--active,:root[data-theme] .reader-page .reader-radio-option span,:root[data-theme] .reader-page .reader-radio-option input:checked+span,:root[data-theme] .reader-page .reader-scope-options,:root[data-theme] .reader-page .reader-scope-options .reader-radio-option span,:root[data-theme] .reader-page .reader-scope-options .reader-radio-option input:checked+span,:root[data-theme] .reader-page .pomodoro-duration-option,:root[data-theme] .reader-page .pomodoro-duration-option--active,:root[data-theme] .reader-page .reader-prompt-secondary,:root[data-theme] .reader-page .reader-prompt-remove,:root[data-theme] .reader-page .selection-toolbar-btn--ghost{border-color:var(--theme-border)!important;background:var(--theme-surface-raised)!important;color:var(--theme-text-secondary)!important}:root[data-theme][data-theme] .reader-page.reader-page .assistant-nav-list button.assistant-tab--active,:root[data-theme] .reader-page .reader-settings-nav .reader-settings-nav-item--active,:root[data-theme] .reader-page .reader-radio-option input:checked+span,:root[data-theme] .reader-page .reader-scope-options .reader-radio-option input:checked+span,:root[data-theme] .reader-page .pomodoro-duration-option--active{border-color:var(--theme-border)!important;background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important;transition:none!important}:root[data-theme] .reader-page input,:root[data-theme] .reader-page textarea,:root[data-theme] .reader-page select,:root[data-theme] .reader-settings-modal input,:root[data-theme] .reader-settings-modal textarea,:root[data-theme] .reader-settings-modal select{border-color:var(--theme-border)!important;background-color:var(--theme-surface-raised)!important;color:var(--theme-text-primary)!important}:root[data-theme] .reader-settings-modal ion-toggle.reader-settings-toggle{--track-background:var(--theme-surface-subtle);--track-background-checked:var(--theme-accent);--handle-background:var(--theme-surface-raised);--handle-background-checked:var(--theme-surface-raised)}:root[data-theme] .reader-page .assistant-resize-handle:after{background:var(--theme-border)!important}:root[data-theme] .reader-page .assistant-resize-handle:hover:after,:root[data-theme] .reader-page .assistant-resize-handle:focus-visible:after{background:var(--theme-accent)!important}:root[data-theme] .reader-page .assistant-desktop-trigger,:root[data-theme] .reader-page .assistant-back-to-top{--background:var(--theme-surface-raised)!important;--color:var(--theme-accent)!important;border-color:var(--theme-border)!important}:root[data-theme] .reader-page .pomodoro-reminder-sprout{background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important}:root[data-theme] .reader-page .reader-settings-error,:root[data-theme] .reader-page .page-jump-page-mapping--error,:root[data-theme] .reader-page .reader-prompt-remove,:root[data-theme] .reader-page .selection-toolbar-btn--danger{color:var(--ion-color-danger)!important}:root[data-theme] .reader-page .reader-settings-error,:root[data-theme] .reader-page .page-index-message,:root[data-theme] .reader-page .reader-prompt-success{color:var(--theme-accent)!important}:root[data-theme] .reader-page .reader-surface,:root[data-theme] .reader-page .pdf-page,:root[data-theme] .reader-page .pdf-crop-window,:root[data-theme] .reader-page .scan-frame{background-color:var(--reader-background-color,var(--theme-surface-raised))!important}:root[data-theme] .reader-page .assistant-section-title{color:var(--theme-text-primary)!important}:root[data-theme] .reader-page .assistant-card .assistant-intro{margin:0 0 12px;line-height:1.6;color:var(--theme-text-secondary)!important}:root[data-theme] .reader-page ion-item.assistant-question-field{--background:transparent;--border-width:0;--inner-padding-end:0;--padding-start:0;--min-height:0;margin-top:10px}:root[data-theme] .reader-page .assistant-question-field ion-label{margin-bottom:6px;color:var(--theme-text-secondary)!important}:root[data-theme] .reader-page ion-textarea.assistant-question-input{box-sizing:border-box;border:1px solid var(--theme-border);border-radius:var(--reader-action-radius);background:var(--theme-surface-raised);--background:var(--theme-surface-raised);--color:var(--theme-text-primary);--placeholder-color:var(--theme-text-muted);--padding-start:12px;--padding-end:12px;--padding-top:10px;--padding-bottom:10px;--highlight-color-focused:var(--theme-accent);width:100%}:root[data-theme] .reader-page .reader-question-submit-button{box-sizing:border-box;width:var(--reader-action-width);min-width:var(--reader-action-width);height:var(--reader-action-height);min-height:var(--reader-action-height);--height:var(--reader-action-height);--min-height:var(--reader-action-height);--border-radius:var(--reader-action-radius);--border-width:1px;--border-color:var(--theme-accent);--padding-start:8px;--padding-end:8px;--background:var(--theme-accent);--background-hover:var(--theme-accent);--background-activated:var(--theme-accent);--color:var(--theme-accent-contrast);--box-shadow:none;margin:8px 0 0;font-weight:500}:root[data-theme] .reader-page .reader-question-submit-button::part(native){box-sizing:border-box;height:var(--reader-action-height);min-height:var(--reader-action-height);border:1px solid var(--theme-accent);border-radius:var(--reader-action-radius);box-shadow:none}:root[data-theme] .reader-page .assistant-card .selected-text-preview{box-sizing:border-box;border:1px solid var(--theme-border);border-radius:var(--reader-action-radius);background:var(--theme-surface-subtle);margin:10px 0 0;padding:10px 12px;font-size:13px;line-height:1.55;color:var(--theme-text-secondary)!important}:root[data-theme] .profile-page .identity-status{cursor:default;border-radius:999px;padding:4px 10px;font-weight:500}:root[data-theme] .profile-page ion-button.identity-logout{box-sizing:border-box;width:var(--reader-action-width);min-width:var(--reader-action-width);height:var(--reader-action-height);min-height:var(--reader-action-height);--height:var(--reader-action-height);--min-height:var(--reader-action-height);--background:var(--theme-accent-soft);--background-hover:var(--theme-accent-soft);--background-activated:var(--theme-accent-soft);--box-shadow:none;font-size:13px;--border-width:1px!important;--border-color:var(--theme-accent-readable)!important;--border-radius:var(--reader-action-radius)!important;--color:var(--theme-text-secondary)!important}:root[data-theme] .profile-page ion-button.identity-logout::part(native){box-sizing:border-box;height:var(--reader-action-height);min-height:var(--reader-action-height);border:1px solid var(--theme-accent-readable);border-radius:var(--reader-action-radius);background:var(--theme-accent-soft);box-shadow:none}:root[data-theme] .profile-page .membership-link.membership-action{box-sizing:border-box;width:var(--reader-action-width);min-width:var(--reader-action-width);height:var(--reader-action-height);min-height:var(--reader-action-height);border:1px solid var(--theme-accent);border-radius:var(--reader-action-radius);background:var(--theme-accent);padding:0 8px;font-size:13px;font-weight:600;line-height:1;color:var(--theme-accent-contrast)!important}:root[data-theme] .profile-page .membership-link.membership-action:hover{background:var(--theme-accent);border-color:var(--theme-accent-readable)}:root[data-theme] .profile-page .membership-link.membership-action span{margin-left:5px;font-size:17px}:root[data-theme] .profile-page .recovery-form ion-button{box-sizing:border-box;width:var(--reader-action-width);min-width:var(--reader-action-width);height:var(--reader-action-height);min-height:var(--reader-action-height);--height:var(--reader-action-height);--min-height:var(--reader-action-height);--background:var(--theme-accent-soft);--background-hover:var(--theme-surface-subtle);--background-activated:var(--theme-surface-subtle);--box-shadow:none;font-size:12px;font-weight:600;--border-width:1px!important;--border-color:var(--theme-accent-readable)!important;--border-radius:var(--reader-action-radius)!important;--color:var(--theme-accent-readable)!important}:root[data-theme] .profile-page .recovery-form ion-button::part(native){box-sizing:border-box;height:var(--reader-action-height);min-height:var(--reader-action-height);border:1px solid var(--theme-accent-readable);border-radius:var(--reader-action-radius);background:var(--theme-accent-soft);box-shadow:none}:root[data-theme] .profile-page .copy-link{box-sizing:border-box;min-width:64px;height:var(--reader-action-height);min-height:var(--reader-action-height);border:1px solid var(--theme-accent-readable);border-radius:var(--reader-action-radius);background:var(--theme-accent-soft);padding:0 10px;font-size:12px;color:var(--theme-accent-readable)!important}:root[data-theme] .profile-page .copy-link:hover,:root[data-theme] .profile-page .identity-logout:hover{border-color:var(--theme-accent-readable)!important;color:var(--theme-accent-readable)!important}:root[data-theme] .profile-page .navigation-row:hover{border-radius:var(--reader-action-radius);background:var(--theme-accent-soft)}:root[data-theme] .profile-page .navigation-row:focus-visible,:root[data-theme] .profile-page .profile-back:focus-visible,:root[data-theme] .profile-page .membership-link:focus-visible,:root[data-theme] .profile-page .copy-link:focus-visible{outline:2px solid var(--theme-accent-readable);outline-offset:2px}
