@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap";:root.theme-light{--background: 40 20% 97%;--foreground: 224 71% 4%;--card: 40 20% 99%;--card-foreground: 224 71% 4%;--popover: 0 0% 100%;--popover-foreground: 224 71% 4%;--primary: 224 71% 4%;--primary-foreground: 210 20% 98%;--secondary: 40 15% 93%;--secondary-foreground: 224 71% 4%;--muted: 40 15% 93%;--muted-foreground: 220 9% 46%;--accent: 40 15% 90%;--accent-foreground: 224 71% 4%;--border: 40 12% 88%;--input: 40 12% 88%;--ring: 224 71% 4%;--info-bg: 204 100% 97%;--info-fg: 221 83% 40%;--highlight-yellow: #FFE49C;--highlight-yellow-active: #FFD700;--highlight-coral: #FFB6A3;--highlight-coral-active: #FF7F50;--highlight-mint: #A8E6CF;--highlight-mint-active: #00FA9A;--highlight-sky: #A8D8EA;--highlight-sky-active: #1E90FF;--highlight-lavender: #E6B3FF;--highlight-lavender-active: #BF40BF;--highlight-rose: #FFC4C4;--highlight-rose-active: #FF69B4;--highlight-apricot: #FFD4A3;--highlight-apricot-active: #FF8C00;--highlight-cyan: #9FF9FF;--highlight-cyan-active: #00CED1;--highlight-text: #000000}:root.theme-dark{--background: 224 71% 4%;--foreground: 210 20% 98%;--card: 224 71% 4%;--card-foreground: 210 20% 98%;--popover: 224 71% 4%;--popover-foreground: 210 20% 98%;--primary: 210 20% 98%;--primary-foreground: 224 71% 4%;--secondary: 215 25% 27%;--secondary-foreground: 210 20% 98%;--muted: 215 25% 27%;--muted-foreground: 217.9 10.6% 64.9%;--accent: 215 25% 27%;--accent-foreground: 210 20% 98%;--border: 215 25% 27%;--input: 215 25% 27%;--ring: 216 34% 17%;--info-bg: 221 83% 15%;--info-fg: 210 100% 80%;--highlight-yellow: rgba(255, 228, 156, .4);--highlight-yellow-active: rgba(255, 215, 0, .6);--highlight-coral: rgba(255, 182, 163, .4);--highlight-coral-active: rgba(255, 127, 80, .6);--highlight-mint: rgba(168, 230, 207, .4);--highlight-mint-active: rgba(0, 250, 154, .6);--highlight-sky: rgba(168, 216, 234, .4);--highlight-sky-active: rgba(30, 144, 255, .6);--highlight-lavender: rgba(230, 179, 255, .4);--highlight-lavender-active: rgba(191, 64, 191, .6);--highlight-rose: rgba(255, 196, 196, .4);--highlight-rose-active: rgba(255, 105, 180, .6);--highlight-apricot: rgba(255, 212, 163, .4);--highlight-apricot-active: rgba(255, 140, 0, .6);--highlight-cyan: rgba(159, 249, 255, .4);--highlight-cyan-active: rgba(0, 206, 209, .6);--highlight-text: #ffffff}:root.theme-sepia{--background: 36 33% 86%;--foreground: 25 24% 17%;--card: 36 33% 86%;--card-foreground: 25 24% 17%;--popover: 36 33% 86%;--popover-foreground: 25 24% 17%;--primary: 25 24% 17%;--primary-foreground: 36 33% 86%;--secondary: 36 25% 76%;--secondary-foreground: 25 24% 17%;--muted: 36 25% 76%;--muted-foreground: 25 10% 45%;--accent: 36 25% 76%;--accent-foreground: 25 24% 17%;--border: 36 20% 70%;--input: 36 20% 70%;--ring: 25 24% 17%;--info-bg: 36 25% 82%;--info-fg: 25 24% 30%;--highlight-yellow: rgba(255, 228, 156, .6);--highlight-yellow-active: rgba(255, 215, 0, .8);--highlight-coral: rgba(255, 182, 163, .6);--highlight-coral-active: rgba(255, 127, 80, .8);--highlight-mint: rgba(168, 230, 207, .6);--highlight-mint-active: rgba(0, 250, 154, .8);--highlight-sky: rgba(168, 216, 234, .6);--highlight-sky-active: rgba(30, 144, 255, .8);--highlight-lavender: rgba(230, 179, 255, .6);--highlight-lavender-active: rgba(191, 64, 191, .8);--highlight-rose: rgba(255, 196, 196, .6);--highlight-rose-active: rgba(255, 105, 180, .8);--highlight-apricot: rgba(255, 212, 163, .6);--highlight-apricot-active: rgba(255, 140, 0, .8);--highlight-cyan: rgba(159, 249, 255, .6);--highlight-cyan-active: rgba(0, 206, 209, .8);--highlight-text: #000000}:root.theme-slate{--background: 210 40% 98%;--foreground: 215 25% 27%;--card: 210 40% 98%;--card-foreground: 215 25% 27%;--popover: 210 40% 98%;--popover-foreground: 215 25% 27%;--primary: 215 25% 27%;--primary-foreground: 210 40% 98%;--secondary: 214 32% 91%;--secondary-foreground: 215 25% 27%;--muted: 214 32% 91%;--muted-foreground: 215 16% 47%;--accent: 214 32% 91%;--accent-foreground: 215 25% 27%;--border: 214 32% 85%;--input: 214 32% 85%;--ring: 215 25% 27%;--info-bg: 214 32% 93%;--info-fg: 215 25% 40%;--highlight-yellow: #FFE49C;--highlight-yellow-active: #FFD700;--highlight-coral: #FFB6A3;--highlight-coral-active: #FF7F50;--highlight-mint: #A8E6CF;--highlight-mint-active: #00FA9A;--highlight-sky: #A8D8EA;--highlight-sky-active: #1E90FF;--highlight-lavender: #E6B3FF;--highlight-lavender-active: #BF40BF;--highlight-rose: #FFC4C4;--highlight-rose-active: #FF69B4;--highlight-apricot: #FFD4A3;--highlight-apricot-active: #FF8C00;--highlight-cyan: #9FF9FF;--highlight-cyan-active: #00CED1;--highlight-text: #000000}*,:before,:after{--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 / .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 / .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: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{--tw-border-opacity: 1;border-color:hsl(var(--border) / var(--tw-border-opacity, 1))}body{--tw-bg-opacity: 1;background-color:hsl(var(--background) / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:SF Pro Text,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-full{top:100%}.z-50{z-index:50}.mt-2{margin-top:.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-border{--tw-border-opacity: 1;border-color:hsl(var(--border) / var(--tw-border-opacity, 1))}.\!bg-accent{--tw-bg-opacity: 1 !important;background-color:hsl(var(--accent) / var(--tw-bg-opacity, 1))!important}.bg-accent{--tw-bg-opacity: 1;background-color:hsl(var(--accent) / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:hsl(var(--background) / var(--tw-bg-opacity, 1))}.bg-card{--tw-bg-opacity: 1;background-color:hsl(var(--card) / var(--tw-bg-opacity, 1))}.bg-foreground{--tw-bg-opacity: 1;background-color:hsl(var(--foreground) / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-8{padding:2rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.\!text-foreground{--tw-text-opacity: 1 !important;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))!important}.text-accent-foreground{--tw-text-opacity: 1;color:hsl(var(--accent-foreground) / var(--tw-text-opacity, 1))}.text-background{--tw-text-opacity: 1;color:hsl(var(--background) / var(--tw-text-opacity, 1))}.text-foreground{--tw-text-opacity: 1;color:hsl(var(--foreground) / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-muted-foreground{--tw-text-opacity: 1;color:hsl(var(--muted-foreground) / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.invert{--tw-invert: invert(100%);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)}.sepia{--tw-sepia: sepia(100%);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)}.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{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.library-root{min-height:100vh;background:hsl(var(--background));color:hsl(var(--foreground))}.library-navbar{display:flex;align-items:center;justify-content:space-between;padding:0 2rem;height:52px;border-bottom:1px solid hsl(var(--border));background:hsl(var(--card));position:sticky;top:0;z-index:10}.library-logo{font-size:1.05rem;font-weight:700;letter-spacing:-.02em;color:hsl(var(--foreground))}.library-nav-actions{display:flex;align-items:center;gap:.5rem}.library-nav-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .75rem;border-radius:6px;font-size:.8125rem;font-weight:500;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--foreground));cursor:pointer;transition:background .15s,opacity .15s}.library-nav-btn:hover:not(:disabled){background:hsl(var(--accent))}.library-nav-btn:disabled{opacity:.5;cursor:not-allowed}.library-nav-btn--ghost{border-color:transparent;background:transparent;color:hsl(var(--muted-foreground))}.library-nav-btn--ghost:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.library-main{max-width:1100px;margin:0 auto;padding:2.5rem 2rem 4rem}.library-section-header{display:flex;align-items:baseline;gap:1rem;margin-bottom:1.75rem}.library-section-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em}.library-user-label{font-size:.8125rem;color:hsl(var(--muted-foreground))}.library-loading{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:5rem 0;color:hsl(var(--muted-foreground));font-size:.9rem}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:1.5rem 1.25rem}@media(min-width:640px){.library-grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.book-card{display:flex;flex-direction:column;gap:.6rem;background:none;border:none;padding:0;cursor:pointer;text-align:left;width:100%}.book-card:hover .book-cover{transform:translateY(-3px);box-shadow:0 10px 28px #0000002e}.book-cover{width:100%;aspect-ratio:2/3;border-radius:4px 8px 8px 4px;display:flex;align-items:center;justify-content:center;box-shadow:-3px 3px #00000040,0 4px 16px #0000001f;transition:transform .2s ease,box-shadow .2s ease;position:relative;overflow:hidden}.book-cover:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:#0003;border-radius:4px 0 0 4px}.book-cover-initials{font-size:1.5rem;font-weight:700;color:#ffffffd9;letter-spacing:.05em;text-shadow:0 1px 4px rgba(0,0,0,.3);-webkit-user-select:none;-moz-user-select:none;user-select:none}.book-cover-img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block;border-radius:inherit}.book-progress-bar{margin-top:.4rem;height:3px;border-radius:2px;background:hsl(var(--border));overflow:hidden}.book-progress-fill{height:100%;border-radius:2px;background:hsl(var(--foreground));transition:width .3s ease}.book-card-meta{padding:0 2px}.book-card-title{font-size:.8125rem;font-weight:600;line-height:1.35;color:hsl(var(--foreground));display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-card-author{font-size:.75rem;color:hsl(var(--muted-foreground));margin-top:.15rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.book-card--add{background:none;border:none;padding:0;cursor:pointer;text-align:left}.book-card--add .book-cover{background:transparent!important;border:2px dashed hsl(var(--border));box-shadow:none}.book-card--add .book-cover:before{display:none}.book-card--add:hover .book-cover{border-color:hsl(var(--muted-foreground));transform:none;box-shadow:none}.book-card--add:disabled{opacity:.5;cursor:not-allowed}.book-card-add-inner{display:flex;flex-direction:column;align-items:center;gap:.5rem;color:hsl(var(--muted-foreground));font-size:.75rem;font-weight:500}.book-card-wrapper{position:relative;width:100%}.book-card-wrapper:hover .book-delete-btn{opacity:1}.book-delete-btn{position:absolute;top:.35rem;right:.35rem;opacity:0;display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;border-radius:50%;border:none;background:#0000008c;color:#fff;cursor:pointer;transition:opacity .15s,background .15s}.book-delete-btn:hover{background:#c0392b}.modal-backdrop{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal-box{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:12px;padding:1.75rem;width:100%;max-width:420px;box-shadow:0 20px 60px #0003}.modal-title{font-size:1.1rem;font-weight:700;margin-bottom:.75rem;color:hsl(var(--foreground))}.modal-body{font-size:.875rem;color:hsl(var(--muted-foreground));line-height:1.5;margin-bottom:1rem}.modal-prompt{font-size:.875rem;color:hsl(var(--foreground));margin-bottom:.5rem}.modal-input{width:100%;padding:.5rem .75rem;border:1px solid hsl(var(--border));border-radius:6px;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.875rem;font-family:monospace;outline:none;margin-bottom:1.25rem}.modal-input:focus{border-color:hsl(var(--ring))}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem}.modal-btn{padding:.45rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;border:1px solid hsl(var(--border));transition:background .15s,opacity .15s}.modal-btn--cancel{background:hsl(var(--card));color:hsl(var(--foreground))}.modal-btn--cancel:hover{background:hsl(var(--accent))}.modal-btn--danger{background:#c0392b;color:#fff;border-color:#c0392b}.modal-btn--danger:hover:not(:disabled){background:#a93226}.modal-btn--danger:disabled{opacity:.4;cursor:not-allowed}.notebook-root{min-height:100vh;background:hsl(var(--background));color:hsl(var(--foreground))}.notebook-header-label{font-size:.85rem;font-weight:500;color:hsl(var(--muted-foreground));margin-left:auto;padding-right:.5rem}.notebook-main{max-width:720px;margin:0 auto;padding:2rem 1.5rem 4rem}.notebook-empty{text-align:center;padding:4rem 0;color:hsl(var(--muted-foreground))}.notebook-empty .notebook-empty-sub{margin-top:.5rem;font-size:.875rem}.notebook-book-section{margin-bottom:.25rem}.notebook-book-header{display:flex;align-items:center;gap:.5rem;width:100%;background:none;border:none;border-bottom:1px solid hsl(var(--border));padding:.75rem 0;cursor:pointer;text-align:left;color:hsl(var(--foreground))}.notebook-book-header:hover .notebook-book-name{color:hsl(var(--primary))}.notebook-book-chevron{flex-shrink:0;color:hsl(var(--muted-foreground))}.notebook-book-name{font-size:1rem;font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notebook-book-meta{font-size:.75rem;color:hsl(var(--muted-foreground));white-space:nowrap;flex-shrink:0}.notebook-loading{padding:1rem 0;font-size:.875rem;color:hsl(var(--muted-foreground))}.notebook-highlights{padding:.75rem 0 1rem 1.5rem;display:flex;flex-direction:column;gap:.75rem}.notebook-highlight-card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:.5rem;padding:.875rem 1rem}.notebook-highlight-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.notebook-color-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0}.notebook-chapter-label{font-size:.75rem;color:hsl(var(--muted-foreground))}.notebook-open-link{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;border-radius:9999px;color:hsl(var(--muted-foreground));transition:background-color .15s ease,color .15s ease}.notebook-open-link:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.notebook-highlight-text{margin:0;padding-left:.75rem;border-left:3px solid hsl(var(--border));font-size:.9rem;line-height:1.6;color:hsl(var(--foreground))}.notebook-highlight-excerpt{font-style:italic}.notebook-highlight-selected{font-style:normal;font-weight:700}.notebook-highlight-separator{color:hsl(var(--muted-foreground))}.notebook-notes-button{margin-left:.25rem;display:inline-flex;align-items:center;gap:.4rem;border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--muted-foreground));border-radius:9999px;padding:.35rem .65rem;font-size:.75rem;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.notebook-notes-button:hover{color:hsl(var(--foreground));border-color:hsl(var(--foreground)/.15);background:hsl(var(--accent))}.notebook-notes-modal{position:fixed;inset:0;z-index:220;display:flex;align-items:center;justify-content:center}.notebook-notes-modal-overlay{position:absolute;inset:0;background:#0000007a}.notebook-notes-modal-content{position:relative;width:min(760px,100vw - 2rem);max-height:min(82vh,920px);background:hsl(var(--background));border-radius:.75rem;box-shadow:0 18px 48px #00000038;border:1px solid hsl(var(--border));display:flex;flex-direction:column;overflow:hidden}.notebook-notes-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid hsl(var(--border))}.notebook-notes-modal-header h3{margin:0;font-size:1.05rem;font-weight:700;color:hsl(var(--foreground))}.notebook-notes-modal-header p{margin:.25rem 0 0;font-size:.8rem;color:hsl(var(--muted-foreground))}.notebook-notes-modal-close{border:none;background:transparent;color:hsl(var(--muted-foreground));width:2rem;height:2rem;border-radius:.35rem;font-size:1.5rem;line-height:1;cursor:pointer}.notebook-notes-modal-close:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.notebook-notes-modal-body{overflow:auto;padding:1rem}.notebook-notes-loading{padding:2rem 1rem;text-align:center;color:hsl(var(--muted-foreground))}.notebook-notes-modal .notes-list{display:flex;flex-direction:column;gap:1rem}.notebook-notes-modal .notes-empty{text-align:center;padding:2rem 1rem;color:hsl(var(--muted-foreground));font-size:.875rem}.notebook-notes-modal .note-item{background-color:hsl(var(--muted));border-radius:.5rem;padding:1rem;border:1px solid hsl(var(--border))}.notebook-notes-modal .note-item.note-llm{background-color:hsl(var(--info-bg));border-color:hsl(var(--info-fg)/.3)}.notebook-notes-modal .note-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.notebook-notes-modal .note-badge{font-size:.75rem;font-weight:600;padding:.25rem .5rem;border-radius:.25rem;background-color:hsl(var(--border));color:hsl(var(--muted-foreground))}.notebook-notes-modal .note-item.note-llm .note-badge{background-color:#3b82f6;color:#fff}.notebook-notes-modal .note-date{font-size:.75rem;color:hsl(var(--muted-foreground))}.notebook-notes-modal .note-content{font-size:.875rem;line-height:1.6;color:hsl(var(--foreground))}.notebook-notes-modal .note-item.note-llm .note-content,.notebook-notes-modal .note-replying-to,.notebook-notes-modal .note-item.note-llm .note-replying-to{color:hsl(var(--info-fg))}.notebook-notes-modal .note-content p{margin:.5em 0}.notebook-notes-modal .note-content h1,.notebook-notes-modal .note-content h2,.notebook-notes-modal .note-content h3,.notebook-notes-modal .note-content h4,.notebook-notes-modal .note-content h5,.notebook-notes-modal .note-content h6{margin:1em 0 .5em}.notebook-notes-modal .note-content ul,.notebook-notes-modal .note-content ol{margin:.5em 0;padding-left:1.5em}.notebook-notes-modal .note-content code{background:hsl(var(--accent));padding:.2em .4em;border-radius:.25rem;font-size:.85em}.notebook-notes-modal .note-content pre{background:hsl(var(--accent));padding:.75em;border-radius:.375rem;overflow-x:auto}.notebook-notes-modal .note-content pre code{background:none;padding:0}.notebook-notes-modal .note-content blockquote{border-left:3px solid hsl(var(--border));padding-left:1em;margin:.5em 0;color:hsl(var(--muted-foreground))}.notebook-notes-modal .note-replying-to{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;margin:.5rem 0;background-color:hsl(var(--info-bg));border-left:3px solid #3b82f6;border-radius:.25rem;font-size:.8rem}.notebook-notes-modal .replying-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hover\:bg-muted:hover{--tw-bg-opacity: 1;background-color:hsl(var(--muted) / var(--tw-bg-opacity, 1))}.hover\:opacity-90:hover{opacity:.9}.disabled\:opacity-50:disabled{opacity:.5}.book-reader{--reader-scrollbar-thumb: hsl(var(--muted-foreground) / .32);--reader-scrollbar-thumb-hover: hsl(var(--foreground) / .42);position:fixed;inset:0;z-index:50;background-color:hsl(var(--background));display:flex;flex-direction:column;height:100vh}.book-reader .book-reader-header{display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 1rem;background-color:hsl(var(--card));border-bottom:1px solid hsl(var(--border));z-index:60;flex-shrink:0}.book-reader .book-reader-header .icon-button{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:6px;border:none;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;transition:background .15s}.book-reader .book-reader-header .icon-button:hover{background-color:hsl(var(--accent));color:hsl(var(--foreground))}.book-reader .book-reader-header .icon-button:active{background-color:hsl(var(--muted))}.book-reader .book-reader-header .icon-button:disabled{opacity:.3;cursor:not-allowed}.book-reader .book-reader-header .icon-button .lucide-icon{width:1rem;height:1rem}.book-reader .book-reader-header .header-left{flex:1;display:flex;align-items:center;gap:.75rem;min-width:0}.book-reader .book-reader-header .header-left .book-title-container{min-width:0}.book-reader .book-reader-header .header-left .book-title-container .book-title{font-size:.9375rem;font-weight:600;color:hsl(var(--foreground));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-reader .book-reader-header .header-center{display:flex;align-items:center;justify-content:center;padding:0 1rem}.book-reader .book-reader-header .header-center .navigation-group{display:flex;align-items:center;gap:.25rem;padding:.2rem}.book-reader .book-reader-header .header-center .navigation-group .chapter-nav .chapter-select{background:transparent;border:none;font-size:.8125rem;font-weight:600;color:hsl(var(--foreground));padding:0 .5rem;height:1.85rem;min-width:6rem;max-width:14rem;cursor:pointer;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none}.book-reader .book-reader-header .header-center .navigation-group .chapter-nav .chapter-select:focus{outline:none}.book-reader .book-reader-header .header-right{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.book-reader .book-reader-header .header-right .appearance-group{display:flex;align-items:center;gap:.5rem}.book-reader .book-reader-header .header-right .appearance-group .font-size-controls{display:flex;align-items:center;gap:.25rem}.book-reader .book-reader-header .header-right .appearance-group .font-size-label{font-size:.8125rem;font-weight:600;color:hsl(var(--muted-foreground));min-width:1.75rem;text-align:center}.book-reader .book-reader-header .header-right .highlights-menu-button{width:auto;padding:0 .75rem;color:hsl(var(--foreground))}.book-reader .book-reader-header .header-right .highlights-menu-button .lucide-icon{color:#f59e0b}.book-reader .book-reader-header .header-right .highlights-menu-button .highlights-count{font-size:.8125rem;font-weight:700}.book-reader .chapter-edge-button{display:flex;flex-direction:column;gap:.4rem;min-width:0;width:100%;max-width:40em;margin:0 auto;padding:2rem 1.5rem;border:none;border-radius:.75rem;background-color:transparent;color:hsl(var(--foreground));box-shadow:none;cursor:pointer;transition:background-color .2s ease}.book-reader .chapter-edge-button:hover{background-color:hsl(var(--muted)/.6)}.book-reader .chapter-edge-button:focus-visible{outline:none;background-color:hsl(var(--muted))}.book-reader .chapter-edge-button:disabled,.book-reader .chapter-edge-button[hidden]{display:none}.book-reader .chapter-edge-kicker{font-size:.75rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:hsl(var(--muted-foreground));display:flex;align-items:center;gap:.5rem}.book-reader .chapter-edge-title{font-size:1.125rem;font-weight:600;line-height:1.4;color:hsl(var(--foreground))}.book-reader .chapter-edge-button-prev{align-items:flex-start;text-align:left;margin-bottom:1rem}.book-reader .chapter-edge-button-prev .chapter-edge-kicker:before{content:"←";font-size:1.1rem}.book-reader .chapter-edge-button-next{align-items:flex-end;text-align:right;margin-top:3rem;border-top:1px solid hsl(var(--border));border-radius:0;padding-top:3rem}.book-reader .chapter-edge-button-next .chapter-edge-kicker:after{content:"→";font-size:1.1rem}.book-reader .book-reader-content{scrollbar-width:thin;scrollbar-color:var(--reader-scrollbar-thumb) transparent;scrollbar-gutter:stable}.book-reader .book-reader-content::-webkit-scrollbar{width:14px;height:14px}.book-reader .book-reader-content::-webkit-scrollbar-track{background:transparent}.book-reader .book-reader-content::-webkit-scrollbar-thumb{background-color:var(--reader-scrollbar-thumb);border:4px solid transparent;border-radius:999px;background-clip:content-box;min-height:48px}.book-reader .book-reader-content::-webkit-scrollbar-thumb:hover{background-color:var(--reader-scrollbar-thumb-hover)}.book-reader .book-reader-content{flex:1;min-height:0;display:flex;flex-direction:column;gap:1.75rem;overflow-y:auto;padding:2rem;background-color:hsl(var(--background))}.book-reader .book-reader-content .book-reader-chapter{min-width:0}.book-reader .book-reader-content :global(p){margin:1em 0;line-height:1.8;text-align:justify}.book-reader .book-reader-content :global(h1),.book-reader .book-reader-content :global(h2),.book-reader .book-reader-content :global(h3),.book-reader .book-reader-content :global(h4),.book-reader .book-reader-content :global(h5),.book-reader .book-reader-content :global(h6){margin:1.5em 0 .5em;font-weight:600;line-height:1.3}.book-reader .book-reader-content :global(h1){font-size:2em}.book-reader .book-reader-content :global(h2){font-size:1.5em}.book-reader .book-reader-content :global(h3){font-size:1.25em}.book-reader .book-reader-content :global(h4){font-size:1.1em}.book-reader .book-reader-content :global(h5){font-size:1em}.book-reader .book-reader-content :global(h6){font-size:.9em}.book-reader .book-reader-content :global(ul),.book-reader .book-reader-content :global(ol){margin:1em 0;padding-left:2em}.book-reader .book-reader-content :global(li){margin:.5em 0;line-height:1.6}.book-reader .book-reader-content :global(img){max-width:100%;height:auto;display:block;margin:1em auto}.book-reader .book-reader-content :global(blockquote){margin:1.5em 0;padding:1em 1.5em;border-left:4px solid hsl(var(--border));background-color:hsl(var(--muted));font-style:italic}.book-reader .book-reader-content :global(code){padding:.2em .4em;background-color:hsl(var(--muted));border-radius:.25rem;font-family:monospace;font-size:.9em}.book-reader .book-reader-content :global(pre){margin:1em 0;padding:1em;background-color:hsl(var(--muted));border-radius:.375rem;overflow-x:auto}.book-reader .book-reader-content :global(pre) :global(code){padding:0;background:none}.book-reader .book-reader-content :global(a){color:var(--primary);text-decoration:underline;transition:opacity .2s}.book-reader .book-reader-content :global(a):hover{opacity:.8}.book-reader .book-reader-content :global(table){width:100%;margin:1em 0;border-collapse:collapse}.book-reader .book-reader-content :global(table) :global(th),.book-reader .book-reader-content :global(table) :global(td){padding:.5em;border:1px solid hsl(var(--border));text-align:left}.book-reader .book-reader-content :global(table) :global(th){background-color:hsl(var(--muted));font-weight:600}.book-reader .book-reader-content :global(hr){margin:2em 0;border:none;border-top:1px solid hsl(var(--border))}.book-reader .book-reader-content .book-reader-chapter :global(>*:first-child){margin-top:0}.book-reader .book-reader-content .book-reader-chapter :global(>*:last-child){margin-bottom:0}.book-reader .highlight-popover{position:absolute;background-color:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:.5rem;box-shadow:0 4px 16px #0003,0 2px 4px #0000001a;padding:.25rem;z-index:100;display:flex;gap:.25rem;align-items:center}.book-reader .highlight-popover .color-button{position:relative;padding:.5rem;background:transparent;border:none;cursor:pointer;border-radius:.375rem;transition:background-color .2s;display:flex;align-items:center;justify-content:center}.book-reader .highlight-popover .color-button:hover{background-color:hsl(var(--accent))}.book-reader .highlight-popover .color-button:active{background-color:hsl(var(--border))}.book-reader .highlight-popover .color-button .color-dot{width:16px;height:16px;border-radius:50%;background-color:hsl(var(--primary));border:1px solid rgba(0,0,0,.2);box-shadow:inset 0 0 0 1px #ffffff80}.book-reader .highlight-popover .color-picker{position:absolute;top:100%;left:.25rem;margin-top:.25rem;background-color:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:.5rem;box-shadow:0 4px 16px #00000026;padding:.5rem;display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;z-index:101}.book-reader .highlight-popover .color-picker .color-option{width:28px;height:28px;border-radius:50%;cursor:pointer;border:1px solid rgba(0,0,0,.1);box-shadow:inset 0 0 0 1px #ffffff80;transition:transform .15s,box-shadow .15s}.book-reader .highlight-popover .color-picker .color-option:hover{transform:scale(1.15);box-shadow:inset 0 0 0 1px #ffffff80,0 2px 8px #0003}.book-reader .highlight-popover .color-picker .color-option:active{transform:scale(.95)}.book-reader .highlight-popover>button:not(.color-button){padding:.5rem .75rem;font-size:.875rem;font-weight:500;border-radius:.375rem;border:none;background:transparent;color:hsl(var(--foreground));cursor:pointer;transition:background-color .2s;white-space:nowrap;display:flex;align-items:center;gap:.375rem}.book-reader .highlight-popover>button:not(.color-button):hover{background-color:hsl(var(--accent))}.book-reader .highlight-popover>button:not(.color-button):active{background-color:hsl(var(--border))}.book-reader .highlight-popover>button:not(.color-button) .notes-badge{background-color:#3b82f6;color:#fff;font-size:.75rem;font-weight:600;min-width:18px;height:18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;padding:0 .25rem}.book-reader .selection-popover{flex-wrap:wrap;max-width:calc(100vw - 24px)}.book-reader .selection-popover>button{justify-content:center}.book-reader .multi-highlight-bar{position:fixed;left:50%;bottom:calc(1rem + env(safe-area-inset-bottom,0px));transform:translate(-50%);z-index:150;display:flex;align-items:center;gap:.75rem;width:min(560px,100vw - 24px);padding:.75rem 1rem;border:1px solid hsl(var(--border));border-radius:.75rem;background-color:hsl(var(--background));box-shadow:0 12px 32px #0000002e}.book-reader .multi-highlight-bar .multi-highlight-status{flex:1;font-size:.875rem;font-weight:500;color:hsl(var(--foreground))}.book-reader .multi-highlight-bar .multi-highlight-actions{display:flex;gap:.5rem}.book-reader .multi-highlight-bar .multi-highlight-actions button{padding:.5rem .85rem;border:none;border-radius:.5rem;background:hsl(var(--accent));color:hsl(var(--accent-foreground));cursor:pointer;font-size:.875rem;font-weight:600;transition:background-color .2s}.book-reader .multi-highlight-bar .multi-highlight-actions button:hover{background:hsl(var(--border))}@media(max-width:640px){.book-reader .multi-highlight-bar{flex-direction:column;align-items:stretch}.book-reader .multi-highlight-bar .multi-highlight-actions{width:100%}.book-reader .multi-highlight-bar .multi-highlight-actions button{flex:1}}.book-reader .notes-modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center}.book-reader .notes-modal .notes-modal-overlay{position:absolute;inset:0;background-color:#00000080}.book-reader .notes-modal .notes-modal-content{position:relative;background-color:hsl(var(--background));border-radius:.5rem;box-shadow:0 10px 40px #0000004d;max-width:600px;width:90%;max-height:80vh;display:flex;flex-direction:column}.book-reader .notes-modal .notes-modal-content .notes-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid hsl(var(--border))}.book-reader .notes-modal .notes-modal-content .notes-modal-header h3{margin:0;font-size:1.125rem;font-weight:600;color:hsl(var(--foreground))}.book-reader .notes-modal .notes-modal-content .notes-modal-header .notes-modal-close{background:none;border:none;font-size:1.5rem;line-height:1;color:hsl(var(--muted-foreground));cursor:pointer;padding:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;border-radius:.25rem;transition:background-color .2s,color .2s}.book-reader .notes-modal .notes-modal-content .notes-modal-header .notes-modal-close:hover{background-color:hsl(var(--border));color:hsl(var(--foreground))}.book-reader .notes-modal .notes-modal-content .notes-modal-header .notes-modal-close:disabled{opacity:.45;cursor:wait}.book-reader .notes-modal .notes-modal-content .notes-modal-body{flex:1;display:flex;flex-direction:column;overflow:hidden}.book-reader .notes-modal .notes-modal-content .notes-list{scrollbar-width:thin;scrollbar-color:var(--reader-scrollbar-thumb) transparent;scrollbar-gutter:stable}.book-reader .notes-modal .notes-modal-content .notes-list::-webkit-scrollbar{width:14px;height:14px}.book-reader .notes-modal .notes-modal-content .notes-list::-webkit-scrollbar-track{background:transparent}.book-reader .notes-modal .notes-modal-content .notes-list::-webkit-scrollbar-thumb{background-color:var(--reader-scrollbar-thumb);border:4px solid transparent;border-radius:999px;background-clip:content-box;min-height:48px}.book-reader .notes-modal .notes-modal-content .notes-list::-webkit-scrollbar-thumb:hover{background-color:var(--reader-scrollbar-thumb-hover)}.book-reader .notes-modal .notes-modal-content .notes-list{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.book-reader .notes-modal .notes-modal-content .notes-empty{text-align:center;padding:2rem 1rem;color:hsl(var(--muted-foreground));font-size:.875rem}.book-reader .notes-modal .notes-modal-content .note-item{background-color:hsl(var(--muted));border-radius:.5rem;padding:1rem;border:1px solid hsl(var(--border))}.book-reader .notes-modal .notes-modal-content .note-item.note-llm{background-color:hsl(var(--info-bg));border-color:hsl(var(--info-fg)/.3)}.book-reader .notes-modal .notes-modal-content .note-item.note-llm .note-content{color:hsl(var(--info-fg))}.book-reader .notes-modal .notes-modal-content .note-item .note-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.book-reader .notes-modal .notes-modal-content .note-item .note-badge{font-size:.75rem;font-weight:600;padding:.25rem .5rem;border-radius:.25rem;background-color:hsl(var(--border));color:hsl(var(--muted-foreground))}.book-reader .notes-modal .notes-modal-content .note-item.note-llm .note-badge{background-color:#3b82f6;color:#fff}.book-reader .notes-modal .notes-modal-content .note-item .note-date{font-size:.75rem;color:hsl(var(--muted-foreground))}.book-reader .notes-modal .notes-modal-content .note-item .note-content{font-size:.875rem;line-height:1.6;color:hsl(var(--foreground))}.book-reader .notes-modal .notes-modal-content .note-item .note-content p{margin:.5em 0}.book-reader .notes-modal .notes-modal-content .note-item .note-content h1,.book-reader .notes-modal .notes-modal-content .note-item .note-content h2,.book-reader .notes-modal .notes-modal-content .note-item .note-content h3,.book-reader .notes-modal .notes-modal-content .note-item .note-content h4,.book-reader .notes-modal .notes-modal-content .note-item .note-content h5,.book-reader .notes-modal .notes-modal-content .note-item .note-content h6{margin:1em 0 .5em}.book-reader .notes-modal .notes-modal-content .note-item .note-content ul,.book-reader .notes-modal .notes-modal-content .note-item .note-content ol{margin:.5em 0;padding-left:1.5em}.book-reader .notes-modal .notes-modal-content .note-item .note-content code{background:hsl(var(--accent));padding:.2em .4em;border-radius:.25rem;font-size:.85em}.book-reader .notes-modal .notes-modal-content .note-item .note-content pre{background:hsl(var(--accent));padding:.75em;border-radius:.375rem;overflow-x:auto}.book-reader .notes-modal .notes-modal-content .note-item .note-content pre code{background:none;padding:0}.book-reader .notes-modal .notes-modal-content .note-item .note-content blockquote{border-left:3px solid hsl(var(--border));padding-left:1em;margin:.5em 0;color:hsl(var(--muted-foreground))}.book-reader .notes-modal .notes-modal-content .note-item .note-actions{display:flex;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid hsl(var(--border))}.book-reader .notes-modal .notes-modal-content .note-item .note-actions button{padding:.25rem .75rem;font-size:.75rem;font-weight:500;border-radius:.25rem;border:none;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;transition:background-color .2s,color .2s}.book-reader .notes-modal .notes-modal-content .note-item .note-actions button:hover{background-color:hsl(var(--border));color:hsl(var(--foreground))}.book-reader .notes-modal .notes-modal-content .note-item .note-actions button:disabled{opacity:.45;cursor:wait}.book-reader .notes-modal .notes-modal-content .note-item .note-actions .note-delete-button:hover{background-color:#fee;color:#dc2626}.book-reader .notes-modal .notes-modal-content .note-item .note-actions .note-continue-button{background-color:hsl(var(--primary))!important;color:hsl(var(--primary-foreground))!important}.book-reader .notes-modal .notes-modal-content .note-item .note-actions .note-continue-button:hover{background-color:hsl(var(--primary)/.9)!important}.book-reader .notes-modal .notes-modal-content .note-replying-to{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;margin:.5rem 0;background-color:hsl(var(--info-bg));border-left:3px solid #3b82f6;border-radius:.25rem;font-size:.8rem;color:hsl(var(--info-fg))}.book-reader .notes-modal .notes-modal-content .note-replying-to .replying-icon{font-size:1rem;opacity:.7}.book-reader .notes-modal .notes-modal-content .note-replying-to .replying-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-reader .notes-modal .notes-modal-content .note-input-container{border-top:1px solid hsl(var(--border));padding:1rem;background-color:hsl(var(--muted));position:relative}.book-reader .notes-modal .notes-modal-content .note-input-container .replying-indicator{display:none;align-items:center;padding:.5rem .75rem;margin-bottom:.75rem;background-color:hsl(var(--info-bg));border-left:3px solid #3b82f6;border-radius:.25rem;font-size:.8rem}.book-reader .notes-modal .notes-modal-content .note-input-container .replying-indicator .replying-content{display:flex;align-items:center;gap:.5rem;width:100%}.book-reader .notes-modal .notes-modal-content .note-input-container .replying-indicator .replying-label{font-weight:600;color:hsl(var(--info-fg));white-space:nowrap}.book-reader .notes-modal .notes-modal-content .note-input-container .replying-indicator .replying-summary{flex:1;color:hsl(var(--info-fg));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-reader .notes-modal .notes-modal-content .note-input-container .replying-indicator .replying-cancel{background:none;border:none;font-size:1.5rem;line-height:1;color:hsl(var(--muted-foreground));cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:.25rem;transition:background-color .2s,color .2s}.book-reader .notes-modal .notes-modal-content .note-input-container .replying-indicator .replying-cancel:hover{background-color:hsl(var(--border));color:hsl(var(--foreground))}.book-reader .notes-modal .notes-modal-content .note-input-container .replying-indicator .replying-cancel:disabled{opacity:.45;cursor:wait}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-caption{margin-bottom:.5rem;font-size:.8rem;font-weight:500;color:hsl(var(--muted-foreground))}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input{width:100%}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input .ProseMirror{min-height:96px;font-size:.875rem;font-family:inherit;background-color:hsl(var(--background));transition:border-color .2s,box-shadow .2s}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input .ProseMirror:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input .ProseMirror[contenteditable=false]{opacity:.65;cursor:wait}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-actions{display:flex;align-items:center;gap:.5rem;margin-top:.5rem;justify-content:flex-end}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-actions .note-submit-status{margin-right:auto;font-size:.75rem;font-weight:600;color:#3b82f6;min-height:1rem}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-actions button{padding:.5rem 1rem;font-size:.875rem;font-weight:500;border-radius:.375rem;border:none;cursor:pointer;transition:background-color .2s}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-actions button:disabled{opacity:.6;cursor:wait}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-actions .note-save-button{background-color:hsl(var(--primary));color:hsl(var(--primary-foreground))}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-actions .note-save-button:hover{background-color:hsl(var(--primary)/.9)}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-actions .note-cancel-button{background-color:transparent;color:hsl(var(--muted-foreground))}.book-reader .notes-modal .notes-modal-content .note-input-container .note-input-actions .note-cancel-button:hover{background-color:hsl(var(--border))}.book-reader .notes-modal[data-busy=true] .notes-modal-content .note-input-container{background:linear-gradient(180deg,hsl(var(--muted)),hsl(var(--muted)/.92))}.book-reader .notes-modal .dictionary-modal{position:fixed;inset:0;z-index:220;display:flex;align-items:center;justify-content:center}.book-reader .notes-modal .dictionary-modal .dictionary-modal-overlay{position:absolute;inset:0;background-color:#00000080}.book-reader .notes-modal .dictionary-modal .dictionary-modal-content{position:relative;display:flex;flex-direction:column;width:min(1100px,94vw);height:min(760px,88vh);background:hsl(var(--background));border-radius:.75rem;box-shadow:0 18px 60px #00000047;overflow:hidden}.book-reader .notes-modal .dictionary-modal .dictionary-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid hsl(var(--border))}.book-reader .notes-modal .dictionary-modal .dictionary-modal-header h3{margin:0;font-size:1.1rem;font-weight:700;color:hsl(var(--foreground))}.book-reader .notes-modal .dictionary-modal .dictionary-modal-header .dictionary-current-term{margin:.2rem 0 0;font-size:.85rem;color:hsl(var(--muted-foreground))}.book-reader .notes-modal .dictionary-modal .dictionary-modal-header .dictionary-modal-close{border:none;background:transparent;color:hsl(var(--muted-foreground));width:2rem;height:2rem;border-radius:.375rem;font-size:1.5rem;line-height:1;cursor:pointer}.book-reader .notes-modal .dictionary-modal .dictionary-modal-header .dictionary-modal-close:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.book-reader .notes-modal .dictionary-modal .dictionary-toolbar{display:grid;grid-template-columns:240px 1fr auto;gap:.75rem;padding:.9rem 1.25rem;border-bottom:1px solid hsl(var(--border));background:hsl(var(--muted))}.book-reader .notes-modal .dictionary-modal .dictionary-toolbar select,.book-reader .notes-modal .dictionary-modal .dictionary-toolbar input,.book-reader .notes-modal .dictionary-modal .dictionary-toolbar button{border-radius:.5rem;font-size:.9rem}.book-reader .notes-modal .dictionary-modal .dictionary-toolbar select,.book-reader .notes-modal .dictionary-modal .dictionary-toolbar input{border:1px solid hsl(var(--border));padding:.7rem .8rem;background:hsl(var(--background))}.book-reader .notes-modal .dictionary-modal .dictionary-toolbar button{border:none;background:#0f4bb8;color:#fff;padding:.7rem 1rem;font-weight:600;cursor:pointer}.book-reader .notes-modal .dictionary-modal .dictionary-toolbar button:hover{background:#123f93}.book-reader .notes-modal .dictionary-modal .dictionary-toolbar button:disabled{opacity:.55;cursor:not-allowed}.book-reader .notes-modal .dictionary-modal .dictionary-modal-body{flex:1;min-height:0;display:grid;grid-template-columns:280px 1fr}.book-reader .notes-modal .dictionary-modal .dictionary-sidebar{border-right:1px solid hsl(var(--border));background:hsl(var(--muted));display:flex;flex-direction:column;min-height:0}.book-reader .notes-modal .dictionary-modal .dictionary-status{padding:.9rem 1rem .55rem;font-size:.8rem;font-weight:600;color:hsl(var(--muted-foreground))}.book-reader .notes-modal .dictionary-modal .dictionary-suggestions{scrollbar-width:thin;scrollbar-color:var(--reader-scrollbar-thumb) transparent;scrollbar-gutter:stable}.book-reader .notes-modal .dictionary-modal .dictionary-suggestions::-webkit-scrollbar{width:14px;height:14px}.book-reader .notes-modal .dictionary-modal .dictionary-suggestions::-webkit-scrollbar-track{background:transparent}.book-reader .notes-modal .dictionary-modal .dictionary-suggestions::-webkit-scrollbar-thumb{background-color:var(--reader-scrollbar-thumb);border:4px solid transparent;border-radius:999px;background-clip:content-box;min-height:48px}.book-reader .notes-modal .dictionary-modal .dictionary-suggestions::-webkit-scrollbar-thumb:hover{background-color:var(--reader-scrollbar-thumb-hover)}.book-reader .notes-modal .dictionary-modal .dictionary-suggestions{flex:1;overflow-y:auto;padding-bottom:.75rem}.book-reader .notes-modal .dictionary-modal .dictionary-suggestion-item{width:100%;border:none;border-top:1px solid hsl(var(--border));background:transparent;text-align:left;padding:.75rem 1rem;color:hsl(var(--foreground));cursor:pointer;transition:background-color .2s ease}.book-reader .notes-modal .dictionary-modal .dictionary-suggestion-item:hover{background:hsl(var(--accent))}.book-reader .notes-modal .dictionary-modal .dictionary-entry-panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:hsl(var(--background))}.book-reader .notes-modal .dictionary-modal .dictionary-entry-body .at-link,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body .popup-button,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body .exponent,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body .chwd,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body .verbtable{background-color:hsl(var(--muted))!important;color:hsl(var(--foreground))!important}.book-reader .notes-modal .dictionary-modal .dictionary-entry-body .at-link *{background-color:transparent!important}.book-reader .notes-modal .dictionary-modal .dictionary-corrections{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.9rem 1.25rem 0;color:#334155;font-size:.9rem}.book-reader .notes-modal .dictionary-modal .dictionary-corrections-label{font-weight:600}.book-reader .notes-modal .dictionary-modal .dictionary-correction-item{border:1px solid #cdd7e6;background:hsl(var(--background));color:#0f4bb8;border-radius:999px;padding:.35rem .8rem;font-size:.85rem;cursor:pointer;transition:background-color .2s ease}.book-reader .notes-modal .dictionary-modal .dictionary-correction-item:hover{background:#eef4ff}.book-reader .notes-modal .dictionary-modal .dictionary-entry-empty{padding:1rem 1.25rem;color:#64748b;font-size:.92rem}.book-reader .notes-modal .dictionary-modal .dictionary-entry-scroll{scrollbar-width:thin;scrollbar-color:var(--reader-scrollbar-thumb) transparent;scrollbar-gutter:stable}.book-reader .notes-modal .dictionary-modal .dictionary-entry-scroll::-webkit-scrollbar{width:14px;height:14px}.book-reader .notes-modal .dictionary-modal .dictionary-entry-scroll::-webkit-scrollbar-track{background:transparent}.book-reader .notes-modal .dictionary-modal .dictionary-entry-scroll::-webkit-scrollbar-thumb{background-color:var(--reader-scrollbar-thumb);border:4px solid transparent;border-radius:999px;background-clip:content-box;min-height:48px}.book-reader .notes-modal .dictionary-modal .dictionary-entry-scroll::-webkit-scrollbar-thumb:hover{background-color:var(--reader-scrollbar-thumb-hover)}.book-reader .notes-modal .dictionary-modal .dictionary-entry-scroll{flex:1;min-height:0;overflow:auto;padding:.2rem 0}.book-reader .notes-modal .dictionary-modal .dictionary-entry-section{padding:.9rem 1.25rem 1rem}.book-reader .notes-modal .dictionary-modal .dictionary-entry-divider{border-top:1px solid #d8deea;margin-bottom:.9rem}.book-reader .notes-modal .dictionary-modal .dictionary-entry-term{padding-bottom:.4rem;font-size:.92rem;font-weight:700;color:#334155}.book-reader .notes-modal .dictionary-modal .dictionary-entry-body{color:#17212f;font-size:1rem;line-height:1.5;word-break:break-word}.book-reader .notes-modal .dictionary-modal .dictionary-entry-body *{max-width:100%;box-sizing:border-box}.book-reader .notes-modal .dictionary-modal .dictionary-entry-body img,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body video,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body audio,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body table,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body pre,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body svg,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body canvas,.book-reader .notes-modal .dictionary-modal .dictionary-entry-body iframe{max-width:100%}.book-reader .notes-modal .dictionary-modal .dictionary-entry-body table{display:block;overflow-x:auto}.book-reader .notes-modal .dictionary-modal .dictionary-entry-body pre{white-space:pre-wrap}.book-reader .notes-modal .dictionary-modal .dictionary-entry-body a{color:#8b3d00}@media(max-width:900px){.book-reader .notes-modal .dictionary-modal .dictionary-toolbar{grid-template-columns:1fr}.book-reader .notes-modal .dictionary-modal .dictionary-modal-body{grid-template-columns:1fr;grid-template-rows:180px 1fr}.book-reader .notes-modal .dictionary-modal .dictionary-sidebar{border-right:none;border-bottom:1px solid #e5e7eb}}.book-reader .notes-modal .llm-modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center}.book-reader .notes-modal .llm-modal .llm-modal-overlay{position:absolute;inset:0;background-color:#00000080}.book-reader .notes-modal .llm-modal .llm-modal-content{position:relative;background-color:hsl(var(--background));border-radius:.5rem;box-shadow:0 10px 40px #0000004d;max-width:800px;width:90%;max-height:80vh;display:flex;flex-direction:column}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid hsl(var(--border))}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-header h3{margin:0;font-size:1.25rem;font-weight:600;color:hsl(var(--foreground))}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-header .llm-modal-close{background:none;border:none;font-size:2rem;line-height:1;color:hsl(var(--muted-foreground));cursor:pointer;padding:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;border-radius:.25rem;transition:background-color .2s,color .2s}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-header .llm-modal-close:hover{background-color:hsl(var(--accent));color:hsl(var(--foreground))}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body{scrollbar-width:thin;scrollbar-color:var(--reader-scrollbar-thumb) transparent;scrollbar-gutter:stable}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body::-webkit-scrollbar{width:14px;height:14px}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body::-webkit-scrollbar-track{background:transparent}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body::-webkit-scrollbar-thumb{background-color:var(--reader-scrollbar-thumb);border:4px solid transparent;border-radius:999px;background-clip:content-box;min-height:48px}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body::-webkit-scrollbar-thumb:hover{background-color:var(--reader-scrollbar-thumb-hover)}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body{padding:1.5rem;overflow-y:auto;color:hsl(var(--foreground))}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(p){margin:1em 0;line-height:1.6}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h1),.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h2),.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h3),.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h4),.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h5),.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h6){margin:1.5em 0 .5em;font-weight:600;line-height:1.3}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h1){font-size:1.75em}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h2){font-size:1.5em}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(h3){font-size:1.25em}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(ul),.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(ol){margin:1em 0;padding-left:2em}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(li){margin:.5em 0;line-height:1.6}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(code){padding:.2em .4em;background-color:hsl(var(--accent));border-radius:.25rem;font-family:monospace;font-size:.9em}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(pre){margin:1em 0;padding:1em;background-color:hsl(var(--accent));border-radius:.375rem;overflow-x:auto}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(pre) :global(code){padding:0;background:none}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(blockquote){margin:1.5em 0;padding:1em 1.5em;border-left:4px solid hsl(var(--border));background-color:hsl(var(--accent));font-style:italic}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(>*:first-child){margin-top:0}.book-reader .notes-modal .llm-modal .llm-modal-content .llm-modal-body :global(>*:last-child){margin-bottom:0}@keyframes slideIn{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.book-reader .job-queue{position:fixed;bottom:2rem;right:2rem;background-color:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:.5rem;box-shadow:0 4px 16px #00000026;padding:1rem 1.25rem;z-index:150;display:flex;align-items:center;gap:.75rem;animation:slideIn .3s ease-out}.book-reader .job-queue .job-queue-icon{display:flex;align-items:center;justify-content:center;color:#3b82f6;position:relative}.book-reader .job-queue .job-queue-icon svg{animation:spin 2s linear infinite}.book-reader .job-queue .job-queue-icon .job-queue-badge{position:absolute;top:-8px;right:-8px;background-color:#ef4444;color:#fff;font-size:.75rem;font-weight:600;min-width:20px;height:20px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 6px;box-shadow:0 2px 4px #0003}.book-reader .job-queue .job-queue-text{font-size:.875rem;font-weight:500;color:hsl(var(--foreground))}@media(max-width:768px){.book-reader .book-reader .book-reader-header{align-items:flex-start}.book-reader .book-reader .book-reader-header .controls{gap:.75rem}.book-reader .book-reader .book-reader-header .controls .chapter-nav .chapter-select-label{display:none}.book-reader .book-reader .book-reader-header .controls .chapter-nav .chapter-select{min-width:9rem;max-width:11.5rem}.book-reader .book-reader .book-reader-content{padding:1rem}.book-reader .book-reader .chapter-edge-button{padding:.75rem .9rem}.book-reader .book-reader .chapter-edge-title{font-size:.92rem}.book-reader .book-reader .chapter-edge-button-next{align-items:flex-start;text-align:left}.book-reader .book-reader .notes-modal .notes-modal-content{max-width:95%;width:95%}}.book-reader .modal-container>.dictionary-modal{position:fixed;inset:0;z-index:220;display:flex;align-items:center;justify-content:center}.book-reader .modal-container>.dictionary-modal .dictionary-modal-overlay{position:absolute;inset:0;background-color:#00000080}.book-reader .modal-container>.dictionary-modal .dictionary-modal-content{position:relative;display:flex;flex-direction:column;width:min(1100px,94vw);height:min(760px,88vh);background:hsl(var(--background));border-radius:.75rem;box-shadow:0 18px 60px #00000047;overflow:hidden}.book-reader .modal-container>.dictionary-modal .dictionary-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid hsl(var(--border))}.book-reader .modal-container>.dictionary-modal .dictionary-modal-header h3{margin:0;font-size:1.1rem;font-weight:700;color:hsl(var(--foreground))}.book-reader .modal-container>.dictionary-modal .dictionary-modal-header .dictionary-current-term{margin:.2rem 0 0;font-size:.85rem;color:hsl(var(--muted-foreground))}.book-reader .modal-container>.dictionary-modal .dictionary-modal-header .dictionary-modal-close{border:none;background:transparent;color:hsl(var(--muted-foreground));width:2rem;height:2rem;border-radius:.375rem;font-size:1.5rem;line-height:1;cursor:pointer}.book-reader .modal-container>.dictionary-modal .dictionary-modal-header .dictionary-modal-close:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.book-reader .modal-container>.dictionary-modal .dictionary-toolbar{display:grid;grid-template-columns:240px 1fr auto;gap:.75rem;padding:.9rem 1.25rem;border-bottom:1px solid hsl(var(--border));background:hsl(var(--muted))}.book-reader .modal-container>.dictionary-modal .dictionary-toolbar select,.book-reader .modal-container>.dictionary-modal .dictionary-toolbar input,.book-reader .modal-container>.dictionary-modal .dictionary-toolbar button{border-radius:.5rem;font-size:.9rem}.book-reader .modal-container>.dictionary-modal .dictionary-toolbar select,.book-reader .modal-container>.dictionary-modal .dictionary-toolbar input{border:1px solid hsl(var(--border));padding:.7rem .8rem;background:hsl(var(--background))}.book-reader .modal-container>.dictionary-modal .dictionary-toolbar button{border:none;background:#0f4bb8;color:#fff;padding:.7rem 1rem;font-weight:600;cursor:pointer}.book-reader .modal-container>.dictionary-modal .dictionary-toolbar button:hover{background:#123f93}.book-reader .modal-container>.dictionary-modal .dictionary-toolbar button:disabled{opacity:.55;cursor:not-allowed}.book-reader .modal-container>.dictionary-modal .dictionary-modal-body{flex:1;min-height:0;display:grid;grid-template-columns:280px 1fr}.book-reader .modal-container>.dictionary-modal .dictionary-sidebar{border-right:1px solid hsl(var(--border));background:hsl(var(--muted));display:flex;flex-direction:column;min-height:0}.book-reader .modal-container>.dictionary-modal .dictionary-status{padding:.9rem 1rem .55rem;font-size:.8rem;font-weight:600;color:hsl(var(--muted-foreground))}.book-reader .modal-container>.dictionary-modal .dictionary-suggestions{scrollbar-width:thin;scrollbar-color:var(--reader-scrollbar-thumb) transparent;scrollbar-gutter:stable}.book-reader .modal-container>.dictionary-modal .dictionary-suggestions::-webkit-scrollbar{width:14px;height:14px}.book-reader .modal-container>.dictionary-modal .dictionary-suggestions::-webkit-scrollbar-track{background:transparent}.book-reader .modal-container>.dictionary-modal .dictionary-suggestions::-webkit-scrollbar-thumb{background-color:var(--reader-scrollbar-thumb);border:4px solid transparent;border-radius:999px;background-clip:content-box;min-height:48px}.book-reader .modal-container>.dictionary-modal .dictionary-suggestions::-webkit-scrollbar-thumb:hover{background-color:var(--reader-scrollbar-thumb-hover)}.book-reader .modal-container>.dictionary-modal .dictionary-suggestions{flex:1;overflow-y:auto;padding-bottom:.75rem}.book-reader .modal-container>.dictionary-modal .dictionary-suggestion-item{width:100%;border:none;border-top:1px solid hsl(var(--border));background:transparent;text-align:left;padding:.75rem 1rem;color:hsl(var(--foreground));cursor:pointer;transition:background-color .2s ease}.book-reader .modal-container>.dictionary-modal .dictionary-suggestion-item:hover{background:hsl(var(--accent))}.book-reader .modal-container>.dictionary-modal .dictionary-entry-panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:hsl(var(--background))}.book-reader .modal-container>.dictionary-modal .dictionary-entry-body .at-link,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body .popup-button,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body .exponent,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body .chwd,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body .verbtable{background-color:hsl(var(--muted))!important;color:hsl(var(--foreground))!important}.book-reader .modal-container>.dictionary-modal .dictionary-entry-body .at-link *{background-color:transparent!important}.book-reader .modal-container>.dictionary-modal .dictionary-corrections{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.9rem 1.25rem 0;color:#334155;font-size:.9rem}.book-reader .modal-container>.dictionary-modal .dictionary-corrections-label{font-weight:600}.book-reader .modal-container>.dictionary-modal .dictionary-correction-item{border:1px solid #cdd7e6;background:hsl(var(--background));color:#0f4bb8;border-radius:999px;padding:.35rem .8rem;font-size:.85rem;cursor:pointer;transition:background-color .2s ease}.book-reader .modal-container>.dictionary-modal .dictionary-correction-item:hover{background:#eef4ff}.book-reader .modal-container>.dictionary-modal .dictionary-entry-empty{padding:1rem 1.25rem;color:#64748b;font-size:.92rem}.book-reader .modal-container>.dictionary-modal .dictionary-entry-scroll{scrollbar-width:thin;scrollbar-color:var(--reader-scrollbar-thumb) transparent;scrollbar-gutter:stable}.book-reader .modal-container>.dictionary-modal .dictionary-entry-scroll::-webkit-scrollbar{width:14px;height:14px}.book-reader .modal-container>.dictionary-modal .dictionary-entry-scroll::-webkit-scrollbar-track{background:transparent}.book-reader .modal-container>.dictionary-modal .dictionary-entry-scroll::-webkit-scrollbar-thumb{background-color:var(--reader-scrollbar-thumb);border:4px solid transparent;border-radius:999px;background-clip:content-box;min-height:48px}.book-reader .modal-container>.dictionary-modal .dictionary-entry-scroll::-webkit-scrollbar-thumb:hover{background-color:var(--reader-scrollbar-thumb-hover)}.book-reader .modal-container>.dictionary-modal .dictionary-entry-scroll{flex:1;min-height:0;overflow:auto;padding:.2rem 0}.book-reader .modal-container>.dictionary-modal .dictionary-entry-section{padding:.9rem 1.25rem 1rem}.book-reader .modal-container>.dictionary-modal .dictionary-entry-divider{border-top:1px solid #d8deea;margin-bottom:.9rem}.book-reader .modal-container>.dictionary-modal .dictionary-entry-term{padding-bottom:.4rem;font-size:.92rem;font-weight:700;color:#334155}.book-reader .modal-container>.dictionary-modal .dictionary-entry-body{color:#17212f;font-size:1rem;line-height:1.5;word-break:break-word}.book-reader .modal-container>.dictionary-modal .dictionary-entry-body *{max-width:100%;box-sizing:border-box}.book-reader .modal-container>.dictionary-modal .dictionary-entry-body img,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body video,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body audio,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body table,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body pre,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body svg,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body canvas,.book-reader .modal-container>.dictionary-modal .dictionary-entry-body iframe{max-width:100%}.book-reader .modal-container>.dictionary-modal .dictionary-entry-body table{display:block;overflow-x:auto}.book-reader .modal-container>.dictionary-modal .dictionary-entry-body pre{white-space:pre-wrap}.book-reader .modal-container>.dictionary-modal .dictionary-entry-body a{color:#8b3d00}@media(max-width:900px){.book-reader .modal-container>.dictionary-modal .dictionary-toolbar{grid-template-columns:1fr}.book-reader .modal-container>.dictionary-modal .dictionary-modal-body{grid-template-columns:1fr;grid-template-rows:180px 1fr}.book-reader .modal-container>.dictionary-modal .dictionary-sidebar{border-right:none;border-bottom:1px solid #e5e7eb}}.book-reader .modal-container>.footnote-modal{position:fixed;inset:0;z-index:230;display:flex;align-items:center;justify-content:center}.book-reader .modal-container>.footnote-modal .footnote-modal-overlay{position:absolute;inset:0;background-color:#00000073}.book-reader .modal-container>.footnote-modal .footnote-modal-content{position:relative;display:flex;flex-direction:column;width:min(720px,92vw);max-height:min(560px,80vh);background:hsl(var(--background));border-radius:.75rem;box-shadow:0 18px 60px #00000047;overflow:hidden}.book-reader .modal-container>.footnote-modal .footnote-modal-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.1rem;border-bottom:1px solid hsl(var(--border))}.book-reader .modal-container>.footnote-modal .footnote-modal-header h3{margin:0;font-size:1rem;font-weight:700;color:hsl(var(--foreground))}.book-reader .modal-container>.footnote-modal .footnote-modal-close{border:none;background:transparent;color:hsl(var(--muted-foreground));width:2rem;height:2rem;border-radius:.375rem;font-size:1.5rem;line-height:1;cursor:pointer}.book-reader .modal-container>.footnote-modal .footnote-modal-close:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.book-reader .modal-container>.footnote-modal .footnote-modal-body{scrollbar-width:thin;scrollbar-color:var(--reader-scrollbar-thumb) transparent;scrollbar-gutter:stable}.book-reader .modal-container>.footnote-modal .footnote-modal-body::-webkit-scrollbar{width:14px;height:14px}.book-reader .modal-container>.footnote-modal .footnote-modal-body::-webkit-scrollbar-track{background:transparent}.book-reader .modal-container>.footnote-modal .footnote-modal-body::-webkit-scrollbar-thumb{background-color:var(--reader-scrollbar-thumb);border:4px solid transparent;border-radius:999px;background-clip:content-box;min-height:48px}.book-reader .modal-container>.footnote-modal .footnote-modal-body::-webkit-scrollbar-thumb:hover{background-color:var(--reader-scrollbar-thumb-hover)}.book-reader .modal-container>.footnote-modal .footnote-modal-body{overflow-y:auto;padding:1.1rem 1.25rem 1.35rem;color:hsl(var(--foreground));font-size:1rem;line-height:1.7;word-break:break-word}.book-reader .modal-container>.footnote-modal .footnote-modal-body *{max-width:100%;box-sizing:border-box}.book-reader .modal-container>.footnote-modal .footnote-modal-body>:first-child{margin-top:0}.book-reader .modal-container>.footnote-modal .footnote-modal-body>:last-child{margin-bottom:0}.book-reader .modal-container>.footnote-modal .footnote-modal-body p,.book-reader .modal-container>.footnote-modal .footnote-modal-body li{margin:0 0 .85rem}.book-reader .modal-container>.footnote-modal .footnote-modal-body ol,.book-reader .modal-container>.footnote-modal .footnote-modal-body ul{margin:.75rem 0 .85rem 1.4rem}.book-reader .modal-container>.footnote-modal .footnote-modal-body img,.book-reader .modal-container>.footnote-modal .footnote-modal-body video,.book-reader .modal-container>.footnote-modal .footnote-modal-body audio,.book-reader .modal-container>.footnote-modal .footnote-modal-body table,.book-reader .modal-container>.footnote-modal .footnote-modal-body pre,.book-reader .modal-container>.footnote-modal .footnote-modal-body svg,.book-reader .modal-container>.footnote-modal .footnote-modal-body canvas,.book-reader .modal-container>.footnote-modal .footnote-modal-body iframe{max-width:100%}.book-reader .modal-container>.footnote-modal .footnote-modal-body table{display:block;overflow-x:auto}.book-reader .modal-container>.footnote-modal .footnote-modal-body pre{white-space:pre-wrap}.book-reader .modal-container>.footnote-modal .footnote-modal-body a{color:hsl(var(--foreground));text-decoration:underline;text-decoration-color:hsl(var(--muted-foreground));text-underline-offset:.2em}.mdw-host .ProseMirror{min-height:180px;padding:12px;border:1px solid #d0d7de;border-radius:8px;outline:none;white-space:pre-wrap;word-break:break-word}.mdw-host .ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}.mdw-host .ProseMirror.ProseMirror-focused .ProseMirror-gapcursor{display:block}.mdw-host .ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-1px;left:8px;width:1px;height:1.2em;border-radius:1px;background:#1f2328;box-shadow:0 0 0 1px #ffffffa6;animation:ProseMirror-cursor-blink 1.1s steps(2,start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}.mdw-host .ProseMirror p,.mdw-host .ProseMirror h1,.mdw-host .ProseMirror h2,.mdw-host .ProseMirror h3,.mdw-host .ProseMirror blockquote,.mdw-host .ProseMirror ul,.mdw-host .ProseMirror ol,.mdw-host .ProseMirror pre{margin:0}.mdw-host .ProseMirror p+p,.mdw-host .ProseMirror p+h1,.mdw-host .ProseMirror p+h2,.mdw-host .ProseMirror p+h3,.mdw-host .ProseMirror h1+p,.mdw-host .ProseMirror h2+p,.mdw-host .ProseMirror h3+p,.mdw-host .ProseMirror h1+h1,.mdw-host .ProseMirror h1+h2,.mdw-host .ProseMirror h1+h3,.mdw-host .ProseMirror h2+h1,.mdw-host .ProseMirror h2+h2,.mdw-host .ProseMirror h2+h3,.mdw-host .ProseMirror h3+h1,.mdw-host .ProseMirror h3+h2,.mdw-host .ProseMirror h3+h3,.mdw-host .ProseMirror blockquote+p,.mdw-host .ProseMirror p+blockquote,.mdw-host .ProseMirror ul+p,.mdw-host .ProseMirror ol+p,.mdw-host .ProseMirror p+ul,.mdw-host .ProseMirror p+ol,.mdw-host .ProseMirror pre+p,.mdw-host .ProseMirror p+pre{margin-top:.75rem}.mdw-host .ProseMirror h1{font-size:2rem;font-weight:700;line-height:1.2}.mdw-host .ProseMirror h2{font-size:1.5rem;font-weight:700;line-height:1.3}.mdw-host .ProseMirror h3{font-size:1.25rem;font-weight:700;line-height:1.35}.mdw-host .ProseMirror table{width:100%;border-collapse:collapse;margin:.75rem 0;table-layout:fixed}.mdw-host .ProseMirror th,.mdw-host .ProseMirror td{padding:.55rem .75rem;border:1px solid #d8dee4;vertical-align:top;text-align:left}.mdw-host .ProseMirror th{background:#f6f8fa;font-weight:600}.mdw-host .ProseMirror td>:first-child,.mdw-host .ProseMirror th>:first-child{margin-top:0}.mdw-host .ProseMirror td>:last-child,.mdw-host .ProseMirror th>:last-child{margin-bottom:0}.mdw-host .ProseMirror hr{margin:1rem 0;border:0;border-top:1px solid #d8dee4;border-radius:999px;transition:border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.mdw-host .ProseMirror-selectednode hr{border-top-color:#0969da;box-shadow:0 0 0 3px #0969da29;background:#0969da14}.mdw-host .ProseMirror.ProseMirror-focused:has(.ProseMirror-selectednode){caret-color:transparent}.mdw-host .ProseMirror blockquote{padding-left:1rem;color:#4b5563;border-left:3px solid #d1d5db}.mdw-host .ProseMirror ul,.mdw-host .ProseMirror ol{padding-left:1.5rem}.mdw-host .ProseMirror li+li{margin-top:.25rem}.mdw-host .ProseMirror li>p+p,.mdw-host .ProseMirror li>p+ul,.mdw-host .ProseMirror li>p+ol,.mdw-host .ProseMirror li>ul+p,.mdw-host .ProseMirror li>ol+p{margin-top:.2rem}.mdw-host .ProseMirror li[data-task=true]{list-style:none;position:relative}.mdw-host .ProseMirror li[data-task=true]>p{min-height:1.5rem}.mdw-host .ProseMirror li[data-task=true]:before{content:"";position:absolute;right:100%;top:.08rem;width:1.125rem;height:1.125rem;margin-right:.625rem;border:1.5px solid #94a3b8;border-radius:.375rem;background:linear-gradient(180deg,#fff,#f8fafc);box-sizing:border-box;box-shadow:0 1px 2px #0f172a14;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,box-shadow .12s ease,transform .12s ease}.mdw-host .ProseMirror li[data-task=true]:hover:before{border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa24}.mdw-host .ProseMirror li[data-task=true][data-checked=true]:before{content:"✓";display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:.84rem;font-weight:700;line-height:1;background:linear-gradient(180deg,#3b82f6,#2563eb);border-color:#2563eb;box-shadow:0 0 0 1px #2563eb14,0 2px 4px #2563eb38}.mdw-host .ProseMirror li.mdw-active-list-item[data-task=true]:before{display:inline-flex;align-items:center;justify-content:center}.mdw-host .ProseMirror a{color:#0969da;text-decoration:underline}.mdw-host .ProseMirror img{max-width:100%;height:auto;border-radius:10px;vertical-align:middle}.mdw-host .ProseMirror p>img:only-child{display:block;margin:.5rem auto;box-shadow:0 1px 2px #1f232814}.mdw-host .ProseMirror img.ProseMirror-selectednode{outline:2px solid #0969da;outline-offset:2px}.mdw-host .ProseMirror :not(pre)>code{padding:.15em .35em;border-radius:.375rem;background:#f6f8fa;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}.mdw-host .mdw-code-block{margin-top:.75rem;border:1px solid #d8dee4;border-radius:12px;background:#f6f8fa;color:#24292f;overflow:hidden;position:relative;box-shadow:inset 0 1px #ffffff80}.mdw-host .mdw-code-block-language{padding:.625rem .875rem;border-bottom:1px solid #d8dee4;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#57606a;background:#f0f3f6}.mdw-host .mdw-code-block-editor{overflow:hidden;background:#fff}.mdw-host .mdw-code-block.mdw-code-block-outer-selection{border-color:#96c0ff;box-shadow:0 0 0 1px #0969da2e,inset 0 1px #ffffff80}.mdw-host .mdw-code-block.mdw-code-block-outer-selection:after{content:"";position:absolute;inset:0;background:#0969da1f;pointer-events:none;z-index:1}.mdw-host .mdw-code-block.mdw-code-block-outer-selection .mdw-code-block-language,.mdw-host .mdw-code-block.mdw-code-block-outer-selection .mdw-code-block-editor,.mdw-host .mdw-code-block.mdw-code-block-outer-selection .cm-gutters,.mdw-host .mdw-code-block.mdw-code-block-outer-selection .cm-activeLine,.mdw-host .mdw-code-block.mdw-code-block-outer-selection .cm-activeLineGutter,.mdw-host .mdw-code-block.mdw-code-block-outer-selection .cm-line,.mdw-host .mdw-code-block.mdw-code-block-outer-selection .cm-selectionBackground{background:transparent!important}.mdw-host .mdw-code-block .mdw-code-block-language,.mdw-host .mdw-code-block .mdw-code-block-editor,.mdw-host .mdw-code-block .cm-editor,.mdw-host .mdw-code-block .cm-scroller,.mdw-host .mdw-code-block .cm-gutters{position:relative;z-index:2}.mdw-host .cm-editor{background:transparent;color:#24292f}.mdw-host .cm-scroller{overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.65}.mdw-host .cm-content{min-height:1.65em;padding:.875rem 0 .875rem .875rem}.mdw-host .cm-gutter{min-height:1.65em;padding:0}.mdw-host .cm-lineNumbers{min-width:2.5rem;color:#6e7781}.mdw-host .cm-lineNumbers .cm-gutterElement{padding:0 .625rem 0 .75rem;box-sizing:border-box;text-align:right}.mdw-host .cm-lineNumbers .cm-gutterElement[style*="visibility: hidden"]{min-height:0;padding:0}.mdw-host .cm-lineNumbers .cm-gutterElement:not([style*="visibility: hidden"]){display:flex;align-items:center;justify-content:flex-end;min-height:1.65em;line-height:1.65}.mdw-host .cm-gutters{border-right:1px solid #d8dee4;background:#f6f8fa;color:#6e7781}.mdw-host .cm-activeLine{background:#0969da0f}.mdw-host .cm-activeLineGutter{background:#0969da14}.mdw-host .cm-cursor,.mdw-host .cm-dropCursor{border-left-color:#1f2328}.mdw-host .cm-content ::-moz-selection{background:#0969da2e}.mdw-host .cm-selectionBackground,.mdw-host .cm-content ::selection{background:#0969da2e}.mdw-host .mdw-code-block.mdw-code-block-outer-selection .cm-gutterElement{color:#0550ae}.mdw-host .cm-keyword{color:#cf222e}.mdw-host .cm-atom,.mdw-host .cm-bool,.mdw-host .cm-number{color:#0550ae}.mdw-host .cm-def,.mdw-host .cm-variable{color:#24292f}.mdw-host .cm-variable-2,.mdw-host .cm-variable-3,.mdw-host .cm-propertyName{color:#8250df}.mdw-host .cm-string{color:#0a3069}.mdw-host .cm-comment{color:#6e7781}.mdw-host .cm-typeName,.mdw-host .cm-className,.mdw-host .cm-tagName{color:#953800}.mdw-host .cm-operator,.mdw-host .cm-punctuation{color:#57606a}.mdw-host .mdw-marker{color:#9ca3af;font-weight:400;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}.mdw-host .mdw-marker-link-end,.mdw-host .mdw-marker-image-end{pointer-events:auto;cursor:text}.mdw-link-editor{position:absolute;z-index:30;display:flex;flex-direction:column;gap:8px;min-width:280px;padding:10px;border:1px solid #d0d7de;border-radius:10px;background:#fff;box-shadow:0 10px 30px #0f172a29}.mdw-link-editor-input{width:100%;padding:8px 10px;border:1px solid #d0d7de;border-radius:8px;font:inherit;box-sizing:border-box}.mdw-link-editor-actions{display:flex;gap:8px}.mdw-link-editor-actions button{padding:6px 10px;border:1px solid #d0d7de;border-radius:8px;background:#fff;cursor:pointer;font:inherit}.mdw-image-editor{position:absolute;z-index:30;display:flex;flex-direction:column;gap:8px;min-width:320px;padding:10px;border:1px solid #d0d7de;border-radius:10px;background:#fff;box-shadow:0 10px 30px #0f172a29}.mdw-image-editor-input{width:100%;padding:8px 10px;border:1px solid #d0d7de;border-radius:8px;font:inherit;box-sizing:border-box}.mdw-image-editor-actions{display:flex;gap:8px}.mdw-image-editor-actions button{padding:6px 10px;border:1px solid #d0d7de;border-radius:8px;background:#fff;cursor:pointer;font:inherit}.mdw-table-toolbar{position:absolute;z-index:30;display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #d0d7de;border-radius:10px;background:#fff;color:#24292f;box-shadow:0 10px 30px #0f172a29}.mdw-table-toolbar-group{display:inline-flex;gap:8px}.mdw-table-toolbar-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #d0d7de;border-radius:8px;background:#fff;color:inherit;cursor:pointer;font:inherit}.mdw-table-toolbar-icon{width:18px;height:18px;flex:0 0 auto}.mdw-table-toolbar-button.is-active{background:#e7f1ff;border-color:#8cb4ff;color:#0550ae}.mdw-host .ProseMirror.mdw-has-managed-block-cursor,.mdw-host .ProseMirror.mdw-has-managed-block-cursor *,.mdw-host .ProseMirror.mdw-has-managed-block-cursor .cm-content,.mdw-host .ProseMirror.mdw-has-managed-block-cursor .cm-line{caret-color:transparent}.mdw-host .ProseMirror.mdw-has-managed-block-cursor .cm-cursorLayer,.mdw-host .ProseMirror.mdw-has-managed-block-cursor .cm-cursor,.mdw-host .ProseMirror.mdw-has-managed-block-cursor .cm-dropCursor{display:none!important}.mdw-host .ProseMirror table.mdw-managed-block-cursor,.mdw-host .ProseMirror .mdw-code-block.mdw-managed-block-cursor{position:relative}.mdw-host .ProseMirror table.mdw-managed-block-cursor:before,.mdw-host .ProseMirror table.mdw-managed-block-cursor:after,.mdw-host .ProseMirror .mdw-code-block.mdw-managed-block-cursor:before,.mdw-host .ProseMirror .mdw-code-block.mdw-managed-block-cursor:after{content:none;position:absolute;top:8px;bottom:8px;width:1px;border-radius:999px;background:#1f2328;box-shadow:0 0 0 1px #ffffffa6;animation:ProseMirror-cursor-blink 1.1s steps(2,start) infinite;pointer-events:none;z-index:3}.mdw-host .ProseMirror table.mdw-managed-block-cursor-before:before,.mdw-host .ProseMirror .mdw-code-block.mdw-managed-block-cursor-before:before{content:"";left:-1px}.mdw-host .ProseMirror table.mdw-managed-block-cursor-after:after,.mdw-host .ProseMirror .mdw-code-block.mdw-managed-block-cursor-after:after{content:"";right:-1px}.book-reader-content{font-family:Merriweather,Georgia,Palatino Linotype,Book Antiqua,Palatino,serif;font-size:var(--reader-font-size, 18px);font-weight:400;line-height:1.75;color:hsl(var(--foreground));background-color:hsl(var(--background));text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;hyphens:auto;-webkit-hyphens:auto;-ms-hyphens:auto;word-wrap:break-word;overflow-wrap:break-word}.book-reader-chapter{width:100%;max-width:40em;margin:0 auto}.book-reader-content p{margin:0;text-indent:1.5em;text-align:justify;line-height:1.75}.book-reader-content h1+p,.book-reader-content h2+p,.book-reader-content h3+p,.book-reader-content h4+p,.book-reader-content h5+p,.book-reader-content h6+p,.book-reader-chapter p:first-child,.book-reader-content p:first-child{text-indent:0}.book-reader-content p+p{margin-top:0}.book-reader-content h1,.book-reader-content h2,.book-reader-content h3,.book-reader-content h4,.book-reader-content h5,.book-reader-content h6{font-family:Merriweather,Georgia,serif;font-weight:700;line-height:1.3;color:hsl(var(--foreground));margin:1.5em 0 .8em;text-align:left;text-indent:0}.book-reader-content h1{font-size:2.2em;font-weight:300;letter-spacing:-.02em;margin-top:0}.book-reader-content h2{font-size:1.6em}.book-reader-content h3{font-size:1.3em}.book-reader-content h4{font-size:1.15em}.book-reader-content h5{font-size:1em}.book-reader-content h6{font-size:.9em}.book-reader-content em,.book-reader-content i{font-style:italic}.book-reader-content blockquote{margin:1.5em 0;padding:0 1.5em;border-left:none;color:hsl(var(--muted-foreground));font-style:italic;text-indent:0}.book-reader-content blockquote p{text-indent:0}.book-reader-content h1+p:first-letter{float:left;font-size:3.5em;line-height:.8;padding-right:.1em;font-weight:700;color:hsl(var(--foreground))}.book-reader-content pre{background:hsl(var(--muted));padding:1em;overflow-x:auto;border-radius:4px;font-family:Courier New,Courier,monospace;font-size:.85em;line-height:1.5;text-indent:0;margin:1em 0}.book-reader-content code{background:hsl(var(--muted));padding:.15em .3em;border-radius:3px;font-family:Courier New,Courier,monospace;font-size:.85em}.book-reader-content img{max-width:100%;height:auto;display:block;margin:1.5em auto}.book-reader-content a[href]{color:hsl(var(--foreground));text-decoration:underline;text-decoration-color:hsl(var(--muted-foreground));text-underline-offset:.2em}.book-reader-content table{width:100%;border-collapse:collapse;margin:1.5em 0;font-size:.9em;text-indent:0}.book-reader-content th,.book-reader-content td{border:1px solid hsl(var(--border));padding:.6em .8em;text-align:left}.book-reader-content th{background:hsl(var(--muted));font-weight:700}.book-reader-content ul,.book-reader-content ol{margin:1em 0;padding-left:2em;text-indent:0}.book-reader-content li{margin:.3em 0;text-indent:0}.book-reader-content hr{border:none;border-top:1px solid hsl(var(--border));margin:2em 0;text-align:center}.book-reader-content hr:after{content:"* * *";display:block;position:relative;top:-.6em;color:hsl(var(--muted-foreground));font-size:.8em;letter-spacing:.3em;background:hsl(var(--background));width:-moz-fit-content;width:fit-content;margin:0 auto;padding:0 1em}.highlights-menu-container{position:relative}.highlights-menu-button{display:flex;align-items:center;gap:.375rem;padding:0 .75rem;height:2.25rem;font-size:.875rem;border-radius:6px;border:none;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;transition:background .15s}.highlights-menu-button:hover{background-color:hsl(var(--accent));color:hsl(var(--foreground))}.highlights-menu-button svg{color:#f59e0b}.highlights-count{font-weight:600;min-width:1.25rem;text-align:center}.highlights-dropdown{position:absolute;top:100%;right:0;margin-top:.5rem;background-color:hsl(var(--background));border:1px solid hsl(var(--border));border-radius:.5rem;box-shadow:0 4px 16px #00000026;padding:.75rem;min-width:180px;z-index:100;display:flex;flex-direction:column;gap:.75rem}.highlights-dropdown-header{padding-bottom:.5rem;border-bottom:1px solid hsl(var(--border))}.highlights-total{font-size:.875rem;font-weight:500;color:hsl(var(--muted-foreground))}.highlights-nav{display:flex;align-items:center;justify-content:center;gap:.75rem}.highlights-nav button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:.375rem;border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));cursor:pointer;transition:background-color .2s,border-color .2s}.highlights-nav button:hover:not(:disabled){background-color:hsl(var(--accent));border-color:hsl(var(--muted-foreground))}.highlights-nav button:disabled{opacity:.4;cursor:not-allowed}.highlight-position{font-size:.875rem;font-weight:500;color:hsl(var(--foreground));min-width:3rem;text-align:center}.show-all-highlights{padding:.5rem .75rem;font-size:.875rem;font-weight:500;border-radius:.375rem;border:none;background:#3b82f6;color:#fff;cursor:pointer;transition:background-color .2s;width:100%}.show-all-highlights:hover{background-color:#2563eb}.all-highlights-modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center}.all-highlights-overlay{position:absolute;inset:0;background-color:#00000080}.all-highlights-content{position:relative;background-color:hsl(var(--background));border-radius:.75rem;box-shadow:0 10px 40px #0000004d;max-width:800px;width:90%;max-height:80vh;display:flex;flex-direction:column;overflow:hidden}.all-highlights-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;border-bottom:1px solid hsl(var(--border));background:hsl(var(--background))}.all-highlights-header h3{margin:0;font-size:1.25rem;font-weight:600;color:hsl(var(--foreground))}.all-highlights-close{background:none;border:none;font-size:1.75rem;line-height:1;color:hsl(var(--muted-foreground));cursor:pointer;padding:0;width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;border-radius:.375rem;transition:background-color .2s}.all-highlights-close:hover{background-color:hsl(var(--accent));color:hsl(var(--foreground))}.all-highlights-list{flex:1;overflow-y:auto;padding:1rem 1.5rem}.all-highlights-empty{text-align:center;padding:3rem 1rem;color:hsl(var(--muted-foreground))}.all-highlights-empty p{margin:0;font-size:1rem}.highlight-list-item{display:flex;gap:1rem;padding:1rem;margin-bottom:.75rem;background:hsl(var(--background));border-radius:.5rem;border:1px solid hsl(var(--border));cursor:pointer;transition:box-shadow .2s,transform .1s}.highlight-list-item:hover{box-shadow:0 2px 8px #0000001a;transform:translateY(-1px)}.highlight-list-item.active{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.highlight-list-color{width:6px;min-height:40px;border-radius:3px;flex-shrink:0}.highlight-list-content{flex:1;min-width:0}.highlight-list-text{font-size:.9375rem;line-height:1.6;color:hsl(var(--foreground));margin-bottom:.5rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.highlight-list-text .context-before,.highlight-list-text .context-after{color:hsl(var(--muted-foreground))}.highlight-list-meta{display:flex;align-items:center;gap:.75rem;font-size:.8125rem;color:hsl(var(--muted-foreground))}.highlight-list-chapter{font-weight:500}.highlight-list-notes{display:flex;align-items:center;gap:.25rem}.highlight-list-notes svg{width:14px;height:14px}.highlight-list-actions{display:flex;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid hsl(var(--border))}.highlight-list-actions button{flex:1;padding:.375rem .75rem;font-size:.8125rem;font-weight:500;border-radius:.375rem;border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));cursor:pointer;transition:background-color .2s,border-color .2s}.highlight-list-actions button:hover{background-color:hsl(var(--accent));border-color:hsl(var(--muted-foreground))}.highlight-list-actions .goto-button{background-color:#3b82f6;border-color:#3b82f6;color:#fff}.highlight-list-actions .goto-button:hover{background-color:#2563eb;border-color:#2563eb}.highlight-list-actions .notes-button{display:flex;align-items:center;justify-content:center;gap:.25rem}.lucide-icon{width:1em;height:1em;display:inline-block;vertical-align:middle;flex-shrink:0}.highlights-menu-button .lucide-icon{width:1rem;height:1rem;color:#f59e0b}.highlights-nav button .lucide-icon{width:16px;height:16px}.job-queue-icon .lucide-icon{width:20px;height:20px;animation:spin 2s linear infinite}.cognitive-reading-toggle{position:relative}.cognitive-reading-toggle.active{background-color:hsl(var(--accent));color:hsl(var(--accent-foreground))}.cognitive-reading-toggle:after{content:"CR";position:absolute;right:.2rem;bottom:.15rem;font-size:.5rem;font-weight:700;letter-spacing:.04em;line-height:1}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fixed-layout-banner{position:sticky;top:0;z-index:10;padding:.5rem 1rem;background:#fef3c7;color:#92400e;font-size:.875rem;text-align:center;border-bottom:1px solid #fcd34d}:root{--landing-accent: #6c63ff;--landing-accent-2: #00d4ff;--landing-accent-3: #ff6b6b;--landing-gold: #ffd166;--landing-bg: #0d0f1a;--landing-surface: #13162a;--landing-surface-2: #1c2040;--landing-text: #e8eaff;--landing-muted: #8b90b8;--landing-radius: 18px}.landing-page{position:relative;min-height:100vh;overflow:hidden;background:var(--landing-bg);color:var(--landing-text);font-family:Inter,system-ui,-apple-system,sans-serif}.landing-slide--library{background:radial-gradient(ellipse 80% 60% at 65% 40%,#1a1060,#0d0f1a 70%)}.landing-slide--cognitive{--landing-accent: #00d4ff;--landing-accent-2: #06d6a0;background:radial-gradient(ellipse 80% 60% at 40% 50%,#061a30,#0d0f1a 70%)}.landing-slide--ai{--landing-accent: #a855f7;--landing-accent-2: #6c63ff;background:radial-gradient(ellipse 80% 60% at 55% 45%,#1a0a2e,#0d0f1a 70%)}.landing-slide--notes{--landing-accent: #ffd166;--landing-accent-2: #ff6b6b;background:radial-gradient(ellipse 80% 60% at 45% 50%,#1a1200,#0d0f1a 70%)}.landing-slide--themes{--landing-accent: #06d6a0;--landing-accent-2: #00d4ff;background:radial-gradient(ellipse 80% 60% at 50% 40%,#041a12,#0d0f1a 70%)}.landing-stars{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}.landing-star{position:absolute;width:2px;height:2px;border-radius:50%;background:#fff;opacity:0;animation:landing-twinkle var(--star-duration) ease-in-out infinite;animation-delay:var(--star-delay)}.landing-header,.landing-hero,.landing-footer{position:relative;z-index:3}.landing-header{display:flex;align-items:center;justify-content:space-between;padding:2.1rem 3.5rem 0}.landing-brand{display:inline-flex;align-items:center;gap:.7rem;color:inherit;text-decoration:none}.landing-brand__icon{display:inline-flex;align-items:center;justify-content:center;width:2.4rem;height:2.4rem;border-radius:.7rem;background:linear-gradient(135deg,var(--landing-accent) 0%,var(--landing-accent-2) 100%)}.landing-brand__name{font-family:Cormorant Garamond,Georgia,serif;font-size:1.45rem;font-weight:600;letter-spacing:.02em}.landing-brand__name span{color:var(--landing-accent-2)}.landing-header__actions{display:flex;align-items:center;gap:1rem}.landing-header__link,.landing-header__button,.landing-cta{text-decoration:none}.landing-header__link{color:var(--landing-muted)}.landing-header__button,.landing-cta{display:inline-flex;align-items:center;justify-content:center;gap:.625rem;border-radius:999px;padding:.8rem 1.35rem;background:linear-gradient(135deg,var(--landing-accent) 0%,var(--landing-accent-2) 100%);color:#fff;font-size:.875rem;font-weight:600;letter-spacing:.02em;box-shadow:0 8px 30px #6c63ff59;transition:box-shadow .2s,transform .2s}.landing-header__button:hover,.landing-cta:hover{transform:translateY(-2px)}.landing-cta--green{background:linear-gradient(135deg,#06d6a0,#00d4ff);box-shadow:0 8px 30px #06d6a059}.landing-cta--purple{background:linear-gradient(135deg,#a855f7,#6c63ff);box-shadow:0 8px 30px #a855f759}.landing-cta--warm{background:linear-gradient(135deg,#ffd166,#ff6b6b);box-shadow:0 8px 30px #ff6b6b59}.landing-cta--mint{background:linear-gradient(135deg,#06d6a0,#6c63ff);box-shadow:0 8px 30px #06d6a059}.landing-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;min-height:calc(100vh - 9.75rem);padding:0 1.25rem}.landing-hero__content{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 510px;align-items:center;gap:4.5rem;width:min(1180px,100%);margin:0 auto;padding:0 3.5rem}.landing-blob{position:absolute;border-radius:50%;filter:blur(90px);opacity:.15;pointer-events:none;z-index:0}.landing-blob--a{width:500px;height:500px;top:-120px;right:-80px;background:var(--landing-accent);animation:landing-blob-a 9s ease-in-out infinite alternate}.landing-blob--b{width:380px;height:380px;bottom:-100px;left:-60px;background:var(--landing-accent-2);animation:landing-blob-b 7s ease-in-out infinite alternate}.landing-copy,.landing-visual{position:relative;z-index:1}.landing-tag,.landing-copy h1,.landing-copy p,.landing-copy__actions{opacity:0;transform:translateY(24px)}.landing-tag{display:inline-flex;align-items:center;gap:.5rem;border:1px solid rgba(0,212,255,.22);border-radius:999px;padding:.4rem 1rem;background:#00d4ff14;color:var(--landing-accent-2);font-size:.66rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;animation:landing-fade-slide-up .55s .1s cubic-bezier(.4,0,.2,1) forwards}.landing-tag--green{border-color:#06d6a040;background:#06d6a01a;color:#06d6a0}.landing-tag--purple{border-color:#a855f740;background:#a855f71a;color:#c084fc}.landing-tag--warm{border-color:#ffd16640;background:#ffd1661a;color:#ffd166}.landing-copy h1{margin:1.25rem 0 1.2rem;font-family:Cormorant Garamond,Georgia,serif;font-size:clamp(2.8rem,4.8vw,4.6rem);font-weight:600;line-height:1.06;letter-spacing:.01em;animation:landing-fade-slide-up .6s .22s cubic-bezier(.4,0,.2,1) forwards}.landing-copy p{max-width:28.75rem;color:var(--landing-muted);font-size:clamp(.88rem,1.2vw,1.02rem);line-height:1.75;animation:landing-fade-slide-up .6s .36s cubic-bezier(.4,0,.2,1) forwards}.landing-copy__actions{margin-top:2rem;animation:landing-fade-slide-up .55s .5s cubic-bezier(.4,0,.2,1) forwards}.landing-highlight{background:linear-gradient(135deg,#6c63ff,#00d4ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.landing-highlight--green{background:linear-gradient(135deg,#06d6a0,#00d4ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.landing-highlight--purple{background:linear-gradient(135deg,#c084fc,#6c63ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.landing-highlight--warm{background:linear-gradient(135deg,#ffd166,#ff6b6b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.landing-visual-shell{position:relative}.landing-visual{width:100%}.landing-visual-enter{opacity:0;transform:translateY(36px) scale(.97);animation:landing-visual-in .7s .28s cubic-bezier(.4,0,.2,1) forwards}.landing-mockup{position:relative;width:100%;height:410px;overflow:hidden;border-radius:var(--landing-radius);box-shadow:0 28px 70px #000000a6}.landing-window-bar,.landing-ai-topbar,.landing-notes-topbar{display:flex;align-items:center;gap:.625rem;height:46px;padding:0 18px}.landing-window-bar{background:#00000059;border-bottom:1px solid rgba(255,255,255,.06)}.landing-window-dots,.landing-theme-card__bar{display:flex;gap:5px}.landing-window-dots span,.landing-theme-card__bar span{width:10px;height:10px;border-radius:50%}.landing-window-dots span:nth-child(1){background:#ff5f57}.landing-window-dots span:nth-child(2){background:#febc2e}.landing-window-dots span:nth-child(3){background:#28c840}.landing-window-title{flex:1;text-align:center;color:var(--landing-muted);font-size:12.5px;font-weight:600}.landing-mockup--library{background:#13162a;border:1px solid rgba(108,99,255,.22)}.landing-reader-skeleton{padding:24px 28px}.landing-reader-label{margin-bottom:14px;color:var(--landing-muted);font-size:10.5px;letter-spacing:2px;text-transform:uppercase}.landing-reader-title{margin-bottom:22px;font-family:Georgia,serif;font-size:20px;font-weight:800}.landing-reader-line{position:relative;height:11px;margin-bottom:9px;overflow:hidden;border-radius:6px;background:#ffffff14}.landing-reader-line:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.07),transparent);animation:landing-shimmer 2.2s ease-in-out infinite}.landing-upload-badge,.landing-format-panel,.landing-style-panel,.landing-notes-sidebar,.landing-ai-popover,.landing-ai-panel{position:absolute}.landing-upload-badge{right:-16px;bottom:-16px;display:flex;align-items:center;gap:11px;border-radius:14px;padding:14px 18px;background:linear-gradient(135deg,#6c63ff,#00d4ff);box-shadow:0 14px 36px #6c63ff66;opacity:0;transform:scale(.8) translateY(8px);animation:landing-pop-in .5s .85s cubic-bezier(.34,1.56,.64,1) forwards}.landing-upload-badge strong{display:block;font-size:12.5px;font-weight:700;line-height:1.4}.landing-upload-badge span{font-size:10.5px;opacity:.8}.landing-format-panel{top:10px;right:-18px;display:flex;flex-direction:column;gap:6px;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:10px 12px;background:#0d0f1ae0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 12px 36px #00000073;opacity:0;transform:translate(12px) scale(.95);animation:landing-format-panel-in .5s .9s cubic-bezier(.34,1.56,.64,1) forwards,landing-float-y 6s 1.4s ease-in-out infinite}.landing-format-row{display:flex;gap:5px}.landing-format-chip{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.13);border-radius:6px;padding:4px 8px;font-size:9.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;white-space:nowrap}.landing-format-chip--epub{border-color:#6c63ff4d;background:#6c63ff2e;color:#a78bfa}.landing-format-chip--pdf{border-color:#ff6b6b4d;background:#ff6b6b26;color:#fca5a5}.landing-format-chip--docx{border-color:#00d4ff47;background:#00d4ff1f;color:#67e8f9}.landing-format-chip--mobi{border-color:#ffd11647;background:#ffd1161f;color:#fde68a}.landing-format-chip--azw3{border-color:#06d6a047;background:#06d6a01f;color:#6ee7b7}.landing-format-chip--txt{border-color:#ffffff26;background:#ffffff12;color:#cbd5e1}.landing-format-chip--fb2{border-color:#f9731647;background:#f9731621;color:#fdba74}.landing-format-chip--rtf{border-color:#c084fc47;background:#c084fc21;color:#d8b4fe}.landing-format-chip--more{color:#94a3b8}.landing-mockup--cognitive{background:#0e1525;border:1px solid rgba(0,212,255,.18)}.landing-cognitive-lines{display:flex;flex-direction:column;gap:10px;padding:20px 24px}.landing-cognitive-line{height:13px;border-radius:7px;background-repeat:no-repeat;background-size:460px 100%;opacity:0;transform:translate(-18px);animation:landing-cognitive-line-in .4s forwards}.landing-cognitive-lines .landing-cognitive-line:nth-child(1){animation-delay:.35s}.landing-cognitive-lines .landing-cognitive-line:nth-child(2){animation-delay:.48s}.landing-cognitive-lines .landing-cognitive-line:nth-child(3){animation-delay:.61s}.landing-cognitive-lines .landing-cognitive-line:nth-child(4){animation-delay:.74s}.landing-cognitive-lines .landing-cognitive-line:nth-child(5){animation-delay:.87s}.landing-cognitive-lines .landing-cognitive-line:nth-child(6){animation-delay:1s}.landing-cognitive-lines .landing-cognitive-line:nth-child(7){animation-delay:1.13s}.landing-cognitive-lines .landing-cognitive-line:nth-child(8){animation-delay:1.26s}.landing-cognitive-lines .landing-cognitive-line:nth-child(9){animation-delay:1.39s}.landing-cognitive-lines .landing-cognitive-line:nth-child(10){animation-delay:1.52s}.landing-cognitive-lines .landing-cognitive-line:nth-child(11){animation-delay:1.65s}.landing-cognitive-lines .landing-cognitive-line:nth-child(12){animation-delay:1.78s}.landing-cognitive-line--aurora{background-image:linear-gradient(90deg,#6c63ff,#00d4ff 55%,#ffffff0f)}.landing-cognitive-line--sunset{background-image:linear-gradient(90deg,#ff6b6b,#ffd166 55%,#ffffff0f)}.landing-cognitive-line--ocean{background-image:linear-gradient(90deg,#06d6a0,#00d4ff 55%,#ffffff0f)}.landing-cognitive-line--ember{background-image:linear-gradient(90deg,#ff9f1c,#ff6b6b 55%,#ffffff0f)}.landing-style-panel{top:14px;right:-8px;border:1px solid rgba(0,212,255,.22);border-radius:14px;padding:14px 15px;background:#1a1f38;opacity:0;transform:translate(16px);animation:landing-slide-in-right .5s 1.1s cubic-bezier(.4,0,.2,1) forwards}.landing-style-panel__label{margin-bottom:9px;color:var(--landing-muted);font-size:9.5px;letter-spacing:1.5px;text-transform:uppercase}.landing-style-panel__item{display:flex;align-items:center;gap:8px;margin-bottom:3px;border-radius:8px;padding:5px 9px;font-size:11.5px;font-weight:600}.landing-style-panel__item--active{background:#6c63ff33;color:var(--landing-accent-2)}.landing-style-swatch{width:13px;height:13px;border-radius:4px;flex-shrink:0}.landing-style-swatch--aurora{background:linear-gradient(90deg,#6c63ff,#00d4ff)}.landing-style-swatch--sunset{background:linear-gradient(90deg,#ff6b6b,#ffd166)}.landing-style-swatch--ocean{background:linear-gradient(90deg,#06d6a0,#00d4ff)}.landing-style-swatch--ember{background:linear-gradient(90deg,#ff9f1c,#ff6b6b)}.landing-mockup--ai,.landing-mockup--notes{background:#fafaf8;border:1px solid rgba(0,0,0,.07);color:#1a1a2e}.landing-ai-topbar,.landing-notes-topbar{justify-content:space-between;background:#fff;border-bottom:1px solid rgba(0,0,0,.07);font-size:12px;font-weight:600;color:#444}.landing-ai-topbar strong,.landing-notes-topbar strong{flex:1;text-align:center;font-size:12.5px;font-weight:700;color:#1a1a2e}.landing-ai-topbar__back,.landing-ai-topbar__page{font-size:11px;color:#888}.landing-ai-body{padding:18px 22px 14px;font-family:Georgia,serif;font-size:12.5px;line-height:1.85;color:#2d2d3a}.landing-ai-body p{margin:0}.landing-ai-highlight{display:inline;border-radius:3px;padding:1px 2px;background:transparent;animation:landing-word-highlight .35s .85s cubic-bezier(.4,0,.2,1) forwards}.landing-ai-popover{left:50%;bottom:108px;display:flex;align-items:center;gap:3px;border:1px solid rgba(255,255,255,.13);border-radius:12px;padding:5px 7px;background:#12121ef7;box-shadow:0 14px 40px #00000080,0 0 0 1px #6c63ff2e;opacity:0;white-space:nowrap;transform:translate(-50%) translateY(10px) scale(.95);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);animation:landing-ai-pop-in .38s 1.35s cubic-bezier(.34,1.56,.64,1) forwards,landing-ai-pop-out .28s 2.25s cubic-bezier(.4,0,.2,1) forwards}.landing-ai-popover__button{padding:5px 12px;border-radius:8px;color:#ffffffb8;font-size:10.5px;font-weight:600}.landing-ai-popover__button--active{background:linear-gradient(135deg,#a855f7,#6c63ff);color:#fff;box-shadow:0 3px 12px #a855f773;animation:landing-ai-button-click .28s 2.1s cubic-bezier(.4,0,.2,1) forwards}.landing-ai-popover__divider{width:1px;height:15px;background:#ffffff1f}.landing-ai-panel{right:0;bottom:0;left:0;border-top:1px solid rgba(108,99,255,.28);border-radius:0 0 var(--landing-radius) var(--landing-radius);padding:14px 18px 16px;background:#12121ef7;color:#ffffffc2;opacity:0;transform:translateY(100%);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);animation:landing-ai-panel-up .5s 2.5s cubic-bezier(.4,0,.2,1) forwards}.landing-ai-panel__header{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#fff}.landing-ai-badge{border-radius:7px;padding:3px 9px;background:linear-gradient(135deg,#a855f7,#6c63ff);color:#fff;font-size:10px;font-weight:800;letter-spacing:1px}.landing-ai-panel__header strong{color:#a78bfa;font-size:12px;font-weight:800}.landing-ai-panel__date{margin-left:auto;color:#ffffff59;font-size:10px}.landing-ai-panel__section{margin-bottom:7px;opacity:0;transform:translateY(6px)}.landing-ai-panel__section:nth-child(2){animation:landing-fade-up .4s 3s forwards}.landing-ai-panel__section:nth-child(3){animation:landing-fade-up .4s 3.35s forwards}.landing-ai-panel__section:nth-child(4){animation:landing-fade-up .4s 3.7s forwards}.landing-ai-panel__label,.landing-ai-panel__section--link{font-size:10.5px;font-weight:700}.landing-ai-panel__label{margin-bottom:2px;color:#818cf8}.landing-ai-panel p{margin:0;color:#fff9;font-size:10.5px;line-height:1.55}.landing-ai-panel__section--link{color:#a78bfa}.landing-notes-body{padding:20px 28px}.landing-notes-book-title{margin-bottom:16px;color:#111;text-align:center;font-family:Georgia,serif;font-size:18px;font-weight:800}.landing-notes-copy{color:#333;font-family:Georgia,serif;font-size:12.5px;line-height:2}.landing-note{border-radius:3px;padding:1px 2px}.landing-note--yellow{background:#ffd166b3}.landing-note--blue{background:#6c63ff2e;color:#4040cc}.landing-note--pink{background:#ff6b6b2e;color:#c33}.landing-notes-sidebar{top:56px;right:-8px;width:195px;display:flex;flex-direction:column;gap:8px}.landing-annot-note{border-left:3px solid var(--landing-accent);border-radius:0 10px 10px 0;padding:9px 11px;background:#fff;color:#444;box-shadow:0 4px 14px #0000001a;font-size:10.5px;opacity:0;transform:translate(18px)}.landing-annot-note:nth-child(1){animation:landing-slide-in-right .45s .7s forwards}.landing-annot-note:nth-child(2){animation:landing-slide-in-right .45s 1.1s forwards}.landing-annot-note:nth-child(3){animation:landing-slide-in-right .45s 1.5s forwards}.landing-annot-note__label{margin-bottom:3px;color:var(--landing-accent);font-size:9.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase}.landing-annot-note--gold{border-color:#ffd166}.landing-annot-note--gold .landing-annot-note__label{color:#c9a000}.landing-annot-note--red{border-color:#ff6b6b}.landing-annot-note--red .landing-annot-note__label{color:#c33}.landing-theme-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:14px;width:100%;height:410px}.landing-theme-card{display:flex;flex-direction:column;overflow:hidden;border-radius:14px;box-shadow:0 12px 32px #0006;opacity:0;transform:translateY(24px) scale(.97)}.landing-theme-card:nth-child(1){animation:landing-card-in .55s .3s cubic-bezier(.4,0,.2,1) forwards}.landing-theme-card:nth-child(2){animation:landing-card-in .55s .45s cubic-bezier(.4,0,.2,1) forwards}.landing-theme-card:nth-child(3){animation:landing-card-in .55s .6s cubic-bezier(.4,0,.2,1) forwards}.landing-theme-card:nth-child(4){animation:landing-card-in .55s .75s cubic-bezier(.4,0,.2,1) forwards}.landing-theme-card--dark{background:#0d0f1a;border:2px solid #6c63ff}.landing-theme-card--light{background:#fafaf8;border:1px solid #ddd}.landing-theme-card--sepia{background:#f4ecd8;border:1px solid #c8b89a}.landing-theme-card--slate{background:#1e2a3a;border:1px solid rgba(0,212,255,.2)}.landing-theme-card__bar{height:32px;align-items:center;padding:0 10px;flex-shrink:0}.landing-theme-card--dark .landing-theme-card__bar{background:#0000004d;border-bottom:1px solid rgba(255,255,255,.05)}.landing-theme-card--light .landing-theme-card__bar{background:#0000000a;border-bottom:1px solid rgba(0,0,0,.08)}.landing-theme-card--sepia .landing-theme-card__bar{background:#0000000d;border-bottom:1px solid rgba(0,0,0,.1)}.landing-theme-card--slate .landing-theme-card__bar{background:#0003;border-bottom:1px solid rgba(255,255,255,.05)}.landing-theme-card--dark .landing-theme-card__bar span,.landing-theme-card--slate .landing-theme-card__bar span{background:#ffffff26}.landing-theme-card--light .landing-theme-card__bar span,.landing-theme-card--sepia .landing-theme-card__bar span{background:#00000026}.landing-theme-card__body{flex:1;padding:10px 12px}.landing-theme-card__line{height:8px;margin-bottom:6px;border-radius:4px}.landing-theme-card--dark .landing-theme-card__line{background:#ffffff17}.landing-theme-card--light .landing-theme-card__line{background:#00000017}.landing-theme-card--sepia .landing-theme-card__line{background:#0000001a}.landing-theme-card--slate .landing-theme-card__line{background:#ffffff17}.landing-theme-card--dark .landing-theme-card__line--accent{background:linear-gradient(90deg,#6c63ff,#00d4ff 65%,#ffffff0a)}.landing-theme-card--light .landing-theme-card__line--accent{background:linear-gradient(90deg,#4040cc,#08c 65%,#0000000a)}.landing-theme-card--sepia .landing-theme-card__line--accent{background:linear-gradient(90deg,#8b4513,peru 65%,#0000000a)}.landing-theme-card--slate .landing-theme-card__line--accent{background:linear-gradient(90deg,#00d4ff,#06d6a0 65%,#ffffff0a)}.landing-theme-card__label{padding:7px;text-align:center;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase}.landing-theme-card--dark .landing-theme-card__label,.landing-theme-card--slate .landing-theme-card__label{color:#ffffff59}.landing-theme-card--light .landing-theme-card__label,.landing-theme-card--sepia .landing-theme-card__label{color:#00000059}.landing-nav{z-index:4;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid rgba(255,255,255,.1);border-radius:50%;background:#ffffff0d;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .2s,transform .2s}.landing-nav:hover{background:#6c63ff47;transform:scale(1.1)}.landing-footer{display:flex;align-items:center;justify-content:center;gap:2.5rem;padding:0 3.5rem 2rem}.landing-dots{display:flex;align-items:center;gap:9px}.landing-dots button{width:8px;height:8px;border:0;border-radius:999px;background:#ffffff38;cursor:pointer;transition:all .4s cubic-bezier(.4,0,.2,1)}.landing-dots button.active{width:30px;background:var(--landing-accent-2)}.landing-counter{color:var(--landing-muted);font-size:.82rem;font-weight:600;letter-spacing:1px}.landing-counter strong{color:var(--landing-text);font-size:1.05rem}.landing-progress{position:absolute;right:0;bottom:0;left:0;z-index:4;height:3px;background:linear-gradient(90deg,var(--landing-accent) 0%,var(--landing-accent-2) 100%);transform-origin:left center;animation:landing-progress 6s linear forwards}@media(max-width:1080px){.landing-header{padding-inline:1.5rem}.landing-hero{grid-template-columns:1fr;padding:0 1rem}.landing-nav{display:none}.landing-hero__content{grid-template-columns:1fr;gap:2.5rem;padding:1rem 0 2rem}.landing-copy p{max-width:none}}@media(max-width:680px){.landing-header{flex-direction:column;align-items:flex-start;gap:1rem}.landing-header__actions{width:100%}.landing-header__button{margin-left:auto}.landing-copy h1{font-size:clamp(2.7rem,12vw,4rem)}.landing-mockup,.landing-theme-grid{height:auto;min-height:410px}.landing-theme-grid{grid-template-columns:1fr;grid-template-rows:none;height:auto}.landing-format-panel,.landing-style-panel,.landing-notes-sidebar{position:static;width:auto;margin-top:1rem}.landing-upload-badge{right:.75rem;bottom:.75rem}.landing-ai-popover{left:1rem;right:1rem;bottom:170px;transform:none;justify-content:space-between;white-space:normal;animation:landing-ai-pop-in-mobile .38s 1.35s cubic-bezier(.34,1.56,.64,1) forwards,landing-ai-pop-out-mobile .28s 2.25s cubic-bezier(.4,0,.2,1) forwards}.landing-footer{padding-inline:1.5rem}}@keyframes landing-fade-slide-up{to{opacity:1;transform:translateY(0)}}@keyframes landing-visual-in{to{opacity:1;transform:translateY(0) scale(1)}}@keyframes landing-pop-in{to{opacity:1;transform:scale(1) translateY(0)}}@keyframes landing-format-panel-in{to{opacity:1;transform:translate(0) scale(1)}}@keyframes landing-float-y{0%,to{transform:translateY(0)}50%{transform:translateY(-7px)}}@keyframes landing-cognitive-line-in{to{opacity:1;transform:translate(0)}}@keyframes landing-slide-in-right{to{opacity:1;transform:translate(0)}}@keyframes landing-word-highlight{to{background:#ffd166;color:#1a1a2e}}@keyframes landing-ai-pop-in{to{opacity:1;transform:translate(-50%) translateY(0) scale(1)}}@keyframes landing-ai-pop-out{to{opacity:0;transform:translate(-50%) translateY(-8px) scale(.95)}}@keyframes landing-ai-pop-in-mobile{to{opacity:1;transform:translateY(0) scale(1)}}@keyframes landing-ai-pop-out-mobile{to{opacity:0;transform:translateY(-8px) scale(.95)}}@keyframes landing-ai-button-click{0%{transform:scale(1);filter:brightness(1)}40%{transform:scale(.91);filter:brightness(1.3)}to{transform:scale(1);filter:brightness(1)}}@keyframes landing-ai-panel-up{to{opacity:1;transform:translateY(0)}}@keyframes landing-fade-up{to{opacity:1;transform:translateY(0)}}@keyframes landing-card-in{to{opacity:1;transform:translateY(0) scale(1)}}@keyframes landing-progress{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes landing-shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes landing-twinkle{0%,to{opacity:0}50%{opacity:var(--star-opacity)}}@keyframes landing-blob-a{0%{transform:translate(0) scale(1)}to{transform:translate(40px,-50px) scale(1.2)}}@keyframes landing-blob-b{0%{transform:translate(0) scale(1)}to{transform:translate(-30px,40px) scale(1.15)}}
