/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.border{border-style:var(--tw-border-style);border-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--background:0 0% 100%;--foreground:0 0% 3.9%;--card:0 0% 100%;--card-foreground:0 0% 3.9%;--popover:0 0% 100%;--popover-foreground:0 0% 3.9%;--primary:0 0% 9%;--primary-foreground:0 0% 98%;--secondary:0 0% 96.1%;--secondary-foreground:0 0% 9%;--muted:0 0% 96.1%;--muted-foreground:0 0% 45.1%;--accent:0 0% 96.1%;--accent-foreground:0 0% 9%;--destructive:0 84.2% 60.2%;--destructive-foreground:0 0% 98%;--border:0 0% 89.8%;--input:0 0% 89.8%;--ring:0 0% 3.9%;--radius:.5rem}body{color:#3a2e1f;background-color:#f5efe0;margin:0;padding:0;font-family:Patrick Hand,cursive}.library-page{color:#3a2e1f;background-color:#f5efe0;background-image:radial-gradient(circle at 15% 20%,#8b5a2b08,#0000 40%),radial-gradient(circle at 85% 80%,#8b5a2b08,#0000 40%),radial-gradient(circle,#cdb48c0a,#0000 60%);min-height:100vh;padding-bottom:4rem;font-family:Patrick Hand,cursive}.library-header{text-align:center;padding:3rem 1rem 1.5rem}.library-eyebrow{margin-bottom:.25rem;font-size:2.5rem}h1,.library-title{color:#3a2e1f;margin:0;font-family:Caveat Brush,cursive;font-size:3.5rem;font-weight:400;line-height:1.15}.library-tagline{color:#6b5a4a;margin-top:.5rem;font-family:Patrick Hand,cursive;font-size:1.3rem}.add-book-bar{flex-wrap:wrap;justify-content:center;align-items:center;gap:1.5rem;margin-bottom:2rem;padding:0 1rem;display:flex}.btn-add-book{cursor:pointer;color:#3a2e1f;background:#fff;border:2.5px solid #3a2e1f;border-radius:255px 15px 225px/15px 225px 15px 255px;padding:.4rem 2rem;font-family:Caveat,cursive;font-size:1.5rem;transition:transform .2s,box-shadow .2s;box-shadow:3px 3px #3a2e1f}.btn-add-book:hover{transform:translate(-1px,-1px);box-shadow:4px 4px #3a2e1f}.btn-add-book:active{transform:translate(2px,2px);box-shadow:1px 1px #3a2e1f}.shelf-count{color:#8a7560;font-family:Patrick Hand,cursive;font-size:1.1rem}.bookshelf{max-width:1100px;margin:0 auto;padding:0 1rem}.shelf-row{margin-bottom:0}.shelf-books{flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:12px;min-height:210px;padding:0 20px;display:flex}.shelf-plank{background-blend-mode:multiply,normal;background:repeating-linear-gradient(178deg,#ffffff14 0,#ffffff14 2px,#0000000a 3px,#0000000a 5px,#0000 6px,#0000 14px),linear-gradient(#e8d4b0,#d9bf90,#c9ab76 60%,#b89660);border-radius:3px;height:22px;margin-bottom:2.5rem;position:relative;box-shadow:0 6px 12px #00000040,inset 0 1px #ffdcb433,inset 0 -2px 4px #0003}.shelf-plank:before{content:"";background:repeating-linear-gradient(90deg,#0000 0,#0000 40px,#0000000a 40px,#0000000a 41px);border-radius:3px;position:absolute;top:0;right:0;bottom:0;left:0}.shelf-plank:after{content:"";background:linear-gradient(#00000026,#0000);border-radius:3px;height:8px;position:absolute;bottom:-8px;left:0;right:0}.book-on-shelf{cursor:pointer;transform:rotate(var(--rotation,0deg));filter:drop-shadow(2px 4px 5px #00000040);transition:transform .3s cubic-bezier(.34,1.56,.64,1);position:relative}.book-on-shelf:hover{z-index:10;transform:translateY(-12px)rotate(0)scale(1.05)}.book-cover-img{object-fit:cover;border:1px solid #00000026;border-radius:2px 4px 4px 2px;display:block;box-shadow:1px 1px 4px #00000026,inset -3px 0 6px #0000001a}.book-spine-fallback{text-align:center;color:#fffffff2;border:1px solid #0003;border-radius:2px 4px 4px 2px;flex-direction:column;justify-content:center;align-items:center;width:45px;height:180px;padding:8px 4px;font-family:Patrick Hand,cursive;display:flex;box-shadow:1px 1px 4px #00000026,inset -3px 0 6px #00000026}.spine-title{writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;text-overflow:ellipsis;max-height:90%;font-size:.8rem;overflow:hidden}.empty-shelf-hint{color:#b0a090;text-align:center;padding:2rem;font-family:Patrick Hand,cursive;font-size:1.1rem;font-style:italic}.empty-shelf-hint span{margin-bottom:.5rem;font-size:2rem;display:block}.loading-state{text-align:center;color:#8a7560;padding:4rem 1rem;font-family:Patrick Hand,cursive}.loading-spinner{border:4px solid #d4c4a8;border-top-color:#8b5e22;border-radius:50%;width:40px;height:40px;margin:0 auto 1rem;animation:.8s linear infinite lib-spin}@keyframes lib-spin{to{transform:rotate(360deg)}}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:100;background:#3a2e1f99;justify-content:center;align-items:center;padding:1rem;animation:.2s lib-fadeIn;display:flex;position:fixed;top:0;right:0;bottom:0;left:0}@keyframes lib-fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:#fdfaf2;border:3px solid #3a2e1f;border-radius:255px 15px 225px/15px 225px 15px 255px;width:100%;max-width:600px;max-height:90vh;padding:2rem;animation:.3s cubic-bezier(.34,1.56,.64,1) lib-modalPop;position:relative;overflow-y:auto;box-shadow:8px 8px #3a2e1f26}@keyframes lib-modalPop{0%{opacity:0;transform:scale(.85)translateY(20px)}to{opacity:1;transform:scale(1)translateY(0)}}.add-book-modal{max-width:650px}.modal-close{cursor:pointer;color:#8a7560;z-index:1;background:0 0;border:none;border-radius:50%;padding:.5rem;transition:background .2s,color .2s;position:absolute;top:1rem;right:1rem}.modal-close:hover{color:#3a2e1f;background:#0000000d}.modal-body{gap:1.5rem;margin-bottom:1.5rem;display:flex}.modal-book-cover{flex-shrink:0}.modal-book-cover img{border:1px solid #0000001a;border-radius:2px 4px 4px 2px;width:auto;height:200px;box-shadow:2px 4px 12px #00000040}.modal-book-fallback{color:#fff;text-align:center;background:#c0392b;border-radius:2px 4px 4px 2px;justify-content:center;align-items:center;width:135px;height:200px;padding:1rem;font-family:Patrick Hand,cursive;display:flex;box-shadow:2px 4px 12px #00000040}.modal-book-info{flex:1;min-width:0}.modal-book-title{color:#3a2e1f;margin:0 0 .25rem;font-family:Caveat,cursive;font-size:2rem;font-weight:700;line-height:1.2}.modal-book-author{color:#8a7560;margin:0 0 1rem;font-family:Patrick Hand,cursive;font-size:1.1rem}.modal-synopsis h4{text-transform:uppercase;letter-spacing:.05em;color:#b0a090;margin:0 0 .3rem;font-family:Patrick Hand,cursive;font-size:.9rem}.modal-synopsis p{color:#5a4a3a;margin:0;font-family:Patrick Hand,cursive;font-size:1rem;line-height:1.5}.search-result-hover:hover{background:#fbf7ee!important}.modal-note{background:#fff9c4;border:2px solid #e6d870;border-radius:15px 225px 15px 255px/225px 15px 255px;margin-bottom:1.5rem;padding:1.5rem;position:relative;transform:rotate(-.5deg);box-shadow:2px 4px 8px #0000001a}.note-pin{font-size:1.5rem;position:absolute;top:-8px;left:50%;transform:translate(-50%)}.note-label{color:#8a7560;margin:0 0 .5rem;font-family:Patrick Hand,cursive;font-size:.9rem}.note-text{color:#3a2e1f;margin:0;font-family:Caveat,cursive;font-size:1.5rem;line-height:1.4}.modal-actions{flex-wrap:wrap;justify-content:center;gap:1rem;display:flex}.btn-take{color:#fff;cursor:pointer;background:#e8732c;border:2.5px solid #c25a1a;border-radius:255px 15px 225px/15px 225px 15px 255px;padding:.4rem 1.5rem;font-family:Caveat,cursive;font-size:1.4rem;transition:transform .2s,box-shadow .2s;box-shadow:3px 3px #c25a1a}.btn-take:hover:not(:disabled){transform:translate(-1px,-1px);box-shadow:4px 4px #c25a1a}.btn-take:active:not(:disabled){transform:translate(2px,2px);box-shadow:1px 1px #c25a1a}.btn-take:disabled{opacity:.5;cursor:not-allowed}.btn-leave{color:#8a7560;cursor:pointer;background:0 0;border:2.5px solid #b0a090;border-radius:255px 15px 225px/15px 225px 15px 255px;padding:.4rem 1.5rem;font-family:Caveat,cursive;font-size:1.4rem;transition:all .2s}.btn-leave:hover{color:#3a2e1f;background:#00000008;border-color:#3a2e1f}.take-form{text-align:center}.take-form>p{color:#8a7560;margin-bottom:1rem;font-family:Patrick Hand,cursive}.take-form .modal-actions{margin-top:1rem}.modal-title{color:#3a2e1f;text-align:center;margin:0 0 .25rem;font-family:Caveat,cursive;font-size:2.2rem}.modal-subtitle{color:#8a7560;text-align:center;margin-bottom:1.5rem;font-family:Patrick Hand,cursive;font-size:1.05rem}.search-form{gap:.75rem;margin-bottom:1.5rem;display:flex}.search-input-wrap{flex:1;position:relative}.search-icon{color:#b0a090;position:absolute;top:50%;left:.75rem;transform:translateY(-50%)}.search-input{width:100%;padding-left:2.5rem!important}.btn-search{color:#fff;cursor:pointer;white-space:nowrap;background:#5a8a5a;border:2.5px solid #3a6b3a;border-radius:255px 15px 225px/15px 225px 15px 255px;padding:.35rem 1.5rem;font-family:Caveat,cursive;font-size:1.3rem;transition:transform .2s,box-shadow .2s;box-shadow:3px 3px #3a6b3a}.btn-search:hover:not(:disabled){transform:translate(-1px,-1px);box-shadow:4px 4px #3a6b3a}.btn-search:disabled{opacity:.5;cursor:not-allowed}.scan-divider{text-align:center;color:#b0a090;align-items:center;margin:1rem 0;font-family:Patrick Hand,cursive;display:flex}.scan-divider:before,.scan-divider:after{content:"";background:#d4c4a8;border-radius:1px;flex:1;height:2px}.scan-divider span{padding:0 1rem}.scan-section{text-align:center;margin-bottom:1rem}.btn-scan{color:#fff;cursor:pointer;background:#5a8aa8;border:2.5px solid #3a6b88;border-radius:255px 15px 225px/15px 225px 15px 255px;justify-content:center;align-items:center;gap:.5rem;padding:.4rem 1.8rem;font-family:Caveat,cursive;font-size:1.4rem;transition:transform .2s,box-shadow .2s;display:inline-flex;box-shadow:3px 3px #3a6b88}.btn-scan:hover{transform:translate(-1px,-1px);box-shadow:4px 4px #3a6b88}.btn-upload{color:#3a2e1f;cursor:pointer;background:#fff;border:2.5px solid #3a2e1f;border-radius:255px 15px 225px/15px 225px 15px 255px;justify-content:center;align-items:center;gap:.5rem;padding:.35rem 1rem;font-family:Caveat,cursive;font-size:1.25rem;font-weight:700;transition:transform .15s,box-shadow .15s,background-color .15s;display:inline-flex;box-shadow:3px 3px #3a2e1f}.btn-upload:hover{color:#1a120b;background:#fbf7ee;transform:translate(-1px,-1px);box-shadow:4px 4px #3a2e1f}.hand-drawn-input{color:#3a2e1f;box-sizing:border-box;background:#fff;border:2.5px solid #3a2e1f;border-radius:15px 225px 15px 255px/225px 15px 255px;outline:none;padding:.6rem .8rem;font-family:Patrick Hand,cursive;font-size:1.05rem;transition:box-shadow .2s}.hand-drawn-input:focus{box-shadow:3px 3px #3a2e1f}.hand-drawn-input::placeholder{color:#b0a090}.note-textarea{resize:vertical;width:100%;min-height:100px}.search-results{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem;max-height:400px;padding:.5rem;display:grid;overflow-y:auto}.search-result-item{cursor:pointer;text-align:center;border-radius:8px;padding:.5rem;transition:transform .2s,background .2s}.search-result-item:hover{background:#8b5a2b0f;transform:translateY(-3px)}.result-cover{border-radius:2px 4px 4px 2px;width:auto;height:130px;margin:0 auto;display:block;box-shadow:1px 2px 6px #00000026}.result-cover-fallback{background:#8b5e22;border-radius:2px 4px 4px 2px;justify-content:center;align-items:center;width:90px;height:130px;margin:0 auto;font-size:2rem;display:flex;box-shadow:1px 2px 6px #00000026}.result-cover-fallback.large{width:135px;height:200px;font-size:3rem}.result-info{margin-top:.5rem}.result-title{color:#3a2e1f;margin:0;font-family:Patrick Hand,cursive;font-size:.85rem;line-height:1.2}.result-author{color:#8a7560;margin:.1rem 0 0;font-family:Patrick Hand,cursive;font-size:.75rem}.selected-book-preview{background:#8b5a2b0a;border-radius:15px 225px 15px 255px/225px 15px 255px;gap:1.5rem;margin-bottom:1rem;padding:1rem;display:flex}.selected-book-cover{flex-shrink:0}.selected-book-cover img{border-radius:2px 4px 4px 2px;width:auto;height:140px;box-shadow:2px 3px 8px #0003}.selected-book-info{flex:1;min-width:0}.selected-book-info h3{color:#3a2e1f;margin:0 0 .25rem;font-family:Caveat,cursive;font-size:1.6rem;line-height:1.2}.selected-book-info p{color:#8a7560;margin:0 0 .5rem;font-family:Patrick Hand,cursive;font-size:.95rem}.selected-synopsis{-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;line-height:1.4;display:-webkit-box;overflow:hidden;color:#6b5a4a!important;font-size:.85rem!important}.note-form{flex-direction:column;gap:1rem;margin-bottom:1.5rem;display:flex}.form-label{color:#8a7560;flex-direction:column;gap:.4rem;font-family:Patrick Hand,cursive;font-size:.95rem;display:flex}.form-label input,.form-label textarea{font-family:Patrick Hand,cursive;font-size:1.05rem}.btn-back{cursor:pointer;color:#8a7560;background:0 0;border:none;margin-bottom:1rem;padding:0;font-family:Patrick Hand,cursive;font-size:.95rem}.btn-back:hover{color:#3a2e1f}.searching-state{color:#8a7560;justify-content:center;align-items:center;gap:.5rem;padding:2rem;font-family:Patrick Hand,cursive;display:flex}.error-text{color:#c0392b;text-align:center;font-family:Patrick Hand,cursive;font-size:.95rem}.scanner-container{background:#000;border:3px dashed #8a7560;border-radius:12px;width:100%;max-width:450px;margin:0 auto 1.5rem;position:relative;overflow:hidden}#barcode-reader{width:100%}@media(max-width:640px){.library-title{font-size:2.5rem}.modal-body,.selected-book-preview{text-align:center;flex-direction:column;align-items:center}.search-form{flex-direction:column}.search-results{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}
