:root,:root[data-theme=light]{--text:#3f3a33;--text-strong:#1f1a14;--muted:#776b5f;--bg:#f4efe6;--surface:#fffaf0f0;--surface-subtle:#f8f3e9eb;--dropdown-surface:#fffaf0;--sidebar:#eee4d4;--board:#f8f1e6;--node:#fffcf6fa;--border:#6f5d4838;--border-strong:#5646346b;--accent:#0f766e;--accent-rgb:15, 118, 110;--accent-soft:#0f766e29;--accent-strong:#0c5c56;--accent-contrast:#fff7e8;--link:#b45309;--link-rgb:180, 83, 9;--done:#15803d;--done-rgb:22, 163, 74;--done-contrast:#f0fdf4;--danger:#dc2626;--code-bg:#e9decf;--soft-shadow:0 10px 28px #4b3b2a14;--lifted-shadow:0 16px 40px #4b3b2a21;--node-shadow:0 18px 46px #49341e29;--scrim-base:#2e231975;--scrim-overlay:radial-gradient(circle at 50% 28%, rgba(var(--accent-rgb), .18), transparent 24rem), var(--scrim-base);--scrim-blur:blur(10px);--sans:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--mono:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;--z-fullscreen:120;--z-modal:500;--z-modal-nested:560;--z-modal-elevated:620;--z-modal-popover:700;--z-portal-dropdown:720;--z-toast:800;--z-tooltip:900;color:var(--text);background:var(--bg);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--sans);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--text:#d6cfbf;--text-strong:#fff7e8;--muted:#a99b86;--bg:#11100e;--surface:#1f1d19f0;--surface-subtle:#282520eb;--dropdown-surface:#1f1d19;--sidebar:#1d1a16;--board:#171b18;--node:#211e1afa;--border:#d6cfbf2e;--border-strong:#d6cfbf57;--accent:#2dd4bf;--accent-rgb:45, 212, 191;--accent-soft:#2dd4bf29;--accent-strong:#239f8f;--accent-contrast:#1f1a14;--link:#f59e0b;--link-rgb:245, 158, 11;--done:#86efac;--done-rgb:134, 239, 172;--done-contrast:#052e16;--danger:#f87171;--code-bg:#2b2924;--soft-shadow:0 12px 30px #0000003d;--lifted-shadow:0 18px 44px #00000052;--node-shadow:0 18px 50px #0000005c;--scrim-base:#0009;--scrim-overlay:radial-gradient(circle at 50% 28%, rgba(var(--accent-rgb), .18), transparent 24rem), var(--scrim-base);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--text:#d6cfbf;--text-strong:#fff7e8;--muted:#a99b86;--bg:#11100e;--surface:#1f1d19f0;--surface-subtle:#282520eb;--dropdown-surface:#1f1d19;--sidebar:#1d1a16;--board:#171b18;--node:#211e1afa;--border:#d6cfbf2e;--border-strong:#d6cfbf57;--accent:#2dd4bf;--accent-rgb:45, 212, 191;--accent-soft:#2dd4bf29;--accent-strong:#239f8f;--accent-contrast:#1f1a14;--link:#f59e0b;--link-rgb:245, 158, 11;--done:#86efac;--done-rgb:134, 239, 172;--done-contrast:#052e16;--danger:#f87171;--code-bg:#2b2924;--soft-shadow:0 12px 30px #0000003d;--lifted-shadow:0 18px 44px #00000052;--node-shadow:0 18px 50px #0000005c;--scrim-base:#0009;--scrim-overlay:radial-gradient(circle at 50% 28%, rgba(var(--accent-rgb), .18), transparent 24rem), var(--scrim-base);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}::selection{background:rgba(var(--accent-rgb), .28);color:var(--text-strong)}::selection{background:rgba(var(--accent-rgb), .28);color:var(--text-strong)}html{background:var(--bg);min-width:1024px;height:100%;overflow:hidden}body{min-width:1024px;height:100%;margin:0;overflow:hidden}#root{min-width:1024px;height:100svh}@media (width<=1180px),(height<=599px){html,body,#root{width:100%;min-width:0;max-width:100%;overflow:hidden}#root{height:100dvh;min-height:100dvh}}.app-shell,.location-dialog,.board,.inspector,.chapter-rich-editor,.markdown-preview,.stylesheet-window-body,.stylesheet-entry-popover .markdown-preview,.chapter-writing-notes-window .markdown-preview,.manuscript-scroll,.manuscript-sidebar,.book-matter-dialog-body{scrollbar-color:rgba(var(--accent-rgb), .5) rgba(var(--accent-rgb), .08);scrollbar-width:thin}::-webkit-scrollbar{width:.72rem;height:.72rem}::-webkit-scrollbar-track{background:rgba(var(--accent-rgb), .07);border-radius:10px}::-webkit-scrollbar-thumb{background:rgba(var(--accent-rgb), .48);background-clip:padding-box;border:.18rem solid #0000;border-radius:10px}@media (hover:hover){::-webkit-scrollbar-thumb:hover{background:rgba(var(--accent-rgb), .7);background-clip:padding-box}}::-webkit-scrollbar-corner{background:0 0}.app-shell{min-width:1024px;height:100svh;color:var(--text);--scrim-overlay:radial-gradient(circle at 50% 28%, rgba(var(--accent-rgb), .18), transparent 24rem), var(--scrim-base);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .14), transparent 30rem), radial-gradient(circle at top right, #b453091a, transparent 26rem), var(--bg);flex-direction:column;display:flex;overflow:hidden}.small-screen-message,.mobile-workspace{display:none}.app-header{z-index:20;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#f4efe6d6;border-bottom:0;grid-template-columns:auto minmax(0,1fr) minmax(11rem,18rem) auto auto;align-items:center;gap:.8rem;padding:.7rem 1rem 0;display:grid;position:sticky;top:0;box-shadow:0 12px 32px #4b3b2a14}.app-title{min-height:2.35rem;color:var(--text-strong);letter-spacing:-.055em;align-items:center;gap:.4rem;margin:0;font-size:clamp(1.25rem,2.2vw,1.55rem);font-weight:900;line-height:1;display:flex}.beta-pill{color:#fff;letter-spacing:.08em;text-transform:uppercase;background:#f97316;border:1px solid #c2410c5c;border-radius:999px;align-items:center;min-height:1.05rem;padding:.08rem .38rem;font-size:.58rem;font-weight:900;line-height:1;display:inline-flex}.workspace-header .brand-lockup{flex:none}.book-tabs-frame{align-self:end;min-width:0;position:relative}.book-tabs{overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;align-items:flex-end;gap:.18rem;min-width:0;padding:.12rem 0 0;display:flex;overflow:auto hidden}.book-tabs::-webkit-scrollbar{display:none}.book-tab{scroll-snap-align:start;border:1px solid rgba(var(--tab-accent-rgb,var(--accent-rgb)), .34);background:linear-gradient(180deg, rgba(var(--tab-accent-rgb,var(--accent-rgb)), .16), rgba(var(--tab-accent-rgb,var(--accent-rgb)), .06)), #fffaf09e;min-width:8rem;max-width:16rem;min-height:2.35rem;box-shadow:inset 0 2px 0 rgba(var(--tab-accent-rgb,var(--accent-rgb)), .32), inset 0 -1px 0 var(--border);cursor:grab;border-top-width:2px;border-bottom:0;border-radius:8px 8px 0 0;flex:none;align-items:center;transition:border-color .16s,box-shadow .16s,opacity .16s,transform .16s;display:inline-flex;position:relative;overflow:hidden}.book-tab.active{z-index:2;border-color:var(--tab-accent,var(--accent));background:linear-gradient(180deg, var(--tab-accent,var(--accent)), var(--tab-accent-strong,var(--accent-strong)));min-height:2.35rem;box-shadow:0 -6px 18px rgba(var(--tab-accent-rgb,var(--accent-rgb)), .18), 0 1px 0 var(--surface);border-top-width:3px;position:relative;transform:translateY(1px)}.book-tab.active:after{content:"";background:var(--surface);height:1px;position:absolute;bottom:-1px;left:0;right:0}.book-tab.dragging{opacity:.44;transform:translateY(4px)scale(.98)}.book-tab.drag-over{border-color:var(--tab-accent,var(--accent));box-shadow:inset 0 -1px 0 var(--border), 0 -8px 22px rgba(var(--tab-accent-rgb,var(--accent-rgb)), .18)}.book-tab>button:first-child{cursor:grab;background:0 0;border:0;border-radius:8px 0 0;flex:1;justify-content:flex-start;align-items:center;gap:.42rem;min-width:0;padding:.46rem .72rem .42rem .7rem;font-size:.86rem;display:flex}.book-tab>button:first-child:active{cursor:grabbing}.book-tab.active>button:first-child{color:var(--tab-accent-contrast,var(--accent-contrast))}.book-tab-title{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}.book-tab.active .book-tab-title{font-weight:950}.book-tab-file-link{width:.82rem;height:.82rem;color:var(--tab-accent-strong,var(--accent-strong));opacity:.64;flex:none;place-items:center;display:grid;transform:translateY(.08rem)}.book-tab-file-link svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.55px;width:100%;height:100%}.book-tab.active .book-tab-file-link{color:var(--tab-accent-contrast,var(--accent-contrast));opacity:.78}.book-tab.linked-file:focus-within .book-tab-file-link{opacity:1}@media (hover:hover){.book-tab.linked-file:hover .book-tab-file-link{opacity:1}}.book-tab.active .book-tab-dirty{background:var(--tab-accent-contrast,var(--accent-contrast))}.book-tab-dirty{z-index:3;background:var(--tab-accent-strong,var(--link));box-sizing:border-box;pointer-events:none;border-radius:10px;width:.42rem;height:.42rem;position:absolute;top:.45rem;right:2.1rem}.book-tab-dirty.saving{background:var(--tab-accent-strong,var(--link))}.book-tab-dirty.error{background:var(--danger)}.book-tab.active .book-tab-dirty.saving{background:var(--tab-accent-contrast,var(--accent-contrast))}.book-tab.active .book-tab-dirty.error{background:var(--danger)}.book-tab-close{border:0;border-left:1px solid var(--border);width:1.8rem;min-width:1.8rem;color:var(--muted);background:0 0;border-radius:0 8px 0 0;align-self:stretch;padding:0}.writing-stats-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1.25rem;display:grid;position:fixed;inset:0}.writing-stats-dialog{border:1px solid var(--border);background:var(--surface);width:min(980px,100vw - 2rem);max-height:min(820px,100svh - 2rem);box-shadow:var(--lifted-shadow);color:var(--text);border-radius:28px;padding:1.25rem;overflow:auto}.writing-stats-header,.writing-stats-section-heading{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.writing-stats-kicker,.writing-stats-section-heading p{color:var(--muted);margin:0}.writing-stats-kicker{letter-spacing:.08em;font-size:.78rem;font-weight:700}.writing-stats-header h2,.writing-stats-section h3{margin:.15rem 0 0}.writing-stats-header p:last-child{max-width:58rem;color:var(--muted);margin:.35rem 0 0}.writing-stats-scope-tabs,.writing-stats-range-tabs{border:1px solid var(--border);background:var(--surface-subtle);border-radius:999px;gap:.35rem;margin:1rem 0;padding:.28rem;display:inline-flex}.writing-stats-range-tabs{margin:.75rem 0 0}.writing-stats-scope-tabs+.writing-stats-range-tabs{margin-top:0}.writing-stats-scope-tabs button,.writing-stats-range-tabs button{color:var(--muted);background:0 0;border:0;border-radius:999px;padding:.45rem .85rem;font-weight:700}.writing-stats-scope-tabs button.active,.writing-stats-range-tabs button.active{background:var(--accent-soft);color:var(--accent-strong)}.writing-stats-metrics{grid-template-columns:repeat(auto-fit,minmax(10.5rem,1fr));gap:.75rem;margin-top:1rem;display:grid}.writing-stats-metric,.writing-stats-section{border:1px solid var(--border);background:var(--surface);border-radius:20px}.writing-stats-metric{gap:.2rem;padding:.9rem;display:grid}.writing-stats-metric span{color:var(--muted)}.writing-stats-metric strong{font-size:1.35rem}.writing-stats-metric small{color:var(--muted)}.writing-stats-section{margin-top:.85rem;padding:.95rem}.writing-stats-section-heading strong{color:var(--accent-strong)}.writing-stats-chart{width:100%;height:18rem;margin-top:.85rem}.writing-stats-chart canvas{max-width:100%}.writing-stats-chart-empty{color:var(--muted);margin:0;padding:1rem 0 .25rem}@media (width<=760px){.writing-stats-dialog{border-radius:22px;width:calc(100vw - 1rem);max-height:calc(100svh - 1rem)}.writing-stats-metrics{grid-template-columns:1fr}.writing-stats-chart{height:14rem}}.book-tab.active .book-tab-close{color:var(--tab-accent-contrast,var(--accent-contrast));opacity:.78;border-left-color:#ffffff38}.book-tab.active .book-tab-close:focus-visible{opacity:1}@media (hover:hover){.book-tab.active .book-tab-close:hover{opacity:1}}.book-tab-close:focus-visible{color:#fff;background:var(--danger)}@media (hover:hover){.book-tab-close:hover{color:#fff;background:var(--danger)}}.add-book-tab{width:2.1rem;min-width:2.1rem;height:2.35rem;color:var(--accent);border-bottom:0;border-radius:8px 8px 0 0;padding:0}.link-project-books-tab{height:2.35rem;color:var(--accent);background:rgba(var(--accent-rgb), .08);white-space:nowrap;border-bottom:0;border-radius:8px 8px 0 0;flex:none;align-items:center;gap:.38rem;padding:0 .7rem;font-size:.76rem;font-weight:900;display:inline-flex}.link-project-books-tab:focus-visible{border-color:rgba(var(--accent-rgb), .42);color:var(--accent-strong);background:rgba(var(--accent-rgb), .14)}@media (hover:hover){.link-project-books-tab:hover{border-color:rgba(var(--accent-rgb), .42);color:var(--accent-strong);background:rgba(var(--accent-rgb), .14)}}.link-project-books-tab svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:.92rem;height:.92rem}.global-search{min-width:0;margin-bottom:.36rem;position:relative}.global-search-row{border:1px solid var(--border);background:#fffaf0c2;border-radius:10px;align-items:stretch;gap:0;width:100%;display:flex;overflow:hidden}.global-search-row:focus-within{border-color:var(--accent);outline:3px solid var(--accent-soft)}.global-search input{min-width:0;min-height:2.35rem;color:var(--text-strong);font:inherit;background:0 0;border:0;border-radius:0;flex:auto;padding:.4rem .85rem;font-size:.82rem;font-weight:650}.global-search input:focus{outline:none}.global-search-replace-button{border:0;border-left:1px solid var(--border);width:2.35rem;min-height:2.35rem;color:var(--muted);cursor:pointer;background:0 0;flex:none;place-items:center;padding:0;transition:color .12s,background .12s;display:grid}.global-search-replace-button svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:1rem;height:1rem}.global-search-replace-button:focus-visible,.global-search-replace-button.active{color:var(--accent-contrast);background:var(--accent);outline:none}@media (hover:hover){.global-search-replace-button:hover{color:var(--accent-contrast);background:var(--accent);outline:none}}.find-replace-dialog{border-color:rgba(var(--accent-rgb), .26);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .18), transparent 18rem), linear-gradient(145deg, #fffaf0fa, #f4efe6f0);gap:1rem;width:min(34rem,100%);max-height:min(40rem,100svh - 2rem);padding:1.2rem}.find-replace-heading{align-items:center;gap:.75rem;display:flex}.find-replace-heading-icon{width:2.45rem;height:2.45rem;color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong));box-shadow:0 14px 28px rgba(var(--accent-rgb), .22);border-radius:10px;place-items:center;display:grid}.find-replace-heading-icon svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:1.2rem;height:1.2rem}.find-replace-body{gap:.85rem;display:grid}.find-replace-field{gap:.3rem;display:grid}.find-replace-label{color:var(--text-strong);font-size:.78rem;font-weight:600}.find-replace-field input{border:1px solid var(--border);width:100%;min-height:2.4rem;color:var(--text-strong);background:var(--surface);font:inherit;border-radius:10px;padding:.4rem .75rem;font-size:.88rem}.find-replace-field input:focus{border-color:var(--accent);outline:3px solid var(--accent-soft)}.find-replace-scope{gap:.4rem;display:grid}.find-replace-scope-options{flex-wrap:wrap;gap:.4rem;display:flex}.find-replace-scope-options button{border:1px solid var(--border);min-width:8rem;color:var(--text-strong);background:var(--surface-subtle);cursor:pointer;text-align:left;border-radius:10px;flex:1 1 0;gap:.15rem;padding:.45rem .7rem;display:grid}.find-replace-scope-options button.active{color:var(--accent-contrast);background:var(--accent);border-color:var(--accent-strong)}.find-replace-scope-option-label{font-size:.82rem;font-weight:600}.find-replace-scope-option-count{opacity:.78;font-size:.72rem}.find-replace-toggles{flex-wrap:wrap;gap:.4rem;display:flex}.find-replace-toggle{border:1px solid var(--border);color:var(--text-strong);background:var(--surface-subtle);cursor:pointer;border-radius:999px;align-items:center;gap:.45rem;padding:.32rem .7rem;font-size:.78rem;display:inline-flex}.find-replace-toggle.active{color:var(--accent-contrast);background:var(--accent);border-color:var(--accent-strong)}.find-replace-toggle-glyph{letter-spacing:.02em;font-weight:700}.find-replace-status{color:var(--muted);min-height:1.1rem;margin:0;font-size:.78rem}.find-replace-footer{justify-content:flex-end;gap:.5rem;display:flex}.find-replace-footer button{cursor:pointer;min-height:2.3rem;font:inherit;border-radius:10px;padding:.4rem .95rem;font-size:.82rem;font-weight:600}.find-replace-secondary{border:1px solid var(--border);color:var(--text-strong);background:var(--surface-subtle)}.find-replace-primary{border:1px solid var(--accent-strong);color:var(--accent-contrast);background:var(--accent)}.find-replace-primary:disabled{opacity:.55;cursor:not-allowed}.writer-ribbon-snapshots{align-items:center;gap:.5rem;display:flex}.writer-snapshots-take,.writer-snapshots-open{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--surface-subtle);color:var(--text-strong);border-radius:10px;align-items:center;gap:.4rem;padding:.4rem .85rem;font-size:.82rem;font-weight:600;display:inline-flex}.writer-snapshots-take svg{stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:1rem;height:1rem}.writer-snapshots-take:not(:disabled):focus-visible,.writer-snapshots-open:focus-visible{border-color:var(--accent-strong);color:var(--accent-strong);outline:none}@media (hover:hover){.writer-snapshots-take:not(:disabled):hover,.writer-snapshots-open:hover{border-color:var(--accent-strong);color:var(--accent-strong);outline:none}}.writer-snapshots-open.active{background:var(--accent);border-color:var(--accent-strong);color:var(--accent-contrast)}.writer-snapshots-take:disabled{opacity:.5;cursor:not-allowed}.chapter-snapshots-dialog{background:var(--surface);width:min(34rem,95vw);max-height:min(38rem,90vh);color:var(--text-strong);flex-direction:column;gap:.85rem;display:flex}.chapter-snapshots-heading{align-items:center;gap:.65rem;display:flex}.chapter-snapshots-heading-icon svg{stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:1.5rem;height:1.5rem}.chapter-snapshots-heading h2{margin:0;font-size:1rem;font-weight:700}.chapter-snapshots-heading p{color:var(--muted);margin:0;font-size:.82rem}.chapter-snapshots-body{flex-direction:column;gap:.75rem;display:flex;overflow-y:auto}.chapter-snapshots-capture{border:1px solid var(--border);background:var(--surface-subtle);border-radius:12px;justify-content:space-between;align-items:center;gap:.75rem;padding:.65rem .85rem;display:flex}.chapter-snapshots-capture-info{flex-direction:column;gap:.15rem;display:flex}.chapter-snapshots-capture-label{color:var(--text-strong);margin:0;font-size:.78rem;font-weight:600}.chapter-snapshots-capture-meta{color:var(--muted);margin:0;font-size:.78rem}.chapter-snapshots-primary{cursor:pointer;min-height:2.3rem;font:inherit;border:1px solid var(--accent-strong);color:var(--accent-contrast);background:var(--accent);border-radius:10px;padding:.4rem .95rem;font-size:.82rem;font-weight:600}.chapter-snapshots-primary:disabled{opacity:.55;cursor:not-allowed}.chapter-snapshots-capture-hint{color:var(--muted);margin:0;font-size:.76rem}.chapter-snapshots-empty{border:1px dashed var(--border);text-align:center;color:var(--muted);background:var(--surface-subtle);border-radius:12px;padding:1.1rem}.chapter-snapshots-empty p{margin:0;font-size:.85rem}.chapter-snapshots-list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.chapter-snapshots-item{border:1px solid var(--border);background:var(--surface-subtle);border-radius:12px;grid-template-columns:1fr auto;align-items:center;gap:.4rem .75rem;padding:.55rem .7rem;display:grid}.chapter-snapshots-item-meta{align-items:baseline;gap:.55rem;font-size:.78rem;display:flex}.chapter-snapshots-item-time{color:var(--text-strong);font-weight:600}.chapter-snapshots-item-words{color:var(--muted)}.chapter-snapshots-item-label{font:inherit;color:var(--text-strong);background:0 0;border:1px solid #0000;border-radius:8px;grid-column:1/2;padding:.3rem .5rem;font-size:.82rem}.chapter-snapshots-item-label::placeholder{color:var(--muted);font-style:italic}.chapter-snapshots-item-label:focus{border-color:var(--border);background:var(--surface);outline:none}@media (hover:hover){.chapter-snapshots-item-label:hover{border-color:var(--border);background:var(--surface);outline:none}}.chapter-snapshots-item-actions{grid-area:1/2/3/3;gap:.35rem;display:flex}.chapter-snapshots-restore,.chapter-snapshots-delete{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--surface);color:var(--text-strong);border-radius:8px;padding:.32rem .7rem;font-size:.78rem;font-weight:600}.chapter-snapshots-restore:focus-visible{border-color:var(--accent-strong);color:var(--accent-strong);outline:none}@media (hover:hover){.chapter-snapshots-restore:hover{border-color:var(--accent-strong);color:var(--accent-strong);outline:none}}.chapter-snapshots-delete:focus-visible{border-color:var(--danger,var(--accent-strong));color:var(--danger,var(--accent-strong));outline:none}@media (hover:hover){.chapter-snapshots-delete:hover{border-color:var(--danger,var(--accent-strong));color:var(--danger,var(--accent-strong));outline:none}}.chapter-snapshots-delete.pending{border-color:var(--danger,var(--accent-strong));color:var(--accent-contrast);background:var(--danger,var(--accent))}.chapter-snapshots-footer{justify-content:flex-end;gap:.5rem;display:flex}.chapter-snapshots-secondary{cursor:pointer;min-height:2.3rem;font:inherit;border:1px solid var(--border);color:var(--text-strong);background:var(--surface-subtle);border-radius:10px;padding:.4rem .95rem;font-size:.82rem;font-weight:600}.global-search input::-webkit-search-cancel-button{cursor:pointer}.help-center-search-field input::-webkit-search-cancel-button{cursor:pointer}.project-actions{--cloud-save-progress:0%;--project-save-progress-fill:transparent;border:1px solid rgba(var(--accent-rgb), .18);background:linear-gradient(90deg, var(--project-save-progress-fill) 0 var(--cloud-save-progress), transparent var(--cloud-save-progress) 100%), linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .03)), transparent;border-radius:10px;justify-content:flex-end;justify-self:end;align-items:center;gap:.34rem;min-width:14.25rem;margin-bottom:.36rem;padding:.25rem;display:inline-flex;position:relative}.project-actions.cloud-save-active{--project-save-progress-fill:rgba(var(--accent-rgb), .2)}.project-actions .save-status{inline-size:8.6rem;padding:0 .42rem 0 .2rem}.project-actions .autosave-countdown-status{inline-size:auto;min-inline-size:8.8rem;color:var(--text-strong);opacity:1;justify-content:flex-end;gap:.24rem;padding-inline:.32rem}.chapter-writing-header .autosave-countdown-status{color:var(--text-strong);opacity:1;justify-content:flex-end;gap:.24rem}.autosave-countdown-action{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:.66rem;font-weight:900;overflow:hidden}.autosave-countdown-prefix{color:var(--muted);font-size:.66rem;font-weight:850}.autosave-countdown-ring{width:1.75rem;height:1.75rem;color:var(--text-strong);background:conic-gradient(var(--accent) var(--autosave-countdown-progress,0%), rgba(var(--accent-rgb), .16) 0);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb), .22);letter-spacing:-.04em;border-radius:999px;flex:0 0 1.75rem;place-items:center;font-size:.66rem;font-weight:900;display:grid;position:relative}.autosave-countdown-ring:before{content:"";border-radius:inherit;background:var(--surface);position:absolute;inset:.2rem}.autosave-countdown-ring span{z-index:1;position:relative}.project-action-button{min-height:1.95rem;color:var(--text-strong);box-shadow:none;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;padding:.32rem .54rem;font-size:.74rem;font-weight:850;display:inline-flex}.project-action-button:focus-visible{border-color:rgba(var(--accent-rgb), .22);color:var(--accent);background:rgba(var(--accent-rgb), .1)}@media (hover:hover){.project-action-button:hover{border-color:rgba(var(--accent-rgb), .22);color:var(--accent);background:rgba(var(--accent-rgb), .1)}}.project-action-button.autosave-toggle.active{border-color:rgba(var(--accent-rgb), .36);color:var(--accent-contrast);background:var(--accent)}.project-action-button.autosave-toggle.active:focus-visible{color:var(--accent-contrast);background:var(--accent-strong)}@media (hover:hover){.project-action-button.autosave-toggle.active:hover{color:var(--accent-contrast);background:var(--accent-strong)}}.autosave-interval-control{min-width:0;color:var(--muted);letter-spacing:.06em;text-transform:uppercase;gap:.28rem;margin:0;font-size:.68rem;font-weight:850;display:grid;position:relative}.autosave-interval-control.compact{align-items:center;margin:0;display:inline-flex}.autosave-interval-label{min-width:0}.autosave-interval-trigger{border:1px solid rgba(var(--accent-rgb), .22);min-width:5.7rem;min-height:1.95rem;color:var(--text-strong);background:var(--surface);box-shadow:none;font:inherit;letter-spacing:0;text-transform:none;border-radius:10px;justify-content:space-between;align-items:center;gap:.28rem;padding:.32rem .5rem .32rem .62rem;font-size:.74rem;font-weight:850;display:inline-flex}.autosave-interval-trigger-label{color:var(--muted);font-size:.68rem;font-weight:900}.autosave-interval-trigger:focus-visible,.autosave-interval-control.open .autosave-interval-trigger{border-color:rgba(var(--accent-rgb), .45);color:var(--accent);background:rgba(var(--accent-rgb), .08);outline:none}@media (hover:hover){.autosave-interval-trigger:hover{border-color:rgba(var(--accent-rgb), .45);color:var(--accent);background:rgba(var(--accent-rgb), .08);outline:none}}.autosave-interval-chevron{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;flex:none;width:.58rem;height:.36rem}.autosave-interval-menu{z-index:var(--z-modal-popover);border:1px solid rgba(var(--accent-rgb), .24);background:var(--dropdown-surface);border-radius:12px;gap:.48rem;min-width:12rem;padding:.48rem;display:grid;position:absolute;top:calc(100% + .35rem);right:0;box-shadow:0 18px 44px #2e231938}.autosave-interval-menu-section{gap:.32rem;display:grid}.autosave-interval-menu-label{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;margin:0;font-size:.68rem;font-weight:900}.autosave-interval-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:.24rem;display:grid}.autosave-interval-option{min-height:1.95rem;color:var(--text-strong);background:linear-gradient(0deg, rgba(var(--accent-rgb), .04), rgba(var(--accent-rgb), .04)), var(--dropdown-surface);box-shadow:none;letter-spacing:0;text-transform:none;border-color:#0000;border-radius:9px;justify-content:center;align-items:center;padding:.32rem .5rem;font-size:.74rem;font-weight:850;display:inline-flex}.autosave-interval-option:focus-visible{border-color:rgba(var(--accent-rgb), .18);color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .08), rgba(var(--accent-rgb), .08)), var(--dropdown-surface)}@media (hover:hover){.autosave-interval-option:hover{border-color:rgba(var(--accent-rgb), .18);color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .08), rgba(var(--accent-rgb), .08)), var(--dropdown-surface)}}.autosave-interval-option.active{color:var(--accent-contrast);background:var(--accent)}.autosave-interval-save-now{min-height:2.1rem;color:var(--accent-contrast);background:var(--accent);box-shadow:none;border-color:#0000;border-radius:10px;justify-content:center;align-items:center;padding:.42rem .6rem;font-size:.76rem;font-weight:900;display:inline-flex}.autosave-interval-save-now:focus-visible{color:var(--accent-contrast);background:var(--accent-strong)}@media (hover:hover){.autosave-interval-save-now:hover{color:var(--accent-contrast);background:var(--accent-strong)}}.autosave-interval-save-now:disabled{cursor:not-allowed;opacity:.62}.project-action-button.primary{color:var(--accent-contrast);background:var(--accent);border-color:#0000}.project-action-button.primary:focus-visible{color:var(--accent-contrast);background:var(--accent-strong)}@media (hover:hover){.project-action-button.primary:hover{color:var(--accent-contrast);background:var(--accent-strong)}}.search-results{z-index:35;border:1px solid var(--border);background:var(--dropdown-surface);border-radius:10px;gap:.25rem;width:min(32rem,100vw - 2rem);max-height:min(32rem,100svh - 8rem);padding:.35rem;display:grid;position:absolute;top:calc(100% + .55rem);right:0;overflow:auto;box-shadow:0 18px 48px #4b3b2a2e}@media (width<=1180px),(height<=599px){.app-shell{min-width:0;height:100dvh;min-height:100dvh;overflow:hidden}.workspace-header,.active-book-details,.workspace{display:none!important}.small-screen-message{display:none}.mobile-workspace{box-sizing:border-box;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-y;-webkit-overflow-scrolling:touch;width:100vw;height:100dvh;min-height:100dvh;padding:max(.75rem, env(safe-area-inset-top)) max(.8rem, env(safe-area-inset-right)) max(.85rem, env(safe-area-inset-bottom)) max(.8rem, env(safe-area-inset-left));background:radial-gradient(circle at 20% 12%, rgba(var(--accent-rgb), .22), transparent 18rem), radial-gradient(circle at 82% 82%, #b453092e, transparent 16rem), var(--bg);flex-direction:column;gap:.7rem;display:flex;position:fixed;inset:0;overflow:hidden auto}.mobile-workspace::-webkit-scrollbar{display:none}.mobile-topbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.7rem;min-width:0;display:grid}.mobile-brand{align-items:center;gap:.65rem;min-width:0;display:flex}.mobile-brand .brand-mark{flex:none}.mobile-brand-copy{gap:.08rem;min-width:0;display:grid}.mobile-brand h1,.mobile-brand p{margin:0}.mobile-brand h1{color:var(--text-strong);letter-spacing:-.055em;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(1.15rem,6vw,1.75rem);line-height:1;overflow:hidden}.mobile-kicker{color:var(--accent);letter-spacing:.12em;text-transform:uppercase;font-size:.66rem;font-weight:900}.mobile-topbar-actions{justify-self:end;align-items:center;gap:.45rem;display:inline-flex}.mobile-topbar-actions .theme-toggle-button{background:var(--surface);width:2.65rem;min-width:2.65rem;min-height:2.65rem;box-shadow:var(--soft-shadow)}.mobile-topbar .hamburger-menu{justify-self:end}.mobile-topbar .hamburger-menu summary{background:var(--surface);width:2.65rem;min-width:0;height:2.65rem;min-height:0;box-shadow:var(--soft-shadow)}.mobile-topbar .hamburger-menu summary span,.mobile-topbar .hamburger-menu summary span:before,.mobile-topbar .hamburger-menu summary span:after{border-radius:999px;width:1.1rem;height:.14rem}.mobile-topbar .hamburger-menu summary span:before{top:-.38rem}.mobile-topbar .hamburger-menu summary span:after{top:.38rem}.mobile-topbar .menu-panel{z-index:45;gap:.16rem;width:min(19rem,100vw - 1.6rem);max-height:calc(100dvh - 5.6rem);padding:.3rem;overflow:auto;box-shadow:0 22px 60px #2e231938}.mobile-topbar .menu-panel button,.mobile-topbar .menu-panel .button{min-height:2.05rem;padding:.48rem .62rem;font-size:.78rem}.mobile-topbar .menu-section{gap:.08rem;padding-bottom:.18rem}.mobile-topbar .menu-section-title{margin:.1rem .62rem 0;font-size:.62rem}.mobile-topbar .cloud-sync-menu-status{margin:0 .62rem .12rem;font-size:.68rem}.mobile-topbar .menu-footer{padding:.32rem .3rem .05rem}.mobile-topbar .menu-footer button{min-width:2.15rem;padding:.28rem .48rem}.mobile-autosave-countdown{place-items:center;width:2.2rem;height:2.65rem;display:inline-grid}.mobile-autosave-countdown .autosave-countdown-ring{flex-basis:1.72rem;width:1.72rem;height:1.72rem}.mobile-navigation-stack{gap:.45rem;min-width:0;display:grid}.mobile-book-switcher{min-width:0;position:relative}.mobile-book-switcher-trigger{background:var(--surface);width:100%;min-height:2.45rem;box-shadow:var(--soft-shadow);text-align:left;border-radius:10px;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:.45rem;padding:.45rem .62rem;display:grid}.mobile-book-switcher-label,.mobile-book-switcher-count,.mobile-book-switcher-status{color:var(--muted);white-space:nowrap;font-size:.62rem;font-weight:900}.mobile-book-switcher-label,.mobile-book-switcher-count{letter-spacing:.08em;text-transform:uppercase}.mobile-book-switcher-label{align-self:baseline}.mobile-book-switcher-status{letter-spacing:.01em}.mobile-book-switcher-status.saving{color:var(--link)}.mobile-book-switcher-status.error{color:var(--danger)}.mobile-book-switcher-title,.mobile-book-switcher-name{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-weight:900;overflow:hidden}.mobile-brand-copy .mobile-book-switcher{width:100%}.mobile-brand-copy .mobile-book-switcher-trigger{min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.48rem;padding:0}.mobile-brand-copy .mobile-book-switcher-label{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.mobile-brand-copy .mobile-book-switcher-title{letter-spacing:-.055em;font-size:clamp(1.15rem,6vw,1.75rem);line-height:1}.mobile-brand-copy .mobile-book-switcher-count{color:var(--muted);letter-spacing:.07em;margin-bottom:.1rem;font-size:.6rem}.mobile-brand-copy .mobile-book-switcher-list{width:min(19rem,100vw - 1.6rem);top:calc(100% + .55rem);right:auto}.mobile-book-switcher-list{z-index:58;border:1px solid rgba(var(--accent-rgb), .28);background:var(--dropdown-surface);border-radius:14px;gap:.28rem;max-height:min(18rem,48dvh);padding:.35rem;display:grid;position:absolute;top:calc(100% + .4rem);left:0;right:0;overflow:auto;box-shadow:0 24px 70px #2e231947}.mobile-book-switcher-option{--mobile-book-switcher-option-surface:linear-gradient(0deg, rgba(var(--accent-rgb), .04), rgba(var(--accent-rgb), .04)), var(--dropdown-surface);background:var(--mobile-book-switcher-option-surface);border:1px solid #0000;border-radius:10px;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;min-width:0;display:grid;overflow:hidden}.mobile-book-switcher-option.active{--mobile-book-switcher-option-surface:linear-gradient(135deg, var(--tab-accent,var(--accent)), var(--tab-accent-strong,var(--accent-strong)));border-color:rgba(var(--tab-accent-rgb,var(--accent-rgb)), .42);background:var(--mobile-book-switcher-option-surface)}.mobile-book-switcher-book{background:var(--mobile-book-switcher-option-surface);min-width:0;min-height:2.35rem;box-shadow:none;text-align:left;border:0;border-radius:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.45rem;padding:.44rem .55rem;display:grid}.mobile-book-switcher-option.active .mobile-book-switcher-book,.mobile-book-switcher-option.active .mobile-book-switcher-name,.mobile-book-switcher-option.active .mobile-book-switcher-status{color:var(--tab-accent-contrast,var(--accent-contrast))}.mobile-book-switcher-number{width:1.55rem;height:1.55rem;color:var(--tab-accent,var(--accent));background:rgba(var(--tab-accent-rgb,var(--accent-rgb)), .12);border-radius:999px;place-items:center;font-size:.72rem;font-weight:900;display:grid}.mobile-book-switcher-option.active .mobile-book-switcher-number{background:var(--tab-accent-contrast,var(--accent-contrast))}.mobile-book-switcher-close{border:0;border-left:1px solid rgba(var(--accent-rgb), .16);width:2.25rem;min-width:2.25rem;min-height:0;color:var(--muted);background:var(--mobile-book-switcher-option-surface);box-shadow:none;border-radius:0;padding:0}.mobile-book-switcher-option.active .mobile-book-switcher-close{color:var(--tab-accent-contrast,var(--accent-contrast));border-left-color:#ffffff38}.mobile-book-switcher-add{border-color:rgba(var(--accent-rgb), .18);min-height:2.35rem;color:var(--accent);background:rgba(var(--accent-rgb), .08);box-shadow:none;text-align:left;border-radius:10px;justify-content:flex-start;gap:.45rem}.mobile-chapter-nav{grid-template-columns:2.8rem minmax(0,1fr) 2.8rem;align-items:end;gap:.4rem;min-width:0;display:grid}.mobile-chapter-nav>button{box-sizing:border-box;border-radius:10px;width:2.8rem;min-width:2.8rem;height:2.9rem;min-height:0;padding:0;font-size:1.1rem}.mobile-chapter-picker{gap:.25rem;min-width:0;display:grid;position:relative}.mobile-chapter-picker>span{color:var(--muted);letter-spacing:.1em;text-transform:uppercase;margin:0;font-size:.68rem;font-weight:900}.mobile-chapter-picker-trigger{box-sizing:border-box;width:100%;min-width:0;height:2.9rem;min-height:0;color:var(--text-strong);background:linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent 75%), var(--surface);text-align:left;box-shadow:var(--soft-shadow);border-radius:10px;grid-template-columns:minmax(0,1fr);grid-template-areas:"title""detail";justify-content:stretch;align-items:center;padding:.48rem .68rem;font-weight:850;display:grid;position:relative}.mobile-chapter-picker-trigger:focus-visible{border-color:rgba(var(--accent-rgb), .45);background:linear-gradient(135deg, rgba(var(--accent-rgb), .14), transparent 75%), var(--surface)}.mobile-chapter-picker-current{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;grid-area:title;font-size:.95rem;line-height:1.05;overflow:hidden}.mobile-chapter-picker-detail{color:var(--muted);grid-area:detail;font-size:.68rem;font-weight:850}.mobile-chapter-picker-chevron{display:none}.mobile-chapter-picker-list{z-index:60;border:1px solid rgba(var(--accent-rgb), .28);background:radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), .16), transparent 12rem), var(--dropdown-surface);border-radius:14px;gap:.35rem;max-height:min(24rem,48dvh);padding:.45rem;display:grid;position:absolute;top:calc(100% + .45rem);left:0;right:0;overflow:auto;box-shadow:0 24px 70px #2e231957}.mobile-chapter-picker-option{width:100%;min-height:3.15rem;color:var(--text);background:linear-gradient(0deg, rgba(var(--accent-rgb), .04), rgba(var(--accent-rgb), .04)), var(--dropdown-surface);box-shadow:none;text-align:left;border-color:#0000;border-radius:10px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem;padding:.55rem .65rem;display:grid}.mobile-chapter-picker-option:focus-visible{border-color:rgba(var(--accent-rgb), .24);background:linear-gradient(0deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), .1)), var(--dropdown-surface);transform:none}.mobile-chapter-picker-option.active{border-color:rgba(var(--accent-rgb), .42);color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong))}.mobile-chapter-picker-number{width:1.8rem;height:1.8rem;color:var(--accent);background:rgba(var(--accent-rgb), .12);border-radius:999px;place-items:center;font-size:.76rem;font-weight:900;display:grid}.mobile-chapter-picker-option.active .mobile-chapter-picker-number{color:var(--accent);background:var(--accent-contrast)}.mobile-chapter-picker-title,.mobile-chapter-picker-meta{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.mobile-chapter-picker-title{color:inherit;font-weight:900}.mobile-chapter-picker-meta{color:var(--muted);font-size:.68rem;font-weight:850}.mobile-chapter-picker-option.active .mobile-chapter-picker-meta{color:#fff7e8c7}.mobile-chapter-card{border:1px solid rgba(var(--accent-rgb), .2);background:var(--surface);touch-action:pan-y;border-radius:16px;flex-direction:column;flex:none;min-height:0;display:flex;overflow:visible;box-shadow:0 24px 70px #2e231929}.mobile-chapter-hero{background:var(--storyline-readout-background,linear-gradient(135deg, rgba(var(--accent-rgb), .12), transparent)), var(--surface);border-radius:16px 16px 0 0;gap:.35rem;padding:1rem;display:grid}.mobile-chapter-hero p,.mobile-chapter-hero h2{margin:0}.mobile-chapter-hero p{color:var(--muted);font-size:.78rem;line-height:1.35}.mobile-chapter-hero h2{color:var(--text-strong);letter-spacing:-.06em;font-size:clamp(1.45rem,8vw,2.25rem);line-height:1.02}.mobile-chapter-cover{border:1px solid rgba(var(--accent-rgb), .18);background:rgba(var(--accent-rgb), .08);border-radius:12px;margin:0 0 .25rem;overflow:hidden;box-shadow:0 18px 42px #2e231929}.mobile-chapter-cover img{object-fit:cover;width:100%;height:clamp(8rem,34vw,12rem);display:block}.mobile-chapter-meta{flex-wrap:wrap;gap:.35rem;display:flex}.mobile-chapter-meta span{color:var(--accent);background:rgba(var(--accent-rgb), .1);border-radius:999px;padding:.25rem .52rem;font-size:.68rem;font-weight:900}.mobile-chapter-meta .mobile-chapter-done-pill{color:#fff;background:linear-gradient(135deg,#ef4444,#b91c1c);border:1px solid #ffffff6b;box-shadow:0 0 0 2px #ef444438}.mobile-chapter-tabs{border-block:1px solid var(--border);background:rgba(var(--accent-rgb), .05);grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;padding:.35rem;display:grid}.mobile-chapter-tabs button{min-width:0;color:var(--muted);background:0 0;border:0;border-radius:10px}.mobile-chapter-tabs button.active{color:var(--accent-contrast);background:var(--accent)}.mobile-panel{background:var(--surface);border-radius:0 0 16px 16px;min-height:auto;padding:1rem;display:block;overflow:visible}.mobile-details-panel{flex-direction:column;gap:.9rem;display:flex}.mobile-details-panel .field{margin-bottom:0}.mobile-field-grid{gap:.85rem;display:grid}.mobile-quick-actions,.mobile-panel-actions,.field-heading-actions{flex-wrap:wrap;gap:.45rem;display:flex}.mobile-quick-actions button,.mobile-panel-actions button{flex:8rem;min-height:2.5rem}.mobile-full-button{width:100%;margin-top:.85rem}.mobile-image-strip{justify-content:center;align-items:stretch;gap:.55rem;min-height:8rem;padding-bottom:.15rem;display:flex;overflow-x:auto}.mobile-image-strip figure{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex:0 0 min(13rem,72vw);margin:0;overflow:hidden}.mobile-image-strip img{object-fit:cover;width:100%;height:8rem;display:block}.mobile-notes-editor{gap:.75rem;display:grid}.mobile-empty-state{border:1px solid rgba(var(--accent-rgb), .2);background:var(--surface);text-align:center;border-radius:16px;place-self:center;justify-items:center;gap:.75rem;width:min(100%,28rem);padding:1.4rem;display:grid;box-shadow:0 24px 70px #2e231929}.mobile-empty-state h2,.mobile-empty-state p{margin:0}.mobile-empty-state h2{color:var(--text-strong);font-size:1.45rem}.writing-shell{width:100vw;min-width:0;max-width:100vw;height:100dvh;min-height:100dvh;overflow:hidden}.chapter-writing-view{box-sizing:border-box;width:100%;max-width:100vw;height:100%;padding:max(.65rem, env(safe-area-inset-top)) max(.7rem, env(safe-area-inset-right)) max(.7rem, env(safe-area-inset-bottom)) max(.7rem, env(safe-area-inset-left));gap:.65rem;overflow:hidden}.chapter-writing-header,.chapter-writing-card,.chapter-writing-ribbon,.writer-ribbon-tabs,.writer-ribbon-strip,.chapter-writing-body,.chapter-rich-editor{box-sizing:border-box;min-width:0;max-width:100%}.chapter-writing-header,.chapter-writing-card{width:100%}.chapter-writing-header{gap:.65rem}.chapter-writing-header>div:not(.save-summary){min-width:0}.chapter-writing-header>.button{text-overflow:ellipsis;white-space:nowrap;min-width:0;padding-inline:.85rem;overflow:hidden}.chapter-writing-header .save-summary{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"theme status""theme count";justify-self:end;align-items:center;gap:.16rem .5rem;max-width:min(17rem,38vw);display:grid}.chapter-writing-header .theme-toggle-button{grid-area:theme}.chapter-writing-header .save-status{grid-area:status;min-width:0;max-width:100%;overflow:hidden}.chapter-writing-header .writing-save-status-progress{grid-area:status;min-width:0;max-width:100%}.chapter-writing-header .save-status-label,.chapter-writing-header .total-word-count{text-overflow:ellipsis;min-width:0;overflow:hidden}.chapter-writing-header .total-word-count{grid-area:count;max-width:100%}.chapter-writing-card{border-radius:14px}.writer-ribbon-tabs,.writer-ribbon-strip{overscroll-behavior-x:contain}.writer-ribbon-strip{width:100%}.writer-ribbon-group{flex:none}.writer-ribbon-strip.focus{flex-wrap:wrap;overflow-x:hidden}.writer-ribbon-strip.focus .writer-ribbon-focus{flex:0 auto;gap:.35rem;padding-inline:.42rem}.writer-ribbon-strip.focus .focus-target-control{flex:0 auto;gap:.28rem}.writer-ribbon-strip.focus .focus-target-control span{letter-spacing:.04em;text-overflow:ellipsis;white-space:nowrap;max-width:5.2rem;font-size:.54rem;overflow:hidden}.writer-ribbon-strip.focus .focus-target-control input{width:4.1rem;padding-inline:.45rem}.writer-ribbon-strip.focus .focus-target-progress{gap:.18rem .34rem;width:clamp(6.25rem,18vw,10rem)}.writer-ribbon-strip.focus .writer-ribbon-focus-indicators{flex:14rem;min-width:0;padding-inline:.42rem}.writer-ribbon-strip.focus .writer-insights-grid{flex:auto;grid-template-columns:repeat(2,minmax(5.75rem,1fr));gap:.35rem;min-width:0}.writer-ribbon-strip.focus .writer-insight{padding-inline:.5rem}.chapter-rich-editor{overflow-wrap:break-word}@media (hover:hover){.mobile-workspace button:hover:not(.active),.mobile-workspace .button:hover,.writing-shell button:hover:not(.active),.writing-shell .button:hover{border-color:var(--border);color:var(--text-strong);background:var(--surface);box-shadow:none;transform:none}.mobile-workspace .hamburger-menu summary:hover{border-color:var(--border);background:var(--surface)}.mobile-workspace .menu-panel button:hover,.mobile-workspace .menu-panel .button:hover{background:var(--dropdown-surface);box-shadow:none;border-color:#0000;transform:none}.mobile-workspace .mobile-book-switcher-trigger:hover{border-color:var(--border);background:var(--surface)}.mobile-workspace .mobile-brand-copy .mobile-book-switcher-trigger:hover{background:0 0;border-color:#0000}.mobile-workspace .mobile-book-switcher-book:hover,.mobile-workspace .mobile-book-switcher-close:hover{background:var(--mobile-book-switcher-option-surface);box-shadow:none;border-color:#0000;transform:none}.mobile-workspace .mobile-book-switcher-book:hover{color:var(--text-strong)}.mobile-workspace .mobile-book-switcher-book.active:hover,.mobile-workspace .mobile-book-switcher-book.active:hover .mobile-book-switcher-name,.mobile-workspace .mobile-book-switcher-book.active:hover .mobile-book-switcher-status{color:var(--tab-accent-contrast,var(--accent-contrast))}.mobile-workspace .mobile-book-switcher-close:hover{color:var(--muted)}.mobile-workspace .mobile-book-switcher-option.active .mobile-book-switcher-close:hover{color:var(--tab-accent-contrast,var(--accent-contrast))}.mobile-workspace .mobile-book-switcher-add:hover{border-color:rgba(var(--accent-rgb), .18);color:var(--accent);background:rgba(var(--accent-rgb), .08)}.mobile-workspace .menu-footer button.active:hover,.mobile-workspace .mobile-chapter-tabs button.active:hover,.mobile-workspace .mobile-chapter-picker-option.active:hover{color:var(--accent-contrast);background:var(--accent)}.mobile-workspace .mobile-chapter-picker-option.active:hover{background:linear-gradient(135deg, var(--accent), var(--accent-strong))}.mobile-workspace .mobile-chapter-picker-trigger:hover{border-color:var(--border);background:linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent 75%), var(--surface)}.mobile-workspace .mobile-chapter-picker-option:hover:not(.active){color:var(--muted);background:linear-gradient(0deg, rgba(var(--accent-rgb), .04), rgba(var(--accent-rgb), .04)), var(--dropdown-surface);border-color:#0000}.mobile-workspace .mobile-chapter-tabs button:hover:not(.active){color:var(--muted);background:0 0;border-color:#0000}.writing-shell .writer-ribbon-tab:hover:not(.active){color:var(--muted);background:0 0}.writing-shell .writer-ribbon-tab.active:hover{color:var(--text-strong);background:var(--surface)}.writing-shell .writer-ribbon-strip button:hover:not(.active){border-color:var(--border);color:var(--text-strong);background:rgba(var(--accent-rgb), .055)}}.small-screen-card{border:1px solid rgba(var(--accent-rgb), .22);width:min(100%,28rem);color:var(--text);background:linear-gradient(135deg, rgba(var(--accent-rgb), .12), #fffaf0b8), var(--surface);text-align:center;border-radius:10px;justify-items:center;gap:.7rem;margin:auto;padding:clamp(1.4rem,6vw,2.4rem);display:grid;box-shadow:0 28px 70px #4b3b2a33}.small-screen-mark{width:3.4rem;height:3.4rem;color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong));box-shadow:0 16px 34px rgba(var(--accent-rgb), .24);border-radius:10px;place-items:center;display:grid}.small-screen-kicker{color:var(--accent);letter-spacing:.12em;text-transform:uppercase;margin:.15rem 0 0;font-size:.76rem;font-weight:900}.small-screen-card h1{color:var(--text-strong);letter-spacing:-.055em;margin:0;font-size:clamp(1.55rem,8vw,2.25rem);line-height:1.02}.small-screen-card p{max-width:22rem;color:var(--muted);margin:0;font-size:.96rem;line-height:1.5}.small-screen-card .small-screen-requirement{border:1px solid rgba(var(--accent-rgb), .18);color:var(--text-strong);background:rgba(var(--accent-rgb), .08);border-radius:10px;margin-top:.25rem;padding:.55rem .85rem;font-size:.82rem;font-weight:850}:root[data-theme=dark] .small-screen-card{background:linear-gradient(135deg, rgba(var(--accent-rgb), .18), #11100ee0), var(--surface);box-shadow:0 28px 70px #0000006b}}@media (width<=520px){.chapter-writing-view{padding:max(.55rem, env(safe-area-inset-top)) max(.55rem, env(safe-area-inset-right)) max(.55rem, env(safe-area-inset-bottom)) max(.55rem, env(safe-area-inset-left));gap:.55rem}.chapter-writing-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"back actions""title title";gap:.5rem}.chapter-writing-header>.button{grid-area:back;justify-self:start;max-width:100%;padding-inline:.72rem}.chapter-writing-header>div:not(.save-summary){grid-area:title}.chapter-writing-header .save-summary{grid-area:actions;max-width:min(10.5rem,42vw)}.chapter-writing-header h1{font-size:clamp(1.35rem,9vw,2rem)}.chapter-writing-title{flex-direction:column;align-items:stretch;gap:.42rem}.chapter-writing-navigation{width:100%}.chapter-writing-navigation-button{flex:1 1 0;justify-content:center;padding-inline:.55rem}.writer-ribbon-tabs{padding-inline:.35rem}.writer-ribbon-tab{padding-inline:.62rem}.writer-ribbon-strip{padding-inline:.35rem}.writer-ribbon-group{padding-inline:.45rem}.chapter-rich-editor{padding:1rem}}.search-result{background:var(--dropdown-surface);text-align:left;border:0;border-radius:7px;justify-items:start;gap:.15rem;width:100%;padding:.65rem .75rem;display:grid}.search-result:focus-visible{background:linear-gradient(0deg, rgba(var(--accent-rgb), .08), rgba(var(--accent-rgb), .08)), var(--dropdown-surface)}@media (hover:hover){.search-result:hover{background:linear-gradient(0deg, rgba(var(--accent-rgb), .08), rgba(var(--accent-rgb), .08)), var(--dropdown-surface)}}.search-result-meta{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:.68rem;font-weight:850}.search-result-title{color:var(--text-strong);font-weight:850}.search-result-snippet,.search-no-results{color:var(--muted);margin:0;font-size:.78rem;font-weight:500}.active-book-details{z-index:15;border-bottom:1px solid var(--border);border-top:1px solid var(--border-strong);color:var(--text);background:linear-gradient(90deg, rgba(var(--accent-rgb), .1), transparent 34rem), var(--surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;padding:.72rem 1rem .82rem;display:grid;box-shadow:0 14px 30px #4b3b2a12}.book-done-progress{--book-done-progress:0%;--book-done-progress-track-width:100vw;z-index:14;border-bottom:1px solid rgba(var(--accent-rgb), .18);background:linear-gradient(90deg, #3b82f61a, #22c55e1a), rgba(var(--accent-rgb), .06);flex:0 0 4px;height:4px;position:relative;overflow:hidden}.book-done-progress-fill{width:var(--book-done-progress);background:linear-gradient(90deg, #3b82f6 0, #22c55e var(--book-done-progress-track-width));border-radius:0 999px 999px 0;height:100%;transition:width .22s;display:block;box-shadow:0 0 0 1px #ffffff38,0 0 16px #22c55e4d}.active-book-details .book-meta{max-width:100%}.brand-lockup{align-items:center;gap:.6rem;min-width:0;display:flex}.brand-mark{border:1px solid rgba(var(--accent-rgb), .2);width:2.35rem;height:2.35rem;color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong));box-shadow:0 12px 24px rgba(var(--accent-rgb), .18);border-radius:10px;place-items:center;display:grid}.brand-mark-icon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.5px;width:1.55rem;height:1.55rem}.small-screen-mark .brand-mark-icon{stroke-width:2.35px;width:2rem;height:2rem}.book-meta{grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:.7rem;min-width:0;display:grid}.book-text-fields{gap:.1rem;min-width:0;display:grid}.book-title-row{align-items:center;gap:.55rem;min-width:0;display:flex}.book-title-row .book-field{flex:1}.save-summary{flex-wrap:nowrap;align-items:center;gap:.75rem;min-width:0;display:inline-flex}.book-bar-actions{justify-self:end;place-items:center end;gap:.36rem;min-width:max-content;display:flex}.book-bar-stats,.book-bar-buttons{white-space:nowrap;justify-content:flex-end;align-items:center;gap:.45rem;display:inline-flex}.book-bar-stats{color:var(--muted);font-size:.76rem;font-weight:850}.save-summary .book-bar-stats{justify-content:flex-start}.book-bar-buttons button,.export-split-button button{border-radius:10px;min-height:2.15rem;padding:.42rem .78rem}.stylesheet-toolbar-button,.stylesheet-topbar-button{justify-content:center;align-items:center;gap:.42rem;display:inline-flex}.stylesheet-toolbar-button svg,.stylesheet-topbar-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9px;width:1rem;height:1rem}.stylesheet-toolbar-button.active,.stylesheet-topbar-button.active{border-color:rgba(var(--accent-rgb), .45);color:var(--accent-contrast);background:var(--accent)}.export-split-button{white-space:nowrap;align-items:stretch;display:inline-flex;position:relative}.export-split-button button{white-space:nowrap;border-radius:0}.export-split-button .export-main-button{border-radius:8px 0 0 8px}.export-split-button .export-dropdown-trigger{border-radius:0 8px 8px 0;justify-content:center;align-items:center;width:2.2rem;margin-left:-1px;padding-inline:.42rem;display:inline-flex}.export-dropdown-trigger svg{fill:none;stroke:currentColor;stroke-width:2.1px;stroke-linecap:round;stroke-linejoin:round;width:.9rem;height:.9rem;transform:translateY(1px)}.add-split-button .export-main-button,.add-split-button .export-dropdown-trigger{color:var(--accent-contrast);background:var(--accent);border-color:#0000}.add-split-button .export-dropdown-trigger{border-left:1px solid #ffffff4d}.add-split-button .export-main-button:focus-visible,.add-split-button .export-dropdown-trigger:focus-visible{color:var(--accent-contrast);background:var(--accent-strong)}@media (hover:hover){.add-split-button .export-main-button:hover,.add-split-button .export-dropdown-trigger:hover{color:var(--accent-contrast);background:var(--accent-strong)}}.export-format-menu{z-index:35;border:1px solid var(--border);background:var(--dropdown-surface);border-radius:10px;gap:.15rem;min-width:8.5rem;padding:.25rem;display:grid;position:absolute;top:calc(100% + .35rem);right:0;box-shadow:0 14px 36px #4b3b2a29}.export-split-button .export-format-menu button,.export-split-button .export-format-menu .export-format-menu-item{box-sizing:border-box;width:100%;min-height:2.15rem;color:var(--text-strong);background:var(--dropdown-surface);box-shadow:none;font:inherit;cursor:pointer;white-space:nowrap;border:0;border-radius:10px;justify-content:flex-start;align-items:center;padding:.42rem .78rem;font-size:.82rem;font-weight:750;display:inline-flex;position:relative;overflow:hidden}.export-split-button .export-format-menu button:focus-visible,.export-split-button .export-format-menu button.active,.export-split-button .export-format-menu .export-format-menu-item:focus-within{color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface)}@media (hover:hover){.export-split-button .export-format-menu button:hover,.export-split-button .export-format-menu .export-format-menu-item:hover{color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface)}}.export-split-button .export-format-menu .export-format-menu-item input{opacity:0;cursor:pointer;position:absolute;inset:0}.book-bar-buttons .primary:focus-visible{color:var(--accent-contrast);background:var(--accent-strong)}@media (hover:hover){.book-bar-buttons .primary:hover{color:var(--accent-contrast);background:var(--accent-strong)}}.total-word-count{color:var(--muted);white-space:nowrap;flex:none;font-size:.72rem}.count-separator{background:var(--border);flex:none;width:1px;height:1rem}.book-cover-field{flex:none;align-self:center;width:2.75rem;height:4rem;position:relative}.book-cover-dropzone{border:1px dashed rgba(var(--accent-rgb), .36);width:100%;height:100%;color:var(--muted);background:linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent), #fffaf0b8;cursor:pointer;border-radius:10px;place-items:center;transition:border-color .16s,box-shadow .16s,transform .16s;display:grid;overflow:hidden;box-shadow:0 10px 20px #4b3b2a17}.book-cover-field.has-cover .book-cover-dropzone{background:var(--surface);border-style:solid}.book-cover-field.drop-active .book-cover-dropzone,.book-cover-dropzone:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft), 0 12px 24px #4b3b2a24;transform:translateY(-1px)}@media (hover:hover){.book-cover-dropzone:hover{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft), 0 12px 24px #4b3b2a24;transform:translateY(-1px)}}.book-cover-dropzone img{object-fit:cover;width:100%;height:100%;display:block}.book-cover-dropzone input{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.book-cover-remove{color:#fff;opacity:0;pointer-events:none;background:#4b3b2ac7;border-radius:10px;place-items:center;width:1.15rem;min-width:0;height:1.15rem;padding:0;font-size:.76rem;line-height:1;transition:opacity .14s,transform .14s,background .14s;display:grid;position:absolute;top:-.38rem;right:-.38rem;transform:scale(.88);box-shadow:0 6px 14px #4b3b2a38}.book-cover-field:focus-within .book-cover-remove{opacity:1;pointer-events:auto;transform:scale(1)}@media (hover:hover){.book-cover-field:hover .book-cover-remove{opacity:1;pointer-events:auto;transform:scale(1)}}.book-cover-remove:focus-visible{color:#fff;background:var(--danger);border-color:#ef444466}@media (hover:hover){.book-cover-remove:hover{color:#fff;background:var(--danger);border-color:#ef444466}}.book-settings-button{border-color:rgba(var(--accent-rgb), .24);width:2.35rem;min-width:2.35rem;height:2.35rem;color:var(--accent);background:0 0;border-radius:10px;place-items:center;padding:0;display:grid}.book-settings-button:focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.book-settings-button:hover{color:var(--accent-contrast);background:var(--accent)}}.book-settings-button svg{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:1.16rem;height:1.16rem}.book-field{min-width:0;padding:0;display:grid;position:relative}.book-field+.book-field{border:0}.book-field span{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.book-field input{color:var(--text-strong);box-shadow:none;background:0 0;border:0;border-bottom:1px solid #0000;border-radius:0;padding:.05rem 0;font-size:.92rem;font-weight:650;line-height:1.15}.book-title-field input{letter-spacing:-.055em;font-size:clamp(1.4rem,4vw,2.05rem);font-weight:850}.book-text-fields>.book-field input{color:var(--muted);font-size:.78rem;font-style:italic;font-weight:500}.book-field input:focus{border-bottom-color:var(--border-strong);outline:none}@media (hover:hover){.book-field input:hover{border-bottom-color:var(--border-strong);outline:none}}.book-field input::placeholder{color:var(--muted);opacity:.62}.accent-field{place-items:center;display:inline-grid}.accent-field input{border:1px solid rgba(var(--accent-rgb), .28);cursor:pointer;background:0 0;border-radius:10px;width:2.35rem;min-width:0;height:2.35rem;padding:0}.accent-field input::-webkit-color-swatch-wrapper{padding:0}.accent-field input::-webkit-color-swatch{border:0;border-radius:10px}.accent-field input::-moz-color-swatch{border:0;border-radius:10px}.settings-accent-field input{width:3rem;height:3rem;box-shadow:0 12px 24px rgba(var(--accent-rgb), .2);border-radius:10px}.settings-accent-field input::-webkit-color-swatch{border-radius:10px}.settings-accent-field input::-moz-color-swatch{border-radius:10px}.accent-setting-controls{flex:none;align-items:center;gap:.6rem;display:inline-flex}.cover-color-button{border-color:rgba(var(--accent-rgb), .24);min-height:2.35rem;color:var(--accent);background:rgba(var(--accent-rgb), .08);box-shadow:none;white-space:nowrap;border-radius:10px;padding:.35rem .8rem;font-size:.8rem;font-weight:850}.cover-color-button:focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.cover-color-button:hover{color:var(--accent-contrast);background:var(--accent)}}.toolbar{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.55rem;min-width:0;margin-bottom:.36rem;padding:0;display:flex}button,.button{border:1px solid var(--border);color:var(--text-strong);background:var(--surface);box-shadow:none;font:inherit;cursor:pointer;border-radius:10px;padding:.58rem .82rem;font-size:.82rem;font-weight:750;transition:background .16s,border-color .16s,color .16s}.toolbar button,.toolbar .button{border-color:var(--border);background:#fffaf0c2;justify-content:center;align-items:center;min-height:2.4rem;display:inline-flex}.save-status{color:var(--muted);opacity:.68;white-space:nowrap;flex:none;align-items:center;gap:.3rem;font-size:.72rem;font-weight:750;display:inline-flex}.save-status-indicator{background:var(--muted);border-radius:10px;flex:0 0 .4rem;width:.4rem;height:.4rem}.save-status-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.save-status.saved{color:var(--text-strong)}.save-status.saved .save-status-indicator{background:var(--accent)}.save-status.saving .save-status-indicator{background:var(--link)}.save-status.error{color:var(--danger)}.save-status.error .save-status-indicator{background:var(--danger)}@media (hover:hover){button:hover,.button:hover{border-color:var(--accent);background:var(--accent-soft)}}button:focus-visible,.button:focus-visible,.hamburger-menu summary:focus-visible{outline:3px solid var(--accent-soft);outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed;transform:none}.primary{color:var(--accent-contrast);background:var(--accent);border-color:#0000}.toolbar .primary{background:var(--accent);border-color:#0000}@media (hover:hover){.toolbar .primary:hover{background:var(--accent-strong)}}.theme-toggle-button{place-items:center;width:2.4rem;min-width:2.4rem;min-height:2.4rem;padding:0;display:inline-grid}.theme-mode-icon{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;width:1.05rem;height:1.05rem}.hamburger-menu{position:relative}.hamburger-menu summary{border:1px solid var(--border);cursor:pointer;background:#fffaf0c2;border-radius:10px;place-items:center;min-width:2.4rem;min-height:2.4rem;list-style:none;transition:background .16s,border-color .16s,color .16s;display:inline-grid}.hamburger-menu summary::-webkit-details-marker{display:none}@media (hover:hover){.hamburger-menu summary:hover{border-color:var(--accent);background:var(--accent-soft)}}.hamburger-menu summary span,.hamburger-menu summary span:before,.hamburger-menu summary span:after{background:var(--text-strong);border-radius:10px;width:1.05rem;height:2px;display:block}.hamburger-menu summary span{position:relative}.hamburger-menu summary span:before,.hamburger-menu summary span:after{content:"";position:absolute;left:0}.hamburger-menu summary span:before{top:-.35rem}.hamburger-menu summary span:after{top:.35rem}.menu-panel{z-index:30;border:1px solid var(--border);background:var(--dropdown-surface);border-radius:10px;gap:.25rem;min-width:min(19rem,100vw - 1rem);padding:.35rem;display:grid;position:absolute;top:calc(100% + .55rem);right:0;box-shadow:0 18px 48px #4b3b2a29}.menu-section{border-bottom:1px solid var(--border);gap:.15rem;padding-bottom:.25rem;display:grid}.menu-section-title{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;margin:.15rem .7rem .05rem;font-size:.68rem;font-weight:850}.cloud-sync-menu-status{color:var(--muted);margin:0 .7rem .2rem;font-size:.72rem;font-weight:750;line-height:1.35}.cloud-sync-menu-status.connected{color:var(--accent)}.menu-section:last-of-type{border-bottom:0;padding-bottom:0}.menu-section:has(+.menu-footer){border-bottom:0;padding-bottom:0}.menu-panel button,.menu-panel .button{background:var(--dropdown-surface);width:100%;min-height:0;box-shadow:none;color:var(--text-strong);text-align:left;white-space:nowrap;border:0;border-radius:7px;justify-content:flex-start;align-items:center;padding:.6rem .7rem;font-weight:650;display:flex}@media (hover:hover){.menu-panel button:hover,.menu-panel .button:hover{background:linear-gradient(0deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .16)), var(--dropdown-surface);box-shadow:none;transform:none}}.menu-footer{border-top:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto auto auto auto;align-items:center;gap:.35rem;padding:.45rem .35rem .1rem;display:grid}.menu-footer button{border:1px solid #0000;justify-content:center;width:auto;min-width:2.45rem;padding:.35rem .55rem;font-size:1.1rem}.menu-footer .help-menu-button{justify-self:start;min-width:0;padding-inline:.25rem .55rem;font-size:.82rem}.menu-footer .install-app-menu-button{min-width:0;padding-inline:.45rem;font-size:.75rem}.menu-footer .install-app-dismiss-button{min-width:0;padding-inline:.42rem;font-size:.9rem;line-height:1}.menu-footer button.active{border-color:rgba(var(--accent-rgb), .42);color:var(--accent-contrast);background:var(--accent);box-shadow:0 0 0 2px rgba(var(--accent-rgb), .18)}@media (hover:hover){.menu-footer button.active:hover,.board-tools button.active:hover{background:var(--accent-strong)}}:root[data-theme=dark] .menu-footer button.active{border-color:rgba(var(--accent-rgb), .62);background:rgba(var(--accent-rgb), .14);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb), .22), 0 8px 16px #00000038}@media (hover:hover){:root[data-theme=dark] .menu-footer button.active:hover{background:rgba(var(--accent-rgb), .22)}}.language-flag{border-radius:.18rem;width:1.45rem;height:.96rem;display:block;overflow:hidden;box-shadow:0 0 0 1px #3a2e2229}.menu-footer button.active .language-flag{box-shadow:0 0 0 1px #1f1a1447,0 0 0 3px #fff7e8b8}:root[data-theme=dark] .menu-footer button.active .language-flag{box-shadow:0 0 0 1px #fff7e86b}.danger{color:#ef4444;border-color:#ef444447}.file-button{position:relative;overflow:hidden}.file-button input{opacity:0;cursor:pointer;position:absolute;inset:0}.notice-toast{z-index:var(--z-toast);border:1px solid var(--border);max-width:min(32rem,100vw - 2rem);color:var(--text-strong);background:var(--surface);box-shadow:var(--lifted-shadow);border-radius:10px;padding:.65rem .9rem;font-size:.86rem;position:fixed;bottom:1rem;left:50%;transform:translate(-50%)}.notice-toast.error{color:#991b1b;background:#fee2e2;border-color:#b91c1c47}.command-tooltip{z-index:var(--z-tooltip);border:1px solid rgba(var(--accent-rgb), .26);width:max-content;max-width:min(22rem,100vw - 1.5rem);color:var(--text);background:linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent 70%), var(--surface);pointer-events:none;border-radius:10px;gap:.18rem;padding:.55rem .68rem;animation:.12s ease-out command-tooltip-in;display:grid;position:fixed;box-shadow:0 18px 44px #2e231938,inset 0 1px #ffffff14}.command-tooltip:after{content:"";border-right:1px solid rgba(var(--accent-rgb), .26);border-bottom:1px solid rgba(var(--accent-rgb), .26);background:var(--surface);width:.64rem;height:.64rem;position:absolute;left:50%;transform:translate(-50%)rotate(45deg)}.command-tooltip.top:after{bottom:-.36rem}.command-tooltip.bottom:after{top:-.36rem;transform:translate(-50%)rotate(225deg)}.command-tooltip strong{color:var(--text-strong);font-size:.78rem;font-weight:900;line-height:1.2}.command-tooltip span{color:var(--muted);font-size:.72rem;font-weight:650;line-height:1.35}@keyframes command-tooltip-in{0%{opacity:0;transform:translateY(2px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.import-progress-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.import-progress-dialog{border:1px solid rgba(var(--accent-rgb), .24);width:min(28rem,100%);color:var(--text);background:var(--surface);border-radius:10px;gap:1rem;padding:1.1rem;display:grid;box-shadow:0 24px 70px #2e231947}.import-progress-dialog h2{color:var(--text-strong);margin:0;font-size:1.08rem}.import-progress-dialog p{color:var(--muted);margin:.28rem 0 0;font-size:.84rem}.import-progress-meter{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;display:grid}.import-progress-meter progress{background:var(--accent-soft);border:0;border-radius:10px;width:100%;height:.8rem;overflow:hidden}.import-progress-meter progress::-webkit-progress-bar{background:var(--accent-soft)}.import-progress-meter progress::-webkit-progress-value{background:linear-gradient(90deg, var(--accent), var(--accent-strong));border-radius:10px}.import-progress-meter progress::-moz-progress-bar{background:linear-gradient(90deg, var(--accent), var(--accent-strong));border-radius:10px}.import-progress-meter span{color:var(--text-strong);font-size:.78rem;font-weight:850}.import-progress-message{font-weight:750}.loading-wait-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.loading-wait-dialog{--loading-text:var(--text);--loading-text-strong:var(--text-strong);--loading-muted:var(--muted);--loading-accent:#8a735d;border:1px solid rgba(var(--accent-rgb), .26);width:min(26rem,100%);color:var(--loading-text);text-align:center;background:linear-gradient(145deg, #ffffffe0, #fff7edf5), var(--surface);border-radius:10px;justify-items:center;gap:.65rem;padding:1.5rem;display:grid;box-shadow:0 28px 80px #2e23194d}:root[data-theme=dark] .loading-wait-dialog{--loading-accent:var(--accent);border-color:rgba(var(--accent-rgb), .3);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .14), transparent 18rem), linear-gradient(145deg, #1f1d19fa, #11100ef5), var(--surface);box-shadow:0 28px 80px #0000007a}.loading-wait-orbit{background:rgba(var(--accent-rgb), .1);border-radius:50%;place-items:center;width:4.2rem;height:4.2rem;display:grid;position:relative}.loading-wait-orbit:before{content:"";border:3px solid rgba(var(--accent-rgb), .16);border-top-color:var(--accent-strong);border-radius:inherit;animation:.9s linear infinite loading-wait-spin;position:absolute;inset:0}.loading-wait-orbit span{width:2.15rem;height:2.15rem;color:var(--accent-strong);place-items:center;display:grid;position:relative}.loading-wait-orbit svg{width:100%;height:100%;display:block;transform:translate(-.05rem,.04rem)}.loading-wait-kicker{color:var(--loading-accent);letter-spacing:.13em;text-transform:uppercase;margin:.3rem 0 -.2rem;font-size:.72rem;font-weight:850}.loading-wait-dialog h2{color:var(--loading-text-strong);margin:0;font-size:clamp(1.35rem,4vw,1.85rem);line-height:1.05}.loading-wait-dialog p{color:var(--loading-muted);margin:0;font-size:.92rem;line-height:1.45}.loading-wait-progress{width:min(18rem,100%);color:var(--loading-accent);gap:.35rem;margin-top:.2rem;font-size:.78rem;font-weight:800;display:grid}.loading-wait-progress span{background:rgba(var(--accent-rgb), .14);border-radius:999px;height:.35rem;position:relative;overflow:hidden}.loading-wait-progress span:before{content:"";width:var(--loading-wait-progress,0%);border-radius:inherit;background:linear-gradient(90deg, var(--accent), var(--accent-strong));transition:width .14s;position:absolute;inset:0 auto 0 0}@keyframes loading-wait-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.loading-wait-orbit:before{animation:none}}.tool-loading-fallback{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);grid-auto-flow:row;place-items:center;gap:.85rem;padding:1rem;display:grid;position:fixed;inset:0}.tool-loading-fallback-label{color:var(--text-strong);letter-spacing:.13em;text-transform:uppercase;font-size:.74rem;font-weight:800}.confirm-dialog-backdrop{z-index:var(--z-modal-elevated);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.confirm-dialog{--confirm-text:#3f3a33;--confirm-text-strong:#1f1a14;--confirm-muted:#776b5f;border:1px solid rgba(var(--accent-rgb), .24);width:min(30rem,100%);color:var(--confirm-text);background:linear-gradient(145deg, #ffffffe6, #fff7edf5), var(--surface);border-radius:10px;grid-template-columns:auto minmax(0,1fr);gap:1rem;padding:1.15rem;display:grid;box-shadow:0 28px 80px #2e23194d}:root[data-theme=dark] .confirm-dialog{--confirm-text:var(--text);--confirm-text-strong:var(--text-strong);--confirm-muted:var(--muted);border-color:rgba(var(--accent-rgb), .3);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .14), transparent 18rem), linear-gradient(145deg, #1f1d19fa, #11100ef5), var(--surface);box-shadow:0 28px 80px #0000007a}.confirm-dialog-icon{border:1px solid rgba(var(--accent-rgb), .2);width:3.2rem;height:3.2rem;color:var(--accent-strong);background:rgba(var(--accent-rgb), .1);border-radius:10px;place-items:center;display:grid}:root[data-theme=dark] .confirm-dialog-icon{border-color:rgba(var(--accent-rgb), .28);color:var(--accent);background:rgba(var(--accent-rgb), .14)}.confirm-dialog-icon.danger{color:var(--danger);background:#ef444414;border-color:#ef44443d}.confirm-dialog-icon svg{width:1.6rem;height:1.6rem}.confirm-dialog-content{gap:.4rem;min-width:0;display:grid}.confirm-dialog-kicker{color:#8a735d;letter-spacing:.12em;text-transform:uppercase;margin:0;font-size:.72rem;font-weight:850}:root[data-theme=dark] .confirm-dialog-kicker{color:var(--accent)}.confirm-dialog h2{color:var(--confirm-text-strong);margin:0;font-size:1.35rem;line-height:1.12}.confirm-dialog p{color:var(--confirm-muted);margin:0;font-size:.9rem;line-height:1.45}.dropbox-conflict-dialog{width:min(52rem,100%)}.dropbox-conflict-dialog>.confirm-dialog-actions{flex-wrap:nowrap}.dropbox-conflict-dialog>.confirm-dialog-actions button{white-space:nowrap}.text-export-options-dialog{width:min(34rem,100%)}.text-export-options{gap:.55rem;margin-top:.45rem;display:grid}.text-export-option{border:1px solid rgba(var(--accent-rgb), .18);background:rgba(var(--accent-rgb), .06);cursor:pointer;border-radius:12px;grid-template-columns:auto minmax(0,1fr);align-items:flex-start;gap:.65rem;padding:.75rem;display:grid}.text-export-option.selected{border-color:rgba(var(--accent-rgb), .42);background:rgba(var(--accent-rgb), .12)}.text-export-option input{accent-color:var(--accent-strong);margin-top:.18rem}.text-export-option span{gap:.18rem;display:grid}.text-export-option strong{color:var(--confirm-text-strong);font-size:.9rem}.text-export-option small{color:var(--confirm-muted);font-size:.78rem;line-height:1.35}.google-docs-export-dialog{width:min(35rem,100%)}.google-docs-export-name{gap:.35rem;margin-top:.65rem;display:grid}.google-docs-export-name span{color:var(--confirm-text-strong);font-size:.82rem;font-weight:800}.google-docs-export-name input{box-sizing:border-box;border:1px solid rgba(var(--accent-rgb), .2);width:100%;color:var(--confirm-text-strong);background:rgba(var(--accent-rgb), .06);font:inherit;border-radius:10px;padding:.68rem .75rem}.google-docs-export-name input:focus{outline:2px solid rgba(var(--accent-rgb), .2);border-color:rgba(var(--accent-rgb), .42)}.google-docs-export-note,.google-docs-export-status{color:var(--confirm-muted);margin:.65rem 0 0;font-size:.82rem;line-height:1.45}.google-docs-export-note.warning{color:var(--danger)}.google-docs-export-progress{gap:.65rem;margin-top:.85rem;display:grid}.google-docs-export-progress p{color:var(--confirm-muted);margin:0;font-size:.82rem}.google-docs-export-progress-bar{background:rgba(var(--accent-rgb), .12);border-radius:999px;height:.55rem;overflow:hidden}.google-docs-export-progress-bar span{border-radius:inherit;background:linear-gradient(90deg, var(--accent), var(--accent-strong));width:42%;height:100%;animation:1.1s ease-in-out infinite google-docs-export-progress;display:block}.google-docs-export-status.success{color:var(--confirm-text-strong)}.google-docs-export-status.error{color:var(--danger);background:#b91c1c14;border:1px solid #b91c1c38;border-radius:10px;padding:.72rem .8rem}.google-docs-export-status a{color:var(--accent-strong);font-weight:800}.google-docs-export-dialog .confirm-dialog-actions .button{justify-content:center;align-items:center;text-decoration:none;display:inline-flex}@keyframes google-docs-export-progress{0%{transform:translate(-110%)}to{transform:translate(250%)}}.dialog-save-status-list{grid-column:1/-1;gap:.45rem;display:grid}.dialog-save-status-row{border:1px solid rgba(var(--accent-rgb), .16);background:#fffaf0b8;border-radius:10px;justify-content:space-between;align-items:center;gap:.75rem;min-width:0;padding:.7rem .78rem;display:flex}:root[data-theme=dark] .dialog-save-status-row{border-color:rgba(var(--accent-rgb), .22);background:#1f1d19b8}.dialog-save-status-row strong{min-width:0;color:var(--confirm-text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.dialog-save-status-badge{color:#991b1b;background:#fee2e2;border-radius:10px;flex:none;padding:.22rem .55rem;font-size:.7rem;font-weight:850}.dialog-save-status-badge.saving{color:var(--link);background:rgba(var(--accent-rgb), .12)}.dialog-save-status-badge.error{color:var(--danger);background:#ef444429}.dialog-save-status-badge.saved{color:var(--accent);background:rgba(var(--accent-rgb), .12)}.dropbox-project-dialog{width:min(36rem,100%)}.file-name-dialog{width:min(34rem,100%)}.dropbox-project-name-form,.dropbox-project-list-panel{grid-column:1/-1}.dropbox-project-name-form{gap:.45rem;display:grid}.dropbox-project-name-form label,.dropbox-project-list-header strong{color:var(--confirm-text-strong);font-size:.82rem;font-weight:850}.dropbox-project-name-form input{border:1px solid rgba(var(--accent-rgb), .22);width:100%;color:var(--confirm-text-strong);font:inherit;background:#ffffffb8;border-radius:10px;padding:.78rem .85rem}:root[data-theme=dark] .dropbox-project-name-form input{color:var(--text-strong);background:#0f0e0cb8}.dropbox-project-list-panel{gap:.65rem;display:grid}.dropbox-project-list-header{justify-content:space-between;align-items:center;gap:.8rem;display:flex}.dropbox-project-list-header button{min-height:2.35rem;padding-inline:.8rem}.dropbox-project-list{gap:.5rem;max-height:min(18rem,44vh);margin-right:-1.15rem;padding-right:1.15rem;display:grid;overflow:hidden auto}.dropbox-project-list-item{border:1px solid rgba(var(--accent-rgb), .16);width:100%;min-height:3.6rem;color:var(--confirm-text);text-align:left;background:#fffaf0b8;border-radius:10px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.72rem .78rem;display:grid}.dropbox-project-select-button{min-width:0;min-height:0;color:inherit;text-align:left;box-shadow:none;background:0 0;border:0;grid-template-columns:minmax(0,1fr) max-content;align-self:stretch;align-items:center;gap:.75rem;margin:-.72rem 0 -.72rem -.78rem;padding:.72rem 0 .72rem .78rem;display:grid}.dropbox-project-select-button:focus-visible{color:inherit;box-shadow:none;background:0 0;transform:none}@media (hover:hover){.dropbox-project-select-button:hover{color:inherit;box-shadow:none;background:0 0;transform:none}}.dropbox-project-delete-button{color:#b91c1c;background:#ef444414;border-color:#ef444433;grid-column:2;justify-self:end;min-height:2.35rem;padding:.35rem .62rem;font-size:.72rem;font-weight:850}.dropbox-project-delete-button:focus-visible{color:#fff;background:var(--danger)}@media (hover:hover){.dropbox-project-delete-button:hover{color:#fff;background:var(--danger)}}:root[data-theme=dark] .dropbox-project-list-item{border-color:rgba(var(--accent-rgb), .24);background:#1f1d19b8}.dropbox-project-list-actions{grid-column:2;justify-self:end;align-items:center;gap:.4rem;display:flex}.dropbox-project-versions-button{border-color:rgba(var(--accent-rgb), .22);min-height:2.35rem;color:var(--accent-strong);background:rgba(var(--accent-rgb), .08);padding:.35rem .62rem;font-size:.72rem;font-weight:850}.dropbox-project-versions-button:focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.dropbox-project-versions-button:hover{color:var(--accent-contrast);background:var(--accent)}}.dropbox-revisions-back-button{min-height:2.35rem;padding-inline:.8rem}.dropbox-revisions-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.dropbox-revision-restore-detail{color:var(--muted);margin:.2rem 0 0;font-size:.82rem}:root[data-theme=dark] .dropbox-project-versions-button{color:var(--accent);background:rgba(var(--accent-rgb), .14)}:root[data-theme=dark] .dropbox-project-delete-button{color:#fca5a5;background:#ef44441f}.dropbox-project-list-item.active{border-color:rgba(var(--accent-rgb), .38);background:rgba(var(--accent-rgb), .1)}.dropbox-project-list-name,.dropbox-project-list-detail{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.dropbox-project-list-name{color:var(--confirm-text-strong);font-weight:850}.dropbox-project-list-detail{color:var(--confirm-muted);text-align:right;justify-self:end;font-size:.78rem}.dropbox-project-list-empty{border:1px dashed rgba(var(--accent-rgb), .22);background:#fffaf080;border-radius:10px;padding:.85rem}:root[data-theme=dark] .dropbox-project-list-empty{background:#1f1d1980}.about-dialog{grid-template-columns:1fr;width:min(32rem,100%)}.about-hero{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.9rem;display:grid}.about-logo{border:1px solid rgba(var(--accent-rgb), .22);width:3.6rem;height:3.6rem;color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong));box-shadow:0 16px 34px rgba(var(--accent-rgb), .22);border-radius:10px;place-items:center;display:grid}.about-logo .brand-mark-icon{width:2.1rem;height:2.1rem}.about-version{margin-top:.28rem;font-weight:850}.about-dialog-content{gap:.75rem}.about-contact a{color:var(--accent-strong);font-weight:850}.about-contact a:focus-visible{color:var(--accent)}@media (hover:hover){.about-contact a:hover{color:var(--accent)}}.about-privacy{margin-top:.35rem;font-size:.78rem}.about-privacy a{color:var(--muted);text-underline-offset:2px;text-decoration:underline}.about-privacy a:focus-visible{color:var(--accent)}@media (hover:hover){.about-privacy a:hover{color:var(--accent)}}.whats-new-dialog{grid-template-columns:1fr;width:min(34rem,100%)}.whats-new-logo{background:radial-gradient(circle at 32% 24%, #ffffff6b, transparent 1.2rem), linear-gradient(135deg, #0ea5e9, var(--accent-strong))}.whats-new-dialog-content{gap:.85rem}.whats-new-list{gap:.55rem;margin:0;padding:0;list-style:none;display:grid}.whats-new-list li{border:1px solid rgba(var(--accent-rgb), .14);color:var(--confirm-text);background:#fffaf094;border-radius:10px;padding:.7rem .8rem .7rem 2rem;font-size:.9rem;line-height:1.38;position:relative}.whats-new-list li:before{content:"";background:var(--accent-strong);width:.5rem;height:.5rem;box-shadow:0 0 0 .25rem rgba(var(--accent-rgb), .14);border-radius:999px;position:absolute;top:1.06rem;left:.85rem}:root[data-theme=dark] .whats-new-list li{border-color:rgba(var(--accent-rgb), .22);background:#1f1d19ad}.help-center-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.help-center-dialog{border:1px solid rgba(var(--accent-rgb), .24);width:min(72rem,100vw - 2rem);height:min(48rem,100dvh - 2rem);min-height:32rem;color:var(--text);background:linear-gradient(145deg, #ffffffe6, #fff7edfa), var(--surface);border-radius:18px;grid-template-rows:auto minmax(0,1fr);display:grid;overflow:hidden;box-shadow:0 32px 90px #2e231952}:root[data-theme=dark] .help-center-dialog{border-color:rgba(var(--accent-rgb), .28);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .12), transparent 18rem), linear-gradient(145deg, #1f1d19fa, #11100efa), var(--surface);box-shadow:0 32px 90px #00000085}.help-center-dialog:focus{outline:none}.help-center-header{border-bottom:1px solid rgba(var(--accent-rgb), .16);grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:1rem;padding:1.2rem 1.35rem 1rem;display:grid}.help-center-title-block{gap:.35rem;min-width:0;display:grid}.help-center-kicker{color:#8a735d;letter-spacing:.13em;text-transform:uppercase;margin:0;font-size:.72rem;font-weight:900}:root[data-theme=dark] .help-center-kicker{color:var(--accent)}.help-center-title-block h2,.help-center-topic-heading h3,.help-center-empty h3{color:var(--text-strong);margin:0}.help-center-title-block h2{font-size:clamp(1.55rem,2.4vw,2rem);line-height:1.08}.help-center-title-block p:not(.help-center-kicker),.help-center-topic-heading p,.help-center-empty p{color:var(--muted);margin:0;font-size:.94rem;line-height:1.5}.help-center-header-actions{align-items:center;gap:.55rem;display:flex}.help-center-close{border-radius:999px;place-items:center;width:2.55rem;height:2.55rem;padding:0;line-height:0;display:grid}.help-center-close svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;width:1rem;height:1rem;display:block}.help-center-body{grid-template-columns:minmax(17rem,21rem) minmax(0,1fr);min-height:0;display:grid}.help-center-sidebar{border-right:1px solid rgba(var(--accent-rgb), .16);background:#fffaf08f;grid-template-rows:auto auto minmax(0,1fr);gap:.75rem;min-height:0;padding:1rem;display:grid}:root[data-theme=dark] .help-center-sidebar{background:#11100e61}.help-center-search{color:var(--text-strong);gap:.42rem;font-size:.78rem;font-weight:850;display:grid}.help-center-search-field{border:1px solid rgba(var(--accent-rgb), .22);background:#ffffffd6;border-radius:12px;min-width:0;display:block;box-shadow:inset 0 1px #ffffff7a}:root[data-theme=dark] .help-center-search-field{box-shadow:none;background:#0f0e0cdb}.help-center-search-field:focus-within{border-color:rgba(var(--accent-rgb), .5);box-shadow:0 0 0 3px rgba(var(--accent-rgb), .12)}.help-center-search-field input{width:100%;min-width:0;color:var(--text-strong);font:inherit;background:0 0;border:0;outline:none;padding:.72rem .8rem}.help-center-topic-summary{color:var(--muted);font-size:.78rem;font-weight:800}.help-center-topic-list{flex-direction:column;gap:.45rem;min-height:0;padding-right:.2rem;display:flex;overflow:auto}.help-center-level-heading{color:var(--accent-strong);letter-spacing:.11em;text-transform:uppercase;flex:none;margin:.45rem 0 .1rem;font-size:.7rem;font-weight:900}:root[data-theme=dark] .help-center-level-heading{color:var(--accent)}.help-center-topic-list button{border:1px solid rgba(var(--accent-rgb), .14);width:100%;height:auto;min-height:0;color:var(--text);text-align:left;box-shadow:none;background:#ffffff94;border-radius:12px;flex:none;align-content:start;gap:.22rem;padding:.72rem .78rem;display:grid}:root[data-theme=dark] .help-center-topic-list button{background:#1f1d1999}.help-center-topic-list button:focus-visible{border-color:rgba(var(--accent-rgb), .34);color:var(--text-strong);background:rgba(var(--accent-rgb), .1);transform:none}@media (hover:hover){.help-center-topic-list button:hover{border-color:rgba(var(--accent-rgb), .34);color:var(--text-strong);background:rgba(var(--accent-rgb), .1);transform:none}}.help-center-topic-list button.active{border-color:rgba(var(--accent-rgb), .48);color:var(--text-strong);background:linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .06)), var(--surface);box-shadow:inset 3px 0 0 var(--accent)}.help-center-topic-list button span{font-size:.9rem;font-weight:850;line-height:1.25}.help-center-topic-list button small{color:var(--muted);font-size:.76rem;line-height:1.32}.help-center-content{min-width:0;min-height:0;padding:clamp(1rem,2vw,1.6rem);overflow:auto}.help-center-topic-heading{gap:.38rem;max-width:48rem;display:grid}.help-center-topic-level{border:1px solid rgba(var(--accent-rgb), .22);width:fit-content;color:var(--accent-strong);background:rgba(var(--accent-rgb), .09);letter-spacing:.08em;text-transform:uppercase;border-radius:999px;padding:.22rem .55rem;font-size:.7rem;font-weight:900}:root[data-theme=dark] .help-center-topic-level{color:var(--accent)}.help-center-topic-heading h3{font-size:clamp(1.55rem,2.2vw,2.15rem);line-height:1.08}.help-center-figure{border:1px solid rgba(var(--accent-rgb), .18);box-shadow:var(--soft-shadow);background:#fffaf0c2;border-radius:16px;margin:1.15rem 0 1.35rem;overflow:hidden}:root[data-theme=dark] .help-center-figure{background:#11100e94}.help-center-figure img{object-fit:cover;object-position:top center;background:var(--board);width:100%;max-height:18rem;display:block}.help-center-figure figcaption{border-top:1px solid rgba(var(--accent-rgb), .14);color:var(--muted);gap:.12rem;margin:0;padding:.72rem .85rem;font-size:.8rem;line-height:1.38;display:grid}.help-center-figure figcaption span{color:var(--text-strong);letter-spacing:.1em;text-transform:uppercase;font-size:.68rem;font-weight:900}.help-center-sections{gap:1rem;max-width:50rem;display:grid}.help-center-section{border:1px solid rgba(var(--accent-rgb), .14);background:#ffffff80;border-radius:14px;gap:.55rem;padding:1rem;display:grid}:root[data-theme=dark] .help-center-section{background:#1f1d198a}.help-center-section h4,.help-center-section p,.help-center-section ol{margin:0}.help-center-section h4{color:var(--text-strong);font-size:1rem}.help-center-section p,.help-center-section li{color:var(--text);font-size:.94rem;line-height:1.58}.help-center-section ol{gap:.42rem;padding-left:1.35rem;display:grid}.help-center-callout{border-left:4px solid var(--accent);background:rgba(var(--accent-rgb), .09);border-radius:10px;padding:.72rem .85rem}.help-center-callout.warning{border-left-color:var(--danger);background:#dc262614}.help-center-callout strong{color:var(--text-strong);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.18rem;font-size:.78rem;display:block}.help-center-links{grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.65rem;display:grid}.help-center-links a{border:1px solid rgba(var(--accent-rgb), .2);color:var(--accent-strong);background:rgba(var(--accent-rgb), .08);border-radius:12px;gap:.2rem;padding:.78rem .85rem;font-weight:850;text-decoration:none;display:grid}:root[data-theme=dark] .help-center-links a{color:var(--accent)}.help-center-links a:focus-visible{border-color:rgba(var(--accent-rgb), .42);background:rgba(var(--accent-rgb), .14)}@media (hover:hover){.help-center-links a:hover{border-color:rgba(var(--accent-rgb), .42);background:rgba(var(--accent-rgb), .14)}}.help-center-links a small{color:var(--muted);font-size:.74rem;font-weight:750}.help-center-empty{text-align:center;place-content:center;justify-items:center;gap:.65rem;min-height:100%;display:grid}.confirm-dialog-actions{flex-wrap:wrap;grid-column:1/-1;justify-content:flex-end;gap:.55rem;display:flex}.confirm-danger{color:#fff;background:var(--danger);border-color:#0000}.confirm-danger:focus-visible{color:#fff;background:#b91c1c;border-color:#0000}@media (hover:hover){.confirm-danger:hover{color:#fff;background:#b91c1c;border-color:#0000}}.first-run-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1.35rem;display:grid;position:fixed;inset:0}.first-run-backdrop.guided{-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none;background:0 0;padding:0;display:block}.first-run-dialog{--first-run-text:#4a4036;--first-run-text-strong:#241b13;--first-run-muted:#6c5f51;--first-run-accent:#8f5f3a;--first-run-accent-strong:#6f482d;--first-run-panel:#fff8ee;--first-run-panel-soft:#f3eadf;--first-run-button-contrast:#fff8ee;border:1px solid rgba(var(--accent-rgb), .24);width:min(74rem,100%);max-height:min(90svh,52rem);color:var(--first-run-text);background:linear-gradient(145deg, #fffffff5, #fff8eefa), var(--first-run-panel);border-radius:10px;grid-template-columns:minmax(0,1.42fr) minmax(20rem,.82fr);display:grid;overflow:hidden;box-shadow:0 32px 90px #2e231957}:root[data-theme=dark] .first-run-backdrop.guided{background:0 0}:root[data-theme=dark] .first-run-dialog{--first-run-text:var(--text);--first-run-text-strong:var(--text-strong);--first-run-muted:var(--muted);--first-run-accent:var(--accent);--first-run-accent-strong:var(--accent-strong);--first-run-panel:#1f1d19;--first-run-panel-soft:#2b2924;--first-run-button-contrast:var(--accent-contrast);border-color:rgba(var(--accent-rgb), .32);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .13), transparent 16rem), linear-gradient(145deg, #1f1d19fa, #11100efa), var(--first-run-panel);box-shadow:0 32px 90px #00000080}.first-run-dialog.guided{top:var(--first-run-dialog-top,50%);left:var(--first-run-dialog-left,50%);z-index:2;width:min(22.5rem,100vw - 2rem);max-height:calc(100svh - 2rem);transform:var(--first-run-dialog-transform,translate(-50%, -50%));pointer-events:auto;display:block;position:fixed;overflow:visible}.first-run-target-highlight{top:var(--first-run-target-top,50%);left:var(--first-run-target-left,50%);z-index:1;width:var(--first-run-target-width,2.5rem);height:var(--first-run-target-height,2.5rem);border:2px solid rgba(var(--link-rgb), .86);pointer-events:none;background:rgba(var(--link-rgb), .06);box-shadow:0 0 0 4px rgba(var(--link-rgb), .18), 0 0 24px rgba(var(--link-rgb), .46), inset 0 0 0 1px #fff8ee6b;border-radius:12px;position:fixed}.first-run-dialog.mobile-edition{width:min(26rem,100%);max-height:calc(100dvh - 1.4rem);display:block;overflow:visible}.first-run-dialog.video-edition{grid-template-columns:minmax(18rem,.86fr) minmax(20rem,1fr)}.first-run-dialog.guided:after{content:"";border:10px solid #0000;width:0;height:0;position:absolute}.first-run-dialog.guided[data-placement=right]:after{top:var(--first-run-arrow-top,50%);border-right-color:var(--first-run-panel);left:-20px;transform:translateY(-50%)}.first-run-dialog.guided[data-placement=left]:after{top:var(--first-run-arrow-top,50%);border-left-color:var(--first-run-panel);right:-20px;transform:translateY(-50%)}.first-run-dialog.guided[data-placement=bottom]:after{top:-20px;left:var(--first-run-arrow-left,50%);border-bottom-color:var(--first-run-panel);transform:translate(-50%)}.first-run-dialog.guided[data-placement=top]:after{bottom:-20px;left:var(--first-run-arrow-left,50%);border-top-color:var(--first-run-panel);transform:translate(-50%)}.first-run-dialog:focus{outline:none}.first-run-media{background:linear-gradient(145deg, #2e23191f, rgba(var(--accent-rgb), .08)), #fffaf09e;align-items:center;min-height:0;padding:.9rem;display:grid}.first-run-media img{object-fit:contain;background:var(--surface);border:1px solid #2e23191f;border-radius:10px;width:100%;height:auto;max-height:calc(90svh - 4.4rem);box-shadow:0 20px 52px #2e231933}:root[data-theme=dark] .first-run-media{background:linear-gradient(145deg, rgba(var(--accent-rgb), .12), #0000002e), #11100eb8}:root[data-theme=dark] .first-run-media img{border-color:rgba(var(--accent-rgb), .18);background:var(--board);box-shadow:0 20px 52px #00000057}.first-run-video-media{align-items:stretch}.first-run-video-card{border:1px solid rgba(var(--accent-rgb), .26);color:#fff8ee;background:radial-gradient(circle at 22% 16%, #fff8ee47, transparent 9rem), linear-gradient(145deg, #7c4a28, var(--first-run-accent-strong));border-radius:16px;align-content:center;justify-items:start;gap:1.35rem;min-height:100%;padding:clamp(1.2rem,4vw,2rem);text-decoration:none;display:grid;box-shadow:0 24px 58px #2e231947}.first-run-video-card:focus-visible{color:#fff8ee;outline:3px solid rgba(var(--accent-rgb), .32);outline-offset:4px;background:radial-gradient(circle at 22% 16%,#fff8ee57,#0000 9rem),linear-gradient(145deg,#91542b,#5e3a23)}@media (hover:hover){.first-run-video-card:hover{color:#fff8ee;outline:3px solid rgba(var(--accent-rgb), .32);outline-offset:4px;background:radial-gradient(circle at 22% 16%,#fff8ee57,#0000 9rem),linear-gradient(145deg,#91542b,#5e3a23)}}.first-run-video-play{background:#fff8ee2e;border-radius:999px;place-items:center;width:5.4rem;height:5.4rem;display:grid;box-shadow:inset 0 0 0 1px #fff8ee61,0 18px 42px #241b1347}.first-run-video-play svg{fill:currentColor;width:2.9rem;height:2.9rem;margin-left:.22rem}.first-run-video-copy{gap:.36rem;display:grid}.first-run-video-copy span{color:#fff8eeb8;letter-spacing:.14em;text-transform:uppercase;font-size:.76rem;font-weight:900}.first-run-video-copy strong{letter-spacing:-.04em;max-width:18rem;font-size:clamp(1.45rem,3vw,2rem);line-height:1.02}.first-run-video-copy small{color:#fff8eec7;font-size:.82rem;font-weight:750}.first-run-content{background:linear-gradient(180deg, #ffffff85, #fff8ee33), var(--first-run-panel);grid-template-rows:auto minmax(0,1fr) auto auto;gap:1rem;min-width:0;padding:1.25rem;display:grid}:root[data-theme=dark] .first-run-content{background:linear-gradient(180deg, #ffffff0a, rgba(var(--accent-rgb), .05)), var(--first-run-panel)}.first-run-dialog.mobile-edition .first-run-content{grid-template-rows:auto auto auto auto;gap:.8rem;padding:1rem}.first-run-dialog.mobile-edition .first-run-heading h2{font-size:clamp(1.32rem,5vw,1.75rem)}.first-run-dialog.mobile-edition .first-run-content>p{font-size:.92rem;line-height:1.45}.first-run-dialog.mobile-edition .first-run-actions button{min-height:2.6rem}.first-run-dialog.guided .first-run-content{border-radius:inherit;grid-template-rows:auto auto auto auto}.first-run-heading{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.85rem;display:grid}.first-run-kicker{color:var(--first-run-accent-strong);letter-spacing:.12em;text-transform:uppercase;margin:0 0 .35rem;font-size:.72rem;font-weight:850}.first-run-heading h2{color:var(--first-run-text-strong);letter-spacing:-.04em;margin:0;font-size:clamp(1.55rem,3vw,2.2rem);line-height:1.04}.first-run-close:not(.app-close-button){color:#fff8ee;background:#2f2923;border-color:#0000;border-radius:10px;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;padding:0;line-height:0;display:inline-flex}:root[data-theme=dark] .first-run-close:not(.app-close-button){border-color:rgba(var(--accent-rgb), .18);color:var(--text-strong);background:#fff7e814}:root[data-theme=dark] .first-run-close:not(.app-close-button):focus-visible{color:var(--accent-contrast)}@media (hover:hover){:root[data-theme=dark] .first-run-close:not(.app-close-button):hover{color:var(--accent-contrast)}}.first-run-close:not(.app-close-button) svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;width:1rem;height:1rem;display:block}.first-run-close:not(.app-close-button):focus-visible{color:#fff8ee;background:var(--first-run-accent-strong)}@media (hover:hover){.first-run-close:not(.app-close-button):hover{color:#fff8ee;background:var(--first-run-accent-strong)}}.first-run-content>p{color:var(--first-run-muted);align-self:start;margin:0;font-size:.98rem;font-weight:550;line-height:1.55}.first-run-progress{flex-wrap:wrap;align-items:center;gap:.38rem;display:flex}.first-run-progress button{width:.72rem;min-width:0;height:.72rem;min-height:0;box-shadow:none;background:#ded2c5;border:0;border-radius:10px;padding:0}:root[data-theme=dark] .first-run-progress button{background:#d6cfbf38}.first-run-progress button.active{background:var(--first-run-accent);width:1.55rem}.first-run-actions{grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.55rem;display:grid}.first-run-actions span{color:var(--first-run-muted);font-size:.78rem;font-weight:850}.first-run-actions button{color:var(--first-run-text-strong);background:var(--first-run-panel-soft);border-color:#0000}:root[data-theme=dark] .first-run-actions button{border-color:rgba(var(--accent-rgb), .16);color:var(--first-run-text-strong);background:var(--first-run-panel-soft)}.first-run-actions button:focus-visible{color:var(--first-run-button-contrast);background:var(--first-run-accent-strong)}@media (hover:hover){.first-run-actions button:hover{color:var(--first-run-button-contrast);background:var(--first-run-accent-strong)}}.first-run-actions button:disabled{opacity:1;color:#6f665e;background:#d7d0c8}:root[data-theme=dark] .first-run-actions button:disabled{color:#d6cfbf7a;background:#d6cfbf1a}.first-run-actions .primary{color:var(--first-run-button-contrast);background:var(--first-run-accent)}:root[data-theme=dark] .first-run-actions .primary{color:var(--first-run-button-contrast);background:var(--first-run-accent);border-color:#0000}.first-run-actions .primary:focus-visible{background:var(--first-run-accent-strong)}@media (hover:hover){.first-run-actions .primary:hover{background:var(--first-run-accent-strong)}}@media (width<=980px){.first-run-dialog{grid-template-columns:1fr;overflow:auto}.first-run-dialog.guided{overflow:visible}.first-run-media img{max-height:48svh}}@media (width<=520px){.confirm-dialog{grid-template-columns:1fr}.confirm-dialog-icon{justify-self:start}}.writing-shell{overflow:hidden}.chapter-writing-view{flex:1;grid-template-rows:auto minmax(0,1fr);gap:1rem;min-height:0;padding:clamp(1rem,2vw,1.5rem);display:grid;overflow:hidden}.chapter-writing-header{grid-template-columns:auto minmax(0,1fr) auto;justify-self:center;align-items:center;gap:1rem;width:min(80rem,100%);display:grid}.chapter-writing-header h1{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;flex:auto;margin:0;padding-block:.06em .1em;font-size:clamp(1.5rem,3vw,2.4rem);line-height:1.16;overflow:hidden}.chapter-writing-header .writing-save-status-progress{--cloud-save-progress:0%;--writing-save-progress-fill:transparent;background:linear-gradient(90deg, var(--writing-save-progress-fill) 0 var(--cloud-save-progress), transparent var(--cloud-save-progress) 100%), transparent;border:1px solid #0000;border-radius:10px;align-items:center;min-height:2.05rem;padding:.24rem .48rem;display:inline-flex}.chapter-writing-header .writing-save-status-progress.cloud-save-active{--writing-save-progress-fill:rgba(var(--accent-rgb), .2);border-color:rgba(var(--accent-rgb), .16)}.chapter-writing-title{align-items:center;gap:.75rem;min-width:0;display:flex}.chapter-writing-navigation{flex:none;align-items:center;gap:.4rem;display:inline-flex}.chapter-writing-navigation-button{border-color:rgba(var(--accent-rgb), .16);min-height:2rem;color:var(--muted);background:rgba(var(--accent-rgb), .07);white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:.42rem .68rem;font-size:.76rem;display:inline-flex}.chapter-writing-navigation-button:not(:disabled):focus-visible{border-color:rgba(var(--accent-rgb), .28);color:var(--text-strong);background:rgba(var(--accent-rgb), .13)}@media (hover:hover){.chapter-writing-navigation-button:not(:disabled):hover{border-color:rgba(var(--accent-rgb), .28);color:var(--text-strong);background:rgba(var(--accent-rgb), .13)}}.chapter-writing-card{border:1px solid var(--border);background:var(--surface);width:min(80rem,100%);min-height:0;box-shadow:var(--lifted-shadow);border-radius:10px;grid-template-rows:auto minmax(0,1fr);justify-self:center;display:grid;overflow:hidden}.chapter-writing-ribbon{--writer-ribbon-strip-height:4.35rem;z-index:20;border-bottom:1px solid var(--border);background:linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent 55%), rgba(var(--accent-rgb), .035);grid-template-rows:auto auto;display:grid;position:relative}.writer-ribbon-tabs{border-bottom:1px solid var(--border);scrollbar-width:thin;align-items:end;gap:.12rem;min-width:0;padding:.2rem .55rem 0;display:flex;overflow-x:auto}.writer-ribbon-tab{box-sizing:border-box;min-width:0;height:1.75rem;color:var(--muted);white-space:nowrap;background:0 0;border-color:#0000 #0000 currentColor;border-bottom-style:none;border-bottom-width:0;border-radius:8px 8px 0 0;justify-content:center;align-items:center;padding:0 .82rem;font-size:.76rem;font-weight:850;display:inline-flex}.writer-ribbon-tab:focus-visible{color:var(--accent);background:rgba(var(--accent-rgb), .08)}@media (hover:hover){.writer-ribbon-tab:hover{color:var(--accent);background:rgba(var(--accent-rgb), .08)}}.writer-ribbon-tab.active{border-color:var(--border);color:var(--text-strong);background:var(--surface);box-shadow:0 -1px 0 var(--surface) inset}.writer-ribbon-strip{box-sizing:border-box;min-height:var(--writer-ribbon-strip-height);scrollbar-width:thin;align-items:center;gap:0;padding:.42rem .55rem;display:flex;overflow-x:auto}.writer-ribbon-strip.picker-menu-open{overflow:visible}.writer-ribbon-group{border-right:1px solid var(--border);align-self:stretch;align-items:center;gap:.35rem;min-width:0;padding:0 .62rem;display:flex;position:relative}.writer-ribbon-group:last-child{border-right:0}.writer-ribbon-format{flex:none}.writer-ribbon-row,.writer-placeholder-control{flex-wrap:wrap;align-items:center;gap:.28rem;display:flex}.writer-ribbon-strip button{min-width:2rem;min-height:2rem;color:var(--text-strong);background:rgba(var(--accent-rgb), .055);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:.38rem;padding:0 .6rem;font-size:.74rem;font-weight:850;line-height:1;display:inline-flex}.writer-ribbon-strip button:focus-visible{border-color:rgba(var(--accent-rgb), .4);color:var(--accent);background:rgba(var(--accent-rgb), .12)}@media (hover:hover){.writer-ribbon-strip button:hover{border-color:rgba(var(--accent-rgb), .4);color:var(--accent);background:rgba(var(--accent-rgb), .12)}}.writer-ribbon-strip button.icon-only{width:2rem;padding:0}.writer-ribbon-strip button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.15px;flex:none;width:1.08rem;height:1.08rem}.writer-ribbon-inline-label{color:var(--muted);letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;flex:none;font-size:.58rem;font-weight:900}.writer-ribbon-group-label{color:var(--muted);letter-spacing:.01em;white-space:nowrap;opacity:.85;flex:none;margin-right:.12rem;font-size:.62rem;font-weight:700}.chapter-writing-ribbon .writer-notes-toggle,.chapter-writing-ribbon .writer-stylesheet-toggle,.chapter-writing-ribbon .writer-timeline-toggle,.chapter-writing-ribbon .writer-search-toggle,.chapter-writing-ribbon .writer-stylesheet-coloring-toggle{color:var(--link);background:#b453091a;border-color:#b4530938}.chapter-writing-ribbon .writer-notes-toggle.active,.chapter-writing-ribbon .writer-stylesheet-toggle.active,.chapter-writing-ribbon .writer-timeline-toggle.active,.chapter-writing-ribbon .writer-search-toggle.active,.chapter-writing-ribbon .writer-stylesheet-coloring-toggle.active{color:#fff;background:var(--link)}.writer-read-aloud{align-items:center;gap:.2rem;display:inline-flex}.chapter-writing-ribbon .writer-read-aloud-toggle{color:var(--link);background:#b453091a;border-color:#b4530938}.chapter-writing-ribbon .writer-read-aloud-toggle.active{color:#fff;background:var(--link)}.chapter-writing-ribbon .writer-read-aloud-toggle:disabled{opacity:.5;cursor:not-allowed}.chapter-writing-ribbon .writer-read-aloud-stop{color:var(--danger,#b91c1c);background:#b91c1c1f;border-color:#b91c1c47}.chapter-writing-ribbon .writer-read-aloud-stop:focus-visible{color:#fff;background:var(--danger,#b91c1c);border-color:var(--danger,#b91c1c)}@media (hover:hover){.chapter-writing-ribbon .writer-read-aloud-stop:hover{color:#fff;background:var(--danger,#b91c1c);border-color:var(--danger,#b91c1c)}}.writer-ribbon-strip .writer-read-aloud-toggle svg,.writer-ribbon-strip .writer-read-aloud-stop svg{fill:currentColor;stroke:none}.writer-placeholder-control{max-width:100%}.writer-ribbon-markers{flex:0 22rem;justify-content:flex-start}.writer-ribbon-markers .writer-insight{text-align:left;width:min(22rem,100%)}.writer-ribbon-markers .placeholder-token-list{justify-content:flex-start}.writer-placeholder-control button{border-color:var(--accent);min-width:0;min-height:2rem;color:var(--accent-contrast);background:var(--accent);padding:0 .56rem;font-size:.72rem;font-weight:850}.writer-placeholder-control button:focus-visible{color:var(--accent-contrast);background:var(--accent-strong)}@media (hover:hover){.writer-placeholder-control button:hover{color:var(--accent-contrast);background:var(--accent-strong)}}.writer-typewriter-toggle{border-color:rgba(var(--accent-rgb), .22);color:var(--accent);background:var(--surface);font-size:.72rem;font-weight:850}.writer-typewriter-toggle.active{color:var(--accent-contrast);background:var(--accent)}.writer-picker-control{border:1px solid rgba(var(--accent-rgb), .18);min-height:2rem;color:var(--muted);background:var(--surface);border-radius:10px;flex:none;align-items:center;font-size:.72rem;font-weight:800;display:inline-flex;position:relative}.writer-picker-control:focus-within{border-color:var(--accent);outline:3px solid var(--accent-soft);outline-offset:2px}.writer-picker-label{border-right:1px solid var(--border);color:var(--muted);letter-spacing:0;text-transform:none;white-space:nowrap;align-self:stretch;align-items:center;padding:0 .55rem;font-size:.68rem;font-weight:800;display:inline-flex}.writer-picker-menu{flex:none;align-items:center;min-width:5.9rem;display:inline-flex;position:relative}.writer-spellcheck-language-menu{min-width:6.8rem}.writer-picker-control .writer-picker-trigger{box-sizing:border-box;width:100%;min-width:0;min-height:2rem;color:var(--text-strong);text-align:left;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:0;justify-content:space-between;align-items:center;gap:.9rem;padding:0 .68rem 0 .62rem;font-weight:850;display:inline-flex}.writer-picker-value{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.writer-picker-chevron{border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);flex:none;width:.42rem;height:.42rem;transform:translateY(-.12rem)rotate(45deg)}.writer-picker-control .writer-picker-trigger:focus-visible{color:var(--accent);background:0 0}@media (hover:hover){.writer-picker-control .writer-picker-trigger:hover{color:var(--accent);background:0 0}}.writer-picker-control .writer-picker-trigger:focus{outline:none}.writer-picker-options{z-index:var(--z-modal-popover);border:1px solid rgba(var(--accent-rgb), .28);background:var(--dropdown-surface);border-radius:6px;gap:.25rem;min-width:10rem;padding:.35rem;display:grid;position:absolute;top:calc(100% + .45rem);right:0;box-shadow:0 18px 44px #2e23193d}.writer-picker-options button{width:100%;color:var(--text-strong);background:var(--dropdown-surface);text-align:left;border:0;border-radius:6px;justify-content:flex-start;padding:.58rem .7rem;transition:color .14s,background .14s,box-shadow .14s;box-shadow:inset 0 0 0 1px #0000}.writer-picker-options button:focus-visible{color:var(--accent-contrast);background:color-mix(in srgb, var(--accent) 92%, #fff 8%);box-shadow:inset 0 0 0 1px #ffffff2e, 0 8px 20px rgba(var(--accent-rgb), .2)}@media (hover:hover){.writer-picker-options button:hover{color:var(--accent-contrast);background:color-mix(in srgb, var(--accent) 92%, #fff 8%);box-shadow:inset 0 0 0 1px #ffffff2e, 0 8px 20px rgba(var(--accent-rgb), .2)}}.writer-picker-options button.active{color:var(--accent-contrast);background:var(--accent);box-shadow:inset 0 0 0 1px #ffffff1f}.writer-ribbon-focus,.writer-ribbon-mode{flex:none}.writer-ribbon-focus-indicators{border-right:0;flex:0 32rem;justify-content:flex-start;align-items:stretch}.focus-target-control span{color:var(--muted);letter-spacing:.07em;text-transform:uppercase;font-size:.58rem;font-weight:900}.focus-target-control{align-items:center;gap:.4rem;min-width:0;display:inline-flex}.focus-target-control input{border:1px solid rgba(var(--accent-rgb), .2);width:7.2rem;min-width:0;color:var(--text-strong);background:var(--surface);text-align:left;border-radius:10px;padding:.38rem .55rem;font-size:.78rem;font-weight:850}.focus-target-control input::placeholder{color:var(--muted);opacity:.72}.focus-target-progress{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.24rem .42rem;width:min(16rem,42vw);display:grid}.focus-target-progress progress{background:rgba(var(--accent-rgb), .12);border:0;border-radius:10px;width:100%;height:.36rem;overflow:hidden}.focus-target-progress progress::-webkit-progress-bar{background:rgba(var(--accent-rgb), .12)}.focus-target-progress progress::-webkit-progress-value{background:linear-gradient(90deg, var(--accent), var(--accent-strong))}.focus-target-progress progress::-moz-progress-bar{background:linear-gradient(90deg, var(--accent), var(--accent-strong))}.focus-target-progress span,.focus-target-progress strong,.writer-insight span,.writer-insight small{color:var(--muted);font-size:.64rem;font-weight:780}.focus-target-progress strong{color:var(--accent);grid-column:1/-1}.writer-insights-grid{flex:0 32rem;grid-template-columns:minmax(8rem,.8fr) minmax(13rem,1.2fr);align-self:stretch;align-items:stretch;gap:.5rem;display:grid}.writer-insight{border:1px solid rgba(var(--accent-rgb), .13);background:linear-gradient(135deg, rgba(var(--accent-rgb), .06), rgba(var(--accent-rgb), .015)), var(--node);border-radius:10px;align-content:center;gap:.12rem;min-width:0;padding:.38rem .62rem;display:grid;box-shadow:inset 0 1px #ffffff0a}.writer-insight span{letter-spacing:.07em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;font-size:.58rem;font-weight:900;line-height:1;overflow:hidden}.writer-insight strong{color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;line-height:1.08;overflow:hidden}.writer-insight small{line-height:1.05}.placeholder-token-list{flex-wrap:wrap;gap:.28rem;margin-top:.18rem;display:flex}.placeholder-token-list .placeholder-token,.chapter-rich-editor mark,.chapter-content-preview-body mark[data-placeholder=true]{color:#9a3412;background:#ffedd5;border-radius:10px;padding:.08rem .38rem;font-weight:850;box-shadow:inset 0 0 0 1px #ea580c52}.chapter-rich-editor mark[data-placeholder=true]{-webkit-user-select:none;user-select:none;vertical-align:baseline;align-items:center;gap:.18rem;display:inline-flex}.placeholder-marker-delete{color:#fff7ed;cursor:pointer;opacity:0;pointer-events:none;background:#9a3412d1;border:0;border-radius:999px;justify-content:center;align-items:center;width:.85rem;height:.85rem;margin:-.08rem -.22rem -.08rem 0;padding:0;transition:opacity .12s,transform .12s,background .12s;display:inline-flex;transform:scale(.82)}.chapter-rich-editor mark[data-placeholder=true]:focus-within .placeholder-marker-delete{opacity:1;pointer-events:auto;transform:scale(1)}@media (hover:hover){.chapter-rich-editor mark[data-placeholder=true]:hover .placeholder-marker-delete{opacity:1;pointer-events:auto;transform:scale(1)}}.placeholder-marker-delete:focus-visible{outline-offset:1px;background:#7c2d12f2;outline:2px solid #ea580c47}@media (hover:hover){.placeholder-marker-delete:hover{outline-offset:1px;background:#7c2d12f2;outline:2px solid #ea580c47}}.placeholder-marker-delete svg{stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;width:.55rem;height:.55rem}.placeholder-token-list .placeholder-token{cursor:pointer;border:0;min-width:0;min-height:0;font-size:.68rem;line-height:1.1}.placeholder-token-list .placeholder-token:focus-visible{color:#7c2d12;outline-offset:1px;background:#fed7aa;outline:2px solid #ea580c47}@media (hover:hover){.placeholder-token-list .placeholder-token:hover{color:#7c2d12;outline-offset:1px;background:#fed7aa;outline:2px solid #ea580c47}}:root[data-theme=dark] .placeholder-token-list .placeholder-token,:root[data-theme=dark] .chapter-rich-editor mark,:root[data-theme=dark] .chapter-content-preview-body mark[data-placeholder=true]{color:#fed7aa;background:#9a3412b8;box-shadow:inset 0 0 0 1px #fb923c9e}:root[data-theme=dark] .placeholder-marker-delete{color:#431407;background:#fed7aa}:root[data-theme=dark] .placeholder-marker-delete:focus-visible{background:#fdba74;outline-color:#fb923c73}@media (hover:hover){:root[data-theme=dark] .placeholder-marker-delete:hover{background:#fdba74;outline-color:#fb923c73}}:root[data-theme=dark] .placeholder-token-list .placeholder-token:focus-visible{color:#fff7ed;background:#c2410ce6;outline-color:#fb923c6b}@media (hover:hover){:root[data-theme=dark] .placeholder-token-list .placeholder-token:hover{color:#fff7ed;background:#c2410ce6;outline-color:#fb923c6b}}.chapter-writing-body{flex-direction:column;min-height:0;display:flex;position:relative;overflow:hidden}.chapter-writing-notes-window{z-index:30;border:1px solid rgba(var(--accent-rgb), .24);background:var(--surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:10px;flex-direction:column;width:min(24rem,100vw - 2rem);min-width:17.5rem;max-width:calc(100vw - 1.5rem);min-height:11.25rem;max-height:min(34rem,100svh - 7rem);display:flex;position:fixed;top:clamp(5.5rem,8vh,7rem);right:clamp(1rem,3vw,2rem);overflow:hidden;box-shadow:0 24px 70px #241c1247}.chapter-writing-mobile-window-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);position:fixed;inset:0}.chapter-writing-notes-window header{border-bottom:1px solid var(--border);background:rgba(var(--accent-rgb), .08);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:flex-start;gap:1rem;padding:.9rem 1rem;display:flex}.chapter-writing-notes-title{min-width:0}.chapter-writing-notes-window header:active{cursor:grabbing}.chapter-writing-notes-window h2{color:var(--text-strong);margin:.12rem 0 0;font-size:1rem}.chapter-writing-notes-window header span{max-width:16rem;color:var(--muted);letter-spacing:.06em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;font-size:.72rem;font-weight:850;display:block;overflow:hidden}.chapter-writing-notes-actions{flex:none;align-items:center;gap:.45rem;display:flex}.chapter-writing-notes-edit{border-color:rgba(var(--accent-rgb), .24);min-height:2rem;color:var(--accent);background:rgba(var(--accent-rgb), .1);cursor:pointer;letter-spacing:0;text-transform:none;white-space:nowrap;border-radius:999px;padding:.38rem .72rem;font-size:.76rem;font-weight:650;line-height:1.1}.chapter-writing-notes-edit:focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.chapter-writing-notes-edit:hover{color:var(--accent-contrast);background:var(--accent)}}.chapter-writing-notes-edit:disabled{opacity:.55;cursor:not-allowed}.chapter-writing-notes-window header .chapter-writing-notes-close:not(.app-close-button){width:2rem;min-width:0;height:2rem;color:var(--muted);cursor:pointer;background:0 0;border-radius:10px;padding:0;font-size:0;line-height:0;position:relative}.chapter-writing-notes-close:not(.app-close-button):before,.chapter-writing-notes-close:not(.app-close-button):after{content:"";transform-origin:50%;background:currentColor;border-radius:10px;width:.72rem;height:2px;position:absolute;top:50%;left:50%}.chapter-writing-notes-close:not(.app-close-button):before{transform:translate(-50%,-50%)rotate(45deg)}.chapter-writing-notes-close:not(.app-close-button):after{transform:translate(-50%,-50%)rotate(-45deg)}.chapter-writing-notes-window header .chapter-writing-notes-close:not(.app-close-button):focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.chapter-writing-notes-window header .chapter-writing-notes-close:not(.app-close-button):hover{color:var(--accent-contrast);background:var(--accent)}}.chapter-writing-notes-window .markdown-preview{flex:auto;min-height:0;margin:0;padding:1rem 2rem 2rem 1rem;overflow:auto}.chapter-writing-notes-resize{z-index:2;border:1px solid rgba(var(--accent-rgb), .22);width:1.55rem;min-width:0;height:1.55rem;color:var(--accent);background:var(--surface);cursor:nwse-resize;opacity:.62;touch-action:none;border-radius:8px;place-items:center;padding:0;display:grid;position:absolute;bottom:.38rem;right:.38rem;box-shadow:0 8px 18px #241c1229}.chapter-writing-notes-resize svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:.9rem;height:.9rem}.chapter-writing-notes-resize:focus-visible{opacity:1}@media (hover:hover){.chapter-writing-notes-window:hover .chapter-writing-notes-resize{opacity:1}}.chapter-writing-notes-resize:focus-visible{color:var(--accent-contrast);background:var(--accent);outline:none}@media (hover:hover){.chapter-writing-notes-resize:hover{color:var(--accent-contrast);background:var(--accent);outline:none}}.book-timeline-writing-window{z-index:32;border:1px solid rgba(var(--accent-rgb), .24);background:var(--surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:14px;flex-direction:column;width:min(32.5rem,100vw - 2rem);min-width:22.5rem;max-width:calc(100vw - 1.5rem);height:min(42rem,100svh - 7rem);min-height:20rem;max-height:min(44rem,100svh - 7rem);display:flex;position:fixed;top:clamp(5.5rem,8vh,7rem);right:clamp(1rem,3vw,2rem);overflow:hidden;box-shadow:0 26px 80px #241c124d}.book-timeline-writing-window header{border-bottom:1px solid var(--border);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .18), transparent 12rem), rgba(var(--accent-rgb), .08);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:flex-start;gap:1rem;padding:.9rem 1rem;display:flex}.book-timeline-writing-window header:active{cursor:grabbing}.book-timeline-writing-window header span{max-width:16rem;color:var(--muted);letter-spacing:0;text-overflow:ellipsis;text-transform:none;white-space:nowrap;font-size:.78rem;font-weight:600;display:block;overflow:hidden}.book-timeline-writing-window h2{color:var(--text-strong);margin:.12rem 0 0;font-size:1rem}.book-timeline-writing-window .book-timeline-preview-panel{flex:auto;gap:.7rem;min-height:0;padding:.85rem}.book-timeline-writing-window .book-timeline-preview-frame{border-radius:16px}.book-timeline-writing-resize{z-index:2;border:1px solid rgba(var(--accent-rgb), .22);width:1.55rem;min-width:0;height:1.55rem;color:var(--accent);background:var(--surface);cursor:nwse-resize;opacity:.62;touch-action:none;border-radius:8px;place-items:center;padding:0;display:grid;position:absolute;bottom:.45rem;right:.45rem;box-shadow:0 8px 18px #241c1229}.book-timeline-writing-resize svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:.9rem;height:.9rem}.book-timeline-writing-resize:focus-visible{opacity:1}@media (hover:hover){.book-timeline-writing-window:hover .book-timeline-writing-resize{opacity:1}}.book-timeline-writing-resize:focus-visible{color:var(--accent-contrast);background:var(--accent);outline:none}@media (hover:hover){.book-timeline-writing-resize:hover{color:var(--accent-contrast);background:var(--accent);outline:none}}.stylesheet-window{z-index:31;border:1px solid rgba(var(--accent-rgb), .24);background:var(--surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:14px;flex-direction:column;width:min(30rem,100vw - 2rem);min-width:20rem;max-width:calc(100vw - 1.5rem);min-height:15rem;max-height:min(42rem,100svh - 7rem);display:flex;position:fixed;top:clamp(5.5rem,8vh,7rem);right:clamp(1rem,3vw,2rem);overflow:hidden;box-shadow:0 26px 80px #241c124d}.stylesheet-modal-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.stylesheet-window.modal{width:min(72rem,100vw - 2rem);max-width:calc(100vw - 2rem);height:min(48rem,100svh - 2rem);max-height:calc(100svh - 2rem);position:relative;top:auto;right:auto}.stylesheet-window.modal.compact{width:min(46rem,100vw - 2rem)}.stylesheet-window.floating{width:min(800px,100vw - 2rem);min-width:min(400px,100vw - 2rem)}.stylesheet-window.modal>header,.stylesheet-window.modal>header:active{cursor:default}.stylesheet-window>header{border-bottom:1px solid var(--border);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .18), transparent 12rem), rgba(var(--accent-rgb), .08);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:flex-start;gap:1rem;padding:.9rem 1rem;display:flex}.stylesheet-window>header:active{cursor:grabbing}.stylesheet-window-title span{max-width:16rem;color:var(--muted);letter-spacing:0;text-overflow:ellipsis;text-transform:none;white-space:nowrap;font-size:.78rem;font-weight:600;display:block;overflow:hidden}.stylesheet-window-title h2{color:var(--text-strong);margin:.12rem 0 0;font-size:1rem}.stylesheet-window-actions{align-items:center;gap:.4rem;display:inline-flex}.stylesheet-window-actions button{min-width:0;color:var(--muted);background:0 0;border-radius:10px;padding:.45rem .65rem}.stylesheet-window-actions button:focus-visible,.stylesheet-window-actions button.active{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.stylesheet-window-actions button:hover{color:var(--accent-contrast);background:var(--accent)}}.stylesheet-rel-root{height:100%;min-height:0;color:var(--text);flex-direction:column;gap:.85rem;display:flex;container:stylesheetRel/inline-size}.stylesheet-rel-tabs{border:1px solid var(--border);background:var(--accent-soft);border-radius:999px;flex-wrap:wrap;gap:.15rem;padding:.15rem;display:inline-flex}.stylesheet-window-actions .stylesheet-rel-tab{color:var(--muted);letter-spacing:0;text-transform:none;background:0 0;border:none;border-radius:999px;padding:.3rem .7rem;font-size:.78rem;font-weight:650}.stylesheet-window-actions .stylesheet-rel-tab:focus-visible{color:var(--text-strong);background:0 0}@media (hover:hover){.stylesheet-window-actions .stylesheet-rel-tab:hover{color:var(--text-strong);background:0 0}}.stylesheet-window-actions .stylesheet-rel-tab.active{background:var(--surface);color:var(--accent-strong);box-shadow:var(--soft-shadow)}.stylesheet-rel-split{flex:auto;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:1rem;min-height:0;display:grid}.stylesheet-rel-inspector{flex:auto;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:0;min-height:0;display:grid}.stylesheet-rel-inspector.is-resized{grid-template-columns:minmax(0, var(--rel-list-width,1fr)) auto minmax(0, 1fr)}.stylesheet-rel-inspector.is-narrow .stylesheet-entry-drag-handle{display:none}.stylesheet-rel-inspector-divider{cursor:col-resize;touch-action:none;background:0 0;border:none;border-radius:6px;justify-content:center;align-self:stretch;align-items:center;width:.85rem;margin:0 .4rem;display:flex}.stylesheet-rel-inspector-divider:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.stylesheet-rel-inspector-divider-grip{background:var(--border);border-radius:999px;width:2px;height:min(2.4rem,60%);transition:background .15s,height .15s}.stylesheet-rel-inspector-divider:focus-visible .stylesheet-rel-inspector-divider-grip{background:var(--accent);height:min(3.4rem,80%)}@media (hover:hover){.stylesheet-rel-inspector-divider:hover .stylesheet-rel-inspector-divider-grip{background:var(--accent);height:min(3.4rem,80%)}}.stylesheet-rel-inspector-list{min-width:0;min-height:0;padding-bottom:1rem;padding-right:.35rem;overflow:hidden auto}@container stylesheetRel (width<=680px){.stylesheet-rel-inspector,.stylesheet-rel-inspector.is-resized{grid-template-rows:minmax(80px,1fr) auto minmax(140px,1fr);grid-template-columns:minmax(0,1fr);gap:0;overflow:hidden}.stylesheet-rel-inspector.is-resized{grid-template-rows:minmax(80px, var(--rel-list-height,1fr)) auto minmax(140px, 1fr)}.stylesheet-rel-inspector-divider{cursor:row-resize;align-self:stretch;width:auto;height:.85rem;margin:.4rem 0}.stylesheet-rel-inspector-divider-grip{width:min(2.4rem,60%);height:2px}.stylesheet-rel-inspector-divider:focus-visible .stylesheet-rel-inspector-divider-grip{width:min(3.4rem,80%);height:2px}.stylesheet-rel-inspector-list{flex:none;max-height:none}}@media (hover:hover){@container stylesheetRel (width<=680px){.stylesheet-rel-inspector-divider:hover .stylesheet-rel-inspector-divider-grip{width:min(3.4rem,80%);height:2px}}}.stylesheet-rel-swatch{border:1px solid var(--border);border-radius:50%;flex:none;width:.7rem;height:.7rem;display:inline-block}.stylesheet-rel-detail{flex-direction:column;gap:.85rem;min-width:0;min-height:0;padding-bottom:1rem;padding-right:1rem;display:flex;overflow:hidden auto}.stylesheet-rel-detail-head{align-items:center;gap:.75rem;display:flex}.stylesheet-rel-detail-head h3{text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.stylesheet-rel-tag{color:var(--muted);align-items:center;gap:.35rem;margin-top:.2rem;font-size:.72rem;display:inline-flex}.stylesheet-rel-section{flex-direction:column;gap:.4rem;display:flex}.stylesheet-rel-section>h4{color:var(--muted);margin:0;font-size:.74rem;font-weight:700}.stylesheet-rel-row{border:1px solid var(--border);background:var(--surface);border-radius:10px;align-items:center;gap:.55rem;padding:.4rem .55rem;display:flex}.stylesheet-rel-verb{color:var(--accent-strong);flex:none;font-size:.74rem;font-weight:600}:root[data-theme=dark] .stylesheet-rel-verb{color:color-mix(in srgb, var(--accent) 65%, #fff 35%)}.stylesheet-rel-chip{color:var(--text-strong);flex:auto;align-items:center;gap:.4rem;min-width:0;font-size:.84rem;display:inline-flex}.stylesheet-rel-chip-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.stylesheet-rel-remove{width:1.85rem;height:1.85rem;color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:9px;flex:none;place-items:center;padding:0;transition:color .15s,background .15s;display:grid}.stylesheet-rel-remove svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:1rem;height:1rem}.stylesheet-rel-remove:focus-visible{color:var(--danger);background:#b91c1c1a}@media (hover:hover){.stylesheet-rel-remove:hover{color:var(--danger);background:#b91c1c1a}}.stylesheet-rel-add{border:1px dashed var(--border-strong);background:var(--accent-soft);border-radius:12px;flex-wrap:wrap;align-items:flex-end;gap:.6rem;padding:.75rem;display:flex}.stylesheet-rel-add label{color:var(--muted);flex-direction:column;flex:8rem;gap:.25rem;min-width:0;font-size:.72rem;font-weight:600;display:flex}.stylesheet-rel-detail-part{flex-direction:column;gap:.55rem;display:flex}.stylesheet-rel-detail-relationships-part{border-top:1px solid var(--border);padding-top:.85rem}.stylesheet-rel-part-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.stylesheet-rel-part-title{letter-spacing:.01em;color:var(--text-strong);margin:0;font-size:.78rem;font-weight:600}.stylesheet-rel-detail-relationships{flex-direction:column;gap:.65rem;display:flex}.stylesheet-rel-editor-dialog{width:min(34rem,100%)}.location-dialog.stylesheet-rel-editor-dialog{background:var(--dropdown-surface);flex-direction:column;gap:0;width:min(34rem,100%);max-height:min(48rem,100svh - 2rem);padding:0;display:flex;overflow:hidden}.stylesheet-rel-editor-top{flex-direction:column;flex:none;gap:.85rem;padding:1rem;display:flex}.stylesheet-rel-editor-dialog .location-dialog-header{border-bottom:1px solid rgba(var(--accent-rgb), .14);align-items:flex-start;margin:-1rem -1rem 0;padding:1rem 1rem .85rem}.stylesheet-rel-editor-heading h2{margin:0}.stylesheet-rel-editor-heading p{color:var(--muted);margin:.2rem 0 0;font-size:.82rem}.stylesheet-rel-editor-body{flex-direction:column;gap:.85rem;display:flex}.stylesheet-rel-editor-list{flex-direction:column;flex:auto;gap:.65rem;min-height:0;padding:1rem;display:flex;overflow-y:auto}.stylesheet-rel-select{position:relative}.stylesheet-rel-select-trigger{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text-strong);cursor:pointer;border-radius:9px;align-items:center;gap:.4rem;padding:.4rem .5rem;font-size:.84rem;font-weight:450;display:flex}.stylesheet-rel-select-trigger:focus-visible,.stylesheet-rel-select.open .stylesheet-rel-select-trigger{border-color:var(--accent-strong)}@media (hover:hover){.stylesheet-rel-select-trigger:hover{border-color:var(--accent-strong)}}.stylesheet-rel-select-trigger svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:.9rem;height:.9rem;margin-left:auto}.stylesheet-rel-select-value{text-overflow:ellipsis;white-space:nowrap;font-weight:450;overflow:hidden}.stylesheet-rel-select-swatch{border:1px solid var(--border);border-radius:50%;flex:none;width:.8rem;height:.8rem}.stylesheet-rel-select-menu{z-index:var(--z-modal-popover);border:1px solid var(--border);background:var(--dropdown-surface,var(--surface));max-height:14rem;box-shadow:var(--soft-shadow);border-radius:10px;flex-direction:column;gap:.1rem;padding:0 .25rem .25rem;display:flex;position:fixed;overflow-y:auto}.stylesheet-rel-select-menu button{width:100%;color:var(--text-strong);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:7px;align-items:center;gap:.4rem;padding:.35rem .45rem;font-size:.84rem;font-weight:450;display:flex}.stylesheet-rel-select-menu button:focus-visible{background:var(--accent-soft)}@media (hover:hover){.stylesheet-rel-select-menu button:hover{background:var(--accent-soft)}}.stylesheet-rel-select-menu button.active{background:var(--accent);color:var(--accent-contrast)}.stylesheet-rel-select-group{z-index:1;letter-spacing:0;text-transform:none;color:var(--muted);background:var(--dropdown-surface,var(--surface));margin-top:.15rem;padding:.3rem .45rem .2rem;font-size:.72rem;font-weight:500;position:sticky;top:0}.stylesheet-rel-select-menu>.stylesheet-rel-select-group:first-child{margin-top:0}.stylesheet-rel-add button.primary{background:var(--accent);color:var(--accent-contrast);cursor:pointer;border:none;border-radius:9px;padding:.45rem .9rem;font-weight:650}.stylesheet-rel-add button.primary:disabled{opacity:.5;cursor:not-allowed}.stylesheet-rel-empty{color:var(--muted);margin:0;font-size:.84rem}.stylesheet-rel-pad{text-align:center;padding:1.5rem}.stylesheet-rel-avatar{color:#fff;text-shadow:0 1px 2px #00000059;border-radius:50%;flex:none;justify-content:center;align-items:center;width:2rem;height:2rem;font-size:.72rem;font-weight:700;display:inline-flex;overflow:hidden}.stylesheet-rel-avatar img{object-fit:cover;width:100%;height:100%}.stylesheet-rel-avatar.large{width:3rem;height:3rem;font-size:1rem}.stylesheet-rel-avatar.small{width:1.6rem;height:1.6rem;font-size:.62rem}.stylesheet-rel-graph,.stylesheet-rel-places{flex-direction:column;flex:auto;gap:.7rem;min-height:0;display:flex}.stylesheet-rel-graph-toolbar,.stylesheet-rel-places-toolbar{color:var(--muted);flex-wrap:wrap;align-items:center;gap:.75rem;font-size:.8rem;display:flex}.stylesheet-rel-places-toolbar label{align-items:center;gap:.5rem;display:flex}.stylesheet-rel-places-toolbar .stylesheet-rel-select{min-width:12rem}.stylesheet-rel-check{cursor:pointer;align-items:center;gap:.35rem;display:inline-flex}.stylesheet-rel-check input{accent-color:var(--accent)}.stylesheet-rel-legend-line{border-top-style:solid;border-top-width:2px;width:1.5rem;height:0;display:inline-block}.stylesheet-rel-graph-svg{border:1px solid var(--border);background:var(--board);touch-action:none;-webkit-user-select:none;user-select:none;border-radius:14px;flex:auto;width:100%;min-height:0}.stylesheet-rel-graph-svg text{-webkit-user-select:none;user-select:none}.stylesheet-rel-node-label{fill:var(--text-strong);pointer-events:none;font-size:11px;font-weight:600}.stylesheet-rel-boards{flex:auto;gap:.85rem;min-height:0;padding-bottom:.35rem;display:flex;overflow-x:auto}.stylesheet-rel-board{border:1px solid var(--border);background:var(--surface);border-radius:14px;flex-direction:column;flex:0 0 240px;gap:.55rem;width:240px;padding:.65rem;display:flex;overflow-y:auto}.stylesheet-rel-board.pool{z-index:2;background:linear-gradient(var(--accent-soft), var(--accent-soft)), var(--dropdown-surface);position:sticky;left:0}.stylesheet-rel-board.drop-on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.stylesheet-rel-board.temporary{border-style:dashed}.stylesheet-rel-board>h4{color:var(--text-strong);align-items:center;gap:.4rem;margin:0;font-size:.82rem;font-weight:700;display:flex}.stylesheet-rel-board-note{color:var(--muted);margin:0;font-size:.7rem}.stylesheet-rel-place-img{object-fit:cover;border-radius:9px;width:100%;max-height:90px}.stylesheet-rel-nested{border:1px dashed var(--border);border-radius:10px;flex-direction:column;gap:.35rem;padding:.4rem;display:flex}.stylesheet-rel-nested-head{color:var(--muted);font-size:.72rem;font-weight:650}.stylesheet-rel-token{border:1px solid var(--border);background:var(--node);cursor:grab;border-radius:10px;align-items:center;gap:.45rem;padding:.35rem .45rem;display:flex}.stylesheet-rel-token:active{cursor:grabbing}.stylesheet-rel-token-name{color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}@media (width<=720px){.stylesheet-rel-split{grid-template-columns:minmax(0,1fr)}}.stylesheet-file-menu{position:relative}.stylesheet-file-menu-trigger{letter-spacing:0;text-transform:none;align-items:center;gap:.35rem;font-size:.78rem;font-weight:650;display:inline-flex}.stylesheet-file-menu-trigger svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:.95rem;height:.95rem}.stylesheet-import-input{display:none}.stylesheet-file-menu-panel{z-index:var(--z-modal-popover);border:1px solid var(--border);background:var(--dropdown-surface);border-radius:12px;gap:.15rem;min-width:12rem;padding:.25rem;display:grid;position:absolute;top:calc(100% + .35rem);right:0;box-shadow:0 18px 42px #4b3b2a2e}.stylesheet-window-actions .stylesheet-file-menu-panel button{width:100%;min-height:2.15rem;color:var(--text-strong);background:var(--dropdown-surface);box-shadow:none;text-align:left;white-space:nowrap;border:0;border-radius:10px;justify-content:flex-start;padding:.42rem .78rem;font-size:.82rem;font-weight:650}.stylesheet-window-actions .stylesheet-file-menu-panel button:focus-visible{color:var(--text-strong);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface)}@media (hover:hover){.stylesheet-window-actions .stylesheet-file-menu-panel button:hover{color:var(--text-strong);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface)}}.stylesheet-window-actions .stylesheet-window-add-entry{color:var(--accent-contrast);background:var(--accent);letter-spacing:0;text-transform:none;align-items:center;gap:.35rem;font-size:.78rem;font-weight:650;display:inline-flex}.stylesheet-window-add-entry-icon{font-size:.95rem;font-weight:800;line-height:1}.app-close-button,.stylesheet-close-button,.stylesheet-window-close{width:2rem;min-width:0;height:2rem;color:var(--muted);background:0 0;border-radius:10px;flex:none;place-items:center;padding:0;font-size:0;line-height:0;display:grid;position:relative}.app-close-button:focus-visible,.stylesheet-close-button:focus-visible{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.app-close-button:hover,.stylesheet-close-button:hover{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}}.mobile-workspace .app-close-button:focus-visible,.writing-shell .app-close-button:focus-visible{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent);box-shadow:none;transform:none}@media (hover:hover){.mobile-workspace .app-close-button:hover,.writing-shell .app-close-button:hover{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent);box-shadow:none;transform:none}}.app-close-button:before,.app-close-button:after,.stylesheet-close-button:before,.stylesheet-close-button:after,.stylesheet-window-close:before,.stylesheet-window-close:after{content:"";transform-origin:50%;background:currentColor;border-radius:10px;width:.72rem;height:2px;position:absolute;top:50%;left:50%}.app-close-button:before,.stylesheet-close-button:before,.stylesheet-window-close:before{transform:translate(-50%,-50%)rotate(45deg)}.app-close-button:after,.stylesheet-close-button:after,.stylesheet-window-close:after{transform:translate(-50%,-50%)rotate(-45deg)}.stylesheet-window-body{flex-direction:column;flex:auto;gap:.9rem;min-height:0;padding:1rem;display:flex;overflow:auto}.stylesheet-window-summary{justify-content:space-between;align-items:flex-start;gap:.8rem;display:flex}.stylesheet-window-summary p{color:var(--muted);margin:0;font-size:.86rem;line-height:1.45}.stylesheet-link-status,.timeline-link-status{border:1px solid rgba(var(--accent-rgb), .18);color:var(--text-strong);background:rgba(var(--accent-rgb), .08);white-space:nowrap;border-radius:999px;flex:none;padding:.22rem .55rem;font-size:.74rem;font-weight:650}.timeline-link-status{margin-top:.55rem;display:inline-flex}.stylesheet-empty-state .primary{color:var(--accent-contrast);background:var(--accent);flex:none;align-items:center;gap:.35rem;display:inline-flex}.stylesheet-window.compact .stylesheet-window-body{gap:.55rem;padding:.75rem}.stylesheet-window .stylesheet-window-body:has(.stylesheet-rel-inspector){padding-bottom:0;padding-right:0}.stylesheet-window.compact .stylesheet-window-body:has(.stylesheet-rel-inspector){padding-bottom:0;padding-right:0}.stylesheet-window .stylesheet-window-body:has(.stylesheet-rel-places){padding-bottom:0}.stylesheet-window.compact .stylesheet-window-body:has(.stylesheet-rel-places){padding-bottom:0}.stylesheet-window.compact .stylesheet-window-summary{align-items:center}.stylesheet-window.compact .stylesheet-window-summary p{display:none}.stylesheet-window.compact .stylesheet-entry-list{gap:.55rem}.stylesheet-window.compact .stylesheet-entry-group{gap:.35rem}.stylesheet-window.compact .stylesheet-entry-group-heading{border-radius:10px;padding:.3rem .35rem;font-size:.76rem}.stylesheet-window.compact .stylesheet-entry-group-heading h3{font-size:.8rem}.stylesheet-window.compact .stylesheet-entry-group-collapse-button,.stylesheet-window.compact .stylesheet-entry-group-edit-button{border-radius:8px;width:1.55rem;height:1.55rem}.stylesheet-window.compact .stylesheet-entry-group-collapse-button svg,.stylesheet-window.compact .stylesheet-entry-group-edit-button svg{width:.78rem;height:.78rem}.stylesheet-window.compact .stylesheet-entry-card{box-shadow:none;border-radius:11px;padding:.42rem .5rem}.stylesheet-window.compact .stylesheet-entry-card-main{align-items:center;gap:.5rem}.stylesheet-window.compact .stylesheet-entry-image{border-radius:10px;width:2rem;height:2rem}.stylesheet-window.compact .stylesheet-entry-image.placeholder{font-size:.86rem}.stylesheet-window.compact .stylesheet-entry-title-row{gap:.32rem;overflow:hidden}.stylesheet-window.compact .stylesheet-entry-title-row h4{text-overflow:clip;flex:none;font-size:.88rem;overflow:visible}.stylesheet-entry-compact-note{min-width:0;color:var(--text);white-space:nowrap;flex:1 1 0;align-items:center;gap:.32rem;font-size:.78rem;font-weight:500;display:inline-flex;overflow:hidden}.stylesheet-entry-compact-note-separator{color:var(--muted);flex:none}.stylesheet-entry-compact-note-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.stylesheet-window.compact .stylesheet-entry-aliases{flex-wrap:nowrap;gap:.22rem;margin-top:.22rem;overflow:hidden}.stylesheet-window.compact .stylesheet-entry-aliases span{text-overflow:ellipsis;white-space:nowrap;padding:.08rem .34rem;font-size:.66rem;overflow:hidden}.stylesheet-window.compact .stylesheet-entry-card .markdown-preview,.stylesheet-window.compact .stylesheet-entry-empty-note{display:none}.stylesheet-window.compact .stylesheet-entry-actions{justify-content:flex-end;align-items:center;gap:.25rem;display:flex}.stylesheet-window.compact .stylesheet-entry-action-button{border-radius:8px;width:1.75rem;height:1.75rem}.stylesheet-window.compact .stylesheet-entry-action-button svg{width:.86rem;height:.86rem}.color-field input[type=color]{cursor:pointer;background:0 0;border-radius:10px;width:2.55rem;min-width:2.55rem;height:2.55rem;padding:0;overflow:hidden}.stylesheet-entry-list{gap:1rem;display:grid}.stylesheet-entry-group{grid-template-columns:minmax(0,1fr);gap:.55rem;display:grid}.stylesheet-entry-group-heading{border:1px solid color-mix(in srgb, var(--stylesheet-group-color,var(--accent)) 34%, var(--border));color:var(--text);background:linear-gradient(90deg, color-mix(in srgb, var(--stylesheet-group-color,var(--accent)) 24%, var(--surface)), color-mix(in srgb, var(--stylesheet-group-color,var(--accent)) 12%, var(--surface)));letter-spacing:0;text-transform:none;border-radius:12px;align-items:center;gap:.45rem;padding:.42rem .5rem;font-size:.82rem;font-weight:600;display:flex}.stylesheet-entry-group-heading h3{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:.86rem;font-weight:650;overflow:hidden}.stylesheet-entry-group-collapse-button,.stylesheet-entry-group-edit-button{width:1.85rem;min-width:0;height:1.85rem;min-height:0;color:var(--muted);background:rgba(var(--accent-rgb), .05);border-radius:9px;flex:none;place-items:center;margin-left:auto;padding:0;display:grid}.stylesheet-entry-group-collapse-button{margin-left:0}.stylesheet-entry-group-edit-button{margin-left:auto}.stylesheet-entry-group-collapse-button:focus-visible,.stylesheet-entry-group-edit-button:focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.stylesheet-entry-group-collapse-button:hover,.stylesheet-entry-group-edit-button:hover{color:var(--accent-contrast);background:var(--accent)}}.stylesheet-entry-group-collapse-button svg,.stylesheet-entry-group-edit-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:.9rem;height:.9rem}.stylesheet-entry-group-collapse-button svg{transition:transform .16s}.stylesheet-entry-group.collapsed .stylesheet-entry-group-collapse-button svg{transform:rotate(-90deg)}.stylesheet-entry-card{border:1px solid rgba(var(--accent-rgb), .17);color:var(--text);background:linear-gradient(90deg, rgba(var(--accent-rgb), .08), transparent 42%), var(--surface);border-radius:14px;gap:.7rem;padding:.75rem;display:grid;position:relative;box-shadow:0 12px 30px #241c1214}.stylesheet-entry-card.dragging{opacity:.55}.stylesheet-entry-card.selectable{cursor:pointer;-webkit-user-select:none;user-select:none}.stylesheet-entry-card.selected{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft), 0 12px 30px #241c1214}.stylesheet-entry-card:not(.row):not(.drag-over-before):before{content:"";background:var(--stylesheet-entry-color);pointer-events:none;border-radius:13px 0 0 13px;width:4px;position:absolute;top:0;bottom:0;left:0}.stylesheet-window.compact .stylesheet-entry-card:not(.row):not(.drag-over-before):before{border-radius:10px 0 0 10px}.stylesheet-entry-card.row{border-left-width:1px;border-left-color:rgba(var(--accent-rgb), .17);min-width:0;box-shadow:none;background:var(--surface);cursor:pointer;border-radius:11px;align-items:center;gap:.55rem;padding:.4rem .5rem;transition:background .15s,border-color .15s;display:flex}@media (hover:hover){.stylesheet-entry-card.row:hover{background:var(--accent-soft)}}.stylesheet-entry-card.row.selected{border-left-color:var(--accent)}.stylesheet-entry-card.row .stylesheet-entry-image{border-radius:8px;flex:none;width:1.85rem;height:1.85rem;font-size:.85rem}.stylesheet-entry-card.row .stylesheet-entry-row-name{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;flex:none;font-size:.85rem;font-weight:600;overflow:hidden}.stylesheet-entry-card.row .stylesheet-entry-row-aka{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;font-size:.78rem;font-style:italic;overflow:hidden}.stylesheet-entry-card.row .stylesheet-entry-row-aka:before,.stylesheet-entry-card.row .stylesheet-entry-row-meta:before{content:"|";color:var(--border);margin-right:.45rem;font-style:normal}.stylesheet-entry-card.row .stylesheet-entry-row-meta{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;flex:1 100 auto;font-size:.76rem;overflow:hidden}.stylesheet-entry-card.row .stylesheet-entry-actions{flex:none;margin-left:auto}.stylesheet-entry-card.row .stylesheet-entry-row-color{background:var(--stylesheet-entry-color);border:1px solid #0000001f;border-radius:50%;flex:none;width:.85rem;height:.85rem;margin-left:auto;box-shadow:inset 0 0 0 1px #ffffff40}.stylesheet-entry-card.row .stylesheet-entry-actions+.stylesheet-entry-row-color{margin-left:.4rem}.stylesheet-entry-card.row .stylesheet-entry-drag-handle{opacity:.5;flex:none}@media (hover:hover){.stylesheet-entry-card.row:hover .stylesheet-entry-drag-handle{opacity:1}}.stylesheet-rel-detail-head>div:first-of-type{flex:auto;min-width:0}.stylesheet-rel-detail-actions{flex:none;align-items:center;gap:.25rem;display:inline-flex}.stylesheet-rel-detail-about{flex-direction:column;gap:.5rem;display:flex}.stylesheet-rel-detail-aliases{flex-wrap:wrap;gap:.3rem;display:flex}.stylesheet-rel-detail-aliases span{border:1px solid color-mix(in srgb, var(--accent) 34%, var(--border));color:var(--text);background:color-mix(in srgb, var(--accent) 12%, var(--surface));border-radius:999px;padding:.16rem .45rem;font-size:.72rem;font-weight:550}.stylesheet-rel-detail-notes.markdown-preview{color:var(--text);margin:0;padding:0;font-size:.84rem}.stylesheet-rel-detail-notes.markdown-preview>:first-child{margin-top:0}.stylesheet-rel-detail-empty-note{color:var(--muted);margin:0;font-size:.84rem}.stylesheet-entry-card.drag-over-before:before,.stylesheet-entry-card.drag-over-after:after{content:"";background:var(--accent);height:3px;box-shadow:0 0 0 4px rgba(var(--accent-rgb), .14);border-radius:999px;position:absolute;left:.75rem;right:.75rem}.stylesheet-entry-card.drag-over-before:before{top:-.38rem}.stylesheet-entry-card.drag-over-after:after{bottom:-.38rem}.stylesheet-entry-card-main{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:.75rem;display:grid}.stylesheet-entry-image{color:#fff;background:var(--stylesheet-entry-color,var(--accent));object-fit:cover;text-transform:uppercase;border-radius:14px;place-items:center;width:3rem;height:3rem;font-weight:900;display:grid;box-shadow:inset 0 0 0 1px #ffffff47}.stylesheet-entry-image.placeholder{font-size:1.15rem}.stylesheet-entry-copy{min-width:0}.stylesheet-entry-title-row{-webkit-user-select:none;user-select:none;align-items:center;gap:.4rem;min-width:0;display:flex}.stylesheet-entry-title-row h4{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:.98rem;overflow:hidden}.stylesheet-entry-aliases{flex-wrap:wrap;gap:.3rem;margin-top:.45rem;display:flex}.stylesheet-entry-aliases span{border:1px solid color-mix(in srgb, var(--stylesheet-entry-color,var(--accent)) 34%, var(--border));color:var(--text);background:color-mix(in srgb, var(--stylesheet-entry-color,var(--accent)) 12%, var(--surface));border-radius:999px;padding:.16rem .45rem;font-size:.72rem;font-weight:550}.stylesheet-entry-card .markdown-preview{max-height:6.5rem;color:var(--text);margin:.35rem 0 0;padding:0;font-size:.82rem;overflow:hidden}.stylesheet-entry-card .markdown-preview>:first-child{margin-top:0}.stylesheet-entry-empty-note{color:var(--muted);margin:.35rem 0 0;font-size:.82rem}.stylesheet-entry-actions{justify-items:end;gap:.45rem;display:grid}.stylesheet-entry-action-button{border-radius:10px;place-items:center;width:2.15rem;min-width:0;height:2.15rem;min-height:0;padding:0;display:grid}.stylesheet-entry-drag-handle{color:var(--muted);background:rgba(var(--accent-rgb), .05);cursor:grab;touch-action:none}.stylesheet-entry-drag-handle:active{cursor:grabbing}.stylesheet-entry-action-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:1rem;height:1rem}.stylesheet-entry-action-button.danger{color:#b91c1c;background:#b91c1c14}.stylesheet-empty-state{border:1px dashed rgba(var(--accent-rgb), .28);text-align:center;background:rgba(var(--accent-rgb), .05);border-radius:16px;align-content:center;place-items:center;gap:.65rem;min-height:15rem;padding:2rem;display:grid}.stylesheet-empty-state svg{fill:none;width:2.4rem;height:2.4rem;stroke:var(--accent);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px}.stylesheet-empty-state h3,.stylesheet-empty-state p{margin:0}.stylesheet-empty-state h3{color:var(--text-strong);font-size:1rem}.stylesheet-empty-state p{color:var(--muted);font-size:.86rem}.stylesheet-window-resize{z-index:2;border:1px solid rgba(var(--accent-rgb), .22);width:1.55rem;min-width:0;height:1.55rem;color:var(--accent);background:var(--surface);cursor:nwse-resize;opacity:.62;touch-action:none;border-radius:8px;place-items:center;padding:0;display:grid;position:absolute;bottom:.45rem;right:.45rem;box-shadow:0 8px 18px #241c1229}.stylesheet-window-resize svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:.9rem;height:.9rem}.stylesheet-window-resize:focus-visible{opacity:1}@media (hover:hover){.stylesheet-window:hover .stylesheet-window-resize{opacity:1}}.stylesheet-window-resize:focus-visible{color:var(--accent-contrast);background:var(--accent);outline:none}@media (hover:hover){.stylesheet-window-resize:hover{color:var(--accent-contrast);background:var(--accent);outline:none}}.location-dialog-backdrop.stylesheet-link-dialog-backdrop,.location-dialog-backdrop.timeline-link-dialog-backdrop{z-index:var(--z-modal-nested)}.location-dialog.stylesheet-link-dialog{grid-template-rows:auto minmax(0,1fr) auto;gap:0;width:min(34rem,100vw - 2rem);max-height:min(30rem,100svh - 2rem);padding:0;overflow:hidden}.stylesheet-link-dialog .location-dialog-header{border-bottom:1px solid rgba(var(--accent-rgb), .14);align-items:flex-start;padding:1rem 1.25rem .9rem}.stylesheet-link-dialog-body{align-content:start;gap:.35rem;min-height:0;padding:1rem 1.25rem;display:grid;overflow:auto}.stylesheet-link-dialog-book,.timeline-link-dialog-book{border:1px solid rgba(var(--accent-rgb), .14);width:100%;color:var(--text-strong);background:var(--surface);letter-spacing:0;text-align:left;text-transform:none;border-radius:12px;grid-template-columns:minmax(0,1fr) auto;place-items:center start;gap:.6rem;padding:.68rem .78rem;font-weight:600;display:grid}.stylesheet-link-dialog-book:focus-visible,.stylesheet-link-dialog-book.active,.timeline-link-dialog-book:focus-visible,.timeline-link-dialog-book.active{border-color:rgba(var(--accent-rgb), .32);background:rgba(var(--accent-rgb), .1)}@media (hover:hover){.stylesheet-link-dialog-book:hover,.timeline-link-dialog-book:hover{border-color:rgba(var(--accent-rgb), .32);background:rgba(var(--accent-rgb), .1)}}.stylesheet-link-dialog-book:disabled,.timeline-link-dialog-book:disabled{opacity:.58;cursor:not-allowed}.stylesheet-link-dialog-book span,.timeline-link-dialog-book span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.stylesheet-link-dialog-book small,.timeline-link-dialog-book small{color:var(--text);letter-spacing:0;text-transform:none;white-space:nowrap;font-size:.72rem;font-weight:500}.stylesheet-link-dialog>.confirm-dialog-actions{border-top:1px solid rgba(var(--accent-rgb), .14);background:rgba(var(--accent-rgb), .04);padding:.8rem 1.25rem}.stylesheet-entry-dialog-backdrop{padding:.35rem}.location-dialog.stylesheet-entry-dialog{grid-template-rows:auto minmax(0,1fr) auto;gap:0;width:min(38rem,100vw - .7rem);height:auto;max-height:calc(100svh - .7rem);padding:0;overflow:hidden}.stylesheet-entry-dialog .location-dialog-header{border-bottom:1px solid rgba(var(--accent-rgb), .14);align-items:flex-start;padding:1rem 1.35rem .85rem}.stylesheet-entry-dialog .location-dialog-header>div{min-width:0}.stylesheet-entry-dialog .location-dialog-header h2,.stylesheet-group-dialog .location-dialog-header h2{letter-spacing:0;text-transform:none;font-size:1rem;font-weight:600;line-height:1.2}.stylesheet-entry-dialog .location-dialog-header p,.stylesheet-group-dialog .location-dialog-header p{color:var(--text);letter-spacing:0;text-transform:none;font-weight:400}.stylesheet-entry-dialog .location-dialog-close:not(.stylesheet-close-button){border-radius:14px;width:2.35rem;height:2.35rem;padding:0;font-size:1.1rem}.stylesheet-entry-dialog>.confirm-dialog-actions{border-top:1px solid rgba(var(--accent-rgb), .14);background:rgba(var(--accent-rgb), .04);padding:.8rem 1.35rem}.stylesheet-entry-dialog>.confirm-dialog-actions button,.stylesheet-group-dialog>.confirm-dialog-actions button,.stylesheet-image-picker button,.stylesheet-manage-groups-button{letter-spacing:0;text-transform:none;font-weight:600}.stylesheet-entry-dialog-body{flex-direction:column;gap:.7rem;min-height:0;padding:1.05rem 1.35rem;display:flex;overflow:hidden auto}.stylesheet-entry-dialog-grid{grid-template-columns:minmax(0,1fr) minmax(7rem,8.5rem);align-items:end;gap:.7rem;display:grid}.stylesheet-entry-dialog .field{color:var(--text);letter-spacing:0;text-transform:none;gap:.35rem;min-width:0;margin-bottom:0;font-size:.82rem;font-weight:700;line-height:1.25;display:grid}.stylesheet-aliases-field,.stylesheet-notes-field{grid-template-rows:auto minmax(0,1fr);min-height:0}.stylesheet-entry-dialog textarea{resize:none;min-height:0}.stylesheet-entry-dialog textarea,.stylesheet-entry-dialog input:not([type=color]):not([type=checkbox]){color:var(--text-strong);background:var(--node);padding-block:.72rem;font-family:inherit;font-size:.9rem;font-weight:500;line-height:1.5}.stylesheet-entry-dialog input:not([type=color]):not([type=checkbox]){box-sizing:border-box;height:2.85rem}.stylesheet-entry-dialog .field.stylesheet-notes-field textarea{font-weight:400}.stylesheet-entry-dialog .field.color-field,.stylesheet-group-dialog .field.color-field{box-sizing:border-box;border:1px solid var(--border);min-width:0;min-height:2.85rem;color:var(--text-strong);background:var(--surface);border-radius:10px;justify-content:space-between;align-items:center;gap:.6rem;padding:.25rem .42rem .25rem .68rem;display:flex}.stylesheet-entry-dialog .field.color-field>span,.stylesheet-group-dialog .field.color-field>span{min-width:0;color:inherit;text-overflow:ellipsis;white-space:nowrap;font-weight:650;overflow:hidden}.stylesheet-entry-dialog .field.color-field input[type=color],.stylesheet-group-dialog .field.color-field input[type=color]{border-radius:8px;flex:none;width:1.8rem;min-width:1.8rem;height:1.8rem}.stylesheet-entry-dialog .field>span,.stylesheet-group-dialog .field>span{color:var(--text);letter-spacing:0;text-transform:none;font-size:.82rem;font-weight:700;line-height:1.25}.stylesheet-group-picker{letter-spacing:normal;text-transform:none;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;font-size:.86rem;font-weight:500;display:grid;position:relative}.stylesheet-group-picker-trigger,.stylesheet-manage-groups-button{border-radius:10px;min-height:2.55rem}.stylesheet-group-picker-trigger{min-width:0;color:var(--text-strong);background:var(--surface);justify-content:space-between;align-items:center;gap:.55rem;padding:.72rem .85rem;font-weight:500;display:inline-flex}.stylesheet-group-picker-trigger span:not(.stylesheet-group-picker-swatch){min-width:0;color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:0;text-overflow:ellipsis;text-transform:none;white-space:nowrap;overflow:hidden}.stylesheet-group-picker-trigger svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;flex:none;width:.9rem;height:.9rem;transition:transform .18s}.stylesheet-group-picker.open .stylesheet-group-picker-trigger svg{transform:rotate(180deg)}.stylesheet-group-picker-swatch{background:var(--stylesheet-group-color);width:.72rem;height:.72rem;box-shadow:0 0 0 2px rgba(var(--accent-rgb), .14);border-radius:999px;flex:none}.stylesheet-manage-groups-button{letter-spacing:0;text-transform:none;white-space:nowrap}.stylesheet-group-picker-menu{z-index:var(--z-modal-popover);border:1px solid var(--border);background:var(--dropdown-surface,var(--surface));border-radius:12px;gap:.2rem;width:min(100%,24rem);max-height:13rem;padding:.3rem;display:grid;position:absolute;top:calc(100% + .35rem);left:0;overflow:auto;box-shadow:0 18px 42px #241c122e}.stylesheet-entry-dialog .stylesheet-group-picker-menu{top:calc(100% + .35rem);bottom:auto}.stylesheet-group-picker-menu button{width:100%;color:var(--text-strong);letter-spacing:0;text-align:left;text-transform:none;background:0 0;border:0;border-radius:10px;grid-template-columns:auto minmax(0,1fr);place-items:center start;gap:.5rem;padding:.55rem .65rem;font-weight:500;display:grid}.stylesheet-group-picker-menu button span:not(.stylesheet-group-picker-swatch){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:0;text-transform:none}.stylesheet-group-picker-menu button:focus-visible,.stylesheet-group-picker-menu button.active{background:rgba(var(--accent-rgb), .12)}@media (hover:hover){.stylesheet-group-picker-menu button:hover{background:rgba(var(--accent-rgb), .12)}}.stylesheet-auto-detect-toggle{border:1px solid rgba(var(--accent-rgb), .18);color:var(--text-strong);background:rgba(var(--accent-rgb), .06);border-radius:12px;justify-content:space-between;align-items:center;gap:.75rem;padding:.65rem;font-size:.86rem;font-weight:550;display:flex}.stylesheet-auto-detect-toggle>span{overflow-wrap:anywhere;flex:auto;min-width:0}.stylesheet-auto-detect-toggle .book-setting-switch{flex:none}.stylesheet-image-picker{border:1px solid rgba(var(--accent-rgb), .18);background:rgba(var(--accent-rgb), .1);border-radius:14px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1rem;padding:.8rem;display:grid}.stylesheet-image-picker img,.stylesheet-image-picker>span{width:clamp(6rem,10vw,8rem);height:clamp(6rem,10vw,8rem);color:var(--muted);background:var(--surface);object-fit:cover;text-align:center;border-radius:16px;place-items:center;font-size:.78rem;font-weight:500;display:grid}.stylesheet-image-picker div{flex-wrap:wrap;gap:.45rem;display:flex}.stylesheet-image-picker input[type=file]{display:none}.stylesheet-image-picker.stylesheet-image-picker-compact{gap:.8rem;padding:.6rem .7rem}.stylesheet-image-picker.stylesheet-image-picker-compact img,.stylesheet-image-picker.stylesheet-image-picker-compact>span{border-radius:12px;width:3.4rem;height:3.4rem;font-size:.72rem}.stylesheet-entry-dialog.mobile .stylesheet-entry-dialog-body{flex-direction:column;gap:.8rem;display:flex;overflow:auto}.stylesheet-entry-dialog.mobile .stylesheet-image-picker{text-align:left;grid-template-columns:auto minmax(0,1fr);justify-items:stretch;gap:.65rem;padding:.55rem .65rem}.stylesheet-entry-dialog.mobile .stylesheet-image-picker img,.stylesheet-entry-dialog.mobile .stylesheet-image-picker>span{border-radius:12px;width:4.5rem;height:4.5rem}.stylesheet-entry-dialog.mobile .stylesheet-image-picker div{justify-content:flex-start;align-items:center;min-width:0}.stylesheet-group-dialog-backdrop{z-index:var(--z-modal-nested)}.location-dialog.stylesheet-group-dialog{grid-template-rows:auto minmax(0,1fr) auto;gap:0;width:min(52rem,100vw - 2rem);max-height:min(34rem,100svh - 2rem);padding:0;overflow:hidden}.stylesheet-group-dialog .location-dialog-header{border-bottom:1px solid rgba(var(--accent-rgb), .14);align-items:flex-start;padding:1rem 1.25rem .9rem}.stylesheet-group-dialog .location-dialog-close:not(.stylesheet-close-button){border-radius:14px;width:2.35rem;height:2.35rem;padding:0;font-size:1.1rem}.stylesheet-group-dialog-body{grid-template-columns:minmax(14rem,.72fr) minmax(20rem,1fr);gap:1rem;min-height:0;padding:1rem 1.25rem;display:grid;overflow:hidden}.stylesheet-group-dialog-list{border:1px solid rgba(var(--accent-rgb), .16);background:rgba(var(--accent-rgb), .05);border-radius:14px;align-content:start;gap:.35rem;min-height:0;padding:.45rem;display:grid;overflow:auto}.stylesheet-group-dialog-create-button,.stylesheet-group-dialog-select{width:100%;color:var(--text-strong);letter-spacing:0;text-align:left;text-transform:none;background:0 0;border:0;border-radius:12px;grid-template-columns:auto minmax(0,1fr) auto;place-items:center start;gap:.5rem;padding:.58rem .65rem;font-weight:500;display:grid}.stylesheet-group-dialog-create-button:focus-visible,.stylesheet-group-dialog-create-button.active,.stylesheet-group-dialog-select:focus-visible,.stylesheet-group-dialog-item.active .stylesheet-group-dialog-select{background:rgba(var(--accent-rgb), .13)}@media (hover:hover){.stylesheet-group-dialog-create-button:hover,.stylesheet-group-dialog-select:hover{background:rgba(var(--accent-rgb), .13)}}.stylesheet-group-dialog-item{grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:.28rem;display:grid;position:relative}.stylesheet-group-dialog-item.dragging{opacity:.55}.stylesheet-group-dialog-item.drag-over-before:before,.stylesheet-group-dialog-item.drag-over-after:after{content:"";z-index:2;background:var(--accent);height:3px;box-shadow:0 0 0 4px rgba(var(--accent-rgb), .14);border-radius:999px;position:absolute;left:.25rem;right:.25rem}.stylesheet-group-dialog-item.drag-over-before:before{top:-.25rem}.stylesheet-group-dialog-item.drag-over-after:after{bottom:-.25rem}.stylesheet-group-dialog-select{min-width:0}.stylesheet-group-dialog-item-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.stylesheet-group-dialog-drag-handle{width:2.05rem;min-width:0;min-height:0;color:var(--muted);background:rgba(var(--accent-rgb), .05);cursor:grab;touch-action:none;border:0;border-radius:10px;place-items:center;padding:0;display:grid}.stylesheet-group-dialog-drag-handle:active{cursor:grabbing}.stylesheet-group-dialog-drag-handle:focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.stylesheet-group-dialog-drag-handle:hover{color:var(--accent-contrast);background:var(--accent)}}.stylesheet-group-dialog-drag-handle svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:.95rem;height:.95rem}.stylesheet-group-dialog-list small{color:var(--text);letter-spacing:0;text-transform:none;font-size:.72rem;font-weight:500}.stylesheet-group-dialog-list p{color:var(--muted);margin:0;padding:.8rem;font-size:.86rem}.stylesheet-group-dialog-add{width:1.3rem;height:1.3rem;color:var(--accent-contrast);background:var(--accent);border-radius:999px;place-items:center;font-weight:900;display:grid}.stylesheet-group-dialog-form{border:1px solid rgba(var(--accent-rgb), .16);background:rgba(var(--accent-rgb), .04);border-radius:14px;align-content:start;gap:.9rem;min-width:0;padding:1rem;display:grid}.stylesheet-group-dialog-form-heading{justify-content:space-between;align-items:center;gap:.7rem;display:flex}.stylesheet-group-dialog-form-heading h3{color:var(--text-strong);letter-spacing:0;text-transform:none;margin:0;font-size:1rem;font-weight:600}.stylesheet-group-dialog-form-heading span,.stylesheet-group-delete-note{color:var(--text);letter-spacing:0;text-transform:none;font-size:.82rem;font-weight:500}.stylesheet-group-dialog .field{color:var(--text);letter-spacing:0;text-transform:none;gap:.35rem;margin-bottom:0;font-size:.82rem;font-weight:700;display:grid}.stylesheet-group-delete-note{background:#b91c1c14;border-radius:12px;margin:0;padding:.65rem}.stylesheet-group-dialog>.confirm-dialog-actions{border-top:1px solid rgba(var(--accent-rgb), .14);background:rgba(var(--accent-rgb), .04);padding:.8rem 1.25rem}@media (width<=1180px),(height<=599px){.writing-shell .chapter-writing-notes-window.mobile-centered,.writing-shell .stylesheet-window.floating{border-radius:10px;width:min(24rem,100vw - 2rem);min-width:min(17.5rem,100vw - 2rem);max-height:min(34rem,100dvh - 2rem);top:50%;left:50%;right:auto;transform:translate(-50%,-50%)}.writing-shell .chapter-writing-notes-window.mobile-centered>header,.writing-shell .chapter-writing-notes-window.mobile-centered>header:active,.writing-shell .stylesheet-window.floating>header,.writing-shell .stylesheet-window.floating>header:active{cursor:default;touch-action:auto}.writing-shell .stylesheet-window.floating .stylesheet-entry-card:not(.row).selected{border-color:rgba(var(--accent-rgb), .17);border-left:1px solid rgba(var(--accent-rgb), .17);box-shadow:none}.stylesheet-entry-dialog-backdrop,.stylesheet-group-dialog-backdrop,.stylesheet-link-dialog-backdrop{align-items:flex-start}.location-dialog.stylesheet-entry-dialog{width:min(100%,100vw - 1.4rem);height:auto;max-height:calc(100dvh - 1.4rem)}.location-dialog.stylesheet-group-dialog,.location-dialog.stylesheet-link-dialog{width:min(100%,100vw - 1.4rem);max-height:calc(100dvh - 1.4rem)}.stylesheet-entry-dialog .location-dialog-header,.stylesheet-group-dialog .location-dialog-header,.stylesheet-link-dialog .location-dialog-header{padding:.9rem 1rem .75rem}.stylesheet-entry-dialog-body,.stylesheet-group-dialog-body,.stylesheet-link-dialog-body{grid-template-columns:minmax(0,1fr);gap:.85rem;padding:.85rem 1rem;overflow:hidden auto}.stylesheet-aliases-field,.stylesheet-notes-field{grid-template-rows:auto auto}.stylesheet-entry-dialog textarea,.stylesheet-entry-dialog input:not([type=color]):not([type=checkbox]){padding-block:.62rem}.stylesheet-entry-dialog .field.stylesheet-notes-field textarea{min-height:9rem}.stylesheet-entry-dialog-grid,.stylesheet-group-picker{grid-template-columns:minmax(0,1fr)}.stylesheet-group-dialog-list{max-height:min(12rem,32dvh);overflow-x:hidden}.stylesheet-group-dialog-form{padding:.85rem}.stylesheet-entry-dialog .stylesheet-group-picker-menu{top:calc(100% + .35rem);bottom:auto}.stylesheet-image-picker{text-align:left;grid-template-columns:auto minmax(0,1fr);justify-items:stretch;gap:.65rem;padding:.55rem .65rem}.stylesheet-image-picker img,.stylesheet-image-picker>span{border-radius:12px;width:4.5rem;height:4.5rem}.stylesheet-image-picker div{justify-content:flex-start;align-items:center;min-width:0}.stylesheet-entry-dialog>.confirm-dialog-actions,.stylesheet-group-dialog>.confirm-dialog-actions{padding:.75rem 1rem}}@media (width<=420px){.stylesheet-window-actions{gap:.25rem}.stylesheet-file-menu-trigger-label,.stylesheet-window-add-entry-label{clip:rect(0, 0, 0, 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.stylesheet-entry-dialog-grid{grid-template-columns:minmax(0,1fr)}}.stylesheet-entry-popover{z-index:var(--z-modal-popover);border:1px solid var(--stylesheet-entry-color);max-height:min(38rem,100svh - 1.5rem);color:var(--text);background:radial-gradient(circle at 12% 0, rgba(var(--accent-rgb), .16), transparent 12rem), var(--surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:16px;gap:.5rem;padding:.85rem;display:grid;position:fixed;overflow:auto;box-shadow:0 28px 70px #241c1247}.stylesheet-entry-popover.has-image{gap:.65rem}.stylesheet-entry-popover.image-portrait{grid-template-columns:minmax(11rem,15rem) minmax(0,1fr);align-items:start;column-gap:.85rem}.stylesheet-entry-popover-hero{border:1px solid color-mix(in srgb, var(--stylesheet-entry-color,var(--accent)) 34%, transparent);background:radial-gradient(circle at 18% 0, color-mix(in srgb, var(--stylesheet-entry-color,var(--accent)) 28%, transparent), transparent 12rem), linear-gradient(135deg, rgba(var(--accent-rgb), .12), #ffffff14);border-radius:14px;place-items:center;width:100%;height:clamp(11rem,38vw,15rem);min-height:11rem;max-height:15rem;margin:0;display:grid;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff29,0 16px 38px #241c1229}.stylesheet-entry-popover-hero.orientation-portrait{justify-self:stretch;width:100%;height:clamp(14rem,52svh,22rem);max-height:22rem}.stylesheet-entry-popover-hero.orientation-landscape,.stylesheet-entry-popover-hero.orientation-unknown{place-items:stretch stretch;height:auto;min-height:0;max-height:none}.stylesheet-entry-popover.image-portrait .stylesheet-entry-popover-hero{grid-area:1/1}.stylesheet-entry-popover-content{flex-direction:column;align-self:start;gap:.5rem;min-width:0;display:flex}.stylesheet-entry-popover.image-portrait .stylesheet-entry-popover-content{grid-area:1/2;align-self:stretch}.stylesheet-entry-popover.image-portrait .stylesheet-popover-edit{align-self:end;margin-top:auto}.stylesheet-entry-popover-hero img{object-fit:contain;max-width:100%;max-height:100%;display:block}.stylesheet-entry-popover-hero img.orientation-landscape,.stylesheet-entry-popover-hero img.orientation-unknown{width:100%;height:auto}.stylesheet-entry-popover-hero img.orientation-portrait{width:auto;height:100%}.stylesheet-entry-popover-head{grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:.75rem;display:grid}.stylesheet-entry-popover.has-image .stylesheet-entry-popover-head{grid-template-columns:minmax(0,1fr) auto;align-items:center}.stylesheet-entry-popover.image-landscape .stylesheet-entry-popover-head,.stylesheet-entry-popover.image-unknown .stylesheet-entry-popover-head{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}.stylesheet-entry-popover.image-landscape .stylesheet-entry-popover-head .stylesheet-entry-aliases,.stylesheet-entry-popover.image-unknown .stylesheet-entry-popover-head .stylesheet-entry-aliases{justify-content:flex-end;align-self:center;margin-top:0}.stylesheet-entry-popover-head h3,.stylesheet-entry-popover-head p{margin:0}.stylesheet-entry-popover-head h3{color:var(--text-strong);font-size:1.05rem}.stylesheet-entry-popover-head p{color:var(--muted);font-size:.78rem;font-weight:850}.stylesheet-entry-popover-head button:not(.app-close-button){border-radius:10px;width:1.9rem;min-width:0;height:1.9rem;padding:0}.stylesheet-entry-popover .stylesheet-entry-aliases{margin-top:0}.stylesheet-entry-popover .markdown-preview{max-height:11rem;margin:0;padding:0;font-size:.86rem;overflow:auto}.stylesheet-entry-popover .markdown-preview>:first-child{margin-top:0}.stylesheet-popover-edit{color:var(--accent-contrast);background:var(--accent);justify-self:end}.writer-format-bold{font-weight:950}.writer-format-italic{font-style:italic}.chapter-writing-editor-frame{--chapter-writer-scroll-left:0px;--chapter-writer-scroll-top:0px;--writer-line-height:1.58;flex:auto;min-height:0;display:flex;position:relative;overflow:hidden}.chapter-writing-highlight-overlay{z-index:3;color:#0000;font-size:var(--writer-font-size,clamp(1rem, 1.4vw, 1.12rem));line-height:var(--writer-line-height);pointer-events:none;white-space:pre-wrap;position:absolute;inset:0;overflow:hidden}.chapter-writing-highlight-overlay .stylesheet-highlight{box-sizing:border-box;color:var(--stylesheet-entry-color,var(--text-strong));background:color-mix(in srgb, var(--stylesheet-entry-color,var(--accent)) 16%, var(--surface));-webkit-box-decoration-break:clone;box-decoration-break:clone;cursor:pointer;pointer-events:auto;transform:translate(calc(0px - var(--chapter-writer-scroll-left)), calc(0px - var(--chapter-writer-scroll-top)));white-space:pre;will-change:transform;border-radius:.24em;display:block;position:absolute;overflow:visible}.chapter-writing-highlight-overlay .stylesheet-highlight.native-highlight-target{color:#0000;background:0 0}.chapter-writing-spelling-overlay{z-index:4;pointer-events:none;position:absolute;inset:0;overflow:hidden}.chapter-writing-spelling-highlight{box-sizing:border-box;pointer-events:none;transform:translate(calc(0px - var(--chapter-writer-scroll-left)), calc(0px - var(--chapter-writer-scroll-top)));will-change:transform;background-image:url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 3 Q2 0 4 3 T8 3' fill='none' stroke='%23f97316' stroke-width='1.45' stroke-linecap='round'/%3E%3C/svg%3E");background-position:0 calc(100% - .04rem);background-repeat:repeat-x;background-size:.5rem .25rem;display:block;position:absolute}.chapter-writing-search-overlay{z-index:3;pointer-events:none;position:absolute;inset:0;overflow:hidden}.chapter-writing-search-highlight{box-sizing:border-box;background:rgba(var(--accent-rgb), .24);pointer-events:none;transform:translate(calc(0px - var(--chapter-writer-scroll-left)), calc(0px - var(--chapter-writer-scroll-top)));will-change:transform;border-radius:3px;display:block;position:absolute}.chapter-writing-search-highlight.is-current{background:rgba(var(--accent-rgb), .46);box-shadow:0 0 0 1px var(--accent-strong)}.chapter-writing-search-bar{z-index:12;border:1px solid rgba(var(--accent-rgb), .38);background:var(--dropdown-surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-radius:10px;flex-direction:column;gap:.4rem;padding:.5rem .55rem;display:flex;position:absolute;top:.75rem;right:clamp(.75rem,2vw,1.5rem);box-shadow:0 18px 46px #241c1252}.chapter-writing-search-row{align-items:center;gap:.5rem;padding-left:.1rem;display:flex}.chapter-writing-search-replace-row{border-top:1px solid rgba(var(--accent-rgb), .16);padding-top:.45rem}.chapter-writing-search-icon{color:var(--accent-strong);display:inline-flex}.chapter-writing-search-icon svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;width:.95rem;height:.95rem}.chapter-writing-search-input{width:clamp(8rem,18vw,13rem);color:var(--text);background:0 0;border:none;outline:none;font-size:.9rem}.chapter-writing-search-input::placeholder{color:var(--muted)}.chapter-writing-search-count{text-align:right;min-width:3.5rem;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.78rem}.chapter-writing-search-actions{align-items:center;gap:.2rem;display:flex}.chapter-writing-search-nav{width:1.65rem;height:1.65rem;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:inline-flex}.chapter-writing-search-nav svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:.85rem;height:.85rem}@media (hover:hover){.chapter-writing-search-nav:hover:not(:disabled){background:rgba(var(--accent-rgb), .16);color:var(--accent-strong)}}.chapter-writing-search-nav:disabled{opacity:.4;cursor:default}.chapter-writing-search-replace-button{border:1px solid rgba(var(--accent-rgb), .28);background:rgba(var(--accent-rgb), .08);height:1.65rem;color:var(--text);white-space:nowrap;cursor:pointer;border-radius:7px;justify-content:center;align-items:center;padding:0 .6rem;font-size:.78rem;font-weight:600;transition:background .15s,color .15s,border-color .15s;display:inline-flex}@media (hover:hover){.chapter-writing-search-replace-button:hover:not(:disabled){background:rgba(var(--accent-rgb), .18);border-color:var(--accent-strong);color:var(--accent-strong)}}.chapter-writing-search-replace-button:disabled{opacity:.4;cursor:default}.chapter-writing-spelling-popover{z-index:var(--z-modal-popover);color:var(--text);background:radial-gradient(circle at 10% 0, #f9731629, transparent 10rem), var(--surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid #f973166b;border-radius:16px;gap:.65rem;padding:.85rem;display:grid;position:fixed;overflow-y:auto;box-shadow:0 24px 64px #241c1247}.chapter-writing-spelling-popover header{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.75rem;display:grid}.chapter-writing-spelling-popover h3,.chapter-writing-spelling-popover p{margin:0}.chapter-writing-spelling-popover h3{color:var(--text-strong);font-size:.98rem}.chapter-writing-spelling-popover p,.chapter-writing-spelling-popover footer span,.chapter-writing-spelling-status{color:var(--muted);font-size:.78rem}.chapter-writing-spelling-popover .app-close-button{width:1.85rem;height:1.85rem}.chapter-writing-spelling-suggestions{gap:.4rem;display:grid}.chapter-writing-spelling-suggestions button,.chapter-writing-spelling-popover footer button{border:1px solid var(--border);min-height:2rem;color:var(--text-strong);background:rgba(var(--accent-rgb), .07);border-radius:10px;justify-content:flex-start;padding:.45rem .65rem;font-weight:800}.chapter-writing-spelling-suggestions button:focus-visible,.chapter-writing-spelling-popover footer button:focus-visible{color:var(--link);background:#f973161f;border-color:#f9731680}@media (hover:hover){.chapter-writing-spelling-suggestions button:hover,.chapter-writing-spelling-popover footer button:hover{color:var(--link);background:#f973161f;border-color:#f9731680}}.chapter-writing-spelling-popover footer{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.6rem;display:grid}.chapter-rich-editor{z-index:2;min-height:0;color:var(--text-strong);font-size:var(--writer-font-size,clamp(1rem, 1.4vw, 1.12rem));line-height:var(--writer-line-height);white-space:pre-wrap;background:0 0;outline:none;flex:auto;padding:clamp(1rem,3vw,2rem);position:relative;overflow:auto}.chapter-rich-editor.typewriter-focus{padding-block:max(2rem,32svh);scroll-padding-block:42%}.chapter-rich-editor:focus{box-shadow:inset 0 0 0 3px var(--accent-soft)}.chapter-rich-editor:empty:before{content:attr(data-placeholder);color:var(--muted)}.chapter-rich-editor p{margin:0}.chapter-rich-editor strong{font-weight:850}.chapter-rich-editor em{font-style:italic}:root[data-theme=dark] .app-header{background:#11100ed6;box-shadow:0 12px 32px #00000047}:root[data-theme=dark] .toolbar{background:#1f1d19bd}:root[data-theme=dark] .toolbar button,:root[data-theme=dark] .toolbar .button,:root[data-theme=dark] .hamburger-menu summary{background:#1f1d19eb}:root[data-theme=dark] .book-tab{background:linear-gradient(180deg, rgba(var(--tab-accent-rgb,var(--accent-rgb)), .22), rgba(var(--tab-accent-rgb,var(--accent-rgb)), .08)), #1f1d19b8}:root[data-theme=dark] .book-tab.active{background:linear-gradient(180deg, var(--tab-accent,var(--accent)), var(--tab-accent-strong,var(--accent-strong)))}:root[data-theme=dark] .global-search-row{background:#1f1d19eb}:root[data-theme=dark] .global-search-replace-button{border-left-color:#ffffff14}:root[data-theme=dark] .menu-panel{background:#1f1d19;box-shadow:0 18px 48px #00000057}:root[data-theme=dark] .menu-panel button:not(.active):not(:disabled):focus-visible,:root[data-theme=dark] .menu-panel .button:focus-visible{color:var(--text-strong);background:linear-gradient(0deg, rgba(var(--accent-rgb), .24), rgba(var(--accent-rgb), .24)), var(--dropdown-surface);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb), .34)}@media (hover:hover){:root[data-theme=dark] .menu-panel button:not(.active):not(:disabled):hover,:root[data-theme=dark] .menu-panel .button:hover{color:var(--text-strong);background:linear-gradient(0deg, rgba(var(--accent-rgb), .24), rgba(var(--accent-rgb), .24)), var(--dropdown-surface);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb), .34)}:root[data-theme=dark] .hamburger-menu summary:hover{border-color:rgba(var(--accent-rgb), .58);background:rgba(var(--accent-rgb), .22)}}:root[data-theme=dark] .book-cover-dropzone{background:linear-gradient(135deg, rgba(var(--accent-rgb), .12), transparent), #1f1d19eb;box-shadow:0 10px 20px #0000003d}:root[data-theme=dark] .book-settings-dialog{background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .2), transparent 18rem), linear-gradient(145deg, #1f1d19fa, #11100ef5)}:root[data-theme=dark] .book-setting-card{background:linear-gradient(135deg, rgba(var(--accent-rgb), .14), transparent 70%), #1f1d19b8;box-shadow:inset 0 1px #ffffff0d,0 12px 30px #0003}:root[data-theme=dark] .chapter-title-mode-options{background:#11100eb3}.workspace{grid-template-columns:minmax(0, 1fr) .8rem var(--inspector-width,27rem);flex:1;min-height:0;display:grid}.workspace.resizing-inspector{cursor:col-resize;-webkit-user-select:none;user-select:none}.workspace.resizing-inspector *{cursor:col-resize!important}.board-panel,.inspector{min-width:0;min-height:0}.board-panel{flex-direction:column;display:flex;overflow:hidden}.inspector-divider{z-index:8;border-inline:1px solid var(--border);background:var(--sidebar);place-items:center;display:grid;position:relative}.inspector-resize-handle{cursor:col-resize;position:absolute;inset:0}.inspector-resize-handle:focus-visible{outline:3px solid var(--accent-soft);outline-offset:-3px}.inspector-collapse-toggle{z-index:1;border-color:rgba(var(--accent-rgb), .32);width:100%;min-width:0;max-width:100%;height:3rem;color:var(--text-strong);background:linear-gradient(180deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .04)), var(--surface);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb), .16), 0 8px 18px #4b3b2a1f;border-radius:999px;place-items:center;padding:0;font-size:1.15rem;line-height:1;transition:background .16s,border-color .16s,box-shadow .16s,color .16s;display:grid;position:relative}.workspace.inspector-collapsed .inspector-collapse-toggle{color:var(--accent-contrast);background:var(--accent);box-shadow:inset 0 0 0 1px #ffffff38, 0 8px 18px rgba(var(--accent-rgb), .2)}.inspector-collapse-toggle svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.4px;width:.72rem;height:.72rem}.inspector-collapse-toggle:focus-visible{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent);box-shadow:0 10px 20px rgba(var(--accent-rgb), .22)}@media (hover:hover){.inspector-collapse-toggle:hover{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent);box-shadow:0 10px 20px rgba(var(--accent-rgb), .22)}}.inspector.collapsed{visibility:hidden;padding:0;overflow:hidden}.panel-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.1rem 1.25rem;display:flex}.panel-heading.compact{border-bottom:0;align-items:center;padding:0 0 1rem}.panel-heading h2{color:var(--text-strong);margin:0;font-size:1.1rem}.panel-heading p{color:var(--muted);margin:.2rem 0 0;font-size:.86rem}.panel-heading span{color:var(--muted);white-space:nowrap;font-size:.84rem}.board-tools{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.45rem;display:flex}.board-tool-group{flex-wrap:nowrap;flex:none;align-items:center;gap:.35rem;display:inline-flex}.board-tool-group+.board-tool-group{margin-left:.38rem;padding-left:.72rem;position:relative}.board-tool-group+.board-tool-group:before{content:"";background:var(--border);width:1px;height:2rem;position:absolute;top:50%;left:0;transform:translateY(-50%)}.board-tools button{min-width:2rem;min-height:2rem;box-shadow:none;white-space:nowrap;flex:none;justify-content:center;align-items:center;padding:.32rem .58rem;font-size:.78rem;display:inline-flex}.board-tools button.icon-only{width:2.05rem;padding:0}.board-tools button.icon-only svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.1px;width:1.05rem;height:1.05rem}.board-tools .primary{color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong));border-color:#0000}.board-tools .primary:focus-visible{color:var(--accent-contrast);background:var(--accent-strong)}@media (hover:hover){.board-tools .primary:hover{color:var(--accent-contrast);background:var(--accent-strong)}}.layout-select{width:10.5rem;max-width:10.5rem;min-height:2rem}.app-dropdown{width:100%;min-width:0;position:relative}.app-dropdown-trigger{border:1px solid var(--border);width:100%;min-height:2.5rem;color:var(--text-strong);background:var(--dropdown-surface);box-shadow:none;font:inherit;text-align:left;border-radius:10px;justify-content:space-between;align-items:center;gap:.65rem;padding:.66rem .78rem;font-size:.82rem;font-weight:500;display:inline-flex}.app-dropdown-trigger span:first-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.app-dropdown-chevron{color:var(--muted);flex:none;font-size:.76rem;transition:transform .14s}.app-dropdown.open .app-dropdown-chevron{transform:rotate(180deg)}.app-dropdown:not(.disabled) .app-dropdown-trigger:focus-visible{border-color:var(--accent);color:var(--text-strong);background:var(--dropdown-surface);outline:3px solid var(--accent-soft)}@media (hover:hover){.app-dropdown:not(.disabled) .app-dropdown-trigger:hover{border-color:var(--accent);color:var(--text-strong);background:var(--dropdown-surface);outline:3px solid var(--accent-soft)}}.app-dropdown-menu{z-index:var(--z-modal-popover);border:1px solid var(--border);width:max-content;min-width:100%;max-width:min(24rem,100vw - 2rem);max-height:min(16rem,52vh);color:var(--text-strong);background:var(--dropdown-surface);white-space:nowrap;border-radius:7px;gap:.16rem;padding:.28rem;display:grid;position:absolute;top:calc(100% + .35rem);left:0;overflow:auto;box-shadow:0 18px 48px #4b3b2a33}.app-dropdown-menu.portal{min-width:max-content;z-index:var(--z-portal-dropdown);right:auto}.app-dropdown-menu button{width:100%;min-width:max-content;min-height:2.05rem;color:var(--text-strong);background:var(--dropdown-surface);font:inherit;text-align:left;white-space:nowrap;border:0;border-radius:8px;justify-content:flex-start;padding:.48rem .62rem;font-size:.8rem;font-weight:500}.app-dropdown-menu button:focus-visible,.app-dropdown-menu button.active{color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), .1)), var(--dropdown-surface);outline:none}@media (hover:hover){.app-dropdown-menu button:hover{color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .1), rgba(var(--accent-rgb), .1)), var(--dropdown-surface);outline:none}}.layout-select .app-dropdown-trigger{border-radius:7px;min-height:2rem;padding:.3rem .52rem .3rem .55rem;font-size:.78rem}.board-tools button.active{color:var(--accent-contrast);background:var(--accent);border-color:#0000}.board-tools .export-format-menu button.active{color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface);border-color:#0000}.board-tools .dim-chapter-mode-control.active .export-dropdown-trigger{color:var(--accent-contrast);background:var(--accent);border-color:#0000 #0000 #0000 #ffffff4d;border-left-style:solid;border-left-width:1px}.board-tools .dim-chapter-mode-control.active .export-dropdown-trigger:focus-visible{color:var(--accent-contrast);background:var(--accent-strong)}@media (hover:hover){.board-tools .dim-chapter-mode-control.active .export-dropdown-trigger:hover{color:var(--accent-contrast);background:var(--accent-strong)}}.status-filter-control{flex:none;display:inline-flex;position:relative}.status-filter-trigger{gap:.4rem}.status-filter-trigger svg{fill:none;stroke:currentColor;stroke-width:1.4px;stroke-linejoin:round;width:.95rem;height:.95rem}.status-filter-count{min-width:1.05rem;height:1.05rem;color:var(--accent);background:var(--surface);border-radius:999px;justify-content:center;align-items:center;padding:0 .3rem;font-size:.68rem;font-weight:800;line-height:1;display:inline-flex}.board-tools .status-filter-trigger.active .status-filter-count{color:var(--accent);background:var(--accent-contrast)}.status-filter-menu{min-width:12rem}.status-filter-menu button{box-sizing:border-box;width:100%;min-height:2.15rem;color:var(--text-strong);background:var(--dropdown-surface);box-shadow:none;font:inherit;cursor:pointer;white-space:nowrap;border:0;border-radius:10px;justify-content:flex-start;align-items:center;gap:.5rem;padding:.42rem .7rem;font-size:.82rem;font-weight:700;display:inline-flex;position:relative}.status-filter-menu button:focus-visible{color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface)}@media (hover:hover){.status-filter-menu button:hover{color:var(--accent);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface)}}.status-filter-option{--status-color:#94a3b8}.status-filter-option .chapter-status-pill-dot{background:var(--status-color);width:.6rem;height:.6rem}.status-filter-option-label{text-align:left;flex:auto}.status-filter-check{flex:none;width:.85rem;height:.85rem}.status-filter-option.active .status-filter-check{background:var(--text-strong);-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-mask-position:50%;mask-position:50%;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.status-filter-clear{margin-top:.18rem;border-top:1px solid var(--border)!important;color:var(--muted)!important;border-radius:0 0 8px 8px!important;justify-content:center!important;font-weight:600!important}.status-filter-clear:disabled{opacity:.5;cursor:default}.canvas-tools-trigger.has-active-filter:after{content:"";background:var(--accent-contrast);border-radius:999px;width:.5rem;height:.5rem;position:absolute;top:.3rem;right:.3rem}.character-filter-control{flex:none;display:inline-flex;position:relative}.character-filter-trigger svg circle{fill:none}.character-filter-search{box-sizing:border-box;border:1px solid var(--border);width:100%;font:inherit;color:var(--text-strong);background:var(--surface);border-radius:8px;margin-bottom:.3rem;padding:.4rem .6rem;font-size:.82rem}.character-filter-search:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px rgba(var(--accent-rgb), .2);outline:none}.character-filter-group+.character-filter-group{margin-top:.25rem}.character-filter-group-label{letter-spacing:.02em;color:var(--muted);margin:.2rem .2rem .1rem;font-size:.68rem;font-weight:700}.character-filter-empty{color:var(--muted);text-align:center;margin:.4rem .2rem;font-size:.8rem}.location-dialog.field-picker-dialog.character-filter-dialog{width:min(720px,92vw);max-width:720px;max-height:min(80vh,640px)}.character-filter-dialog-search{flex:none;margin-top:.4rem}.character-filter-dialog-search .character-filter-search{margin-bottom:0}.character-filter-dialog-body{flex:auto;min-height:0;margin-top:.6rem;padding-right:.2rem;overflow-y:auto}.character-filter-dialog-group+.character-filter-dialog-group{margin-top:.7rem}.character-filter-dialog-group .character-filter-group-label{margin:0 .1rem .35rem}.character-filter-dialog-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.4rem;display:grid}.character-filter-dialog .character-filter-option{box-sizing:border-box;border:1px solid var(--border);width:100%;min-height:2.15rem;color:var(--text-strong);background:var(--surface);box-shadow:none;font:inherit;cursor:pointer;white-space:nowrap;border-radius:10px;justify-content:flex-start;align-items:center;gap:.5rem;padding:.42rem .7rem;font-size:.82rem;font-weight:700;display:inline-flex;position:relative}.character-filter-dialog .character-filter-option:focus-visible{color:var(--accent);border-color:rgba(var(--accent-rgb), .4);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--surface);outline:none}@media (hover:hover){.character-filter-dialog .character-filter-option:hover{color:var(--accent);border-color:rgba(var(--accent-rgb), .4);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--surface);outline:none}}.character-filter-dialog .character-filter-option.active{color:var(--accent);border-color:rgba(var(--accent-rgb), .55);background:linear-gradient(0deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .14)), var(--surface)}.character-filter-dialog-footer{border-top:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;gap:.75rem;margin-top:.75rem;padding-top:.65rem;display:flex}.character-filter-dialog-count{color:var(--muted);font-size:.82rem}.character-filter-dialog-actions{align-items:center;gap:.5rem;display:flex}.character-filter-dialog .character-filter-dialog-actions .character-filter-clear{background:var(--surface);cursor:pointer;min-height:2.1rem;margin-top:0;padding:.42rem .8rem;border:1px solid var(--border)!important;border-radius:9px!important}.character-filter-dialog .character-filter-dialog-actions .character-filter-clear:disabled{opacity:.5;cursor:default}.canvas-tools-popover{z-index:12;pointer-events:none;justify-content:flex-end;align-items:center;gap:.55rem;display:flex;position:absolute;top:.85rem;left:.9rem;right:.9rem}.canvas-tools-trigger{z-index:1;border-color:rgba(var(--accent-rgb), .28);width:2.75rem;min-width:2.75rem;height:2.75rem;color:var(--accent);background:linear-gradient(135deg, rgba(var(--accent-rgb), .12), transparent), var(--surface);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);pointer-events:auto;border-radius:10px;flex:none;order:2;place-items:center;display:grid;position:relative;box-shadow:0 16px 38px #4b3b2a29}.canvas-tools-trigger:focus-visible,.canvas-tools-popover.expanded .canvas-tools-trigger{color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong))}@media (hover:hover){.canvas-tools-trigger:hover{color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong))}}.canvas-tools-trigger svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.9px;width:1.25rem;height:1.25rem}.canvas-tools-panel{border:1px solid var(--border);background:var(--surface);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);opacity:0;pointer-events:none;transform-origin:100% 0;visibility:hidden;white-space:normal;scrollbar-width:none;border-radius:10px;flex-wrap:wrap;flex:0 auto;place-content:center flex-end;width:auto;min-width:0;max-width:calc(100% - 3.3rem);max-height:none;padding:.6rem;transition:opacity .16s,transform .18s,visibility .18s;position:static;overflow:visible;transform:translate(.35rem)scale(.98);box-shadow:0 22px 58px #4b3b2a33}.canvas-tools-panel .board-tool-group:first-child{margin-left:0}.canvas-tools-panel{gap:.5rem .55rem}.canvas-tools-panel .board-tool-group+.board-tool-group{margin-left:0;padding-left:0}.canvas-tools-panel .board-tool-group+.board-tool-group:before{display:none}.canvas-tools-panel::-webkit-scrollbar{display:none}.canvas-tools-popover.expanded .canvas-tools-panel{opacity:1;pointer-events:auto;visibility:visible;transform:translate(0)scale(1);box-shadow:0 18px 22px -16px #4b3b2a73,0 30px 68px #4b3b2a3d}.zoom-level{text-align:center;min-width:3.4rem;padding:0 .3rem;font-weight:800}.board{background-color:var(--board);background-image:linear-gradient(rgba(var(--accent-rgb), .08) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--accent-rgb), .08) 1px, transparent 1px);background-position:var(--grid-offset-x,0) var(--grid-offset-y,0);background-size:var(--grid-size,40px) var(--grid-size,40px);cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;flex:1;min-height:0;position:relative;overflow:hidden}.board.panning{cursor:grabbing}.viewport-layer{transform-origin:0 0;backface-visibility:hidden;transform-style:preserve-3d;will-change:transform;position:absolute;inset:0}.board.switching-book .viewport-layer,.board.switching-book .board-empty{visibility:hidden}.canvas-switch-loader{z-index:34;opacity:0;pointer-events:none;place-items:center;transition:opacity .12s;display:grid;position:absolute;inset:0}.canvas-switch-loader span{background:conic-gradient(from 20deg, var(--accent-strong) 0deg 34deg, rgba(var(--accent-rgb), .16) 38deg 360deg);border-radius:50%;width:3.2rem;height:3.2rem;animation:.8s linear infinite loading-wait-spin;position:relative;box-shadow:0 8px 24px #4b3b2a1f;-webkit-mask:radial-gradient(farthest-side,#0000 calc(100% - .22rem),#000 calc(100% - .21rem));mask:radial-gradient(farthest-side,#0000 calc(100% - .22rem),#000 calc(100% - .21rem))}:root[data-theme=dark] .canvas-switch-loader span{box-shadow:0 8px 24px #00000047}.board.switching-book .canvas-switch-loader{opacity:1}@media (prefers-reduced-motion:reduce){.canvas-switch-loader span{animation:none}}.link-layer{z-index:1;pointer-events:none;width:1px;height:1px;position:absolute;inset:0;overflow:visible}.image-attachment-layer{z-index:4;pointer-events:none;width:1px;height:1px;position:absolute;inset:0;overflow:visible}.canvas-node-layer{z-index:3;pointer-events:none;width:1px;height:1px;position:absolute;inset:0;overflow:visible}.canvas-node-layer .chapter-node,.canvas-node-layer .image-node,.canvas-node-layer .matter-node{pointer-events:auto}.chapter-link{fill:none;stroke:var(--link);stroke-width:3.5px;stroke-linecap:round;stroke-linejoin:round;opacity:.78}.chapter-link-hitbox{fill:none;stroke:#0000;stroke-width:18px;stroke-linecap:round;pointer-events:stroke;cursor:pointer}.connection.selected .chapter-link{stroke:var(--accent);stroke-width:4.5px;opacity:1}.connection.selected .link-terminal,.connection.selected .link-socket{stroke:var(--accent)}.link-terminal{fill:var(--surface);stroke:var(--link);stroke-width:2px}.link-socket{fill:none;stroke:var(--link);stroke-width:2.5px;stroke-linecap:round;stroke-linejoin:round;opacity:.58}.branch-draft{stroke-dasharray:10 8;opacity:.95}.branch-draft-socket{opacity:.8}.image-attachment-link{fill:none;stroke:var(--link);stroke-width:calc(2px * var(--inverse-viewport-zoom,1));stroke-linecap:square;stroke-linejoin:round;opacity:.5}.image-attachment-endpoint{fill:var(--link);r:calc(3px * var(--inverse-viewport-zoom,1));opacity:.5}.chapter-node{z-index:2;box-sizing:border-box;border:1px solid var(--border);width:260px;min-height:154px;color:var(--text);background:var(--node);box-shadow:var(--node-shadow);cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;will-change:transform;border-radius:12px;flex-direction:column;gap:.55rem;padding:.95rem;display:flex;position:absolute;top:0;left:0}.chapter-node.storyline-coded{border-color:rgba(var(--storyline-color-rgb), .36);background:var(--storyline-card-background,linear-gradient(135deg, rgba(var(--storyline-color-rgb), .2), rgba(var(--storyline-color-rgb), .06)), var(--node))}.chapter-node:active{cursor:grabbing}.chapter-node.locked{border-color:rgba(var(--accent-rgb), .28);background:linear-gradient(135deg, rgba(var(--accent-rgb), .2), #b4530914), var(--node);cursor:default}.chapter-node.locked.storyline-coded{border-color:rgba(var(--storyline-color-rgb), .34);background:var(--storyline-card-locked-background,linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--storyline-color-rgb), .14)), var(--node))}.chapter-node.done{isolation:isolate;border-color:rgba(var(--done-rgb), .48);background:linear-gradient(135deg, rgba(var(--done-rgb), .2), rgba(var(--accent-rgb), .08)), var(--node);box-shadow:0 0 0 3px rgba(var(--done-rgb), .12), 0 0 18px #ffffff14, 0 0 42px rgba(var(--done-rgb), .24), var(--node-shadow)}.chapter-node.done.storyline-coded{border-color:rgba(var(--done-rgb), .5);background:linear-gradient(135deg, rgba(var(--done-rgb), .18), rgba(var(--storyline-color-rgb), .14)), var(--storyline-card-background,var(--node))}.board.dim-completed-chapters .chapter-node.done,.board.dim-completed-chapters .image-node.done{filter:brightness(.5)}.board.dim-completed-chapters .image-attachment.done{opacity:.5}.board.dim-incomplete-chapters .chapter-node:not(.done),.board.dim-incomplete-chapters .image-node:not(.done){filter:brightness(.5)}.board.dim-incomplete-chapters .image-attachment:not(.done){opacity:.5}.board.filter-dim-not-started .chapter-node[data-status=not-started],.board.filter-dim-not-started .image-node[data-status=not-started],.board.filter-dim-draft .chapter-node[data-status=draft],.board.filter-dim-draft .image-node[data-status=draft],.board.filter-dim-in-review .chapter-node[data-status=in-review],.board.filter-dim-in-review .image-node[data-status=in-review],.board.filter-dim-done .chapter-node[data-status=done],.board.filter-dim-done .image-node[data-status=done]{opacity:.22;filter:grayscale(.55)brightness(.92)}.board.filter-dim-not-started .image-attachment[data-status=not-started],.board.filter-dim-draft .image-attachment[data-status=draft],.board.filter-dim-in-review .image-attachment[data-status=in-review],.board.filter-dim-done .image-attachment[data-status=done]{opacity:.2}.board.character-filter-active .chapter-node[data-character-dimmed=true],.board.character-filter-active .image-node[data-character-dimmed=true]{opacity:.22;filter:grayscale(.55)brightness(.92)}.board.character-filter-active .image-attachment[data-character-dimmed=true]{opacity:.2}.chapter-node.done:before{content:"";pointer-events:none;z-index:-1;opacity:.74;background:radial-gradient(ellipse at 50% 50%, rgba(var(--done-rgb), .24), transparent 70%), radial-gradient(ellipse at 50% 50%, #ffffff14, transparent 58%);filter:blur(.35px);border-radius:16px;animation:3.2s ease-in-out infinite alternate chapter-done-glow-pulse;position:absolute;inset:-.95rem}.chapter-done-particles{z-index:-1;pointer-events:none;opacity:0;transition:opacity .18s;position:absolute;inset:0;overflow:visible}.chapter-node.done .chapter-done-particles{opacity:1}.chapter-done-particle{top:var(--particle-y);left:var(--particle-x);width:var(--particle-size);height:var(--particle-size);margin-top:calc(var(--particle-size) * -.5);margin-left:calc(var(--particle-size) * -.5);opacity:0;background:radial-gradient(circle, #fffffff5, rgba(var(--done-rgb), .82) 48%, transparent 72%);box-shadow:0 0 .24rem #ffffff5c, 0 0 .42rem rgba(var(--done-rgb), .58);animation:chapter-done-particle-emit var(--particle-duration) linear infinite;animation-delay:var(--particle-delay);border-radius:999px;animation-play-state:paused;position:absolute;transform:translate(0,0)scale(.2)}.chapter-done-particle:nth-child(3n){background:radial-gradient(circle, rgba(var(--done-rgb), .98), rgba(var(--done-rgb), .7) 48%, transparent 72%)}.chapter-done-particle:nth-child(4n){background:radial-gradient(circle,#fffffffa,#ffffff94 42%,#0000 70%)}.chapter-node.done .chapter-done-particle{animation-play-state:running}@keyframes chapter-done-glow-pulse{0%{opacity:.5;transform:scale(.98)}to{opacity:.78;transform:scale(1.03)}}@keyframes chapter-done-particle-emit{0%,18%{opacity:0;transform:translate(0,0)scale(.18)}23%{opacity:.96;transform:translate(0,0)scale(1)}62%{opacity:.82}to{opacity:0;transform:translate3d(var(--particle-dx), var(--particle-dy), 0) scale(.12)}}@media (prefers-reduced-motion:reduce){.chapter-node.done:before,.chapter-done-particle{animation:none}}.chapter-node.selected{border-color:var(--accent);box-shadow:0 0 0 calc(3px * var(--inverse-viewport-zoom,1)) var(--accent), 0 0 0 calc(10px * var(--inverse-viewport-zoom,1)) rgba(var(--accent-rgb), .24), 0 0 calc(18px * var(--inverse-viewport-zoom,1)) rgba(var(--accent-rgb), .36), var(--node-shadow)}.matter-node{z-index:2;box-sizing:border-box;border:1px solid rgba(var(--accent-rgb), .28);width:230px;min-height:138px;color:var(--text);background:linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04)), var(--node);box-shadow:var(--node-shadow);cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;will-change:transform;border-radius:12px;flex-direction:column;gap:.62rem;padding:.92rem;display:flex;position:absolute;top:0;left:0}.matter-node:active{cursor:grabbing}.matter-node.locked{cursor:default;opacity:.92}.matter-node.selected{border-color:var(--accent);box-shadow:0 0 0 calc(3px * var(--inverse-viewport-zoom,1)) var(--accent), 0 0 0 calc(10px * var(--inverse-viewport-zoom,1)) rgba(var(--accent-rgb), .22), 0 0 calc(18px * var(--inverse-viewport-zoom,1)) rgba(var(--accent-rgb), .32), var(--node-shadow)}.matter-node-delete{z-index:5;width:1.85rem;min-width:0;height:1.85rem;color:var(--muted);cursor:pointer;opacity:.72;background:0 0;border:1px solid #0000;border-radius:9px;place-items:center;padding:0;display:inline-grid;position:absolute;top:.38rem;right:.38rem}.matter-node-delete svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:1rem;height:1rem}.matter-node-delete:focus-visible{color:var(--danger);opacity:1;background:#ef444414;border-color:#ef44442e;outline:none}@media (hover:hover){.matter-node-delete:hover{color:var(--danger);opacity:1;background:#ef444414;border-color:#ef44442e;outline:none}}.matter-node-topline{align-items:center;gap:.5rem;padding-right:2.25rem;display:flex}.matter-node-count{color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-align:left;text-transform:inherit;white-space:nowrap;flex:none;line-height:1}.matter-node h3{min-width:0;color:var(--text-strong);overflow-wrap:anywhere;flex:auto;margin:0;font-size:1rem;line-height:1.18}.matter-node-summary{color:var(--muted);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:.78rem;line-height:1.25;display:-webkit-box;overflow:hidden}.matter-node-summary strong{color:var(--text-strong);font-weight:900}.matter-node-summary em{font-style:italic}.matter-node-summary code{background:var(--code-bg);font-family:var(--mono);border-radius:6px;padding:.05rem .22rem;font-size:.88em}.matter-node-summary-link{color:var(--accent);font-weight:850}.matter-node-stats{border-top:1px solid rgba(var(--accent-rgb), .12);color:var(--muted);letter-spacing:.04em;text-transform:uppercase;align-items:center;gap:.35rem;margin-top:auto;padding-top:.3rem;font-size:.72rem;font-weight:850;display:flex}.chapter-node.branch-target,.matter-node.branch-target{border-color:var(--link);box-shadow:0 0 0 5px #b453092e, var(--node-shadow)}.chapter-node .branch-handle,.matter-node .branch-handle{top:var(--branch-port-offset-y,70px);z-index:4;touch-action:none;border-radius:10px;width:1.15rem;min-width:0;height:1.15rem;padding:0;position:absolute;transform:translateY(-50%)}.chapter-node .branch-handle:after,.matter-node .branch-handle:after{content:"";border-radius:inherit;background:0 0;position:absolute;inset:.32rem}.branch-input{border:2px solid var(--link);background:var(--surface);pointer-events:none;left:-.58rem;box-shadow:0 0 0 4px #b453091f}.chapter-node.has-incoming .branch-input,.matter-node.has-incoming .branch-input{border-color:var(--surface);background:var(--link);box-shadow:0 0 0 4px #b4530929,0 8px 20px #b453092e}.chapter-node.has-incoming .branch-input:after,.matter-node.has-incoming .branch-input:after{background:var(--surface);opacity:.9}.chapter-node .branch-output,.matter-node .branch-output{border:2px solid var(--surface);background:var(--link);cursor:crosshair;right:-.58rem;box-shadow:0 0 0 4px #b4530929,0 8px 20px #b453093d}.chapter-node.has-outgoing .branch-output,.matter-node.has-outgoing .branch-output{box-shadow:0 0 0 5px #b4530933,0 10px 24px #b453094d}.chapter-node.has-outgoing .branch-output:after,.matter-node.has-outgoing .branch-output:after{background:var(--surface);opacity:.9}.chapter-node .branch-output:focus-visible,.matter-node .branch-output:focus-visible{border-color:var(--surface);outline:none;transform:translateY(-50%)scale(1.14);box-shadow:0 0 0 6px #b4530933,0 10px 24px #b453094d}@media (hover:hover){.chapter-node .branch-output:hover,.matter-node .branch-output:hover{border-color:var(--surface);outline:none;transform:translateY(-50%)scale(1.14);box-shadow:0 0 0 6px #b4530933,0 10px 24px #b453094d}}.chapter-node.locked .branch-output,.matter-node.locked .branch-output{cursor:not-allowed;opacity:.35}.node-delete,.node-done,.node-lock,.node-unclip{z-index:5;width:2rem;min-width:0;height:2rem;color:var(--muted);cursor:pointer;opacity:.72;background:0 0;border:1px solid #0000;border-radius:10px;place-items:center;padding:0;display:inline-grid;position:absolute;top:.44rem}.node-delete{right:.68rem}.node-lock{right:2.85rem}.node-unclip{right:5.02rem}.node-done{right:7.19rem}.chapter-node.locked .node-lock{right:.68rem}.chapter-node.locked .node-unclip{right:2.85rem}.chapter-node.locked .node-done{right:5.02rem}.node-delete svg,.node-done svg,.node-lock svg,.node-unclip svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:1.05rem;height:1.05rem}.node-delete:focus-visible{color:var(--danger);opacity:1;background:#ef444414;border-color:#ef44442e;outline:none;box-shadow:0 8px 18px #4b3b2a1f}@media (hover:hover){.node-delete:hover{color:var(--danger);opacity:1;background:#ef444414;border-color:#ef44442e;outline:none;box-shadow:0 8px 18px #4b3b2a1f}}.node-lock.active{color:var(--accent);opacity:1}.node-lock:focus-visible{border-color:rgba(var(--accent-rgb), .18);color:#fff;background:var(--accent);opacity:1;outline:none;box-shadow:0 8px 18px #4b3b2a1f}@media (hover:hover){.node-lock:hover{border-color:rgba(var(--accent-rgb), .18);color:#fff;background:var(--accent);opacity:1;outline:none;box-shadow:0 8px 18px #4b3b2a1f}}.node-unclip:not(:disabled):focus-visible{border-color:rgba(var(--accent-rgb), .24);color:var(--link);background:rgba(var(--accent-rgb), .14);opacity:1;outline:none;box-shadow:0 8px 18px #4b3b2a1f}@media (hover:hover){.node-unclip:not(:disabled):hover{border-color:rgba(var(--accent-rgb), .24);color:var(--link);background:rgba(var(--accent-rgb), .14);opacity:1;outline:none;box-shadow:0 8px 18px #4b3b2a1f}}.node-unclip:disabled{cursor:default;opacity:.25}.node-done.active{color:var(--done);opacity:1}.node-done:focus-visible{border-color:rgba(var(--done-rgb), .22);color:var(--done);background:rgba(var(--done-rgb), .14);opacity:1;outline:none;box-shadow:0 8px 18px #4b3b2a1f}@media (hover:hover){.node-done:hover{border-color:rgba(var(--done-rgb), .22);color:var(--done);background:rgba(var(--done-rgb), .14);opacity:1;outline:none;box-shadow:0 8px 18px #4b3b2a1f}}.node-topline{color:var(--muted);letter-spacing:.05em;text-transform:uppercase;justify-content:space-between;gap:.7rem;padding-right:8.55rem;font-size:.76rem;font-weight:800;display:flex}.node-topline-badges{align-items:center;gap:.35rem;min-width:0;display:inline-flex}.chapter-done-label{color:#fff;background:linear-gradient(135deg,#ef4444,#b91c1c);border:1px solid #ffffff6b;border-radius:999px;margin-left:auto;padding:.12rem .46rem;box-shadow:0 0 0 2px #ef444433}.chapter-node-location{box-sizing:border-box;width:fit-content;max-width:100%;color:var(--location-contrast,var(--accent-contrast));background:linear-gradient(90deg, var(--location-color,var(--accent)), var(--location-color-strong,var(--accent-strong)));letter-spacing:.01em;text-shadow:0 1px 2px #00000038;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:999px;margin:-.08rem 0 0;padding:.22rem .54rem;font-size:.68rem;font-weight:850;line-height:1.15;display:block;overflow:hidden;box-shadow:inset 0 1px #fff3}.chapter-node-main-topic{border:1px solid rgba(var(--accent-rgb), .18);border-left:3px solid rgba(var(--accent-rgb), .48);background:rgba(var(--accent-rgb), .3);border-radius:7px;gap:.04rem;margin:0;padding:.26rem .58rem;display:grid;overflow:hidden}.chapter-node-main-topic.empty{visibility:hidden}.chapter-node-main-topic span{color:var(--muted);letter-spacing:.01em;font-size:.58rem;font-weight:500;line-height:1}.chapter-node-main-topic strong{min-width:0;color:var(--text-strong);-webkit-line-clamp:2;-webkit-box-orient:vertical;padding-bottom:.14em;font-size:.78rem;font-weight:500;line-height:1.24;display:-webkit-box;overflow:hidden}.chapter-node-metadata{align-items:stretch;gap:.32rem;min-width:0;display:grid}.chapter-node-timeline,.chapter-node-storyline{border:1px solid rgba(var(--accent-rgb), .14);background:linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent), rgba(var(--accent-rgb), .035);border-radius:7px;flex:1 1 0;gap:.04rem;width:100%;min-width:0;margin:0;padding:.26rem .58rem;display:grid;overflow:hidden}.chapter-node-storyline{border:1px solid rgba(var(--storyline-color-rgb,var(--accent-rgb)), .18);border-left:3px solid rgba(var(--storyline-color-rgb,var(--accent-rgb)), .48);background:linear-gradient(135deg, rgba(var(--storyline-color-rgb,var(--accent-rgb)), .16), transparent), rgba(var(--storyline-color-rgb,var(--accent-rgb)), .07);border-radius:7px;gap:.04rem;padding:.26rem .58rem}.chapter-node-timeline.empty,.chapter-node-storyline.empty{visibility:hidden}.chapter-node-timeline span,.chapter-node-storyline span{color:var(--muted);letter-spacing:.01em;font-size:.58rem;font-weight:500;line-height:1}.chapter-node-timeline strong,.chapter-node-storyline strong{min-width:0;color:var(--text-strong);text-overflow:ellipsis;white-space:nowrap;padding-bottom:.14em;font-size:.78rem;font-weight:500;line-height:1.24;overflow:hidden}.chapter-node-storyline strong{-webkit-line-clamp:2;white-space:normal;-webkit-box-orient:vertical;display:-webkit-box}.chapter-node h3{color:var(--text-strong);letter-spacing:-.01em;overflow-wrap:anywhere;margin:0;font-size:1.14rem;font-weight:950;line-height:1.14}.chapter-node-stats{border-top:1px solid rgba(var(--accent-rgb), .12);color:var(--muted);letter-spacing:.04em;text-transform:uppercase;align-items:center;gap:.35rem;margin-top:auto;padding-top:.3rem;font-size:.72rem;font-weight:850;display:flex}.image-node{--image-node-caption-height:34px;z-index:3;border:1px solid rgba(var(--accent-rgb), .24);background:var(--surface);cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;will-change:transform;border-radius:10px;width:132px;height:118px;margin:0;position:absolute;top:0;left:0;overflow:hidden;box-shadow:0 14px 34px #4b3b2a29}.image-node:active{cursor:grabbing}.image-node.locked{cursor:default;opacity:.92}.image-node.selected{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent), 0 0 0 8px var(--accent-soft), 0 14px 34px #4b3b2a29}.image-node img{width:100%;height:calc(100% - var(--image-node-caption-height));object-fit:cover;object-position:center;cursor:inherit;pointer-events:auto;display:block}.image-node.draft img{filter:grayscale();opacity:.92}.image-node .image-draft-badge{z-index:2;border:1px solid var(--border);background:var(--surface);color:var(--text-strong);letter-spacing:.02em;text-transform:lowercase;pointer-events:none;border-radius:999px;padding:.12rem .5rem;font-size:.62rem;font-weight:700;position:absolute;top:.35rem;left:.35rem}.image-node figcaption{height:var(--image-node-caption-height);box-sizing:border-box;color:var(--text);text-align:center;text-overflow:ellipsis;white-space:nowrap;padding:.48rem 2.3rem;font-size:.72rem;font-weight:750;overflow:hidden}.image-node-remove{z-index:2;color:#fff;width:1.6rem;min-width:0;height:1.6rem;box-shadow:none;opacity:0;background:#1f1a1494;border:1px solid #1f1a141f;border-radius:10px;place-items:center;padding:0;line-height:0;display:grid;position:absolute;top:.35rem;right:.35rem}.image-node-remove svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;width:.78rem;height:.78rem}.image-node-remove:focus-visible{opacity:1}@media (hover:hover){.image-node:hover .image-node-remove{opacity:1}}.image-node-remove:focus-visible{color:#fff;background:var(--danger);border-color:#ef444466;outline:none}@media (hover:hover){.image-node-remove:hover{color:#fff;background:var(--danger);border-color:#ef444466;outline:none}}.image-node-resize{z-index:2;width:1.6rem;min-width:0;height:1.6rem;color:var(--accent-contrast);background:var(--accent);box-shadow:0 8px 18px rgba(var(--accent-rgb), .24);cursor:nwse-resize;opacity:0;touch-action:none;border:1px solid #1f1a141f;border-radius:10px;place-items:center;padding:0;display:grid;position:absolute;bottom:.35rem;right:.35rem}.image-node-resize svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:.82rem;height:.82rem}.image-node.selected .image-node-resize,.image-node-resize:focus-visible{opacity:1}@media (hover:hover){.image-node:hover .image-node-resize{opacity:1}}.image-node-resize:focus-visible{background:var(--accent-strong);outline:none}@media (hover:hover){.image-node-resize:hover{background:var(--accent-strong);outline:none}}.board-empty,.empty-inspector{border:1px dashed var(--border-strong);max-width:24rem;color:var(--muted);background:var(--surface);text-align:center;border-radius:10px;margin:7rem auto;padding:2rem}.board-empty h2,.empty-inspector h2{color:var(--text-strong);margin:0 0 .5rem}.board-empty p,.empty-inspector p{margin:0}.inspector{background:var(--sidebar);padding:1.25rem;overflow:auto}.field{gap:.45rem;min-width:0;margin-bottom:1rem;display:grid}.field span,.field>label{color:var(--text);letter-spacing:0;text-transform:none;font-size:.8rem;font-weight:700}.field-heading{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.field-heading-actions{justify-content:flex-end;align-items:center;gap:.4rem;display:inline-flex}.note-checkbox-add-button{border-color:var(--accent);min-width:0;min-height:1.9rem;color:var(--accent-contrast);background:var(--accent);letter-spacing:0;text-transform:none;border-radius:10px;padding:.25rem .65rem;font-size:.72rem;font-weight:850}.field-hint{color:var(--muted);font-size:.8rem;line-height:1.45}.location-picker-button{width:100%;min-width:0;max-width:100%;min-height:2.55rem;color:var(--accent);text-align:left;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.7rem;padding-inline:.82rem;font-weight:900;display:grid;overflow:hidden}.location-picker-button.empty{color:var(--muted)}.location-picker-button.location-coded{border-color:rgba(var(--location-color-rgb), .28);color:var(--location-color);background:linear-gradient(135deg, rgba(var(--location-color-rgb), .12), transparent), var(--surface)}.location-picker-button span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.location-picker-button>span{align-items:center;gap:.55rem;min-width:0;display:flex;overflow:hidden}.location-picker-button>span>span:last-child{min-width:0;color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:0;text-overflow:ellipsis;text-transform:none;white-space:nowrap;overflow:hidden}.location-picker-button strong{text-align:right;flex:none;min-width:1.35rem}.location-picker-swatch,.location-option-swatch{background:var(--location-color);width:.9rem;height:.9rem;box-shadow:0 0 0 4px rgba(var(--location-color-rgb), .12);border-radius:10px;flex:none}.storyline-picker-button{--storyline-color:var(--muted);--storyline-color-rgb:var(--accent-rgb);color:var(--storyline-color)}.storyline-picker-button:not(.empty){border-color:rgba(var(--storyline-color-rgb), .28);background:var(--storyline-picker-background,linear-gradient(135deg, rgba(var(--storyline-color-rgb), .12), transparent), var(--surface))}.storyline-picker-button>span{align-items:center;gap:.55rem;display:flex}.storyline-picker-button>span>span:last-child{min-width:0;color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:0;text-overflow:ellipsis;text-transform:none;white-space:nowrap;overflow:hidden}.storyline-picker-swatch{background:var(--storyline-swatch-background,var(--storyline-color));width:.9rem;height:.9rem;box-shadow:0 0 0 4px rgba(var(--storyline-color-rgb), .12);border-radius:10px;flex:none}.storyline-picker-swatch.empty{border:2px dashed var(--muted);box-shadow:none;background:0 0}.image-size-mode-field{gap:.55rem}.image-size-mode-options{grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.55rem;display:grid}.image-size-mode-options button{border:1px solid var(--border);background:linear-gradient(135deg, rgba(var(--accent-rgb), .07), transparent), var(--surface);min-width:0;color:var(--text);text-align:left;box-shadow:var(--soft-shadow);cursor:pointer;border-radius:12px;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:.7rem .75rem;transition:border-color .16s,box-shadow .16s,transform .16s;display:flex}.image-size-mode-options button:focus-visible{border-color:rgba(var(--accent-rgb), .55);box-shadow:0 0 0 3px rgba(var(--accent-rgb), .14), var(--soft-shadow);transform:translateY(-1px)}@media (hover:hover){.image-size-mode-options button:hover:not(:disabled){border-color:rgba(var(--accent-rgb), .55);box-shadow:0 0 0 3px rgba(var(--accent-rgb), .14), var(--soft-shadow);transform:translateY(-1px)}}.image-size-mode-options button.active{border-color:rgba(var(--accent-rgb), .78);background:linear-gradient(135deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .05)), var(--surface)}.image-size-mode-options button:disabled{cursor:default;opacity:.62}.field .image-size-mode-options button span{color:var(--text-strong);letter-spacing:0;text-transform:none;margin-bottom:.25rem;font-size:.82rem;font-weight:800;display:block}.image-size-mode-options button small{color:var(--muted);font-size:.72rem;font-weight:500;line-height:1.35;display:block}.image-draft-field{margin-bottom:1rem}.image-draft-toggle{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text-strong);text-align:left;cursor:pointer;border-radius:10px;align-items:center;gap:.6rem;padding:.55rem .7rem;display:flex}.image-draft-toggle:disabled{opacity:.55;cursor:not-allowed}.image-draft-toggle small{color:var(--muted);flex:1;font-size:.72rem;font-weight:500;line-height:1.25}.image-draft-toggle-track{background:var(--border);border-radius:999px;flex:none;width:2.1rem;height:1.1rem;transition:background .15s}.image-draft-toggle-thumb{background:var(--surface);width:.86rem;height:.86rem;box-shadow:var(--soft-shadow);border-radius:50%;margin:.12rem;transition:transform .15s;display:block}.image-draft-toggle.active .image-draft-toggle-track{background:var(--accent)}.image-draft-toggle.active .image-draft-toggle-thumb{background:var(--accent-contrast);transform:translate(1rem)}.image-notes-input{resize:vertical;border:1px solid var(--border);background:var(--surface);width:100%;min-height:3.5rem;color:var(--text-strong);font:inherit;border-radius:10px;padding:.5rem .65rem;line-height:1.35}.image-save-button{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text-strong);cursor:pointer;border-radius:10px;padding:.55rem .7rem;font-weight:650}.image-save-button:hover{border-color:var(--accent);color:var(--accent-strong)}.image-inspector-preview{border:1px solid var(--border);background:var(--surface);box-shadow:var(--soft-shadow);border-radius:10px;margin:0 0 1rem;overflow:hidden}.image-inspector-preview img{object-fit:contain;width:100%;max-height:22rem;display:block}.matter-manager{border:1px solid var(--border);background:linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent), var(--surface);box-shadow:var(--soft-shadow);border-radius:10px;gap:.85rem;margin-bottom:1rem;padding:.9rem;display:grid}.matter-manager-heading h2,.matter-placement-heading h3,.matter-card-fields h3,.matter-card-images-heading h3{color:var(--text-strong);margin:0}.matter-manager-heading h2{font-size:1rem}.matter-placement{gap:.5rem;display:grid}.matter-placement-heading,.matter-card-images-heading{justify-content:space-between;align-items:center;gap:.65rem;display:flex}.matter-placement-heading h3,.matter-card-fields h3,.matter-card-images-heading h3{font-size:.86rem}.matter-card-list,.matter-card-fields,.matter-card-images,.matter-image-list{gap:.55rem;display:grid}.matter-card-list-row{grid-template-columns:minmax(0,1fr) 1.85rem;align-items:stretch;gap:0;display:grid}.matter-card-list-item{border-color:rgba(var(--accent-rgb), .16);text-align:left;border-top-right-radius:0;border-bottom-right-radius:0;justify-content:stretch;gap:.12rem;width:100%;padding:.6rem .7rem;display:grid}.matter-card-list-item span,.matter-card-list-item small{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.matter-card-list-item small{color:var(--muted);font-size:.7rem}.matter-card-list-item.active{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}.matter-card-list-item.active small{color:#ffffffc7}.matter-card-list-controls{grid-template-rows:1fr 1fr;margin-left:-1px;display:grid}.matter-card-list-controls button{border-color:rgba(var(--accent-rgb), .16);width:1.85rem;min-width:0;color:var(--muted);background:rgba(var(--accent-rgb), .04);border-radius:0;justify-content:center;padding:0;font-size:.76rem}.matter-card-list-controls button:first-child{border-bottom:0;border-top-right-radius:10px}.matter-card-list-controls button:last-child{border-bottom-right-radius:10px}@media (hover:hover){.matter-card-list-controls button:not(:disabled):hover{border-color:rgba(var(--accent-rgb), .28);color:var(--text-strong);background:rgba(var(--accent-rgb), .1)}}.matter-card-list-controls button:disabled{color:var(--muted);cursor:default;opacity:.36}.matter-card-list-item.active+.matter-card-list-controls button{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.matter-card-list-item.active+.matter-card-list-controls button:not(:disabled):hover{color:var(--accent-contrast);background:var(--accent)}}.matter-empty{color:var(--muted);margin:0;font-size:.82rem}.matter-card-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.35rem;display:flex}.matter-card-editor{gap:.85rem;display:grid}.matter-card-editor .matter-item-header strong,.matter-card-editor button,.matter-card-editor .button,.matter-card-editor .app-dropdown-trigger{font-weight:500}.matter-card-editor .field span,.matter-card-editor .field>label{letter-spacing:0;text-transform:none;font-weight:700}.matter-card-editor .matter-card-content-textarea{font-weight:400}.matter-card-order-controls{grid-template-columns:2rem minmax(0,1fr) 2rem;align-items:center;gap:.35rem;display:grid}.matter-card-order-controls button,.matter-item-actions button{justify-content:center}.matter-card-order-controls span{color:var(--muted);text-align:center;font-size:.82rem;font-weight:800}.matter-card-items-heading{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:.65rem;display:flex}.matter-card-items-heading h3{min-width:0;color:var(--text-strong);white-space:nowrap;flex:auto;margin:0;font-size:.92rem}.matter-card-items-heading>div{flex-wrap:nowrap;flex:none;justify-content:flex-end;align-items:center;gap:.35rem;display:flex}.matter-card-add-actions{white-space:nowrap}.matter-item-list{gap:.75rem;display:grid}.matter-item-card{border:1px solid rgba(var(--accent-rgb), .22);background:linear-gradient(135deg, rgba(var(--accent-rgb), .06), transparent), var(--surface);border-radius:12px;gap:.7rem;padding:.75rem;display:grid}:root[data-theme=dark] .matter-item-card{border-color:rgba(var(--accent-rgb), .34);background:#26241ffa;box-shadow:inset 0 1px #fff7e80f,0 10px 26px #0000002e}:root[data-theme=dark] .matter-item-card:focus-within{border-color:rgba(var(--accent-rgb), .54);box-shadow:inset 0 1px 0 #fff7e814, 0 0 0 2px rgba(var(--accent-rgb), .12), 0 14px 32px #0000003d}.matter-item-header,.matter-item-actions{align-items:center;gap:.35rem;display:flex}.matter-item-header{justify-content:space-between}.matter-item-header strong{color:var(--text-strong);font-size:.86rem}.matter-item-actions{flex-wrap:wrap;justify-content:flex-end}.matter-item-actions button{min-width:0;padding-inline:.62rem}.matter-item-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.matter-item-controls .field{grid-template-rows:minmax(2.25em,auto) auto;min-width:0;margin-bottom:0}.matter-item-controls .field>span{align-items:flex-end;min-height:2.25em;line-height:1.15;display:flex}.matter-image-item-editor{gap:.65rem;display:grid}.matter-card-tabs{border:1px solid var(--border);background:rgba(var(--accent-rgb), .05);border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;padding:.25rem;display:grid}.matter-card-tabs button{color:var(--muted);background:0 0;border:0;border-radius:10px;justify-content:center}.matter-card-tabs button.active{color:var(--accent-contrast);background:var(--accent)}.matter-card-editor .app-dropdown,.matter-image-card .app-dropdown{box-sizing:border-box;width:100%}.matter-card-preview{box-sizing:border-box;border:1px solid rgba(var(--accent-rgb), .14);background:linear-gradient(90deg, rgba(var(--accent-rgb), .05) 1px, transparent 1px), linear-gradient(0deg, rgba(var(--accent-rgb), .05) 1px, transparent 1px), var(--bg);background-size:1.5rem 1.5rem;border-radius:12px;justify-content:center;align-items:flex-start;width:100%;min-width:0;padding:.85rem;display:flex}.matter-preview-page{--matter-preview-page-min-height:clamp(30rem, 68vh, 38rem);--matter-preview-page-padding:1.15rem;box-sizing:border-box;width:min(100%,24rem);min-height:var(--matter-preview-page-min-height);grid-template-rows:repeat(3, minmax(calc((var(--matter-preview-page-min-height) - var(--matter-preview-page-padding) * 2) / 3), auto));border:1px solid rgba(var(--accent-rgb), .18);padding:var(--matter-preview-page-padding);color:var(--text-strong);background:var(--surface);border-radius:10px;display:grid;overflow:visible;box-shadow:0 18px 42px #4b3b2a24}.matter-preview-page-slot{box-sizing:border-box;flex-direction:column;justify-content:center;gap:.55rem;min-height:min-content;display:flex;overflow:visible}.matter-preview-page-slot.top{justify-content:flex-start}.matter-preview-page-slot.center{justify-content:center}.matter-preview-page-slot.bottom{justify-content:flex-end}.matter-preview-text{min-width:0;color:var(--text-strong);overflow-wrap:anywhere;line-height:1.55}.matter-preview-text.align-center{text-align:center}.matter-preview-text.align-right{text-align:right}.matter-preview-text.align-both{text-align:justify}.matter-preview-text.size-large{font-size:1.12rem}.matter-preview-text.size-title{font-size:1.55rem;font-weight:800;line-height:1.2}.matter-card-preview .matter-preview-text .markdown-preview{min-height:0;color:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0}.matter-preview-text .markdown-preview>:first-child{margin-top:0}.matter-preview-text .markdown-preview>:last-child{margin-bottom:0}.matter-preview-image{align-self:stretch;place-items:center;gap:.45rem;width:100%;height:auto;margin:0;display:grid}.matter-preview-image img{object-fit:contain;background:#fffaf0;border-radius:10px;width:auto;max-width:100%;height:auto;max-height:11rem}.matter-preview-image.size-small img{max-width:42%}.matter-preview-image.size-medium img{max-width:70%}.matter-preview-image.size-large img{max-width:100%}.matter-image-button{flex:none;font-size:.76rem}.matter-image-card{border:1px solid var(--border);background:rgba(var(--accent-rgb), .04);border-radius:10px;gap:.55rem;margin:0;padding:.65rem 0;display:grid}.matter-image-card img{object-fit:contain;background:#fffaf0;border-radius:10px;width:100%;height:auto;max-height:12rem}.matter-card-content-tab{gap:.85rem;display:grid}.matter-card-content-textarea{resize:none;min-height:8rem;overflow:hidden auto}.matter-card-content-preview{border:1px solid var(--border);background:linear-gradient(135deg, rgba(var(--accent-rgb), .06), transparent), var(--surface);border-radius:10px;gap:.55rem;padding:.85rem;display:grid}.matter-card-content-preview h3,.matter-card-content-preview p{margin:0}.matter-card-content-preview h3{color:var(--text-strong);font-size:.88rem}.matter-card-content-preview p{color:var(--muted)}.matter-card-content-preview-body{color:var(--text-strong);line-height:1.6}.matter-card-content-preview-body p{color:inherit;margin:0 0 .75rem}.matter-card-content-heading{justify-content:space-between;align-items:center;gap:.65rem;display:flex}.matter-card-content-heading button{min-height:2rem;padding:.45rem .65rem;font-size:.76rem}.matter-card-content-preview-image{place-items:center;margin:.75rem 0;display:grid}.matter-card-content-preview-image img{object-fit:contain;border-radius:8px;max-width:min(100%,18rem);max-height:12rem;display:block}input,textarea,select{box-sizing:border-box;border:1px solid var(--border);width:100%;color:var(--text-strong);background:var(--surface);font:inherit;border-radius:10px;padding:.85rem .95rem}textarea{resize:vertical;min-height:16rem;font-family:var(--mono);font-size:.88rem;line-height:1.55}input:disabled,textarea:disabled,select:disabled{color:var(--muted);background:rgba(var(--accent-rgb), .06);cursor:not-allowed}input:focus,textarea:focus,select:focus{outline:3px solid var(--accent-soft);border-color:var(--accent)}input[type=color]{cursor:pointer;background:0 0;padding:0;overflow:hidden}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border-radius:inherit;border:0}input[type=color]::-moz-color-swatch{border-radius:inherit;border:0}.chapter-details-edit-toggle{border-color:rgba(var(--accent-rgb), .18);width:2rem;min-width:0;height:2rem;color:var(--accent);background:var(--surface);box-shadow:none;border-radius:10px;justify-content:center;align-items:center;padding:0;display:inline-flex}.chapter-details-edit-toggle.active{color:var(--accent-contrast);background:var(--accent)}.chapter-details-edit-toggle:focus-visible,.note-checkbox-add-button:focus-visible{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent-strong);outline:none}@media (hover:hover){.chapter-details-edit-toggle:hover,.note-checkbox-add-button:hover{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent-strong);outline:none}}.chapter-details-edit-toggle svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:1rem;height:1rem}.storyline-add-form{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;display:grid}.storyline-add-form input[type=color],.location-add-form input[type=color]{border-color:var(--border);cursor:pointer;background:0 0;border-radius:10px;width:2.8rem;height:2.35rem;padding:0;overflow:hidden}.storyline-add-form input[type=color]::-webkit-color-swatch-wrapper{padding:0}.location-add-form input[type=color]::-webkit-color-swatch-wrapper{padding:0}.storyline-add-form input[type=color]::-webkit-color-swatch{border:0;border-radius:10px}.location-add-form input[type=color]::-webkit-color-swatch{border:0;border-radius:10px}.storyline-add-form input[type=color]::-moz-color-swatch{border:0;border-radius:10px}.location-add-form input[type=color]::-moz-color-swatch{border:0;border-radius:10px}.storyline-add-button{min-width:2.45rem;min-height:2.35rem;color:var(--accent);font-size:1.05rem;font-weight:900}.chapter-details-panel{border:1px solid var(--border);background:var(--surface);box-shadow:var(--soft-shadow);border-radius:10px;margin-bottom:1rem;overflow:hidden}.chapter-details-panel.editing{padding:.85rem;overflow:visible}.chapter-card-tabs{border:1px solid var(--border);background:rgba(var(--accent-rgb), .05);border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;margin:.85rem .85rem 0;padding:.25rem;display:grid}.chapter-details-panel.editing .chapter-card-tabs{margin:0 0 .85rem}.chapter-card-tab{min-width:0;color:var(--muted);background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;display:flex;position:relative}.chapter-card-tab.active{color:var(--accent-contrast);background:var(--accent)}.chapter-card-tab-button{width:100%;min-width:0;color:inherit;box-shadow:none;background:0 0;border:0;border-radius:10px;justify-content:center}.chapter-card-tab-button:focus-visible{color:var(--accent);background:rgba(var(--accent-rgb), .08);outline:none}@media (hover:hover){.chapter-card-tab-button:hover{color:var(--accent);background:rgba(var(--accent-rgb), .08);outline:none}}.chapter-card-tab.active .chapter-card-tab-button:focus-visible{color:var(--accent-contrast);background:#ffffff24}@media (hover:hover){.chapter-card-tab.active .chapter-card-tab-button:hover{color:var(--accent-contrast);background:#ffffff24}}.chapter-tab-edit-toggle{color:currentColor;opacity:.72;background:0 0;border:0;border-radius:8px;width:1.45rem;height:1.45rem;transition:background-color .16s,color .16s,opacity .16s;position:absolute;right:.28rem}.chapter-tab-edit-toggle svg{stroke-width:2.05px;width:.82rem;height:.82rem}.chapter-card-tab.active .chapter-tab-edit-toggle{color:var(--accent-contrast);opacity:.9;background:0 0}.chapter-card-tab.active .chapter-tab-edit-toggle.active{background:#ffffff29}.chapter-tab-edit-toggle:focus-visible,.chapter-card-tab.active .chapter-tab-edit-toggle:focus-visible{color:var(--accent-contrast);background:var(--accent-strong);opacity:1}@media (hover:hover){.chapter-tab-edit-toggle:hover,.chapter-card-tab.active .chapter-tab-edit-toggle:hover{color:var(--accent-contrast);background:var(--accent-strong);opacity:1}}.chapter-tab-edit-toggle.first-run-target-active,.chapter-card-tab.active .chapter-tab-edit-toggle.first-run-target-active{color:var(--accent-contrast);background:var(--link);opacity:1;box-shadow:0 0 0 2px var(--surface), 0 0 0 5px rgba(var(--link-rgb), .42), 0 0 22px rgba(var(--link-rgb), .54)}.bulk-chapter-panel{gap:.85rem;display:grid}.bulk-chapter-panel .field,.chapter-details-panel.editing .field:last-child{margin-bottom:0}.chapter-details-editor-actions{margin-top:.75rem;display:flex}.chapter-details-validate-button{width:100%}.chapter-storyline-readout,.chapter-location-readout,.chapter-main-topic-readout,.chapter-timeline-readout{gap:.2rem;margin:.95rem 0 0;padding:0 .95rem;display:grid}.chapter-storyline-readout{border-left:.32rem solid var(--storyline-color);background:var(--storyline-readout-background,transparent);padding-left:.63rem}.chapter-main-topic-readout{border-left:.32rem solid var(--accent);background:linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent);border-radius:0 8px 8px 0;padding-left:.63rem}.chapter-storyline-readout span,.chapter-location-readout span,.chapter-main-topic-readout span,.chapter-timeline-readout span{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:.72rem;font-weight:850}.chapter-storyline-readout strong{color:var(--storyline-color);font-size:.92rem}.chapter-location-readout strong{color:var(--location-color,var(--accent));font-size:.92rem}.chapter-main-topic-readout strong{color:var(--text-strong);font-size:.92rem}.chapter-timeline-readout strong{color:var(--text);font-size:.92rem}.chapter-location-readout.location-coded{border-left:.32rem solid var(--location-color);background:linear-gradient(135deg, rgba(var(--location-color-rgb), .11), transparent), transparent;border-radius:0 8px 8px 0;padding-left:.63rem}.location-dialog-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.location-dialog{border:1px solid var(--border);background:var(--surface);border-radius:10px;gap:1rem;width:min(30rem,100%);max-height:min(34rem,100svh - 2rem);padding:1rem;display:grid;overflow:auto;box-shadow:0 24px 70px #2e23193d}.location-dialog-header{justify-content:space-between;align-items:center;gap:.8rem;display:flex}.location-dialog.field-picker-dialog{flex-direction:column;display:flex;overflow:hidden}.location-dialog.field-picker-dialog .location-dialog-header{flex:none}.location-dialog.field-picker-dialog .location-option-list{flex:auto;min-height:0;padding-right:.15rem;overflow-y:auto}.location-dialog.field-picker-dialog .location-add-form,.location-dialog.field-picker-dialog .storyline-add-form{flex:none}.location-dialog-header h2{color:var(--text-strong);margin:0;font-size:1.05rem}.location-dialog-header p{color:var(--muted);margin:.24rem 0 0;font-size:.84rem}.location-dialog-close{flex:none}.location-dialog-actions{flex:none;align-items:center;gap:.5rem;display:inline-flex}.book-timeline-dialog-backdrop{z-index:var(--z-modal);background:var(--scrim-overlay);-webkit-backdrop-filter:var(--scrim-blur);backdrop-filter:var(--scrim-blur);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.book-timeline-dialog{border:1px solid rgba(var(--accent-rgb), .26);width:min(94rem,100vw - 2rem);height:min(54rem,100dvh - 2rem);min-height:0;color:var(--text);background:linear-gradient(135deg, rgba(var(--accent-rgb), .08), transparent 42%), var(--surface);border-radius:24px;grid-template-rows:auto minmax(0,1fr);display:grid;overflow:hidden;box-shadow:0 28px 90px #261c1352}.book-timeline-dialog-header{border-bottom:1px solid rgba(var(--accent-rgb), .14);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1.2rem .85rem;display:flex}.book-timeline-header-actions{flex:none;align-items:center;gap:.4rem;display:inline-flex;position:relative}.book-timeline-file-menu-wrap{position:relative}.book-timeline-file-menu-trigger{min-width:0;color:var(--muted);letter-spacing:0;text-transform:none;background:0 0;border-radius:10px;align-items:center;gap:.35rem;padding:.45rem .65rem;font-size:.78rem;font-weight:650;display:inline-flex}.book-timeline-file-menu-trigger svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:.95rem;height:.95rem}.book-timeline-file-menu-trigger:focus-visible,.book-timeline-file-menu-trigger.active,.book-timeline-file-menu-trigger[aria-expanded=true]{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.book-timeline-file-menu-trigger:hover{color:var(--accent-contrast);background:var(--accent)}}.book-timeline-file-menu{z-index:var(--z-modal-popover);border:1px solid var(--border);background:var(--dropdown-surface);border-radius:12px;gap:.15rem;min-width:12rem;padding:.25rem;display:grid;position:absolute;top:calc(100% + .38rem);right:0;box-shadow:0 18px 42px #4b3b2a2e}.book-timeline-file-menu button{width:100%;min-height:2.15rem;color:var(--text-strong);background:var(--dropdown-surface);box-shadow:none;text-align:left;white-space:nowrap;cursor:pointer;border:0;border-radius:10px;justify-content:flex-start;align-items:center;padding:.42rem .78rem;font-size:.82rem;font-weight:650;display:flex}.book-timeline-file-menu button:focus-visible{color:var(--text-strong);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface);outline:none}@media (hover:hover){.book-timeline-file-menu button:hover{color:var(--text-strong);background:linear-gradient(0deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .12)), var(--dropdown-surface);outline:none}}.book-timeline-file-input{display:none}.book-timeline-dialog-header>div>span,.book-timeline-preview-heading span,.book-timeline-event-editor label>span{color:var(--accent);letter-spacing:0;text-transform:none;font-size:.74rem;font-weight:700}.book-timeline-dialog-header .timeline-link-status{color:var(--text-strong);font-size:.74rem;font-weight:650}.book-timeline-dialog-header h2{color:var(--text-strong);margin:.1rem 0 0;font-size:clamp(1.25rem,2vw,1.9rem);line-height:1.05}.book-timeline-dialog-header p,.book-timeline-preview-heading p{max-width:48rem;color:var(--muted);margin:.3rem 0 0;font-size:.88rem;line-height:1.45}.book-timeline-dialog-body{grid-template-columns:minmax(18rem,23rem) minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.book-timeline-dialog-body.subtimeline-transitioning .book-timeline-editor,.book-timeline-dialog-body.subtimeline-transitioning .book-timeline-preview-frame{animation:.26s both bookTimelineSubTimelineDissolve}@keyframes bookTimelineSubTimelineDissolve{0%{opacity:0;filter:blur(8px);transform:scale(.985)}to{opacity:1;filter:blur();transform:scale(1)}}@media (prefers-reduced-motion:reduce){.book-timeline-dialog-body.subtimeline-transitioning .book-timeline-editor,.book-timeline-dialog-body.subtimeline-transitioning .book-timeline-preview-frame{animation:none}}.book-timeline-editor{border-right:1px solid rgba(var(--accent-rgb), .14);background:rgba(var(--accent-rgb), .045);grid-template-rows:minmax(0,1fr);min-width:0;min-height:0;padding:0 0 0 1rem;display:grid;overflow:hidden}.book-timeline-event-editor label{gap:.32rem;min-width:0;display:grid}.book-timeline-event-editor input:not([type=color]):not([type=checkbox]),.book-timeline-event-editor textarea{border-color:rgba(var(--accent-rgb), .18);background:var(--node);border-radius:11px;width:100%;font-size:.84rem}.book-timeline-event-editor textarea{resize:none;min-height:4.5rem}.book-timeline-editor-list{align-content:start;gap:.75rem;min-height:0;display:grid;overflow:auto}.book-timeline-event-editor{border:1px solid rgba(var(--accent-rgb), .14);border-left:4px solid var(--book-timeline-entry-color);background:#ffffff70;border-radius:16px;gap:.62rem;padding:.78rem;display:grid;box-shadow:0 12px 26px #2e231914}.book-timeline-event-editor.selected{border-color:color-mix(in srgb, var(--book-timeline-entry-color) 62%, var(--accent));box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--book-timeline-entry-color) 44%, transparent), 0 12px 26px #2e231914}:root[data-theme=dark] .book-timeline-dialog{background:linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent 42%), #141311fa}:root[data-theme=dark] .book-timeline-editor{background:radial-gradient(circle at bottom left, rgba(var(--accent-rgb), .08), transparent 16rem), #121613b8}:root[data-theme=dark] .book-timeline-file-menu{border-color:rgba(var(--accent-rgb), .26);background:#1f1d19;box-shadow:0 18px 44px #00000057}:root[data-theme=dark] .book-timeline-header-actions .book-timeline-add-event{border-color:rgba(var(--accent-rgb), .42);color:#fff;background:color-mix(in srgb, var(--accent) 44%, #11100e)}:root[data-theme=dark] .book-timeline-header-actions .book-timeline-add-event span{color:#fff;-webkit-text-fill-color:#fff}:root[data-theme=dark] .book-timeline-header-actions .book-timeline-add-event:focus-visible{color:#fff;background:color-mix(in srgb, var(--accent) 54%, #11100e)}@media (hover:hover){:root[data-theme=dark] .book-timeline-header-actions .book-timeline-add-event:hover{color:#fff;background:color-mix(in srgb, var(--accent) 54%, #11100e)}}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .book-timeline-header-actions .book-timeline-add-event{border-color:rgba(var(--accent-rgb), .42);color:#fff;background:color-mix(in srgb, var(--accent) 44%, #11100e)}:root:not([data-theme=light]) .book-timeline-header-actions .book-timeline-add-event span{color:#fff;-webkit-text-fill-color:#fff}:root:not([data-theme=light]) .book-timeline-header-actions .book-timeline-add-event:focus-visible{color:#fff;background:color-mix(in srgb, var(--accent) 54%, #11100e)}@media (hover:hover){:root:not([data-theme=light]) .book-timeline-header-actions .book-timeline-add-event:hover{color:#fff;background:color-mix(in srgb, var(--accent) 54%, #11100e)}}}:root[data-theme=dark] .book-timeline-event-editor{border-color:rgba(var(--accent-rgb), .18);background:linear-gradient(135deg, color-mix(in srgb, var(--book-timeline-entry-color) 11%, transparent), #ffffff06), #191916;box-shadow:inset 0 1px #ffffff0a,0 12px 26px #00000040}:root[data-theme=dark] .book-timeline-event-editor.selected{border-color:color-mix(in srgb, var(--book-timeline-entry-color) 62%, var(--accent));box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--book-timeline-entry-color) 54%, transparent), 0 12px 26px #00000040}.book-timeline-event-editor-header{justify-content:flex-end;align-items:center;gap:.5rem;display:flex}.book-timeline-event-actions{align-items:center;gap:.28rem;display:inline-flex}.book-timeline-subtimeline-editor-button{border:1px solid rgba(var(--accent-rgb), .2);min-height:1.9rem;color:var(--muted);background:rgba(var(--accent-rgb), .06);letter-spacing:0;text-transform:none;border-radius:999px;align-items:center;gap:.34rem;padding:.28rem .56rem;font-size:.74rem;font-weight:700;display:inline-flex}.book-timeline-subtimeline-editor-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:.9rem;height:.9rem}.book-timeline-subtimeline-editor-button:focus-visible,.book-timeline-subtimeline-editor-button[data-has-subtimeline=true]{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.book-timeline-subtimeline-editor-button:hover{color:var(--accent-contrast);background:var(--accent)}}.book-timeline-color-field{grid-template-columns:minmax(0,1fr) auto;align-items:center}.book-timeline-hidden-field{border:1px solid rgba(var(--accent-rgb), .16);width:100%;color:var(--text-strong);background:rgba(var(--accent-rgb), .06);border-radius:11px;justify-content:space-between;align-items:center;gap:.75rem;padding:.58rem .65rem;font-size:.82rem;font-weight:650;display:flex}.book-timeline-event-editor .book-timeline-hidden-field>span{min-width:0;color:inherit;font:inherit;overflow-wrap:anywhere;flex:auto}.book-timeline-hidden-field .book-setting-switch{flex:none}.book-timeline-event-editor.hidden-from-graph{opacity:.76}.book-timeline-color-field input[type=color]{background:0 0;width:2.4rem;height:2rem;padding:0;overflow:hidden}.book-timeline-empty-editor,.book-timeline-empty-preview{border:1px dashed rgba(var(--accent-rgb), .24);min-height:0;color:var(--muted);text-align:center;border-radius:16px;align-content:center;place-items:center;gap:.45rem;padding:1rem;display:grid}.book-timeline-empty-editor h3,.book-timeline-empty-preview h3{color:var(--text-strong);margin:0;font-size:.95rem}.book-timeline-empty-editor p,.book-timeline-empty-preview p{margin:0;font-size:.84rem;line-height:1.45}.book-timeline-preview-panel{grid-template-rows:auto minmax(0,1fr);gap:.9rem;min-width:0;min-height:0;padding:1rem;display:grid;overflow:hidden}.book-timeline-preview-heading{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.book-timeline-preview-heading-actions{flex:none;align-items:center;gap:.45rem;display:inline-flex}.book-timeline-back-button,.book-timeline-fit-button{min-height:2rem;color:var(--muted);letter-spacing:0;text-transform:none;background:0 0;border-radius:10px;flex:none;padding:.35rem .72rem;font-size:.78rem;font-weight:650}.book-timeline-back-button,.book-timeline-back-button:focus-visible,.book-timeline-fit-button:focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.book-timeline-back-button:hover,.book-timeline-fit-button:hover{color:var(--accent-contrast);background:var(--accent)}}.book-timeline-preview-frame{border:1px solid rgba(var(--accent-rgb), .18);background:radial-gradient(circle at 15% 18%, rgba(var(--accent-rgb), .16), transparent 22rem), linear-gradient(135deg, #ffffff80, rgba(var(--accent-rgb), .045)), var(--node);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;border-radius:22px;min-width:0;min-height:0;position:relative;overflow:hidden}.book-timeline-range-filter{z-index:8;width:min(24rem,100% - 1.5rem);color:var(--text-strong);cursor:default;-webkit-user-select:none;user-select:none;position:absolute;top:.75rem;left:.75rem}.book-timeline-range-filter-trigger{border:1px solid rgba(var(--accent-rgb), .22);min-height:2.1rem;color:var(--text-strong);background:linear-gradient(135deg, rgba(var(--accent-rgb), .13), #ffffff9e), var(--surface);letter-spacing:0;text-transform:none;border-radius:999px;align-items:center;gap:.55rem;padding:.34rem .72rem;font-size:.78rem;font-weight:800;display:inline-flex;box-shadow:0 14px 30px #241c1224}.book-timeline-range-filter-trigger:before{content:"";border-bottom:2px solid;border-right:2px solid;width:.52rem;height:.52rem;transition:transform .16s;transform:rotate(-45deg)}.book-timeline-range-filter.expanded .book-timeline-range-filter-trigger:before{transform:rotate(45deg)}.book-timeline-range-filter-trigger strong{color:var(--accent);font-size:.74rem}.book-timeline-range-filter-panel{border:1px solid rgba(var(--accent-rgb), .22);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .14), transparent 12rem), color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:16px;gap:.72rem;width:100%;margin-top:.5rem;padding:.85rem;display:none;box-shadow:0 18px 44px #241c1233}.book-timeline-range-filter.expanded .book-timeline-range-filter-panel{display:grid}.book-timeline-range-slider{align-items:center;height:1.6rem;display:grid;position:relative}.book-timeline-range-track,.book-timeline-range-track-fill{pointer-events:none;border-radius:999px;height:.34rem;position:absolute;left:0;right:0}.book-timeline-range-track{background:rgba(var(--accent-rgb), .14)}.book-timeline-range-track-fill{left:var(--timeline-range-start);right:calc(100% - var(--timeline-range-end));background:linear-gradient(90deg, var(--accent), var(--accent-strong));box-shadow:0 0 18px rgba(var(--accent-rgb), .24)}.book-timeline-range-slider input[type=range]{pointer-events:none;appearance:none;background:0 0;width:100%;height:1.6rem;margin:0;padding:0;position:absolute;inset-inline:0}.book-timeline-range-slider input[type=range]::-webkit-slider-runnable-track{background:0 0;height:.34rem}.book-timeline-range-slider input[type=range]::-webkit-slider-thumb{border:2px solid var(--surface);background:var(--accent);width:1rem;height:1rem;box-shadow:0 0 0 4px rgba(var(--accent-rgb), .18);cursor:grab;pointer-events:auto;appearance:none;border-radius:999px;margin-top:-.33rem}.book-timeline-range-slider input[type=range]::-moz-range-track{background:0 0;height:.34rem}.book-timeline-range-slider input[type=range]::-moz-range-thumb{border:2px solid var(--surface);background:var(--accent);width:1rem;height:1rem;box-shadow:0 0 0 4px rgba(var(--accent-rgb), .18);cursor:grab;pointer-events:auto;border-radius:999px}.book-timeline-range-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end;gap:.5rem;display:grid}.book-timeline-range-filter-fields label{color:var(--muted);gap:.16rem;font-size:.7rem;font-weight:800;display:grid}.book-timeline-range-filter-fields output{border:1px solid rgba(var(--accent-rgb), .2);min-height:1.9rem;color:var(--text-strong);background:var(--node);border-radius:10px;place-items:center;padding:.28rem .55rem;font-size:.82rem;font-weight:850;display:grid}.book-timeline-range-filter-fields button{min-height:1.9rem;color:var(--muted);letter-spacing:0;text-transform:none;background:0 0;border-radius:10px;padding:.3rem .6rem;font-size:.74rem;font-weight:750}.book-timeline-range-filter-fields button:not(:disabled):focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.book-timeline-range-filter-fields button:not(:disabled):hover{color:var(--accent-contrast);background:var(--accent)}}:root[data-theme=dark] .book-timeline-range-filter-trigger,:root[data-theme=dark] .book-timeline-range-filter-panel{background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .13), transparent 12rem), #141311e0;box-shadow:0 18px 44px #00000052}.book-timeline-preview-stage{transform-origin:0 0;position:absolute;top:0;left:0}.book-timeline-axis{background:linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .55), transparent), rgba(var(--accent-rgb), .2);border-radius:999px;position:absolute}.book-timeline-preview-frame[data-orientation=horizontal] .book-timeline-axis{height:4px;transform:translateY(-50%)}.book-timeline-preview-frame[data-orientation=vertical] .book-timeline-axis{background:linear-gradient(180deg, transparent, rgba(var(--accent-rgb), .55), transparent), rgba(var(--accent-rgb), .2);width:4px;transform:translate(-50%)}.book-timeline-preview-entry{box-sizing:border-box;border:1px solid color-mix(in srgb, var(--book-timeline-entry-color) 42%, transparent);color:var(--text);background:linear-gradient(135deg, color-mix(in srgb, var(--book-timeline-entry-color) 18%, transparent), #ffffffb8), var(--surface);cursor:pointer;border-radius:18px;padding:.82rem;position:absolute;overflow:visible;box-shadow:0 16px 34px #23191124}.book-timeline-entry-content{flex-direction:column;min-height:100%;display:flex;overflow:visible}.book-timeline-entry-meta{flex-wrap:wrap;align-items:center;gap:.36rem;padding-right:2.15rem;display:flex}.book-timeline-preview-entry:focus-visible,.book-timeline-preview-entry.selected{border-color:color-mix(in srgb, var(--book-timeline-entry-color) 66%, var(--accent));box-shadow:0 0 0 3px color-mix(in srgb, var(--book-timeline-entry-color) 24%, transparent), 0 16px 34px #23191124;outline:none}@media (hover:hover){.book-timeline-preview-entry:hover{border-color:color-mix(in srgb, var(--book-timeline-entry-color) 66%, var(--accent));box-shadow:0 0 0 3px color-mix(in srgb, var(--book-timeline-entry-color) 24%, transparent), 0 16px 34px #23191124;outline:none}}.book-timeline-preview-entry.has-subtimeline{border-color:color-mix(in srgb, var(--book-timeline-entry-color) 52%, var(--accent))}.book-timeline-subtimeline-button{z-index:3;border:1px solid color-mix(in srgb, var(--book-timeline-entry-color) 34%, transparent);width:1.85rem;height:1.85rem;color:color-mix(in srgb, var(--book-timeline-entry-color) 68%, var(--text-strong));background:linear-gradient(135deg, #ffffffbd, rgba(var(--accent-rgb), .08)), var(--surface);border-radius:999px;place-items:center;padding:0;display:grid;position:absolute;top:.55rem;right:.55rem;box-shadow:0 8px 18px #23191124}.book-timeline-subtimeline-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:1rem;height:1rem}.book-timeline-subtimeline-button:focus-visible,.book-timeline-subtimeline-button[data-has-subtimeline=true]{color:var(--accent-contrast);background:var(--accent);outline:none}@media (hover:hover){.book-timeline-subtimeline-button:hover{color:var(--accent-contrast);background:var(--accent);outline:none}}:root[data-theme=dark] .book-timeline-preview-frame{background:radial-gradient(circle at 15% 18%, rgba(var(--accent-rgb), .12), transparent 22rem), linear-gradient(135deg, #2dd4bf0b, #0003), #171815}:root[data-theme=dark] .book-timeline-preview-entry{background:linear-gradient(135deg, color-mix(in srgb, var(--book-timeline-entry-color) 20%, transparent), #ffffff0b), #1f1d19;box-shadow:0 16px 34px #00000047}:root[data-theme=dark] .book-timeline-subtimeline-button{background:linear-gradient(135deg, rgba(var(--accent-rgb), .12), #ffffff0a), #1f1d19;box-shadow:0 8px 18px #00000047}:root[data-theme=dark] .book-timeline-preview-entry:focus-visible,:root[data-theme=dark] .book-timeline-preview-entry.selected{box-shadow:0 0 0 3px color-mix(in srgb, var(--book-timeline-entry-color) 32%, transparent), 0 16px 34px #00000047}@media (hover:hover){:root[data-theme=dark] .book-timeline-preview-entry:hover{box-shadow:0 0 0 3px color-mix(in srgb, var(--book-timeline-entry-color) 32%, transparent), 0 16px 34px #00000047}}.book-timeline-preview-entry h3{color:var(--text-strong);overflow-wrap:anywhere;margin:.2rem 0 0;font-size:1rem;line-height:1.15}.book-timeline-preview-entry p{color:var(--text);overflow-wrap:anywhere;white-space:pre-wrap;margin:.42rem 0 0;font-size:.78rem;line-height:1.35}.book-timeline-entry-date{color:color-mix(in srgb, var(--book-timeline-entry-color) 62%, var(--text-strong));background:color-mix(in srgb, var(--book-timeline-entry-color) 15%, transparent);border-radius:999px;padding:.16rem .52rem;font-size:.72rem;font-weight:800;display:inline-flex}.book-timeline-subtimeline-indicator{border:1px solid color-mix(in srgb, var(--book-timeline-entry-color) 58%, transparent);color:var(--accent-contrast);background-color:var(--accent);background:linear-gradient(135deg, color-mix(in srgb, var(--book-timeline-entry-color) 84%, var(--accent)), var(--accent)), var(--accent);box-shadow:0 6px 14px color-mix(in srgb, var(--book-timeline-entry-color) 20%, transparent);letter-spacing:0;text-transform:none;border-radius:999px;align-items:center;gap:.22rem;padding:.14rem .45rem;font-size:.66rem;font-weight:800;display:inline-flex}.book-timeline-subtimeline-indicator svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;flex:none;width:.72rem;height:.72rem}.book-timeline-entry-marker{z-index:2;border:3px solid var(--surface);background:var(--book-timeline-entry-color);width:1.05rem;height:1.05rem;box-shadow:0 0 0 5px color-mix(in srgb, var(--book-timeline-entry-color) 18%, transparent);border-radius:999px;position:absolute;transform:translate(-50%,-50%)}.book-timeline-entry-stem{z-index:1;background:color-mix(in srgb, var(--book-timeline-entry-color) 48%, transparent);border-radius:999px;width:2px;height:74px;position:absolute;transform:translate(-50%)}.book-timeline-entry-connector{z-index:1;pointer-events:none;position:absolute;overflow:visible}.book-timeline-entry-connector path{fill:none;stroke:color-mix(in srgb, var(--book-timeline-entry-color) 54%, transparent);stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}.book-timeline-preview-entry.bottom .book-timeline-entry-stem{height:74px}.book-timeline-preview-entry.right .book-timeline-entry-stem{width:42px;height:2px;transform:translateY(-50%)}.book-timeline-preview-entry.right .book-timeline-entry-marker{transform:translate(-50%,-50%)}.book-timeline-empty-preview{position:absolute;inset:1rem}.book-timeline-empty-preview svg{fill:none;width:3rem;height:3rem;stroke:var(--accent);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px}@media (width<=760px),(height<=680px){.book-timeline-dialog-backdrop{padding:max(.55rem, env(safe-area-inset-top)) max(.55rem, env(safe-area-inset-right)) max(.55rem, env(safe-area-inset-bottom)) max(.55rem, env(safe-area-inset-left))}.book-timeline-dialog{border-radius:18px;width:min(100%,100vw - 1.1rem);height:min(100%,100dvh - 1.1rem)}.book-timeline-dialog-header{padding:.85rem .95rem .7rem}.book-timeline-dialog-header p{display:none}.book-timeline-dialog-body{grid-template-rows:minmax(13.5rem,.8fr) minmax(0,1.2fr);grid-template-columns:minmax(0,1fr)}.book-timeline-editor{border-right:0;border-bottom:1px solid rgba(var(--accent-rgb), .14);padding:0 0 0 .8rem}.book-timeline-preview-panel{padding:.8rem}.book-timeline-preview-heading{gap:.3rem;display:grid}.book-timeline-preview-heading p{margin:0}}.matter-import-button{min-height:2.2rem;padding-inline:.8rem}.book-settings-dialog{border-color:rgba(var(--accent-rgb), .26);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .18), transparent 18rem), linear-gradient(145deg, #fffaf0fa, #f4efe6f0);gap:1.1rem;width:min(43rem,100%);max-height:min(42rem,100svh - 2rem);padding:1.2rem}.book-settings-heading{align-items:center;gap:.75rem;display:flex}.book-settings-heading-icon{width:2.45rem;height:2.45rem;color:var(--accent-contrast);background:linear-gradient(135deg, var(--accent), var(--accent-strong));box-shadow:0 14px 28px rgba(var(--accent-rgb), .22);border-radius:10px;place-items:center;display:grid}.book-settings-heading-icon svg{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:1.18rem;height:1.18rem}.book-settings-dialog .location-dialog-close:not(.app-close-button){width:2.2rem;min-width:2.2rem;height:2.2rem;color:var(--muted);background:0 0;border-radius:10px;padding:0}.book-settings-dialog .location-dialog-close:not(.app-close-button):focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.book-settings-dialog .location-dialog-close:not(.app-close-button):hover{color:var(--accent-contrast);background:var(--accent)}}.book-settings-options{gap:.75rem;display:grid}.book-setting-card{border:1px solid rgba(var(--accent-rgb), .2);color:var(--text-strong);background:linear-gradient(135deg, rgba(var(--accent-rgb), .1), transparent 70%), #fffaf08f;border-radius:10px;justify-content:space-between;align-items:center;gap:1rem;padding:.95rem;display:flex;box-shadow:inset 0 1px #fff6,0 12px 30px #4b3b2a14}.book-setting-copy{min-width:0}.book-setting-copy h3{color:var(--text-strong);letter-spacing:-.02em;margin:0;font-size:.98rem}.book-setting-copy p{max-width:24rem;color:var(--muted);margin:.22rem 0 0;font-size:.8rem;font-weight:500;line-height:1.35}.chapter-title-mode-options{border:1px solid rgba(var(--accent-rgb), .18);background:#fffaf09e;border-radius:10px;flex:none;gap:.22rem;padding:.25rem;display:inline-flex}.chapter-title-mode-options button{min-height:2rem;color:var(--text-strong);box-shadow:none;white-space:nowrap;background:0 0;border:0;border-radius:10px;padding:.34rem .72rem;font-size:.8rem;font-weight:850}.chapter-title-mode-options button:focus-visible{color:var(--accent);background:rgba(var(--accent-rgb), .1)}@media (hover:hover){.chapter-title-mode-options button:hover{color:var(--accent);background:rgba(var(--accent-rgb), .1)}}.chapter-title-mode-options button.active{color:var(--accent-contrast);background:var(--accent)}.timeline-setting-card,.main-topic-setting-card,.storyline-setting-card{align-items:center}.book-setting-switch{--book-setting-switch-width:3.2rem;--book-setting-switch-height:1.7rem;--book-setting-switch-padding:.16rem;--book-setting-switch-thumb-size:1.2rem;box-sizing:border-box;width:var(--book-setting-switch-width);height:var(--book-setting-switch-height);min-width:var(--book-setting-switch-width);border:1px solid rgba(var(--accent-rgb), .22);padding:var(--book-setting-switch-padding);background:#6f5d482e;border-radius:10px;position:relative;box-shadow:inset 0 2px 8px #4b3b2a29}.book-setting-switch span{width:var(--book-setting-switch-thumb-size);height:var(--book-setting-switch-thumb-size);background:var(--surface);border-radius:8px;transition:background .16s,transform .16s;display:block;box-shadow:0 5px 12px #4b3b2a3d}.book-setting-switch.active{background:var(--accent)}.book-setting-switch.active span{background:var(--accent-contrast);transform:translateX(calc(var(--book-setting-switch-width) - var(--book-setting-switch-thumb-size) - (var(--book-setting-switch-padding) * 2) - 2px))}:root[data-theme=dark] .book-settings-dialog{border-color:rgba(var(--accent-rgb), .34);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .2), transparent 18rem), linear-gradient(145deg, #1f1d19fa, #11100ef5);box-shadow:0 28px 80px #0000007a}:root[data-theme=dark] .book-setting-card{border-color:rgba(var(--accent-rgb), .24);background:linear-gradient(135deg, rgba(var(--accent-rgb), .14), transparent 70%), #1f1d19b8;box-shadow:inset 0 1px #ffffff0d,0 12px 30px #00000038}.docx-studio-backdrop{place-items:center;padding:clamp(.5rem,1.4vw,1rem)}.docx-studio-dialog{border:1px solid rgba(var(--accent-rgb), .26);background:var(--surface);border-radius:18px;gap:0;width:min(84rem,100vw - clamp(1rem,2.8vw,2rem));max-width:calc(100vw - clamp(1rem,2.8vw,2rem));height:min(56rem,100svh - clamp(1rem,2.8vw,2rem));max-height:calc(100svh - clamp(1rem,2.8vw,2rem));padding:0;overflow:hidden;box-shadow:0 30px 90px #2e231957}@supports (height:100dvh){.docx-studio-dialog{height:min(56rem,100dvh - clamp(1rem,2.8vw,2rem));max-height:calc(100dvh - clamp(1rem,2.8vw,2rem))}}.docx-studio-shell{grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;display:grid}.docx-studio-unsupported{display:none}.docx-studio-topbar{border-bottom:1px solid var(--border);background:radial-gradient(circle at top left, rgba(var(--accent-rgb), .14), transparent 18rem), var(--surface);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem;padding:1rem;display:grid}.docx-studio-topbar h2{color:var(--text-strong);margin:0;font-size:1.24rem}.docx-studio-topbar p:last-child{color:var(--muted);margin:.24rem 0 0;font-size:.84rem}.docx-studio-topbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem;max-width:min(64rem,62vw);display:flex}.docx-studio-topbar-actions button,.docx-studio-control-grid>button{border-radius:10px;min-height:2.2rem;padding-inline:.78rem}.docx-studio-topbar-actions .docx-studio-action-primary,.docx-studio-control-grid>button.primary{color:var(--accent-contrast);background:var(--accent)}.docx-studio-layout{grid-template-columns:minmax(0,1fr) minmax(18rem,22rem);gap:0;width:100%;min-height:0;display:grid;overflow:hidden}.docx-studio-gallery,.docx-studio-preview-panel,.docx-studio-inspector{border-right:1px solid var(--border);background:#fffaf08f;min-width:0;min-height:0}.docx-studio-inspector{background:var(--surface);border-right:0}.docx-studio-panel-header{border-bottom:1px solid var(--border);padding:.95rem}.docx-studio-panel-header h3{color:var(--text-strong);margin:0;font-size:.98rem}.docx-studio-panel-header p{color:var(--muted);margin:.25rem 0 0;font-size:.78rem;line-height:1.35}.docx-studio-inspector,.docx-studio-gallery{grid-template-rows:auto minmax(0,1fr);display:grid}.docx-studio-template-list{grid-auto-rows:min-content;align-content:start;gap:.55rem;padding:.75rem;display:grid;overflow:auto}.docx-studio-template-card{position:relative}.docx-studio-template-select{border:1px solid rgba(var(--accent-rgb), .18);width:100%;min-height:5.35rem;color:var(--text-strong);background:var(--surface);text-align:left;border-radius:10px;grid-template-columns:3.6rem minmax(0,1fr);align-items:center;gap:.6rem;padding:.55rem 2.65rem .55rem .55rem;display:grid}.docx-studio-template-select:focus-visible,.docx-studio-template-select.active{border-color:var(--accent);background:rgba(var(--accent-rgb), .08)}@media (hover:hover){.docx-studio-template-select:hover{border-color:var(--accent);background:rgba(var(--accent-rgb), .08)}}.docx-studio-template-rename-button,.docx-studio-template-delete{opacity:0;background:var(--surface);pointer-events:none;border-radius:999px;place-items:center;width:1.85rem;min-height:1.85rem;padding:0;transition:opacity .14s,transform .14s;display:grid;position:absolute;top:.5rem;transform:translateY(-.15rem)}.docx-studio-template-rename-button{color:var(--accent);right:2.7rem}.docx-studio-template-delete{color:var(--danger);right:.5rem}.docx-studio-template-card:focus-within .docx-studio-template-rename-button,.docx-studio-template-card:focus-within .docx-studio-template-delete{opacity:1;pointer-events:auto;transform:translateY(0)}@media (hover:hover){.docx-studio-template-card:hover .docx-studio-template-rename-button,.docx-studio-template-card:hover .docx-studio-template-delete{opacity:1;pointer-events:auto;transform:translateY(0)}}.docx-studio-template-rename-button svg,.docx-studio-template-delete svg{fill:currentColor;width:.95rem;height:.95rem}.docx-studio-template-rename-button:focus-visible{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.docx-studio-template-rename-button:hover{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}}.docx-studio-template-delete:focus-visible{border-color:var(--danger);color:var(--accent-contrast);background:var(--danger)}@media (hover:hover){.docx-studio-template-delete:hover{border-color:var(--danger);color:var(--accent-contrast);background:var(--danger)}}.docx-studio-template-rename{border:1px solid var(--accent);background:rgba(var(--accent-rgb), .08);border-radius:10px;align-content:center;gap:.55rem;min-height:5.35rem;padding:.65rem;display:grid}.docx-studio-template-rename input{border:1px solid var(--border);width:100%;min-height:2.25rem;color:var(--text-strong);background:var(--surface);border-radius:8px;padding:.35rem .55rem}.docx-studio-template-rename-actions{justify-content:flex-end;gap:.4rem;display:flex}.docx-studio-template-rename-actions button{min-height:2rem;padding:.25rem .7rem}.docx-studio-template-rename-actions button[type=submit]{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}.docx-studio-template-rename-actions button:disabled{opacity:.45;cursor:not-allowed}.docx-studio-template-thumb{border:1px solid var(--border);background:var(--bg);border-radius:10px;align-content:center;gap:.32rem;min-height:4.2rem;padding:.42rem;display:grid}.docx-studio-template-thumb span{background:rgba(var(--accent-rgb), .24);border-radius:999px;height:.28rem}.docx-studio-template-thumb span:first-child{background:var(--accent)}.docx-studio-template-list strong,.docx-studio-template-list small{display:block}.docx-studio-template-list small{color:var(--muted);text-transform:uppercase;margin-top:.14rem;font-size:.72rem;font-weight:800}.docx-studio-preview-panel{background:linear-gradient(90deg, rgba(var(--accent-rgb), .06) 1px, transparent 1px), linear-gradient(0deg, rgba(var(--accent-rgb), .06) 1px, transparent 1px), var(--bg);background-size:2rem 2rem;grid-template-rows:minmax(0,1fr);min-width:0;display:grid;overflow:hidden}.docx-studio-preview-toolbar{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:.75rem;min-width:0;padding:.75rem 0 0;display:flex;overflow:hidden}.docx-studio-preview-tabs{width:100%;min-width:0;min-inline-size:0;max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin;flex:1 1 0;gap:.35rem;max-inline-size:100%;padding:0 1rem .45rem;display:inline-flex;overflow:auto hidden}.docx-studio-preview-tabs button{max-width:11rem;min-height:2rem;color:var(--muted);background:var(--surface);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;flex:none;padding-inline:.65rem;overflow:hidden}.docx-studio-preview-tabs button.active{color:var(--accent-contrast);background:var(--accent)}.docx-studio-preview-toolbar span{color:var(--muted);font-size:.78rem;font-weight:700}.docx-studio-preview-canvas{--docx-preview-canvas-padding:clamp(.75rem, 2cqi, 1.25rem);--docx-preview-paper-target:42rem;--docx-preview-paper-margin-padding:3.25rem;--docx-preview-paper-responsive-padding:3.25rem;--docx-preview-paper-min-height:46rem;--docx-preview-paper-font-scale:1;min-width:0;min-height:0;overflow:hidden auto;container:docx-preview/inline-size}.docx-studio-preview-stage{box-sizing:border-box;width:100%;min-width:100%;max-width:100%;min-height:100%;padding:var(--docx-preview-canvas-padding);justify-content:safe center;align-items:safe center;display:flex;overflow-x:clip}.docx-preview-paper{box-sizing:border-box;width:min(var(--docx-preview-paper-target), calc(100cqi - var(--docx-preview-canvas-padding) - var(--docx-preview-canvas-padding)));max-width:100%;min-height:var(--docx-preview-paper-min-height);border:1px solid var(--border);min-width:0;padding:min(var(--docx-preview-paper-margin-padding), var(--docx-preview-paper-responsive-padding));font-size:calc(1rem * var(--docx-preview-paper-font-scale));color:var(--text-strong);background:var(--surface);border-radius:10px;flex-direction:column;flex:0 auto;display:flex;overflow-x:hidden;box-shadow:0 24px 70px #4b3b2a2e}.docx-preview-paper>*{box-sizing:border-box;min-width:0;max-width:100%}.docx-preview-paper *{box-sizing:border-box;max-width:100%}@container docx-preview (width<=46rem){.docx-preview-paper{--docx-preview-paper-target:34rem;--docx-preview-paper-responsive-padding:2.5rem;--docx-preview-paper-min-height:42rem;--docx-preview-paper-font-scale:.92}}@container docx-preview (width<=36rem){.docx-preview-paper{--docx-preview-paper-target:100%;--docx-preview-paper-responsive-padding:2rem;--docx-preview-paper-font-scale:.86}}.docx-preview-paper.margin-tight{--docx-preview-paper-margin-padding:2.25rem}.docx-preview-paper.margin-airy{--docx-preview-paper-margin-padding:4.25rem}.docx-preview-paper.font-classic .docx-preview-body,.docx-preview-paper.font-classic .docx-preview-matter{font-family:Times New Roman,Times,serif}.docx-preview-paper.font-modern,.docx-preview-paper.font-modern .docx-preview-body,.docx-preview-paper.font-modern .docx-preview-chapter-head h3,.docx-preview-paper.font-modern .docx-preview-matter,.docx-preview-paper.font-editorial .docx-preview-chapter-head h3{font-family:Arial,Helvetica,sans-serif}.docx-preview-paper.font-editorial .docx-preview-body,.docx-preview-paper.font-editorial .docx-preview-matter{font-family:Times New Roman,Times,serif}.docx-preview-paper.selected,.docx-preview-paper [role=button].selected{background-color:rgba(var(--accent-rgb), .05);box-shadow:inset 0 0 0 2px var(--accent);outline:none}.docx-preview-page-chrome{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;justify-content:space-between;gap:1rem;font-size:.68rem;font-weight:800;display:flex}.docx-preview-page-chrome.top{border-bottom:1px solid var(--border);padding-bottom:.5rem}.docx-preview-page-chrome.bottom{border-top:1px solid var(--border);margin-top:auto;padding-top:.5rem}.docx-preview-chapter-head{text-align:center;cursor:pointer;margin-top:2.25rem}.docx-preview-paper.head-space-compact .docx-preview-chapter-head{margin-top:.75rem}.docx-preview-paper.head-space-ceremonial .docx-preview-chapter-head{margin-top:4rem}.docx-preview-chapter-head.left{text-align:left}.docx-preview-chapter-head.right{text-align:right}.docx-preview-chapter-head h3{margin:0 0 .8rem;font-family:Times New Roman,Times,serif;font-size:2rem;line-height:1.08}.docx-preview-paper.head-quiet .docx-preview-chapter-head h3{font-size:1.62rem}.docx-preview-paper.head-dramatic .docx-preview-chapter-head h3{font-size:2.35rem}.docx-preview-meta{width:72%;color:var(--muted);margin:0 auto .35rem;font-size:.86rem;font-style:italic;line-height:1.4}.docx-preview-meta span{display:block}.docx-preview-meta.after{text-indent:0;text-align:center}.docx-preview-ornament{width:70%;color:var(--accent);grid-template-columns:1fr auto 1fr;align-items:center;gap:.55rem;margin:.08rem auto 2rem;display:grid}.docx-preview-ornament:before,.docx-preview-ornament:after{content:"";background:var(--accent);height:1px}.docx-preview-ornament.bar{background:var(--accent);color:#0000;border-radius:999px;width:4.5rem;height:.28rem;display:block}.docx-preview-ornament.bar:before,.docx-preview-ornament.bar:after{display:none}.docx-preview-ornament.dots{grid-template-columns:auto auto auto;justify-content:center;gap:.45rem;font-size:0}.docx-preview-ornament.dots:before,.docx-preview-ornament.dots:after,.docx-preview-ornament.dots span{background:var(--accent);border-radius:999px;width:.38rem;height:.38rem}.docx-preview-body{text-align:justify;overflow-wrap:anywhere;word-break:break-word;cursor:pointer;width:100%;min-width:0;margin-top:1rem;font-family:Times New Roman,Times,serif;font-size:1rem;line-height:1.2}.docx-preview-paper.align-left .docx-preview-body{text-align:left}.docx-preview-paper.body-compact .docx-preview-body{font-size:.92rem}.docx-preview-paper.body-large .docx-preview-body{font-size:1.08rem}.docx-preview-paper.line-tight .docx-preview-body{line-height:1.1}.docx-preview-paper.line-airy .docx-preview-body{line-height:1.35}.docx-preview-body p{text-indent:1.2rem;overflow-wrap:anywhere;word-break:break-word;white-space:normal;max-width:100%;margin:0 0 .75rem}.docx-preview-body span{overflow-wrap:anywhere;word-break:break-word;white-space:normal}.docx-preview-paper.indent-block .docx-preview-body p{text-indent:0}.docx-preview-paper.indent-deep .docx-preview-body p{text-indent:1.75rem}.docx-preview-body p:first-child{text-indent:0}.docx-preview-body .docx-preview-meta.after{text-align:center;text-indent:0;width:100%;margin:1rem 0 .9rem}.docx-preview-body .docx-preview-meta.after span{text-indent:0}.docx-preview-image-block,.docx-preview-no-images{cursor:pointer;margin:1.25rem 0}.docx-preview-image-block{gap:.75rem;display:grid}.docx-preview-image{--docx-preview-image-max-height:13rem;width:fit-content;max-width:100%;color:var(--accent);place-items:center;gap:.25rem;margin-inline:auto;font-weight:900;display:grid;overflow:visible}.docx-preview-image img{width:auto;max-width:100%;height:auto;max-height:var(--docx-preview-image-max-height);object-fit:contain;display:block}.docx-preview-image small{color:var(--muted);font-size:.7rem}.docx-preview-image.small{--docx-preview-image-max-height:8rem;max-width:55%}.docx-preview-image.medium{--docx-preview-image-max-height:11rem;max-width:78%}.docx-preview-image.full{--docx-preview-image-max-height:none;width:100%;max-width:100%;margin-inline:0}.docx-preview-image.full img{width:100%;max-width:100%;max-height:none}.docx-preview-no-images{border:1px dashed var(--border);color:var(--muted);background:rgba(var(--accent-rgb), .06);text-align:center;border-radius:10px;padding:.85rem}.docx-preview-matter{cursor:pointer;text-align:center;overflow-wrap:anywhere;word-break:break-word;align-content:center;gap:.7rem;width:100%;min-width:0;min-height:32rem;display:grid}.docx-preview-matter.matter-align-left{text-align:left}.docx-preview-matter.matter-align-both{text-align:justify}.docx-preview-matter.matter-text-large p{font-size:1.45rem;line-height:1.28}.docx-preview-matter.matter-text-title p{font-size:2.8rem;font-weight:750;line-height:1.05}.docx-preview-matter-slot{gap:.55rem;min-height:0;display:grid}.docx-preview-matter-slot.slot-top{align-content:start}.docx-preview-matter-slot.slot-center{align-content:center}.docx-preview-matter-slot.slot-bottom{align-content:end}.docx-preview-matter-item.matter-align-left{text-align:left}.docx-preview-matter-item.matter-align-center{text-align:center}.docx-preview-matter-item.matter-align-both{text-align:justify}.docx-preview-matter-item.matter-text-large p{font-size:1.45rem;line-height:1.28}.docx-preview-matter-item.matter-text-title p{font-size:2.8rem;font-weight:750;line-height:1.05}.docx-preview-matter p{min-width:0;max-width:100%;color:var(--muted);overflow-wrap:anywhere;word-break:break-word;white-space:normal;margin:0;line-height:1.5}.docx-preview-matter p.docx-preview-blank-line{min-height:1.5em}.docx-preview-matter span{overflow-wrap:anywhere;word-break:break-word;white-space:normal}.docx-preview-matter-image{--docx-preview-matter-image-max-height:12rem;width:68%;max-height:var(--docx-preview-matter-image-max-height);aspect-ratio:var(--docx-preview-image-aspect-ratio,auto);justify-self:center;place-items:center;display:grid;overflow:visible}.docx-preview-matter-image.matter-image-compact,.docx-preview-paper.matter-image-compact .docx-preview-matter-image{--docx-preview-matter-image-max-height:8rem;width:48%}.docx-preview-matter-image.matter-image-large,.docx-preview-paper.matter-image-large .docx-preview-matter-image{--docx-preview-matter-image-max-height:18rem;width:100%}.docx-preview-matter-image img{width:auto;max-width:100%;height:auto;max-height:var(--docx-preview-matter-image-max-height);object-fit:contain;display:block}.docx-studio-inspector{grid-template-rows:auto auto auto minmax(0,1fr);overflow:hidden}.docx-studio-element-picker{border-bottom:1px solid var(--border);grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding:.75rem;display:grid}.docx-studio-element-picker button{min-height:2.15rem;color:var(--muted);background:var(--surface);text-align:left;border-radius:10px;font-size:.78rem;font-weight:850}.docx-studio-element-picker button.active,.docx-studio-element-picker button:focus-visible{border-color:var(--accent);color:var(--accent);background:rgba(var(--accent-rgb), .08)}@media (hover:hover){.docx-studio-element-picker button:hover{border-color:var(--accent);color:var(--accent);background:rgba(var(--accent-rgb), .08)}}.docx-studio-selected-element{border:1px solid var(--border);background:rgba(var(--accent-rgb), .06);border-radius:10px;margin:.75rem;padding:.75rem}.docx-studio-selected-element p{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:0 0 .2rem;font-size:.72rem;font-weight:900}.docx-studio-selected-element h3{color:var(--text-strong);margin:0;font-size:1rem}.docx-studio-properties{border:1px solid var(--border);background:var(--surface);border-radius:10px;min-height:0;margin:0 .75rem .75rem;overflow:auto}.docx-studio-property-title{padding:.85rem .85rem 0}.docx-studio-property-title h3{color:var(--text-strong);margin:0;font-size:.98rem}.docx-studio-property-title p{color:var(--muted);margin:.24rem 0 0;font-size:.78rem;line-height:1.35}.docx-studio-control-grid{gap:.75rem;padding:.85rem;display:grid}.docx-studio-field{gap:.35rem;display:grid}.docx-studio-field>label{color:var(--muted);font-size:.78rem;font-weight:900}.docx-studio-segmented{border:1px solid var(--border);background:var(--bg);border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:.18rem;padding:.18rem;display:grid}.docx-studio-segmented.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.docx-studio-segmented.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}.docx-studio-segmented.columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}.docx-studio-segmented button{min-height:1.9rem;color:var(--muted);box-shadow:none;background:0 0;border:0;border-radius:8px;padding:.24rem .4rem;font-size:.74rem;font-weight:850}.docx-studio-segmented button.active{color:var(--accent);background:var(--surface);box-shadow:0 0 0 1px rgba(var(--accent-rgb), .18)}.docx-studio-toggle-row{border:1px solid var(--border);min-height:2.25rem;color:var(--text-strong);background:var(--surface);border-radius:10px;justify-content:space-between;align-items:center;gap:.75rem;padding:.35rem .45rem .35rem .65rem;display:flex}.docx-studio-toggle-row>span:last-child{background:rgba(var(--accent-rgb), .16);border-radius:999px;width:2.3rem;height:1.25rem;position:relative}.docx-studio-toggle-row>span:last-child:after{content:"";background:var(--surface);border-radius:999px;width:.88rem;height:.88rem;transition:transform .16s;position:absolute;top:.18rem;left:.2rem;box-shadow:0 3px 8px #4b3b2a3d}.docx-studio-toggle-row.active>span:last-child{background:var(--accent)}.docx-studio-toggle-row.active>span:last-child:after{transform:translate(1rem)}:root[data-theme=dark] .docx-studio-dialog,:root[data-theme=dark] .docx-studio-topbar,:root[data-theme=dark] .docx-studio-preview-toolbar,:root[data-theme=dark] .docx-studio-gallery,:root[data-theme=dark] .docx-studio-preview-panel{background-color:var(--surface)}:root[data-theme=dark] .docx-preview-paper{box-shadow:0 24px 70px #00000073}:root[data-theme=dark] .chapter-title-mode-options{border-color:rgba(var(--accent-rgb), .28);background:#11100ec2}:root[data-theme=dark] .chapter-title-mode-options button:focus-visible{background:rgba(var(--accent-rgb), .16)}@media (hover:hover){:root[data-theme=dark] .chapter-title-mode-options button:hover{background:rgba(var(--accent-rgb), .16)}}:root[data-theme=dark] .book-setting-switch{background:#fff7e81f;box-shadow:inset 0 2px 8px #00000042}:root[data-theme=dark] .book-setting-switch.active{background:var(--accent);box-shadow:inset 0 1px 0 #ffffff1a, 0 10px 22px rgba(var(--accent-rgb), .22)}:root[data-theme=dark] .book-setting-switch span{background:var(--text-strong);box-shadow:0 8px 16px #00000047}:root[data-theme=dark] .book-setting-switch.active span{background:var(--accent-contrast)}:root[data-theme=dark] .settings-accent-field input{background:#1f1d19eb;box-shadow:0 12px 24px #0000003d}.matter-picker-dialog{flex-direction:column;width:min(76rem,100%);height:min(48rem,100svh - 2rem);max-height:calc(100svh - 2rem);display:flex;overflow:hidden}.book-matter-dialog-body{scrollbar-gutter:stable;flex:auto;grid-template-columns:minmax(15rem,.34fr) minmax(0,1fr);gap:1rem;min-height:0;display:grid;overflow:hidden auto}.book-matter-sidebar,.book-matter-editor{min-width:0;height:auto;min-height:0;max-height:none;overflow:visible}.book-matter-sidebar{align-content:start;gap:1rem;padding-right:.15rem;display:grid}.book-matter-editor{flex-direction:column;gap:1rem;padding-right:.25rem;display:flex}.book-matter-editor .chapter-details-panel{margin-bottom:0}.book-matter-editor .matter-card-editor{flex:none;min-height:0}.matter-picker-existing,.matter-picker-add{border:1px solid var(--border);background:linear-gradient(135deg, rgba(var(--accent-rgb), .06), transparent), var(--surface);border-radius:10px;gap:.65rem;padding:.8rem;display:grid}.matter-picker-existing>h3,.matter-picker-add>h3{color:var(--text-strong);margin:0;font-size:.92rem}.matter-picker-existing-groups{gap:.75rem;display:grid}.book-matter-sidebar .matter-picker-groups{grid-template-columns:1fr}.matter-picker-groups{grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.8rem;display:grid}.matter-picker-group{border:1px solid var(--border);background:linear-gradient(135deg, rgba(var(--accent-rgb), .07), transparent), var(--surface);border-radius:10px;gap:.55rem;padding:.8rem;display:grid}.matter-picker-group h3{color:var(--text-strong);margin:0;font-size:.9rem}.matter-picker-options{gap:.45rem;display:grid}.matter-picker-option{border-color:rgba(var(--accent-rgb), .18);width:100%;color:var(--text-strong);background:var(--surface);text-align:left;justify-content:flex-start;padding:.7rem .8rem}.matter-picker-option:focus-visible{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.matter-picker-option:hover{border-color:var(--accent);color:var(--accent-contrast);background:var(--accent)}}.book-matter-empty{margin:0}.location-option-list{gap:.45rem;display:grid}.location-option-row{align-items:stretch;gap:.4rem;display:flex}.location-option-row .location-option{flex:auto;width:auto}.location-option-delete{width:2.7rem;color:var(--muted);flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.location-option-delete:focus-visible{color:#ef4444;background:#ef44441f;border-color:#ef444480}@media (hover:hover){.location-option-delete:hover{color:#ef4444;background:#ef44441f;border-color:#ef444480}}.location-option-delete svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:1.2rem;height:1.2rem}.location-option{--location-color:var(--accent);--location-color-rgb:var(--accent-rgb);border-color:rgba(var(--location-color-rgb), .2);width:100%;color:var(--location-color);background:linear-gradient(135deg, rgba(var(--location-color-rgb), .08), transparent), var(--surface);text-align:left;justify-content:flex-start;gap:.6rem}.location-option.active{border-color:var(--location-color);color:var(--location-contrast);background:linear-gradient(135deg, var(--location-color), var(--location-color-strong))}.location-option.active .location-option-swatch{background:var(--location-contrast);box-shadow:0 0 0 4px #ffffff29}.storyline-option-button span:last-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.location-option.active .storyline-picker-swatch{background:var(--location-contrast);box-shadow:0 0 0 4px #ffffff29}.storyline-option-button.partial{border-color:rgba(var(--location-color-rgb), .42);color:var(--location-color);background:linear-gradient(135deg, rgba(var(--location-color-rgb), .1), transparent), var(--surface)}.location-empty{color:var(--muted);margin:0;font-size:.9rem}.location-add-form{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;display:grid}.location-add-button{min-width:2.7rem;min-height:2.35rem;color:var(--accent);font-size:1.1rem;font-weight:900}.notes-editor{resize:none;min-height:18rem;display:block}.chapter-notes-edit-card{border:1px solid rgba(var(--accent-rgb), .16);background:rgba(var(--accent-rgb), .04);border-radius:12px;grid-template-rows:minmax(0,1fr);min-height:12rem;display:grid;overflow:hidden}.chapter-notes-edit-button{border-color:rgba(var(--accent-rgb), .26);color:var(--accent);background:rgba(var(--accent-rgb), .1);letter-spacing:0;text-transform:none;white-space:nowrap;font-weight:650}.chapter-notes-edit-button:focus-visible{color:var(--accent-contrast);background:var(--accent)}@media (hover:hover){.chapter-notes-edit-button:hover{color:var(--accent-contrast);background:var(--accent)}}.chapter-notes-edit-card .markdown-preview{min-height:0;overflow:auto}.chapter-notes-dialog-backdrop{z-index:var(--z-modal)}.location-dialog.chapter-notes-dialog{grid-template-rows:auto auto minmax(0,1fr) auto;gap:0;width:min(72rem,100vw - 2rem);height:min(48rem,100svh - 2rem);max-height:calc(100svh - 2rem);padding:0;overflow:hidden}.chapter-notes-dialog .location-dialog-header{border-bottom:1px solid rgba(var(--accent-rgb), .14);align-items:flex-start;padding:1rem 1.35rem .85rem}.chapter-notes-dialog .location-dialog-header h2{letter-spacing:0;text-transform:none;font-size:1rem;font-weight:600;line-height:1.2}.chapter-notes-dialog .location-dialog-header p{color:var(--text);letter-spacing:0;text-transform:none;font-weight:400}.chapter-notes-dialog-tools{border-bottom:1px solid rgba(var(--accent-rgb), .12);background:rgba(var(--accent-rgb), .035);align-items:center;gap:.45rem;padding:.7rem 1.35rem;display:flex}.chapter-notes-dialog-body{grid-template-columns:minmax(24rem,1fr) minmax(20rem,.86fr);gap:1rem;min-height:0;padding:1.1rem 1.35rem;display:grid;overflow:hidden}.chapter-notes-dialog-field{grid-template-rows:auto minmax(0,1fr);gap:.35rem;min-width:0;min-height:0;display:grid}.chapter-notes-dialog-field>span{color:var(--text);letter-spacing:0;text-transform:none;font-size:.82rem;font-weight:700;line-height:1.25}.chapter-notes-dialog .notes-editor{min-height:0;color:var(--text-strong);background:var(--node);padding-block:.72rem;font-family:inherit;font-size:.9rem;font-weight:400;line-height:1.5}.chapter-notes-dialog-preview{border:1px solid rgba(var(--accent-rgb), .18);background:rgba(var(--accent-rgb), .04);border-radius:14px;grid-template-rows:auto minmax(0,1fr);min-height:0;display:grid;overflow:hidden}.chapter-notes-dialog-preview h3{border-bottom:1px solid var(--border);color:var(--text-strong);letter-spacing:0;text-transform:none;margin:0;padding:.65rem .8rem;font-size:.86rem;font-weight:700}.chapter-notes-dialog-preview .markdown-preview{min-height:0;max-height:none;margin:0;padding:.8rem;overflow:auto}.chapter-notes-dialog>.confirm-dialog-actions{border-top:1px solid rgba(var(--accent-rgb), .14);background:rgba(var(--accent-rgb), .04);padding:.8rem 1.35rem}.chapter-notes-dialog>.confirm-dialog-actions button{letter-spacing:0;text-transform:none;font-weight:600}.chapter-details-panel .markdown-preview{min-height:10rem;margin:0;padding:.95rem}.chapter-details-panel .markdown-preview>:first-child{margin-top:0}.chapter-content-preview{min-height:10rem;color:var(--text);padding:.95rem;font-size:.92rem;line-height:1.6}.chapter-content-preview-body{color:var(--text-strong)}.chapter-content-preview-body>:first-child{margin-top:0}.chapter-content-preview-body p,.chapter-content-preview-body ul,.chapter-content-preview-body ol,.chapter-content-preview-body blockquote{margin:.75rem 0 0}.markdown-preview{color:var(--text);margin-top:.75rem;font-size:.92rem;line-height:1.6}.markdown-preview h3,.markdown-preview h4,.markdown-preview h5{color:var(--text-strong);margin:1rem 0 .35rem}.markdown-preview p,.markdown-preview ul,.markdown-preview ol,.markdown-preview blockquote,.markdown-preview pre{margin:.75rem 0 0}.markdown-preview .markdown-blank-line{min-height:1.6em;margin:0}.markdown-preview ul,.markdown-preview ol{padding-left:1.3rem}.markdown-preview .markdown-task-item{margin-left:-1.3rem;list-style:none}.markdown-task-label{align-items:flex-start;gap:.5rem;display:inline-flex}.markdown-task-label input{appearance:none;border:1px solid rgba(var(--accent-rgb), .38);width:1rem;height:1rem;accent-color:var(--accent);background:var(--surface);cursor:pointer;border-radius:5px;flex:none;place-content:center;margin:.22rem 0 0;padding:0;display:grid}.markdown-task-label input:after{content:"";border:solid var(--accent-contrast);border-width:0 .12rem .12rem 0;width:.3rem;height:.55rem;transition:transform .12s;transform:translateY(-.04rem)rotate(45deg)scale(0)}.markdown-task-label input:checked{border-color:var(--accent);background:var(--accent)}.markdown-task-label input:checked:after{transform:translateY(-.04rem)rotate(45deg)scale(1)}.markdown-task-label input:focus-visible{outline:2px solid rgba(var(--accent-rgb), .36);outline-offset:2px}.markdown-task-label input:disabled{cursor:not-allowed;opacity:.78}.markdown-task-label span{min-width:0}.markdown-task-label input:checked+span{color:var(--muted);text-decoration:line-through}.markdown-preview blockquote{border-left:3px solid var(--accent);color:var(--muted);padding-left:.85rem}.markdown-preview pre{background:var(--code-bg);border-radius:10px;padding:.85rem;overflow:auto}.markdown-preview code{background:var(--code-bg);font-family:var(--mono);border-radius:10px;padding:.12rem .32rem;font-size:.86em}.markdown-preview a{color:var(--accent)}.empty-preview{color:var(--muted)}@media (width<=1180px),(height<=599px){.confirm-dialog-backdrop,.help-center-backdrop,.import-progress-backdrop,.loading-wait-backdrop,.location-dialog-backdrop,.first-run-backdrop:not(.guided){box-sizing:border-box;width:100vw;min-width:0;max-width:100vw;height:100dvh;min-height:100dvh;padding:max(.7rem, env(safe-area-inset-top)) max(.7rem, env(safe-area-inset-right)) max(.7rem, env(safe-area-inset-bottom)) max(.7rem, env(safe-area-inset-left));justify-content:center;align-items:center;display:flex;overflow:hidden auto}.confirm-dialog,.help-center-dialog,.import-progress-dialog,.loading-wait-dialog,.location-dialog,.first-run-dialog:not(.guided){box-sizing:border-box;overscroll-behavior:contain;width:min(100%,100vw - 1.4rem);max-width:calc(100vw - 1.4rem);max-height:calc(100dvh - 1.4rem);margin:auto;overflow-y:auto}.about-dialog,.whats-new-dialog{width:min(30rem,100vw - 1.4rem)}.help-center-dialog{height:min(100%,100dvh - 1.4rem);min-height:0;overflow:hidden}.help-center-header{grid-template-columns:1fr;gap:.75rem;padding:1rem}.help-center-header-actions{justify-content:space-between}.help-center-body{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.help-center-sidebar{border-right:0;border-bottom:1px solid rgba(var(--accent-rgb), .16);max-height:18rem}.help-center-topic-list{grid-auto-columns:minmax(13rem,16rem);grid-auto-flow:column;padding-bottom:.15rem;display:grid;overflow:auto hidden}.help-center-level-heading{display:none}.help-center-content{padding:1rem}.help-center-figure img{max-height:14rem}.location-dialog.chapter-notes-dialog{width:min(100%,100vw - 1.4rem);height:auto;max-height:calc(100dvh - 1.4rem)}.chapter-notes-dialog .location-dialog-header{padding:.9rem 1rem .75rem}.chapter-notes-dialog-tools{flex-wrap:wrap;padding:.7rem 1rem}.chapter-notes-dialog-body{grid-template-columns:minmax(0,1fr);gap:.85rem;padding:.85rem 1rem;overflow:hidden auto}.chapter-notes-dialog .notes-editor{min-height:min(18rem,42dvh)}.chapter-notes-dialog-preview{min-height:8rem;max-height:min(13rem,34dvh)}.dropbox-project-dialog,.book-settings-dialog{width:min(34rem,100vw - 1.4rem)}.docx-studio-dialog{border:1px solid var(--border);border-radius:10px;width:min(28rem,100vw - 1.4rem);max-width:calc(100vw - 1.4rem);height:auto;min-height:14rem}.docx-studio-shell{display:none}.docx-studio-unsupported{text-align:center;place-items:center;gap:.75rem;min-height:12rem;padding:1.2rem;display:grid}.docx-studio-unsupported h2,.docx-studio-unsupported p{margin:0}.docx-studio-unsupported p{color:var(--muted);font-size:.86rem;line-height:1.45}.matter-picker-dialog{width:calc(100vw - 1.4rem);height:calc(100dvh - 1.4rem);overflow:hidden}.dropbox-project-list,.book-matter-sidebar,.book-matter-editor{overscroll-behavior:contain}}@media (width<=700px){.confirm-dialog{grid-template-columns:1fr;gap:.75rem;padding:.9rem}.confirm-dialog-icon{justify-self:start;width:2.65rem;height:2.65rem}.confirm-dialog h2{font-size:clamp(1.08rem,5vw,1.28rem)}.confirm-dialog p,.whats-new-list li{font-size:.84rem}.about-hero{gap:.65rem}.about-logo{width:3rem;height:3rem}.about-logo .brand-mark-icon{width:1.8rem;height:1.8rem}.whats-new-dialog-content{gap:.65rem}.whats-new-list{gap:.45rem}.whats-new-list li{padding:.62rem .7rem .62rem 1.72rem;line-height:1.35}.whats-new-list li:before{top:.95rem;left:.72rem}.confirm-dialog-actions{justify-content:stretch}.confirm-dialog-actions button,.confirm-dialog-actions .button{flex:100%;min-height:2.55rem}.dropbox-conflict-dialog>.confirm-dialog-actions{flex-wrap:wrap}.dropbox-conflict-dialog>.confirm-dialog-actions button{white-space:normal}.dialog-save-status-row{flex-direction:column;align-items:flex-start}.dialog-save-status-badge{white-space:normal}.dropbox-project-list-header{flex-direction:column;align-items:stretch}.dropbox-project-list{max-height:min(16rem,38dvh);margin-right:-.9rem;padding-right:.9rem}.dropbox-project-list-item{grid-template-columns:1fr;gap:.6rem}.dropbox-project-select-button{grid-template-columns:1fr;gap:.3rem}.dropbox-project-list-detail{text-align:left;justify-self:start}.dropbox-project-list-actions{grid-column:1;justify-self:stretch}.dropbox-project-versions-button,.dropbox-project-delete-button{flex:1;justify-self:stretch}.import-progress-dialog,.loading-wait-dialog,.location-dialog{padding:.9rem}.import-progress-meter{grid-template-columns:1fr;gap:.45rem}.loading-wait-dialog{gap:.55rem}.location-dialog-header{align-items:flex-start}.location-dialog-actions{flex-wrap:wrap;justify-content:flex-end}.book-settings-dialog{gap:.85rem;padding:.9rem}.book-settings-heading{align-items:flex-start}.book-setting-card{gap:.7rem;display:grid}.chapter-title-mode-options{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid}.chapter-title-mode-options button{min-width:0;padding-inline:.35rem}.matter-picker-dialog{width:100%}.book-matter-dialog-body{grid-template-columns:1fr;overflow-y:auto}.book-matter-sidebar,.book-matter-editor{max-height:none;overflow:visible}.first-run-dialog:not(.guided){grid-template-columns:1fr}.first-run-media{padding:.6rem}.first-run-media img{max-height:34dvh}.first-run-content{grid-template-rows:auto auto auto auto;gap:.8rem;padding:.9rem}.first-run-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.first-run-actions span{grid-column:1/-1}}.manuscript-overlay{z-index:var(--z-fullscreen);--scrim-overlay:radial-gradient(circle at 50% 28%, rgba(var(--accent-rgb), .18), transparent 24rem), var(--scrim-base);background:var(--bg);display:flex;position:fixed;inset:0}.manuscript-overlay ::selection{background:rgba(var(--accent-rgb), .28);color:var(--text-strong)}.manuscript-shell{background:var(--bg);width:100%;height:100%;min-height:0;color:var(--text);flex-direction:column;display:flex}.manuscript-header{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.1rem 1.6rem;display:flex}.manuscript-header-info{min-width:0}.manuscript-kicker{color:var(--muted);letter-spacing:.08em;margin:0;font-size:.78rem;font-weight:700}.manuscript-title{overflow-wrap:anywhere;margin:.15rem 0 0;font-size:1.5rem}.manuscript-summary{color:var(--muted);margin:.3rem 0 0}.manuscript-body{flex:1;grid-template-columns:minmax(15rem,19rem) minmax(0,1fr);min-height:0;display:grid}.manuscript-sidebar{border-right:1px solid var(--border);background:var(--surface-subtle);min-height:0;padding:.85rem;overflow-y:auto}.manuscript-sidebar ul{flex-direction:column;gap:.3rem;margin:0;padding:0;list-style:none;display:flex}.manuscript-jump{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:12px;align-items:center;gap:.6rem;padding:.55rem .7rem;display:flex}.manuscript-jump:focus-visible{background:rgba(var(--accent-rgb), .1);border-color:rgba(var(--accent-rgb), .32);color:var(--accent-strong)}@media (hover:hover){.manuscript-jump:hover{background:rgba(var(--accent-rgb), .1);border-color:rgba(var(--accent-rgb), .32);color:var(--accent-strong)}}.manuscript-jump.active{background:var(--accent-soft);border-color:var(--accent-strong);color:var(--accent-strong)}.manuscript-jump-index{background:var(--surface);border:1px solid var(--border);border-radius:999px;flex:none;place-items:center;min-width:1.6rem;height:1.6rem;font-size:.8rem;font-weight:700;display:grid}.manuscript-jump.active .manuscript-jump-index{background:var(--accent-strong);color:var(--accent-contrast);border-color:var(--accent-strong)}.manuscript-jump-text{flex-direction:column;min-width:0;display:flex}.manuscript-jump-title{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.manuscript-jump-meta{color:var(--muted);font-size:.78rem}.manuscript-jump.done .manuscript-jump-title{color:var(--muted);text-decoration:line-through}.manuscript-jump-done{color:var(--accent-strong);margin-left:auto;font-weight:700}.manuscript-scroll{min-height:0;padding:1.6rem;overflow-y:auto}.manuscript-pages{flex-direction:column;gap:2.4rem;width:min(48rem,100%);margin:0 auto;display:flex}.manuscript-empty-book{color:var(--muted);text-align:center;margin:2rem 0}.manuscript-chapter{scroll-margin-top:1.6rem}.manuscript-chapter-head{border-bottom:1px solid var(--border);flex-direction:column;align-items:center;gap:.6rem;margin-bottom:1.4rem;padding-bottom:1.1rem;display:flex}.manuscript-chapter-title{text-align:center;overflow-wrap:anywhere;margin:0;font-size:1.6rem}.manuscript-chapter-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:.9rem;display:flex}.manuscript-chapter-words{color:var(--muted);font-size:.85rem}.manuscript-done-button{border:1px solid var(--border);background:var(--surface);color:var(--muted);cursor:pointer;border-radius:999px;align-items:center;gap:.45rem;padding:.4rem .95rem;font-size:.85rem;font-weight:600;transition:background .15s,color .15s,border-color .15s;display:inline-flex}.manuscript-done-button:focus-visible{border-color:var(--accent-strong);color:var(--accent-strong)}@media (hover:hover){.manuscript-done-button:hover{border-color:var(--accent-strong);color:var(--accent-strong)}}.manuscript-done-check{border:1.5px solid;border-radius:999px;place-items:center;width:1.05rem;height:1.05rem;display:grid}.manuscript-done-check svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;opacity:0;width:.72rem;height:.72rem;transition:opacity .15s}.manuscript-done-button.is-done{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--accent-contrast)}.manuscript-done-button.is-done .manuscript-done-check{border-color:var(--accent-contrast)}.manuscript-done-button.is-done .manuscript-done-check svg{opacity:1}.chapter-status-dialog-backdrop{z-index:var(--z-modal-elevated)}.chapter-status-pill,.chapter-status-trigger,.chapter-status-option,.chapter-status-dialog .chapter-status-option{--status-color:#94a3b8;--status-color-strong:#64748b}.status-draft{--status-color:#f59e0b;--status-color-strong:#d97706}.status-in-review{--status-color:#6366f1;--status-color-strong:#4f46e5}.status-done{--status-color:#22c55e;--status-color-strong:#16a34a}.chapter-status-pill{white-space:nowrap;color:#fff;background:linear-gradient(135deg, var(--status-color), var(--status-color-strong));border-radius:999px;align-items:center;gap:.32rem;padding:.1rem .5rem;font-size:.72rem;font-weight:600;line-height:1.25;display:inline-flex;box-shadow:0 0 0 2px #0000000a}.chapter-status-pill-dot{background:#ffffffeb;border-radius:999px;flex:none;width:.42rem;height:.42rem}.chapter-node .chapter-status-pill{letter-spacing:.04em;text-transform:uppercase;border:1px solid #0000;margin-left:auto;padding:.12rem .46rem;font-size:.72rem;font-weight:850;line-height:normal}.chapter-node .chapter-status-pill-dot{width:.36rem;height:.36rem}.chapter-status-trigger{border:1px solid var(--status-color);color:#fff;background:linear-gradient(135deg, var(--status-color), var(--status-color-strong));cursor:pointer;border-radius:999px;align-items:center;gap:.4rem;padding:.22rem .66rem;font-size:.8rem;font-weight:600;transition:filter .15s,box-shadow .15s;display:inline-flex}.chapter-status-trigger.status-not-started{color:var(--muted);background:var(--surface);border-color:var(--border)}.chapter-status-trigger.status-not-started .chapter-status-pill-dot{background:var(--muted)}.chapter-status-trigger:focus-visible{filter:brightness(1.05);box-shadow:0 0 0 3px rgba(var(--accent-rgb), .2)}@media (hover:hover){.chapter-status-trigger:hover{filter:brightness(1.05);box-shadow:0 0 0 3px rgba(var(--accent-rgb), .2)}}.chapter-status-dialog-description{color:var(--muted);margin:0 0 .5rem;font-size:.85rem}.chapter-status-option{--location-color:var(--status-color);border-color:var(--status-color);color:var(--text);background:linear-gradient(135deg, #00000005, transparent), var(--surface);align-items:flex-start;gap:.6rem}.chapter-status-option.active{color:var(--accent-contrast);border-color:var(--accent-strong);background:linear-gradient(135deg, var(--accent), var(--accent-strong))}.chapter-status-option-text{gap:.12rem;min-width:0;display:grid}.chapter-status-option-label{font-weight:600}.chapter-status-option-description{color:var(--muted);font-size:.78rem;font-weight:400}.chapter-status-option.active .chapter-status-option-description{color:var(--accent-contrast);opacity:.85}.manuscript-done-button .chapter-status-pill{box-shadow:none}.manuscript-edit-button{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:999px;padding:.4rem .95rem;font-size:.85rem;font-weight:600}.manuscript-edit-button:focus-visible{border-color:var(--accent-strong);color:var(--accent-strong)}@media (hover:hover){.manuscript-edit-button:hover{border-color:var(--accent-strong);color:var(--accent-strong)}}.manuscript-read-aloud{align-items:center;gap:.4rem;display:inline-flex}.manuscript-read-aloud-button{align-items:center;gap:.45rem;display:inline-flex}.manuscript-read-aloud-button svg{fill:currentColor;width:.85rem;height:.85rem}.manuscript-read-aloud-button.active,.manuscript-read-aloud-button.active:focus-visible{border-color:var(--accent-strong);background:var(--accent-strong);color:var(--accent-contrast)}@media (hover:hover){.manuscript-read-aloud-button.active:hover{border-color:var(--accent-strong);background:var(--accent-strong);color:var(--accent-contrast)}}.manuscript-read-aloud-button:disabled{opacity:.5;cursor:not-allowed}.manuscript-read-aloud-button:disabled:focus-visible{border-color:var(--border);color:var(--text)}@media (hover:hover){.manuscript-read-aloud-button:disabled:hover{border-color:var(--border);color:var(--text)}}.manuscript-read-aloud-stop{width:1.9rem;height:1.9rem;color:var(--danger,#b91c1c);cursor:pointer;background:#b91c1c1f;border:1px solid #b91c1c47;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex}.manuscript-read-aloud-stop svg{fill:currentColor;width:.8rem;height:.8rem}.manuscript-read-aloud-stop:focus-visible{background:#b91c1c33;border-color:#b91c1c66}@media (hover:hover){.manuscript-read-aloud-stop:hover{background:#b91c1c33;border-color:#b91c1c66}}.manuscript-chapter-empty{color:var(--muted);text-align:center;margin:0;font-style:italic}.manuscript-chapter-body{color:var(--text);font-family:Georgia,Times New Roman,serif;font-size:1.05rem;line-height:1.75}.manuscript-chapter-body p{margin:0 0 1rem}.manuscript-chapter-body img{border-radius:8px;max-width:100%;height:auto;margin:1rem auto;display:block}.manuscript-chapter-images{flex-direction:column;align-items:center;gap:1.2rem;margin-top:1.4rem;display:flex}.manuscript-chapter-image{justify-content:center;width:100%;margin:0;display:flex}.manuscript-chapter-image img{height:auto;box-shadow:var(--lifted-shadow);border-radius:10px}.manuscript-chapter-image.small img{max-width:45%}.manuscript-chapter-image.medium img{max-width:72%}.manuscript-chapter-image.full img{width:100%;max-width:100%}@media (width<=760px){.manuscript-body{grid-template-rows:auto minmax(0,1fr);grid-template-columns:1fr}.manuscript-sidebar{border-right:0;border-bottom:1px solid var(--border);max-height:40vh}.manuscript-scroll{padding:1.1rem}}
