@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Libre+Baskerville:wght@400;700&family=Literata:wght@400;600;700&family=Merriweather:wght@300;400;700&family=Source+Serif+4:wght@400;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}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.right-0{right: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}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-px{height:1px}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-full{width:100%}.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}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.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-border{--tw-bg-opacity: 1;background-color:hsl(var(--border) / 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}.py-8{padding-top:2rem;padding-bottom:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.\!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))}.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)}.blur{--tw-blur: blur(8px);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)}.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)!important}.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}.admin-root{min-height:100vh;padding:clamp(1rem,3vw,2.75rem);color:hsl(var(--foreground));background:radial-gradient(circle at 10% 0%,hsl(var(--primary)/.1),transparent 30rem),hsl(var(--background))}.admin-header{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;max-width:1500px;margin:0 auto 1.5rem}.admin-header h1{margin:.25rem 0;font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.045em}.admin-header p{margin:0;color:hsl(var(--muted-foreground))}.admin-eyebrow{color:hsl(var(--primary))!important;font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.admin-back{display:inline-flex;align-items:center;gap:.4rem;margin-bottom:1.5rem;border:0;color:hsl(var(--muted-foreground));background:transparent;cursor:pointer}.admin-back:hover{color:hsl(var(--foreground))}.admin-back svg,.admin-button svg{width:1rem;height:1rem}.admin-header-actions,.admin-toolbar,.admin-pagination{display:flex;align-items:flex-end;gap:.75rem}.admin-header-actions label,.admin-toolbar label{display:grid;gap:.35rem;color:hsl(var(--muted-foreground));font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.admin-header-actions select,.admin-toolbar select{min-height:2.5rem;padding:0 2.2rem 0 .75rem;border:1px solid hsl(var(--border));border-radius:.65rem;color:hsl(var(--foreground));background:hsl(var(--card))}.admin-button,.admin-pagination button{display:inline-flex;min-height:2.5rem;align-items:center;justify-content:center;gap:.45rem;padding:0 .9rem;border:1px solid hsl(var(--primary)/.3);border-radius:.65rem;color:hsl(var(--primary-foreground));background:hsl(var(--primary));font-weight:700;cursor:pointer}.admin-button:disabled,.admin-pagination button:disabled{opacity:.5;cursor:not-allowed}.is-spinning{animation:admin-spin .9s linear infinite}@keyframes admin-spin{to{transform:rotate(360deg)}}.admin-alert,.admin-loading,.admin-updated,.admin-stat-grid,.admin-layout,.admin-panel--wide,.admin-privacy-note{max-width:1500px;margin-right:auto;margin-left:auto}.admin-alert{margin-bottom:1rem;padding:.8rem 1rem;border:1px solid hsl(var(--destructive)/.35);border-radius:.75rem;color:hsl(var(--destructive));background:hsl(var(--destructive)/.08)}.admin-loading{padding:5rem 1rem;text-align:center;color:hsl(var(--muted-foreground))}.admin-updated{margin-bottom:1rem;color:hsl(var(--muted-foreground));font-size:.8rem}.admin-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.85rem;margin-bottom:.85rem}.admin-stat{display:flex;min-width:0;gap:.8rem;padding:1rem;border:1px solid hsl(var(--border));border-radius:1rem;background:hsl(var(--card)/.92);box-shadow:0 .6rem 2rem hsl(var(--foreground)/.035)}.admin-stat--warning{border-color:hsl(var(--destructive)/.35)}.admin-stat-icon{display:grid;width:2.25rem;height:2.25rem;flex:0 0 auto;place-items:center;border-radius:.65rem;color:hsl(var(--primary));background:hsl(var(--primary)/.1)}.admin-stat-icon svg{width:1.15rem;height:1.15rem}.admin-stat p,.admin-stat small{display:block;margin:0;overflow:hidden;color:hsl(var(--muted-foreground));font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.admin-stat strong{display:block;margin:.15rem 0;font-size:1.55rem;letter-spacing:-.035em}.admin-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:.85rem}.admin-panel{min-width:0;padding:1.15rem;border:1px solid hsl(var(--border));border-radius:1rem;background:hsl(var(--card)/.92);box-shadow:0 .6rem 2rem hsl(var(--foreground)/.035)}.admin-panel--wide{margin-top:.85rem}.admin-panel>p{color:hsl(var(--muted-foreground))}.admin-panel h3{margin:1.25rem 0 .6rem;font-size:.82rem}.admin-panel-heading{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem}.admin-panel-heading span{display:grid;width:2rem;height:2rem;place-items:center;border-radius:.6rem;color:hsl(var(--primary));background:hsl(var(--primary)/.1)}.admin-panel-heading svg{width:1.05rem;height:1.05rem}.admin-panel-heading h2{margin:0;font-size:1rem}.admin-definition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:0}.admin-definition-grid div{padding:.65rem;border-radius:.65rem;background:hsl(var(--muted)/.55)}.admin-definition-grid dt{color:hsl(var(--muted-foreground));font-size:.7rem}.admin-definition-grid dd{margin:.25rem 0 0;font-weight:700}.admin-status{display:inline-flex;padding:.22rem .48rem;border-radius:99rem;color:hsl(var(--muted-foreground));background:hsl(var(--muted));font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.admin-status--healthy,.admin-status--succeeded{color:#257e4a;background:#2eb86721}.admin-status--attention,.admin-status--failed{color:hsl(var(--destructive));background:hsl(var(--destructive)/.11)}.admin-status--running{color:#1b6bbb;background:#1980e61f}.admin-status--queued{color:#986816;background:#f29e0d24}.admin-signal-list{display:grid;gap:.4rem;margin:0;padding:0;list-style:none}.admin-signal-list li{display:flex;justify-content:space-between;gap:1rem;padding:.55rem .7rem;border-radius:.55rem;background:hsl(var(--muted)/.5);font-size:.8rem}.admin-empty{margin:.5rem 0;color:hsl(var(--muted-foreground));font-size:.82rem}.admin-table-wrap{width:100%;overflow-x:auto}.admin-table-wrap:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:3px}.admin-table-wrap table{width:100%;border-collapse:collapse;font-size:.78rem}.admin-table-wrap th{padding:.6rem;border-bottom:1px solid hsl(var(--border));color:hsl(var(--muted-foreground));font-size:.67rem;text-align:left;text-transform:uppercase;letter-spacing:.05em}.admin-table-wrap td{padding:.7rem .6rem;border-bottom:1px solid hsl(var(--border)/.65);vertical-align:top}.admin-table-wrap td strong,.admin-table-wrap td code{display:block}.admin-table-wrap code{color:hsl(var(--muted-foreground));font-size:.7rem}.admin-table-wrap meter{width:5rem;accent-color:hsl(var(--primary))}.admin-diagnostic{min-width:15rem;max-width:32rem;color:hsl(var(--muted-foreground))}.admin-toolbar{justify-content:space-between;margin-bottom:.7rem;color:hsl(var(--muted-foreground));font-size:.8rem}.admin-pagination{justify-content:flex-end;margin-top:.8rem}.admin-pagination button{min-height:2rem;color:hsl(var(--foreground));background:hsl(var(--muted));border-color:hsl(var(--border))}.admin-pagination span{color:hsl(var(--muted-foreground));font-size:.75rem}.admin-privacy-note{margin-top:1rem;color:hsl(var(--muted-foreground));font-size:.75rem;text-align:center}.admin-centered{display:grid;max-width:40rem;margin:auto;place-content:center;text-align:center}.admin-centered>svg{width:3rem;height:3rem;margin:0 auto;color:hsl(var(--destructive))}.admin-centered .admin-button{margin:1rem auto}@media(max-width:1180px){.admin-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.admin-root{padding:1rem}.admin-header{align-items:stretch;flex-direction:column;gap:1rem}.admin-header-actions{align-items:stretch}.admin-header-actions label{flex:1}.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-layout,.admin-definition-grid{grid-template-columns:1fr}}@media(max-width:440px){.admin-header-actions{flex-direction:column}.admin-stat-grid{grid-template-columns:1fr}.admin-toolbar{align-items:stretch;flex-direction:column}}.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-connectivity{display:flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.25rem;padding:.4rem 1rem;border-bottom:1px solid color-mix(in srgb,#2f855a 24%,hsl(var(--border)));background:color-mix(in srgb,#2f855a 9%,hsl(var(--card)));color:hsl(var(--foreground));font-size:.78rem}.library-connectivity--offline{border-bottom-color:color-mix(in srgb,#b7791f 30%,hsl(var(--border)));background:color-mix(in srgb,#b7791f 11%,hsl(var(--card)))}.library-connectivity button{display:grid;place-items:center;padding:.15rem;border:0;background:transparent;color:inherit;cursor:pointer}.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-nav-btn--primary{border-color:hsl(var(--foreground));background:hsl(var(--foreground));color:hsl(var(--background))}.library-nav-btn--primary:hover:not(:disabled){background:color-mix(in srgb,hsl(var(--foreground)) 86%,hsl(var(--background)))}.library-nav-menu{position:relative}.library-nav-menu-trigger--open{background:hsl(var(--accent));color:hsl(var(--foreground))}.library-nav-menu-chevron{transition:transform .15s ease}.library-nav-menu-trigger--open .library-nav-menu-chevron{transform:rotate(180deg)}.library-nav-menu-popover{position:absolute;top:calc(100% + .55rem);right:0;z-index:30;display:flex;width:230px;flex-direction:column;gap:.15rem;padding:.45rem;border:1px solid hsl(var(--border));border-radius:10px;box-shadow:0 14px 35px #00000029;background:hsl(var(--card))}.library-nav-menu-item{display:flex;width:100%;align-items:center;gap:.65rem;padding:.58rem .65rem;border:0;border-radius:7px;background:transparent;color:hsl(var(--foreground));font-size:.8rem;font-weight:500;text-align:left;cursor:pointer}.library-nav-menu-item:hover,.library-nav-menu-item:focus-visible{outline:none;background:hsl(var(--accent))}.library-nav-menu-item>svg{flex:none;color:hsl(var(--muted-foreground))}.library-nav-menu-item--danger{color:#b83227}.library-nav-menu-item--danger>svg{color:currentColor}.library-nav-menu-count{min-width:1.35rem;margin-left:auto;padding:.08rem .35rem;border-radius:999px;background:hsl(var(--muted));color:hsl(var(--muted-foreground));text-align:center;font-size:.65rem;font-variant-numeric:tabular-nums}.library-nav-menu-divider{height:1px;margin:.25rem .35rem;background:hsl(var(--border))}.library-main{max-width:1100px;margin:0 auto;padding:2.5rem 2rem 4rem}.library-main--workspace{max-width:1380px}.library-section-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.75rem}.library-section-header>div:first-child{min-width:10rem}.library-section-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em}.library-user-label{display:block;margin-top:.15rem;font-size:.8125rem;color:hsl(var(--muted-foreground))}.library-search-wrap{position:relative;display:flex;align-items:center;flex:1;max-width:38rem}.library-search-wrap>svg{position:absolute;left:.8rem;color:hsl(var(--muted-foreground));pointer-events:none}.library-search-wrap input{width:100%;min-height:2.6rem;padding:.55rem 2.5rem .55rem 2.35rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));color:hsl(var(--foreground));font-size:.85rem}.library-search-wrap input:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring)/.1)}.library-search-wrap button{position:absolute;right:.45rem;display:grid;place-items:center;padding:.25rem;border:0;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer}.library-sort{min-height:2.6rem;padding:.5rem 2rem .5rem .7rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));color:hsl(var(--foreground));font-size:.8rem}.library-import-queue{margin:-.65rem 0 1.5rem;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));overflow:hidden}.library-import-queue-header{display:flex;align-items:center;justify-content:space-between;padding:.55rem .7rem;border-bottom:1px solid hsl(var(--border))}.library-import-queue-header>div{display:flex;align-items:center;gap:.4rem;font-size:.75rem}.library-import-queue-header>div span{color:hsl(var(--muted-foreground));font-size:.68rem}.library-import-queue-header>button{border:0;background:transparent;color:hsl(var(--muted-foreground));font-size:.68rem;cursor:pointer}.library-import-queue-header>button:hover{color:hsl(var(--foreground))}.library-import-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:1px;background:hsl(var(--border))}.library-import-item{display:flex;align-items:center;gap:.55rem;min-width:0;padding:.6rem .7rem;background:hsl(var(--card))}.library-import-item>svg{flex:none;color:hsl(var(--muted-foreground))}.library-import-item>div{display:flex;flex:1;flex-direction:column;min-width:0}.library-import-item>div strong,.library-import-item>div span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-import-item>div strong{font-size:.72rem}.library-import-item>div span{color:hsl(var(--muted-foreground));font-size:.64rem}.library-import-item>button{flex:none;padding:.25rem .45rem;border:1px solid hsl(var(--border));border-radius:6px;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.66rem;cursor:pointer}.library-import-item--uploading>svg,.library-import-item--queued>svg{animation:library-spin 1s linear infinite}.library-import-item--imported>svg{color:#2b8a5a}.library-import-item--duplicate>svg{color:#996515}.library-import-item--failed>svg{color:#c0392b}.library-import-item .library-import-dismiss{display:grid;place-items:center;width:1.6rem;height:1.6rem;padding:0;border:0;background:transparent;color:hsl(var(--muted-foreground))}@keyframes library-spin{to{transform:rotate(360deg)}}.library-drop-overlay{position:fixed;inset:.75rem;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px dashed hsl(var(--ring));border-radius:18px;background:hsl(var(--background)/.92);color:hsl(var(--foreground));pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.library-drop-overlay strong{margin-top:.8rem;font-size:1.1rem}.library-drop-overlay span{margin-top:.25rem;color:hsl(var(--muted-foreground));font-size:.78rem}.library-workspace{display:grid;grid-template-columns:13.5rem minmax(0,1fr);align-items:start;gap:2rem}.library-sidebar{position:sticky;top:76px;display:flex;flex-direction:column;gap:1.5rem;max-height:calc(100vh - 96px);overflow-y:auto}.library-sidebar-group{display:flex;flex-direction:column;gap:.2rem}.library-sidebar-group>h2,.library-sidebar-group .library-sidebar-heading h2{margin:0 0 .35rem;color:hsl(var(--muted-foreground));font-size:.68rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.library-sidebar-group>button{display:flex;align-items:center;gap:.55rem;width:100%;min-width:0;padding:.48rem .55rem;border:0;border-radius:8px;background:transparent;color:hsl(var(--muted-foreground));font-size:.8rem;text-align:left;cursor:pointer}.library-sidebar-group>button svg{flex:none}.library-sidebar-group>button span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-sidebar-group>button em{color:hsl(var(--muted-foreground));font-size:.7rem;font-style:normal}.library-sidebar-group>button:hover,.library-sidebar-group>button.active{background:hsl(var(--accent));color:hsl(var(--foreground))}.library-sidebar-group>button.active{font-weight:650}.library-sidebar-heading{display:flex;align-items:center;justify-content:space-between}.library-sidebar-heading>button{display:grid;place-items:center;width:1.75rem;height:1.75rem;margin-bottom:.2rem;border:0;border-radius:6px;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer}.library-sidebar-heading>button:hover{background:hsl(var(--accent))}.library-collection-form{display:flex;gap:.35rem;margin-bottom:.4rem}.library-collection-form input{min-width:0;width:100%;padding:.4rem .5rem;border:1px solid hsl(var(--border));border-radius:7px;background:hsl(var(--card));color:hsl(var(--foreground));font-size:.75rem}.library-collection-form button{padding:.35rem .55rem;border:1px solid hsl(var(--border));border-radius:7px;background:hsl(var(--foreground));color:hsl(var(--background));font-size:.7rem;cursor:pointer}.library-results{min-width:0}.library-results-header{display:flex;align-items:center;justify-content:space-between;min-height:2.25rem;margin-bottom:1rem}.library-results-header>div{display:flex;align-items:baseline;gap:.6rem}.library-results-header h2{margin:0;font-size:1rem;font-weight:700}.library-results-header span{color:hsl(var(--muted-foreground));font-size:.72rem}.library-refreshing{animation:pulse 1.2s ease-in-out infinite}.library-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:22rem;padding:2rem;border:1px dashed hsl(var(--border));border-radius:14px;color:hsl(var(--muted-foreground));text-align:center}.library-empty h3{margin:.8rem 0 .25rem;color:hsl(var(--foreground));font-size:.95rem}.library-empty p{margin:0 0 1rem;font-size:.8rem}.library-load-more{display:flex;justify-content:center;padding:2rem 0 .5rem}.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-status-badge{position:absolute;left:.65rem;bottom:.55rem;z-index:1;padding:.18rem .4rem;border-radius:999px;background:#000000a8;color:#fff;font-size:.58rem;font-weight:750;letter-spacing:.03em;text-transform:uppercase;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.book-status-badge--reading{background:#196949db}.book-status-badge--finished{background:#2b5b8cdb}.book-status-badge--paused{background:#8a5c20e0}.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-detail{margin-top:.2rem;overflow:hidden;color:hsl(var(--muted-foreground));font-size:.65rem;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.book-card-tags{display:flex;gap:.25rem;margin-top:.35rem;overflow:hidden}.book-card-tags span{max-width:5.5rem;padding:.12rem .35rem;overflow:hidden;border-radius:999px;background:hsl(var(--accent));color:hsl(var(--muted-foreground));font-size:.58rem;text-overflow:ellipsis;white-space:nowrap}.book-card-search-match{margin-top:.35rem;color:hsl(var(--primary));font-size:.62rem;font-weight:650;line-height:1.35}.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}.review-root{min-height:100vh;background:radial-gradient(circle at top left,color-mix(in srgb,hsl(var(--accent)) 35%,transparent) 0%,transparent 28%),linear-gradient(180deg,hsl(var(--background)),color-mix(in srgb,hsl(var(--card)) 70%,hsl(var(--background))));color:hsl(var(--foreground))}.review-header-left{display:flex;align-items:center;gap:.85rem;min-width:0}.review-header-copy{display:flex;flex-direction:column;min-width:0}.review-header-subtitle{font-size:.75rem;color:hsl(var(--muted-foreground));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.review-main{max-width:1120px;margin:0 auto;padding:2.25rem 1.5rem 4rem}.review-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.review-dashboard-toggle{display:inline-flex;align-items:center;gap:.45rem;margin:-.5rem 0 1.25rem;padding:.55rem .75rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--card));color:hsl(var(--foreground));font-size:.8rem;font-weight:700;cursor:pointer}.review-dashboard{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(18rem,.9fr);gap:1rem;margin-bottom:1.5rem}.review-settings-panel,.review-statistics-panel,.review-managed-panel{padding:1rem;border:1px solid hsl(var(--border));border-radius:16px;background:color-mix(in srgb,hsl(var(--card)) 90%,transparent)}.review-managed-panel{grid-column:1/-1}.review-dashboard-heading{display:flex;align-items:flex-start;gap:.55rem;margin-bottom:.85rem}.review-dashboard-heading>svg{flex:none;margin-top:.15rem;color:hsl(var(--primary))}.review-dashboard-heading h2,.review-dashboard-heading p{margin:0}.review-dashboard-heading h2{font-size:.95rem}.review-dashboard-heading p{margin-top:.15rem;color:hsl(var(--muted-foreground));font-size:.72rem;line-height:1.4}.review-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;margin-bottom:.8rem}.review-preset-grid button{display:flex;flex-direction:column;gap:.15rem;min-width:0;padding:.6rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background));color:hsl(var(--foreground));text-align:left;cursor:pointer}.review-preset-grid button:hover{border-color:hsl(var(--ring))}.review-preset-grid button strong{font-size:.75rem}.review-preset-grid button span{color:hsl(var(--muted-foreground));font-size:.64rem;line-height:1.35}.review-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.review-settings-grid label{display:flex;flex-direction:column;gap:.25rem;color:hsl(var(--muted-foreground));font-size:.68rem;font-weight:650}.review-settings-grid label div{display:flex;align-items:center;border:1px solid hsl(var(--border));border-radius:9px;background:hsl(var(--background));overflow:hidden}.review-settings-grid label input{width:100%;min-width:0;min-height:2.25rem;padding:0 .5rem;border:none;background:transparent;color:hsl(var(--foreground))}.review-settings-grid label small{padding-right:.45rem;font-size:.62rem;font-weight:500}.review-settings-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin-top:.8rem}.review-settings-actions .review-primary-btn{padding:.6rem .8rem;font-size:.75rem}.review-settings-actions>span{color:hsl(var(--muted-foreground));font-size:.7rem}.review-rating-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem}.review-rating-stat-grid div{display:flex;flex-direction:column;gap:.1rem;padding:.55rem;border-radius:10px;background:hsl(var(--background));text-align:center}.review-rating-stat-grid strong{font-size:1.05rem}.review-rating-stat-grid span{color:hsl(var(--muted-foreground));font-size:.62rem}.review-activity-chart{display:flex;align-items:flex-end;gap:2px;height:7rem;margin-top:.85rem;padding-top:.5rem;border-bottom:1px solid hsl(var(--border))}.review-activity-chart span{flex:1;min-width:2px;border-radius:3px 3px 0 0;background:hsl(var(--primary)/.7)}.review-activity-chart span[data-count="0"]{background:hsl(var(--border))}.review-managed-list{display:flex;flex-direction:column;gap:.5rem}.review-managed-list article{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.7rem;border:1px solid hsl(var(--border));border-radius:11px;background:hsl(var(--background))}.review-managed-list article>div:first-child{display:flex;min-width:0;flex-direction:column;gap:.15rem}.review-managed-list article strong,.review-managed-list article span,.review-managed-list article small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-managed-list article strong{font-size:.78rem}.review-managed-list article span,.review-managed-list article small{color:hsl(var(--muted-foreground));font-size:.66rem}.review-managed-actions{display:flex;flex:none;gap:.4rem}.review-managed-actions button{display:inline-flex;align-items:center;gap:.3rem;min-height:2rem;padding:0 .55rem;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--card));color:hsl(var(--foreground));font-size:.68rem;cursor:pointer}.review-managed-actions button.confirm{border-color:hsl(var(--destructive)/.5);color:hsl(var(--destructive))}.review-managed-empty{margin:0;color:hsl(var(--muted-foreground));font-size:.75rem}.review-summary-card{display:flex;flex-direction:column;gap:.35rem;padding:1rem 1.1rem;border:1px solid hsl(var(--border));border-radius:16px;background:color-mix(in srgb,hsl(var(--card)) 85%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.review-summary-card strong{font-size:1.9rem;line-height:1;letter-spacing:-.04em}.review-summary-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground))}.review-error-banner{margin-bottom:1rem;padding:.9rem 1rem;border:1px solid color-mix(in srgb,#b91c1c 30%,hsl(var(--border)));border-radius:12px;background:color-mix(in srgb,#b91c1c 10%,hsl(var(--card)));color:hsl(var(--foreground))}.review-card{border:1px solid hsl(var(--border));border-radius:24px;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,hsl(var(--card)) 92%,transparent),hsl(var(--card)));box-shadow:0 20px 60px #00000014}.review-card-topline{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border-bottom:1px solid hsl(var(--border));background:color-mix(in srgb,hsl(var(--accent)) 24%,transparent)}.review-card-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .7rem;border-radius:999px;background:hsl(var(--foreground));color:hsl(var(--background));font-size:.78rem;font-weight:700}.review-card-meta{font-size:.85rem;color:hsl(var(--muted-foreground));text-align:right}.review-card-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}.review-card-column{padding:1.35rem}.review-card-column--prompt{border-right:1px solid hsl(var(--border))}.review-card-column--answer{background:color-mix(in srgb,hsl(var(--accent)) 16%,transparent)}.review-card-kicker{display:inline-flex;align-items:center;gap:.5rem;font-size:.82rem;color:hsl(var(--muted-foreground));margin-bottom:1rem}.review-prompt-stack,.review-context-stack{display:flex;flex-direction:column;gap:.9rem}.review-prompt-quote,.review-context-quote{margin:0;padding:1rem 1.1rem;border-radius:18px;background:color-mix(in srgb,hsl(var(--background)) 72%,transparent);border:1px solid color-mix(in srgb,hsl(var(--border)) 88%,transparent);line-height:1.65}.review-prompt-quote{font-family:"Source Serif 4",serif;font-size:1.2rem;letter-spacing:-.01em}.review-context-quote{font-size:.95rem}.review-prompt-separator{display:inline-block;margin-right:.45rem;color:hsl(var(--muted-foreground))}.review-card-inline-meta{display:flex;flex-wrap:wrap;gap:.65rem 1rem;margin-top:1rem;font-size:.8rem;color:hsl(var(--muted-foreground))}.review-card-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.2rem}.review-primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.8rem 1.1rem;border-radius:12px;border:1px solid transparent;background:hsl(var(--foreground));color:hsl(var(--background));font-weight:700;cursor:pointer;transition:transform .15s ease,opacity .15s ease}.review-primary-btn:hover:not(:disabled){transform:translateY(-1px)}.review-primary-btn:disabled{opacity:.6;cursor:not-allowed}.review-answer-placeholder{display:flex;height:100%;min-height:320px;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.35rem;color:hsl(var(--muted-foreground))}.review-answer-placeholder p{margin:0}.review-answer-placeholder-subtle{font-size:.85rem}.review-answer-panel+.review-answer-panel{margin-top:1rem}.review-answer-heading{display:inline-flex;align-items:center;gap:.45rem;margin-bottom:.65rem;font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:hsl(var(--muted-foreground))}.review-answer-copy{margin:0;padding:1rem 1.05rem;border-radius:18px;background:color-mix(in srgb,hsl(var(--background)) 78%,transparent);border:1px solid color-mix(in srgb,hsl(var(--border)) 88%,transparent);white-space:pre-wrap;line-height:1.65}.review-rating-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1.1rem}.review-rating-btn{padding:.85rem .9rem;border:1px solid hsl(var(--border));border-radius:14px;font-weight:700;cursor:pointer;background:hsl(var(--card));color:hsl(var(--foreground));transition:transform .15s ease,background .15s ease,opacity .15s ease}.review-rating-btn:hover:not(:disabled){transform:translateY(-1px)}.review-rating-btn:disabled{opacity:.6;cursor:wait}.review-rating-btn--again{background:color-mix(in srgb,#d97706 18%,hsl(var(--card)))}.review-rating-btn--good{background:color-mix(in srgb,#2563eb 14%,hsl(var(--card)))}.review-rating-btn--easy{background:color-mix(in srgb,#059669 16%,hsl(var(--card)))}.review-empty{display:flex;flex-direction:column;align-items:center;gap:.8rem;padding:4rem 1.5rem;text-align:center;border:1px solid hsl(var(--border));border-radius:24px;background:color-mix(in srgb,hsl(var(--card)) 92%,transparent)}.review-empty h2,.review-empty p{margin:0}.review-empty p{max-width:34rem;color:hsl(var(--muted-foreground));line-height:1.65}@media(max-width:900px){.review-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.review-dashboard{grid-template-columns:1fr}.review-managed-panel{grid-column:auto}.review-card-body{grid-template-columns:1fr}.review-card-column--prompt{border-right:none;border-bottom:1px solid hsl(var(--border))}}@media(max-width:640px){.library-navbar{padding:0 1rem}.review-main{padding:1.5rem 1rem 3rem}.review-summary,.review-preset-grid,.review-settings-grid{grid-template-columns:1fr}.review-managed-list article{align-items:stretch;flex-direction:column}.review-managed-actions button{flex:1;justify-content:center}.review-header-subtitle,.review-card-meta{display:none}.review-card-topline{align-items:flex-start}.review-card-column{padding:1rem}.review-prompt-quote{font-size:1.05rem}.review-rating-row{grid-template-columns:1fr}}.insights-root{min-height:100vh;background:radial-gradient(circle at 88% 0%,color-mix(in srgb,#7c5ce7 12%,transparent),transparent 30rem),radial-gradient(circle at 5% 32%,color-mix(in srgb,#0e9f6e 8%,transparent),transparent 26rem),hsl(var(--background));color:hsl(var(--foreground))}.insights-header-left,.insights-card-heading,.insights-form-actions,.insights-privacy{display:flex;align-items:center}.insights-header-left{gap:.5rem}.insights-main{width:min(1180px,100% - 2rem);margin:0 auto;padding:3rem 0 5rem}.insights-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:2rem}.insights-hero h1{margin:.18rem 0 .45rem;font-size:clamp(1.8rem,3.6vw,2.65rem);font-weight:750;letter-spacing:-.045em}.insights-hero>div:first-child>p:last-child{max-width:42rem;margin:0;color:hsl(var(--muted-foreground));line-height:1.55}.insights-eyebrow{margin:0;color:color-mix(in srgb,#6c4fd3 82%,hsl(var(--foreground)));font-size:.7rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.insights-range{display:flex;flex:0 0 auto;gap:.25rem;padding:.25rem;border:1px solid hsl(var(--border));border-radius:.75rem;background:hsl(var(--card))}.insights-range button{min-height:2.15rem;padding:.35rem .75rem;border:0;border-radius:.5rem;background:transparent;color:hsl(var(--muted-foreground));font-size:.76rem;font-weight:700;cursor:pointer}.insights-range button:hover,.insights-range button.active{background:hsl(var(--accent));color:hsl(var(--foreground))}.insights-range button:focus-visible{outline:3px solid hsl(var(--ring)/.22);outline-offset:1px}.insights-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}.insights-summary-card{display:flex;align-items:flex-start;gap:.85rem;min-width:0;padding:1.1rem;border:1px solid hsl(var(--border));border-radius:1rem;background:color-mix(in srgb,hsl(var(--card)) 94%,transparent);box-shadow:0 16px 42px hsl(var(--foreground)/.035)}.insights-summary-card>div:last-child{display:grid;min-width:0;gap:.18rem}.insights-summary-card p,.insights-summary-card strong,.insights-summary-card span{margin:0}.insights-summary-card p{color:hsl(var(--muted-foreground));font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.insights-summary-card strong{overflow:hidden;font-size:1.25rem;letter-spacing:-.025em;text-overflow:ellipsis;white-space:nowrap}.insights-summary-card span{color:hsl(var(--muted-foreground));font-size:.7rem;line-height:1.4}.insights-summary-card--complete{border-color:color-mix(in srgb,#0e9f6e 40%,hsl(var(--border)));background:color-mix(in srgb,#0e9f6e 7%,hsl(var(--card)))}.insights-summary-card--complete .insights-summary-icon{background:color-mix(in srgb,#0e9f6e 16%,hsl(var(--card)));color:color-mix(in srgb,#0e9f6e 72%,hsl(var(--foreground)))}.insights-summary-icon{display:grid;width:2.5rem;height:2.5rem;flex:0 0 auto;place-items:center;border-radius:.75rem;background:hsl(var(--accent));color:hsl(var(--muted-foreground))}.insights-summary-icon svg{width:1.15rem;height:1.15rem}.insights-dashboard{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(17rem,.8fr);gap:1rem}.insights-card,.insights-loading,.insights-error,.insights-privacy{border:1px solid hsl(var(--border));border-radius:1rem;background:color-mix(in srgb,hsl(var(--card)) 95%,transparent);box-shadow:0 18px 48px hsl(var(--foreground)/.04)}.insights-card{padding:1.25rem}.insights-card-heading{justify-content:space-between;gap:1rem;padding-bottom:1rem}.insights-card-heading h2{margin:.18rem 0 0;font-size:1rem;font-weight:750}.insights-card-heading>svg{width:1.15rem;height:1.15rem;color:hsl(var(--muted-foreground))}.insights-chart-card{grid-row:span 2;min-width:0}.insights-chart-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.75rem;color:hsl(var(--muted-foreground));font-size:.65rem}.insights-chart-legend span{display:inline-flex;align-items:center;gap:.3rem}.insights-chart-legend i{width:.55rem;height:.55rem;border-radius:.15rem;background:#7659d8}.insights-chart-legend i.goal{height:2px;background:#0e9f6e}.insights-chart-wrap{overflow-x:auto;padding-top:.5rem}.insights-chart-wrap:focus-visible{outline:3px solid hsl(var(--ring)/.22);outline-offset:2px}.insights-chart{position:relative;min-width:32rem;height:18rem;border-bottom:1px solid hsl(var(--border));background-image:linear-gradient(to bottom,hsl(var(--border)/.45) 1px,transparent 1px);background-size:100% 25%}.insights-chart ol{position:absolute;inset:0;display:flex;align-items:flex-end;gap:clamp(2px,.35vw,6px);margin:0;padding:0 0 1.25rem;list-style:none}.insights-chart li{position:relative;display:flex;height:100%;min-width:3px;flex:1 1 0;align-items:flex-end;justify-content:center}.insights-chart small{position:absolute;bottom:-1.05rem;color:hsl(var(--muted-foreground));font-size:.55rem}.insights-goal-line{position:absolute;z-index:1;top:var(--goal-line);right:0;left:0;border-top:1px dashed color-mix(in srgb,#0e9f6e 75%,hsl(var(--foreground)));pointer-events:none}.insights-bar{z-index:2;width:min(100%,1.15rem);min-height:2px;border-radius:.25rem .25rem 0 0;background:color-mix(in srgb,#7659d8 78%,hsl(var(--foreground)));transition:height .2s ease}.insights-bar--goal{background:color-mix(in srgb,#0e9f6e 78%,hsl(var(--foreground)))}.insights-chart-footer{display:flex;justify-content:space-between;padding-top:.6rem;color:hsl(var(--muted-foreground));font-size:.65rem}.insights-goal-form{display:grid;gap:.85rem}.insights-goal-form label{display:grid;gap:.32rem}.insights-goal-form label>span{font-size:.73rem;font-weight:700}.insights-goal-form input{width:100%;min-height:2.45rem;padding:.5rem .65rem;border:1px solid hsl(var(--border));border-radius:.55rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.8rem}.insights-goal-form input:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring)/.12)}.insights-goal-form small{color:hsl(var(--muted-foreground));font-size:.66rem;line-height:1.4}.insights-form-actions{flex-wrap:wrap;gap:.65rem;padding-top:.2rem}.insights-form-actions button,.insights-form-actions span{font-size:.72rem}.insights-form-actions button{display:inline-flex;min-height:2.25rem;align-items:center;gap:.4rem;padding:.4rem .8rem;border:1px solid hsl(var(--foreground));border-radius:.55rem;background:hsl(var(--foreground));color:hsl(var(--background));font-weight:700;cursor:pointer}.insights-form-actions button:disabled{opacity:.48;cursor:not-allowed}.insights-form-actions button svg{width:.9rem;height:.9rem}.insights-form-actions span{color:hsl(var(--foreground))}.insights-detail-list{display:grid;gap:0;margin:0}.insights-detail-list div{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;padding:.78rem 0;border-top:1px solid hsl(var(--border))}.insights-detail-list dt{color:hsl(var(--muted-foreground));font-size:.7rem}.insights-detail-list dd{margin:0;font-size:.76rem;font-weight:700;text-align:right}.insights-privacy{grid-column:1/-1;align-items:flex-start;gap:.8rem;padding:1rem 1.15rem;border-color:color-mix(in srgb,#0e9f6e 28%,hsl(var(--border)));background:color-mix(in srgb,#0e9f6e 6%,hsl(var(--card)))}.insights-privacy>svg{width:1.15rem;height:1.15rem;flex:0 0 auto;margin-top:.1rem;color:color-mix(in srgb,#0e9f6e 72%,hsl(var(--foreground)))}.insights-privacy h2{margin:0 0 .2rem;font-size:.8rem}.insights-privacy p{margin:0;color:hsl(var(--foreground));font-size:.7rem;line-height:1.55}.insights-loading,.insights-error{display:flex;min-height:16rem;align-items:center;justify-content:center;gap:.55rem;padding:2rem;color:hsl(var(--muted-foreground));font-size:.85rem;text-align:center}.insights-loading svg,.insights-error svg{width:1rem;height:1rem;animation:insights-spin .85s linear infinite}.insights-error{flex-direction:column;color:hsl(var(--foreground))}.insights-error p{margin:0}.insights-error button{min-height:2.2rem;padding:.4rem .8rem;border:1px solid hsl(var(--border));border-radius:.55rem;background:hsl(var(--background));color:hsl(var(--foreground));cursor:pointer}.insights-inline-error{margin:0 0 1rem;font-size:.78rem}@keyframes insights-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.insights-loading svg{animation:none}.insights-bar{transition:none}}@media(max-width:920px){.insights-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.insights-dashboard{grid-template-columns:1fr}.insights-chart-card{grid-row:auto}.insights-privacy{grid-column:auto}}@media(max-width:640px){.insights-root .library-logo,.insights-root .library-nav-btn span{display:none}.insights-main{padding:1.75rem 0 3rem}.insights-hero{align-items:stretch;flex-direction:column;gap:1.1rem}.insights-range{width:100%}.insights-range button{flex:1}.insights-summary{grid-template-columns:1fr}.insights-chart-legend{display:none}.insights-card{padding:1rem}}.account-root{min-height:100vh;background:radial-gradient(circle at 8% 0%,hsl(var(--accent)/.7),transparent 28rem),hsl(var(--background));color:hsl(var(--foreground))}.account-header-left,.account-card-heading,.account-card-heading-copy,.account-form-actions,.account-session,.account-current-badge{display:flex;align-items:center}.account-header-left{gap:.5rem}.account-main{width:min(1100px,100% - 2rem);margin:0 auto;padding:3.25rem 0 5rem}.account-hero{display:flex;align-items:center;gap:1.25rem;margin-bottom:2rem}.account-hero h1{margin:.2rem 0 .35rem;font-size:clamp(1.65rem,3vw,2.35rem);font-weight:700;letter-spacing:-.035em}.account-hero p:last-child{margin:0;color:hsl(var(--muted-foreground))}.account-avatar{display:grid;place-items:center;width:4.25rem;height:4.25rem;flex:0 0 auto;border:1px solid hsl(var(--border));border-radius:1.25rem;background:hsl(var(--card));box-shadow:0 14px 35px hsl(var(--foreground)/.08)}.account-avatar svg{width:1.8rem;height:1.8rem}.account-eyebrow{margin:0;color:hsl(var(--muted-foreground));font-size:.72rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.account-card,.account-loading,.account-error{border:1px solid hsl(var(--border));border-radius:1rem;background:hsl(var(--card));box-shadow:0 18px 48px hsl(var(--foreground)/.045)}.account-card{padding:1.35rem}.account-card--wide{grid-column:1/-1}.account-card-heading{align-items:flex-start;gap:.75rem;padding-bottom:1rem;border-bottom:1px solid hsl(var(--border))}.account-card-heading>svg,.account-card-heading .account-card-heading-copy>svg{width:1.15rem;height:1.15rem;margin-top:.15rem;color:hsl(var(--muted-foreground))}.account-card-heading h2{margin:0;font-size:1rem;font-weight:700}.account-card-heading p{margin:.2rem 0 0;color:hsl(var(--muted-foreground));font-size:.78rem;line-height:1.45}.account-card-heading--actions{justify-content:space-between;gap:1rem}.account-card-heading-copy{align-items:flex-start;gap:.75rem}.account-form{display:grid;gap:.9rem;padding-top:1rem}.account-form label{display:grid;gap:.38rem}.account-form label>span{font-size:.75rem;font-weight:650}.account-form input{width:100%;min-height:2.55rem;padding:.55rem .7rem;border:1px solid hsl(var(--border));border-radius:.6rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.85rem}.account-form input:-moz-read-only{color:hsl(var(--muted-foreground));cursor:not-allowed}.account-form input:read-only{color:hsl(var(--muted-foreground));cursor:not-allowed}.account-form input:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring)/.12)}.account-form small{color:hsl(var(--muted-foreground));font-size:.7rem}.account-member-since{margin:0;color:hsl(var(--muted-foreground));font-size:.75rem}.account-pending-email{display:grid;gap:.3rem;padding:.75rem .85rem;border:1px solid hsl(var(--border));border-radius:.65rem;background:hsl(var(--accent)/.55);font-size:.76rem}.account-pending-email strong{font-size:.78rem}.account-pending-email span{overflow-wrap:anywhere}.account-pending-email small{color:hsl(var(--foreground));line-height:1.45}.account-pending-email button{width:-moz-max-content;width:max-content;margin-top:.35rem}.account-recovery-state{display:grid;gap:.2rem;padding:.7rem .8rem;border:1px solid hsl(var(--border));border-radius:.65rem;background:hsl(var(--accent)/.48)}.account-recovery-state strong{font-size:.78rem}.account-recovery-state span{color:hsl(var(--foreground));font-size:.7rem;line-height:1.45}.account-recovery-reveal{display:grid;gap:.55rem;padding:.85rem;border:1px solid color-mix(in srgb,#0e9f6e 38%,hsl(var(--border)));border-radius:.7rem;background:color-mix(in srgb,#0e9f6e 7%,hsl(var(--card)))}.account-recovery-reveal>strong{font-size:.8rem}.account-recovery-reveal code{display:block;overflow-wrap:anywhere;color:hsl(var(--foreground));font-size:.88rem;font-weight:750;letter-spacing:.035em;-webkit-user-select:all;-moz-user-select:all;user-select:all}.account-recovery-reveal p{margin:0;color:hsl(var(--foreground));font-size:.7rem;line-height:1.45}.account-recovery-reveal>div{display:flex;flex-wrap:wrap;gap:.5rem}.account-recovery-reveal button{display:inline-flex;align-items:center;gap:.35rem}.account-recovery-reveal button svg{width:.8rem;height:.8rem}.auth-error-message{padding-left:.65rem;border-left:3px solid #b42318;color:hsl(var(--foreground))}.account-form-actions{flex-wrap:wrap;gap:.7rem;min-height:2.25rem;padding-top:.15rem}.account-form-actions span{color:hsl(var(--muted-foreground));font-size:.76rem}.account-primary-button,.account-secondary-button,.account-session-revoke{border-radius:.55rem;font-size:.78rem;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s,opacity .15s}.account-primary-button:disabled,.account-secondary-button:disabled,.account-session-revoke:disabled{opacity:.48;cursor:not-allowed}.account-primary-button{min-height:2.25rem;padding:.45rem .85rem;border:1px solid hsl(var(--foreground));background:hsl(var(--foreground));color:hsl(var(--background))}.account-primary-button:hover:not(:disabled){opacity:.88}.account-secondary-button,.account-session-revoke{min-height:2.1rem;padding:.4rem .75rem;border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground))}.account-secondary-button:hover:not(:disabled),.account-session-revoke:hover:not(:disabled){border-color:hsl(var(--foreground)/.25);background:hsl(var(--accent))}.account-session-list{display:grid}.account-session{gap:.9rem;padding:1rem 0;border-bottom:1px solid hsl(var(--border))}.account-session:last-child{border-bottom:0}.account-session-icon{display:grid;place-items:center;width:2.6rem;height:2.6rem;flex:0 0 auto;border-radius:.75rem;background:hsl(var(--accent));color:hsl(var(--muted-foreground))}.account-session-icon svg{width:1.15rem;height:1.15rem}.account-session-copy{min-width:0;flex:1}.account-session-copy h3{margin:0;font-size:.86rem;font-weight:700}.account-session-copy p{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;margin:.25rem 0 0;color:hsl(var(--muted-foreground));font-size:.72rem}.account-session-copy small{color:hsl(var(--muted-foreground));font-size:.68rem}.account-current-badge{gap:.2rem;color:hsl(var(--foreground));font-weight:700}.account-current-badge svg{width:.78rem;height:.78rem}.account-session-revoke{flex:0 0 auto;color:#b42318}.account-session-status{margin:.25rem 0 0;color:hsl(var(--muted-foreground));font-size:.76rem}.account-passkey-list{display:grid;padding-top:.25rem}.account-passkey{display:flex;align-items:center;gap:.9rem;padding:1rem 0;border-bottom:1px solid hsl(var(--border))}.account-passkey-copy{min-width:0;flex:1}.account-passkey-copy input{width:min(100%,22rem);min-height:2.25rem;padding:.45rem .65rem;border:1px solid hsl(var(--border));border-radius:.55rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.82rem;font-weight:700}.account-passkey-copy input:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring)/.12)}.account-passkey-copy p{margin:.3rem 0 0;color:hsl(var(--muted-foreground));font-size:.72rem}.account-passkey-copy small{color:hsl(var(--muted-foreground));font-size:.68rem}.account-passkey-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}.account-passkey-form{max-width:42rem;border-top:1px solid hsl(var(--border))}.account-passkey-empty{margin:1rem 0 0;color:hsl(var(--muted-foreground));font-size:.78rem;line-height:1.5}.account-danger-card{border-color:color-mix(in srgb,#b42318 30%,hsl(var(--border)))}.account-danger-card .account-card-heading>svg{color:#b42318}.account-delete-form{max-width:38rem}.account-export-form{max-width:42rem}.account-export-note{padding:.75rem .85rem;border:1px solid hsl(var(--border));border-radius:.65rem;background:hsl(var(--accent)/.55);color:hsl(var(--foreground));font-size:.76rem;line-height:1.55}.account-delete-warning{padding:.75rem .85rem;border:1px solid color-mix(in srgb,#b42318 24%,hsl(var(--border)));border-radius:.65rem;background:color-mix(in srgb,#b42318 7%,hsl(var(--background)));color:hsl(var(--foreground));font-size:.76rem;line-height:1.55}.account-delete-button{min-height:2.25rem;padding:.45rem .85rem;border:1px solid #b42318;border-radius:.55rem;background:#b42318;color:#fff;font-size:.78rem;font-weight:700;cursor:pointer;transition:background .15s,opacity .15s}.account-delete-button:hover:not(:disabled){background:#912018}.account-delete-button:disabled{opacity:.48;cursor:not-allowed}.account-loading,.account-error{padding:2.5rem;text-align:center;color:hsl(var(--muted-foreground))}.account-loading{display:flex;align-items:center;justify-content:center;gap:.5rem}.account-error p{margin:0 0 1rem}.account-spinner{width:1rem;height:1rem;animation:account-spin .8s linear infinite}@keyframes account-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.account-spinner{animation:none}}@media(max-width:760px){.account-main{padding-top:2rem}.account-grid{grid-template-columns:1fr}.account-card--wide{grid-column:auto}.account-card-heading--actions{align-items:stretch;flex-direction:column}.account-card-heading--actions .account-secondary-button{width:100%}}@media(max-width:560px){.account-main{width:min(100% - 1.25rem,1100px)}.account-hero{align-items:flex-start}.account-avatar{width:3.4rem;height:3.4rem;border-radius:1rem}.account-passkey{align-items:flex-start;flex-wrap:wrap}.account-passkey-copy{flex-basis:calc(100% - 3.5rem)}.account-passkey-actions{width:100%;padding-left:3.5rem;justify-content:flex-start}.account-session{align-items:flex-start;flex-wrap:wrap}.account-session-revoke{width:100%}.account-header-left .library-logo,.account-root .library-nav-btn span{display:none}}.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-card-actions,.book-card-wrapper:focus-within .book-card-actions{opacity:1}.book-card-actions{position:absolute;top:.35rem;right:.35rem;z-index:2;display:flex;gap:.25rem;opacity:0;transition:opacity .15s}.book-card-actions button{display:grid;place-items:center;width:1.75rem;height:1.75rem;padding:0;border:0;border-radius:50%;background:#000000a8;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.book-card-actions button:hover,.book-card-actions button.active{background:#297452f0}.book-card-actions button.danger:hover{background:#c0392b}.book-card-actions button:disabled{opacity:.48;cursor:not-allowed}.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}.ai-assistant-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:1.5rem;background:#0f172ab8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.ai-assistant{width:min(1120px,100%);max-height:min(900px,100vh - 3rem);overflow:auto;border:1px solid var(--border-color, #d9dde7);border-radius:1.25rem;background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:0 32px 90px #0f172a59}.ai-assistant-header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border-color, #e3e6ed);background:color-mix(in srgb,hsl(var(--background)) 94%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.ai-assistant-header h2{margin:.15rem 0 0;font-size:1.65rem}.ai-assistant-header button{border:0;background:transparent;color:inherit;cursor:pointer}.ai-assistant-header button:focus-visible{outline:3px solid hsl(var(--ring)/35%);outline-offset:3px}.ai-assistant-eyebrow{display:flex;align-items:center;gap:.4rem;color:hsl(var(--muted-foreground));font-size:.75rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.ai-assistant-eyebrow svg{width:1rem;height:1rem}.ai-assistant-status,.ai-assistant-error{display:flex;align-items:center;gap:.5rem;margin:0;padding:.7rem 1.5rem;border-bottom:1px solid var(--border-color, #e3e6ed);font-size:.86rem}.ai-assistant-error{color:#a21b2d;background:#fff1f2}.ai-assistant-error svg{width:1rem;height:1rem;flex:none}.ai-assistant-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(420px,1.6fr);min-height:560px}.ai-assistant-controls{padding:1.25rem;border-right:1px solid var(--border-color, #e3e6ed);background:hsl(var(--muted)/32%)}.ai-assistant-controls fieldset{min-width:0;margin:0 0 1rem;padding:0;border:0}.ai-assistant-controls legend,.ai-assistant-controls .ai-provider-control>span{display:flex;justify-content:space-between;width:100%;margin-bottom:.35rem;font-size:.88rem;font-weight:750}.ai-assistant-controls fieldset>p,.ai-assistant-controls .ai-privacy-copy,.ai-assistant-controls .ai-quota{margin:0 0 .65rem;color:hsl(var(--foreground));font-size:.76rem;line-height:1.45}.ai-assistant-controls select{width:100%;min-height:2.6rem;border:1px solid var(--border-color, #ccd2dd);border-radius:.65rem;padding:0 .7rem;background:hsl(var(--background));color:inherit}.ai-book-scope{max-height:220px;overflow:auto;border:1px solid var(--border-color, #d9dde7);border-radius:.75rem;background:hsl(var(--background))}.ai-book-scope label{display:flex;gap:.6rem;align-items:flex-start;padding:.65rem .75rem;border-bottom:1px solid var(--border-color, #eceef3);cursor:pointer;font-size:.82rem}.ai-book-scope label:last-child{border-bottom:0}.ai-book-scope input{margin-top:.15rem;accent-color:hsl(var(--primary))}.ai-provider-control{display:block;margin-bottom:1rem}.ai-privacy-controls{display:grid;gap:.75rem;margin-bottom:.75rem}.ai-excerpt-policy{margin:0;border-left:2px solid hsl(var(--border));padding-left:.65rem;color:hsl(var(--foreground));font-size:.78rem;line-height:1.45}.ai-privacy-controls label{display:grid;grid-template-columns:auto 1fr;gap:.5rem;align-items:center;font-size:.78rem;line-height:1.4}.ai-privacy-controls label:has(select){grid-template-columns:1fr}.ai-privacy-controls input{accent-color:hsl(var(--primary))}.ai-privacy-controls button{display:flex;gap:.4rem;align-items:center;justify-content:center;min-height:2.35rem;border:1px solid var(--border-color, #ccd2dd);border-radius:.6rem;background:transparent;color:inherit;cursor:pointer}.ai-privacy-controls button svg{width:.9rem;height:.9rem}.ai-assistant-conversation{display:flex;min-width:0;flex-direction:column;padding:1.25rem}.ai-assistant-conversation form>label{display:block;margin-bottom:.45rem;font-size:.88rem;font-weight:750}.ai-assistant-conversation textarea{box-sizing:border-box;width:100%;resize:vertical;border:1px solid var(--border-color, #ccd2dd);border-radius:.8rem;padding:.8rem;background:hsl(var(--background));color:inherit;font:inherit;line-height:1.5}.ai-assistant-conversation textarea:focus-visible,.ai-assistant-controls select:focus-visible{outline:3px solid hsl(var(--ring)/25%);border-color:hsl(var(--ring))}.ai-question-actions{display:flex;gap:1rem;align-items:center;justify-content:space-between;margin-top:.65rem}.ai-question-actions>span{overflow:hidden;color:hsl(var(--muted-foreground));font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.ai-question-actions button{display:flex;gap:.45rem;align-items:center;min-height:2.45rem;border:0;border-radius:.7rem;padding:0 1rem;background:hsl(var(--primary));color:hsl(var(--primary-foreground));font-weight:700;cursor:pointer}.ai-question-actions button:disabled{opacity:.45;cursor:not-allowed}.ai-question-actions button.ai-cancel{background:#9f2435}.ai-question-actions svg{width:1rem;height:1rem}.ai-answer{flex:1;min-height:180px;margin-top:1rem;border:1px solid var(--border-color, #e0e3ea);border-radius:.85rem;padding:1rem;background:hsl(var(--muted)/25%);line-height:1.65}.ai-answer p{margin:0 0 .8rem}.ai-answer p:last-child{margin-bottom:0}.ai-answer-placeholder{display:flex;gap:.5rem;align-items:center;color:hsl(var(--foreground))}.ai-answer-placeholder svg{width:1rem;height:1rem;animation:spin 1s linear infinite}.ai-citations{margin-top:1rem}.ai-citations h3{margin:0 0 .5rem;font-size:.85rem}.ai-citations a{display:grid;gap:.15rem;margin-bottom:.5rem;border:1px solid var(--border-color, #e0e3ea);border-radius:.7rem;padding:.65rem .75rem;color:inherit;text-decoration:none}.ai-citations a:hover{border-color:hsl(var(--foreground)/30%);background:hsl(var(--accent)/45%)}.ai-citations strong{font-size:.8rem}.ai-citations span,.ai-citations small{color:hsl(var(--muted-foreground));font-size:.72rem}.ai-citations small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-result-meta{margin:.75rem 0 0;color:hsl(var(--muted-foreground));font-size:.7rem}.note-generated-image{margin:0}.note-generated-image img{display:block;width:100%;max-height:480px;border-radius:.6rem;-o-object-fit:contain;object-fit:contain}.note-generated-image figcaption,.note-generated-image-error{margin-top:.45rem;color:hsl(var(--muted-foreground));font-size:.72rem;line-height:1.4}@media(max-width:780px){.ai-assistant-backdrop{align-items:end;padding:0}.ai-assistant{width:100%;max-height:96dvh;border-radius:1.1rem 1.1rem 0 0}.ai-assistant-layout{grid-template-columns:1fr}.ai-assistant-controls{border-right:0;border-bottom:1px solid var(--border-color, #e3e6ed)}.ai-question-actions{align-items:stretch;flex-direction:column}.ai-question-actions button{justify-content:center}}.route-loading{display:grid;min-height:100dvh;place-items:center;color:hsl(var(--muted-foreground));font-weight:650}.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}.library-editor{max-width:720px;max-height:calc(100vh - 2rem);overflow-y:auto}.library-editor-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.library-editor-header .modal-title{margin-bottom:.2rem}.library-editor-header p{margin:0;color:hsl(var(--muted-foreground));font-size:.72rem}.library-icon-btn{display:grid;place-items:center;flex:none;width:2rem;height:2rem;padding:0;border:0;border-radius:8px;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer}.library-icon-btn:hover{background:hsl(var(--accent))}.offline-library-modal{max-width:640px;max-height:calc(100vh - 2rem);overflow-y:auto}.offline-library-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.offline-library-heading .modal-title{margin-bottom:.2rem}.offline-library-heading p{margin:0;color:hsl(var(--muted-foreground));font-size:.78rem}.offline-storage-summary{margin-bottom:1rem;padding:.8rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background))}.offline-storage-summary>div:first-child{display:flex;align-items:center;gap:.55rem;font-size:.78rem}.offline-storage-summary small{display:block;margin-top:.35rem;color:hsl(var(--muted-foreground));font-size:.68rem}.offline-storage-track{height:.35rem;margin-top:.7rem;overflow:hidden;border-radius:999px;background:hsl(var(--muted))}.offline-storage-track span{display:block;height:100%;border-radius:inherit;background:#2f855a}.offline-book-list{display:flex;flex-direction:column;gap:.55rem}.offline-book-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid hsl(var(--border))}.offline-book-row>div{display:flex;min-width:0;flex-direction:column;gap:.15rem}.offline-book-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.offline-book-row span{color:hsl(var(--muted-foreground));font-size:.68rem}.offline-book-row .modal-btn{display:inline-flex;flex:none;align-items:center;gap:.35rem}.offline-book-empty{display:flex;flex-direction:column;align-items:center;gap:.55rem;padding:1.5rem;color:hsl(var(--muted-foreground));text-align:center;font-size:.8rem}.sync-status{position:fixed;right:1rem;bottom:1rem;z-index:45;display:inline-flex;align-items:center;gap:.4rem;min-height:2rem;padding:.35rem .65rem;border:1px solid hsl(var(--border));border-radius:999px;box-shadow:0 5px 20px #00000024;background:hsl(var(--card));color:hsl(var(--muted-foreground));font-size:.68rem;font-weight:600;cursor:default;animation:sync-status-enter .18s ease-out}.sync-status--offline{color:#9c650c}.sync-status--syncing{color:#2563a7;cursor:pointer}.sync-status--conflict{border-color:color-mix(in srgb,#c0392b 42%,hsl(var(--border)));color:#c0392b;cursor:pointer}.sync-status--synced{color:#246b48}@keyframes sync-status-enter{0%{transform:translateY(4px);opacity:0}to{transform:translateY(0);opacity:1}}.sync-conflict-modal{max-width:700px;max-height:calc(100vh - 2rem);overflow-y:auto}.sync-conflict-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.sync-conflict-heading .modal-title{margin-bottom:.2rem}.sync-conflict-heading p{margin:0;color:hsl(var(--muted-foreground));font-size:.78rem;line-height:1.45}.sync-conflict-list{display:flex;flex-direction:column;gap:.7rem}.sync-conflict-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem;border:1px solid hsl(var(--border));border-radius:10px;background:hsl(var(--background))}.sync-conflict-row>div{display:flex;min-width:0;flex-direction:column;gap:.18rem}.sync-conflict-row>div:last-child{flex-direction:row;flex:none}.sync-conflict-row strong{font-size:.8rem}.sync-conflict-row span{color:hsl(var(--muted-foreground));font-size:.7rem}.sync-conflict-row code{color:hsl(var(--muted-foreground));font-size:.62rem}.sync-conflict-local{border-color:hsl(var(--foreground));background:hsl(var(--foreground));color:hsl(var(--background))}.sync-conflict-empty{padding:1rem;color:hsl(var(--muted-foreground));text-align:center;font-size:.8rem}.library-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-bottom:.8rem}.library-editor-grid label,.library-editor-field,.library-editor-cover-row>label{display:flex;flex-direction:column;gap:.3rem;color:hsl(var(--muted-foreground));font-size:.7rem;font-weight:700}.library-editor-grid label input,.library-editor-grid label select,.library-editor-grid label textarea,.library-editor-field input,.library-editor-field select,.library-editor-field textarea,.library-editor-cover-row>label input,.library-editor-cover-row>label select,.library-editor-cover-row>label textarea{width:100%;padding:.55rem .65rem;border:1px solid hsl(var(--border));border-radius:8px;background:hsl(var(--background));color:hsl(var(--foreground));font:inherit;font-size:.8rem;font-weight:400}.library-editor-grid label input:focus,.library-editor-grid label select:focus,.library-editor-grid label textarea:focus,.library-editor-field input:focus,.library-editor-field select:focus,.library-editor-field textarea:focus,.library-editor-cover-row>label input:focus,.library-editor-cover-row>label select:focus,.library-editor-cover-row>label textarea:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring)/.1)}.library-editor-grid label textarea,.library-editor-field textarea,.library-editor-cover-row>label textarea{resize:vertical}.library-editor-field{margin-bottom:.8rem}.library-editor-field>span{font-size:.65rem;font-weight:400}.library-editor-collections{display:flex;flex-wrap:wrap;gap:.4rem .9rem;margin:0 0 .8rem;padding:.7rem;border:1px solid hsl(var(--border));border-radius:8px}.library-editor-collections legend{padding:0 .3rem;color:hsl(var(--muted-foreground));font-size:.7rem;font-weight:700}.library-editor-collections label{display:flex;align-items:center;gap:.35rem;font-size:.75rem}.library-editor-collections p{width:100%;margin:0;color:hsl(var(--muted-foreground));font-size:.72rem}.library-editor-cover-row{display:flex;align-items:flex-end;gap:1rem;margin-bottom:.8rem}.library-editor-cover-row>label:first-child{flex:1}.library-editor-cover-row input[type=file]{font-size:.72rem}.library-editor-check{display:flex;flex-direction:row!important;align-items:center;gap:.4rem;color:hsl(var(--foreground));font-size:.75rem;font-weight:500;white-space:nowrap}.library-editor-check input{width:auto!important}.library-editor-favorite{margin-bottom:1rem}.library-editor-error{margin:0 0 .8rem;padding:.55rem .7rem;border-radius:8px;background:color-mix(in srgb,#c0392b 12%,transparent);color:#c0392b;font-size:.75rem}.library-editor-save{border-color:hsl(var(--foreground));background:hsl(var(--foreground));color:hsl(var(--background))}.library-editor-save:disabled{opacity:.55;cursor:wait}@media(max-width:800px){.library-navbar{padding:0 1rem}.library-nav-actions .library-nav-btn span{display:none}.library-nav-menu-popover{width:min(230px,100vw - 2rem)}.library-main{padding:1.5rem 1rem 3rem}.library-section-header{flex-wrap:wrap}.library-section-header>div:first-child{width:100%}.library-search-wrap{max-width:none}.library-workspace{grid-template-columns:1fr;gap:1rem}.library-sidebar{position:static;flex-direction:row;gap:.75rem;padding-bottom:.5rem;overflow-x:auto}.library-sidebar-group{min-width:11rem;max-height:12rem;overflow-y:auto}.library-editor-grid{grid-template-columns:1fr}.library-editor-cover-row{align-items:flex-start;flex-direction:column}}@media(hover:none){.book-card-actions{opacity:1}}.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:860px;margin:0 auto;padding:2rem 1.5rem 4rem}.notebook-search-panel{display:flex;flex-direction:column;gap:.9rem;margin-bottom:1.5rem;padding:1rem;border:1px solid hsl(var(--border));border-radius:.85rem;background:hsl(var(--card))}.notebook-search-input-wrap{position:relative}.notebook-search-input-icon{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);color:hsl(var(--muted-foreground));pointer-events:none}.notebook-search-input{width:100%;min-height:2.8rem;padding:.65rem 2.75rem .65rem 2.55rem;border:1px solid hsl(var(--border));border-radius:.75rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.95rem}.notebook-search-input:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 3px hsl(var(--ring)/.12)}.notebook-search-clear{position:absolute;right:.55rem;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;border:none;border-radius:999px;background:transparent;color:hsl(var(--muted-foreground));cursor:pointer}.notebook-search-clear:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.notebook-filters{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}.notebook-filter-select{min-width:10.5rem;min-height:2.45rem;padding:0 .8rem;border:1px solid hsl(var(--border));border-radius:.7rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.875rem}.notebook-filter-checkbox{display:inline-flex;align-items:center;gap:.5rem;min-height:2.45rem;padding:0 .85rem;border:1px solid hsl(var(--border));border-radius:.7rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.875rem}.notebook-filter-checkbox input{margin:0}.notebook-clear-filters{border:none;background:transparent;color:hsl(var(--muted-foreground));font-size:.82rem;font-weight:600;cursor:pointer}.notebook-clear-filters:hover{color:hsl(var(--foreground))}.notebook-export-controls{display:grid;grid-template-columns:minmax(13rem,1fr) minmax(9rem,.75fr) minmax(11rem,.85fr) auto;align-items:center;gap:.6rem;padding-top:.85rem;border-top:1px solid hsl(var(--border))}.notebook-export-controls select,.notebook-export-controls button{min-height:2.35rem;border:1px solid hsl(var(--border));border-radius:.55rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.78rem}.notebook-export-controls select{min-width:0;padding:0 .55rem}.notebook-export-controls button{display:inline-flex;align-items:center;justify-content:center;padding:0 .8rem;font-weight:700;cursor:pointer}.notebook-export-controls button:hover:not(:disabled){border-color:hsl(var(--ring));background:hsl(var(--accent))}.notebook-export-controls button:disabled{opacity:.6;cursor:wait}.notebook-export-copy{display:flex;align-items:center;gap:.55rem;min-width:0}.notebook-export-copy>svg{flex:none;color:hsl(var(--primary))}.notebook-export-copy div{display:flex;min-width:0;flex-direction:column;gap:.1rem}.notebook-export-copy strong{font-size:.8rem}.notebook-export-copy span{color:hsl(var(--muted-foreground));font-size:.7rem;line-height:1.35}.notebook-export-status{grid-column:1/-1;color:hsl(var(--muted-foreground));font-size:.72rem;overflow-wrap:anywhere}.notebook-search-summary{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:1rem}.notebook-search-summary__label{font-size:.82rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--muted-foreground))}.notebook-search-summary__query{font-size:.92rem;color:hsl(var(--foreground))}.notebook-search-results{display:flex;flex-direction:column;gap:.9rem}.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-chapter-group{display:flex;flex-direction:column;gap:.75rem}.notebook-chapter-group>h3{margin:.25rem 0 0;color:hsl(var(--muted-foreground));font-size:.75rem;font-weight:750;letter-spacing:.07em;text-transform:uppercase}.notebook-tag-groups{margin-bottom:1.25rem;padding:.9rem 1rem;border:1px solid hsl(var(--border));border-radius:.75rem;background:hsl(var(--card))}.notebook-tag-groups h2{margin:0 0 .65rem;font-size:.78rem;font-weight:750;letter-spacing:.07em;text-transform:uppercase;color:hsl(var(--muted-foreground))}.notebook-tag-groups>div{display:flex;flex-wrap:wrap;gap:.45rem}.notebook-tag-groups button{display:inline-flex;align-items:center;gap:.45rem;min-height:2rem;padding:0 .65rem;border:1px solid hsl(var(--border));border-radius:999px;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.76rem}.notebook-tag-groups button:hover{border-color:hsl(var(--ring)/.45);background:hsl(var(--accent))}.notebook-tag-groups button strong{color:hsl(var(--muted-foreground));font-size:.68rem}.notebook-highlight-card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:.5rem;padding:.875rem 1rem}.notebook-highlight-select{width:1rem;height:1rem;accent-color:hsl(var(--primary))}.notebook-annotation-tags{margin-top:.7rem}.notebook-annotation-tag-list{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem}.notebook-annotation-tag{display:inline-flex;align-items:center;min-height:1.5rem;padding:.1rem .5rem;border-radius:999px;background:#6366f11f;color:#4f46e5;font-size:.7rem;font-weight:650}.notebook-annotation-tags-empty{color:hsl(var(--muted-foreground));font-size:.72rem}.notebook-annotation-tags-edit{min-height:1.65rem;padding:0 .45rem;border:none;border-radius:999px;background:transparent;color:hsl(var(--muted-foreground));font-size:.7rem;font-weight:650}.notebook-annotation-tags-edit:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}.notebook-annotation-tag-editor{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.4rem;margin-top:.5rem}.notebook-annotation-tag-editor input,.notebook-annotation-tag-editor button{min-height:2.1rem;border:1px solid hsl(var(--border));border-radius:.4rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.74rem}.notebook-annotation-tag-editor input{min-width:0;padding:0 .55rem}.notebook-annotation-tag-editor button{padding:0 .55rem}.notebook-bulk-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:.9rem;padding:.65rem;border:1px solid hsl(var(--border));border-radius:.65rem;background:hsl(var(--card))}.notebook-bulk-toolbar button,.notebook-bulk-toolbar select,.notebook-bulk-toolbar input{min-height:2.1rem;border:1px solid hsl(var(--border));border-radius:.4rem;background:hsl(var(--background));color:hsl(var(--foreground));font-size:.74rem}.notebook-bulk-toolbar button,.notebook-bulk-toolbar select{padding:0 .6rem}.notebook-bulk-toolbar input{min-width:10rem;padding:0 .55rem}.notebook-bulk-toolbar>span,.notebook-bulk-toolbar p{margin:0;color:hsl(var(--muted-foreground));font-size:.72rem}.notebook-bulk-toolbar p{width:100%;color:hsl(var(--destructive))}.notebook-standalone-section{margin-bottom:1.5rem}.notebook-standalone-heading{display:flex;align-items:center;gap:.5rem;padding:.75rem 0;border-bottom:1px solid hsl(var(--border))}.notebook-standalone-heading h2{margin:0;font-size:1rem;font-weight:650}.notebook-standalone-heading span{display:inline-flex;align-items:center;justify-content:center;min-width:1.45rem;height:1.45rem;padding:0 .35rem;border-radius:999px;background:hsl(var(--accent));color:hsl(var(--muted-foreground));font-size:.72rem;font-weight:700}.notebook-standalone-list{display:flex;flex-direction:column;gap:.75rem;padding:.75rem 0 0 1.5rem}.notebook-book-note-card{padding:.875rem 1rem;border:1px solid hsl(var(--border));border-radius:.65rem;background:hsl(var(--card))}.notebook-book-note-header{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:.65rem}.notebook-book-note-header>svg{color:#d97706}.notebook-book-note-date{color:hsl(var(--muted-foreground));font-size:.7rem}.notebook-book-note-content{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:hsl(var(--foreground));font-size:.9rem;line-height:1.6}.notebook-book-note-actions,.notebook-book-note-editor-actions{display:flex;align-items:center;gap:.5rem;margin-top:.75rem}.notebook-book-note-actions button,.notebook-book-note-editor-actions button{display:inline-flex;align-items:center;gap:.3rem;min-height:2rem;padding:0 .65rem;border:1px solid hsl(var(--border));border-radius:.45rem;background:hsl(var(--background));color:hsl(var(--muted-foreground));font-size:.74rem;font-weight:650}.notebook-book-note-actions button:hover:not(:disabled),.notebook-book-note-editor-actions button:hover:not(:disabled){background:hsl(var(--accent));color:hsl(var(--foreground))}.notebook-book-note-actions button.confirm,.notebook-book-note-editor-actions button.confirm{border-color:hsl(var(--destructive)/.45);color:hsl(var(--destructive))}.notebook-book-note-editor textarea{width:100%;min-height:7rem;padding:.65rem;border:1px solid hsl(var(--border));border-radius:.5rem;resize:vertical;background:hsl(var(--background));color:hsl(var(--foreground));font:inherit;font-size:.88rem;line-height:1.55}.notebook-book-note-editor textarea:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.notebook-book-note-error{margin:.65rem 0 0;color:hsl(var(--destructive));font-size:.78rem}.notebook-highlight-header{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.notebook-result-book{font-size:.82rem;font-weight:700;color:hsl(var(--foreground))}.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-note-preview-list{display:flex;flex-direction:column;gap:.55rem;margin-top:.85rem}.notebook-note-preview{display:grid;gap:.4rem;padding:.7rem .8rem;border-radius:.75rem;background:hsl(var(--background));border:1px solid hsl(var(--border))}.notebook-note-preview p{margin:0;color:hsl(var(--muted-foreground));font-size:.8rem;line-height:1.55}.notebook-note-preview__badge{display:inline-flex;align-items:center;justify-content:center;width:-moz-fit-content;width:fit-content;padding:.18rem .42rem;border-radius:999px;background:hsl(var(--accent));color:hsl(var(--muted-foreground));font-size:.65rem;font-weight:700;letter-spacing:.06em}.notebook-note-preview--llm{background:hsl(var(--info-bg));border-color:hsl(var(--info-fg)/.25)}.notebook-note-preview--llm .notebook-note-preview__badge{background:#3b82f6;color:#fff}.notebook-search-empty{text-align:center;padding:2.5rem 1rem;border:1px dashed hsl(var(--border));border-radius:.85rem;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}@media(max-width:640px){.notebook-main{padding:1.5rem 1rem 3rem}.notebook-search-panel{padding:.85rem}.notebook-filter-select,.notebook-filter-checkbox{width:100%}.notebook-export-controls{grid-template-columns:1fr}.notebook-export-controls select,.notebook-export-controls button{width:100%}.notebook-export-status{grid-column:auto}.notebook-book-header{align-items:flex-start}.notebook-book-meta{width:100%;padding-left:1.5rem;white-space:normal}.notebook-highlights{padding-left:.75rem}.notebook-open-link{margin-left:0}.notebook-notes-button{width:100%;justify-content:center;margin-left:0}}.hover\:bg-accent:hover{--tw-bg-opacity: 1;background-color:hsl(var(--accent) / var(--tw-bg-opacity, 1))}.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}
