*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:Geist,Inter,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.inset-0{inset:0}.left-1\/2{left:50%}.right-3{right:.75rem}.top-1\/2{top:50%}.top-3{top:.75rem}.z-0{z-index:0}.z-50{z-index:50}.z-\[70\]{z-index:70}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-8{height:2rem}.max-h-\[85dvh\]{max-height:85dvh}.w-10{width:2.5rem}.w-\[calc\(100\%-2rem\)\]{width:calc(100% - 2rem)}.max-w-2xl{max-width:42rem}.max-w-52{max-width:13rem}.max-w-xl{max-width:36rem}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-border{border-color:var(--border)}.bg-\[var\(--overlay\)\]{background-color:var(--overlay)}.bg-primary{background-color:var(--primary)}.bg-surface{background-color:var(--surface)}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pr-6{padding-right:1.5rem}.font-serif{font-family:Source Serif 4,Lora,Georgia,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.leading-relaxed{line-height:1.625}.text-\[var\(--accent-text\)\]{color:var(--accent-text)}.text-\[var\(--primary-foreground\)\]{color:var(--primary-foreground)}.text-\[var\(--secondary-text\)\]{color:var(--secondary-text)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgb(0 0 0/0.1),0 8px 10px -6px rgb(0 0 0/0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{--background:#f7f7f2;--reading:#fbfaf5;--surface:#ffffff;--elevated:#ffffff;--sidebar:#f0f1eb;--primary:#52665a;--primary-hover:#405248;--primary-foreground:#ffffff;--sage:#dde5de;--sage-soft:#ebf0e9;--foreground:#252a27;--secondary-text:#69736d;--muted:#69736d;--border:#e3e5e1;--accent:#c9826b;--accent-text:#9a4e37;--overlay:rgba(25,31,26,0.3);color-scheme:light}.dark{--background:#171a18;--reading:#202421;--surface:#202421;--elevated:#292e2a;--sidebar:#1c201d;--primary:#9caf9f;--primary-hover:#b1c0b3;--primary-foreground:#202421;--sage:#323d34;--sage-soft:#272f29;--foreground:#ecefeb;--secondary-text:#aeb8b1;--muted:#aeb8b1;--border:#353b37;--accent:#d6947d;--accent-text:#d6947d;--overlay:rgba(17,21,18,0.65);color-scheme:dark}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:var(--background);color:var(--foreground)}body{font-family:Geist,Inter,system-ui,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}a,button,input,select,textarea{outline-offset:4px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--primary)}button{cursor:pointer}button:disabled{cursor:default}a{text-decoration:none}a,button,input,textarea{color:inherit}textarea{resize:none}::selection{background:var(--sage);color:var(--foreground)}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:400}svg{flex-shrink:0}.accent{color:var(--accent)}.eyebrow{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:500;color:var(--secondary-text)}.little-dot{width:5px;height:5px;border-radius:50%;background:var(--primary);display:inline-block}.skip-link{position:fixed;left:260px;top:-100px;z-index:100;background:var(--surface);padding:12px;border:1px solid var(--border)}.skip-link:focus{top:10px}.inline-error{color:var(--accent-text);background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--accent);font-size:13px;line-height:1.6;padding:12px 15px;border-radius:6px;margin:12px 0}.config-note{font-size:12px;color:var(--secondary-text);line-height:1.7;margin:12px 0}.config-note a{text-decoration:underline}.mobile-close,.mobile-header,.sidebar-backdrop{display:none}.wordmark{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:41px;font-weight:500;line-height:1;letter-spacing:-2px}.wordmark span{color:var(--accent)}.sidebar{position:fixed;left:0;top:0;bottom:0;width:236px;background:var(--sidebar);border-right:1px solid var(--border);padding:35px 21px 20px;display:flex;flex-direction:column;z-index:30}.sidebar-brand{padding-left:10px}.brand-caption{font-size:10px;color:var(--secondary-text);margin:14px 0 29px 10px;letter-spacing:.02em}.new-conversation{justify-content:flex-start;margin-bottom:28px;background:transparent;border-color:#cdd4cc}.dark .new-conversation{border-color:var(--border)}.nav-item{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:7px;color:var(--secondary-text);font-size:12px;line-height:1.35;width:100%;text-align:left;transition:background .2s}.nav-item:hover{background:var(--sage-soft)}.nav-item.active{background:var(--sage);color:var(--foreground);font-weight:500}.recent-heading{margin:39px 12px 12px;font-size:9px}.recent-list{overflow:auto;min-height:50px}.recent-list .nav-item{font-size:11px;padding-top:10px;padding-bottom:10px}.recent-list .nav-item span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sidebar-empty{font-size:11px;line-height:1.6;padding:0 12px;color:var(--secondary-text)}.sidebar-bottom{margin-top:auto;padding-top:25px}.sidebar-note{border-top:1px solid var(--border);padding:20px 12px 0;font-size:9px;color:var(--secondary-text);display:flex;gap:8px;align-items:center}.main-shell{margin-left:236px;position:relative;z-index:1;min-height:100dvh}main{outline:none}.connection-error{border-bottom:1px solid var(--border);background:var(--surface);padding:12px 30px;font-size:12px;color:var(--accent-text);display:flex;gap:15px;justify-content:space-between}.connection-error button{text-decoration:underline}.page-top{justify-content:space-between;min-height:70px}.page-top,.top-note{display:flex;align-items:center}.top-note{color:var(--secondary-text);font-size:10px;gap:8px}.home-page{max-width:1160px;margin:auto;padding:0 62px}.home-hero{max-width:760px;margin:58px auto 0}.hero-kicker{display:flex;align-items:center;gap:12px;font-size:9px;color:var(--primary);letter-spacing:.14em;margin-bottom:23px}.short-rule{width:27px;height:1px;background:var(--accent)}.home-hero h1{font-family:"Source Serif 4",Lora,Georgia,serif;line-height:1.28;font-size:43px;letter-spacing:-1.4px}.hero-description{font-size:13px;color:var(--secondary-text);line-height:1.9;margin-top:20px}.home-composer{background:var(--surface);border:1px solid var(--border);border-radius:13px;margin-top:32px;padding:19px 20px 13px;box-shadow:0 4px 24px #252a2703}.home-composer:focus-within{border-color:var(--primary)}.home-composer textarea{width:100%;background:transparent;outline:none;line-height:1.7;min-height:58px;font-size:13px}.home-composer textarea::placeholder{color:var(--secondary-text)}.composer-bottom{justify-content:space-between}.composer-bottom,.source-hint{display:flex;align-items:center}.source-hint{gap:8px;color:var(--secondary-text);font-size:10px;padding:5px 0}.composer-bottom button{width:33px;height:33px;border-radius:8px}.privacy-note{font-size:10px;color:var(--secondary-text);line-height:1.7;margin:10px 4px}.suggestions{display:flex;gap:9px;margin-top:23px}.suggestions button{display:flex;align-items:flex-start;gap:9px;flex:1;border:1px solid var(--border);padding:12px 11px;border-radius:7px;text-align:left;font-size:10px;line-height:1.6;color:var(--secondary-text);background:var(--background)}.suggestions button:hover{background:var(--sage-soft);border-color:var(--sage)}.suggestions button svg{margin-left:auto;transform:rotate(45deg);margin-top:3px}.suggestion-number{font-size:9px;color:var(--accent-text)}.home-library{max-width:760px;margin:57px auto 0}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.section-title h2{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:21px;letter-spacing:-.4px}.section-title a{font-size:10px;color:var(--secondary-text);display:flex;gap:6px;align-items:center}.home-tiles{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}.reading-tile{display:flex;align-items:center;gap:21px;border:1px solid var(--border);border-radius:11px;padding:24px 21px;background:var(--surface);min-height:180px;transition:transform .2s}.reading-tile:hover,.science-tile:hover{transform:translateY(-2px)}.book-cover{width:86px;height:125px;flex-shrink:0;background:#52665a;color:#edf1e9;box-shadow:3px 3px 0 #dce1d8,inset 3px 0 0 #ffffff15;padding:12px 11px;display:flex;flex-direction:column;justify-content:space-between;border-radius:1px 3px 3px 1px}.book-cover span:first-child{font-size:5px;letter-spacing:.12em}.book-cover span:last-child{font-family:Georgia,serif;font-size:9px;line-height:1.5;letter-spacing:.09em}.book-cover svg{opacity:.65}.reading-tile h3{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:19px;line-height:1.35;margin:10px 0;-webkit-line-clamp:3}.reading-tile h3,.reading-tile p{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.reading-tile p{font-size:10px;line-height:1.7;color:var(--secondary-text);-webkit-line-clamp:2}.tile-action{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--primary);margin-top:17px}.science-tile{border:1px solid var(--border);border-radius:11px;background:var(--sage-soft);padding:23px 23px 18px;position:relative;transition:transform .2s}.science-icon{position:absolute;right:23px;top:23px;color:var(--primary);opacity:.7}.science-tile h3{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:23px;margin:12px 0 9px;letter-spacing:-.5px}.science-tile p{font-size:10px;line-height:1.8;max-width:215px;color:var(--secondary-text)}.science-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);margin-top:19px;padding-top:13px;color:var(--primary)}.science-footer span{gap:7px}.home-footer,.science-footer span{display:flex;align-items:center;font-size:9px}.home-footer{max-width:760px;margin:39px auto 0;padding:20px 0 26px;border-top:1px solid var(--border);letter-spacing:.025em;color:var(--secondary-text);justify-content:space-between}.home-footer span{font-size:8px;letter-spacing:.2em}.floating-add{position:fixed;right:23px;bottom:21px;width:35px;height:35px;background:var(--surface);border:1px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--primary)}.content-page{max-width:1150px;margin:auto;padding:0 55px 40px}.page-heading{display:flex;justify-content:space-between;gap:25px;align-items:center;margin:35px 0}.page-heading h1{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:39px;letter-spacing:-1px}.page-heading p{font-size:13px;line-height:1.8;color:var(--secondary-text);margin-top:12px}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:33px 0}.segmented{display:flex;gap:4px;background:var(--sidebar);padding:4px;border:1px solid var(--border);border-radius:8px;width:fit-content}.segmented a,.segmented button{font-size:11px;color:var(--secondary-text);padding:7px 12px;border-radius:5px;white-space:nowrap}.segmented .selected{background:var(--surface);color:var(--foreground);box-shadow:0 1px 3px #252a2708}.segmented button:disabled{opacity:.4}.search-field{display:flex;align-items:center;gap:10px;color:var(--secondary-text);border-bottom:1px solid var(--border);padding:8px 3px}.search-field input{background:transparent;font-size:11px;min-width:0;width:180px}.library-section{margin:36px 0}.library-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 0 12px;border-bottom:1px solid var(--border);color:var(--secondary-text)}.count-label{font-size:10px;min-width:19px;border-radius:4px;background:var(--sage-soft);text-align:center;padding:2px 5px}.document-row{gap:17px;padding:22px 0;border-bottom:1px solid var(--border)}.document-row,.document-spine{display:flex;align-items:center}.document-spine{width:39px;height:48px;border-radius:3px 7px 7px 3px;justify-content:center;background:var(--sage-soft);color:var(--primary);border-left:3px solid var(--sage)}.document-spine.personal{background:var(--reading);border-left-color:var(--accent)}.document-info{flex:1;min-width:0}.document-info h3{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:17px;line-height:1.5;max-width:650px}.document-info:hover h3{color:var(--primary)}.document-info p{display:flex;flex-wrap:wrap;gap:7px;font-size:10px;color:var(--secondary-text);line-height:1.7;margin-top:5px}.document-meta{display:flex;flex-direction:column;gap:7px;align-items:flex-end}.document-date{font-size:9px;color:var(--secondary-text)}.document-status{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:var(--secondary-text);white-space:nowrap}.status-ready{color:var(--primary)}.status-error{color:var(--accent-text)}.row-arrow{color:var(--secondary-text);padding:6px}.translation-note{font-size:9px;color:var(--primary);display:block;margin-top:5px}.empty-state{padding:40px 20px;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;text-align:center;line-height:1.7;color:var(--secondary-text);font-size:12px}.empty-state a{text-decoration:underline}.library-footer{gap:9px;font-size:10px;color:var(--secondary-text);margin:40px 0}.library-footer,.upload-zone{display:flex;align-items:center}.upload-zone{flex-direction:column;gap:15px;border:1px dashed var(--border);border-radius:9px;background:var(--reading);padding:38px 20px;margin:25px 0;color:var(--primary)}.upload-zone p{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:20px}.upload-zone span{font-size:11px;color:var(--secondary-text)}.upload-zone button{margin-top:7px}.drag-over{border-color:var(--primary);background:var(--sage-soft)}.chat-workspace{max-width:980px;margin:auto;padding:0 55px;display:flex;flex-direction:column;height:100dvh}.chat-source-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border);gap:15px}.source-picker{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--secondary-text);min-width:0;max-width:85%}.source-picker span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-count{font-size:9px;color:var(--secondary-text);white-space:nowrap}.chat-messages{overflow:auto;flex:1;min-height:0;padding:20px 2px 25px}.chat-empty{min-height:440px;flex-direction:column;text-align:center;padding:20px}.chat-empty,.chat-empty-icon{display:flex;align-items:center;justify-content:center}.chat-empty-icon{width:54px;height:54px;background:var(--sage-soft);border-radius:50%;margin-bottom:24px;color:var(--primary)}.chat-empty h1{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:32px;line-height:1.4;margin:16px 0 12px;letter-spacing:-.7px}.chat-empty p{font-size:12px;color:var(--secondary-text);line-height:1.8}.chat-prompts{display:flex;flex-direction:column;gap:10px;margin-top:28px;max-width:410px;width:100%}.chat-prompts button{border:1px solid var(--border);border-radius:7px;padding:13px;text-align:left;font-size:11px;display:flex;justify-content:space-between;gap:15px;color:var(--secondary-text)}.chat-prompts button:hover{background:var(--sage-soft)}.chat-prompts svg{transform:rotate(45deg)}.chat-message{margin:20px 0 35px;line-height:1.9}.chat-message.user{background:var(--sage-soft);border-radius:9px;padding:18px 21px;margin-left:9%}.chat-message.assistant{padding:6px 0}.message-label{font-size:10px;letter-spacing:.025em;margin-bottom:11px;color:var(--secondary-text);font-weight:500}.assistant .message-label{color:var(--primary)}.study-text{line-height:1.9;font-size:14px;overflow-wrap:anywhere}.study-text p{margin:0 0 17px;white-space:pre-wrap}.study-text h3{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:21px;font-weight:500;line-height:1.5;margin:25px 0 13px}.study-text strong{font-weight:600}.study-text ul{padding-left:22px;list-style:disc;margin:15px 0}.study-text li{padding:3px 0}.study-text code{font-size:.85em;background:var(--sage-soft);border-radius:4px;padding:2px 4px}.chat-bottom{padding:12px 0 16px}.chat-composer{display:flex;align-items:flex-end;gap:15px;border:1px solid var(--border);border-radius:11px;background:var(--surface);padding:15px}.chat-composer:focus-within{border-color:var(--primary)}.chat-composer textarea{background:transparent;flex:1;outline:none;min-width:0;line-height:1.7;font-size:13px}.chat-composer button{width:34px;height:34px}.query-status{gap:8px;font-size:11px;color:var(--secondary-text);margin:15px 0}.citations,.query-status{display:flex;align-items:center}.citations{flex-wrap:wrap;gap:7px;margin-top:21px;border-top:1px solid var(--border);padding-top:13px}.citations>span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--secondary-text);margin-right:5px}.citations button{font-size:10px;line-height:1.5;color:var(--primary);display:flex;gap:6px;align-items:flex-start;padding:5px 7px;background:var(--sage-soft);border-radius:4px;max-width:100%;text-align:left}.citation-number{font-size:9px;font-weight:500}.source-options{margin:23px 0 10px;max-height:44dvh;overflow:auto}.source-option{display:flex;align-items:center;gap:12px;padding:13px 4px;border-bottom:1px solid var(--border);cursor:pointer}.source-option input{accent-color:var(--primary);width:15px;height:15px;flex-shrink:0}.source-option svg{color:var(--primary)}.source-option span{display:flex;flex-direction:column;gap:5px;font-size:12px;line-height:1.5}.source-option strong{font-weight:500}.source-option small{font-size:10px;color:var(--secondary-text)}.source-option:has(input:disabled){opacity:.6;cursor:default}.source-selection-tools{display:flex;justify-content:space-between;align-items:center;margin:22px 4px 5px}.source-selection-tools button{font-size:10px;text-decoration:underline;color:var(--primary)}.source-excerpts{max-height:50dvh;overflow:auto;margin:25px 0}.source-excerpts blockquote{margin:14px 0;padding:15px 20px;border-left:2px solid var(--sage);background:var(--reading);font-size:13px;line-height:1.9;white-space:pre-wrap}.reader-page{height:100dvh;display:flex;flex-direction:column}.reader-header{padding:26px 35px 0;flex-shrink:0}.back-link{gap:8px;color:var(--secondary-text);font-size:10px;margin-bottom:22px}.back-link,.reader-title{display:flex;align-items:center}.reader-title{justify-content:space-between;gap:25px}.reader-title h1{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:27px;line-height:1.35;letter-spacing:-.5px;max-width:920px}.reader-title p{font-size:11px;line-height:1.7;color:var(--secondary-text);display:flex;gap:8px;margin-top:9px}.reader-tabs{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding-top:21px}.reader-tabs [role=tablist]{display:flex;gap:26px}.reader-tabs [role=tab]{display:flex;align-items:center;gap:7px;font-size:11px;padding:13px 0;color:var(--secondary-text);border-bottom:2px solid transparent}.reader-tabs [aria-selected=true]{color:var(--primary);border-bottom-color:var(--primary)}.reader-tabs>button{margin-bottom:7px}.reader-body{display:flex;flex:1;min-height:0}.reader-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:auto}.reader-controls{justify-content:space-between;gap:15px;padding:20px 35px;flex-shrink:0}.pdf-link,.reader-controls{display:flex;align-items:center}.pdf-link{font-size:10px;gap:7px;color:var(--secondary-text)}.reading-surface{flex:1;overflow:auto;margin:0 35px;border:1px solid var(--border);border-radius:7px;background:var(--reading);padding:45px}.reading-column{max-width:740px;margin:0 auto}.reading-label{font-size:9px;color:var(--secondary-text);text-transform:uppercase;letter-spacing:.12em;display:flex;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:17px;margin-bottom:30px}.reading-label span{font-size:8px;letter-spacing:.04em}.original-text{white-space:pre-wrap;overflow-wrap:anywhere}.original-text,.translated-text{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:18px;line-height:1.9}.side-by-side{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:35px}.side-by-side .reading-column{width:100%;min-width:0}.side-by-side .original-text,.side-by-side .translated-text{font-size:16px}.page-pagination{display:flex;align-items:center;justify-content:space-between;padding:15px 35px;gap:10px;color:var(--secondary-text)}.page-pagination label{display:flex;align-items:center;gap:5px;font-size:10px}.page-pagination input{width:45px;border-bottom:1px solid var(--border);background:transparent;text-align:center;padding:4px 0}.reader-chat{width:365px;max-width:43%;flex-shrink:0;border-left:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column}.reader-chat>header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-bottom:1px solid var(--border)}.compact.chat-workspace{height:auto;flex:1;width:100%;padding:0 17px;min-height:0}.compact .chat-source-bar{padding:14px 0}.compact .chat-empty{min-height:0;padding:35px 0}.compact .chat-empty h1{font-size:25px}.compact .chat-empty p{font-size:11px}.compact .chat-message.user{margin-left:0;padding:13px}.compact .study-text{font-size:12px}.compact .study-text h3{font-size:19px}.compact .chat-composer{padding:11px;gap:7px}.compact .chat-composer textarea{font-size:12px}.compact .privacy-note{font-size:10px}.compact .source-count{display:none}.compact .source-picker{max-width:100%}.reader-error{margin:10px 35px}.information-panel,.translation-panel{padding:40px 45px;max-width:900px;width:100%;margin:0 auto}.information-panel h2,.translation-panel h2{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:31px;margin:12px 0 17px}.translation-panel>p{font-size:13px;color:var(--secondary-text);line-height:1.9;max-width:640px}.translation-progress{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:23px;margin:27px 0 36px}.translation-progress strong{font-weight:500;font-size:13px}.translation-progress small,.translation-progress span{font-size:11px;color:var(--secondary-text)}progress{display:block;appearance:none;width:100%;height:4px;margin:18px 0 10px;border-radius:3px;overflow:hidden;background:var(--sage)}progress::-webkit-progress-bar{background:var(--sage)}progress::-webkit-progress-value{background:var(--primary)}progress::-moz-progress-bar{background:var(--primary)}.glossary-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.glossary-heading h3{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:23px}.glossary-empty,.glossary-footnote,.glossary-heading p{font-size:11px;color:var(--secondary-text);line-height:1.8;margin:9px 0 20px}.glossary-list{margin:19px 0}.glossary-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);padding:9px 0}.glossary-row input{flex:1;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:5px;padding:8px;font-size:12px}.glossary-row span{font-size:12px;color:var(--secondary-text)}.glossary-footnote{margin-top:16px}.information-panel form{display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin:25px 0 35px}.information-panel label{width:100%;display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--secondary-text)}.information-panel input{width:100%;border:1px solid var(--border);border-radius:6px;padding:11px;background:var(--surface);color:var(--foreground);font-size:13px}.information-panel dl{display:grid;grid-template-columns:1fr 2fr;gap:18px;font-size:12px;margin-bottom:25px}.excerpt-label,.information-panel dt{color:var(--secondary-text)}.excerpt-label{display:block;font-size:11px;margin:22px 0 9px}.excerpt-source{width:100%;padding:12px;border:1px solid var(--border);background:var(--reading);border-radius:6px;font-size:12px;line-height:1.8;resize:vertical}.excerpt-result{margin:25px 0 0;border-top:1px solid var(--border);padding-top:20px}.excerpt-result .study-text{margin-top:14px}.selection-actions{margin:0 35px 15px;border:1px solid var(--border);border-radius:7px;background:var(--surface);padding:10px;font-size:10px;color:var(--secondary-text)}.selection-actions>span{display:block;margin-bottom:7px}.selection-actions>div{display:flex;flex-wrap:wrap;gap:3px}.settings-page{max-width:950px}.settings-section{border-top:1px solid var(--border);padding:27px 0}.settings-section h2{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:23px;margin-bottom:12px}.settings-section p{color:var(--secondary-text);font-size:12px;line-height:1.9;margin:10px 0;max-width:650px}.theme-options{display:flex;gap:12px;margin-top:21px}.theme-options button{display:flex;align-items:center;gap:10px;justify-content:center;width:130px;height:65px;border:1px solid var(--border);border-radius:7px;background:var(--surface);font-size:12px;color:var(--secondary-text)}.theme-options .selected{border-color:var(--primary);background:var(--sage-soft);color:var(--primary)}.connection-state{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--primary);margin:19px 0}.settings-section pre{padding:15px 20px;border:1px solid var(--border);border-radius:6px;background:var(--reading);font-size:12px;line-height:1.9;max-width:450px}.settings-section code{font-size:11px;background:var(--sage-soft);border-radius:3px;padding:2px 4px}@media (min-width:1600px){.home-hero{margin-top:100px}.home-library{margin-top:70px}.home-hero h1{font-size:50px}.home-page{max-width:1220px}}@media (max-width:1200px){.home-page{padding:0 38px}.content-page{padding:0 35px 35px}.home-hero h1{font-size:38px}.home-hero{margin-top:45px}.home-library{margin-top:40px}.home-tiles{grid-template-columns:1.2fr 1fr}.reading-tile{gap:15px;padding:19px 16px}.book-cover{width:70px;height:110px}.reading-tile h3{font-size:17px}.reader-chat{width:330px}.with-chat .reader-controls{padding:15px 20px;flex-wrap:wrap}.with-chat .reading-surface{margin:0 20px;padding:27px 22px}.with-chat .side-by-side{grid-template-columns:1fr}.with-chat .page-pagination{padding:12px 20px}.chat-workspace{padding:0 35px}}@media (max-width:960px){.sidebar{width:210px;padding:30px 15px 20px}.main-shell{margin-left:210px}.home-hero h1{font-size:34px}.home-tiles{grid-template-columns:1fr}.science-tile{min-height:155px}.suggestions{flex-direction:column}.suggestions button{align-items:center;min-height:43px}.home-library{margin-top:35px}.library-toolbar{flex-wrap:wrap}.page-heading{align-items:flex-start}.page-heading h1{font-size:34px}.page-heading>button{font-size:11px;padding:0 11px}.reader-chat{position:fixed;right:0;top:0;bottom:0;width:420px;max-width:80%;z-index:40;box-shadow:-12px 0 40px #252a2715}.with-chat .side-by-side{grid-template-columns:1fr 1fr}.reader-controls{padding:17px 25px}.reading-surface{margin:0 25px;padding:35px 30px}.reader-title h1{font-size:23px}.reader-header{padding:25px 25px 0}.reader-title .document-status{display:none}.reader-tabs [role=tablist]{gap:17px}.chat-empty h1{font-size:28px}.document-row{gap:12px}.document-date,.row-arrow{display:none}}@media (max-width:720px){.mobile-header{display:flex;position:sticky;top:0;z-index:35;align-items:center;gap:12px;background:var(--background);border-bottom:1px solid var(--border);padding:9px 14px;height:64px}.mobile-header .wordmark{font-size:30px;letter-spacing:-1px}.mobile-header>.eyebrow{margin-left:auto;font-size:8px}.sidebar{transform:translateX(-100%);transition:transform .2s;width:250px;z-index:60}.sidebar.is-open{transform:translateX(0)}.sidebar-brand{display:flex;align-items:center;justify-content:space-between}.mobile-close{display:inline-flex}.sidebar-backdrop{display:block;position:fixed;inset:0;z-index:55;background:var(--overlay)}.main-shell{margin-left:0;min-height:calc(100dvh - 64px)}.home-page{padding:0 23px}.page-top{min-height:58px}.top-note{font-size:9px}.home-hero{margin-top:28px}.hero-kicker{font-size:8px;margin-bottom:18px}.home-hero h1{font-size:34px;line-height:1.32}.hero-description{font-size:12px;margin-top:18px}.home-composer{margin-top:26px}.home-library{margin-top:39px}.section-title h2{font-size:20px}.section-title a{font-size:9px}.reading-tile{min-height:170px;padding:22px}.book-cover{width:80px;height:120px}.science-tile{padding:23px}.home-footer{margin-top:26px;line-height:1.7;font-size:8px}.floating-add{display:none}.content-page{padding:0 23px 30px}.page-heading{margin:24px 0;flex-direction:column;gap:18px}.page-heading h1{font-size:35px}.library-toolbar{margin:25px 0}.segmented a,.segmented button{font-size:10px;padding:7px 9px}.search-field,.search-field input{width:100%}.document-info h3{font-size:16px}.document-row{padding:22px 0;position:relative}.document-meta,.document-row{align-items:flex-start;flex-wrap:wrap}.document-meta{width:100%;padding-left:51px;flex-direction:row}.document-info p{font-size:9px}.document-spine{width:35px}.library-section{margin-top:27px}.chat-workspace{height:calc(100dvh - 64px);padding:0 23px}.chat-empty{min-height:340px;padding:15px 0}.chat-empty h1{font-size:28px}.chat-message.user{margin-left:0}.chat-message .study-text{font-size:13px}.reader-page{height:calc(100dvh - 64px)}.reader-header{padding:20px 20px 0}.reader-title h1{font-size:22px}.reader-title p{font-size:10px;display:block}.reader-title p span{padding:0 6px}.back-link{margin-bottom:15px}.reader-tabs{padding-top:12px}.reader-tabs [role=tab]{font-size:10px;gap:5px}.reader-tabs [role=tablist]{gap:16px}.reader-controls{padding:16px 17px;gap:10px}.pdf-link{font-size:9px}.pdf-link svg{display:none}.reading-surface{margin:0 15px;padding:28px 22px}.original-text,.translated-text{font-size:17px;line-height:1.9}.reading-label{margin-bottom:22px}.side-by-side,.with-chat .side-by-side{grid-template-columns:1fr;gap:40px}.reader-chat{top:64px;max-width:100%;width:100%;box-shadow:none}.page-pagination{padding:13px 17px}.page-pagination button{padding:0 6px;font-size:10px}.information-panel,.translation-panel{padding:30px 23px}.translation-progress{padding:18px}.translation-progress button{font-size:11px;padding:0 11px}.selection-actions{margin:0 15px 10px}.reader-error{margin:10px 15px}.glossary-row{gap:6px}.glossary-row input{font-size:10px;padding:7px}.glossary-row button{width:27px}.theme-options{gap:8px}.theme-options button{width:105px;font-size:11px}.connection-error{padding:10px 17px;line-height:1.6;flex-direction:column;gap:4px}.connection-error button{text-align:left}.skip-link{left:10px}.compact .chat-messages{padding-top:10px}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}.synapse-background{display:none}}@media print{.mobile-header,.page-pagination,.reader-chat,.reader-controls,.reader-header,.sidebar,.synapse-background{display:none!important}.main-shell{margin:0}.reader-body,.reader-main,.reader-page,.reading-surface{height:auto;overflow:visible}.reading-surface{border:0;margin:0;padding:0}}.home-actions{display:flex;flex-wrap:wrap;gap:12px;margin:32px 0 0}.library-subnav{margin:4px 0 0 23px;padding-left:8px;border-left:1px solid var(--border)}.library-subnav .nav-item{font-size:11px;padding:9px 8px;gap:8px}.science-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;margin:20px 0 30px}.science-filters label{display:flex;flex-direction:column;gap:7px;font-size:10px;color:var(--secondary-text)}.science-filters select{min-width:220px;max-width:100%;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--foreground);padding:10px 12px;font-size:12px}.library-source-count{font-size:10px!important;margin-top:5px!important}.document-categories{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.document-categories span{color:var(--primary);font-size:9px;line-height:1.6;background:var(--sage-soft);padding:3px 7px;border-radius:4px}.citation-metadata{font-size:11px;line-height:1.8;color:var(--secondary-text);margin-top:9px}@media (max-width:720px){.science-filters label,.science-filters select{width:100%}.home-actions{margin-top:26px;gap:10px}.home-actions>a{font-size:12px}}.refreshed-reader .reader-header{display:flex;flex-direction:column;gap:4px;padding:8px 20px 0;border-bottom:1px solid var(--border)}.reader-heading{display:flex;align-items:flex-start;gap:12px;min-width:0}.refreshed-reader .back-link{flex-shrink:0;margin-bottom:0;min-height:32px}.refreshed-reader .reader-title{display:block;flex:1;min-width:0}.refreshed-reader .reader-title .document-status{display:inline-flex;flex-shrink:0}.refreshed-reader .reader-title h1{font-size:18px;line-height:1.35;max-width:none;overflow-wrap:anywhere}.refreshed-reader .reader-title p{display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px;margin-top:2px;font-size:10px}.refreshed-reader .reader-title p span{padding:0}.reader-author{max-width:100%;overflow-wrap:anywhere}.reader-page-count{flex-shrink:0;white-space:nowrap}.refreshed-reader .reader-tabs{flex-wrap:wrap;padding-top:0;border-bottom:0;gap:4px 20px}.refreshed-reader .reader-tabs [role=tablist]{flex-wrap:wrap;gap:18px}.refreshed-reader .reader-tabs [role=tab]{padding-block:10px}.refreshed-reader .reader-tabs>button{flex-shrink:0;margin-bottom:4px}.refreshed-reader .reader-main{min-height:0}.refreshed-reader .reader-main-reading{overflow:hidden}.refreshed-reader .reader-main-panel{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}.reader-main-panel>.information-panel,.reader-main-panel>.translation-panel{flex-shrink:0}.refreshed-reader .reader-controls{padding:7px 20px;flex-wrap:wrap;border-bottom:1px solid var(--border);background:var(--background);gap:8px 12px}.reader-display-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.reader-display-tools select{border:0;background:transparent;font-size:10px;color:var(--secondary-text);padding:6px 3px;max-width:170px;cursor:pointer}.reader-text-size{display:flex;gap:9px;align-items:center;border:1px solid var(--border);border-radius:6px;padding:3px}.reader-text-size button{height:26px;width:29px;color:var(--primary);font-family:Georgia,serif;font-size:13px;border-radius:4px}.reader-text-size button:hover{background:var(--sage-soft)}.reader-text-size button:disabled{opacity:.35}.reader-text-size span{color:var(--secondary-text);font-size:10px;font-variant-numeric:tabular-nums;min-width:14px;text-align:center}.reader-stage{flex:1;min-height:0;overflow:auto;background:var(--sidebar);padding:12px 16px 24px;scrollbar-gutter:stable}.reader-page-column{min-width:0}.reader-column-label{max-width:780px;margin:0 auto 12px;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--secondary-text);display:flex;justify-content:space-between;gap:12px}.reader-column-label span{font-size:9px;letter-spacing:0;text-transform:none}.original-page-column .reader-column-label{max-width:none}.reader-stage:not(.reader-comparison) .reader-column-label{display:none}.book-paper,.original-paper{margin-inline:auto;border:1px solid var(--border);box-shadow:0 3px 18px #252a2705}.original-paper{background:#fff;overflow:hidden}.pdf-page{position:relative;min-height:500px}.refreshed-reader.reader-expanded{position:fixed;inset:0;width:100%;height:100dvh;z-index:45;background:var(--background)}.reader-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.refreshed-reader.reader-expanded .reader-header{padding:8px 16px 0}.reader-expanded .reader-title h1{font-size:17px;line-height:1.3}.reader-expanded .reader-title p{margin-top:4px}.reader-expanded .reader-tabs{padding-top:0}.reader-expanded .book-paper{max-width:880px}.reader-header-actions button{margin:0}.annotation-total{font-size:10px;opacity:.8}.original-paper{width:max-content;max-width:none}.pdf-page{margin-inline:auto}.pdf-marks{position:absolute;inset:0;pointer-events:none}.pdf-page.is-drawing .pdf-marks{pointer-events:auto;cursor:crosshair;touch-action:none}.pdf-area-draft,.pdf-area-highlight{position:absolute;border:1px solid #9a7a154d;border-radius:2px;background:#f3d97070;mix-blend-mode:multiply}.pdf-area-highlight{padding:0;pointer-events:auto}.pdf-area-highlight:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.pdf-area-draft,.pdf-page.is-drawing .pdf-area-highlight{pointer-events:none}.pdf-drawing-hint{margin:0;padding:8px 20px;background:var(--sage-soft);color:var(--primary);font-size:11px}.note-yellow{--note-paper:#fff2b7;--note-mark:#efd47773;--note-border:#e7d59a}.note-sage{--note-paper:#e4efdf;--note-mark:#accba77a;--note-border:#bdcfb8}.note-rose{--note-paper:#f8e0d8;--note-mark:#eab4a87a;--note-border:#e2c2b8}.pdf-area-highlight,.reader-highlight{background:var(--note-mark)}.reader-highlight{color:inherit;border-radius:2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.page-postits{display:flex;flex-wrap:wrap;gap:7px;padding:7px 20px;border-bottom:1px solid var(--border)}.page-postit{display:flex;align-items:center;gap:5px;padding:6px 9px;max-width:270px;min-width:0;border-radius:3px;border:1px solid var(--note-border);background:var(--note-paper);color:#35372b;font-size:10px}.page-postit span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.translated-figures{margin-top:28px}.figure-repair-notice{border:1px solid var(--border);background:var(--sage-soft);padding:12px;border-radius:7px;margin-bottom:18px;font-family:Geist,Inter,system-ui,sans-serif}.figure-repair-notice p{font-size:12px;line-height:1.7;margin:0 0 10px}.figure-repair-notice small{display:block;font-size:10px;color:var(--secondary-text);margin-top:8px}.translated-figures figure{margin:24px 0;break-inside:avoid}.translated-figures img{display:block;max-width:100%;height:auto;margin-inline:auto;border-radius:2px;background:white}.reading-table-wrapper{width:100%;max-width:100%;overflow-x:auto;margin:24px 0}.reading-table{border-collapse:collapse;width:100%;min-width:480px;font-size:.82em;line-height:1.65;table-layout:auto}.reading-table td,.reading-table th{border:1px solid var(--border);text-align:left;vertical-align:top;padding:10px 12px;overflow-wrap:anywhere;min-width:110px}.reading-table th{background:var(--sage-soft);color:var(--foreground);font-weight:600}.reading-table tbody tr:nth-child(2n){background:var(--background)}.figure-status,.translated-figures figcaption{color:var(--secondary-text);font-family:Geist,Inter,system-ui,sans-serif;font-size:10px;line-height:1.6;text-align:center}.reader-notes{width:310px;flex-shrink:0;display:flex;flex-direction:column;min-height:0;background:var(--background);border-left:1px solid var(--border)}.reader-notes>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:20px 18px 12px}.reader-notes h2{font-family:"Source Serif 4",Georgia,serif;font-size:21px;font-weight:400;line-height:1.3;margin:10px 0 0}.reader-notes h2 span{color:var(--accent)}.notes-tools{display:grid;gap:11px;padding:0 18px 10px;border-bottom:1px solid var(--border)}.notes-tools>input{padding:10px;width:100%;border:1px solid var(--border);background:var(--reading);border-radius:7px;font-size:11px}.notes-page-filter{display:flex;align-items:center;gap:8px;color:var(--secondary-text);font-size:11px}.notes-page-filter input{accent-color:var(--primary)}.notes-navigation{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--secondary-text)}.notes-list{padding:16px 18px 30px;overflow:auto;flex:1;min-height:0}.notes-empty{padding:30px 3px;color:var(--secondary-text);text-align:center}.notes-empty>svg{margin:0 auto 15px;color:var(--primary)}.notes-empty h3{font-family:"Source Serif 4",Georgia,serif;font-size:19px;font-weight:400;color:var(--foreground)}.notes-empty p{font-size:12px;line-height:1.8;margin-top:12px}.note-card{position:relative;margin-bottom:15px;border:1px solid var(--note-border);border-radius:2px 14px 3px 3px;background:var(--note-paper);color:#35372b;box-shadow:0 3px 8px #252a2709}.note-card.is-active{outline:2px solid var(--primary);outline-offset:3px}.note-open{display:block;width:100%;text-align:left;padding:15px 14px 8px;color:inherit}.note-card-label{display:flex;align-items:center;gap:5px;color:#626347;font-size:10px}.note-card-label>span{margin-left:auto;font-size:9px}.note-open p{font-family:"Source Serif 4",Georgia,serif;font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}.note-open blockquote{margin:12px 0 0;padding:0 0 0 9px;border-left:2px solid #72664440;font-size:11px;line-height:1.7;max-height:100px;overflow:hidden;overflow-wrap:anywhere}.note-card-actions{display:flex;justify-content:space-between;padding:0 6px 5px}.note-card-actions button{color:#626347;font-size:10px}.annotation-editor{display:flex;flex-direction:column;gap:12px}.annotation-editor>h2{padding-right:24px}.annotation-field{display:grid;gap:8px;min-width:0}.annotation-editor textarea{display:block;width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--reading);color:var(--foreground);padding:12px;font-family:"Source Serif 4",Georgia,serif;font-size:17px;line-height:1.7;resize:vertical;min-height:min(140px,35dvh);max-height:35dvh}.annotation-editor textarea:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.annotation-label{font-size:12px;color:var(--secondary-text)}.annotation-count{font-size:10px;color:var(--secondary-text);text-align:right}.annotation-colors{display:flex;gap:12px;margin:6px 0}.annotation-color{width:34px;height:34px;border:1px solid var(--note-border);border-radius:50%;background:var(--note-paper)}.annotation-color[aria-pressed=true]{outline:2px solid var(--primary);outline-offset:3px}.annotation-quote{background:var(--note-paper);color:#35372b;border-left:3px solid var(--note-border);margin:0;padding:12px;font-size:12px;line-height:1.8;max-height:160px;overflow:auto}.annotation-position{font-size:11px;color:var(--secondary-text)}.annotation-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:8px}@media (max-width:1000px){.reader-notes{position:absolute;right:0;top:0;bottom:0;width:min(340px,90vw);z-index:35;box-shadow:-8px 0 28px #252a2714}.reader-body{position:relative}.reader-header-actions button{padding-inline:8px}}@media (max-width:640px){.reader-header-actions{width:100%;justify-content:flex-end}.reader-header-actions button{font-size:10px}.refreshed-reader .reader-tabs{flex-wrap:wrap}.refreshed-reader.reader-expanded .reader-header{padding-top:10px}.page-postits{max-height:76px;overflow:auto}.page-postits,.pdf-drawing-hint{padding-inline:12px}}.pdf-page.is-loaded{min-height:0}.pdf-page-image{display:block;width:100%;height:auto}.pdf-page:not(.is-loaded) .pdf-page-image{min-height:500px;opacity:0}.pdf-page-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:#52665a;background:#fbfaf5}.pdf-page-error{min-height:500px;background:var(--reading)}.pdf-page-error a{display:flex;gap:7px;align-items:center}.book-paper{position:relative;width:100%;max-width:780px;min-height:880px;background:var(--reading);padding:55px 65px 70px;color:var(--foreground);display:flex;flex-direction:column}.book-page-kicker{font-family:Geist,Inter,system-ui,sans-serif;font-size:9px;letter-spacing:.11em;text-transform:uppercase;color:var(--secondary-text);padding-bottom:18px;border-bottom:1px solid var(--border);margin-bottom:30px}.book-text{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:inherit;line-height:1.82;overflow-wrap:break-word;letter-spacing:.002em}.book-text p{margin:0 0 1.1em;white-space:normal;text-align:left}.book-text h2,.book-text h3,.book-text h4,.book-text h5,.book-text h6{font-family:inherit;font-weight:600;line-height:1.4;margin:1.45em 0 .7em;letter-spacing:-.018em}.book-text h2{font-size:1.55em}.book-text h3{font-size:1.28em}.book-text h4,.book-text h5,.book-text h6{font-size:1.08em}.book-text>:first-child{margin-top:0}.book-text strong{font-weight:600}.book-text em{font-style:italic}.book-text ol,.book-text ul{padding-left:1.5em;margin:0 0 1.25em}.book-text ul{list-style:disc}.book-text ol{list-style:decimal}.book-text li{padding:.15em 0}.book-text blockquote{border-left:2px solid var(--sage);margin:1.5em 0;padding:.3em 0 .3em 1.1em;color:var(--secondary-text)}.book-text pre{white-space:pre-wrap;font-size:.78em;background:var(--sage-soft);padding:16px;border-radius:5px;margin:1.2em 0}.book-text code{font-family:ui-monospace,monospace;font-size:.85em}.book-text hr{border:0;border-top:1px solid var(--border);margin:1.5em 0}.book-page-number{font-family:"Source Serif 4",Lora,Georgia,serif;margin-top:auto;padding-top:38px;font-size:12px}.book-page-empty,.book-page-number{text-align:center;color:var(--secondary-text)}.book-page-empty{padding:80px 0;display:flex;flex-direction:column;align-items:center;gap:18px;font-size:13px;line-height:1.9}.book-page-empty h2{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:24px;color:var(--foreground)}.translation-page-note{font-size:11px;line-height:1.8;color:var(--secondary-text);border-top:1px solid var(--border);padding-top:15px;margin-top:20px}.reader-comparison{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.reader-comparison .reader-page-column{overflow-x:auto}.reader-comparison .book-paper{padding:35px 30px 50px;min-height:700px}.reader-pagination{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:6px 20px;border-top:1px solid var(--border);background:var(--background)}.reader-pagination label{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--secondary-text)}.reader-pagination input{width:53px;max-width:70px;padding:5px 3px;border:1px solid var(--border);border-radius:4px;background:var(--surface);text-align:center;font-size:11px;color:var(--foreground)}.reader-pagination button{font-size:11px}.refreshed-reader .selection-actions{margin:10px 25px}@media (max-width:1200px){.refreshed-reader.with-chat .reader-comparison{grid-template-columns:1fr;gap:28px}.refreshed-reader.with-chat .book-paper{padding:36px 34px 45px}}@media (max-width:960px){.refreshed-reader .reader-header{padding:8px 16px 0}}@media (max-width:720px){.refreshed-reader .reader-header{padding:7px 12px 0}.refreshed-reader .reader-title h1{font-size:17px}.refreshed-reader .reader-tabs [role=tablist]{gap:14px}.refreshed-reader .reader-controls{padding:7px 12px;gap:6px}.reader-display-tools{gap:8px;width:100%;justify-content:space-between}.reader-display-tools select{font-size:10px;max-width:150px}.reader-stage{padding:8px 8px 16px}.reader-comparison{grid-template-columns:1fr;gap:28px}.book-paper{min-height:650px}.book-paper,.reader-comparison .book-paper{padding:30px 24px 44px}.book-page-kicker{margin-bottom:24px}.reader-pagination{padding:6px 11px;gap:5px}.reader-pagination button{padding-inline:5px;font-size:10px}.reader-pagination label{font-size:10px;gap:5px}.reader-pagination input{width:43px}.pdf-page,.pdf-page-error,.pdf-page:not(.is-loaded) .pdf-page-image{min-height:400px}}@media print{.reader-column-label,.reader-display-tools,.reader-pagination{display:none!important}.reader-stage{height:auto;overflow:visible;padding:0;background:var(--reading)}.book-paper,.original-paper{box-shadow:none;border:0;max-width:none}.refreshed-reader .reader-main{overflow:visible}}.login-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 20px;gap:30px}.login-card{width:100%;max-width:440px;padding:36px;border:1px solid var(--border);border-radius:14px;background:var(--reading);box-shadow:0 8px 35px #252a2705}.login-symbol{color:var(--primary);margin-bottom:24px}.login-card h1{font-family:"Source Serif 4",Lora,Georgia,serif;font-size:32px;line-height:1.3;margin-top:14px}.login-description{color:var(--secondary-text);font-size:13px;line-height:1.8;margin:18px 0 26px}.login-button{width:100%}.login-private{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--secondary-text);font-size:10px;margin-top:20px}@media (max-width:480px){.login-card{padding:26px}}.hover\:bg-\[var\(--primary-hover\)\]:hover{background-color:var(--primary-hover)}.hover\:bg-\[var\(--sage\)\]:hover{background-color:var(--sage)}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-primary:focus-visible{--tw-ring-color:var(--primary)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}@media (prefers-reduced-motion:no-preference){@keyframes spin{to{transform:rotate(1turn)}}.motion-safe\:animate-spin{animation:spin 1s linear infinite}}@media (min-width:640px){.sm\:block{display:block}}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}