@keyframes astroFadeInOut{0%{opacity:1}to{opacity:0}}@keyframes astroFadeIn{0%{opacity:0;mix-blend-mode:plus-lighter}to{opacity:1;mix-blend-mode:plus-lighter}}@keyframes astroFadeOut{0%{opacity:1;mix-blend-mode:plus-lighter}to{opacity:0;mix-blend-mode:plus-lighter}}@keyframes astroSlideFromRight{0%{transform:translate(100%)}}@keyframes astroSlideFromLeft{0%{transform:translate(-100%)}}@keyframes astroSlideToRight{to{transform:translate(100%)}}@keyframes astroSlideToLeft{to{transform:translate(-100%)}}@media (prefers-reduced-motion){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*),[data-astro-transition-scope]{animation:none!important}}.book-cover-image{aspect-ratio:2/3;background:var(--code-background);border-radius:2px 5px 5px 2px;width:100%;position:relative;overflow:hidden}.book-cover-image img{object-fit:cover;opacity:1;width:100%;height:100%;transition:opacity .22s ease-out;display:block}.book-cover-image .cover-skeleton,.book-cover-image .cover-fallback{position:absolute;inset:0}.book-cover-image .cover-skeleton{background:color-mix(in srgb, var(--code-background) 85%, var(--border));display:none;overflow:hidden}.book-cover-image .cover-skeleton:after{content:"";background:linear-gradient(105deg, transparent 20%, color-mix(in srgb, var(--text) 6%, transparent) 50%, transparent 80%);animation:1.8s ease-in-out infinite cover-shimmer;position:absolute;inset:0;transform:translate(-100%)}.book-cover-image .cover-fallback{color:var(--muted);text-align:center;justify-content:center;align-items:center;padding:.75rem;font-size:.75rem;display:none}.book-cover-image[data-enhanced=true][data-cover-state=loading] img{opacity:0}.book-cover-image[data-enhanced=true][data-cover-state=loading] .cover-skeleton{display:block}.book-cover-image[data-cover-state=error] img{visibility:hidden}.book-cover-image[data-cover-state=error] .cover-fallback{display:flex}@keyframes cover-shimmer{to{transform:translate(100%)}}@media (prefers-reduced-motion:reduce){.book-cover-image img{transition:none}.book-cover-image .cover-skeleton:after{animation:none}}.book-ui{display:contents}:where(.book-ui) .book-editor{padding:1.25rem}:where(.book-ui) .inline-editor{padding:0}:where(.book-ui) .inline-editor .editor-grid{display:block}:where(.book-ui) .inline-editor .editor-footer{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}:where(.book-ui) .inline-editor .draft-status{flex:1;font-size:.75rem}:where(.book-ui) .inline-editor .editor-footer button[type=submit]{border:1px solid var(--text);background:var(--text);color:var(--background);font:inherit;cursor:pointer;border-radius:.4rem;margin-left:auto;padding:.65rem 1.1rem;font-size:.9rem;font-weight:600}:where(.book-ui) .inline-editor .editor-footer button[type=submit]:disabled{opacity:.6;cursor:wait}:where(.book-ui) .comment-editor .editor-footer{margin-top:.6rem}:where(.book-ui) .comment-editor .editor-footer button[type=submit]{padding:.45rem .85rem;font-size:.85rem}:where(.book-ui) .comment-editor .update-submit-actions{margin-left:auto}:where(.book-ui) .comment-editor .editor-footer .update-submit-actions>button{border:1px solid var(--border);background:var(--background);color:var(--text);font:inherit;cursor:pointer;margin:0;padding:.5rem .85rem;font-size:.9rem}:where(.book-ui) .comment-editor .editor-footer .update-submit-actions>.edit-button{border-radius:.4rem 0 0 .4rem}:where(.book-ui) .comment-editor .editor-footer .update-submit-actions>.more-button{border-left:0;border-radius:0 .4rem .4rem 0;font-size:1.25rem;line-height:1}:where(.book-ui) .comment-editor .editor-footer .update-submit-actions button:hover{background:var(--code-background)}:where(.book-ui) .comment-editor .editor-footer .action-menu button{color:var(--text);text-align:left;font:inherit;background:0 0;border:0;border-radius:.25rem;margin:0;padding:.65rem .8rem;font-size:.9rem;font-weight:400}:where(.book-ui) .update-actions{align-items:baseline;gap:1rem;display:flex}:where(.book-ui) .delete-update{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-size:.8rem}:where(.book-ui) .comment-editor .editor-fields label{gap:.25rem;font-size:.85rem}:where(.book-ui) .comment-editor .editor-fields select,:where(.book-ui) .comment-editor .editor-fields input[type=number],:where(.book-ui) .comment-editor .editor-fields textarea{padding:.45rem .6rem}:where(.book-ui) .inline-editor .editor-fields input[type=range]{accent-color:var(--accent);border:0;padding:0}:where(.book-ui) .editor-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:1.5rem;display:grid}:where(.book-ui) .editor-fields{border:0;flex-direction:column;gap:1rem;min-width:0;margin:0;padding:0;display:flex}:where(.book-ui) .editor-fields [hidden]{display:none!important}:where(.book-ui) .editor-fields label{flex-direction:column;gap:.35rem;font-size:.9rem;display:flex}:where(.book-ui) .editor-fields input:not([type=hidden]),:where(.book-ui) .editor-fields select,:where(.book-ui) .editor-fields textarea{border:1px solid var(--border);background:var(--background);width:100%;color:var(--text);font:inherit;border-radius:.35rem;padding:.65rem .75rem}:where(.book-ui) .editor-fields textarea{resize:vertical}:where(.book-ui) .editor-fields .field-help{font-size:.8rem}:where(.book-ui) .editor-fields h2,:where(.book-ui) .editor-fields h3{margin:.5rem 0;font-size:1rem}:where(.book-ui) .live-preview{background:var(--background);border:1px solid var(--border);overflow-wrap:anywhere;border-radius:.4rem;padding:1rem}:where(.book-ui) .preview-label{color:var(--accent);margin:0 0 1rem;font-size:.75rem}:where(.book-ui) .preview-book{align-items:center;gap:1rem;display:flex}:where(.book-ui) .preview-cover-wrap{flex-shrink:0;width:100px;position:relative}:where(.book-ui) .live-preview img{object-fit:cover;border-radius:3px;width:100%;height:150px;box-shadow:3px 6px 14px #00000026}:where(.book-ui) .cover-placeholder{background:var(--code-background);border:1px dashed var(--border);height:150px;color:var(--muted);border-radius:3px;place-items:center;font-size:.8rem;display:grid}:where(.book-ui) .cover-placeholder[hidden]{display:none}:where(.book-ui) .preview-update{border-top:1px solid var(--border);margin-top:1.5rem;padding-top:1rem}:where(.book-ui) .preview-update h4{margin:0;font-size:.9rem}:where(.book-ui) .preview-book-meta{min-width:0}:where(.book-ui) .live-preview h3{margin:1rem 0 .5rem}:where(.book-ui) .live-preview p{font-size:.85rem}:where(.book-ui) .preview-comment{white-space:pre-wrap}:where(.book-ui) .live-preview progress{width:100%;accent-color:var(--accent)}:where(.book-ui) [data-save-error]{color:var(--accent)}:where(.book-ui) .editor-footer{margin-top:1.25rem}:where(.book-ui) .editor-footer [hidden]{display:none}:where(.book-ui) .draft-status{color:var(--muted);font-size:.75rem}:where(.book-ui) .editor-footer button{margin:0}:where(.book-ui) .editor-footer .discard-draft{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;margin:0 .75rem 0 0;padding:0;font-size:.75rem;text-decoration:underline}@media (width<=600px){:where(.book-ui) .editor-grid{grid-template-columns:1fr}:where(.book-ui) .book-editor:not(.inline-editor){padding:1rem}}:where(.book-ui) .book-fields,:where(.book-ui) .manual-fields{flex-direction:column;gap:1rem;display:flex}:where(.book-ui) .manual-fields[hidden],:where(.book-ui) .book-fields label[hidden]{display:none}:where(.book-ui) .book-suggestions{border:1px solid var(--border);border-radius:.4rem;overflow:hidden}:where(.book-ui) .book-suggestions button{text-align:left;border:0;border-bottom:1px solid var(--border);background:var(--background);width:100%;color:var(--text);font:inherit;cursor:pointer;align-items:center;gap:.75rem;margin:0;padding:.7rem;display:flex}:where(.book-ui) .book-suggestions button:last-child{border-bottom:0}:where(.book-ui) .book-suggestions button:hover,:where(.book-ui) .book-suggestions button:focus-visible{background:var(--code-background)}:where(.book-ui) .book-suggestions img{object-fit:cover;flex-shrink:0;width:32px;height:48px}:where(.book-ui) .book-suggestions span{flex-direction:column;gap:.2rem;display:flex}:where(.book-ui) .book-suggestions strong{font-size:.9rem}:where(.book-ui) .book-suggestions small{color:var(--muted);font-size:.8rem}:where(.book-ui) .manual-lookup{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;align-self:start;margin:0;padding:0;font-size:.8rem;text-decoration:underline}:where(.book-ui) .event-fields,:where(.book-ui) .update-controls{flex-direction:column;gap:1rem;display:flex}:where(.book-ui) .event-fields:not(.comment-composer)>.thoughts{order:1}:where(.book-ui) .event-fields:not(.comment-composer)>label:last-child,:where(.book-ui) .date-options{order:2}:where(.book-ui) .comment-composer{gap:.6rem}:where(.book-ui) .comment-composer .update-controls{grid-template-columns:minmax(0,1fr);align-items:end;gap:.75rem;display:grid}:where(.book-ui) .comment-composer .update-controls:has([data-event-rating]:not([hidden])){grid-template-columns:minmax(0,1fr) 180px}:where(.book-ui) .progress-control{position:relative}:where(.book-ui) output{color:var(--muted);font-size:.8rem;position:absolute;top:0;right:0}:where(.book-ui) .comment-composer input[type=range]{width:100%;height:1rem}:where(.book-ui) input[readonly],:where(.book-ui) input[type=range]:disabled{opacity:.55;cursor:not-allowed}:where(.book-ui) .date-options{background:0 0;border:0;margin:0}:where(.book-ui) .date-options summary{color:var(--muted);padding:0;font-size:.8rem}:where(.book-ui) .date-options label{padding-top:.75rem}@media (width<=480px){:where(.book-ui) .comment-composer .update-controls,:where(.book-ui) .comment-composer .update-controls:has([data-event-rating]:not([hidden])){grid-template-columns:minmax(0,1fr)}:where(.book-ui) .comment-composer .update-controls:has([data-event-rating]:not([hidden])) .progress-control{grid-area:1/1/auto/-1}}:where(.book-ui) .book-modal{width:100%;max-width:none;height:100dvh;max-height:none;color:var(--text);background:var(--background);border:0;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}:where(.book-ui) .book-modal[open]{flex-direction:column;animation:.32s cubic-bezier(.22,1,.36,1) book-modal-in;display:flex}:where(.book-ui) .book-modal::backdrop{background:#00000080}body:has(.book-modal[open]){overflow:hidden}:where(.book-ui) .modal-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;gap:1rem;padding:1.25rem 2rem;display:flex}:where(.book-ui) .modal-header h2{letter-spacing:-.02em;margin:0;font-size:1.2rem}:where(.book-ui) .modal-header p{margin:.25rem 0 0;font-size:.85rem}:where(.book-ui) .close-modal{border:1px solid var(--border);background:var(--background);width:36px;height:36px;color:var(--text);cursor:pointer;border-radius:50%;flex-shrink:0;padding:0;font-size:1rem}:where(.book-ui) .close-modal:hover{background:var(--code-background)}:where(.book-ui) .modal-content{flex:1;min-height:0}:where(.book-ui) .modal-content .book-editor{flex-direction:column;height:100%;margin:0;padding:0;display:flex}:where(.book-ui) .modal-content .editor-grid{flex:1;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);align-items:stretch;gap:0;min-height:0}:where(.book-ui) .modal-content .editor-fields{scrollbar-gutter:stable;padding:2rem clamp(1.5rem,4vw,4rem);overflow-y:auto}:where(.book-ui) .modal-content .live-preview{border:0;border-left:1px solid var(--border);background:var(--code-background);border-radius:0;padding:clamp(2rem,5vw,5rem);overflow-y:auto}:where(.book-ui) .modal-content .preview-label{margin-bottom:1.5rem;font-size:.8rem;font-weight:600}:where(.book-ui) .modal-content .preview-book{align-items:center;gap:2rem;max-width:650px;margin-inline:auto}:where(.book-ui) .modal-content .preview-cover-wrap{width:clamp(130px,15vw,200px)}:where(.book-ui) .modal-content .live-preview img,:where(.book-ui) .modal-content .cover-placeholder{aspect-ratio:2/3;height:auto}:where(.book-ui) .modal-content .cover-placeholder{background:var(--background)}:where(.book-ui) .modal-content .live-preview h3{letter-spacing:-.03em;margin:.5rem 0 1rem;font-size:clamp(1.4rem,2.5vw,2.2rem);line-height:1.15}:where(.book-ui) .modal-content .preview-author{font-size:1rem}:where(.book-ui) .modal-content .preview-state{color:var(--accent);font-size:.8rem}:where(.book-ui) .modal-content .preview-rating{color:var(--text);font-size:1.4rem;font-weight:700}:where(.book-ui) .modal-content .preview-update{background:var(--background);border:1px solid var(--border);border-radius:.6rem;max-width:650px;margin:2.5rem auto 0;padding:1.5rem}:where(.book-ui) .modal-content .preview-update h4{font-size:1.1rem}:where(.book-ui) .modal-content .preview-comment{min-height:2rem;font-size:1rem;line-height:1.7}:where(.book-ui) .modal-content .editor-footer{padding:1rem 2rem calc(1rem + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border);flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;align-items:center;gap:.75rem;margin:0;display:flex}:where(.book-ui) .modal-content .draft-status{flex:1;margin:0}:where(.book-ui) .modal-content .editor-footer button[type=submit]{border:1px solid var(--text);background:var(--text);color:var(--background);font:inherit;cursor:pointer;border-radius:.4rem;padding:.65rem 1.25rem;font-size:.9rem;font-weight:600}:where(.book-ui) .modal-content .editor-footer button[type=submit]:disabled{opacity:.6;cursor:wait}:where(.book-ui) .modal-content [data-save-error]{margin:0;font-size:.85rem}:where(.book-ui) .mobile-tabs{display:none}@media (width<=760px){:where(.book-ui) .modal-header{padding:1rem;padding-top:calc(1rem + env(safe-area-inset-top,0px))}:where(.book-ui) .modal-header p{max-width:28rem;font-size:.8rem}:where(.book-ui) .mobile-tabs{border-bottom:1px solid var(--border);flex-shrink:0;gap:.25rem;padding:.5rem 1rem;display:flex}:where(.book-ui) .mobile-tabs button{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:.35rem;flex:1;padding:.6rem;font-size:.85rem}:where(.book-ui) .mobile-tabs [aria-selected=true]{background:var(--code-background);color:var(--text);font-weight:600}:where(.book-ui) .modal-content .editor-grid{grid-template-columns:minmax(0,1fr)}:where(.book-ui) .modal-content .editor-fields,:where(.book-ui) .modal-content .live-preview{padding:1.25rem}:where(.book-ui) .book-modal[data-panel=edit] .live-preview,:where(.book-ui) .book-modal[data-panel=preview] .editor-fields{display:none}:where(.book-ui) .modal-content .live-preview{border-left:0}:where(.book-ui) .modal-content .preview-book{gap:1.25rem}:where(.book-ui) .modal-content .preview-cover-wrap{width:115px}:where(.book-ui) .modal-content .preview-update{margin-top:2rem;padding:1rem}:where(.book-ui) .modal-content .editor-footer{padding-inline:1rem}:where(.book-ui) .modal-content .editor-footer button[type=submit]{width:100%}}:where(.book-ui) .book-actions{display:flex}:where(.book-ui) .book-actions .edit-button,:where(.book-ui) .book-actions .more-button{border:1px solid var(--border);background:var(--background);color:var(--text);font:inherit;cursor:pointer;padding:.5rem .85rem;font-size:.9rem}:where(.book-ui) .edit-button{border-radius:.4rem 0 0 .4rem}:where(.book-ui) .book-actions .more-button{border-left:0;border-radius:0 .4rem .4rem 0;font-size:1.25rem;line-height:1}:where(.book-ui) .book-actions button:hover{background:var(--code-background)}:where(.book-ui) .action-menu{border:1px solid var(--border);background:var(--background);border-radius:.5rem;min-width:160px;margin:0;padding:.3rem;position:fixed;inset:auto;box-shadow:0 6px 24px #00000026}:where(.book-ui) .action-menu button{color:#c0392b;text-align:left;width:100%;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:.25rem;padding:.65rem .8rem;font-size:.9rem;display:block}:where(.book-ui) .delete-dialog{border:1px solid var(--border);background:var(--background);width:min(440px,100vw - 2rem);color:var(--text);border-radius:.75rem;padding:1.5rem}:where(.book-ui) .delete-dialog::backdrop{background:#00000080}:where(.book-ui) .delete-dialog h2{margin:0 0 1rem;font-size:1.25rem}:where(.book-ui) .delete-dialog .editor-footer button[type=submit]{color:#fff;background:#a93226}:where(.book-ui) .cancel-delete{border:1px solid var(--border);color:var(--text);font:inherit;cursor:pointer;background:0 0;border-radius:.4rem;margin-top:1rem;padding:.5rem .8rem}:where(.book-ui) .add-book-button{border:1px solid var(--border);background:var(--code-background);color:var(--text);font:inherit;cursor:pointer;border-radius:.4rem;flex-shrink:0;padding:.45rem .75rem;font-size:.8rem}:where(.book-ui) .add-book-button:hover{border-color:var(--accent)}:where(.book-ui) .book-composer{border:1px solid var(--border);background:var(--code-background);border-radius:.6rem;margin-bottom:1rem;padding:.75rem}:where(.book-ui) .edit-update{background:0 0;border:0;border-radius:0;margin:.25rem 0 0}:where(.book-ui) .edit-update>summary{color:var(--muted);border:0;padding:0;font-size:.8rem;font-weight:400}:where(.book-ui) .edit-update>summary:after{display:none}:where(.book-ui) .edit-update .book-editor{margin-top:1rem}:where(.book-ui) .delete-dialog label{flex-direction:column;gap:.35rem;display:flex}:where(.book-ui) .delete-dialog input:not([type=hidden]){border:1px solid var(--border);background:var(--background);color:var(--text);font:inherit;border-radius:.35rem;padding:.65rem .75rem}@keyframes book-modal-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:where(.book-ui) .book-modal[open]{animation:none}}
