:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;color:#1a1a1a;background:#f4f2ef}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}.app-layout{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;height:100%}.app-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;flex-shrink:0;padding:.5rem 1rem;background:#1f1d1b;color:#f0ebe3;border-bottom:1px solid #4a4744}.app-header-project-wrap{display:flex;align-items:center;justify-content:center;gap:.25rem;min-width:0}.app-header-project{margin:0;text-align:center;font-size:.95rem;font-weight:500;color:#e8e0d6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;display:inline-flex;align-items:center;gap:.4rem;max-width:100%}.app-header-project-text{overflow:hidden;text-overflow:ellipsis;min-width:0}.app-header-unsynced-marker{flex-shrink:0;width:.5rem;height:.5rem;border-radius:50%;background:#f5a623;box-shadow:0 0 0 2px #f5a62359}.project-header-menu{position:relative;flex-shrink:0}.project-header-menu-toggle{border:none;background:transparent;color:#e8e0d6;font-size:1.25rem;line-height:1;padding:.15rem .35rem;border-radius:4px;cursor:pointer}.project-header-menu-toggle:hover{background:#ffffff14}.project-header-menu-dropdown{position:absolute;top:calc(100% + .35rem);right:0;min-width:11rem;background:#fff;color:#1a1a1a;border-radius:8px;box-shadow:0 4px 16px #0000002e;padding:.35rem 0;z-index:50;display:flex;flex-direction:column}.project-header-menu-dropdown a,.project-header-menu-dropdown button{display:block;width:100%;text-align:left;border:none;background:none;padding:.45rem .85rem;font:inherit;color:inherit;text-decoration:none;cursor:pointer}.project-header-menu-dropdown a:hover,.project-header-menu-dropdown button:hover:not(:disabled){background:#f4f2ef}.project-header-menu-dropdown button:disabled{opacity:.5;cursor:not-allowed}.project-header-menu-item--danger{color:#a32}.project-settings-layout{display:grid;grid-template-columns:minmax(10rem,14rem) 1fr;gap:1.5rem;max-width:56rem;margin:0 auto;padding:1.5rem 1rem 2rem}.project-settings-tabs{list-style:none;margin:.75rem 0 0;padding:0;display:flex;flex-direction:column;gap:.15rem}.project-settings-tabs a{display:block;padding:.4rem .5rem;border-radius:6px;text-decoration:none;color:#333}.project-settings-tab--active{background:#fff;font-weight:600}.project-settings-content{background:#fff;border-radius:8px;padding:1rem 1.25rem;box-shadow:0 1px 4px #0000000f}.project-settings-content h2{margin:0 0 .75rem;font-size:1.05rem}.project-settings-hint{font-size:.85rem;color:#666;margin:0 0 1rem}.project-settings-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;z-index:1000}.project-settings-dialog{background:#fff;border-radius:8px;padding:1.25rem 1.5rem;max-width:28rem;width:calc(100% - 2rem);box-shadow:0 8px 32px #00000026}.project-settings-dialog h3{margin:0 0 .75rem}.project-settings-dialog-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}.btn-danger{background:#b42318;color:#fff;border:none;border-radius:4px;padding:.45rem .85rem;cursor:pointer}.settings-data-table-usage{font-variant-numeric:tabular-nums;color:#555}.project-settings-field{display:grid;gap:.35rem;margin-bottom:1rem}.project-settings-back a{color:#444;text-decoration:none;font-size:.9rem}.project-settings-title{margin:.5rem 0 0;font-size:1.2rem}.project-settings-color-label input[type=color]{width:2.5rem;height:2rem;padding:0;border:1px solid #ccc;border-radius:4px;cursor:pointer}.settings-data-table-wrap{margin-bottom:.5rem;overflow-x:auto;border:1px solid #d8d4ce;border-radius:6px;background:#fff}.settings-data-table{width:100%;border-collapse:collapse;font-size:.875rem}.settings-data-table-th{padding:.45rem .65rem;text-align:left;font-weight:600;color:#555;border-bottom:1px solid #d8d4ce;background:#f4f2ef;white-space:nowrap}.settings-data-table-th--drag{width:2.5rem;padding:.45rem .35rem}.settings-data-table-th--actions{width:2.75rem;text-align:center}.settings-data-table tbody tr{border-bottom:1px solid #ebe8e3}.settings-data-table tbody tr:last-child{border-bottom:none}.settings-data-table-cell{padding:.45rem .65rem;vertical-align:top;text-align:left}.settings-data-table-cell--drag{width:2.5rem;padding:.45rem .35rem;vertical-align:middle;background:#faf9f7}.settings-data-table-cell--actions{width:2.75rem;text-align:center;vertical-align:middle;background:#faf9f7}.settings-data-table-input,.settings-data-table-select{width:100%;min-width:5rem;box-sizing:border-box;font:inherit;font-size:.875rem;padding:.35rem .45rem;border:1px solid #ccc;border-radius:4px}.settings-data-table-color-cell{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.settings-data-table-empty{color:#999}.settings-data-table-footer{margin-bottom:1.25rem}.settings-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:2rem;min-height:2rem;padding:0;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:grab;font-size:.7rem;line-height:1;letter-spacing:-.05em;color:#666}.settings-drag-handle:active{cursor:grabbing}.settings-drag-handle:disabled{opacity:.45;cursor:not-allowed}.settings-row-delete{width:2rem;min-width:2rem}.inspector-value-list{display:flex;align-items:stretch;gap:.35rem;margin:.15rem 0 0;min-height:5.5rem}.inspector-value-list-panel{flex:1;min-width:0;border:1px solid #bbb;border-radius:4px;background:#fff;overflow:auto;max-height:10rem}.inspector-value-list-rows{list-style:none;margin:0;padding:.2rem 0}.inspector-value-list-row{padding:.2rem .45rem;min-height:1.65rem;cursor:default;border:1px solid transparent}.inspector-value-list-row--selected{background:#e8f0fe;border-color:#a8c4f5}.inspector-value-list-text{display:block;font-size:.85rem;line-height:1.45;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inspector-value-list-input{width:100%;box-sizing:border-box;font:inherit;font-size:.85rem;padding:.15rem .25rem;border:1px solid #8ab4f8;border-radius:3px;background:#fff}.inspector-value-list-toolbar{display:flex;flex-direction:column;gap:.3rem;flex-shrink:0}.inspector-value-list-tool{width:2rem;height:2rem;padding:0;border:1px solid #bbb;border-radius:50%;background:#f8f8f8;font-size:.85rem;line-height:1;cursor:pointer;color:#444}.inspector-value-list-tool:disabled{opacity:.4;cursor:not-allowed}.inspector-value-list-tool:not(:disabled):hover{background:#eee}.btn-icon{display:block;width:100%;min-width:0;padding:.25rem 0;margin:0;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:pointer;font-size:.8rem;line-height:1.1;text-align:center}.btn-icon--add{color:#2a6b2a}.btn-icon:disabled{opacity:.45;cursor:not-allowed}.btn-icon--danger{color:#a32}.btn-secondary--compact{padding:.25rem .5rem;font-size:.8rem}.inspector-datetime-inputs{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:.35rem;width:100%;min-width:0}.inspector-datetime-inputs .inspector-meta-input{flex:1 1 0;min-width:0;width:auto}.app-header-project--empty{display:block}.app-header-brand{color:inherit;text-decoration:none;font-weight:600;font-size:1rem}.user-menu{position:relative}.user-avatar-button{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:50%;border:1px solid #555;background:#3d3a37;color:inherit;cursor:pointer;padding:0}.user-avatar-icon{font-size:1.1rem;line-height:1}.user-menu-dropdown{position:absolute;right:0;top:calc(100% + .35rem);min-width:10rem;background:#2c2a28;border:1px solid #4a4744;border-radius:6px;box-shadow:0 4px 12px #00000059;padding:.35rem 0;z-index:20}.user-menu-label{margin:0;padding:.35rem .75rem;font-size:.8rem;color:#c8c0b8;border-bottom:1px solid #4a4744}.user-menu-dropdown a,.user-menu-dropdown button{display:block;width:100%;text-align:left;padding:.45rem .75rem;border:none;background:transparent;color:#f0ebe3;font:inherit;cursor:pointer;text-decoration:none}.user-menu-dropdown a:hover,.user-menu-dropdown button:hover{background:#3d3a37}.auth-loading,.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;min-height:100dvh;padding:1rem}.login-form{width:100%;max-width:22rem;display:flex;flex-direction:column;gap:.75rem;padding:1.5rem;background:#fff;border-radius:8px;box-shadow:0 2px 12px #00000014}.login-form h1{margin:0;font-size:1.35rem}.login-subtitle{margin:0 0 .25rem;color:#555;font-size:.9rem}.dashboard-page{flex:1;overflow:auto;padding:1.5rem 1rem 2rem}.dashboard-main{max-width:42rem;margin:0 auto}.dashboard-header .habit-widget{margin-bottom:.75rem}.dashboard-header h1{margin:0 0 .35rem;font-size:1.5rem}.dashboard-subtitle{margin:0 0 1.25rem;color:#555;font-size:.95rem}.dashboard-project-panel{margin-bottom:1.5rem;padding:1rem 1.1rem;background:#fff;border:1px solid #d8d2cb;border-radius:8px}.dashboard-project-panel h2{margin:0 0 .75rem;font-size:1.05rem}.dashboard-project-panel.project-open-panel h2,.dashboard-project-panel .register-form{color:#1a1a1a}.dashboard-project-panel .register-form input,.dashboard-project-panel .register-form select{background:#fff;color:#1a1a1a;border-color:#ccc}.project-open-panel .project-open-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.project-status-panel{margin-top:1rem;padding:.85rem 1rem;border:1px solid #e0c9a8;border-radius:8px;background:#fff8ef;font-size:.92rem;line-height:1.45}.project-status-panel-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.35rem}.project-status-info-toggle{flex-shrink:0;padding:.2rem .55rem;font-size:.8rem;border:1px solid #c9b89a;border-radius:4px;background:#fff;cursor:pointer;color:#5a4a32}.project-status-info-toggle:hover{border-color:#a8926e;background:#fffdf8}.project-status-detail{margin:.35rem 0 .5rem;color:#4a4035}.project-status-meta{margin:0 0 .65rem;font-size:.85rem;color:#666}.project-status-meta code{font-size:.85em}.project-status-actions{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:.5rem}.dashboard-actions{display:flex;flex-direction:column;gap:.75rem}.dashboard-action-card{display:block;width:100%;text-align:left;padding:1rem 1.1rem;border:1px solid #d8d2cb;border-radius:8px;background:#fff;color:inherit;cursor:pointer;text-decoration:none;font:inherit;box-shadow:0 1px 4px #0000000a;transition:border-color .15s ease,box-shadow .15s ease}.dashboard-action-card:hover{border-color:#6b8e6b;box-shadow:0 2px 10px #00000012}.dashboard-action-title{margin:0 0 .35rem;font-size:1.05rem}.dashboard-action-description{margin:0;color:#555;font-size:.9rem}.login-form label{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem}.login-form input{padding:.45rem .5rem;border-radius:4px;border:1px solid #ccc}.login-form button[type=submit]{margin-top:.25rem;padding:.5rem;border:none;border-radius:4px;background:#6b8e6b;color:#fff;font-weight:600;cursor:pointer}.login-form button[type=submit]:disabled{opacity:.6;cursor:not-allowed}.login-form .login-back{margin-top:.5rem;width:100%;padding:.55rem 1rem;font-size:.9rem;background:transparent;border:1px solid #ccc;border-radius:6px;cursor:pointer}.two-factor-panel fieldset{border:1px solid #e0ddd8;border-radius:6px;margin:1rem 0 0;padding:.75rem 1rem}.two-factor-panel fieldset legend{font-weight:600;padding:0 .25rem}.two-factor-panel label{display:block;margin-top:.5rem;font-size:.9rem}.two-factor-panel input{display:block;width:100%;margin-top:.25rem;box-sizing:border-box}.two-factor-backup-codes ul{list-style:none;padding:0;margin:.75rem 0;display:grid;gap:.35rem}.two-factor-backup-codes code{font-family:ui-monospace,monospace;font-size:.95rem}.settings-page{flex:1;min-height:0;overflow:auto;background:#f4f2ef}.settings-layout{display:flex;gap:0;max-width:52rem;margin:0 auto;min-height:100%}.settings-nav{flex:0 0 9rem;display:flex;flex-direction:column;gap:.25rem;padding:1.5rem .5rem 1.5rem 1rem}.settings-nav-item{text-align:left;padding:.5rem .75rem;border:none;border-radius:6px;background:transparent;color:#444;font-size:.95rem;cursor:pointer}.settings-nav-item:hover{background:#0000000d}.settings-nav-item.active{background:#fff;color:#1a1a1a;font-weight:600;box-shadow:0 1px 3px #00000014}.settings-main{flex:1;min-width:0;max-width:40rem;padding:1.5rem 1rem 2rem .5rem}.settings-projects-nav{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid #e8e8e8}.settings-projects-nav-item{text-align:left;padding:.4rem .65rem;border:none;border-radius:6px;background:transparent;color:#555;font-size:.9rem;cursor:pointer}.settings-projects-nav-item:hover{background:#f5f5f5}.settings-projects-nav-item.active{background:#e7f1ff;color:#0d47a1;font-weight:500}.settings-projects-section{display:grid;grid-template-columns:8.5rem 1fr;gap:0 1rem;align-items:start}.settings-projects-section>h2{grid-column:1 / -1}.settings-projects-section .settings-projects-nav{grid-column:1;margin-bottom:0;border-bottom:none;padding-bottom:0}.settings-projects-section .settings-stuck-projects{grid-column:1 / -1;margin-bottom:1rem;padding:.75rem 1rem;border:1px solid #e0e0e0;border-radius:6px;background:#fafafa}.settings-stuck-projects-list{list-style:none;margin:.75rem 0 0;padding:0}.settings-stuck-project-row{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:.75rem 1rem;padding:.65rem 0;border-top:1px solid #eee}.settings-stuck-project-row:first-child{border-top:none}.settings-projects-section .settings-projects-panel{grid-column:2}.remote-list-row{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem}.remote-list-row .remote-item{flex:1;min-width:10rem}.use-parent-folder{font-size:.8rem;padding:.25rem .5rem;border-radius:4px;border:1px solid #ccc;background:#fafafa;cursor:pointer}.use-parent-folder[aria-pressed=true]{border-color:#0d6efd;background:#e7f1ff}.use-current-parent-folder{margin:0 0 .75rem;font-size:.85rem;padding:.35rem .65rem;border-radius:4px;border:1px solid #ccc;background:#fafafa;cursor:pointer}.parent-folder-summary{margin:0 0 .75rem;font-size:.9rem}.remote-name-preview{margin:0 0 .75rem;font-size:.9rem;color:#555}.remote-name-preview code{font-family:ui-monospace,monospace;font-size:.85rem}.remote-name-preview-error{color:#b00020}.settings-main h1{margin:0 0 1.25rem;font-size:1.35rem}.settings-section{margin-bottom:2rem;padding:1rem;background:#fff;border-radius:8px;box-shadow:0 1px 4px #0000000f}.llm-providers-toolbar{margin-bottom:.75rem}.llm-providers-list{list-style:none;margin:0 0 1rem;padding:0;display:flex;flex-direction:column;gap:.35rem}.llm-providers-list-item{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:.5rem .75rem;border:1px solid var(--border-subtle, #333);border-radius:6px;background:transparent;color:inherit;cursor:pointer}.llm-providers-list-item.active{border-color:var(--accent, #4a9eff);background:color-mix(in srgb,var(--accent, #4a9eff) 12%,transparent)}.llm-providers-list-badge{font-size:.75rem;opacity:.85}.llm-providers-default-row{display:flex;align-items:center;gap:.5rem}.llm-settings-form .settings-hint,.settings-section .settings-hint{margin:0 0 1rem;color:var(--text-muted, #666);font-size:.9rem}.llm-provider-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1.25rem;align-items:start}.llm-provider-editor-grid .llm-provider-field-span{grid-column:1 / -1}.llm-provider-editor-grid .llm-provider-field{display:flex;flex-direction:column;gap:.35rem;margin:0;min-width:0}.llm-provider-editor-grid .llm-provider-field input,.llm-provider-editor-grid .llm-provider-field select{width:100%;box-sizing:border-box}.llm-provider-api-key-block{padding:.65rem .75rem;border-radius:6px;border:1px solid color-mix(in srgb,var(--accent, #4a9eff) 35%,#ccc);background:color-mix(in srgb,var(--accent, #4a9eff) 6%,#fff)}.settings-section .llm-provider-api-key-block{background:color-mix(in srgb,var(--accent, #4a9eff) 8%,#f8fafc)}.llm-provider-api-key-block label{display:flex;flex-direction:column;gap:.35rem;font-weight:600}.llm-provider-api-key-status{margin:.35rem 0 0;font-size:.85rem}.llm-provider-editor-grid .settings-llm-model-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:end}.llm-provider-editor-grid .settings-llm-model-row label{display:flex;flex-direction:column;gap:.35rem;min-width:0}.llm-provider-editor-grid .settings-llm-model-row .secondary-button{margin-bottom:.15rem;white-space:nowrap}.llm-provider-editor-grid .settings-llm-embedding-note{margin:0;font-size:.85rem;color:var(--text-muted, #666)}@media(max-width:640px){.llm-provider-editor-grid,.llm-provider-editor-grid .settings-llm-model-row{grid-template-columns:1fr}.llm-provider-editor-grid .settings-llm-model-row .secondary-button{width:100%;margin-bottom:0}}.settings-form-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}.settings-success{color:var(--success-fg, #0a6b2d);margin:.5rem 0 0}.settings-section h2{margin:0 0 .75rem;font-size:1rem}.settings-account{margin:0;display:grid;grid-template-columns:auto 1fr;gap:.35rem 1rem;font-size:.9rem}.settings-account dt{color:#666}.settings-account dd{margin:0;font-weight:500}.settings-section .nextcloud-panel{border-top:none;margin-top:0;padding-top:0;color:#1a1a1a}.settings-section .nextcloud-panel h2{display:none}.settings-section .register-form input,.settings-section .register-form select{background:#fff;color:inherit;border-color:#ccc}.settings-section .remote-file-explorer{background:#fff;color:#1a1a1a;border:1px solid #ddd;border-radius:6px;padding:.5rem .75rem;margin-bottom:.75rem}.settings-section .remote-file-explorer .crumb{color:#0d6efd}.settings-section .remote-file-explorer .remote-item{background:#f5f5f5;color:#1a1a1a;border-color:#e0e0e0}.settings-section .remote-file-explorer .remote-item:hover{background:#ebebeb}.editor-settings-panel{display:flex;flex-direction:column;gap:.75rem}.editor-settings-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}.editor-settings-hint{margin:0;font-size:.9rem;color:var(--text-muted, #666)}.settings-section .remote-file-explorer .remote-item.selected{border-color:#0d6efd;background:#e7f1ff}.download-progress{margin-top:.75rem}.download-progress-track{height:.5rem;background:#e9ecef;border-radius:4px;overflow:hidden}.download-progress-bar{height:100%;background:#0d6efd;transition:width .2s ease}.download-progress-bar.validating{background:linear-gradient(90deg,#0d6efd,#6ea8fe,#0d6efd);background-size:200% 100%;animation:download-progress-pulse 1.2s ease-in-out infinite}@keyframes download-progress-pulse{0%{background-position:100% 0}to{background-position:-100% 0}}.download-progress-label{margin:.35rem 0 0;font-size:.8rem;color:#444}.app-shell{flex:1;min-height:0;overflow:hidden}.app-shell.workspace-panels{display:flex;flex-direction:column;position:relative}.workspace-panels[data-focus-mode]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;background:#f0eeeb}.workspace-panels[data-focus-mode] .workspace-panel--binder,.workspace-panels[data-focus-mode] .workspace-panel--inspector,.workspace-panels[data-focus-mode] .workspace-panel--activity-log,.workspace-panels[data-focus-mode] .workspace-resize-handle,.workspace-panels[data-focus-mode] .inspector-reopen-tab,.workspace-panels[data-focus-mode] .workspace-side-reopen-tabs{display:none!important}.workspace-panels[data-focus-mode] .workspace-panel-group-h,.workspace-panels[data-focus-mode] .workspace-panel--center,.workspace-panels[data-focus-mode] .workspace-panel-group-v,.workspace-panels[data-focus-mode] .workspace-panel--editor{width:100%!important;max-width:none!important;flex:1 1 auto!important}.workspace-panels[data-focus-mode] .app-workspace-column,.workspace-panels[data-focus-mode] .main{height:100%;max-width:none}.doc-view--focus-mode{align-items:center;width:100%;padding:1.5rem 1.25rem 1rem;box-sizing:border-box}.focus-mode-column{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}.focus-mode-title{width:100%;margin:0 0 .75rem;font-size:.95rem;font-weight:500;color:#6b6560;text-align:center;flex-shrink:0}.focus-mode-exit{position:fixed;top:.65rem;right:.75rem;z-index:160;padding:.35rem .65rem;font-size:.8rem;color:#4a4642;background:#ffffffd9;border:1px solid #d8d4cf;border-radius:6px;cursor:pointer;opacity:0;transition:opacity .15s ease}.doc-view--focus-mode:hover .focus-mode-exit,.doc-view--focus-mode:focus-within .focus-mode-exit,.focus-mode-exit:focus-visible{opacity:1}.lexical-editor--focus-mode.editor{box-shadow:none;padding:0;background:transparent;border-radius:0}.lexical-editor--focus-mode .editor-surface{border:none;border-radius:4px;background:#fff;box-shadow:0 1px 4px #0000000f}.workspace-panel-group-h{flex:1;min-height:0;width:100%}.workspace-panel-group-v{height:100%;min-height:0}.workspace-panel{min-height:0;min-width:0;overflow:hidden}.workspace-panel--binder .sidebar{height:100%}.workspace-panel--center{display:flex;flex-direction:column}.workspace-panel--editor .app-workspace-column{height:100%;min-height:0}.workspace-panel--activity-log .activity-log-panel{height:100%;border-top:none}.workspace-resize-handle{flex-shrink:0;background:#4a4744;transition:background .15s ease}.workspace-resize-handle--vertical{width:6px;cursor:col-resize}.workspace-resize-handle--horizontal{height:6px;cursor:row-resize}.workspace-resize-handle:hover{background:#8a9e8a}.activity-log-reopen-tab{position:absolute;left:50%;bottom:0;transform:translate(-50%);z-index:5;padding:.35rem .75rem;font-size:.75rem;border:1px solid #4a4744;border-bottom:none;border-radius:6px 6px 0 0;background:#f3f0eb;color:#1a1a1a;cursor:pointer}.activity-log-reopen-button{font-size:.9rem;padding:.4rem .75rem;border-radius:4px;border:1px solid #ccc;background:#fafafa;cursor:pointer}.settings-activity-log-section .activity-log-panel{max-height:14rem}.inspector-reopen-tab,.workspace-side-reopen-tab{padding:.5rem .35rem;writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;font-size:.75rem;border:1px solid #4a4744;background:#f3f0eb;color:#1a1a1a;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.workspace-side-reopen-tabs{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:5;display:flex;flex-direction:column;align-items:stretch;gap:0}.workspace-side-reopen-tab{border-right:none;min-height:4.5rem}.workspace-side-reopen-tab:first-child{border-radius:6px 0 0;border-bottom:none}.workspace-side-reopen-tab:last-child{border-right:none;border-radius:0 0 0 6px}.workspace-side-reopen-tab+.workspace-side-reopen-tab{border-top:none;border-radius:0}.inspector-reopen-tab{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:5;border-right:none;border-radius:6px 0 0 6px}.tabbed-container{display:flex;flex-direction:column;height:100%;min-height:0;background:#f8f6f3}.tabbed-container-header{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;flex-shrink:0;padding:.35rem .5rem;border-bottom:1px solid #ddd6cc;background:#f3f0eb}.tabbed-container-tabbar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:.25rem}.tabbed-container-tab{border:1px solid #c9c2b8;border-radius:4px 4px 0 0;background:#ebe6de;padding:.35rem .75rem;font-size:.8rem;font-weight:600;cursor:pointer;color:#1a1a1a}.tabbed-container-tab.active{background:#f8f6f3;border-bottom-color:#f8f6f3;margin-bottom:-1px}.tabbed-container-main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.tabbed-container-collapse{margin-left:auto;font-size:.75rem;padding:.25rem .5rem}.tabbed-container-panel{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.tabbed-container-panel[hidden]{display:none}.inspector-panel--embedded{border-left:none;height:100%}.inspector-panel{display:flex;flex-direction:column;height:100%;min-height:0;background:#f8f6f3;color:#1a1a1a;border-left:1px solid #c9c2b8}.inspector-panel-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .65rem;border-bottom:1px solid #ddd6cc;flex-shrink:0}.inspector-panel-title{margin:0;font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#555}.inspector-panel-scroll{flex:1 1 0;min-height:0;overflow-y:auto;padding:.35rem 0}.inspector-section{border-bottom:1px solid #e8e2d9}.inspector-section-header{display:flex;align-items:center;justify-content:space-between;gap:.35rem;padding:.25rem .5rem}.inspector-section-toggle{display:flex;align-items:center;gap:.35rem;flex:1;border:none;background:transparent;color:inherit;font:inherit;font-weight:600;font-size:.82rem;cursor:pointer;text-align:left;padding:.35rem .25rem}.inspector-section-body{padding:0 .65rem .65rem}.inspector-synopsis-textarea{width:100%;min-height:6rem;resize:vertical;font:inherit;font-size:.85rem;line-height:1.45;padding:.45rem .5rem;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.inspector-meta-list{margin:0;font-size:.85rem}.inspector-meta-list dt{font-weight:600;color:#666;margin-top:.35rem}.inspector-meta-list dd{margin:.15rem 0 0}.inspector-meta-select,.inspector-meta-input{width:100%;font:inherit;font-size:.85rem;padding:.35rem .45rem;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.inspector-meta-textarea{resize:vertical;min-height:3.5rem}.inspector-meta-editable dt label{font-weight:600;color:#666}.inspector-label-chip{display:inline-block;padding:.1rem .45rem;border-radius:4px;border:2px solid #888;font-size:.8rem}.inspector-keywords-editor{display:flex;flex-direction:column;gap:.5rem}.inspector-keywords-input{width:100%}.inspector-keyword-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.15rem .45rem;border-radius:4px;background:var(--color-surface-muted, #eee)}.inspector-keyword-chip-remove{border:none;background:transparent;cursor:pointer;line-height:1}.inspector-keywords-suggest{list-style:none;margin:0;padding:0;border:1px solid var(--color-border, #ccc);border-radius:4px}.inspector-keywords-suggest button{width:100%;text-align:left;padding:.35rem .5rem;border:none;background:transparent;cursor:pointer}.inspector-keyword-list{margin:0;padding-left:1.1rem;font-size:.85rem}.inspector-empty{margin:0;color:#777;font-size:.85rem}.inspector-hint{margin:0 0 .35rem;font-size:.8rem;color:#666}.inspector-error{margin:.5rem .65rem;color:#9b2c2c;font-size:.85rem}.inspector-section-status-slot{flex-shrink:0;min-width:3.5rem;min-height:1.1rem;display:flex;align-items:center;justify-content:flex-end}.inspector-synopsis-status{font-size:.72rem;color:#666;white-space:nowrap}.project-settings-save-status-slot{min-height:1.35rem;margin:0 0 .75rem}.inspector-value-list-datetime{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:.35rem;width:100%;min-width:0}.inspector-value-list-datetime .inspector-meta-input{flex:1 1 0;min-width:0;width:auto;font-size:.8rem;padding:.15rem .25rem}.inspector-value-list-row--selected{min-height:2rem}.sidebar{position:relative;display:flex;flex-direction:column;align-self:stretch;height:100%;min-height:0;min-width:0;background:#2c2a28;color:#f0ebe3;padding:1rem;overflow:hidden}.habit-widget{display:flex;align-items:center;gap:.5rem;flex-shrink:0;padding:.35rem 0;font-size:.8rem;color:#c8c0b4}.habit-widget--loading{min-height:1.25rem}.habit-widget--compact{margin-bottom:.5rem}.habit-widget-progress-wrap{flex:1 1 auto;min-width:0}.habit-widget-progress-track{height:6px;border-radius:3px;background:#3d3a37;overflow:hidden}.habit-widget-progress-fill{height:100%;border-radius:3px;background:#8a847c;transition:width .25s ease,background .25s ease}.habit-widget--goal-met .habit-widget-progress-fill{background:#5cb87a}.habit-widget-streak{display:flex;align-items:center;gap:.15rem;flex-shrink:0;font-variant-numeric:tabular-nums}.habit-widget-flame{font-size:.85rem;line-height:1}.habit-widget-streak-count{min-width:1ch}.habit-widget-words{flex-shrink:0;font-variant-numeric:tabular-nums;color:#a8a095}.habit-widget--goal-met .habit-widget-words{color:#b8dfc8}.sidebar-binder-scroll{flex:1 1 0;min-height:6rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid #4a4744;overflow-y:auto;overflow-x:hidden;padding-right:.15rem}.binder-panel-header{display:flex;align-items:center;gap:.35rem;margin:0 0 .5rem;min-width:0}.binder-panel-heading{font-size:.95rem;margin:0;font-weight:600;color:#d8d0c4;flex:1 1 auto;min-width:0}.binder-panel-toolbar{position:relative;flex:0 1 auto;min-width:0;max-width:100%;display:flex;justify-content:flex-end}.binder-panel-toolbar-measure{position:absolute;visibility:hidden;pointer-events:none;display:flex;gap:.15rem;height:0;overflow:hidden}.binder-panel-toolbar-buttons,.binder-panel-toolbar-overflow{display:flex;align-items:center;gap:.15rem;flex-shrink:0}.binder-panel-toolbar-overflow{position:relative}.binder-panel-tool{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border:none;border-radius:4px;background:transparent;color:#c8c0b8;cursor:pointer}.binder-panel-tool svg{width:.95rem;height:.95rem}.binder-panel-tool:hover,.binder-panel-tool[aria-expanded=true]{background:#3d3a36;color:#f0ebe3}.binder-panel-toolbar-dropdown{right:0;left:auto;min-width:13rem}.sidebar h1{font-size:1.1rem;margin:0 0 .75rem;font-weight:600}.project-open-panel h2{font-size:.95rem;margin:0 0 .5rem;font-weight:600;color:#d8d0c4}.register-form{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem;font-size:.85rem}.register-form input,.register-form select{padding:.4rem .5rem;border-radius:4px;border:1px solid #555;background:#1f1d1b;color:inherit}.register-form select{width:100%;cursor:pointer}.register-form select option:disabled{color:#888}.project-open-actions{display:flex;gap:.5rem;align-items:stretch}.project-open-actions button{flex:1}.register-form button{padding:.45rem;border:none;border-radius:4px;background:#6b8e6b;color:#fff;cursor:pointer}.register-form button.btn-danger{background:#a04545}.register-form button.btn-danger:hover:not(:disabled){background:#b85555}.register-form button:disabled{opacity:.55;cursor:not-allowed}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.binder-tree{list-style:none;margin:0;padding-left:0}.binder-tree ul{list-style:none;margin:0;padding-left:1rem}.binder-title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.binder-type-icon-wrap{position:relative;flex-shrink:0;width:1rem;height:1rem}.binder-type-icon-wrap--unsynced .binder-type-icon{opacity:1}.binder-unsynced-badge{position:absolute;right:-2px;bottom:-2px;width:.45rem;height:.45rem;border-radius:50%;background:#e07030;box-shadow:0 0 0 1.5px #2a2826;pointer-events:none}.binder-item{margin:.15rem 0}.binder-row{position:relative;display:flex;align-items:stretch;gap:.15rem;border-radius:4px}.binder-row--dragging{opacity:.45}.binder-row--drop-before:before,.binder-row--drop-after:after{content:"";position:absolute;left:.35rem;right:.35rem;height:2px;background:#c45c26;border-radius:1px;pointer-events:none}.binder-row--drop-before:before{top:-1px}.binder-row--drop-after:after{bottom:-1px}.binder-row--drop-inside{outline:1px dashed #c45c26;outline-offset:-1px;background:#c45c261f}.binder-row--file-drop{outline:2px solid #3d8fd1;outline-offset:-1px;background:#3d8fd124}.binder-import-input{position:absolute;width:0;height:0;opacity:0;pointer-events:none}.binder-menu-item-with-submenu{position:relative}.binder-actions-submenu{position:absolute;left:100%;top:0;z-index:35;min-width:9rem;margin:0;padding:.25rem 0;list-style:none;background:#3d3a36;border:1px solid #5c5854;border-radius:6px;box-shadow:0 4px 14px #0006}.plain-text-content-editable{display:block;width:100%;min-height:100%;margin:0;border:none;resize:none;background:transparent;color:inherit;font:inherit;line-height:inherit;white-space:pre-wrap}.binder-download-view{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem;padding:.5rem 0}.binder-download-hint{margin:0;color:#a8a29c}.binder-download-filename{margin:0;font-weight:600}.import-error-report-dialog{max-width:36rem}.import-error-report-table-wrap{max-height:16rem;overflow:auto;margin:.75rem 0}.import-error-report-table{width:100%;border-collapse:collapse;font-size:.85rem}.import-error-report-table th,.import-error-report-table td{border-bottom:1px solid #5c5854;padding:.35rem .5rem;text-align:left;vertical-align:top}.import-error-report-actions{display:flex;justify-content:flex-end;gap:.5rem}.binder-row[draggable=true]{cursor:grab}.binder-row[draggable=true]:active{cursor:grabbing}.binder-row-body{flex:1;min-width:0;display:flex;align-items:stretch;gap:.1rem}.binder-actions-menu{position:relative;flex-shrink:0;align-self:center}.binder-menu-trigger{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border:none;border-radius:4px;background:transparent;color:#c8c0b8;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .12s ease}.binder-menu-trigger svg{width:.9rem;height:.9rem}.binder-row:hover .binder-menu-trigger,.binder-row:focus-within .binder-menu-trigger,.binder-row--selected .binder-menu-trigger,.binder-actions-menu:has(.binder-actions-dropdown) .binder-menu-trigger{opacity:1;pointer-events:auto}.binder-menu-trigger:hover,.binder-menu-trigger[aria-expanded=true]{background:#3d3a36;color:#f0ebe3}.binder-actions-dropdown{position:absolute;right:0;top:calc(100% + 4px);z-index:30;min-width:11.5rem;margin:0;padding:.25rem 0;list-style:none;background:#3d3a36;border:1px solid #5c5854;border-radius:6px;box-shadow:0 4px 14px #0006}.binder-menu-item{display:flex;align-items:center;gap:.5rem;width:100%;padding:.4rem .65rem;border:none;background:transparent;color:#f0ebe3;font-size:.82rem;text-align:left;cursor:pointer}.binder-menu-item:hover{background:#4a4744}.binder-menu-item--danger{color:#ffb4a8}.binder-menu-item--danger:hover{background:#a0302859}.binder-menu-item-icon{display:flex;width:1rem;height:1rem;flex-shrink:0;color:#c8c0b8}.binder-menu-item-icon svg{width:100%;height:100%}.binder-toggle{flex-shrink:0;width:1.35rem;height:1.35rem;padding:0;border:none;border-radius:4px;background:transparent;color:#c8c0b8;cursor:pointer;font-size:.75rem;line-height:1.35rem;text-align:center}.binder-toggle:hover{background:#3d3a36;color:#f0ebe3}.binder-toggle-spacer{flex-shrink:0;width:1.35rem}.binder-type-icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:1rem;height:1rem;color:#c8c0b8;opacity:.9}.binder-type-icon svg{width:100%;height:100%}.binder-type-icon-pdf{font-size:.5rem;font-weight:700;letter-spacing:-.02em;line-height:1}.binder-label{display:inline-flex;align-items:center;gap:.35rem;flex:1;min-width:0;text-align:left;background:transparent;border:none;color:inherit;padding:.25rem .35rem;border-radius:4px;cursor:pointer;font-size:.9rem}.binder-row:hover .binder-label,.binder-label.selected{background:#3d3a36}.binder-item:has(.binder-actions-dropdown){z-index:10}.app-workspace-column{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}.main{display:flex;flex-direction:column;flex:1 1 0;min-height:0;padding:1.25rem 1.5rem;overflow:hidden}.activity-log-panel{display:flex;flex-direction:column;min-height:0;height:100%;border-top:1px solid #c9c2b8;background:#f3f0eb;color:#1a1a1a}.activity-log-header-actions{display:flex;gap:.35rem;flex-wrap:wrap}.activity-log-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.35rem .75rem .25rem;flex-shrink:0}.activity-log-title{font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#555}.activity-log-clear{padding:.2rem .55rem;font-size:.75rem}.activity-log-scroll{flex:1 1 0;min-height:0;overflow-y:auto;padding:0 .75rem .5rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;line-height:1.45}.activity-log-empty{margin:.25rem 0;color:#777;font-style:italic}.activity-log-list{margin:0;padding:0;list-style:none}.activity-log-line{display:flex;gap:.5rem;padding:.12rem 0;border-bottom:1px solid rgba(0,0,0,.04)}.activity-log-time{flex:0 0 auto;color:#888;font-variant-numeric:tabular-nums}.activity-log-message{flex:1 1 auto;word-break:break-word;white-space:pre-wrap}.activity-log-line--success .activity-log-message{color:#2d5a2d}.activity-log-line--warning .activity-log-message{color:#7a5a1a}.activity-log-line--error .activity-log-message{color:#9b2c2c}.doc-view{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.editor-pane-loading{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;min-height:12rem;color:#666;font-size:.95rem}.loading-spinner{width:2rem;height:2rem;border:3px solid #e0e0e0;border-top-color:#0b5cab;border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-blocking-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:#12100e8c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);pointer-events:all;cursor:wait}.app-blocking-overlay-panel{display:flex;flex-direction:column;align-items:center;gap:.85rem;max-width:min(22rem,90vw);padding:1.5rem 1.75rem;border-radius:10px;background:#f7f5f2;color:#2c2a28;box-shadow:0 8px 32px #00000059;text-align:center;font-size:.95rem}.app-blocking-overlay-panel p{margin:0;line-height:1.45}.doc-view--scroll{overflow:auto}.doc-header{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem}.tier-badge{font-size:.75rem;font-weight:700;padding:.2rem .55rem;border-radius:999px;text-transform:uppercase;letter-spacing:.04em}.tier-a{background:#d4edda;color:#155724}.tier-b{background:#fff3cd;color:#856404}.tier-c{background:#f8d7da;color:#721c24}.warnings{background:#fff8e6;border:1px solid #e6d5a8;border-radius:6px;padding:.75rem 1rem;margin-bottom:1rem;font-size:.9rem}.warnings ul{margin:.35rem 0 0;padding-left:1.2rem}.binder-media{flex:1;min-height:0;display:flex;flex-direction:column;background:#1a1816;border-radius:8px;overflow:hidden}.binder-media--image{align-items:center;justify-content:center;padding:1rem}.binder-media-image{max-width:100%;max-height:calc(100vh - 8rem);object-fit:contain;border-radius:4px;box-shadow:0 2px 12px #00000059}.binder-media-pdf{flex:1;width:100%;min-height:calc(100vh - 8rem);border:none;background:#fff}.preview{background:#fff;border-radius:8px;padding:1.5rem 2rem;box-shadow:0 1px 3px #00000014;max-width:48rem}.preview :first-child{margin-top:0}.preview h1,.preview h2,.preview h3,.preview h4,.preview h5,.preview h6{line-height:1.25;margin:1.25rem 0 .5rem}.preview h1{font-size:1.75rem}.preview h2{font-size:1.35rem}.preview ul,.preview ol{margin:.5rem 0;padding-left:1.5rem}.preview li>p{margin:.25rem 0}.preview table{border-collapse:collapse;margin:.75rem 0;width:100%}.preview th,.preview td{border:1px solid #ddd;padding:.35rem .5rem;vertical-align:top}.preview a{color:#0b5cab}.preview del{text-decoration:line-through}.doc-header{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.doc-header .primary{margin-left:auto}button.primary{background:#0b5cab;color:#fff;border:none;border-radius:6px;padding:.4rem .85rem;cursor:pointer}button.primary:disabled{opacity:.6;cursor:not-allowed}.upload-panel{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}button.btn-secondary{background:#fff;color:#1a1a1a;border:1px solid #c8c8c8;border-radius:6px;padding:.4rem .85rem;cursor:pointer}button.btn-secondary:disabled{opacity:.6;cursor:not-allowed}.editor{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;background:#fff;border-radius:8px;padding:1rem 1.25rem;box-shadow:0 1px 3px #00000014}.editor-save-status{font-size:.85rem;color:#666;margin:0 0 .5rem;flex-shrink:0}.editor-save-status-error{color:#842029;background:#f8d7da;border:1px solid #f1aeb5;border-radius:6px;padding:.5rem .75rem}.editor-save-error-detail{margin:.5rem 0 0;padding:.5rem .65rem;background:#0000000f;border-radius:4px;font-size:.75rem;line-height:1.35;white-space:pre-wrap;word-break:break-word;max-height:12rem;overflow:auto}.editor-status-bar{flex-shrink:0;margin-top:.35rem;padding:.35rem .5rem;font-size:.8rem;color:#444;border-top:1px solid #e2e2e2;background:#fafafa}.doc-view--focus-mode .editor-status-bar{background:transparent;border-top-color:#ddd}.editor-status-sep{color:#999}.lexical-editor{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}.lexical-editor .editor-toolbar{flex-shrink:0}.editor-ruler-wrap{flex-shrink:0;padding:0 1.25rem;background:#fff;border:1px solid #ddd;border-bottom:none;border-radius:6px 6px 0 0}.lexical-editor .editor-surface{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;border:1px solid #ddd;border-radius:0 0 6px 6px;background:#fff}.editor-ruler{position:relative;height:1.35rem;margin:.15rem 0 .1rem;-webkit-user-select:none;user-select:none;touch-action:none}.editor-ruler-ticks{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.editor-ruler-tick{position:absolute;top:0;bottom:0;width:1px;margin-left:-.5px;background:#c8c8c8}.editor-ruler-tick--labeled{font-size:.6rem;color:#666;background:transparent;width:auto;margin-left:0;top:0;line-height:1}.editor-ruler-handle{position:absolute;bottom:0;width:0;height:0;padding:0;border:none;background:transparent;cursor:ew-resize;transform:translate(-50%);z-index:1}.editor-ruler-handle--left,.editor-ruler-handle--right{border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:7px solid #4a6fa5;height:7px}.editor-ruler-handle--first-line{bottom:auto;top:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #4a6fa5;height:7px}.editor-ruler-handle--right{border-bottom-color:#3d7a5c}.lexical-content-editable{min-height:100%;padding:1rem 1.25rem;outline:none;font:inherit;line-height:1.6}.lexical-h1{font-size:1.75rem;margin:.75rem 0 .35rem}.lexical-h2{font-size:1.35rem;margin:.65rem 0 .3rem}.lexical-h3{font-size:1.15rem;margin:.55rem 0 .25rem}.lexical-strikethrough{text-decoration:line-through}.lexical-content-editable a{color:#0b57d0;text-decoration:underline;cursor:pointer!important}.lexical-link-hover-toolbar{position:relative;display:flex;align-items:center;gap:.15rem;padding:.2rem .35rem;background:#1a1a1a;border-radius:6px;box-shadow:0 2px 8px #0003}.lexical-link-hover-toolbar:before{content:"";position:absolute;left:-.5rem;right:-.5rem;top:100%;height:.65rem}.lexical-link-hover-btn{display:flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:4px;background:transparent;color:#f5f5f5;cursor:pointer}.lexical-link-hover-btn:hover{background:#ffffff1f}.lexical-link-hover-edit{display:flex;align-items:center;gap:.35rem}.lexical-link-hover-edit input{width:14rem;max-width:40vw;font-size:.85rem;padding:.2rem .4rem;border-radius:4px;border:1px solid #555}.lexical-link-hover-edit button{font-size:.8rem;padding:.2rem .5rem;border-radius:4px;border:none;background:#0b57d0;color:#fff;cursor:pointer}.lexical-content-editable .lexical-image-figure,.lexical-content-editable figure[data-lexical-decorator=true]{margin:.5rem 0;padding:0;cursor:pointer;display:block;width:fit-content;max-width:100%;line-height:0;background:transparent;border:none;box-shadow:none;outline:none}.lexical-content-editable .lexical-image-figure.lexical-image-selected,.lexical-content-editable figure.lexical-image-selected[data-lexical-decorator=true]{outline:2px solid #6b8e6b;outline-offset:2px}.lexical-content-editable .lexical-image-figure:focus,.lexical-content-editable .lexical-image-figure:focus-visible,.lexical-content-editable .lexical-image:focus,.lexical-content-editable .lexical-image:focus-visible{outline:none}.lexical-image{max-width:100%;width:auto;height:auto;display:block;margin:0;padding:0;background:transparent;border:none;box-shadow:none;outline:none;pointer-events:none;vertical-align:top;-webkit-user-select:none;user-select:none}.lexical-image-loading{display:block;margin:0;padding:0;background:transparent;border:none;opacity:0}.lexical-image-broken{display:block;width:1.5rem;height:1.5rem;margin:0;padding:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5.5-5.5a2 2 0 0 0-2.8 0L5 18'/%3E%3C/svg%3E") center / contain no-repeat;border:none;opacity:.55}.lexical-content-editable table{border-collapse:collapse;margin:.75rem 0;width:100%}.lexical-content-editable td,.lexical-content-editable th{border:1px solid #ccc;padding:.35rem .5rem;vertical-align:top}.lexical-ul,.lexical-ol{margin:.5rem 0;padding-left:1.5rem}.lexical-nested-li,.lexical-content-editable .lexical-li:has(>.lexical-ul),.lexical-content-editable .lexical-li:has(>.lexical-ol){list-style-type:none}.lexical-nested-li:before,.lexical-nested-li:after{display:none}.lexical-toolbar select{padding:.35rem .5rem;border-radius:4px;border:1px solid #ccc;background:#fff}.editor-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:1rem;flex-shrink:0}.editor-preview-line{flex-shrink:0;margin:.75rem 0 0}.editor-toolbar button.active{background:#e8f0fe;border-color:#0b5cab}.editor-toolbar button:disabled{opacity:.45;cursor:not-allowed}.editor-toolbar .toolbar-divider{width:1px;height:1.5rem;background:#ccc;margin:0 .15rem}.editor-toolbar .toolbar-group-label{font-size:.8rem;color:#666;margin-right:.15rem}.editor-toolbar .toolbar-icon-button{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:pointer}.editor-toolbar .toolbar-icon-svg{width:1.1rem;height:1.1rem}.toolbar-menu-anchor{position:relative;display:inline-flex}.toolbar-dropdown{position:absolute;top:calc(100% + 4px);left:0;z-index:20;min-width:10rem;padding:.25rem 0;background:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 4px 12px #0000001f}.toolbar-dropdown-item{display:block;width:100%;padding:.4rem .75rem;border:none;background:transparent;text-align:left;font:inherit;cursor:pointer}.toolbar-dropdown-item:hover{background:#f0f4f8}.toolbar-dropdown-separator{height:1px;margin:.25rem 0;background:#e0e0e0}.lexical-context-toolbar{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:.25rem;padding:.25rem .35rem;background:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 8px #0000001a}.lexical-context-toolbar .toolbar-icon-button{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer}.lexical-context-toolbar .toolbar-icon-button:hover:not(:disabled){background:#f0f4f8;border-color:#ccc}.lexical-context-toolbar .toolbar-icon-button.active{background:#e8f0fe;border-color:#0b5cab}.lexical-context-toolbar .toolbar-icon-button:disabled{opacity:.45;cursor:not-allowed}.lexical-context-toolbar .toolbar-icon-svg{width:1.1rem;height:1.1rem}.lexical-context-toolbar .toolbar-divider{width:1px;height:1.5rem;background:#ccc;margin:0 .1rem}.editor-hint{flex:1;font-size:.85rem;color:#666;min-width:12rem}.editor-block textarea{width:100%;font:inherit;line-height:1.5;padding:.5rem;border:1px solid #ccc;border-radius:6px}.editor-block.focused textarea{border-color:#0b5cab;outline:none}.editor-readonly-block{opacity:.85;margin:.5rem 0}.tiptap-host .tiptap-surface{min-height:12rem;outline:none;line-height:1.55;font-size:1rem}.tiptap-host .tiptap-surface:focus-visible{outline:2px solid #0b5cab;outline-offset:2px;border-radius:6px}.tiptap-host p{margin:0 0 .75rem}.tiptap-host p:last-child{margin-bottom:0}.empty-state{color:#666;font-style:italic}.upload-files{list-style:none;margin:.5rem 0 0;padding:0;font-size:.8rem;max-height:12rem;overflow:auto}.upload-files li{margin:.35rem 0;padding:.35rem .45rem;border-radius:4px;background:#0003}.upload-file-name{display:block;word-break:break-all}.upload-file-detail{display:block;margin-top:.2rem;color:#f5c6c6;font-size:.78rem}.upload-file-failed{border-left:3px solid #e57373}.upload-file-skipped .upload-file-detail{color:#c9b896}.error{color:#a94442;background:#f8d7da;padding:.75rem;border-radius:6px;white-space:pre-wrap;word-break:break-word}.nextcloud-panel{border-top:1px solid #4a4744;margin-top:1rem;padding-top:1rem;margin-bottom:1rem}.nextcloud-panel h2{font-size:.95rem;margin:0 0 .5rem}.breadcrumbs{display:flex;flex-wrap:wrap;gap:.25rem;margin-bottom:.5rem}.crumb{background:transparent;border:none;color:#9ec5fe;cursor:pointer;font-size:.8rem;padding:0}.remote-list{list-style:none;padding:0;margin:0 0 .75rem;max-height:12rem;overflow:auto}.remote-item{display:block;width:100%;text-align:left;background:#3d3a37;border:1px solid transparent;color:inherit;padding:.35rem .5rem;margin-bottom:.25rem;border-radius:4px;cursor:pointer;font-size:.8rem}.remote-item.selected{border-color:#9ec5fe}.sync-status{font-size:.8rem;color:#c8c0b8}.workspace-mode-bar{display:flex;justify-content:flex-end;padding:.5rem .75rem 0}.chat-reopen-tab{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:1180;padding:.5rem .35rem;writing-mode:vertical-rl;font-size:.75rem;border:1px solid #4a4744;border-left:none;border-radius:0 6px 6px 0;background:#f3f0eb;color:#1a1a1a;cursor:pointer}.chat-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1190;background:#1e1c1a40;display:flex;justify-content:flex-end}.chat-drawer{position:relative;width:min(28rem,100vw);height:100%;background:#faf8f5;border-left:1px solid #ddd5cc;box-shadow:-4px 0 24px #00000014;display:flex;flex-direction:column;min-height:0}.chat-panel-shell{display:flex;flex-direction:row;flex:1;min-height:0;min-width:0;position:relative;height:100%;width:100%}.chat-history-tab{position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:6;padding:.5rem .35rem;writing-mode:vertical-rl;font-size:.75rem;border:1px solid #4a4744;border-left:none;border-radius:0 6px 6px 0;background:#f3f0eb;color:#1a1a1a;cursor:pointer}.chat-history-tab--open{background:#e8f0fe;border-color:#6b9bd1}.chat-history-rail{flex:0 0 auto;width:min(14rem,42vw);display:flex;flex-direction:column;min-height:0;border-right:1px solid #ddd5cc;background:#f3f0eb}.chat-history-rail-header{display:flex;align-items:center;justify-content:space-between;gap:.35rem;padding:.5rem .65rem;border-bottom:1px solid #ddd6cc;flex-shrink:0}.chat-history-rail-title{margin:0;font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#555}.chat-history-rail-close{padding:.15rem .45rem;line-height:1}.chat-history-list{list-style:none;margin:0;padding:.25rem 0;overflow-y:auto;flex:1;min-height:0}.chat-history-item{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;width:100%;padding:.5rem .65rem;border:none;border-bottom:1px solid #e8e2d9;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}.chat-history-item:hover{background:#ebe6de}.chat-history-item.active{background:#e8f0fe}.chat-history-item-title{font-size:.85rem;font-weight:500;line-height:1.3;word-break:break-word}.chat-history-item-meta{font-size:.7rem;color:#6b6560}.brainstorming-mode,.chat-panel{display:flex;flex-direction:column;flex:1;height:100%;min-height:0;min-width:0}.chat-header{padding:.5rem .75rem;border-bottom:1px solid #ddd5cc;background:#faf8f5}.chat-header-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between}.chat-header-title{margin:0;font-size:1rem;font-weight:600}.chat-header-actions{display:flex;flex-wrap:wrap;gap:.5rem}.chat-header-field{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem;flex:1;min-width:12rem}.chat-header-input{padding:.35rem .5rem;border:1px solid #ccc4bb;border-radius:4px}.chat-header-meta{margin:.35rem 0 0;font-size:.75rem;color:#6b6560}.chat-messages{flex:1;overflow:auto;padding:.75rem;display:flex;flex-direction:column;gap:.75rem}.chat-message{max-width:42rem;padding:.5rem .75rem;border-radius:8px;font-size:.9rem;white-space:pre-wrap}.chat-message-markdown{display:flex;flex-direction:column;gap:.5rem}.chat-md-paragraph{margin:0;white-space:pre-wrap}.chat-md-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85em;padding:.1em .35em;border-radius:4px;background:#f3f0eb}.chat-md-pre{margin:0;padding:.5rem .65rem;border-radius:6px;background:#f3f0eb;overflow-x:auto;white-space:pre-wrap}.chat-md-pre-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85em}.chat-message-markdown a{color:#1a5fb4;text-decoration:underline}.chat-message--user{align-self:flex-end;background:#e8f0fe}.chat-message--assistant{align-self:flex-start;background:#fff;border:1px solid #e0d8cf;white-space:normal}.chat-stream-cursor{animation:chat-blink 1s step-end infinite}@keyframes chat-blink{50%{opacity:0}}.chat-preview-card{border:1px solid #c5b8a8;border-radius:8px;padding:.75rem;background:#fffdf8}.chat-preview-card-header{display:flex;flex-wrap:wrap;gap:.5rem;align-items:baseline;margin-bottom:.5rem}.chat-preview-card-type{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#6b6560}.chat-preview-card-body{margin:0 0 .5rem;font-size:.85rem}.sync-conflict-page{padding:1.5rem;max-width:1200px}.conflict-merge-columns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}.conflict-plain{white-space:pre-wrap;max-height:20rem;overflow:auto;background:var(--surface-elevated, #f4f4f4);padding:.5rem}.conflict-merged-input{width:100%;font-family:inherit}.conflict-list{list-style:none;padding:0}.conflict-list li{display:flex;gap:1rem;align-items:center;margin-bottom:.5rem}.chat-preview-card-diff{font-size:.75rem;background:#f4f2ef;padding:.5rem;overflow:auto;max-height:8rem}.chat-preview-card-actions{display:flex;gap:.5rem;justify-content:flex-end}.chat-composer{border-top:1px solid #ddd5cc;padding:.75rem;background:#faf8f5}.chat-composer-input{width:100%;resize:vertical;min-height:4rem;padding:.5rem;border:1px solid #ccc4bb;border-radius:4px;font:inherit}.chat-composer-selectors{display:flex;flex-direction:column;gap:.5rem;margin-top:.5rem}.chat-composer-field{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem}.chat-composer-label{color:#6b6560}.chat-composer-select{width:100%;padding:.35rem .5rem;border:1px solid #ccc4bb;border-radius:4px;font:inherit;background:#fff}.chat-composer-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}.chat-error{margin:0 .75rem;color:#b42318;font-size:.85rem}.chat-incorporate-dialog{max-width:28rem}.chat-incorporate-rationale{font-size:.85rem;color:#4a4744}.chat-incorporate-mode{display:flex;flex-direction:column;gap:.35rem;margin:.75rem 0;font-size:.9rem}.chat-incorporate-folder-toggle{display:flex;align-items:center;gap:.35rem;font-size:.85rem;margin:.5rem 0}.project-todo-nav{padding:.5rem .75rem;border-bottom:1px solid var(--border-subtle, #333);font-size:.875rem}.project-todo-nav-focus{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;min-height:1.5rem}.project-todo-focus-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-todo-count{font-variant-numeric:tabular-nums;opacity:.85}.project-todo-clear-focus{flex-shrink:0;margin-left:auto;padding:0 .35rem;font-size:1.1rem;line-height:1;border:none;background:transparent;color:inherit;opacity:.75;cursor:pointer}.project-todo-clear-focus:hover{opacity:1}.project-todo-nav-actions{display:flex;flex-wrap:wrap;gap:.35rem}.project-todo-nav-actions button{font-size:.8rem}.todo-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:1000;display:flex;align-items:center;justify-content:center}.todo-modal{background:var(--surface-elevated, #1e1e1e);padding:1rem 1.25rem;border-radius:8px;min-width:280px;max-width:90vw}.todo-modal-field{display:flex;flex-direction:column;gap:.25rem;margin:.75rem 0}.todo-modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}.project-todo-editor{display:flex;flex-direction:column;height:100%;min-height:0}.project-todo-editor-header{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;padding:.5rem .75rem;border-bottom:1px solid var(--border-subtle, #333)}.project-todo-editor-body{display:flex;flex:1;min-height:0;overflow:hidden}.todo-tree-list{list-style:none;margin:0;padding:.5rem;flex:1;overflow:auto;min-width:200px;border-right:1px solid var(--border-subtle, #333)}.todo-tree-item{margin:.15rem 0}.todo-tree-row{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem}.todo-tree-row--selected{background:#8080ff1f}.todo-tree-row--dragging{opacity:.45}.todo-tree-row--drop-before:before,.todo-tree-row--drop-after:after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--accent, #6b8cff);pointer-events:none}.todo-tree-row--drop-before:before{top:-1px}.todo-tree-row--drop-after:after{bottom:-1px}.todo-tree-row--drop-inside{outline:2px dashed var(--accent, #6b8cff);outline-offset:-2px}.todo-tree-row{position:relative}.todo-tree-icon{width:1rem;height:1rem;flex-shrink:0;opacity:.85}.todo-tree-checkbox{flex-shrink:0;margin:0}.todo-tree-focus-btn{font-size:.75rem}.todo-recurrence-kind select{margin-left:.5rem}.todo-recurrence-weekdays{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}.todo-weekday{min-width:2.25rem;padding:.25rem .35rem;font-size:.8rem;border-radius:4px;border:1px solid var(--border-subtle, #444);background:transparent;color:inherit}.todo-weekday--on{background:var(--accent, #6b8cff);border-color:var(--accent, #6b8cff);color:#fff}.todo-recurrence-hint{margin:.35rem 0 0;font-size:.85rem;opacity:.8}.todo-tree-select{flex:1;text-align:left;background:none;border:none;cursor:pointer;color:inherit;font:inherit}.project-todo-detail{flex:2;padding:.75rem;overflow:auto;display:flex;flex-direction:column;gap:.75rem}.todo-markdown-split{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;min-height:160px}.todo-markdown-source{width:100%;min-height:140px;resize:vertical;font-family:ui-monospace,monospace;font-size:.85rem}.todo-markdown-preview{border:1px solid var(--border-subtle, #333);padding:.5rem;overflow:auto;font-size:.9rem}.todo-recurrence-presets{display:flex;flex-wrap:wrap;gap:.35rem;margin:.35rem 0}
