:root{color-scheme:dark;--bg:#1e1e1e;--sidebar:#191919;--ribbon:#171717;--surface:#242424;--surface-hover:#2a2a2a;--tab-bg:#181818;--text:#d3d3d3;--text-strong:#e9e9e9;--muted:#858585;--faint:#5f5f5f;--border:#2b2b2b;--input:#161616;--accent:#0052ff;--accent-bright:#6a9dff;--accent-soft:rgba(0,82,255,.15);--selection:rgba(0,82,255,.26);--danger:#f08282;--shadow:0 20px 80px #0008;--editor-size:16px;--editor-font:"Segoe UI","Yu Gothic UI",system-ui,sans-serif;font-family:Segoe UI,Noto Sans JP,Yu Gothic UI,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}:root[data-theme=light]{color-scheme:light;--bg:#fff;--sidebar:#f6f6f6;--ribbon:#eee;--surface:#fff;--surface-hover:#eaeaea;--tab-bg:#eee;--text:#3c3c3c;--text-strong:#202020;--muted:#757575;--faint:#aaa;--border:#e4e4e4;--input:#f7f7f7;--accent-bright:#0047cc;--accent-soft:rgba(0,82,255,.1);--selection:rgba(0,82,255,.18);--danger:#c94242;--shadow:0 20px 80px #0002}*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%;overflow:hidden}body{background:var(--bg);color:var(--text);font-size:13px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{border:0;background:none;color:inherit;cursor:pointer;padding:0}button:disabled{cursor:default;opacity:.3}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input,select,textarea{background:var(--input);border:1px solid var(--border);border-radius:5px;color:var(--text);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}input::placeholder{color:var(--faint)}svg{flex-shrink:0}a{color:var(--accent-bright);text-decoration:none}@media(hover:hover)and (pointer:fine){a:hover{text-decoration:underline}}::selection{background:var(--selection)}::-webkit-scrollbar{width:7px;height:6px}::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 25%,transparent);border-radius:8px}@media(hover:hover)and (pointer:fine){::-webkit-scrollbar-thumb:hover{background:var(--faint)}}::-webkit-scrollbar-track{background:transparent}.hidden{display:none!important}.muted{color:var(--muted);line-height:1.8}.small{font-size:11px}.accent-text{color:var(--accent-bright)}.icon-button{width:30px;height:30px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0;transition:background .12s,color .12s}@media(hover:hover)and (pointer:fine){.icon-button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}}.icon-button.active{color:var(--accent-bright);background:var(--accent-soft)}@media(hover:hover)and (pointer:fine){.icon-button:disabled:hover{background:none}}.button{min-height:33px;padding:7px 13px;border:1px solid var(--border);background:var(--surface-hover);border-radius:5px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;box-shadow:0 1px 2px #0001;transition:filter .12s}@media(hover:hover)and (pointer:fine){.button:hover:not(:disabled){filter:brightness(1.13)}}.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}kbd{font-family:inherit;font-size:10px;color:var(--muted);background:var(--surface-hover);border:1px solid var(--border);border-radius:4px;padding:2px 5px;white-space:nowrap}.spin{animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app{height:100dvh;display:flex;padding-bottom:26px;position:relative;overflow:hidden}.ribbon{width:44px;flex:0 0 44px;background:var(--ribbon);border-right:1px solid var(--border);display:flex;align-items:center;flex-direction:column;padding:0 5px 9px;z-index:15}.brand-icon{height:44px;width:33px;display:flex;justify-content:center;align-items:center;margin-bottom:10px}.brand-icon svg{filter:drop-shadow(0 1px 6px #0052ff12)}.ribbon-main,.ribbon-bottom{display:flex;align-items:center;flex-direction:column;gap:10px}.ribbon-bottom{margin-top:auto;gap:8px}.ribbon .icon-button{width:31px;height:31px}.ribbon .icon-button svg{width:19px;height:19px}.ribbon .offline-icon{color:#c2a06c}.left-sidebar{width:var(--left-width);flex:0 0 var(--left-width);background:var(--sidebar);display:flex;flex-direction:column;position:relative;border-right:1px solid var(--border);min-height:0}.sidebar-tabs{height:44px;min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 9px;border-bottom:1px solid var(--border);gap:5px}.sidebar-tab-group{display:flex;align-items:center;gap:7px}.sidebar-tabs .icon-button{width:29px;height:28px}.sidebar-tabs .icon-button.active{background:var(--surface-hover);color:var(--text-strong)}.file-actions{height:48px;min-height:48px;display:flex;justify-content:center;align-items:center;gap:11px}.file-actions .icon-button{width:28px;height:28px}.file-actions .icon-button svg{width:17px;height:17px}.vault-heading{display:flex;align-items:center;gap:6px;min-height:33px;padding:0 18px 2px 12px;text-align:left;color:var(--text);font-size:12px;font-weight:600}.vault-heading svg{color:var(--muted)}.vault-heading .count{margin-left:auto;font-size:10px;font-weight:400;color:var(--faint);opacity:0}@media(hover:hover)and (pointer:fine){.vault-heading:hover .count{opacity:1}}.file-tree{padding:0 9px 20px;flex:1;overflow-y:auto;min-height:0}.file-row,.folder-row{display:flex;align-items:center;gap:8px;height:31px;width:100%;text-align:left;border-radius:4px;font-size:12px;color:var(--muted);padding-right:9px;position:relative;white-space:nowrap}.file-row span,.folder-row span{overflow:hidden;text-overflow:ellipsis}.file-row>svg:first-child{color:var(--faint);width:14px;opacity:.85}@media(hover:hover)and (pointer:fine){.file-row:hover,.folder-row:hover{background:var(--surface-hover);color:var(--text)}}.file-row.selected{background:var(--accent-soft);color:var(--accent-bright)}.file-row.selected>svg:first-child{color:var(--accent-bright)}.file-star{margin-left:auto;color:var(--faint);opacity:.8}.file-row.selected .file-star{color:var(--accent-bright);opacity:.75}.folder-row{color:var(--text);gap:6px;font-weight:500}.folder-row>svg{transition:transform .12s;color:var(--faint)}.folder-row>svg.expanded{transform:rotate(90deg)}.folder-row.folder-selected{color:var(--text-strong)}.resize-handle{position:absolute;top:0;bottom:0;width:5px;z-index:20;cursor:col-resize;transition:background .15s}.left-handle{right:-3px}.right-handle{left:-3px}.resizing .resize-handle{background:var(--accent)}@media(hover:hover)and (pointer:fine){.resize-handle:hover{background:var(--accent)}}.resizing{-webkit-user-select:none;user-select:none;cursor:col-resize}.workspace{display:flex;flex-direction:column;flex:1;min-width:0;background:var(--bg)}.tab-bar{height:44px;min-height:44px;background:var(--tab-bg);display:flex;align-items:center;border-bottom:1px solid var(--border);padding:0 9px 0 5px;gap:7px}.note-tabs{display:flex;align-items:center;height:100%;min-width:0;flex:1;overflow:auto;scrollbar-width:none;gap:3px;padding-top:5px}.note-tabs::-webkit-scrollbar{display:none}.note-tab{display:flex;align-items:center;gap:9px;height:38px;min-width:140px;max-width:220px;flex:0 1 200px;padding:0 10px 0 13px;color:var(--muted);border-radius:7px 7px 0 0;position:relative;cursor:pointer;font-size:12px;border:1px solid transparent;border-bottom:0}.note-tab>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.note-tab>svg{width:14px;color:var(--faint)}.note-tab>button{width:21px;height:21px;display:grid;place-items:center;border-radius:4px;opacity:0}@media(hover:hover)and (pointer:fine){.note-tab:hover{background:var(--surface-hover)}}.note-tab.is-active>button{opacity:1}@media(hover:hover)and (pointer:fine){.note-tab:hover>button{opacity:1}}@media(hover:hover)and (pointer:fine){.note-tab>button:hover{background:var(--surface-hover);color:var(--text-strong)}}.note-tab.is-active{background:var(--bg);border-color:var(--border);color:var(--text);box-shadow:0 2px 0 var(--bg)}.note-tab.is-active>svg{color:var(--muted)}.note-tabs>.icon-button{margin-left:5px;margin-bottom:3px}.tab-bar-end{display:flex;gap:6px}.note-toolbar{height:45px;min-height:45px;display:flex;align-items:center;padding:0 14px;gap:12px}.history-buttons{display:flex;gap:1px}.history-buttons .icon-button{width:26px;height:27px}.history-buttons .icon-button svg{width:17px}.breadcrumbs{display:flex;align-items:center;gap:10px;min-width:0;flex:1;justify-content:center;font-size:11px;color:var(--faint);padding:0 10px;overflow:hidden;white-space:nowrap}.breadcrumbs>span{overflow:hidden;text-overflow:ellipsis}.breadcrumb-current{color:var(--muted)}.breadcrumb-divider{color:var(--faint);opacity:.5}.editor-actions{display:flex;gap:4px}.editor-actions .icon-button{width:27px;height:27px}.editor-actions .icon-button svg{width:16px}.document-scroll{flex:1;min-height:0;overflow:auto;scroll-behavior:smooth;padding:31px 42px 0;scroll-padding-top:35px}.document{width:100%;margin:0 auto;position:relative}.document-scroll.readable .document{max-width:700px}.inline-title{width:100%;display:block;color:var(--text-strong);font-family:var(--editor-font);font-size:30px;font-weight:650;line-height:1.4;letter-spacing:-.035em;border:0;outline:0;border-radius:0;background:none;padding:0 2px;margin:0 0 27px;box-shadow:none!important}.inline-title:focus{border:0;background:none}.document-end{display:flex;justify-content:center;padding-bottom:90px;margin-top:15px}.document-end span{height:1px;width:20px;background:var(--border)}.markdown-editor{font-family:var(--editor-font);position:relative}.cm-editor .cm-placeholder{color:var(--faint);font-style:normal}.cm-editor .md-heading{font-weight:650;color:var(--text-strong);letter-spacing:-.025em}.cm-editor .md-h1{font-size:1.65em;line-height:1.6}.cm-editor .md-h2{font-size:1.28em;line-height:1.8}.cm-editor .md-h3{font-size:1.1em;line-height:1.8}.cm-editor .md-h4,.cm-editor .md-h5,.cm-editor .md-h6{font-size:1em}.md-formatting{color:var(--faint)}.md-bold{font-weight:650;color:var(--text-strong)}.md-italic{font-style:italic}.md-strike{text-decoration:line-through;color:var(--muted)}.md-link{color:var(--accent-bright);text-decoration:underline;text-underline-offset:3px;cursor:pointer}.md-tag,.markdown-body .tag{color:var(--accent-bright);font-size:.83em;background:var(--accent-soft);padding:2px 7px;border-radius:12px;line-height:1.8;white-space:nowrap}.md-tag{-webkit-box-decoration-break:clone;box-decoration-break:clone}.md-inline-code,.markdown-body :not(pre)>code{font-family:Cascadia Code,Consolas,monospace;background:var(--surface-hover);color:var(--accent-bright);border-radius:4px;font-size:.88em;padding:2px 4px}.md-bullet{color:var(--faint)}.cm-editor .md-quote{border-left:3px solid var(--accent);padding-left:16px!important;color:var(--muted)}.cm-editor .md-code{background:var(--sidebar);font-family:Cascadia Code,Consolas,monospace;font-size:.86em;padding-left:15px!important;padding-right:15px!important;line-height:1.8}.cm-editor .md-fence{color:var(--muted);border-radius:4px;font-size:.72em}.md-task,.read-task{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--faint);width:15px;height:15px;border-radius:3px;vertical-align:-2px;margin:0 7px 0 0;cursor:pointer;background:transparent;position:relative;box-shadow:none!important;flex-shrink:0}.md-task:checked,.read-task:checked{background:var(--accent);border-color:var(--accent)}.md-task:checked:after,.read-task:checked:after{content:"";position:absolute;width:6px;height:3px;border:solid white;border-width:0 0 1.5px 1.5px;transform:rotate(-45deg);left:3px;top:4px}.md-task-done{color:var(--muted)}.md-rule{display:inline-block;width:100%;height:1px;background:var(--border);vertical-align:middle}.source-mode .cm-content{font-family:Cascadia Code,Consolas,Yu Gothic UI,monospace!important;font-size:.9em}.source-mode .cm-line{line-height:1.9}.markdown-body{font-family:var(--editor-font);font-size:var(--editor-size);line-height:1.9;padding:0 2px 100px;overflow-wrap:anywhere}.markdown-body>*:first-child{margin-top:0}.markdown-body p{margin:0 0 20px}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{font-weight:650;color:var(--text-strong);line-height:1.65;letter-spacing:-.025em;scroll-margin-top:35px}.markdown-body h1{font-size:1.65em;margin:28px 0 18px}.markdown-body h2{font-size:1.28em;margin:31px 0 16px}.markdown-body h3{font-size:1.1em;margin:26px 0 13px}.markdown-body blockquote{margin:25px 0;border-left:3px solid var(--accent);padding:2px 0 2px 17px;color:var(--muted)}.markdown-body blockquote p{margin:0}.markdown-body ul,.markdown-body ol{padding-left:25px;margin:18px 0 23px}.markdown-body li{margin:6px 0;padding-left:2px}.markdown-body li:has(>.read-task){list-style:none;position:relative}.markdown-body li:has(>.read-task)>.read-task{margin-left:-21px}.markdown-body li:has(>.read-task:checked){color:var(--muted)}.markdown-body pre{background:var(--sidebar);border:1px solid var(--border);padding:20px;border-radius:5px;overflow-x:auto;font-size:.84em;line-height:1.8}.markdown-body code{font-family:Cascadia Code,Consolas,monospace}.markdown-body hr{border:0;border-top:1px solid var(--border);margin:30px 0}.markdown-body strong{font-weight:650;color:var(--text-strong)}.markdown-body table{border-collapse:collapse;width:100%;font-size:.88em;margin:22px 0}.markdown-body th,.markdown-body td{border:1px solid var(--border);padding:9px 13px;text-align:left}.markdown-body th{background:var(--sidebar);font-weight:600}.markdown-body img{max-width:100%;border-radius:4px}.markdown-body a:not(.tag){text-decoration:underline;text-underline-offset:3px}.right-sidebar{width:var(--right-width);flex:0 0 var(--right-width);background:var(--sidebar);border-left:1px solid var(--border);position:relative;display:flex;flex-direction:column;min-height:0}.right-panel-content{flex:1;overflow-y:auto;padding:10px 10px 24px}.panel-section-label{font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:space-between;color:var(--muted);letter-spacing:.02em;min-height:37px;padding:0 10px}.panel-section-label>.icon-button{width:24px;height:24px}.panel-section-label>.icon-button svg{width:14px}.panel-section-label>span{font-size:10px;font-weight:400;color:var(--faint)}.outline-list{position:relative;padding:3px 0}.outline-list:before{content:"";position:absolute;top:15px;bottom:15px;left:18px;width:1px;background:var(--border)}.outline-list>button{display:flex;align-items:center;gap:9px;position:relative;width:100%;height:34px;font-size:11px;white-space:nowrap;color:var(--muted);padding-right:7px;text-align:left;border-radius:4px}.outline-list>button>span:last-child{overflow:hidden;text-overflow:ellipsis}@media(hover:hover)and (pointer:fine){.outline-list>button:hover{color:var(--text);background:var(--surface-hover)}}.outline-marker{background:var(--sidebar);border:1px solid var(--faint);width:5px;height:5px;border-radius:50%;flex-shrink:0;position:relative;z-index:1}.outline-list>button.outline-current{color:var(--accent-bright)}.outline-current .outline-marker{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 3px var(--sidebar)}.note-info{padding:14px 20px 18px;border-top:1px solid var(--border)}.note-info .panel-section-label{padding:0;min-height:26px;margin-bottom:8px;font-size:10px}.note-info>div:not(.panel-section-label){display:flex;align-items:center;justify-content:space-between;font-size:10px;margin:10px 0;color:var(--faint);gap:8px}.note-info>div:not(.panel-section-label)>span:last-child{color:var(--muted)}.info-path{font-size:9px;color:var(--faint);display:flex;align-items:center;gap:5px;max-width:100%;margin-top:16px;padding:4px 0}@media(hover:hover)and (pointer:fine){.info-path:hover{color:var(--accent-bright)}}.info-path>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tag-row{width:100%;display:flex;align-items:center;gap:8px;padding:8px 11px;font-size:12px;border-radius:4px;color:var(--muted)}.tag-row>svg{color:var(--faint);width:13px}.tag-row small{margin-left:auto;font-size:10px;color:var(--faint)}@media(hover:hover)and (pointer:fine){.tag-row:hover{background:var(--surface-hover);color:var(--accent-bright)}}.backlink-item{display:flex;align-items:flex-start;gap:8px;text-align:left;padding:10px 9px;width:100%;border-radius:4px;font-size:12px}.backlink-item small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.backlink-item>svg{margin-top:2px;color:var(--faint)}@media(hover:hover)and (pointer:fine){.backlink-item:hover{background:var(--surface-hover)}}.status-bar{position:absolute;bottom:0;left:0;right:0;height:26px;border-top:1px solid var(--border);background:var(--sidebar);display:flex;align-items:center;justify-content:space-between;padding:0 15px 0 14px;z-index:30;color:var(--muted);font-size:10px;-webkit-user-select:none;user-select:none}.status-brand{color:var(--faint);font-size:10px;letter-spacing:.03em}.status-brand>span{opacity:.6;margin-left:4px;font-size:9px}.status-items{display:flex;height:100%;gap:17px;align-items:center}.status-items>button{height:100%;display:flex;align-items:center;gap:5px;font-size:10px}@media(hover:hover)and (pointer:fine){.status-items>button:hover{color:var(--text)}}.status-separator{height:11px;border-left:1px solid var(--border);margin-left:-3px;margin-right:-3px}.sync-status>svg{color:#7b9680}.sync-status.is-offline>svg{color:#bd9d64}.sync-status.is-error{color:var(--danger)}.notice-bar{display:flex;align-items:center;gap:9px;background:var(--accent-soft);color:var(--accent-bright);font-size:11px;padding:10px 15px;line-height:1.7}.notice-bar.error{background:#b5484814;color:var(--danger)}.notice-bar>span{flex:1}.notice-bar button{display:flex}.sidebar-empty{padding:22px 13px;color:var(--faint);font-size:11px;line-height:1.9;text-align:center}.sidebar-empty>button{display:block;margin:15px auto;color:var(--accent-bright)}.search-box{display:flex;align-items:center;margin:16px 13px 6px;border:1px solid var(--border);border-radius:5px;background:var(--input);padding:0 9px;gap:7px;min-height:33px}.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.search-box>svg{color:var(--faint);width:14px}.search-box>input{width:100%;min-width:0;border:0!important;outline:0;box-shadow:none!important;background:transparent;font-size:11px;padding:7px 0}.search-box>.icon-button{width:18px;height:22px}.search-box>.icon-button svg{width:12px}.search-options{display:flex;align-items:center;justify-content:space-between;padding:5px 15px 12px;color:var(--faint);font-size:10px}.search-options button{font-family:Georgia,serif;font-size:14px;padding:2px 4px;border-radius:3px}.search-options button.selected-text{color:var(--accent-bright);background:var(--accent-soft)}.search-results{overflow-y:auto;flex:1;min-height:0;padding:0 9px}.search-result{display:block;width:100%;padding:10px 10px 12px;text-align:left;border-radius:5px;border-bottom:1px solid var(--border);margin-bottom:4px}.search-result>div{display:flex;gap:8px;align-items:center;font-size:12px}.search-result strong{font-weight:500}.search-result svg{color:var(--muted)}.search-result small{display:block;font-size:9px;color:var(--faint);margin:5px 0 8px 22px}.search-result p{font-size:10px;color:var(--muted);line-height:1.7;max-height:34px;overflow:hidden;margin:5px 0}@media(hover:hover)and (pointer:fine){.search-result:hover{background:var(--surface-hover)}}.search-result.selected{background:var(--accent-soft)}.search-result.selected strong{color:var(--accent-bright)}.search-hint{padding-top:55px}.search-hint>svg{color:var(--faint);opacity:.65;margin-bottom:5px}.search-hint p{color:var(--muted);margin:12px 0 4px}.search-hint small{font-size:10px}.empty-workspace{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;min-height:0;padding:40px;text-align:center}.empty-workspace>svg{opacity:.7;margin-bottom:24px}.empty-workspace h1{font-size:20px;color:var(--text);font-weight:500;letter-spacing:.03em;margin:0 0 10px}.empty-workspace p{color:var(--faint);font-size:12px;margin:0 0 30px}.empty-shortcuts{margin-top:35px;display:flex;gap:25px;color:var(--faint);font-size:10px}.empty-shortcuts span{display:flex;align-items:center;gap:10px}.mobile-scrim{display:none}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0008;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal{background:var(--bg);border:1px solid color-mix(in srgb,var(--border) 80%,var(--muted));border-radius:10px;box-shadow:var(--shadow);max-height:calc(100dvh - 48px);max-width:calc(100vw - 40px);position:relative;outline:none;overflow:auto;animation:modal-in .14s ease-out}.modal h2{font-size:17px;font-weight:600;color:var(--text-strong);margin:0 0 14px;letter-spacing:-.02em}.modal p{font-size:12px}.modal-close{position:absolute;right:16px;top:16px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:25px}.prompt-modal{padding:29px;width:440px}.prompt-modal>p{margin:0 0 20px}.prompt-modal form>input,.prompt-modal>select{width:100%;padding:10px 11px;font-size:13px;height:39px}.form-error{color:var(--danger)!important;font-size:11px!important;line-height:1.7}.context-menu{position:fixed;background:var(--surface);border:1px solid var(--border);box-shadow:0 6px 28px #0006;padding:5px;border-radius:7px;z-index:80;width:230px;animation:modal-in .1s ease-out}.context-menu>button{display:flex;align-items:center;gap:10px;min-height:32px;padding:7px 10px;text-align:left;width:100%;font-size:11px;border-radius:4px;color:var(--text)}.context-menu>button>svg{color:var(--muted);width:14px}@media(hover:hover)and (pointer:fine){.context-menu>button:hover{background:var(--accent);color:#fff}}@media(hover:hover)and (pointer:fine){.context-menu>button:hover>svg{color:inherit}}.context-menu>button.danger{color:var(--danger)}@media(hover:hover)and (pointer:fine){.context-menu>button.danger:hover{background:#b5484820}}.menu-label{color:var(--faint);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:7px 10px 9px}.menu-divider{height:1px;background:var(--border);margin:5px}.context-menu kbd{margin-left:auto}.toast{position:fixed;bottom:46px;left:50%;transform:translate(-50%);background:var(--surface);border:1px solid var(--border);box-shadow:0 6px 30px #0005;padding:12px 15px;display:flex;align-items:center;gap:10px;font-size:12px;border-radius:6px;z-index:200;max-width:90vw;line-height:1.7}.toast>svg{color:var(--accent-bright)}.toast>button{display:flex;margin-left:12px;color:var(--muted)}.switcher-modal{align-self:flex-start;margin-top:min(18vh,155px);width:580px;overflow:hidden;border-radius:9px}.switcher-input{display:flex;align-items:center;gap:13px;padding:17px 19px;border-bottom:1px solid var(--border)}.switcher-input>svg{color:var(--muted);width:19px}.switcher-input input{border:0!important;background:none!important;box-shadow:none!important;border-radius:0;padding:0;width:100%;font-size:15px;min-width:0;outline:none}.switcher-input>kbd{font-size:9px}.switcher-label{color:var(--faint);font-size:10px;padding:13px 22px 8px}.switcher-results{max-height:345px;overflow:auto;padding:0 10px 10px}.switcher-results>button{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:11px 13px;border-radius:5px;font-size:12px;color:var(--text);min-height:42px}.switcher-results>button>svg{color:var(--muted)}.switcher-results>button>span{flex:1}.switcher-results>button small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.switcher-results>button.selected{background:var(--accent-soft);color:var(--accent-bright)}.switcher-results>button.selected>svg{color:var(--accent-bright)}.switcher-footer{display:flex;align-items:center;gap:21px;padding:13px 20px;background:var(--sidebar);border-top:1px solid var(--border);color:var(--muted);font-size:10px}.switcher-footer span{display:flex;align-items:center;gap:5px}.switcher-footer kbd{font-size:9px;padding:1px 4px}.switcher-empty{padding:35px;color:var(--muted);text-align:center;display:flex;align-items:center;flex-direction:column;gap:20px;font-size:12px}.settings-modal{width:840px;height:580px;display:flex;overflow:hidden}.settings-nav{width:205px;flex-shrink:0;background:var(--sidebar);padding:20px 13px;display:flex;flex-direction:column;border-right:1px solid var(--border)}.settings-brand{display:flex;align-items:center;gap:9px;padding:5px 11px 25px;color:var(--text-strong);font-size:16px;font-weight:600}.settings-brand small{font-size:10px;font-weight:400;margin-left:auto;color:var(--faint)}.settings-nav>button{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:5px;font-size:12px;text-align:left;margin:2px 0;color:var(--muted)}.settings-nav>button.selected{background:var(--accent-soft);color:var(--accent-bright)}@media(hover:hover)and (pointer:fine){.settings-nav>button:hover{background:var(--surface-hover)}}@media(hover:hover)and (pointer:fine){.settings-nav>button.selected:hover{background:var(--accent-soft)}}.settings-version{font-size:10px;color:var(--faint);margin-top:auto;padding:13px}.settings-content{flex:1;min-width:0;overflow-y:auto;padding:38px 36px}.settings-content h2{font-size:20px;margin:0 0 9px}.settings-intro{color:var(--muted);font-size:11px!important;margin:0 0 25px;line-height:1.9}.setting-row{display:flex;justify-content:space-between;gap:20px;align-items:center;min-height:78px;border-bottom:1px solid var(--border);padding:14px 0}.setting-row h4{font-size:12px;font-weight:500;color:var(--text);margin:0 0 7px}.setting-row p{font-size:10px;line-height:1.8;color:var(--muted);margin:0}.setting-control{display:flex;align-items:center;gap:8px;flex-shrink:0;font-size:11px}.setting-control select{font-size:11px;padding:7px 25px 7px 9px;max-width:160px}.setting-control .button{font-size:10px;min-height:29px;padding:5px 9px}.setting-control .font-size-number{width:56px;padding:7px}.setting-control code{font-size:10px;color:var(--muted)}.toggle{height:20px;width:35px;border-radius:15px;background:var(--surface-hover);padding:3px;transition:background .15s}.toggle>span{display:block;width:14px;height:14px;background:var(--muted);border-radius:50%;transition:transform .15s}.toggle.on{background:var(--accent)}.toggle.on>span{background:#fff;transform:translate(15px)}.settings-tip{padding:16px;margin-top:25px;border:1px solid var(--border);border-radius:5px;display:flex;gap:10px;color:var(--muted);font-size:10px;line-height:1.9;align-items:flex-start}.settings-tip>svg{color:var(--faint);margin-top:2px;width:14px}.theme-preview{display:flex;border:1px solid var(--border);border-radius:6px;height:180px;margin:30px auto;max-width:345px;overflow:hidden}.theme-preview-sidebar{background:var(--sidebar);width:75px;border-right:1px solid var(--border);padding:30px 16px}.theme-preview-sidebar>span{display:block;height:5px;border-radius:2px;background:var(--border);margin-bottom:13px}.theme-preview-sidebar>span:nth-child(2){background:var(--accent-soft);width:40px}.theme-preview-note{padding:30px 23px;flex:1}.theme-preview-note strong{font-size:13px;color:var(--text-strong);font-weight:500;display:block;margin-bottom:23px}.theme-preview-note i{display:block;height:3px;border-radius:1px;background:var(--border);margin:11px 0}.theme-preview-note i:nth-child(3){width:85%}.theme-preview-note>span{color:var(--accent-bright);font-size:9px;display:block;margin-top:17px}.storage-path{display:block;border:1px solid var(--border);background:var(--sidebar);border-radius:4px;padding:12px;font-family:Consolas,monospace;font-size:11px;color:var(--muted);overflow-wrap:anywhere;line-height:1.8}.shortcuts-list{margin-top:8px}.shortcuts-list>div{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--border);font-size:11px}.shortcuts-list kbd{font-size:10px}.about-content{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:25px}.about-content h3{font-size:27px;font-weight:600;letter-spacing:-.04em;color:var(--text-strong);margin:14px 0 10px}.version-badge{font-size:10px;border:1px solid var(--border);border-radius:20px;color:var(--muted);padding:3px 10px}.about-content p{font-size:13px;margin:25px 0 0}.about-content p.muted{font-size:11px;line-height:2.1;margin-top:12px}.about-features{display:flex;gap:20px;margin:28px 0;color:var(--muted)}.about-features>span{display:flex;align-items:center;gap:5px;font-size:10px}.about-content>small{color:var(--faint);font-size:9px;line-height:1.9}.connection-badge{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted)}.connection-badge>span{width:5px;height:5px;border-radius:50%;background:#b49b72}.connection-badge.online>span{background:#7ba081}.sync-modal{width:470px;padding:35px 30px 28px;text-align:center}.sync-hero-icon{height:62px;width:62px;border-radius:50%;background:var(--surface-hover);color:var(--muted);display:grid;place-items:center;margin:0 auto 23px}.sync-hero-icon.online{background:var(--accent-soft);color:var(--accent-bright)}.sync-modal h2{font-size:18px}.sync-modal>p{font-size:11px;margin-bottom:26px}.sync-details{padding:3px 0;text-align:left;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:22px}.sync-details>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;padding:10px 0}.sync-details>div>span:first-child{color:var(--muted)}.sync-details>div>span:last-child{overflow-wrap:anywhere;text-align:right}.storage-label{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin-bottom:9px}.sync-modal .storage-path{text-align:left;font-size:10px}.sync-modal .modal-actions{justify-content:space-between}.trash-modal{width:560px;padding:30px}.trash-modal h2{display:flex;gap:10px;align-items:center}.trash-modal>p{font-size:11px}.trash-list{margin-top:25px;max-height:340px;overflow:auto}.trash-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.trash-item>svg{color:var(--faint)}.trash-item>span{flex:1;min-width:0}.trash-item strong{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trash-item small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.trash-item .button{font-size:10px;min-height:28px;padding:5px 9px}.empty-trash{display:flex;align-items:center;flex-direction:column;padding:65px;color:var(--faint);gap:17px;font-size:12px}.history-modal{width:850px;padding:0;overflow:hidden}.history-heading{padding:25px 25px 18px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--border)}.history-heading h2{margin:0 0 5px}.history-heading p{margin:0;font-size:10px}.history-body{display:flex;height:390px;min-height:0}.history-versions{width:190px;flex-shrink:0;overflow-y:auto;background:var(--sidebar);border-right:1px solid var(--border);padding:10px 6px}.history-versions>button{display:flex;align-items:flex-start;gap:9px;width:100%;padding:12px 9px;font-size:11px;text-align:left;border-radius:4px}.history-versions>button svg{color:var(--muted);margin-top:2px}.history-versions small{display:block;font-size:9px;color:var(--muted);margin-top:6px}.history-versions>button.selected{background:var(--accent-soft);color:var(--accent-bright)}.history-preview{font-family:Cascadia Code,Consolas,Yu Gothic UI,monospace;font-size:11px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;flex:1;min-width:0;padding:22px 25px;margin:0;overflow:auto}.history-modal>.modal-actions{padding:17px 23px;border-top:1px solid var(--border);margin:0}.history-loading{height:200px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:12px}.history-modal>.form-error{padding:25px}.login-screen{height:100dvh;display:flex;align-items:center;justify-content:center;position:relative;background:var(--bg)}.login-top{position:absolute;top:29px;left:34px;display:flex;align-items:center;gap:9px;font-size:17px;font-weight:600;letter-spacing:-.04em;color:var(--text-strong)}.login-form{width:330px;max-width:calc(100vw - 56px);display:flex;align-items:flex-start;flex-direction:column;margin-top:-25px}.login-form>svg{margin-bottom:30px}.login-form h1{font-size:27px;letter-spacing:-.03em;color:var(--text-strong);font-weight:600;margin:0 0 12px}.login-form>p{font-size:12px;color:var(--muted);margin:0 0 35px}.login-form>label{font-size:11px;color:var(--muted);margin-bottom:10px}.password-input{display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--border);background:var(--input);border-radius:5px;width:100%;height:42px;color:var(--faint)}.password-input:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.password-input>input{border:0;box-shadow:none!important;outline:none;flex:1;min-width:0;height:100%;font-size:12px;padding:0}.login-form>.button{width:100%;height:41px;margin-top:17px;gap:12px;font-size:12px}.login-form>.form-error{margin:12px 0 -4px}.login-private{display:flex;gap:6px;align-items:center;justify-content:center;color:var(--faint);font-size:10px;margin-top:23px;width:100%}.login-bottom{position:absolute;bottom:30px;color:var(--faint);font-size:11px;letter-spacing:.04em}.loading-screen{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted);font-size:12px}.loading-screen>span{margin-top:8px}.loading-screen>svg:last-child{color:var(--faint)}@keyframes modal-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1700px){.document-scroll{padding-top:45px}.document-scroll.readable .document{max-width:740px}}@media(max-width:1150px){.right-sidebar{width:210px;flex-basis:210px}.document-scroll{padding:30px 30px 0}.left-sidebar{width:225px;flex-basis:225px}.note-toolbar{padding:0 10px}.editor-actions{gap:0}.breadcrumbs{font-size:10px}.inline-title{font-size:28px}.outline-list>button{font-size:10px}.sidebar-tab-group{gap:3px}.right-sidebar .sidebar-tabs{padding:0 7px}}@media(max-width:960px){.right-sidebar{display:none}.tab-bar-end:empty{display:none}.document-scroll{padding:28px 38px 0}.workspace{min-width:0}.note-info{display:none}.status-items{gap:13px}.mode-status{display:none}}@media(max-width:759px){.ribbon{width:42px;flex-basis:42px}.ribbon-main{gap:13px}.left-sidebar{position:absolute;top:0;bottom:26px;left:42px;width:260px;z-index:45;box-shadow:12px 0 30px #0004}.mobile-scrim{display:block;position:absolute;top:0;right:0;bottom:26px;left:42px;z-index:40;background:#0007;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.resize-handle{display:none}.document-scroll{padding:22px 24px 0}.inline-title{font-size:27px;margin-bottom:24px}.tab-bar{padding-left:7px}.tab-bar>.icon-button{width:26px}.note-tab{min-width:100px;max-width:190px;font-size:11px}.note-tab>button{opacity:1}.note-toolbar{gap:0;padding:0 8px;height:43px;min-height:43px}.breadcrumbs{font-size:10px;gap:7px;justify-content:flex-start}.history-buttons .icon-button{width:23px}.editor-actions .icon-button{width:26px}.status-brand{display:none}.status-bar{justify-content:flex-end;padding:0 10px}.status-items{gap:11px;font-size:9px}.status-items>button{font-size:9px}.status-items>button:first-child:not(.sync-status){display:none}.status-separator{display:none}.empty-workspace{padding:25px}.empty-workspace h1{font-size:17px}.empty-shortcuts{flex-direction:column;gap:14px}.modal-backdrop{padding:15px}.modal{max-width:calc(100vw - 30px);max-height:calc(100dvh - 30px)}.settings-modal{height:620px;flex-direction:column}.settings-nav{width:100%;flex-direction:row;overflow-x:auto;min-height:64px;flex-shrink:0;padding:12px 45px 12px 12px;border-right:0;border-bottom:1px solid var(--border);gap:5px}.settings-brand{display:none}.settings-nav>button{padding:8px;white-space:nowrap;font-size:10px;gap:5px}.settings-nav>button svg{width:13px}.settings-version{display:none}.settings-content{padding:24px;min-height:0}.settings-modal .modal-close{top:19px;right:10px}.settings-content h2{font-size:18px}.setting-row{gap:12px}.setting-row h4{font-size:11px}.setting-row p{font-size:9px}.setting-control select{font-size:10px;max-width:137px;padding-left:6px}.setting-control{gap:4px}.settings-tip{font-size:9px;padding:12px}.setting-control .button{font-size:9px}.about-features{gap:14px}.about-features>span{font-size:9px}.switcher-modal{margin-top:8vh}.switcher-input{padding:17px 15px}.switcher-input input{font-size:13px}.switcher-footer{font-size:9px;gap:13px;padding:13px 16px}.switcher-results>button{font-size:11px}.switcher-results kbd{font-size:8px}.prompt-modal{padding:24px}.sync-modal{padding:30px 23px 23px}.sync-modal h2{font-size:16px}.sync-modal .modal-actions{gap:6px}.sync-modal .button{font-size:10px;padding:7px 9px}.trash-modal{padding:26px 22px}.history-versions{width:130px}.history-versions>button{padding:10px 7px;font-size:9px;gap:5px}.history-versions>button>svg{display:none}.history-versions small{font-size:8px}.history-body{height:55vh}.history-preview{font-size:10px;padding:15px}.history-heading{padding:24px 20px 17px}.history-modal>.modal-actions{padding:15px;font-size:10px}.history-modal .button{font-size:10px}.toast{font-size:11px;width:max-content;max-width:calc(100vw - 30px);padding:11px 13px}.login-top{left:25px;top:24px}.login-form{margin-top:-5px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.password-modal label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted);margin:18px 0}.password-modal label input{width:100%;height:38px;padding:9px 11px;font-size:13px;color:var(--text)}.tunnel-state{display:flex;align-items:center;gap:11px;padding:15px;border:1px solid var(--border);background:var(--sidebar);border-radius:6px;margin-bottom:24px}.tunnel-state>svg{color:var(--accent-bright)}.tunnel-state>div{flex:1}.tunnel-state strong{display:block;font-size:12px;font-weight:500}.tunnel-state small{display:block;font-size:9px;color:var(--faint);margin-top:5px}.tunnel-label{display:block;font-size:11px;color:var(--text);margin:19px 0 9px}.tunnel-label small{color:var(--faint);font-size:9px;margin-left:5px}.tunnel-token-input,.tunnel-url-input{width:100%;padding:10px 11px;height:38px;font-size:12px}.tunnel-field-hint{font-size:10px!important;color:var(--muted);line-height:1.9;margin:10px 0 19px}.tunnel-origin{display:flex;gap:8px;align-items:flex-start;background:var(--sidebar);border:1px solid var(--border);border-radius:5px;padding:12px;margin:15px 0 20px;color:var(--muted);font-size:10px;line-height:1.8}.tunnel-origin>svg{margin-top:2px;color:var(--faint)}.tunnel-origin code{display:block;margin-top:5px;font-size:11px;color:var(--accent-bright);-webkit-user-select:all;user-select:all}.tunnel-autostart{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.7;cursor:pointer}.tunnel-autostart>input{accent-color:var(--accent);margin:3px 0 0;width:14px;height:14px;flex-shrink:0}.tunnel-autostart small{display:block;font-size:9px;color:var(--muted);margin-top:5px;line-height:1.9}.tunnel-startup-state{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--muted);margin:10px 0 0 23px}.tunnel-startup-state>svg{color:var(--accent-bright)}.tunnel-actions{display:flex;align-items:center;gap:9px;justify-content:flex-end;margin-top:23px}.tunnel-notice{font-size:10px!important;color:var(--accent-bright);line-height:1.9}.tunnel-public-link{display:flex;align-items:center;gap:6px;font-size:10px;margin-top:17px;overflow-wrap:anywhere}.mobile-drawer-heading,.mobile-switcher-new,.context-backdrop{display:none}@media(max-width:759px){.app{height:var(--mobile-height,100dvh);padding-bottom:0;isolation:isolate}.ribbon,.workspace>.tab-bar,.workspace>.note-toolbar,.status-bar{display:none}.workspace{width:100%;min-width:0;transition:transform .2s ease}.mobile-note-header{height:calc(56px + env(safe-area-inset-top,0px));min-height:calc(56px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 8px 0;display:flex;align-items:center;gap:2px;background:var(--bg);border-bottom:1px solid var(--border)}.mobile-button{width:44px;height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:8px;flex-shrink:0;touch-action:manipulation}@media(hover:hover)and (pointer:fine){.mobile-button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}}.mobile-button:disabled{opacity:.25}.mobile-note-heading{flex:1;min-width:0;text-align:center;padding:6px 5px;line-height:1.45}.mobile-note-heading>span{display:block;font-size:9px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:2px}.mobile-note-heading strong{font-size:13px;font-weight:500;color:var(--text);display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-note-heading strong>svg{color:var(--faint)}.document-scroll{padding:25px 22px 90px;scroll-padding-top:20px;scroll-padding-bottom:100px;scroll-behavior:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.document-scroll.readable .document{max-width:700px}.inline-title{font-size:29px;margin-bottom:24px;line-height:1.45}.markdown-body{line-height:1.9;padding-bottom:30px}.document-end{display:none}.cm-editor .cm-content{padding-bottom:75px!important;min-height:calc(var(--mobile-height,100dvh) - 210px)!important}.cm-editor .cm-tooltip{max-width:calc(100vw - 28px)}.mobile-navigation{position:absolute;left:50%;transform:translate(-50%);bottom:max(12px,env(safe-area-inset-bottom,0px));width:min(354px,calc(100% - 32px));height:58px;display:flex;align-items:center;justify-content:space-around;padding:5px 8px;border-radius:32px;border:1px solid var(--border);background:var(--sidebar);box-shadow:0 5px 22px #0003;z-index:35}.mobile-navigation .mobile-button{border-radius:50%;height:46px;width:46px}.mobile-navigation .mobile-create{color:var(--accent-bright)}.mobile-navigation .mobile-create>svg{width:27px;height:27px;stroke-width:1.5}.mobile-tab-count{display:grid;place-items:center;width:19px;height:21px;border:1.5px solid currentColor;border-radius:4px;font-size:10px;font-weight:600;line-height:1}.mobile-format-bar{position:absolute;bottom:0;left:0;right:0;z-index:35;height:calc(51px + env(safe-area-inset-bottom,0px));padding:4px 5px calc(4px + env(safe-area-inset-bottom,0px));background:var(--sidebar);border-top:1px solid var(--border);display:flex;align-items:center;gap:4px}.mobile-format-scroll{display:flex;gap:2px;align-items:center;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;touch-action:pan-x}.mobile-format-scroll::-webkit-scrollbar{display:none}.mobile-format-scroll .mobile-button{width:40px;height:40px;min-width:40px}.mobile-format-scroll .mobile-button>svg{width:19px;height:19px}.mobile-dismiss-keyboard{border-left:1px solid var(--border);border-radius:0;position:relative}.mobile-dismiss-keyboard>svg:last-child{position:absolute;bottom:2px;left:17px}.mobile-editing .document-scroll{padding-bottom:55px}.mobile-scrim{display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;background:#0008;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.left-sidebar,.right-sidebar{display:flex;position:absolute;top:0;bottom:0;width:min(336px,calc(100vw - 45px));height:100%;z-index:45;min-height:0;background:var(--sidebar);box-shadow:12px 0 32px #0004}.left-sidebar{left:0;right:auto;flex-basis:auto;border-right:1px solid var(--border);animation:drawer-left .18s ease-out}.right-sidebar{left:auto;right:0;flex-basis:auto;border-left:1px solid var(--border);animation:drawer-right .18s ease-out}.mobile-drawer-heading{height:calc(58px + env(safe-area-inset-top,0px));min-height:calc(58px + env(safe-area-inset-top,0px));padding:calc(5px + env(safe-area-inset-top,0px)) 13px 5px 21px;display:flex;align-items:center;justify-content:space-between;order:0;border-bottom:1px solid var(--border)}.mobile-drawer-heading strong{font-weight:550;font-size:15px;color:var(--text-strong)}.mobile-drawer-heading .icon-button{width:44px;height:44px}.left-sidebar .file-actions{order:1;min-height:57px;height:57px;gap:15px}.file-actions .icon-button{width:42px;height:42px}.file-actions .icon-button svg{width:20px;height:20px}.vault-heading{order:2;min-height:37px;font-size:13px;padding:0 22px 3px 16px}.file-tree{order:3;padding:0 11px 20px;overscroll-behavior:contain}.file-row,.folder-row{height:43px;font-size:13px;padding-right:12px;gap:9px}.file-row>svg:first-child{width:16px;height:16px}.folder-row>svg{width:15px;height:15px}.sidebar-tabs{order:5;margin-top:auto;min-height:calc(72px + env(safe-area-inset-bottom,0px));height:calc(72px + env(safe-area-inset-bottom,0px));border-bottom:0;border-top:1px solid var(--border);padding:7px 12px calc(7px + env(safe-area-inset-bottom,0px));gap:0}.sidebar-tabs>.icon-button{display:none}.sidebar-tab-group{width:100%;justify-content:space-around;gap:8px}.sidebar-tabs .sidebar-tab-group>.icon-button{width:70px;height:53px;display:flex;flex-direction:column;gap:6px;border-radius:8px}.sidebar-tabs .sidebar-tab-group>.icon-button>svg{width:20px;height:20px}.sidebar-tabs .sidebar-tab-group>.icon-button:after{content:attr(aria-label);font-size:9px;line-height:1.1}.sidebar-tabs .sidebar-tab-group>.icon-button.active{color:var(--accent-bright);background:var(--accent-soft)}.left-sidebar .search-box{order:1;height:43px;min-height:43px;margin:17px 15px 7px}.left-sidebar .search-box input{font-size:16px}.left-sidebar .search-options{order:2;padding:8px 19px 14px;font-size:10px}.left-sidebar .search-results{order:3}.search-result{padding:13px 12px}.search-result strong{font-size:13px}.search-result small{font-size:10px}.search-result p{font-size:11px;max-height:39px}.left-sidebar>.panel-section-label{order:2;font-size:12px;padding:9px 20px;min-height:44px}.right-panel-content{order:2;flex:1;min-height:0;padding-top:12px}.right-sidebar .note-info{display:none}.right-sidebar .panel-section-label{min-height:42px;font-size:12px}.outline-list>button{min-height:42px;height:auto;padding-top:9px;padding-bottom:9px;font-size:12px;white-space:normal;line-height:1.7}.outline-list:before{top:20px;bottom:20px}.backlink-item,.tag-row{font-size:13px;min-height:44px;padding:12px 10px}.tag-row small{font-size:11px}.resize-handle{display:none}.modal-backdrop{height:var(--app-viewport-height,100dvh);top:0;bottom:auto;padding:0;align-items:flex-end;overflow:hidden}.modal{width:100%;max-width:100vw;max-height:calc(var(--app-viewport-height,100dvh) - 18px);border-radius:17px 17px 0 0;border-bottom:0;margin:0;box-shadow:0 -8px 50px #0004}.modal input:not([type=checkbox]),.modal select,.search-box input,.password-input input{font-size:16px!important}.prompt-modal{padding:28px 24px calc(24px + env(safe-area-inset-bottom,0px))}.prompt-modal h2{font-size:18px}.prompt-modal input,.prompt-modal select{height:43px!important}.modal-actions .button{min-height:41px;font-size:12px;padding:10px 16px}.switcher-modal{align-self:flex-end;margin:0;max-height:calc(var(--app-viewport-height,100dvh) - 20px)}.switcher-input{padding:20px;height:65px}.switcher-input input{font-size:16px}.switcher-input>kbd{display:none}.mobile-switcher-new{display:flex;align-items:center;gap:11px;width:100%;height:54px;padding:10px 22px;color:var(--accent-bright);font-size:13px;text-align:left;border-bottom:1px solid var(--border)}.mobile-switcher-new>span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.switcher-label{font-size:10px;padding:17px 23px 10px}.switcher-results{max-height:calc(var(--app-viewport-height,100dvh) - 200px);padding:0 10px calc(16px + env(safe-area-inset-bottom,0px))}.switcher-results>button{min-height:57px;font-size:13px;padding:12px 14px}.switcher-results>button small{font-size:10px;margin-top:5px}.switcher-footer{display:none}.sheet-handle{height:4px;width:34px;background:var(--faint);border-radius:4px;opacity:.6;margin:11px auto 5px}.mobile-sheet{padding:0 15px calc(15px + env(safe-area-inset-bottom,0px));overflow:hidden}.mobile-sheet-heading{height:55px;display:flex;align-items:center;justify-content:space-between;padding:0 7px}.mobile-sheet-heading h2{font-size:17px;margin:0}.mobile-sheet-heading h2>span{font-size:11px;color:var(--muted);font-weight:400;margin-left:7px}.mobile-tabs-list{max-height:60vh;max-height:min(60vh,calc(var(--app-viewport-height,100dvh) - 180px));overflow:auto;padding:4px 0 8px;overscroll-behavior:contain}.mobile-tab-entry{display:flex;align-items:center;gap:5px;border-radius:9px;margin:5px 0;padding:0 5px 0 13px}.mobile-tab-entry>button:first-child{display:flex;align-items:center;gap:13px;min-height:65px;flex:1;text-align:left;min-width:0}.mobile-tab-entry>button:first-child>svg{color:var(--muted)}.mobile-tab-entry strong{font-size:13px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-tab-entry small{display:block;font-size:10px;margin-top:5px;color:var(--muted)}.mobile-tab-entry>button:first-child>span{min-width:0}.mobile-tab-entry.selected{background:var(--accent-soft);color:var(--accent-bright)}.mobile-tab-entry.selected>button:first-child>svg{color:var(--accent-bright)}.mobile-tab-entry .mobile-button>svg{width:17px}.mobile-sheet-new{width:100%;display:flex;align-items:center;gap:12px;padding:16px 14px;font-size:13px;color:var(--accent-bright);border-top:1px solid var(--border);min-height:55px}.mobile-menu-actions{padding:0 4px 5px;overflow:auto;max-height:calc(var(--app-viewport-height,100dvh) - 170px)}.mobile-menu-actions>button{width:100%;height:49px;display:flex;align-items:center;gap:14px;padding:0 10px;font-size:13px;border-radius:7px;text-align:left}.mobile-menu-actions>button>span{flex:1}.mobile-menu-actions>button>svg{color:var(--muted)}.mobile-menu-actions>button>svg:last-child{width:13px;color:var(--faint)}@media(hover:hover)and (pointer:fine){.mobile-menu-actions>button:hover{background:var(--surface-hover)}}.mobile-menu-sync{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);border-top:1px solid var(--border);padding:17px 14px;margin-top:6px}.settings-modal{height:calc(var(--app-viewport-height,100dvh) - 16px);max-height:calc(var(--app-viewport-height,100dvh) - 16px)}.settings-nav{padding:13px 45px 13px 12px;min-height:69px}.settings-nav>button{padding:10px 12px;min-height:39px;font-size:11px}.settings-content{padding:27px 23px calc(28px + env(safe-area-inset-bottom,0px))}.settings-content .setting-control select{max-width:150px;font-size:13px!important}.settings-content .setting-row{gap:14px;min-height:86px}.setting-row h4{font-size:12px}.setting-row p{font-size:10px}.setting-control .button{font-size:11px;min-height:36px;padding:7px 11px}.context-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;height:var(--app-viewport-height,100dvh);background:#0008;z-index:79;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.context-menu{left:0!important;right:0!important;top:auto!important;bottom:0;width:100%;max-height:calc(var(--app-viewport-height,100dvh) - 25px);padding:14px 13px calc(18px + env(safe-area-inset-bottom,0px));border-radius:17px 17px 0 0;border-bottom:0;overflow-y:auto}.context-menu>button{min-height:45px;font-size:13px;padding:11px 14px;gap:14px}.context-menu>button>svg{width:18px;height:18px}.menu-label{font-size:12px;padding:9px 14px 15px}.toast{top:calc(12px + env(safe-area-inset-top,0px));bottom:auto;font-size:12px;padding:13px 15px;border-radius:9px}.notice-bar{font-size:11px;padding:12px 16px}.empty-workspace{padding:35px 24px 110px}.empty-workspace h1{font-size:19px}.empty-workspace .button{min-height:43px;padding:11px 18px;font-size:13px}.empty-shortcuts{display:none}.login-screen{height:var(--app-viewport-height,100dvh)}}@keyframes drawer-left{0%{transform:translate(-35px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes drawer-right{0%{transform:translate(35px);opacity:0}to{transform:translate(0);opacity:1}}@media(prefers-reduced-motion:reduce){.left-sidebar,.right-sidebar,.workspace{animation:none!important;transition:none!important}}:root{--manuscript-font:"Segoe UI","Yu Gothic UI",system-ui,sans-serif}.writer-app{height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);overflow:hidden;--manuscript-size:18px}.writer-app button{touch-action:manipulation}.writer-notice{display:flex;align-items:center;gap:9px;min-height:36px;padding:9px 18px;background:var(--accent-soft);color:var(--accent-bright);font-size:11px;line-height:1.7;flex-shrink:0}.writer-notice.error{background:#b5484814;color:var(--danger)}.writer-notice>span{flex:1}.writer-notice>button{display:flex}.project-library{display:flex;flex-direction:column;flex:1;min-height:0}.library-header{height:62px;min-height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-bottom:1px solid var(--border);background:var(--tab-bg)}.library-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600;color:var(--text-strong);letter-spacing:-.04em}.library-brand i{width:1px;height:17px;background:var(--border);margin:0 7px 0 12px}.library-brand small{font-size:11px;font-weight:400;color:var(--muted);letter-spacing:.02em}.library-header>div:last-child{display:flex;align-items:center;gap:18px}.library-sync{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}@media(hover:hover)and (pointer:fine){.library-sync:hover{color:var(--text)}}.library-layout{display:flex;flex:1;min-height:0}.library-sidebar{width:207px;flex:0 0 207px;background:var(--sidebar);padding:30px 12px 18px;border-right:1px solid var(--border);display:flex;flex-direction:column}.library-nav-label{font-size:9px;letter-spacing:.08em;color:var(--faint);padding:0 15px 17px}.library-sidebar>button{display:flex;align-items:center;gap:10px;height:37px;border-radius:999px;text-align:left;color:var(--muted);padding:0 13px;font-size:12px;margin:3px 0}.library-sidebar>button>span{flex:1}.library-sidebar>button>small{font-size:10px;color:var(--faint)}.library-sidebar>button.selected{background:var(--accent-soft);color:var(--accent-bright)}.library-sidebar>button.selected>small{color:var(--accent-bright)}@media(hover:hover)and (pointer:fine){.library-sidebar>button:hover:not(.selected){background:var(--surface-hover);color:var(--text)}}.library-sidebar-bottom{margin-top:auto;display:flex;align-items:flex-start;gap:8px;padding:20px 13px 5px;border-top:1px solid var(--border);color:var(--faint)}.library-sidebar-bottom>svg{margin-top:1px}.library-sidebar-bottom>span{font-size:10px;color:var(--muted);line-height:1.6}.library-sidebar-bottom small{display:block;font-size:8px;line-height:1.8;color:var(--faint);margin-top:5px}.library-content{flex:1;min-width:0;overflow-y:auto;padding:28px 58px 22px}.library-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1160px;margin:0 auto 22px}.library-page-heading h1{color:var(--text-strong);font-size:31px;line-height:1.3;letter-spacing:-.04em;font-weight:600;margin:0}.library-page-heading p{font-size:11px;margin:0;color:var(--muted);display:flex;gap:10px;align-items:center}.library-page-heading p>span{color:var(--faint)}.create-project{font-size:11px;padding:8px 14px;min-height:35px}.library-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:1160px;margin:0 auto 16px;padding-bottom:12px;border-bottom:1px solid var(--border)}.library-controls h2{font-size:12px;font-weight:500;color:var(--text);margin:0;white-space:nowrap}.library-controls h2>span{font-size:10px;font-weight:400;color:var(--faint);margin-left:10px}.library-control-tools{display:flex;align-items:center;gap:12px}.library-search{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:5px;padding:0 10px;background:var(--input);height:31px;width:202px}.library-search:focus-within{border-color:var(--accent)}.library-search>svg{color:var(--faint);width:13px}.library-search>input{font-size:11px;flex:1;min-width:0;border:0!important;box-shadow:none!important;background:none;padding:0;height:29px}.library-controls select{font-size:10px;padding:7px 25px 7px 8px;background:var(--bg);color:var(--muted);height:31px}.library-view-toggle{display:flex;gap:3px}.library-view-toggle .icon-button{width:28px;height:28px}.library-view-toggle .icon-button>svg{width:15px;height:15px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(252px,1fr));gap:18px;max-width:1160px;margin:0 auto;align-items:stretch}.project-card{position:relative;border:1px solid var(--border);border-radius:8px;background:var(--sidebar);min-width:0;transition:border-color .15s,background .15s;overflow:hidden}@media(hover:hover)and (pointer:fine){.project-card:hover{border-color:var(--faint);background:color-mix(in srgb,var(--sidebar) 85%,var(--surface-hover))}}.project-card-open{display:block;text-align:left;width:100%;height:100%;padding:21px 22px 18px;min-height:216px}.project-card-top{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding-right:24px}.project-book-icon{color:var(--accent-bright);width:29px;height:29px;display:grid;place-items:center}.project-state{font-size:9px;color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:3px 6px;line-height:1.3}.project-state.completed{color:var(--accent-bright);border-color:color-mix(in srgb,var(--accent) 25%,var(--border));background:var(--accent-soft)}.project-card h3{font-size:17px;font-weight:550;line-height:1.6;letter-spacing:-.025em;color:var(--text-strong);margin:0 0 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card-synopsis{font-size:11px;color:var(--muted);line-height:1.9;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px;overflow-wrap:anywhere}.project-card-bottom{display:flex;gap:12px;align-items:center;font-size:9px;color:var(--faint);margin-top:24px}.project-card-bottom>span:first-child{display:flex;align-items:center;gap:5px}.project-card-bottom>time{margin-left:auto;white-space:nowrap}.project-card-menu{position:absolute;top:17px;right:13px;opacity:0}.project-card:focus-within .project-card-menu{opacity:1}@media(hover:hover)and (pointer:fine){.project-card:hover .project-card-menu{opacity:1}}.project-card-menu>svg{width:17px}.project-card-progress{height:2px;background:var(--border);margin-top:14px;border-radius:2px;overflow:hidden}.project-card-progress>span{display:block;height:100%;background:var(--accent)}.new-project-card{border:1px dashed var(--border);border-radius:8px;min-height:216px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:var(--faint);font-size:11px;transition:color .15s,border-color .15s}@media(hover:hover)and (pointer:fine){.new-project-card:hover{color:var(--accent-bright);border-color:var(--accent)}}.project-list .project-card-open{min-height:130px;padding:22px 28px 20px 82px;position:relative}.project-list .project-card-top{position:absolute;top:23px;left:25px;margin:0;display:block;padding:0}.project-list .project-state{display:none}.project-list .project-card h3{font-size:15px;padding-right:30px}.project-list .project-card-synopsis{min-height:0;-webkit-line-clamp:1}.project-list .project-card-bottom{margin-top:15px;max-width:350px}.project-list .new-project-card{min-height:74px;flex-direction:row;gap:12px}.library-empty{min-height:330px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:60px 20px;max-width:1160px;margin:auto}.library-empty>svg{color:var(--faint);margin-bottom:24px}.library-empty h2{font-size:18px;font-weight:500;color:var(--text);margin:0 0 12px;letter-spacing:-.02em}.library-empty p{font-size:11px;color:var(--faint);margin:0 0 25px;line-height:1.9}.library-footer{max-width:1160px;margin:49px auto 0;border-top:1px solid var(--border);padding:20px 0 0;display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--faint);font-size:9px}.library-footer>button{display:flex;align-items:center;gap:6px;font-size:9px}@media(hover:hover)and (pointer:fine){.library-footer>button:hover{color:var(--text)}}.library-mobile-filters{display:none}.writing-workspace{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}.writing-header{height:46px;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 17px;background:var(--tab-bg);border-bottom:1px solid var(--border)}.writing-header-left{display:flex;align-items:center;gap:17px;min-width:0}.back-to-library{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;white-space:nowrap;min-height:32px}@media(hover:hover)and (pointer:fine){.back-to-library:hover{color:var(--text)}}.writing-header-divider{width:1px;height:14px;background:var(--border);flex-shrink:0}.writing-project-name{font-size:12px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--text)}@media(hover:hover)and (pointer:fine){.writing-project-name:hover{color:var(--text-strong)}}.writing-header-tools{display:flex;align-items:center;gap:6px}.writing-header-tools .icon-button{width:28px;height:28px}.writing-header-tools .icon-button>svg{width:16px;height:16px}.writing-body{display:flex;flex:1;min-height:0;position:relative}.chapter-sidebar{width:227px;flex:0 0 227px;background:var(--sidebar);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.chapter-sidebar-title{height:63px;min-height:63px;display:flex;align-items:center;gap:9px;padding:0 20px}.chapter-sidebar-title>svg{color:var(--accent-bright)}.chapter-sidebar-title>span{font-size:12px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.chapter-sidebar-tabs{display:flex;align-items:center;gap:8px;padding:0 14px 15px;border-bottom:1px solid var(--border)}.chapter-sidebar-tabs>button{display:flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;font-size:10px;color:var(--muted);flex:1;justify-content:center}.chapter-sidebar-tabs>button.active{color:var(--text);background:var(--surface-hover)}.chapter-section-label{min-height:49px;display:flex;align-items:center;justify-content:space-between;padding:5px 14px 0 22px;font-size:10px;color:var(--muted)}.chapter-section-label>span>span{margin-left:8px;color:var(--faint);font-size:9px}.chapter-section-label>div{display:flex;gap:2px}.chapter-section-label .icon-button{width:25px;height:25px}.chapter-section-label .icon-button>svg{width:14px;height:14px}.chapter-list{overflow-y:auto;flex:1;min-height:0;padding:0 9px 20px}.chapter-item{display:flex;align-items:center;gap:1px;min-height:35px;border-radius:999px;position:relative;background:var(--sidebar);border:1px solid transparent;margin:3px 0}.chapter-item.selected{background:var(--accent-soft);color:var(--accent-bright)}@media(hover:hover)and (pointer:fine){.chapter-item:hover:not(.selected){background:var(--surface-hover)}}.chapter-item.is-dragging{z-index:20;border-color:var(--accent);box-shadow:0 6px 18px #0005}.chapter-drag{width:14px;min-width:14px;display:flex;align-items:center;justify-content:center;color:var(--faint);opacity:0;touch-action:none;cursor:grab;align-self:stretch}.chapter-item:focus-within .chapter-drag{opacity:1}@media(hover:hover)and (pointer:fine){.chapter-item:hover .chapter-drag{opacity:1}}.chapter-open{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;flex:1;min-height:35px;padding:4px 1px;font-size:11px}.chapter-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:1.6}.chapter-more{width:25px;align-self:stretch;letter-spacing:1px;color:var(--faint);font-size:9px;opacity:0}.chapter-item:focus-within .chapter-more{opacity:1}@media(hover:hover)and (pointer:fine){.chapter-item:hover .chapter-more{opacity:1}}.add-chapter-row{display:flex;align-items:center;gap:8px;padding:12px 10px 12px 18px;font-size:10px;color:var(--faint);width:100%}@media(hover:hover)and (pointer:fine){.add-chapter-row:hover{color:var(--accent-bright)}}.chapter-sidebar-summary{padding:17px 20px 19px;border-top:1px solid var(--border);margin-top:auto}.chapter-sidebar-summary>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;color:var(--faint)}.chapter-sidebar-summary strong{font-size:16px;font-weight:500;letter-spacing:-.025em;color:var(--muted);font-variant-numeric:tabular-nums}.chapter-sidebar-summary strong>small{font-size:9px;font-weight:400;margin-left:5px;color:var(--faint)}.writing-goal-bar{height:3px;background:var(--border);border-radius:2px;margin:13px 0 8px;overflow:hidden}.writing-goal-bar>span{display:block;height:100%;background:var(--accent)}.chapter-sidebar-summary>small{font-size:9px;color:var(--faint);display:block;text-align:right}.chapter-sidebar-summary>button{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--faint);margin-top:18px}@media(hover:hover)and (pointer:fine){.chapter-sidebar-summary>button:hover{color:var(--text)}}.chapter-sidebar-bottom{display:flex;align-items:center;justify-content:space-around;border-top:1px solid var(--border);height:48px;min-height:48px}.chapter-sidebar-bottom .icon-button>svg{width:16px;height:16px}.writing-search{flex:1;min-height:0;display:flex;flex-direction:column;padding:16px 13px}.writing-search>div{display:flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--input);border-radius:5px;padding:7px 9px;color:var(--faint)}.writing-search input{font-size:11px;background:none;box-shadow:none!important;border:0!important;width:100%;min-width:0}.writing-search>p{font-size:9px;color:var(--faint);margin:11px 4px}.writing-search>section{overflow-y:auto;flex:1;min-height:0}.writing-search section>button{display:block;text-align:left;width:100%;padding:12px 7px;border-bottom:1px solid var(--border);border-radius:4px}@media(hover:hover)and (pointer:fine){.writing-search section>button:hover{background:var(--surface-hover)}}.writing-search strong{font-size:11px;font-weight:500;display:block;margin-bottom:7px}.writing-search section span{font-size:10px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted)}.writer-drawer-close,.writer-drawer-backdrop{display:none}.manuscript-pane{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg);min-height:0}.manuscript-bar{height:39px;min-height:39px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;font-size:10px;color:var(--faint);gap:12px}.manuscript-bar>span{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manuscript-bar>div{display:flex;align-items:center;gap:8px}.manuscript-bar>div>span{font-size:9px;color:var(--faint)}.manuscript-bar .icon-button{height:24px;width:24px}.manuscript-bar .icon-button>svg{width:14px;height:14px}.desktop-manuscript-toolbar{display:flex;justify-content:center;padding:0 20px;border-bottom:1px solid var(--border)}.writing-toolbar{display:flex;align-items:center;justify-content:center;gap:10px;min-height:38px;width:100%;color:var(--muted)}.writing-toolbar-scroll{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none}.writing-toolbar-scroll::-webkit-scrollbar{display:none}.writing-toolbar button{width:29px;height:28px;min-width:29px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;color:var(--muted)}@media(hover:hover)and (pointer:fine){.writing-toolbar button:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}}.writing-toolbar button.active{background:var(--accent-soft);color:var(--accent-bright)}.writing-toolbar button:disabled{opacity:.25}.toolbar-separator{height:13px;width:1px;background:var(--border);margin:0 7px;flex-shrink:0}.manuscript-scroll{overflow-y:auto;flex:1;min-height:0;padding:40px 44px 80px;scroll-padding-top:30px}.manuscript-page{max-width:710px;margin:0 auto;min-height:100%}.manuscript-title{font-family:Segoe UI,Yu Gothic UI,system-ui,sans-serif;font-size:29px;font-weight:550;line-height:1.5;letter-spacing:-.04em;color:var(--text-strong);border:0!important;box-shadow:none!important;outline:0;background:none;border-radius:0;width:100%;display:block;padding:0 2px;margin:0 0 30px}.manuscript-title:focus{background:none}.writing-prose{font-family:var(--manuscript-font);font-size:var(--manuscript-size);line-height:1.95;color:var(--text);outline:none;min-height:45vh;white-space:pre-wrap;overflow-wrap:anywhere;padding:0 2px 80px;caret-color:var(--accent-bright);letter-spacing:.015em;font-weight:400}.writing-prose:focus{outline:none}.writing-prose p{margin:0 0 .8em;line-height:inherit}.indent-paragraphs .writing-prose p{text-indent:1em}.indent-paragraphs .writing-prose li p,.indent-paragraphs .writing-prose blockquote p{text-indent:0}.writing-prose p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;color:var(--faint);pointer-events:none}.writing-prose h1,.writing-prose h2,.writing-prose h3{color:var(--text-strong);font-family:var(--manuscript-font);font-weight:600;line-height:1.7;letter-spacing:0;margin:1.5em 0 .8em}.writing-prose h1{font-size:1.5em}.writing-prose h2{font-size:1.25em}.writing-prose h3{font-size:1.1em}.writing-prose a{color:var(--accent-bright);text-decoration:underline;text-underline-offset:3px}.writing-prose ul,.writing-prose ol{margin:1em 0;padding-left:1.5em}.writing-prose li{margin:.3em 0}.writing-prose li>p{margin:0}.writing-prose blockquote{border-left:2px solid var(--accent);padding:0 0 0 20px;margin:1.4em 0;color:var(--muted)}.writing-prose pre{font-family:Consolas,monospace;font-size:.8em;line-height:1.8;background:var(--sidebar);padding:16px;border-radius:4px;overflow:auto}.writing-prose :not(pre)>code{font-family:Consolas,monospace;background:var(--surface-hover);padding:2px 4px;border-radius:3px;font-size:.85em}.writing-prose hr{border:0;border-top:1px solid var(--border);margin:2em 0}.writing-prose .ProseMirror-selectednode{outline:1px solid var(--accent)}.reading-mode .writing-prose{cursor:default}.manuscript-status{display:flex;align-items:center;gap:17px;min-height:26px;height:26px;border-top:1px solid var(--border);padding:0 17px;font-size:9px;color:var(--faint);background:var(--sidebar);font-variant-numeric:tabular-nums}.manuscript-status>button{margin-left:auto;display:flex;align-items:center;gap:4px;color:var(--muted);font-size:9px;white-space:nowrap}@media(hover:hover)and (pointer:fine){.manuscript-status>button:hover{color:var(--text)}}.manuscript-empty{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px;text-align:center}.manuscript-empty>svg{color:var(--faint);margin-bottom:25px}.manuscript-empty h2{font-size:19px;font-weight:500;color:var(--text);margin:0 0 13px}.manuscript-empty p{font-size:11px;color:var(--faint);margin:0 0 26px}.writing-plot-panel{width:314px;flex:0 0 314px;border-left:1px solid var(--border);background:var(--sidebar);display:flex;flex-direction:column;min-height:0}.plot-panel-heading{display:flex;align-items:center;justify-content:space-between;height:55px;min-height:55px;padding:0 15px 0 20px;border-bottom:1px solid var(--border);gap:12px}.plot-panel-heading>div{display:flex;align-items:center;gap:8px}.plot-panel-heading>div:first-child>svg{color:var(--muted)}.plot-panel-heading strong{font-size:12px;font-weight:500}.plot-panel-heading span{font-size:9px;color:var(--faint);margin-left:2px}.plot-panel-heading button{width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:4px;color:var(--muted)}@media(hover:hover)and (pointer:fine){.plot-panel-heading button:hover{background:var(--surface-hover);color:var(--text)}}.plot-panel-heading .plot-close{display:none}.plot-scroll{overflow-y:auto;flex:1;min-height:0;padding:21px 15px 30px;overscroll-behavior:contain}.plot-flow-label{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--faint);margin:0 4px 18px;letter-spacing:.035em}.plot-flow-label>span{width:11px;height:1px;background:var(--accent)}.plot-sequence{display:flex;flex-direction:column;gap:0}.plot-step{position:relative;padding-bottom:27px}.plot-step:last-child{padding-bottom:0}.plot-step.is-dragging{z-index:20;opacity:.9}.plot-step.is-dragging .plot-card{box-shadow:0 8px 24px #0006;border-color:var(--accent)}.plot-card{border:1px solid var(--border);border-radius:7px;padding:13px 12px 9px;background:var(--bg);position:relative;transition:border-color .15s}.plot-card:focus-within{border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}.plot-card-heading{display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:11px}.plot-number{font-size:9px;color:var(--accent-bright);font-variant-numeric:tabular-nums;min-width:21px;height:21px;display:grid;place-items:center;background:var(--accent-soft);border-radius:4px;font-family:Segoe UI,sans-serif}.plot-card-heading>input{font-size:11px;font-weight:500;line-height:1.7;border:0!important;box-shadow:none!important;background:none;min-width:0;width:100%;padding:0 1px;color:var(--text-strong)}.plot-grip{color:var(--faint);display:flex;align-items:center;justify-content:center;width:17px;min-width:17px;height:24px;cursor:grab;touch-action:none}.plot-card>textarea{display:block;border:0!important;box-shadow:none!important;background:none;font-size:11px;line-height:1.85;width:100%;resize:none;padding:0 1px;min-height:72px;overflow:hidden;color:var(--muted);border-radius:0}.plot-card>textarea::placeholder{color:var(--faint)}.plot-card-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid var(--border);padding-top:8px;margin-top:13px}.plot-card-footer>select{font-size:8px;line-height:1.5;border:0!important;box-shadow:none!important;color:var(--faint);background:var(--bg);max-width:130px;min-width:0;padding:3px 0}.plot-card-footer>div{display:flex;gap:2px}.plot-card-footer button{width:22px;height:23px;display:flex;align-items:center;justify-content:center;color:var(--faint);border-radius:3px}@media(hover:hover)and (pointer:fine){.plot-card-footer button:hover:not(:disabled){color:var(--text);background:var(--surface-hover)}}@media(hover:hover)and (pointer:fine){.plot-card-footer button:last-child:hover{color:var(--danger)}}.plot-connector{position:absolute;left:50%;top:calc(100% - 27px);bottom:2px;width:1px;background:var(--border)}.plot-connector>svg{position:absolute;bottom:-1px;left:-5.5px;color:var(--faint)}.plot-add-block{display:flex;align-items:center;justify-content:center;gap:7px;min-height:37px;width:100%;border:1px dashed var(--border);color:var(--faint);font-size:10px;border-radius:5px;margin-top:25px}@media(hover:hover)and (pointer:fine){.plot-add-block:hover{border-color:var(--accent);color:var(--accent-bright)}}.plot-empty{display:flex;align-items:center;flex-direction:column;text-align:center;padding:58px 8px}.plot-empty>svg{color:var(--faint);margin-bottom:21px}.plot-empty h3{font-size:12px;font-weight:500;line-height:1.8;color:var(--muted);margin:0 0 10px}.plot-empty p{color:var(--faint);font-size:10px;line-height:1.9;margin:0 0 25px}.plot-empty .button{font-size:10px;min-height:30px;padding:6px 10px;background:none}.focus-mode .manuscript-page{max-width:740px}.focus-mode .manuscript-scroll{padding-top:52px}.focus-mode .desktop-manuscript-toolbar{opacity:.4;transition:opacity .15s}.focus-mode .desktop-manuscript-toolbar:focus-within{opacity:1}@media(hover:hover)and (pointer:fine){.focus-mode .desktop-manuscript-toolbar:hover{opacity:1}}.project-dialog{width:480px;padding:31px 33px}.project-dialog-icon{width:43px;height:43px;display:grid;place-items:center;color:var(--accent-bright);background:var(--accent-soft);border-radius:8px;margin-bottom:22px}.project-dialog>h2{font-size:21px;margin-bottom:8px}.project-dialog>p{font-size:11px;margin:0 0 26px}.project-dialog label{font-size:11px;display:block;margin:18px 0;color:var(--muted)}.project-dialog label>small,.project-goal-label small{font-size:9px;color:var(--faint);margin-left:4px}.project-dialog label>input,.project-dialog label>textarea{display:block;width:100%;padding:10px 11px;font-size:13px;margin-top:9px}.project-dialog label>textarea{resize:vertical;line-height:1.8;min-height:94px;max-height:220px}.project-dialog .project-goal-label{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.project-goal-label>div{display:flex;align-items:center;gap:7px;font-size:10px}.project-goal-label input{width:135px;max-width:135px;padding:8px 9px;font-size:11px}.project-dialog .modal-actions{margin-top:28px}.writer-context-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:79;background:transparent}.writer-context-menu{z-index:80}.toast .toast-undo{color:var(--accent-bright);font-size:10px;margin-left:7px;white-space:nowrap}.writer-mobile-dock{display:none}.writer-app .history-preview{font-family:var(--manuscript-font);font-size:14px;line-height:1.9}@media(min-width:1750px){.chapter-sidebar{width:250px;flex-basis:250px}.writing-plot-panel{width:342px;flex-basis:342px}.manuscript-scroll{padding-top:52px}.manuscript-page{max-width:740px}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1200px){.library-content{padding:28px 32px 22px}.library-sidebar{width:185px;flex-basis:185px}.library-search{width:170px}.library-controls{align-items:flex-start}.library-controls h2{padding-top:9px}.library-control-tools{gap:7px}.chapter-sidebar{width:200px;flex-basis:200px}.writing-plot-panel{width:280px;flex-basis:280px}.manuscript-scroll{padding:35px 31px 75px}.plot-scroll{padding:19px 11px 26px}.plot-card{padding:12px 10px 9px}.plot-card-footer>select{max-width:105px}.manuscript-status{gap:10px;font-size:8px}}@media(min-width:760px)and (max-width:1000px){.library-sidebar{width:160px;flex-basis:160px;padding-left:8px;padding-right:8px}.library-content{padding:24px 25px 20px}.library-controls{display:block}.library-controls h2{margin-bottom:15px}.library-control-tools{justify-content:space-between}.library-search{width:50%}.chapter-sidebar{width:180px;flex-basis:180px}.writing-plot-panel{width:245px;flex-basis:245px}.manuscript-scroll{padding:28px 24px 75px}.manuscript-title{font-size:25px}.writing-prose{font-size:calc(var(--manuscript-size) - 1px)}.plot-card-heading>input{font-size:10px}.plot-card-footer{flex-wrap:wrap}.plot-card-footer>select{max-width:115px}.writing-header{padding:0 12px}.writing-header-tools{gap:2px}}@media(max-width:759px){.writer-app{height:var(--mobile-height,100dvh)}.writer-notice{font-size:11px;padding:10px 14px}.library-header{height:calc(58px + env(safe-area-inset-top,0px));min-height:calc(58px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 16px 0}.library-brand{font-size:19px;gap:9px}.library-brand i,.library-brand small{display:none}.library-brand>svg{width:25px;height:25px}.library-header>div:last-child{gap:8px}.library-header .icon-button{width:40px;height:40px}.library-sync{width:36px;height:40px;justify-content:center}.library-sync>svg{width:18px;height:18px}.library-sync>span{display:none}.library-sidebar{display:none}.library-content{padding:20px 20px calc(25px + env(safe-area-inset-bottom,0px))}.library-page-heading{margin-bottom:16px;gap:13px}.library-page-heading h1{font-size:29px;margin-bottom:0}.library-page-heading p{font-size:10px;gap:8px}.create-project{min-height:39px;padding:9px 12px;font-size:11px;gap:6px}.create-project>svg{width:15px}.library-mobile-filters{display:flex;gap:5px;overflow-x:auto;margin:0 -1px 12px;padding:0 0 8px;border-bottom:1px solid var(--border);scrollbar-width:none}.library-mobile-filters>button{min-height:35px;padding:7px 12px;font-size:12px;color:var(--muted);border-radius:999px;white-space:nowrap}.library-mobile-filters>button.active{color:var(--accent-bright);background:var(--accent-soft)}.library-controls{display:block;padding:0;border:0;margin-bottom:14px}.library-controls h2{display:none}.library-control-tools{gap:8px;width:100%;justify-content:space-between}.library-search{flex:1;min-width:0;width:auto;height:38px;padding:0 10px;gap:7px}.library-search>input{font-size:16px;height:36px;width:100%}.library-controls select{font-size:11px;max-width:112px;height:37px;padding-left:7px}.library-view-toggle{display:none}.project-grid{grid-template-columns:1fr;gap:14px}.project-card-open{padding:22px 22px 19px;min-height:212px}.project-card-top{margin-bottom:18px}.project-card h3{font-size:18px}.project-card-synopsis{font-size:12px;line-height:1.85;min-height:43px}.project-card-bottom{font-size:10px;margin-top:24px}.project-card-menu{opacity:1;right:12px;top:14px;width:38px;height:38px}.project-card-menu>svg{width:19px;height:19px}.project-card-top{padding-right:32px}.new-project-card{min-height:104px;gap:10px;flex-direction:row;font-size:12px}.new-project-card>svg{width:23px}.project-list .project-card-open{min-height:143px;padding:23px 23px 20px 76px}.project-list .project-card h3{font-size:16px}.project-list .project-card-top{left:22px;top:25px}.project-list .project-card-bottom{max-width:none}.library-footer{margin-top:30px;flex-direction:column;align-items:flex-start;gap:16px;font-size:10px;padding-top:21px}.library-footer>button{font-size:10px;min-height:30px}.library-empty{min-height:360px;padding:55px 10px}.library-empty h2{font-size:17px;line-height:1.8}.library-empty p{font-size:11px;line-height:1.9}.library-empty .button{min-height:41px;font-size:12px}.writing-header{height:calc(56px + env(safe-area-inset-top,0px));min-height:calc(56px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 9px 0;gap:6px;background:var(--bg)}.writing-header-left{gap:10px;flex:1;min-width:0}.back-to-library{width:35px;min-width:35px;height:43px;justify-content:center}.back-to-library>svg{width:22px;height:22px}.back-to-library>span,.writing-header-divider{display:none}.writing-project-name{font-size:13px;min-height:43px;text-align:left;max-width:100%}.writing-header-tools{gap:2px}.writing-header-tools .icon-button{width:38px;height:42px}.writing-header-tools .icon-button>svg{width:20px;height:20px}.desktop-writing-action{display:none}.writing-body{min-height:0}.chapter-sidebar,.writing-plot-panel{position:absolute;top:0;bottom:0;height:100%;width:min(355px,calc(100vw - 35px));flex-basis:auto;z-index:45;box-shadow:0 0 30px #0004}.chapter-sidebar{left:0;animation:drawer-left .18s ease-out}.writing-plot-panel{right:0;display:flex;animation:drawer-right .18s ease-out}.writer-drawer-backdrop{display:block;position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;background:#0008;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}.writer-drawer-close{display:inline-flex;width:42px;height:42px}.chapter-sidebar-title{height:63px;min-height:63px;padding-left:22px;padding-right:10px;font-size:14px}.chapter-sidebar-title>span{font-size:14px}.chapter-sidebar-tabs{padding:0 16px 14px}.chapter-sidebar-tabs>button{min-height:38px;font-size:12px}.chapter-section-label{min-height:54px;padding-left:24px;font-size:12px}.chapter-section-label .icon-button{width:38px;height:38px}.chapter-section-label .icon-button>svg{width:18px;height:18px}.chapter-item{min-height:46px;margin:4px 0}.chapter-open{min-height:46px;font-size:13px;gap:12px}.chapter-drag{min-width:20px;width:20px;opacity:1}.chapter-more{opacity:1;width:34px;font-size:10px}.chapter-list{padding:0 12px 20px}.add-chapter-row{font-size:12px;padding:16px 17px;min-height:46px}.chapter-sidebar-summary{padding:17px 23px 20px}.chapter-sidebar-summary>div:first-child{font-size:11px}.chapter-sidebar-summary strong{font-size:18px}.chapter-sidebar-summary>button{min-height:29px;font-size:11px}.chapter-sidebar-bottom{height:calc(59px + env(safe-area-inset-bottom,0px));min-height:calc(59px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px)}.chapter-sidebar-bottom>.icon-button{width:44px;height:44px}.chapter-sidebar-bottom .icon-button>svg{width:20px;height:20px}.writing-search{padding:17px}.writing-search>div{height:43px}.writing-search input{font-size:16px}.writing-search>p{font-size:10px;margin:14px 5px}.writing-search strong{font-size:13px}.writing-search section span{font-size:12px}.writing-search section>button{padding:16px 9px}.manuscript-bar{height:40px;min-height:40px;padding:0 19px;font-size:10px}.manuscript-bar>div{gap:5px}.manuscript-bar .icon-button{height:30px;width:29px}.manuscript-bar .icon-button>svg{width:16px;height:16px}.desktop-manuscript-toolbar{display:none}.manuscript-scroll{padding:26px 24px 110px;scroll-padding-top:20px;scroll-padding-bottom:100px;overscroll-behavior:contain}.manuscript-title{font-size:28px;margin-bottom:27px}.writing-prose{font-size:var(--manuscript-size);line-height:1.95;min-height:40vh;padding-bottom:80px;letter-spacing:.005em}.manuscript-status{height:26px;min-height:26px;padding:0 14px;font-size:9px;gap:12px}.manuscript-status>span:nth-child(2){display:none}.manuscript-status>button{font-size:9px}.writer-mobile-dock{display:flex;align-items:center;justify-content:space-around;position:absolute;left:50%;transform:translate(-50%);bottom:calc(38px + env(safe-area-inset-bottom,0px));width:min(345px,calc(100% - 32px));height:58px;padding:5px 8px;background:var(--sidebar);border:1px solid var(--border);border-radius:32px;box-shadow:0 5px 22px #0003;z-index:35}.writer-mobile-dock>button{height:45px;width:45px;min-width:45px;display:grid;place-items:center;color:var(--muted);border-radius:50%}.writer-mobile-dock>button.mobile-write-add{color:var(--accent-bright);border:1px solid var(--border);height:38px;width:38px;min-width:38px}@media(hover:hover)and (pointer:fine){.writer-mobile-dock>button:hover{background:var(--surface-hover);color:var(--text)}}.writing-toolbar.is-mobile{position:absolute;bottom:26px;left:0;right:0;z-index:35;height:calc(51px + env(safe-area-inset-bottom,0px));padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px));background:var(--sidebar);border-top:1px solid var(--border);justify-content:space-between;gap:7px}.writing-toolbar.is-mobile .writing-toolbar-scroll{justify-content:flex-start;flex:1;gap:4px}.writing-toolbar.is-mobile button{height:40px;width:40px;min-width:40px}.writing-toolbar.is-mobile button>svg{width:19px;height:19px}.writing-toolbar.is-mobile>.writing-toolbar-scroll+.button{min-width:44px}.writing-toolbar.is-mobile>button:last-child{position:relative;border-left:1px solid var(--border);border-radius:0}.writing-toolbar.is-mobile>button:last-child>svg:last-child{position:absolute;bottom:2px;width:10px;height:10px}.writing-toolbar.is-mobile .toolbar-separator{margin:0 4px}.writer-editing .manuscript-scroll{padding-bottom:60px}.writer-editing .manuscript-status{padding-bottom:0}.plot-panel-heading{min-height:59px;height:59px;padding-left:23px;padding-right:10px}.plot-panel-heading strong{font-size:14px}.plot-panel-heading>div:first-child>svg{width:20px;height:20px}.plot-panel-heading button{width:38px;height:42px}.plot-panel-heading .plot-close{display:flex}.plot-scroll{padding:22px 18px calc(30px + env(safe-area-inset-bottom,0px))}.plot-flow-label{font-size:10px;margin-bottom:20px}.plot-card{padding:15px 14px 11px}.plot-card-heading{gap:9px;margin-bottom:13px}.plot-number{min-width:24px;height:24px;font-size:10px}.plot-card-heading>input{font-size:16px;line-height:1.6}.plot-grip{width:25px;min-width:25px;height:33px}.plot-grip>svg{width:18px;height:18px}.plot-card>textarea{font-size:16px;line-height:1.8;min-height:83px}.plot-card-footer{padding-top:11px;margin-top:16px}.plot-card-footer>select{font-size:11px;max-width:145px;min-height:32px}.plot-card-footer button{width:30px;height:32px}.plot-card-footer button>svg{width:15px;height:15px}.plot-step{padding-bottom:31px}.plot-connector{top:calc(100% - 31px)}.plot-add-block{font-size:12px;min-height:44px;margin-top:25px}.plot-empty{padding-top:62px}.plot-empty h3{font-size:14px}.plot-empty p{font-size:12px}.plot-empty .button{font-size:12px;min-height:39px;padding:9px 13px}.project-dialog{padding:30px 25px calc(25px + env(safe-area-inset-bottom,0px))}.project-dialog label{font-size:12px}.project-dialog label>input,.project-dialog label>textarea{font-size:16px}.project-dialog label>textarea{max-height:160px}.project-goal-label input{font-size:14px;width:132px;max-width:132px;padding:10px 9px}.project-dialog .project-goal-label{gap:10px}.project-dialog>h2{font-size:22px}.project-dialog>p{font-size:12px}.writer-context-backdrop{background:#0008;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);height:var(--app-viewport-height,100dvh)}.writer-context-menu{left:0!important;right:0!important;top:auto!important;bottom:0;width:100%;max-height:calc(var(--app-viewport-height,100dvh) - 20px)}.writer-menu-sheet{padding-bottom:calc(15px + env(safe-area-inset-bottom,0px))}.writer-app .history-preview{font-size:12px}.manuscript-empty{padding-bottom:120px}.manuscript-empty h2{font-size:18px}.manuscript-empty .button{min-height:41px}.writer-app .toast{max-width:calc(100vw - 25px);width:max-content;gap:8px}.toast .toast-undo{font-size:11px}}@media(prefers-reduced-motion:reduce){.project-card,.chapter-sidebar,.writing-plot-panel{transition:none!important;animation:none!important}}.create-work-modal{width:484px;min-height:535px;padding:34px 35px 32px;background:var(--bg);border-radius:10px}.create-work-brand{display:flex;flex-direction:column;align-items:center;gap:19px;margin:3px 0 43px}.create-work-brand>svg{width:73px;height:80px}.create-work-brand>strong{font-size:29px;line-height:1;letter-spacing:-.055em;font-weight:650;color:var(--text-strong)}.create-work-modal h2{font-size:13px;font-weight:600;letter-spacing:0;margin:0 0 17px 2px}.create-work-options{background:var(--surface);border-radius:11px;padding:0 19px}.create-work-option{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:84px;padding:15px 0}.create-work-option+.create-work-option{border-top:1px solid var(--border)}.create-work-option>div{min-width:0}.create-work-option label,.create-work-option>div>span{font-size:12px;font-weight:500;color:var(--text);display:block;margin:0 0 5px}.create-work-option p{font-size:10px;color:var(--muted);line-height:1.65;margin:0}.create-work-option>input{width:152px;min-width:115px;max-width:50%;height:32px;flex-shrink:0;padding:6px 9px;background:var(--surface-hover);font-size:12px}.create-work-option>.button{min-width:100px;min-height:31px;font-size:12px;background:var(--surface-hover);padding:5px 12px}.create-work-location{font-family:Consolas,monospace;color:var(--faint);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 0 14px;line-height:1.7}.create-work-submit{display:flex;justify-content:center;margin-top:15px}.create-work-submit .button{min-height:32px;padding:6px 13px;font-size:12px}.create-work-notice{font-size:10px!important;color:var(--muted);line-height:1.8;margin:12px 2px 0}.create-work-modal>.modal-close{top:12px;right:12px}.writing-header{height:62px;min-height:62px;padding-left:27px;padding-right:23px}.writing-header-left{gap:18px}.writing-brand{flex-shrink:0;min-height:41px;gap:10px;background:none;border:0}@media(hover:hover)and (pointer:fine){.writing-brand:hover{color:var(--text-strong)}}.writing-brand>span{font-size:18px}.chapter-section-label>span{font-size:10px}.chapter-section-label>div{gap:1px}.chapter-folder{position:relative}.chapter-folder-row{display:flex;align-items:center;min-height:34px;margin:3px 0;border-radius:999px;background:var(--sidebar);gap:3px;padding-right:4px}@media(hover:hover)and (pointer:fine){.chapter-folder-row:hover{background:var(--surface-hover)}}.chapter-folder-open{display:flex;align-items:center;gap:6px;flex:1;min-width:0;min-height:34px;text-align:left;color:var(--text)}.chapter-folder-open>span{font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chapter-folder-open>svg{color:var(--faint);flex-shrink:0}.chapter-folder-open>svg:first-child{transition:transform .13s}.chapter-folder-open>svg.expanded{transform:rotate(90deg)}.chapter-folder-row.contains-active .chapter-folder-open>span{color:var(--accent-bright)}.chapter-folder-menu{width:24px;height:30px;display:grid;place-items:center;color:var(--faint);border-radius:4px;opacity:0;flex-shrink:0}.chapter-folder-row:focus-within .chapter-folder-menu{opacity:1}@media(hover:hover)and (pointer:fine){.chapter-folder-row:hover .chapter-folder-menu{opacity:1}}@media(hover:hover)and (pointer:fine){.chapter-folder-menu:hover{color:var(--text);background:var(--surface-hover)}}.episode-group .chapter-item{min-height:33px;margin:2px 0}.empty-chapter-add{display:flex;align-items:center;gap:6px;font-size:9px;line-height:1.7;min-height:31px;color:var(--faint);width:100%;text-align:left;padding-right:9px}@media(hover:hover)and (pointer:fine){.empty-chapter-add:hover{color:var(--accent-bright)}}.chapter-folder-contents{padding-bottom:3px}.writer-context-menu .menu-divider{margin-top:6px;margin-bottom:6px}@media(max-width:1200px){.writing-header{padding-left:22px;padding-right:15px}.writing-header-left{gap:13px}.chapter-section-label{padding-left:17px;padding-right:9px}.chapter-section-label .icon-button{width:23px}}@media(max-width:759px){.writing-header{height:calc(58px + env(safe-area-inset-top,0px));min-height:calc(58px + env(safe-area-inset-top,0px));padding-left:16px;padding-right:8px}.writing-header-left{gap:11px;flex:1}.writing-brand{gap:8px}.writing-brand>svg{width:25px;height:25px}.writing-brand>span{font-size:19px}.writing-header .writing-header-divider{display:block;height:17px}.writing-project-name{font-size:11px;min-height:42px;max-width:140px}.writing-header-tools .icon-button{width:33px;min-width:33px}.writing-header-tools .icon-button>svg{width:19px;height:19px}.writing-header-tools .desktop-writing-action{display:none}.create-work-modal{width:100%;min-height:515px;padding:29px 24px calc(28px + env(safe-area-inset-bottom,0px));border-radius:17px 17px 0 0}.create-work-brand{gap:17px;margin:0 0 34px}.create-work-brand>svg{width:65px;height:71px}.create-work-brand>strong{font-size:27px}.create-work-modal h2{font-size:14px;margin-bottom:17px}.create-work-options{padding:0 17px}.create-work-option{min-height:89px;gap:10px;padding:16px 0}.create-work-option label,.create-work-option>div>span{font-size:12px}.create-work-option p{font-size:10px}.create-work-option>input{height:38px;min-width:118px;max-width:50%;padding:8px 9px;font-size:16px}.create-work-option>.button{min-width:91px;min-height:36px;font-size:12px}.create-work-submit{margin-top:18px}.create-work-submit .button{min-height:39px;font-size:13px;padding:9px 17px}.create-work-location{font-size:9px;padding-bottom:14px}.create-work-modal>.modal-close{top:10px;right:11px;width:35px;height:35px}.chapter-section-label{padding-left:24px;padding-right:13px}.chapter-section-label>span{font-size:12px}.chapter-section-label .icon-button{width:35px;height:38px}.chapter-folder-row{min-height:43px;margin:4px 0}.chapter-folder-open{min-height:43px;gap:8px}.chapter-folder-open>span{font-size:13px}.chapter-folder-open>svg:first-child{width:14px;height:14px}.chapter-folder-open>svg:nth-child(2){width:17px;height:17px}.chapter-folder-menu{opacity:1;width:32px;height:39px}.chapter-folder-menu>svg{width:17px;height:17px}.episode-group .chapter-item{min-height:44px;margin:3px 0}.empty-chapter-add{font-size:11px;min-height:39px}.project-card-bottom{gap:10px}}@media(max-width:375px){.writing-project-name{max-width:90px}.writing-header-left{gap:8px}.writing-brand>span{font-size:17px}.writing-brand>svg{width:23px;height:23px}.create-work-modal{padding-left:18px;padding-right:18px}.create-work-options{padding-left:14px;padding-right:14px}.create-work-option>input{min-width:112px}}@media(max-width:759px){.create-work-modal{min-height:min(515px,calc(var(--app-viewport-height,100dvh) - 18px))}}.project-grid{grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:27px}.preview-project-card{border-radius:12px;border-color:color-mix(in srgb,var(--border) 77%,var(--muted));background:var(--surface);overflow:hidden}@media(hover:hover)and (pointer:fine){.preview-project-card:hover{border-color:var(--muted);background:var(--surface)}}.preview-project-card .project-card-open{padding:0;min-height:0;display:flex;flex-direction:column;height:100%;text-align:left}.project-card-preview{position:relative;aspect-ratio:16/9;width:100%;overflow:hidden;background:var(--sidebar);border-bottom:1px solid var(--border);isolation:isolate}.project-preview-footer{display:flex;align-items:center;gap:11px;min-height:64px;width:100%;padding:13px 45px 13px 15px;background:var(--surface);min-width:0}.project-file-mark{display:grid;place-items:center;width:19px;height:19px;min-width:19px;border-radius:50%;background:var(--accent);color:#fff}.project-file-mark>svg{width:13px;height:13px}.project-preview-information{min-width:0;flex:1}.project-preview-information>strong{display:block;font-size:12px;font-weight:550;line-height:1.55;color:var(--text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 3px}.project-preview-meta{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;color:var(--muted);font-size:10px;line-height:1.5;min-width:0}.project-preview-meta>time{flex-shrink:0}.project-meta-separator{color:var(--faint)}.project-preview-meta>.project-genre{color:var(--muted);overflow:hidden;text-overflow:ellipsis}.preview-project-card .project-card-menu{top:auto;bottom:17px;right:9px;width:28px;height:28px;z-index:2}.preview-project-card .project-card-menu>svg{width:17px;height:17px}.preview-project-card .project-card-progress{position:absolute;bottom:0;left:0;right:0;height:2px;margin:0;border-radius:0}.project-list{grid-template-columns:1fr}.project-list .preview-project-card .project-card-open{padding:0;min-height:104px;flex-direction:row;align-items:stretch}.project-list .project-card-preview{width:174px;flex:0 0 174px;aspect-ratio:16/9;border-bottom:0;border-right:1px solid var(--border)}.project-list .project-preview-footer{min-height:104px;flex:1;padding-left:24px;gap:12px}.project-list .project-preview-information>strong{font-size:14px;margin-bottom:6px}.project-list .project-preview-meta{font-size:11px}.project-list .preview-project-card .project-card-menu{top:50%;bottom:auto;transform:translateY(-50%);right:20px}.create-work-option>select{width:152px;min-width:115px;max-width:50%;height:33px;padding:6px 24px 6px 9px;background:var(--surface-hover);color:var(--text);font-size:11px}.project-dialog label>select{display:block;width:100%;padding:10px 11px;font-size:13px;margin-top:9px;background:var(--input);height:39px}.create-work-location{display:none}@media(min-width:1750px){.project-grid{grid-template-columns:repeat(auto-fill,minmax(258px,1fr))}.project-list{grid-template-columns:1fr}}@media(max-width:759px){.project-grid{grid-template-columns:1fr;gap:21px}.preview-project-card{border-radius:12px}.preview-project-card .project-card-open{padding:0;min-height:0}.project-preview-footer{min-height:68px;padding:14px 48px 14px 17px;gap:11px}.project-preview-information>strong{font-size:13px;line-height:1.6}.project-preview-meta{font-size:11px}.project-file-mark{width:20px;height:20px;min-width:20px}.preview-project-card .project-card-menu{top:auto;bottom:16px;right:9px;width:35px;height:35px;opacity:1}.preview-project-card .project-card-menu>svg{width:19px;height:19px}.project-list .preview-project-card .project-card-open{min-height:104px}.project-list .project-card-preview{width:120px;flex-basis:120px;min-height:104px}.project-list .project-preview-footer{min-height:104px;padding:14px 40px 14px 14px;gap:9px}.project-list .project-file-mark{display:none}.project-list .project-preview-information>strong{font-size:13px}.project-list .project-preview-meta{font-size:10px;gap:4px;flex-wrap:wrap;white-space:normal}.project-list .preview-project-card .project-card-menu{right:4px;top:50%;bottom:auto;transform:translateY(-50%)}.create-work-option>select{height:38px;min-width:118px;max-width:50%;font-size:16px;padding:8px 25px 8px 9px}.project-dialog label>select{font-size:16px;height:43px}}.writer-select{display:inline-flex;vertical-align:middle;min-width:0;max-width:100%;font-size:12px;line-height:1.5}.writer-select .writer-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-width:0;min-height:34px;height:auto;padding:7px 12px;border:1px solid var(--border);border-radius:6px;background:var(--input);color:var(--text);font:inherit;line-height:1.5;text-align:left;box-shadow:0 1px 2px #0001;cursor:pointer}.writer-select .writer-select-trigger>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.writer-select .writer-select-trigger>svg{flex:0 0 14px;width:14px;height:14px;margin:0;color:var(--muted);transition:transform .12s}.writer-select .writer-select-trigger[aria-expanded=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.writer-select .writer-select-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}@media(hover:hover)and (pointer:fine){.writer-select .writer-select-trigger:hover:not(:disabled){border-color:var(--faint)}}.writer-select .writer-select-trigger:disabled{cursor:default}.writer-select-menu{position:fixed;z-index:1000;box-sizing:border-box;padding:5px;overflow-y:auto;overscroll-behavior:contain;scroll-padding:5px;background:var(--surface);color:var(--text);border:1px solid color-mix(in srgb,var(--border) 75%,var(--muted));border-radius:8px;box-shadow:0 10px 35px #0005;font-size:12px;line-height:1.5;animation:select-appear .1s ease-out}.writer-select-option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:34px;padding:7px 10px;border-radius:4px;cursor:pointer;-webkit-user-select:none;user-select:none}.writer-select-option>span{min-width:0;overflow-wrap:anywhere}.writer-select-option>svg{flex-shrink:0;color:var(--accent-bright)}.writer-select-option.is-selected{color:var(--accent-bright)}.writer-select-option.is-active{background:var(--surface-hover)}.writer-select-option.is-active.is-selected{background:var(--accent-soft)}.writer-select-option.is-disabled{opacity:.4;cursor:default}@keyframes select-appear{0%{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}.library-controls .writer-select{width:154px;flex-shrink:0;font-size:11px}.library-controls .writer-select-trigger{min-height:32px;background:var(--bg);color:var(--muted)}.setting-control .writer-select{min-width:126px;max-width:170px;font-size:11px}.project-dialog label>.writer-select{display:flex;width:100%;margin-top:9px;font-size:13px}.project-dialog label>.writer-select .writer-select-trigger{min-height:39px}.prompt-modal>.writer-select{display:flex;width:100%;font-size:13px}.prompt-modal>.writer-select .writer-select-trigger{min-height:39px}.create-work-option>.writer-select{width:152px;min-width:115px;max-width:50%;font-size:11px}.create-work-option .writer-select-trigger{min-height:33px;background:var(--surface-hover)}.plot-card-footer>.writer-select{max-width:155px;font-size:10px;flex:1}.plot-card-footer .writer-select .writer-select-trigger{min-height:29px;padding:4px 8px;gap:8px;background:var(--bg);color:var(--muted);border:1px solid var(--border);box-shadow:none}.preview-project-card .project-card-pin,.preview-project-card .project-card-drag{position:absolute;top:10px;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#0003;color:#fff;z-index:2;box-shadow:0 1px 4px #0001}.preview-project-card .project-card-pin{right:10px}.preview-project-card .project-card-pin.active{color:var(--accent-bright);background:color-mix(in srgb,var(--sidebar) 88%,var(--accent));box-shadow:none}@media(hover:hover)and (pointer:fine){.preview-project-card .project-card-pin:hover{background:#0006;color:#fff}}.preview-project-card .project-card-pin>svg{width:15px;height:15px}.preview-project-card .project-card-drag{left:10px;cursor:grab}.writer-app .project-card-drag{touch-action:none}@media(hover:hover)and (pointer:fine){.preview-project-card .project-card-drag:hover{background:#0006}}.preview-project-card .project-card-drag:active{cursor:grabbing}.project-dragging{z-index:30;box-shadow:0 12px 32px #0005;border-color:var(--accent-bright);opacity:.88}.project-list .preview-project-card .project-card-pin{right:auto;left:134px}@media(max-width:759px){.writer-select-menu{font-size:14px;padding:6px}.writer-select-option{min-height:42px;padding:10px 11px}.library-controls .writer-select{width:140px;max-width:46vw;font-size:11px}.library-controls .writer-select-trigger{min-height:37px;padding:8px 10px;gap:10px}.setting-control .writer-select{min-width:120px;max-width:150px;font-size:13px}.setting-control .writer-select-trigger{min-height:39px}.create-work-option>.writer-select{min-width:118px;max-width:50%;font-size:14px}.create-work-option .writer-select-trigger{min-height:40px;padding:8px 10px;gap:10px}.project-dialog label>.writer-select{font-size:16px}.project-dialog label>.writer-select .writer-select-trigger,.prompt-modal>.writer-select .writer-select-trigger{min-height:43px}.plot-card-footer>.writer-select{max-width:160px;font-size:11px}.plot-card-footer .writer-select .writer-select-trigger{min-height:34px}.preview-project-card .project-card-pin,.preview-project-card .project-card-drag{width:33px;height:33px}.project-list .preview-project-card .project-card-pin{left:78px}}@media(prefers-reduced-motion:reduce){.writer-select-menu{animation:none}.writer-select-trigger>svg{transition:none}}@media(hover:hover)and (pointer:fine){.preview-project-card .project-card-pin.active:hover{color:var(--accent-bright);background:color-mix(in srgb,var(--sidebar) 80%,var(--accent));filter:none}}.preview-project-card .project-card-pin.active>svg{fill:currentColor}.project-preview-information>strong{display:flex;align-items:center;gap:7px}.project-preview-information>strong>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-title-pin{flex:0 0 12px;color:var(--accent-bright);fill:currentColor}.project-card-preview .genre-cover-image{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none;-webkit-user-select:none;user-select:none}.create-work-option label>small{font-size:9px;font-weight:400;color:var(--faint);margin-left:4px}.create-work-option.work-option-multiline{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-height:0}.work-option-multiline label{margin-bottom:0}.work-option-multiline>textarea{display:block;width:100%;min-height:82px;max-height:200px;resize:vertical;padding:8px 10px;background:var(--surface-hover);font-size:12px;line-height:1.75}.create-work-option>.work-goal-control{display:flex;align-items:center;gap:7px;width:152px;flex:0 0 152px;max-width:50%}.work-goal-control>input{width:100%;min-width:0;flex:1;height:33px;padding:6px 8px;background:var(--surface-hover);font-size:11px}.create-work-option>.work-goal-control>.work-goal-unit{font-size:10px;font-weight:400;color:var(--muted);margin:0;flex-shrink:0}@media(max-width:759px){.work-option-multiline>textarea{font-size:16px;min-height:90px;max-height:180px}.create-work-option>.work-goal-control{width:152px;flex-basis:152px;gap:6px}.work-goal-control>input{height:40px;font-size:16px;padding:8px}.create-work-option label>small{font-size:10px}}.library-sidebar{overflow:hidden}.chapter-list{overflow-x:hidden}.library-sidebar>button,.chapter-item,.chapter-folder-row{position:relative;isolation:isolate;--nav-row-highlight:transparent}.library-sidebar>button:before,.chapter-item:before,.chapter-folder-row:before{content:"";position:absolute;top:0;bottom:0;left:-512px;right:0;border-radius:0 999px 999px 0;background:var(--nav-row-highlight);z-index:-1;pointer-events:none}.library-sidebar>button.selected,.chapter-item.selected{background:transparent;--nav-row-highlight:var(--accent-soft)}@media(hover:hover)and (pointer:fine){.library-sidebar>button:hover:not(.selected),.chapter-item:hover:not(.selected),.chapter-folder-row:hover{background:transparent;--nav-row-highlight:var(--surface-hover)}}.manuscript-bar>div{margin-left:auto}.plot-card-footer{justify-content:flex-end}.plot-episode-context{display:flex;align-items:center;gap:7px;min-width:0;margin:0 3px 18px;color:var(--muted);font-size:11px;line-height:1.6}.plot-episode-context>svg{color:var(--faint);flex-shrink:0}.plot-episode-context>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:759px){.plot-episode-context{font-size:12px;margin-bottom:20px}}:is(.library-brand,.login-top,.settings-brand,.create-work-brand,.about-content)>.ratpad-wordmark{font-family:Segoe UI,system-ui,sans-serif;font-weight:600;font-kerning:normal;letter-spacing:.01em;line-height:1.2;white-space:nowrap}.pwa-install-guide{padding:12px 14px;margin:3px 0 12px;background:var(--sidebar);border:1px solid var(--border);border-radius:6px}.pwa-install-guide>p{font-size:11px;line-height:1.9;color:var(--muted);margin:0}.pwa-message{font-size:11px;line-height:1.8;color:var(--accent-bright);margin-top:18px}@media(display-mode:standalone){html,body{overscroll-behavior:none}}@media(max-width:759px){.pwa-install-guide>p,.pwa-message{font-size:12px}.pwa-settings .setting-control .button{font-size:11px;white-space:normal;line-height:1.5;max-width:145px}.login-top{top:calc(24px + env(safe-area-inset-top,0px))}}@media(max-width:759px){.manuscript-scroll{padding-bottom:32px}.writer-editing .manuscript-scroll{padding-bottom:24px}.manuscript-empty{padding-bottom:40px}}@media(max-width:759px){.writer-editing .manuscript-status{display:none}}@media(max-width:759px){html,body{overscroll-behavior:none;overflow:hidden}html,body,#root{background:var(--bg)}#root{position:relative;top:auto;left:auto;width:100%;height:calc(var(--app-viewport-height,100dvh) + var(--app-viewport-top,0px));overflow:hidden}.writer-app{height:100%;max-height:100%}.manuscript-scroll{padding-bottom:12px;scroll-padding-bottom:12px;scroll-behavior:auto}.writing-prose{min-height:calc(var(--app-viewport-height,100dvh) * .4);padding-bottom:12px}.writing-prose>p:last-child{margin-bottom:0}.writer-editing .manuscript-scroll{padding-bottom:8px;scroll-padding-bottom:8px}.writer-editing .writing-prose{min-height:0;padding-bottom:8px}}.library-page-heading .create-project{border-radius:999px}.writing-header-tools .writing-save{border-radius:999px;min-height:29px;padding:5px 11px;gap:6px;font-size:11px;flex-shrink:0}.writing-header-tools .writing-save>svg{width:15px;height:15px}.unsaved-changes-modal{width:470px;padding:28px}.unsaved-changes-modal>h2{font-size:19px;font-weight:600;letter-spacing:0;line-height:1.5;margin:0 0 12px}.unsaved-changes-modal>p{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 24px}.unsaved-changes-modal>.form-error{color:var(--danger)}.unsaved-changes-actions{display:flex;justify-content:flex-end;gap:8px}.unsaved-changes-actions>.button{font-size:11px;min-height:34px;padding:7px 10px}@media(max-width:759px){.writing-header-tools .writing-save{min-width:60px;width:60px;min-height:34px;height:34px;padding:0 8px;justify-content:center;border-radius:999px;font-size:12px;line-height:1;gap:0}.writing-header-tools .writing-save>svg{display:none}.writing-save>span{display:block;white-space:nowrap}.unsaved-changes-modal{padding:28px 24px calc(24px + env(safe-area-inset-bottom,0px))}.unsaved-changes-actions{flex-direction:column-reverse;gap:9px}.unsaved-changes-actions>.button{width:100%;min-height:43px;font-size:13px}}@media(max-width:759px){.project-grid:not(.project-list){gap:16px}.project-grid:not(.project-list) .project-card-preview{aspect-ratio:11/5;max-height:168px}.project-grid:not(.project-list) .project-preview-footer{min-height:60px;padding-top:10px;padding-bottom:10px}.project-grid:not(.project-list) .project-card-menu{bottom:12px}}@media(max-width:375px){.writing-project-name{display:none}.writing-header-left{gap:0}}@media(max-width:759px){.modal-backdrop{top:var(--app-viewport-top,0px);left:var(--app-viewport-left,0px);right:auto;bottom:auto;width:var(--app-viewport-width,100%);height:var(--app-viewport-height,100dvh)}.create-work-modal{scroll-padding-top:12px;scroll-padding-bottom:12px;overscroll-behavior:contain;overflow-anchor:none}}@media(max-width:759px){.project-grid:not(.project-list){grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:14px}.project-grid:not(.project-list) .project-card-preview{aspect-ratio:16/9;max-height:none}.project-grid:not(.project-list) .project-preview-footer{min-height:52px;padding:8px 32px 8px 10px;gap:0}.project-grid:not(.project-list) .project-preview-information>strong{font-size:12px;line-height:1.5;gap:5px}.project-grid:not(.project-list) .project-preview-meta{flex-direction:row;align-items:center;gap:4px;font-size:9px;line-height:1.4;white-space:nowrap}.project-grid:not(.project-list) .project-preview-meta>time,.project-grid:not(.project-list) .project-genre{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-grid:not(.project-list) .project-meta-separator{display:inline}.project-grid:not(.project-list) .project-card-menu{right:2px;bottom:11px;width:30px;height:30px}.project-grid:not(.project-list) .project-card-pin{top:7px;right:7px}.project-grid:not(.project-list) .project-card-drag{top:7px;left:7px}}.settings-navigation{display:contents}.settings-modal .settings-close{position:absolute;top:16px;right:16px;z-index:1}@media(max-width:759px){.settings-navigation{display:flex;align-items:center;flex:0 0 auto;width:100%;min-height:64px;background:var(--sidebar);border-bottom:1px solid var(--border)}.settings-navigation>.settings-nav{flex:1;width:0;min-width:0;min-height:64px;padding:10px 8px 10px 12px;border:0;overscroll-behavior-x:contain}.settings-modal .settings-navigation>.settings-close{position:static;flex:0 0 44px;width:44px;height:44px;margin:0 8px 0 0}}@media(max-width:759px){.project-grid:not(.project-list) .project-preview-information>strong{margin-bottom:2px}.project-grid:not(.project-list) .project-preview-meta>.project-genre{flex:1;min-width:0}}.login-form .password-input+label{display:block;margin-top:18px}:root{--motion-fast:.13s;--motion-state:.2s;--motion-curve:cubic-bezier(.2,.75,.2,1)}.writer-app :where(button,input,textarea,[role=option]),.login-screen :where(button,input){-webkit-tap-highlight-color:transparent}.writer-app :where(button),.login-screen button{transition:background-color var(--motion-fast) var(--motion-curve),color var(--motion-fast) var(--motion-curve),border-color var(--motion-fast) var(--motion-curve),opacity var(--motion-fast) var(--motion-curve)}.writer-app :where(input,textarea,[role=combobox]),.password-input,.library-search{transition:border-color var(--motion-fast) var(--motion-curve),box-shadow var(--motion-fast) var(--motion-curve),background-color var(--motion-fast) var(--motion-curve)}.writer-app button:active:not(:disabled),.login-screen button:active:not(:disabled){filter:brightness(.94)}.writer-app :where(button):focus-visible{outline:2px solid var(--accent-bright);outline-offset:3px}.modal,.context-menu,.writer-select-menu,.chapter-sidebar,.writing-plot-panel{animation:none}.context-menu{transform-origin:top right}.writer-select-menu{transform-origin:top center}.writer-select-menu[style*=bottom]{transform-origin:bottom center}.context-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;pointer-events:none}.context-layer>*{pointer-events:auto}.context-layer[inert],.context-layer[inert] *{pointer-events:none!important}.selection-surface{position:absolute!important;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:var(--accent-soft);pointer-events:none;z-index:-1}.library-sidebar>button,.library-mobile-filters>button,.chapter-sidebar-tabs>button,.settings-nav>button,.chapter-item{position:relative;isolation:isolate}.library-sidebar>button.selected,.chapter-item.selected{--nav-row-highlight:transparent}.library-sidebar>button>.selection-surface,.chapter-item>.selection-surface{left:-512px;border-radius:0 999px 999px 0}.library-sidebar>button>.selection-surface{flex:none}.library-mobile-filters>button.active,.settings-nav>button.selected,.chapter-sidebar-tabs>button.active{background:transparent}.chapter-sidebar-tabs .selection-surface{background:var(--surface-hover)}.library-mobile-filters>button.active>.selection-surface{background:var(--accent-soft)}.toggle,.toggle>span{transition:background-color var(--motion-fast) var(--motion-curve)}.toggle.on>span{transform:none}.chapter-sidebar{--panel-width:227px;overflow:hidden}.writing-plot-panel{--panel-width:314px;overflow:hidden}.chapter-sidebar>*,.writing-plot-panel>*{flex-shrink:0}.chapter-sidebar>.chapter-list,.chapter-sidebar>.writing-search,.writing-plot-panel>.plot-scroll{flex-shrink:1}.project-motion-slot{min-width:0;position:relative}.project-motion-slot>.project-card{height:100%}.project-grid.is-reordering .project-card-open{cursor:default}.project-grid.is-reordering .project-card-drag,.chapter-drag,.plot-grip{opacity:1;touch-action:none}.library-reorder{font-size:11px;min-height:32px;padding:6px 10px;white-space:nowrap;border-radius:999px}.chapter-open{padding-left:14px}.chapter-item:has(.chapter-drag) .chapter-open{padding-left:0}.reorder-action[aria-pressed=true]{color:var(--accent-bright);background:var(--accent-soft)}.button.destructive{background:var(--danger);border-color:transparent;color:#fff}.delete-confirm-modal p{line-height:1.85}.delete-confirm-modal .delete-item-title{overflow-wrap:anywhere;color:var(--text-strong)}.writing-goal-bar>span,.project-card-progress>span{transition:width .28s var(--motion-curve)}.writer-select-trigger>svg,.chapter-folder-open>svg:first-child{transition:transform .25s var(--motion-curve)}.writer-select-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}.writer-select-option{transition:background-color .1s var(--motion-curve),color .1s var(--motion-curve)}@media(min-width:1750px){.chapter-sidebar{--panel-width:250px}.writing-plot-panel{--panel-width:342px}}@media(min-width:760px)and (max-width:1200px){.chapter-sidebar{--panel-width:200px}.writing-plot-panel{--panel-width:280px}}@media(min-width:760px)and (max-width:1000px){.chapter-sidebar{--panel-width:180px}.writing-plot-panel{--panel-width:245px}}@media(max-width:759px){.library-control-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px 8px}.library-control-tools>.library-search{grid-row:1;grid-column:1/-1;width:100%;min-width:0}.library-control-tools>.library-reorder{grid-row:2;grid-column:1;justify-self:start;min-height:37px}.library-control-tools>.writer-select{grid-row:2;grid-column:2;width:132px}.library-control-tools>.library-view-toggle{grid-row:2;grid-column:3}.chapter-sidebar,.writing-plot-panel{overflow:hidden}.chapter-open{padding-left:16px}.delete-confirm-modal .modal-actions>.button{min-height:42px;min-width:90px}}@media(hover:hover)and (pointer:fine){.button.destructive:hover{background:color-mix(in srgb,var(--danger) 87%,black)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:760px){.chapter-sidebar>*,.writing-plot-panel>*{width:var(--panel-width);box-sizing:border-box}}@keyframes state-reveal{0%{opacity:0}to{opacity:1}}.form-error,.writer-notice,.library-empty,.manuscript-empty,.plot-empty{animation:state-reveal .16s var(--motion-curve)}@media(hover:hover)and (pointer:fine){.settings-nav>button.selected:hover{background:transparent}}.cloud-auth-screen{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;padding:92px 24px 36px;scroll-padding:24px;box-sizing:border-box}.cloud-auth-card{width:min(370px,100%);margin:auto 0;flex-shrink:0;color:var(--text)}.cloud-auth-heading{text-align:center;margin:0 0 25px}.cloud-auth-heading>svg{color:var(--accent-bright);display:block;margin:0 auto 20px}.cloud-auth-heading h1{font-size:25px;color:var(--text-strong);font-weight:600;letter-spacing:0;margin:0 0 11px;line-height:1.5}.cloud-auth-heading p{font-size:12px;color:var(--muted);line-height:1.8;margin:0;overflow-wrap:anywhere}.cloud-auth-tabs{display:flex;background:var(--sidebar);padding:4px;border:1px solid var(--border);border-radius:999px;gap:4px;margin-bottom:19px}.cloud-auth-tabs>button{position:relative;isolation:isolate;flex:1;min-height:35px;border-radius:999px;font-size:12px;color:var(--muted)}.cloud-auth-tabs>button.selected{color:var(--accent-bright)}.cloud-google-login{width:100%;height:44px;justify-content:center;gap:11px;border-radius:999px;font-size:13px;background:var(--surface)}.cloud-auth-divider{display:flex;align-items:center;gap:12px;color:var(--faint);font-size:10px;margin:21px 0}.cloud-auth-divider:before,.cloud-auth-divider:after{content:"";height:1px;background:var(--border);flex:1}.cloud-auth-card fieldset{border:0;padding:0;margin:0;min-width:0}.cloud-auth-card label{font-size:12px;display:block;margin:0 0 8px;color:var(--text)}.cloud-auth-card input{display:block;width:100%;height:43px;padding:10px 12px;font-size:14px;border-radius:7px}.cloud-auth-card input+label{margin-top:18px}.cloud-auth-card .cloud-auth-submit{height:44px;width:100%;border-radius:999px;justify-content:center;margin-top:25px;gap:8px;font-size:13px}.cloud-auth-card .form-error{margin:15px 0 0;line-height:1.8}.cloud-auth-private{display:flex;justify-content:center;align-items:flex-start;gap:6px;font-size:10px;line-height:1.8;color:var(--faint);margin:23px 0 0}.cloud-auth-private>svg{flex-shrink:0;margin-top:3px}.cloud-auth-sent>p{font-size:13px;line-height:1.9;color:var(--muted);text-align:center;margin:0 0 24px}.cloud-auth-sent>.button{width:100%;min-height:43px;border-radius:999px;justify-content:center}.cloud-auth-back{margin:19px auto 0;display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);padding:7px}.library-sidebar-account{margin-top:auto;padding:14px 0 0;border-top:1px solid var(--border)}.profile-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:50%;overflow:hidden;background:var(--accent-soft);color:var(--accent-bright);font-size:15px;font-weight:600;line-height:1}.profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}.profile-avatar.is-large{width:66px;height:66px;font-size:26px}.account-trigger{width:100%;padding:10px 9px;display:flex;align-items:center;gap:10px;text-align:left;border-radius:10px;min-width:0;color:var(--text)}.account-trigger-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.account-trigger-text>strong{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}.account-trigger-text>small{font-size:10px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.account-trigger>svg{flex-shrink:0;color:var(--faint)}.account-trigger.is-compact{width:36px;height:36px;padding:1px;border-radius:50%}.library-mobile-account{display:none}.account-popover{position:fixed;z-index:1100;background:var(--surface);border:1px solid var(--border);border-radius:11px;padding:6px;box-shadow:0 8px 32px #0005;transform-origin:bottom left;color:var(--text)}.account-popover-identity{display:flex;align-items:center;gap:10px;padding:10px}.account-popover-identity>div{min-width:0;display:flex;flex-direction:column;gap:4px}.account-popover-identity strong{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-popover-identity small{font-size:11px;color:var(--muted)}.account-popover>button{width:100%;display:flex;align-items:center;gap:10px;padding:10px 11px;font-size:12px;border-radius:6px;text-align:left;min-height:37px;transition:background-color .13s,color .13s}.account-popover>button>svg{color:var(--muted)}.account-popover>button.danger,.account-popover>button.danger>svg{color:var(--danger)}.account-popover>button:focus-visible{outline:2px solid var(--accent-bright);outline-offset:-2px;background:var(--accent-soft)}.account-dialog{width:410px;padding:28px}.account-dialog h2{font-size:19px}.account-dialog-hero{display:flex;flex-direction:column;align-items:center;gap:8px;margin:24px 0}.account-dialog-hero>strong{font-size:19px;font-weight:600;line-height:1.5;color:var(--text-strong);overflow-wrap:anywhere;text-align:center}.account-dialog-hero>span:last-child{font-size:12px;color:var(--muted)}.account-dialog-hero>.profile-avatar{margin-bottom:7px}.account-dialog dl{margin:0 0 24px}.account-dialog dl>div{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 0;border-bottom:1px solid var(--border);font-size:12px;line-height:1.7}.account-dialog dt{color:var(--muted);flex-shrink:0}.account-dialog dd{margin:0;overflow-wrap:anywhere;text-align:right}.account-dialog>.account-manage{width:100%;justify-content:center;gap:7px;min-height:39px;font-size:12px;text-decoration:none}.account-dialog>.account-logout{display:flex;margin:15px auto 0;gap:7px;min-height:37px;justify-content:center;color:var(--danger);font-size:12px;border-color:transparent;background:transparent}@media(hover:hover)and (pointer:fine){.account-trigger:hover{background:var(--surface-hover)}.account-popover>button:hover{background:var(--surface-hover)}.account-popover>button.danger:hover{background:color-mix(in srgb,var(--danger) 12%,transparent)}.cloud-auth-back:hover{color:var(--text)}}@media(max-width:759px){.cloud-auth-screen{padding-top:87px;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}.cloud-auth-heading h1{font-size:23px}.cloud-auth-card input{font-size:16px;height:45px}.cloud-auth-card label{font-size:12px}.cloud-auth-private{font-size:10px}.library-mobile-account{display:block}.account-popover{transform-origin:top right}.account-popover>button{min-height:44px;font-size:13px}.account-popover-identity{padding:12px 11px}.account-dialog{padding:28px 24px}.account-dialog dl>div{font-size:12px}.account-dialog>.account-manage{min-height:43px}.account-dialog>.account-logout{min-height:42px}}
