@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/ba9851c3c22cd980-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/21350d82a1f187e9-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/df0a9ae256c0569c-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/8e9860b6e62d6359-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter Fallback;src:local("Arial");ascent-override:90.44%;descent-override:22.52%;line-gap-override:0.00%;size-adjust:107.12%}.__className_62111f{font-family:Inter,Inter Fallback;font-style:normal}.__variable_62111f{--font-inter:"Inter","Inter Fallback"}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/393d45a2251e223a-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/8715d2ed531152f4-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/c48b38fe8bb532f3-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/48410f3df60da620-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/7b89a4fd5e90ede0-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/393d45a2251e223a-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/8715d2ed531152f4-s.p.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/c48b38fe8bb532f3-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/48410f3df60da620-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c4,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Cormorant Garamond;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/7b89a4fd5e90ede0-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Cormorant Garamond Fallback;src:local("Times New Roman");ascent-override:95.27%;descent-override:29.59%;line-gap-override:0.00%;size-adjust:96.98%}.__className_a0eadc{font-family:Cormorant Garamond,Cormorant Garamond Fallback;font-style:normal}.__variable_a0eadc{--font-cormorant:"Cormorant Garamond","Cormorant Garamond Fallback"}:root{color-scheme:light;--bg:#faf9f5;--bg-elevated:#efe9de;--bg-soft:#f5f0e8;--bg-strong:#e8e0d2;--text:#141413;--text-body:#3d3d3a;--text-muted:#66645e;--text-faint:#8e8b82;--border:#e6dfd8;--border-soft:#ebe6df;--border-strong:#d6cdbf;--primary:#a9583e;--primary-pressed:#8f4a33;--primary-contrast:#ffffff;--accent:#cc785c;--ok:#5db872;--info:#5db8a6;--warn:#e8a55a;--danger:#c64545;--danger-text:#b23c3c;--danger-solid:#b23c3c;--danger-solid-contrast:#ffffff;--track:color-mix(in srgb,var(--text) 10%,transparent);--shadow:0 1px 3px rgba(20,20,19,0.08);--shadow-pop:0 16px 40px -8px rgba(20,20,19,0.2);--font-sans:var(--font-inter),-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--font-serif:var(--font-cormorant),"Tiempos Headline",Garamond,"Times New Roman",serif;--font-size-base:16px;--line-height-base:1.65;--column-width:680px;--radius:12px;--radius-md:8px;--radius-pill:9999px}[data-theme=dark]{color-scheme:dark;--bg:#181715;--bg-elevated:#252320;--bg-soft:#1f1e1b;--bg-strong:#2f2d29;--text:#faf9f5;--text-body:#dcd8cf;--text-muted:#a09d96;--text-faint:#7f7c75;--border:#34312d;--border-soft:#2a2825;--border-strong:#48443f;--primary:#cc785c;--primary-pressed:#d98a6f;--primary-contrast:#141413;--accent:#cc785c;--danger:#e06c6c;--danger-text:#ef8f8f;--danger-solid:#e06c6c;--danger-solid-contrast:#141413;--shadow:0 1px 3px rgba(0,0,0,0.4);--shadow-pop:0 16px 40px -8px rgba(0,0,0,0.6)}*{box-sizing:border-box}body,html{padding:0;margin:0}body{background:var(--bg);color:var(--text-body);font-family:var(--font-sans);font-size:var(--font-size-base);line-height:var(--line-height-base);-webkit-font-smoothing:antialiased;min-height:100vh}::selection{background:color-mix(in srgb,var(--accent) 28%,transparent)}a{color:var(--text);text-decoration-color:var(--text-faint);text-underline-offset:3px}button,input,select,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}h1,h2{font-family:var(--font-serif)}h1,h2,h3{font-weight:500;color:var(--text);margin:0}h3{font-family:var(--font-sans)}h1{font-size:2em;line-height:1.15;letter-spacing:-.5px}h2{font-size:1.5em;line-height:1.2;letter-spacing:-.3px}h3{font-size:1.125em;line-height:1.4}.muted{color:var(--text-muted)}.small{font-size:.8125rem;line-height:1.4}.container{max-width:720px;margin:0 auto;padding:32px 24px 80px}.reading-container{max-width:var(--column-width);margin:0 auto;padding:24px 24px 96px}.font-small{--font-size-base:15px}.font-medium,.font-small{font-size:var(--font-size-base)}.font-medium{--font-size-base:16px}.font-large{--font-size-base:18px}.font-large,.font-xlarge{font-size:var(--font-size-base)}.font-xlarge{--font-size-base:21px}.width-narrow{--column-width:520px}.width-medium{--column-width:680px}.width-wide{--column-width:820px}.spacing-compact{--line-height-base:1.5}.spacing-compact,.spacing-normal{line-height:var(--line-height-base)}.spacing-normal{--line-height-base:1.65}.spacing-relaxed{--line-height-base:1.9;line-height:var(--line-height-base)}.reading-toolbar-wrap{position:sticky;top:0;z-index:20;max-width:var(--column-width);margin:0 auto;padding:10px 24px;background:color-mix(in srgb,var(--bg) 90%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.reading-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 8px 6px 16px;background:var(--bg-elevated);border-radius:var(--radius)}.reading-toolbar-actions{display:flex;align-items:center;gap:6px}.reading-toolbar .btn{min-width:36px;min-height:36px;padding:0 12px}.reading-toolbar .btn-theme{min-width:36px}.top-nav{background:var(--bg);border-bottom:1px solid var(--border-soft)}.top-nav-inner{max-width:960px;margin:0 auto;padding:10px 24px;min-height:64px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;row-gap:6px}.top-nav-inner nav{flex-wrap:wrap;justify-content:flex-end;min-width:0}.brand{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-serif);font-weight:600;font-size:1.5rem;line-height:1;letter-spacing:-.3px;color:var(--text);text-decoration:none;white-space:nowrap}.brand:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--accent)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 18px;border-radius:var(--radius-md);border:1px solid var(--border-strong);background:transparent;color:var(--text);font-size:14px;font-weight:500;line-height:1.3;text-decoration:none;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .05s ease}@media (hover:hover){.btn:hover{background:var(--bg-strong)}}.btn:active{transform:scale(.98)}.btn:disabled,.btn[aria-disabled=true]{background:var(--border);border-color:transparent;color:var(--text-faint);cursor:not-allowed;transform:none}.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-contrast)}@media (hover:hover){.btn-primary:hover{background:var(--primary-pressed)}}.btn-primary:active{background:var(--primary-pressed)}.btn-danger{background:transparent;border-color:color-mix(in srgb,var(--danger) 55%,transparent);color:var(--danger-text)}@media (hover:hover){.btn-danger:hover{background:color-mix(in srgb,var(--danger) 10%,transparent)}}.btn-danger-solid{background:var(--danger-solid);border-color:var(--danger-solid);color:var(--danger-solid-contrast)}@media (hover:hover){.btn-danger-solid:hover{background:var(--danger-solid);opacity:.9}}.btn-ghost{border-color:transparent}.btn-sm{min-height:32px;padding:5px 12px;font-size:13px}.btn-block{width:100%}.button-ghost,.button-primary{border-radius:var(--radius-md);font:inherit;font-size:14px;font-weight:500;cursor:pointer}.button-primary{border:1px solid var(--primary);background:var(--primary);color:var(--primary-contrast);padding:9px 16px}.button-ghost{border:1px solid var(--border-strong);background:transparent;color:var(--text);padding:7px 12px}.card{background:var(--bg-elevated);border-radius:var(--radius);padding:32px}.input,select.input,textarea.input{width:100%;min-height:40px;border:1px solid var(--border-strong);border-radius:var(--radius-md);padding:9px 14px;background:var(--bg);color:var(--text);outline:none;transition:border-color .15s ease,box-shadow .15s ease}.input::placeholder{color:var(--text-faint)}.input:focus,select.input:focus,textarea.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}textarea.input{min-height:88px;resize:vertical}select.input{appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238e8b82' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}input[type=file].input{padding:6px 8px;color:transparent}input[type=file]::file-selector-button{margin-right:12px;padding:6px 14px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--bg-elevated);color:var(--text);font:inherit;font-size:14px;font-weight:500;cursor:pointer}input[type=checkbox]{accent-color:var(--primary)}label.stack>.small,label.stack>span.small{color:var(--text-muted);font-weight:500}.stack{display:flex;flex-direction:column;gap:12px}.row,.row-wrap{display:flex;align-items:center;gap:12px}.row-wrap{flex-wrap:wrap}.spread{display:flex;align-items:center;justify-content:space-between;gap:12px}.push-end{margin-left:auto}.book-detail-header{align-items:flex-start;flex-wrap:wrap}.book-detail-header>div:first-child{min-width:0;flex:1 1 220px}.book-detail-header>div:first-child h1{overflow-wrap:anywhere}.home-header{flex-wrap:wrap;margin-bottom:4px}.book-card-header{align-items:flex-start;flex-wrap:wrap}.book-card-header>div:first-child{min-width:0;flex:1 1 240px;overflow-wrap:anywhere}.book-card-title{font-size:1.125em;font-weight:500;line-height:1.4;color:var(--text)}.progress-bar{height:6px;border-radius:var(--radius-pill);background:var(--track);overflow:hidden}.progress-bar-fill{height:100%;background:var(--accent);transition:width .3s ease}.progress-bar-indeterminate .progress-bar-fill{width:35%!important;animation:progress-indeterminate 1.25s ease-in-out infinite}@keyframes progress-indeterminate{0%{transform:translateX(-120%)}to{transform:translateX(310%)}}.processing-animation{width:min(280px,100%);margin:2px auto 0;color:var(--accent)}.processing-animation svg{display:block;width:100%;height:auto;overflow:visible}.processing-cloud{fill:color-mix(in srgb,var(--accent) 12%,transparent)}.processing-cloud-one{animation:processing-cloud-drift 5s ease-in-out infinite}.processing-cloud-two{animation:processing-cloud-drift 6s ease-in-out -1.5s infinite reverse}.processing-book{transform-origin:140px 110px}.processing-animation-waiting .processing-book{animation:processing-sleep 3.4s ease-in-out infinite}.processing-animation-processing .processing-book{animation:processing-think 1.8s ease-in-out infinite}.processing-cover{fill:color-mix(in srgb,var(--accent) 58%,var(--bg-elevated))}.processing-page{fill:var(--bg-elevated);stroke:var(--accent);stroke-width:2}.processing-book-shadow{fill:color-mix(in srgb,var(--text) 12%,transparent)}.processing-spine{stroke:var(--accent);stroke-width:3;stroke-linecap:round}.processing-line{fill:none;stroke:color-mix(in srgb,var(--accent) 55%,var(--text-muted));stroke-width:2;stroke-linecap:round}.processing-face{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round}.processing-zzz text{fill:var(--accent);font-family:inherit;font-weight:700}.processing-zzz text:first-child{font-size:22px;animation:processing-zzz 2.7s ease-in-out infinite}.processing-zzz text:nth-child(2){font-size:17px;animation:processing-zzz 2.7s ease-in-out -.8s infinite}.processing-zzz text:nth-child(3){font-size:13px;animation:processing-zzz 2.7s ease-in-out -1.5s infinite}.processing-sparkles{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round}.processing-sparkles path:first-child{animation:processing-spark 1.4s ease-in-out infinite}.processing-sparkles circle,.processing-sparkles path:nth-child(2){animation:processing-spark 1.4s ease-in-out -.6s infinite}@keyframes processing-sleep{0%,to{transform:rotate(-1deg) translateY(1px)}50%{transform:rotate(1deg) translateY(-2px)}}@keyframes processing-think{0%,to{transform:rotate(-1deg) translateY(1px)}50%{transform:rotate(1deg) translateY(-1px)}}@keyframes processing-zzz{0%,to{opacity:0;transform:translate(4px,8px)}45%,75%{opacity:1}to{transform:translate(-7px,-10px)}}@keyframes processing-spark{0%,to{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}@keyframes processing-cloud-drift{0%,to{transform:translateX(0)}50%{transform:translateX(7px)}}@media (prefers-reduced-motion:reduce){.processing-animation *,.processing-animation :after,.processing-animation :before,.status-badge:before{animation:none!important}}.badge{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;line-height:1.4;padding:4px 12px;border-radius:var(--radius-pill);background:var(--bg);color:var(--text-body);border:1px solid var(--border);white-space:nowrap}.status-badge{flex:0 0 auto}.status-badge:before{content:"";width:8px;height:8px;flex:none;border-radius:50%;background:var(--text-faint)}.status-badge[data-status=completed]:before,.status-badge[data-status=ready]:before{background:var(--ok)}.status-badge[data-status=analyzed]:before,.status-badge[data-status=plan_ready]:before,.status-badge[data-status=uploaded]:before{background:var(--info)}.status-badge[data-status=analyzing]:before,.status-badge[data-status=extracted]:before,.status-badge[data-status=extracting]:before,.status-badge[data-status=generating]:before{background:var(--warn);animation:status-pulse 1.4s ease-in-out infinite}.status-badge[data-status=error]:before{background:var(--danger)}@keyframes status-pulse{0%,to{opacity:1}50%{opacity:.35}}.pwa-install-banner,.reminder-banner{position:fixed;bottom:16px;display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:var(--radius);background:var(--bg-elevated);box-shadow:var(--shadow),0 0 0 1px var(--border)}.reminder-banner{right:16px;z-index:20;max-width:min(420px,calc(100vw - 32px))}.reminder-banner-due{box-shadow:var(--shadow),0 0 0 1px var(--accent)}.pwa-install-banner{left:16px;z-index:21;max-width:min(520px,calc(100vw - 32px));gap:10px}.pwa-install-icon{font-size:1.6rem;line-height:1}.pwa-install-copy{display:flex;flex-direction:column;gap:2px;flex:1 1}.pwa-install-copy span{color:var(--text-muted);font-size:.8125rem}.pwa-install-dismiss{font-size:1.25rem;padding:2px 8px}.alert{border-radius:var(--radius);padding:14px 16px;font-size:.875rem;line-height:1.5;border:1px solid var(--border-strong);background:var(--bg-soft);color:var(--text-body)}.alert-info{border-left:3px solid var(--accent)}.alert-error{border-color:color-mix(in srgb,var(--danger) 55%,transparent);background:color-mix(in srgb,var(--danger) 7%,var(--bg));color:var(--danger-text)}.dialog-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(20,20,19,.45);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.dialog{width:min(440px,100%);padding:28px;border-radius:16px;background:var(--bg);box-shadow:var(--shadow-pop),0 0 0 1px var(--border)}.dialog h2{font-size:1.5em;margin:0 0 8px}.dialog p{margin:0 0 22px;color:var(--text-muted);font-size:.9375rem;line-height:1.55}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.reading-section{margin-top:32px}.reading-section h2{font-family:var(--font-sans);font-size:12px;font-weight:500;line-height:1.4;text-transform:uppercase;letter-spacing:1.5px;color:var(--text-muted);margin-bottom:8px}.reading-section p{margin:0;color:var(--text-body);white-space:pre-wrap}.book-context{line-height:1.4;margin-bottom:8px}.book-context-sections{margin-top:3px;color:var(--text-muted)}blockquote{margin:0;padding:14px 18px;border-radius:var(--radius-md);background:var(--bg-elevated);color:var(--text-body)}@media (max-width:560px){.container{padding:20px 16px 64px}.reading-container{padding:20px 16px 96px}.reading-toolbar-wrap{padding-inline:12px}.reading-toolbar{padding-left:8px;justify-content:center}.reading-toolbar>.small{display:none}.card{padding:20px}.top-nav-inner{padding-inline:16px;gap:8px}.top-nav-inner .row{gap:2px}.top-nav-inner .btn{padding-inline:9px;font-size:13px}h1{font-size:1.75em}.btn{min-height:44px}.btn-sm{min-height:36px}.reading-toolbar .btn{min-width:40px;min-height:40px}.input,select.input{min-height:44px}.pwa-install-banner{left:12px;right:12px;bottom:12px;max-width:none}.dialog-actions .btn{flex:1 1 auto}}@media (max-width:380px){.top-nav-inner{padding-inline:12px}.top-nav-inner .btn{padding-inline:7px}.brand{font-size:1.25rem}.container,.reading-container{padding-inline:14px}}mark.bookmark-mark{background:color-mix(in srgb,#f0c419 38%,transparent);color:inherit;border-radius:3px;padding:0 1px;border-bottom:2px solid #c79a00;cursor:pointer}.is-reading-now,mark.bookmark-mark.is-reading{background:color-mix(in srgb,var(--accent) 30%,transparent)}.selection-bar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:40;width:min(560px,calc(100vw - 24px));background:var(--bg-elevated);border:1px solid var(--border-strong);border-radius:var(--radius);box-shadow:var(--shadow-pop);padding:12px 14px;display:grid;gap:10px}.selection-bar-text{font-size:.875rem;color:var(--text-body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.audio-bar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:39;width:min(560px,calc(100vw - 24px));background:var(--bg-elevated);border:1px solid var(--border-strong);border-radius:var(--radius);box-shadow:var(--shadow-pop);padding:10px 14px;display:grid;gap:8px}.audio-bar-progress{height:4px;border-radius:2px;background:var(--track);overflow:hidden}.audio-bar-progress>div{height:100%;background:var(--accent);transition:width .2s}.btn-listen{display:inline-flex;align-items:center;gap:6px}.section-listen{min-height:32px;padding:4px 10px;font-size:13px}.ask-answer{white-space:pre-wrap;background:var(--bg-soft);border-radius:var(--radius-md);padding:12px 14px;color:var(--text-body)}.ask-quote{border-left:3px solid var(--accent);padding:4px 10px;color:var(--text-muted);font-size:.875rem}.bookmark-item{display:grid;gap:8px}.bookmark-item blockquote{white-space:pre-wrap}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.stat-tile{background:var(--bg-soft);border-radius:var(--radius-md);padding:14px 16px}.stat-value{font-family:var(--font-serif);font-size:2.25rem;font-weight:500;line-height:1.1;color:var(--text)}.stat-label{font-size:.8125rem;color:var(--text-muted);margin-top:4px}:root[data-color-mode=redgreen]{--ok:#0072b2;--info:#56b4e9;--warn:#e69f00;--danger:#d55e00;--danger-text:#a84700;--danger-solid:#a84700}:root[data-color-mode=blueyellow]{--ok:#1b7f4d;--info:#b0428a;--warn:#d55e00;--danger:#b23c3c}:root[data-color-mode=redgreen][data-theme=dark]{--danger:#ff8a3d;--danger-text:#ffa766;--danger-solid:#ff8a3d;--ok:#56b4e9}:root[data-color-mode=blueyellow][data-theme=dark]{--ok:#4cc38a;--info:#e079b8}:root[data-color-mode] .status-badge:before{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;line-height:1;color:var(--bg)}:root[data-color-mode] .status-badge[data-status=completed]:before,:root[data-color-mode] .status-badge[data-status=ready]:before{content:"✓"}:root[data-color-mode] .status-badge[data-status=error]:before{content:"!"}:root[data-color-mode] .status-badge[data-status=analyzed]:before,:root[data-color-mode] .status-badge[data-status=plan_ready]:before,:root[data-color-mode] .status-badge[data-status=uploaded]:before{content:"•"}:root[data-color-mode] .status-badge[data-status=analyzing]:before,:root[data-color-mode] .status-badge[data-status=extracted]:before,:root[data-color-mode] .status-badge[data-status=extracting]:before,:root[data-color-mode] .status-badge[data-status=generating]:before{content:"…"}:root[data-color-mode] .alert-error{border-left-width:5px;border-left-style:double}.pick-mode [data-bm-section]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:pointer}.btn-color-mode{min-width:40px}.btn-color-mode.is-active{border-color:var(--accent)}.section-listen{white-space:nowrap}.reading-section>.spread{flex-wrap:wrap;row-gap:8px}:root[data-color-mode]{--text-body:var(--text);--border:var(--border-strong);--border-soft:var(--border-strong)}:root[data-color-mode] a{text-decoration-line:underline;text-decoration-color:currentColor}:root[data-color-mode] .btn{border-width:2px}:root[data-color-mode=redgreen]{--primary:#0b5a99;--primary-pressed:#084a80;--primary-contrast:#ffffff;--accent:#0072b2;--text-muted:#4a4843}:root[data-color-mode=redgreen][data-theme=dark]{--primary:#56b4e9;--primary-pressed:#7cc4ee;--primary-contrast:#141413;--accent:#56b4e9;--text-muted:#c9c5bc}:root[data-color-mode=blueyellow]{--primary:#b3261e;--primary-pressed:#8f1f19;--primary-contrast:#ffffff;--accent:#c9302c;--text-muted:#4a4843}:root[data-color-mode=blueyellow][data-theme=dark]{--primary:#ff8a80;--primary-pressed:#ffa39b;--primary-contrast:#141413;--accent:#ff8a80;--text-muted:#c9c5bc}:root[data-color-mode] .top-nav{border-bottom:4px solid var(--accent)}:root[data-color-mode] .brand:before{width:14px;height:14px;background:var(--accent);box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}:root[data-color-mode] .btn:not(.btn-primary):not(.btn-danger):not(.btn-danger-solid):not(.btn-ghost):not(:disabled){border-color:var(--primary)}:root[data-color-mode] h1{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:4px;text-underline-offset:8px}:root[data-color-mode] .reading-section h2{color:var(--primary);font-weight:700}:root[data-color-mode] blockquote{border-left:6px solid var(--primary)}:root[data-color-mode] .card{border:2px solid var(--border-strong)}:root[data-color-mode] .reading-toolbar{border:2px solid var(--primary)}:root[data-color-mode] .badge{border-width:2px}:root[data-color-mode] .alert-info{border-left-width:8px}:root[data-color-mode] .progress-bar{height:10px;border:1px solid var(--border-strong)}:root[data-color-mode] .progress-bar-fill{background:repeating-linear-gradient(45deg,var(--accent) 0 8px,color-mix(in srgb,var(--accent) 55%,var(--bg)) 8px 16px)}