:root{--safe-area-top:var(--native-safe-area-top,env(safe-area-inset-top,0px));--safe-area-right:var(--native-safe-area-right,env(safe-area-inset-right,0px));--safe-area-bottom:var(--native-safe-area-bottom,env(safe-area-inset-bottom,0px));--safe-area-left:var(--native-safe-area-left,env(safe-area-inset-left,0px));color:var(--text);background:var(--paper);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:system-ui,-apple-system,Segoe UI,Microsoft YaHei,sans-serif}:root,[data-theme]{--paper:#fffefa;--sidebar:#f1f3ee;--surface:#fff;--hover:#e8ede5;--line:#e5e8df;--text:#2c3530;--muted:#92998e;--soft-text:#697368;--accent:#3e705d;--accent-hover:#315e4c;--accent-soft:#dfe9de;--focus-ring:var(--accent);--accent-text:var(--accent-hover);--accent-contrast:#fffdf5;--quote-line:#d8dde0;--quote-text:#7a8790;--danger:#ac534b;--danger-soft:#fcf0ec;--shadow:0 18px 80px #25352a26, 0 3px 12px #25352a12;--highlight:#eddf9a;--scrollbar:#a3b29c55;--overlay:#16251d55;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark],[data-theme=graphite],[data-theme=nord],[data-theme=gruvbox]{--paper:#202620;--sidebar:#1b211c;--surface:#272f28;--hover:#2c352d;--line:#353e34;--text:#dde4d9;--muted:#899684;--soft-text:#a4b09e;--accent:#92b69c;--accent-hover:#b3cfb9;--accent-soft:#344a39;--accent-contrast:#202620;--quote-line:#52605b;--quote-text:#a7b1b6;--danger:#e89e8d;--danger-soft:#422f29;--shadow:0 18px 80px #0007;--highlight:#6b6331;--scrollbar:#89968466;--overlay:#0008;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=porcelain],[data-theme=oat],[data-theme=bronze],[data-theme=mist-blue]{--accent-contrast:#fff}[data-theme=porcelain]{--paper:#fcfcfd;--sidebar:#f0f0f3;--surface:#fff;--hover:#e8e8ec;--line:#d9d9e0;--text:#1c2024;--muted:#7e808a;--soft-text:#60646c;--accent:#3e63dd;--accent-hover:#3a5bc7;--accent-soft:#edf2fe;--quote-line:#cdced6;--quote-text:#60646c;--danger:#c42b35;--danger-soft:#ffebec;--highlight:#ffedb5;--scrollbar:#8b8d9855;--overlay:#11192755;--shadow:0 18px 80px #11192726, 0 3px 12px #11192712}[data-theme=oat]{--paper:#f4f0e8;--sidebar:#eae4d9;--surface:#fbf8f2;--hover:#e8e0d3;--line:#ded6c9;--text:#453f36;--muted:#938675;--soft-text:#766b5b;--accent:#8a7254;--accent-hover:#725b40;--accent-soft:#e5dac8;--quote-line:#cec1ad;--quote-text:#82735f;--scrollbar:#93867555;--overlay:#302a2255}[data-theme=bronze]{--paper:#fdfdfc;--sidebar:#f1f0ef;--surface:#fff;--hover:#e9e8e6;--line:#d9d9d6;--text:#21201c;--muted:#898983;--soft-text:#64645e;--accent:#7d5e54;--accent-hover:#6f5148;--accent-text:#7d5e54;--accent-soft:#f6edea;--quote-line:#dccdc7;--quote-text:#7d5e54;--danger:#9f3d36;--danger-soft:#f9e8e5;--highlight:#f3e3b5;--scrollbar:#8f8d8855;--overlay:#211f1955;--shadow:0 18px 80px #211f1926, 0 3px 12px #211f1912}[data-theme=mist-blue]{--paper:#f1f5f8;--sidebar:#e6edf3;--surface:#fafcfe;--hover:#e0e9f1;--line:#d8e2eb;--text:#2f3d4a;--muted:#8293a2;--soft-text:#647a8c;--accent:#52799a;--accent-hover:#406584;--accent-soft:#dae6ef;--quote-line:#bfd0df;--quote-text:#6c849a;--scrollbar:#8293a255;--overlay:#1e2f3f55}[data-theme=lotus-pink]{--paper:#f7f0ee;--sidebar:#ede0df;--surface:#fcf8f6;--hover:#e8d8d7;--line:#dbc9c8;--text:#463a3a;--muted:#735f5e;--soft-text:#735f5e;--accent:#82505c;--accent-hover:#70414c;--accent-text:#70414c;--accent-soft:#e7d5d7;--accent-contrast:#fcf8f6;--quote-line:#dbc9c8;--quote-text:#735f5e;--danger:#a1454c;--danger-soft:#f6e3e2;--highlight:#eadb9c;--scrollbar:#a58e8b66;--overlay:#2e232355;--shadow:0 18px 80px #463a3a26, 0 3px 12px #463a3a12}[data-theme=mint-green]{--paper:#f8fdfa;--sidebar:#ebf7ef;--surface:#fff;--hover:#e2f1e7;--line:#dcece2;--text:#304a3e;--muted:#5d7568;--soft-text:#5d7568;--accent:#c7ead5;--accent-hover:#b6e1c7;--accent-text:#426b55;--accent-soft:#e2f3e8;--accent-contrast:#28503b;--focus-ring:var(--accent-text);--quote-line:#dcece2;--quote-text:#5d7568;--danger:#9f4e50;--danger-soft:#f8e9e8;--highlight:#e5edb5;--scrollbar:#7ea58c55;--overlay:#203d2d55;--shadow:0 18px 80px #304a3e26, 0 3px 12px #304a3e12}[data-theme=nord]{--paper:#2e3440;--sidebar:#3b4252;--surface:#3b4252;--hover:#434c5e;--line:#4c566a;--text:#e5e9f0;--muted:#8e9aaf;--soft-text:#d8dee9;--accent:#88c0d0;--accent-hover:#a5d0dc;--accent-text:#e5e9f0;--accent-soft:#434c5e;--accent-contrast:#2e3440;--quote-line:#5e81ac;--quote-text:#d8dee9;--danger:#e6a2a7;--danger-soft:#4b3743;--highlight:#615b37;--scrollbar:#8e9aaf66}[data-theme=gruvbox]{--paper:#282828;--sidebar:#1d2021;--surface:#32302f;--hover:#3c3836;--line:#504945;--text:#ebdbb2;--muted:#a89984;--soft-text:#bdae93;--accent:#d79921;--accent-hover:#fabd2f;--accent-text:#fabd2f;--accent-soft:#3c3836;--accent-contrast:#282828;--quote-line:#665c54;--quote-text:#d5c4a1;--danger:#fb7464;--danger-soft:#442c29;--highlight:#66512c;--scrollbar:#a8998466}[data-theme=graphite]{--paper:#242629;--sidebar:#1d1f22;--surface:#2c2f33;--hover:#34383e;--line:#3c4148;--text:#e0e2e5;--muted:#8a919c;--soft-text:#a9afb8;--accent:#a7afba;--accent-hover:#c3cad3;--accent-soft:#3b424c;--accent-contrast:#242629;--quote-line:#59616c;--quote-text:#abb3bf;--scrollbar:#8a919c66}*{box-sizing:border-box}html,body,#root{overscroll-behavior:none;width:100%;height:100%;overflow:clip}body{margin:0;position:fixed;inset:0}button,input,textarea,select{font:inherit}button,summary,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;background:0 0;border:0}button:disabled{opacity:.4;cursor:default}:is(button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible){outline:2px solid var(--focus-ring);outline-offset:3px}button,input,select,textarea{touch-action:manipulation}[hidden]{display:none!important}button svg,summary svg{flex:none}button{-webkit-user-select:none;user-select:none}::selection{background:var(--accent-soft)}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:8px}::-webkit-scrollbar-track{background:0 0}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.muted{color:var(--soft-text)}.app{height:100vh;background:var(--paper);height:100dvh;min-height:300px;color:var(--text);display:flex}.main-area{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.mobile-only{display:none!important}.icon-button{width:40px;height:40px;color:var(--soft-text);border-radius:7px;flex:none;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover:not(:disabled){background:var(--hover);color:var(--text)}.button{white-space:nowrap;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;gap:9px;min-height:42px;padding:0 18px;font-size:13px;font-weight:550;display:inline-flex}.button.primary{background:var(--accent);color:var(--accent-contrast)}.button.primary:hover:not(:disabled){background:var(--accent-hover)}.button.secondary{border-color:var(--line);color:var(--soft-text);background:0 0}.button.secondary:hover:not(:disabled){background:var(--hover);color:var(--text)}.button.danger{background:var(--danger);color:var(--surface)}.button.compact{min-height:40px;padding:0 13px;font-size:12px}.danger-text{color:var(--danger)!important}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);width:270px;padding-top:var(--safe-area-top);padding-left:var(--safe-area-left);flex-direction:column;flex:none;display:flex}.brand{align-items:center;gap:10px;height:93px;padding:26px 26px 21px;display:flex}.brand>img{width:37px;height:37px;margin-left:-4px}.brand>span{letter-spacing:3px;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:23px;font-weight:600;line-height:1.1}.brand small{letter-spacing:2px;color:var(--muted);margin-top:7px;font-family:system-ui,sans-serif;font-size:9px;font-weight:400;display:block}.new-note{justify-content:flex-start;min-height:43px;margin:4px 22px 17px;padding:0 13px;box-shadow:0 2px 3px #0000000a}.new-note>span{text-align:left;flex:1}.new-note>kbd{opacity:.5;border:1px solid #fff3;border-radius:3px;padding:2px 4px;font:10px system-ui,sans-serif}.search-field{min-height:40px;color:var(--muted);border-bottom:1px solid var(--line);align-items:center;gap:9px;margin:0 22px 18px;display:flex}.search-field input{width:100%;min-width:0;height:40px;color:var(--text);background:0 0;border:0;outline:0;font-size:12px}.search-field input::placeholder{color:var(--muted)}.search-field:focus-within{border-color:var(--focus-ring)}.sidebar-section-label{min-height:40px;color:var(--muted);letter-spacing:1.5px;justify-content:space-between;align-items:center;padding:0 14px 0 24px;font-size:10px;font-weight:600;display:flex}.sidebar-section-label .icon-button{color:var(--muted)}.tree-scroll{overscroll-behavior-y:contain;flex:1;min-height:0;padding:3px 10px 20px;overflow-y:auto}.tree-branch{position:relative}.tree-branch.drag-source>.tree-row{background:var(--accent-soft);color:var(--accent-text);opacity:.65}.tree-branch.drop-before:before,.tree-branch.drop-after:after{content:"";left:calc(var(--depth) * 11px + 14px);z-index:2;background:var(--accent);height:2px;box-shadow:-3px 0 0 1px var(--accent);pointer-events:none;border-radius:2px;position:absolute;right:5px}.tree-branch.drop-before:before{top:-1px}.tree-branch.drop-after:after{bottom:0}.tree-branch.drop-inside>.tree-row{background:var(--accent-soft);color:var(--accent-text);box-shadow:inset 0 0 0 1px var(--accent)}.tree-row{padding-left:calc(var(--depth) * 11px);min-height:42px;color:var(--soft-text);border-radius:7px;align-items:center;margin-bottom:2px;font-size:12px;display:flex;position:relative}.tree-row:hover{background:var(--hover)}.tree-row.selected{background:var(--accent-soft);color:var(--accent-text)}.tree-chevron{width:40px;height:40px;color:var(--muted);flex:none;justify-content:center;align-items:center;display:flex}.tree-spacer{flex:none;width:26px}.tree-item{text-align:left;flex:1;align-items:center;gap:8px;min-width:0;min-height:40px;padding:0;display:flex}.tree-item>span:first-of-type{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tree-item>svg{opacity:.75}.tree-drag-handle{cursor:grab;touch-action:pan-y pinch-zoom;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.drag-source>.tree-row .tree-drag-handle{cursor:grabbing}.tree-drag-preview{border:1px solid var(--accent);width:190px;max-width:calc(100vw - 32px);height:40px;color:var(--accent-text);background:var(--accent-soft);opacity:.6;pointer-events:none;border-radius:6px;align-items:center;gap:8px;padding:0 10px;display:flex}.tree-drag-preview>svg{flex:none}.tree-drag-preview>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;font-weight:600;overflow:hidden}.tree-more{opacity:0;width:40px;height:40px;color:var(--soft-text);border-radius:7px;flex:none;justify-content:center;align-items:center;display:flex}.tree-row:hover .tree-more,.tree-row:focus-within .tree-more,.tree-row.selected .tree-more{opacity:1}.tree-more:hover{background:var(--accent-soft)}.conflict-dot{background:#ba8858;border-radius:50%;flex:none;width:6px;height:6px}.tree-empty{color:var(--muted);padding:10px 20px;font-size:12px}.sidebar-bottom{border-top:1px solid var(--line);margin:0 18px;padding:12px 0}.sidebar-link{width:100%;min-height:42px;color:var(--soft-text);text-align:left;border-radius:7px;align-items:center;gap:11px;padding:0 10px;font-size:12px;display:flex}.sidebar-link:hover{background:var(--hover)}.sidebar-link.active{color:var(--accent-text);background:var(--accent-soft)}.count-pill{background:var(--hover);color:var(--soft-text);border-radius:20px;margin-left:auto;padding:2px 7px;font-size:10px}.account-button{text-align:left;border-top:1px solid var(--line);min-height:79px;padding:15px 24px max(15px, var(--safe-area-bottom));align-items:center;gap:10px;display:flex}.account-button:hover{background:var(--hover)}.account-avatar{width:33px;height:33px;color:var(--accent-text);background:var(--accent-soft);border-radius:50%;flex:none;justify-content:center;align-items:center;display:flex}.account-caption{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.account-caption strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:550;overflow:hidden}.account-caption small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.account-button>svg{color:var(--muted)}.editor-container{flex:1;min-height:0;display:flex}.editor-shell{flex-direction:column;width:100%;min-width:0;min-height:0;display:flex}.editor-toolbar{height:calc(64px + var(--safe-area-top));padding:var(--safe-area-top) max(30px, var(--safe-area-right)) 0 max(30px, var(--safe-area-left));border-bottom:1px solid var(--line);flex:none;align-items:center;gap:10px;display:flex}.breadcrumbs{min-width:0;color:var(--muted);white-space:nowrap;flex:1;align-items:center;gap:8px;font-size:11px;display:flex;overflow:hidden}.breadcrumbs>span{align-items:center;gap:8px;min-width:0;display:inline-flex}.breadcrumbs>span>span{text-overflow:ellipsis;overflow:hidden}.breadcrumbs>span:last-child{color:var(--soft-text)}.toolbar-actions{flex:none;align-items:center;gap:3px;display:flex}.sync-button{height:40px;color:var(--soft-text);border-radius:7px;align-items:center;gap:7px;padding:0 10px;font-size:10px;display:flex}.sync-button:hover{background:var(--hover)}.sync-button svg{color:var(--accent-text)}.toolbar-divider{background:var(--line);width:1px;height:18px;margin:0 9px}.export-menu{position:relative}.export-menu>summary{cursor:pointer;list-style:none}.export-menu>summary::-webkit-details-marker{display:none}.dropdown{z-index:10;background:var(--surface);border:1px solid var(--line);min-width:166px;box-shadow:var(--shadow);border-radius:9px;padding:5px;position:absolute;top:calc(100% + 6px);right:0}.dropdown button{text-align:left;border-radius:5px;width:100%;min-height:40px;padding:0 10px;font-size:12px;display:block}.dropdown button:hover:not(:disabled){background:var(--hover)}.writing-area{flex:1;justify-content:center;min-width:0;min-height:0;display:flex;overflow:hidden}.editor-page{flex-direction:column;width:100%;min-width:0;max-width:none;min-height:0;padding:clamp(28px,5vh,64px) clamp(24px,4vw,64px) 20px;display:flex}.note-title{width:100%;color:var(--text);letter-spacing:.04em;background:0 0;border:0;border-radius:0;padding:0 0 24px;font-size:clamp(25px,2.7vw,33px);font-weight:600;line-height:1.5;display:block;outline:0!important}.note-title::placeholder{color:var(--muted)}.note-content{resize:none;width:100%;min-width:0;min-height:0;color:var(--text);overflow-wrap:anywhere;line-height:inherit;font-family:inherit;font-size:inherit;letter-spacing:.015em;background:0 0;border:0;border-radius:0;flex:1;padding:0 6px 16px 0;overflow-y:auto;outline:0!important}.note-content::placeholder{color:var(--muted);font-size:.9em}.rich-writing-layout,.plain-writing-layout{flex-direction:column;flex:1;min-height:0;display:flex}.format-toolbar{z-index:2;border-bottom:1px solid var(--line);background:var(--paper);flex:none;padding:7px clamp(24px,4vw,64px);position:relative}.format-controls{flex-wrap:wrap;align-items:center;gap:3px;min-width:0;display:flex}.format-button{width:33px;height:33px;color:var(--soft-text);cursor:pointer;border-radius:6px;flex:none;justify-content:center;align-items:center;list-style:none;display:inline-flex}.format-button:hover:not(:disabled),.format-block-trigger:hover:not(:disabled){background:var(--hover);color:var(--text)}.format-button.active{background:var(--accent-soft);color:var(--accent-text)}.format-button::-webkit-details-marker{display:none}.format-block-trigger{min-width:118px;height:33px;color:var(--soft-text);border-radius:6px;flex:none;justify-content:flex-start;align-items:center;gap:7px;padding:0 8px;font-size:12px;display:inline-flex}.format-block-trigger>span{text-align:left;flex:1}.format-block-trigger.active{background:var(--accent-soft);color:var(--accent-text)}.font-size-trigger{min-width:51px;height:33px;color:var(--soft-text);font-variant-numeric:tabular-nums;border-radius:6px;justify-content:center;align-items:center;gap:5px;padding:0 7px;font-size:12px;display:inline-flex}.font-size-trigger:hover:not(:disabled),.color-style-trigger:hover:not(:disabled){background:var(--hover);color:var(--text)}.color-style-trigger{min-width:41px;height:33px;color:var(--soft-text);border-radius:6px;justify-content:center;align-items:center;gap:3px;padding:0 5px;display:inline-flex}.color-style-trigger.active{background:var(--accent-soft);color:var(--accent-text)}.color-tool-symbol{justify-content:center;align-items:center;width:20px;height:24px;padding-bottom:3px;display:inline-flex;position:relative}.color-tool-symbol>i{background:var(--tool-color);border-radius:1px;width:18px;height:3px;position:absolute;bottom:1px;left:1px}.color-tool-symbol.highlight>i{opacity:.9;height:5px}.block-style-menu{z-index:40;overscroll-behavior:contain;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:6px;position:fixed;overflow:hidden auto;box-shadow:0 12px 36px #25352a24,0 2px 8px #25352a12}.block-style-option{text-align:left;width:100%;min-height:38px;color:var(--soft-text);white-space:nowrap;border-radius:6px;align-items:center;gap:12px;padding:0 11px;font-size:13px;display:flex}.block-style-option>span{flex:1}.block-style-option>svg:first-child{color:var(--soft-text)}:is(.block-style-option:hover,.block-style-option:focus-visible){background:var(--hover);color:var(--text);outline:none}.block-style-option:focus-visible{box-shadow:inset 0 0 0 1px var(--focus-ring)}.block-style-option.selected,.block-style-option.selected>svg{color:var(--accent-text)}.block-style-check{margin-left:auto}.block-style-separator{background:var(--line);height:1px;margin:5px 8px}.font-size-menu .block-style-option{font-variant-numeric:tabular-nums;min-height:34px}.color-style-menu{padding:9px}.color-reset{width:100%;min-height:34px;color:var(--soft-text);border-radius:6px;align-items:center;gap:8px;padding:0 7px;font-size:12px;display:flex}.color-reset:hover{background:var(--hover)}.color-swatch-grid{grid-template-columns:repeat(6,1fr);gap:6px;padding:9px 3px 13px;display:grid}.color-swatch{background:var(--swatch-color);border:1px solid #61706433;border-radius:5px;justify-content:center;align-items:center;width:27px;height:27px;padding:0;display:flex}.color-swatch:hover,.color-swatch[aria-pressed=true]{outline:2px solid var(--focus-ring);outline-offset:2px}.color-swatch>svg{color:#fff;stroke-width:3px;filter:drop-shadow(0 0 1px #273229)}.custom-color{border-top:1px solid var(--line);min-height:39px;color:var(--soft-text);cursor:pointer;align-items:center;gap:10px;padding:8px 4px 0;font-size:12px;display:flex}.custom-color input{border:1px solid var(--line);background:var(--paper);cursor:pointer;border-radius:5px;width:28px;height:27px;padding:2px}.table-controls-trigger{min-width:41px;height:33px;color:var(--soft-text);border-radius:6px;justify-content:center;align-items:center;gap:3px;padding:0 5px;display:inline-flex}.table-controls-trigger:hover:not(:disabled){background:var(--hover);color:var(--text)}.table-controls-trigger.active{background:var(--accent-soft);color:var(--accent-text)}.table-controls-menu{padding:7px}.table-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;display:grid}.table-action{width:100%;min-width:0;min-height:36px;color:var(--soft-text);text-align:left;white-space:nowrap;border-radius:6px;align-items:center;gap:7px;padding:0 8px;font-size:11px;display:flex}.table-action:hover:not(:disabled){background:var(--hover);color:var(--text)}.table-action.active{background:var(--accent-soft);color:var(--accent-text)}.table-align-controls{justify-content:space-around;gap:5px;padding:2px 0;display:flex}.format-divider{background:var(--line);flex:none;width:1px;height:17px;margin:0 5px}.format-spacer{flex:1}.format-toggle{display:none}.format-panel,.format-group{display:contents}.format-tool-label{display:none}.plain-format-toolbar{border-bottom:1px solid var(--line);min-height:44px;color:var(--muted);flex:none;justify-content:flex-end;align-items:center;gap:14px;padding:3px 32px;font-size:11px;display:flex}.plain-format-toolbar button{min-height:34px;color:var(--accent-text);border-radius:6px;padding:0 9px;font-size:12px}.plain-format-toolbar button:hover{background:var(--accent-soft)}.rich-content{flex:1;width:100%;min-width:0;min-height:0;padding:0 6px 16px 0;overflow-y:auto}.note-rich-content{white-space:pre-wrap;overflow-wrap:anywhere;letter-spacing:.015em;font-synthesis:style;outline:0;min-height:100%;position:relative}.note-rich-content>:first-child{margin-top:0}.note-rich-content p{margin:0 0 .9em}.note-rich-content:has(>p:only-child>br.ProseMirror-trailingBreak:only-child):before{content:attr(data-placeholder);color:var(--muted);pointer-events:none;font-size:.9em;position:absolute;top:0;left:0}.note-rich-content h1,.note-rich-content h2,.note-rich-content h3,.note-rich-content h4,.note-rich-content h5,.note-rich-content h6{color:var(--text);margin:1.4em 0 .65em;font-weight:600;line-height:1.5}.note-rich-content h1{font-size:1.65em}.note-rich-content h2{font-size:1.35em}.note-rich-content h3{font-size:1.15em}.note-rich-content h4{font-size:1.1em}.note-rich-content h5{font-size:1.05em}.note-rich-content h6{font-size:1em}.note-rich-content strong{font-weight:700}.note-rich-content em{font-style:italic}.note-rich-content ul,.note-rich-content ol{margin:.6em 0 1em;padding-left:1.65em}.note-rich-content li{padding-left:.15em}.note-rich-content li>p{margin-bottom:.35em}.note-rich-content li>ul,.note-rich-content li>ol{margin:.35em 0}.note-rich-content blockquote{border-inline-start:2px solid var(--quote-line);color:var(--quote-text);background:0 0;margin:1em 0;padding:.2em 0 .2em 2.5em}.note-rich-content blockquote>:last-child{margin-bottom:0}.note-rich-content aside[data-type=callout]{border:1px solid var(--line);border-left:3px solid var(--accent);background:var(--accent-soft);color:var(--text);border-radius:8px;margin:1em 0;padding:.9em 1.15em}.note-rich-content aside[data-type=callout]>:last-child{margin-bottom:0}.note-rich-content ul[data-type=taskList]{padding-left:0;list-style:none}.note-rich-content ul[data-type=taskList]>li{align-items:flex-start;gap:.6em;padding-left:0;display:flex}.note-rich-content ul[data-type=taskList]>li>label{cursor:pointer;-webkit-user-select:none;user-select:none;flex:none;align-items:center;min-height:1lh;display:flex}.note-rich-content ul[data-type=taskList]>li>label>input{width:17px;height:17px;accent-color:var(--accent);cursor:pointer;margin:0}.note-rich-content ul[data-type=taskList]>li>div{flex:1;min-width:0}.note-rich-content ul[data-type=taskList]>li[data-checked=true]>div>p:first-child{color:var(--soft-text);text-decoration:line-through;-webkit-text-decoration-color:var(--muted);text-decoration-color:var(--muted)}.note-rich-content pre{border:1px solid var(--line);background:var(--sidebar);max-width:100%;color:var(--text);white-space:pre;tab-size:2;border-radius:8px;margin:1em 0;padding:1em 1.15em;font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.88em;line-height:1.75;overflow-x:auto}.note-rich-content pre>code{font:inherit;color:inherit;background:0 0}.note-rich-content .tableWrapper{overscroll-behavior-inline:contain;max-width:100%;margin:1em 0;overflow-x:auto}.note-rich-content table{border-collapse:collapse;table-layout:fixed;width:100%;margin:0}.note-rich-content td,.note-rich-content th{border:1px solid var(--line);vertical-align:top;text-align:left;min-width:72px;padding:.65em .8em;position:relative}.note-rich-content th{background:var(--sidebar);font-weight:600}.note-rich-content td>:first-child,.note-rich-content th>:first-child{margin-top:0}.note-rich-content td>:last-child,.note-rich-content th>:last-child{margin-bottom:0}.note-rich-content :is(td,th)>:has(+.column-resize-handle:last-child){margin-bottom:0}.note-rich-content .selectedCell:after{content:"";z-index:2;pointer-events:none;background:var(--accent-soft);opacity:.6;position:absolute;inset:0}.note-rich-content .column-resize-handle{z-index:3;pointer-events:none;background:var(--accent);width:4px;position:absolute;top:0;bottom:0;right:-2px}.note-rich-content :is(td,th):last-child>.column-resize-handle{right:0}.note-rich-content.resize-cursor{cursor:col-resize}.note-rich-content hr{border:0;border-top:1px solid var(--line);margin:1.8em 0}.note-rich-content mark{background:var(--highlight);color:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:2px;padding:.05em 0}.note-rich-content a{color:var(--accent-text);text-underline-offset:.2em;cursor:text;text-decoration:underline}.note-rich-content .ProseMirror-selectednode{outline:2px solid var(--accent);outline-offset:3px}.link-dialog{width:min(420px,100vw - 32px)}.link-dialog .text-field{margin-bottom:8px}.link-dialog .dialog-actions{gap:8px}.link-dialog .button{padding:0 13px}.editor-status{padding:0 max(29px, var(--safe-area-right)) var(--safe-area-bottom) max(29px, var(--safe-area-left));min-height:calc(39px + var(--safe-area-bottom));color:var(--muted);border-top:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;gap:10px;font-size:10px;display:flex}.editor-status>span:first-child{align-items:center;gap:6px;display:flex}.editor-status>span:first-child>svg{color:var(--accent-text)}.status-dot{color:var(--line);margin:0 9px}.status-error{color:var(--danger)!important}.empty-state{text-align:center;color:var(--soft-text);align-self:center;margin:auto;padding:40px 20px}.empty-icon{background:var(--sidebar);width:76px;height:76px;color:var(--accent-text);border-radius:25px;justify-content:center;align-items:center;margin:0 auto 24px;display:flex}.empty-state h1,.empty-state h2{color:var(--text);letter-spacing:2px;margin:0 0 12px;font-family:Noto Serif SC,Songti SC,SimSun,serif;font-size:23px;font-weight:400}.empty-state p{color:var(--muted);margin:0 0 25px;font-size:12px}.loading-screen{z-index:15;background:var(--paper);color:var(--soft-text);flex-direction:column;justify-content:center;align-items:center;gap:20px;font-size:12px;display:flex;position:absolute;inset:0}.error-banner{background:var(--danger-soft);color:var(--danger);flex:none;align-items:center;gap:10px;padding:4px 15px 4px 20px;font-size:12px;display:flex}.error-banner>span{flex:1}.error-banner>svg{flex:none}.dialog{--dialog-available-height:calc(var(--mobile-viewport-height,100dvh) - var(--safe-area-top) - var(--safe-area-bottom));inset:calc(var(--mobile-viewport-top,0px) + var(--safe-area-top)) var(--safe-area-right) calc(100dvh - var(--mobile-viewport-top,0px) - var(--mobile-viewport-height,100dvh) + var(--safe-area-bottom)) var(--safe-area-left);border:1px solid var(--line);width:min(440px,100vw - 32px);max-width:calc(100vw - var(--safe-area-left) - var(--safe-area-right) - 32px);max-height:calc(var(--dialog-available-height) - 48px);background:var(--surface);color:var(--text);box-shadow:var(--shadow);border-radius:14px;margin:auto;padding:24px;position:fixed;overflow:auto}.dialog::backdrop{background:var(--overlay);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-heading{justify-content:space-between;align-items:center;gap:15px;margin:-7px -8px 21px 0;display:flex}.dialog-heading h2{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:18px;font-weight:600;overflow:hidden}.dialog-heading .icon-button{color:var(--muted)}.dialog-message{color:var(--soft-text);overflow-wrap:anywhere;margin:0 0 15px;font-size:13px;line-height:1.9}.dialog-actions{justify-content:flex-end;align-items:center;gap:10px;margin-top:24px;display:flex}.field-label{color:var(--soft-text);margin-bottom:9px;font-size:12px;font-weight:550;display:block}.text-field{background:var(--paper);width:100%;min-height:44px;color:var(--text);border:1px solid var(--line);border-radius:7px;margin-bottom:18px;padding:10px 12px;font-size:14px}.text-field:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:0}.text-field::placeholder{color:var(--muted);font-size:12px}.form-error,.form-success{margin:5px 0 10px;font-size:12px;line-height:1.7}.form-error{color:var(--danger)}.form-success{color:var(--accent-text)}.settings-dialog.dialog{width:min(720px,100vw - 40px);height:min(540px, calc(var(--dialog-available-height) - 48px));max-height:calc(var(--dialog-available-height) - 48px);padding:0;overflow:hidden}.settings-dialog.dialog[open]{flex-direction:column;display:flex}.settings-dialog>.dialog-heading{border-bottom:1px solid var(--line);background:var(--surface);flex:none;min-height:66px;margin:0;padding:10px 16px 10px 25px}.settings-dialog>.dialog-heading h2{font-size:17px}:is(.settings-dialog,.settings-page) .settings-layout{flex:1;grid-template-columns:156px minmax(0,1fr);min-width:0;min-height:0;display:grid}:is(.settings-dialog,.settings-page) .settings-sidebar{background:var(--sidebar);border-right:1px solid var(--line);flex-direction:column;gap:18px;min-width:0;min-height:0;padding:18px 11px 16px;display:flex;overflow-y:auto}:is(.settings-dialog,.settings-page) .settings-nav{flex-direction:column;gap:5px;display:flex}:is(.settings-dialog,.settings-page) .settings-nav button{text-align:left;min-height:42px;color:var(--soft-text);border-radius:7px;align-items:center;gap:10px;padding:8px 12px;font-size:12px;display:flex}:is(.settings-dialog,.settings-page) .settings-nav button>svg{flex:none}:is(.settings-dialog,.settings-page) .settings-nav button:hover:not(:disabled){background:var(--hover);color:var(--text)}:is(.settings-dialog,.settings-page) .settings-nav button[aria-current=page]{background:var(--accent-soft);color:var(--accent-text);font-weight:600}:is(.settings-dialog,.settings-page) .settings-footer{color:var(--soft-text);align-items:center;gap:8px;margin-top:auto;padding:9px 8px 0;font-size:12px;display:flex}:is(.settings-dialog,.settings-page) .settings-footer>span{min-width:0}:is(.settings-dialog,.settings-page) .settings-footer small{color:var(--muted);overflow-wrap:anywhere;margin-top:3px;font-size:10px;display:block}:is(.settings-dialog,.settings-page) .settings-content{overscroll-behavior:contain;min-width:0;min-height:0;padding:24px 30px;overflow-y:auto}:is(.settings-dialog,.settings-page) .settings-content>.settings-section{border:0;min-width:0;margin:0;padding:0}:is(.settings-dialog,.settings-page) .settings-section>h3{color:var(--text);margin:0 0 18px;font-size:16px;font-weight:600}:is(.settings-dialog,.settings-page) .theme-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}:is(.settings-dialog,.settings-page) .theme-options button{border:1px solid var(--line);background:var(--paper);min-width:0;color:var(--soft-text);border-radius:9px;flex-direction:column;gap:8px;padding:8px 8px 9px;display:flex;position:relative}:is(.settings-dialog,.settings-page) .theme-options button:hover{border-color:var(--muted)}:is(.settings-dialog,.settings-page) .theme-options button.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-text)}:is(.settings-dialog,.settings-page) .theme-card-preview{border:1px solid var(--line);background:var(--paper);border-radius:4px;width:100%;height:48px;display:flex;overflow:hidden}:is(.settings-dialog,.settings-page) .theme-mini-sidebar{border-right:1px solid var(--line);background:var(--sidebar);flex:none;width:26%}:is(.settings-dialog,.settings-page) .theme-mini-page{flex-direction:column;flex:1;align-items:flex-start;gap:5px;min-width:0;padding:8px 9px;display:flex}:is(.settings-dialog,.settings-page) .theme-mini-page i{background:var(--muted);opacity:.5;border-radius:2px;width:84%;height:3px;display:block}:is(.settings-dialog,.settings-page) .theme-mini-page i:first-child{background:var(--accent);opacity:.85;width:58%;height:5px;margin-bottom:4px}:is(.settings-dialog,.settings-page) .theme-mini-page i:last-child{width:68%}:is(.settings-dialog,.settings-page) .theme-system-half{background:var(--paper);width:50%;min-width:0;display:flex}:is(.settings-dialog,.settings-page) .theme-system-half+.theme-system-half{border-left:1px solid var(--line)}:is(.settings-dialog,.settings-page) .theme-system-half .theme-mini-page{padding:8px 4px}:is(.settings-dialog,.settings-page) .theme-selected-check{border:2px solid var(--paper);background:var(--accent);width:21px;height:21px;color:var(--accent-contrast);border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;top:4px;right:4px}:is(.settings-dialog,.settings-page) .theme-option-label{white-space:nowrap;justify-content:center;align-items:center;gap:7px;width:100%;font-size:11px;display:flex}:is(.settings-dialog,.settings-page) .setting-row{min-height:52px;color:var(--soft-text);justify-content:space-between;align-items:center;gap:20px;font-size:12px;display:flex}:is(.settings-dialog,.settings-page) .setting-row label{white-space:nowrap;align-items:center;gap:10px;display:flex}:is(.settings-dialog,.settings-page) .setting-row output{color:var(--muted);font-variant-numeric:tabular-nums;min-width:29px;font-size:10px}.select-field{border:1px solid var(--line);background:var(--paper);height:40px;color:var(--text);border-radius:6px;width:190px;padding:0 9px;font-size:12px}:is(.settings-dialog,.settings-page) .setting-row .select-field,:is(.settings-dialog,.settings-page) .setting-row input[type=range]{width:min(220px,58%);min-width:0}:is(.settings-dialog,.settings-page) .setting-row input[type=range]{height:40px;accent-color:var(--accent);cursor:pointer}:is(.settings-dialog,.settings-page) .font-preview{border:1px solid var(--line);background:var(--paper);min-height:150px;color:var(--text);overflow-wrap:anywhere;border-radius:8px;margin-top:24px;padding:25px 22px}.client-update-brand{flex-direction:column;align-items:center;gap:10px;padding:22px 0 18px;display:flex}.client-update-brand strong{letter-spacing:3px;margin-left:3px;font-family:serif;font-size:23px;font-weight:600}.client-update-brand span{color:var(--soft-text);font-variant-numeric:tabular-nums;font-size:12px}.client-update-status{color:var(--soft-text);justify-content:center;align-items:center;gap:7px;margin:0 0 18px;font-size:12px;line-height:1.6;display:flex}.client-update-status.is-current{color:var(--accent-text)}.client-update-status>svg{color:var(--accent-text);flex:none}.client-update-error{color:var(--danger);overflow-wrap:anywhere;margin:-3px 0 13px;font-size:12px;line-height:1.7}.client-update-release{border:1px solid var(--line);background:var(--paper);border-radius:9px;min-width:0;margin:4px 0 20px;padding:15px 17px}.client-update-release-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 16px;margin-bottom:9px;display:flex}.client-update-release-heading strong{color:var(--accent-text);overflow-wrap:anywhere;font-size:12px;font-weight:600}.client-update-release-heading time{color:var(--muted);font-size:10px}.client-update-notes{color:var(--soft-text);white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8}.client-update-notes:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}.client-update-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:22px;display:flex}.client-update-actions .button{min-width:0}.client-update-source{min-height:36px;color:var(--soft-text);border-radius:5px;justify-content:center;align-items:center;gap:6px;margin:13px auto 0;padding:0 9px;font-size:11px;display:flex}.client-update-source:hover:not(:disabled){background:var(--hover);color:var(--accent-text)}.client-update-progress{align-items:center;gap:10px;margin:0 0 14px;display:flex}.client-update-progress progress{min-width:0;height:7px;accent-color:var(--accent);flex:1}.client-update-progress span{color:var(--soft-text);font-variant-numeric:tabular-nums;flex:none;font-size:10px}.client-update-banner{border-bottom:1px solid var(--line);background:var(--accent-soft);color:var(--accent-text);flex-wrap:wrap;flex:none;align-items:center;gap:4px 10px;padding:5px 16px;font-size:12px;line-height:1.6;display:flex}.client-update-banner>span{overflow-wrap:anywhere;flex:180px;min-width:0}.client-update-banner>svg{flex:none}.client-update-banner>button{white-space:nowrap;border-radius:5px;flex:none;min-height:32px;padding:0 9px;font-size:12px}.client-update-banner>button:hover{background:var(--hover)}.client-update-banner>.icon-button{width:32px;height:32px;color:inherit;padding:0}.account-intro{color:var(--muted);margin:-3px 0 25px;font-size:12px}.verification-field{align-items:start;gap:8px;display:flex}.verification-field .text-field{letter-spacing:3px;flex:1;min-width:0}.verification-field .button{white-space:nowrap;min-width:108px}.auth-submit{width:100%;margin-top:7px}.auth-switch{color:var(--muted);justify-content:center;align-items:center;gap:5px;margin:18px 0 -3px;font-size:12px;display:flex}.auth-switch button{color:var(--accent-text);min-height:40px;padding:0 5px}.account-detail{flex-direction:column;align-items:center;gap:16px;padding:0 0 24px;display:flex}.account-avatar.large{width:64px;height:64px}.account-detail strong{overflow-wrap:anywhere;font-size:15px;font-weight:550}.account-detail>.muted{font-size:12px}.account-actions{gap:10px;display:flex}.account-actions button{flex:1}.entity-dialog{width:min(350px,100vw - 32px);padding-bottom:14px}.entity-dialog .dialog-heading{margin-bottom:10px}.action-list{margin:0 -8px}.action-list button{text-align:left;width:100%;min-height:45px;color:var(--soft-text);border-radius:7px;align-items:center;gap:13px;padding:0 13px;font-size:13px;display:flex}.action-list button:hover:not(:disabled){background:var(--hover)}.action-divider{background:var(--line);height:1px;margin:7px 12px}.trash-view{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.toolbar-title{color:var(--soft-text);flex:1;font-size:12px}.trash-scroll{padding:40px max(clamp(24px, 5vw, 74px), var(--safe-area-right)) max(40px, var(--safe-area-bottom)) max(clamp(24px, 5vw, 74px), var(--safe-area-left));flex:1;overflow:auto}.trash-heading{align-items:center;gap:15px;margin:0 0 30px;display:flex}.trash-heading h1{margin:0;font-size:25px;font-weight:550}.trash-heading>span{color:var(--muted);font-size:11px}.trash-scroll>.empty-state{padding-top:12vh}.trash-list{flex-direction:column;gap:10px;max-width:900px;display:flex}.trash-card{border:1px solid var(--line);background:var(--surface);border-radius:9px}.trash-card-row{align-items:center;gap:6px;padding:14px 13px;display:flex}.trash-item-icon{width:43px;height:43px;color:var(--accent-text);background:var(--sidebar);border-radius:7px;flex:none;justify-content:center;align-items:center;margin-right:5px;display:flex}.trash-card-info{flex:1;min-width:0}.trash-card-info h3{white-space:nowrap;text-overflow:ellipsis;margin:0 0 6px;font-size:13px;font-weight:500;overflow:hidden}.trash-card-info>span{color:var(--muted);font-size:10px}.trash-children{border-top:1px solid var(--line);margin:0 20px 14px 66px;padding-top:9px}.trash-children>div{min-height:30px;color:var(--soft-text);align-items:center;gap:8px;font-size:12px;display:flex}.trash-children>div>svg{color:var(--muted);flex:none}.trash-children>div>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sidebar-backdrop{display:none}@media (pointer:coarse){.tree-more{opacity:1;width:40px}.tree-chevron{width:40px}}@media (max-width:900px) and (min-width:701px){.sidebar{width:240px}.new-note,.search-field{margin-left:18px;margin-right:18px}.editor-toolbar{padding-left:20px;padding-right:18px}.editor-page{padding-left:36px;padding-right:36px}}.app.mobile-layout{inset:var(--mobile-viewport-top,0px) 0 auto;height:var(--mobile-viewport-height,100dvh);--sidebar-open-progress:0;min-height:0;position:fixed}.mobile-layout.sidebar-open{--sidebar-open-progress:1}.mobile-layout .mobile-only{display:inline-flex!important}.mobile-layout .icon-button{width:44px;height:44px}.mobile-layout :is(.main-area,.sidebar,.sidebar-backdrop,.editor-page,.note-content,.note-rich-content,.tree-scroll){touch-action:pan-y pinch-zoom}.mobile-layout .note-rich-content :is(pre,.tableWrapper){touch-action:pan-x pan-y pinch-zoom}.mobile-layout .sidebar{z-index:30;width:min(380px,100vw - 28px);inset:var(--mobile-viewport-top,0px) auto auto 0;transform:translate3d(calc((var(--sidebar-swipe-progress,var(--sidebar-open-progress)) - 1) * 100%), 0, 0);border-right:1px solid var(--line);height:var(--mobile-viewport-height,100dvh);transition:transform .24s cubic-bezier(.22,1,.36,1);position:fixed}.mobile-layout .sidebar-close{margin-left:auto;margin-right:-7px}.mobile-layout .sidebar-backdrop{z-index:25;background:var(--overlay);opacity:var(--sidebar-swipe-progress,var(--sidebar-open-progress));visibility:hidden;pointer-events:none;transition:opacity .24s cubic-bezier(.22,1,.36,1),visibility 0s linear .24s;display:block;position:fixed;inset:0}.mobile-layout.sidebar-open .sidebar-backdrop,.mobile-layout[data-sidebar-swipe] .sidebar-backdrop{visibility:visible;pointer-events:auto;transition-delay:0s}.mobile-layout[data-sidebar-swipe=dragging] :is(.sidebar,.sidebar-backdrop){transition:none}.mobile-layout .brand{height:78px;padding:18px 24px}.mobile-layout .brand>span{font-size:22px}.mobile-layout .new-note{min-height:46px;margin:0 20px 10px;font-size:14px}.mobile-layout .new-note>kbd{display:none}.mobile-layout .search-field{margin:0 20px 12px}.mobile-layout .search-field input{height:44px;font-size:16px}.mobile-layout .sidebar-section-label{padding-left:22px;font-size:11px}.mobile-layout .tree-scroll{padding:3px 12px 16px}.mobile-layout .tree-row{min-height:48px;margin-bottom:3px;font-size:14px}.mobile-layout .tree-item{min-height:46px}.mobile-layout .tree-more,.mobile-layout .tree-chevron{opacity:1;width:44px;height:44px}.mobile-layout .tree-spacer{width:22px}.mobile-layout .sidebar-bottom{padding:6px 0}.mobile-layout .sidebar-link{min-height:46px;font-size:14px}.mobile-layout .account-button{min-height:67px;padding:12px 24px max(12px, var(--safe-area-bottom))}.mobile-layout .account-caption strong{font-size:13px}.mobile-layout .account-caption small{font-size:11px}.mobile-layout .editor-toolbar{height:calc(52px + var(--safe-area-top));padding-left:max(6px, var(--safe-area-left));padding-right:max(6px, var(--safe-area-right));gap:3px}.mobile-layout .breadcrumbs{gap:4px;padding-left:5px;font-size:13px}.mobile-layout .breadcrumbs>span{gap:3px}.mobile-layout .breadcrumbs>span:first-child:not(:last-child){display:none}.mobile-layout .toolbar-actions{gap:0}.mobile-layout .toolbar-divider,.mobile-layout .export-menu{display:none}.mobile-layout .sync-button{justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 8px}.mobile-layout .sync-button>span{display:none}.mobile-layout .sync-button.status-error>span{font-size:11px;display:inline}.mobile-layout .sync-button.status-error>svg{color:var(--danger)}.mobile-layout .editor-page{overscroll-behavior-y:contain;padding:23px max(22px, var(--safe-area-right)) 28px max(22px, var(--safe-area-left));scroll-padding-block:20px;display:block;overflow-y:auto}.mobile-layout .note-title{letter-spacing:.025em;padding-bottom:18px;font-size:25px;line-height:1.4}.mobile-layout .note-content{min-height:max(140px,100% - 53px);font-size:inherit;flex:none;padding:0 0 24px;display:block;overflow-y:hidden}.mobile-layout .rich-content{flex-direction:column;min-height:calc(100% - 53px);padding:0 0 24px;display:flex;overflow:visible}.mobile-layout .note-rich-content{min-height:140px;font-size:inherit;flex:1}.mobile-layout .note-rich-content blockquote{padding-inline-start:1.3em}.mobile-layout .plain-format-toolbar{min-height:45px;padding:0 max(22px, var(--safe-area-right)) 0 max(22px, var(--safe-area-left));border-top:1px solid var(--line);border-bottom:0;order:2;justify-content:space-between;font-size:12px}.mobile-layout .plain-format-toolbar button{min-height:44px}.mobile-layout .format-toolbar{z-index:12;padding:0 max(12px, var(--safe-area-right)) 0 max(12px, var(--safe-area-left));border-top:1px solid var(--line);border-bottom:0;order:2}.mobile-layout .mobile-format-quickbar{align-items:center;gap:2px;min-height:52px;display:flex}.mobile-layout .mobile-format-quickbar-spacer{flex:1}.mobile-layout .format-button{width:44px;height:44px}.mobile-layout .format-toggle{min-width:62px;height:44px;color:var(--soft-text);border-radius:8px;justify-content:center;align-items:center;gap:4px;padding:0 8px;font-size:12px;display:flex}.mobile-layout .format-toggle:hover{background:var(--hover)}.mobile-layout .format-toolbar.is-open .format-toggle{background:var(--accent-soft);color:var(--accent-text)}.mobile-layout .format-toggle svg{transition:transform .15s}.mobile-layout .format-toolbar.is-open .format-toggle svg{transform:rotate(180deg)}.mobile-layout .format-panel{max-height:min(360px, calc(var(--mobile-viewport-height,100dvh) * .55));padding:8px max(16px, var(--safe-area-right)) 16px max(16px, var(--safe-area-left));border:1px solid var(--line);background:var(--paper);border-bottom:0;border-radius:16px 16px 0 0;display:none;position:absolute;inset:auto 0 100%;overflow:hidden;box-shadow:0 -12px 36px #25352a14}.mobile-layout .format-toolbar.is-open .format-panel{flex-direction:column;display:flex}.mobile-layout .format-panel-heading{flex:none;justify-content:space-between;align-items:center;gap:12px;padding-bottom:8px;display:flex}.mobile-layout .format-section-tabs{align-items:center;gap:5px;display:flex}.mobile-layout .format-section-tabs>button{min-width:58px;min-height:44px;color:var(--soft-text);border-radius:8px;padding:0 12px;font-size:13px}.mobile-layout .format-section-tabs>button[aria-selected=true]{color:var(--accent-text);background:var(--accent-soft)}.mobile-layout .format-controls{overscroll-behavior:contain;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-height:0;padding:0 0 2px;display:grid;overflow-y:auto}.mobile-layout .format-group[hidden],.mobile-layout .format-controls .format-divider,.mobile-layout .format-controls .format-spacer{display:none}.mobile-layout .format-controls .format-button,.mobile-layout .format-controls .font-size-trigger,.mobile-layout .format-controls .color-style-trigger,.mobile-layout .format-controls .table-controls-trigger{background:var(--sidebar);border-radius:9px;flex-direction:column;justify-content:center;gap:8px;width:100%;min-width:0;height:66px;display:flex;position:relative}.mobile-layout .format-controls .format-button.active,.mobile-layout .format-controls .color-style-trigger.active,.mobile-layout .format-controls .table-controls-trigger.active{background:var(--accent-soft)}.mobile-layout .format-controls .format-tool-label{white-space:nowrap;max-width:100%;font-size:11px;display:block}.mobile-layout .format-controls .font-size-trigger>svg,.mobile-layout .format-controls .color-style-trigger>svg,.mobile-layout .format-controls .table-controls-trigger>svg:last-child{width:10px;position:absolute;top:12px;right:7px}.mobile-layout .format-controls .font-size-trigger:after{content:"字号";font-size:11px}.mobile-layout .format-controls .color-style-trigger:after{content:attr(title);font-size:11px}.mobile-layout .format-controls .table-controls-trigger:after{content:"表格";font-size:11px}.mobile-layout .format-block-trigger{background:var(--sidebar);grid-column:1/-1;width:100%;min-height:44px;padding:0 12px;font-size:13px}.mobile-layout .editor-status{padding:0 max(18px, var(--safe-area-right)) var(--safe-area-bottom) max(18px, var(--safe-area-left));min-height:calc(30px + var(--safe-area-bottom));font-size:11px}.mobile-layout .editor-status .reading-estimate{display:none}.mobile-layout .status-dot{margin:0 5px}.mobile-layout .trash-scroll{padding:25px max(18px, var(--safe-area-right)) max(25px, var(--safe-area-bottom)) max(18px, var(--safe-area-left))}.mobile-layout .trash-heading h1{font-size:23px}.mobile-layout .trash-card-row{gap:2px;padding:10px}.mobile-layout .trash-item-icon{width:34px;height:38px;margin-right:7px}.mobile-layout .trash-card-info>span{font-size:11px}.mobile-layout .trash-card-info h3{font-size:14px}.mobile-layout .trash-children{margin-left:28px}.mobile-layout .dialog{border-radius:13px;padding:22px}.mobile-layout .settings-page{inset:var(--mobile-viewport-top,0px) 0 auto;z-index:40;width:100%;height:var(--mobile-viewport-height,100dvh);background:var(--paper);min-width:0;min-height:0;color:var(--text);flex-direction:column;display:flex;position:fixed;overflow:hidden}.mobile-layout .settings-page-heading{min-height:calc(56px + var(--safe-area-top));padding:var(--safe-area-top) max(12px, var(--safe-area-right)) 0 max(8px, var(--safe-area-left));flex:none;align-items:center;gap:9px;display:flex}.mobile-layout .settings-page-heading h1{margin:0;font-size:17px;font-weight:600}.mobile-layout .settings-page .settings-layout{flex-direction:column;display:flex}.mobile-layout .settings-page .settings-sidebar{padding:0 max(20px, var(--safe-area-right)) 0 max(20px, var(--safe-area-left));background:var(--paper);border-right:0;border-bottom:1px solid var(--line);flex:none;display:block;overflow:visible}.mobile-layout .settings-page .settings-nav{flex-direction:row;gap:8px}.mobile-layout .settings-page .settings-nav button{white-space:nowrap;border-radius:0;flex:1;justify-content:center;min-width:0;min-height:44px;padding:8px 2px 12px;font-size:13px;position:relative}.mobile-layout .settings-page .settings-nav button>svg{display:none}.mobile-layout .settings-page .settings-nav button:after{content:"";background:var(--accent);border-radius:2px;width:24px;height:2px;position:absolute;bottom:-1px;left:50%;transform:translate(-50%)scaleX(0)}.mobile-layout .settings-page .settings-nav button[aria-current=page]{background:0 0}.mobile-layout .settings-page .settings-nav button[aria-current=page]:after{transform:translate(-50%)scaleX(1)}.mobile-layout .settings-page .settings-footer{display:none}.mobile-layout .settings-page .settings-content{padding:24px max(20px, var(--safe-area-right)) max(24px, var(--safe-area-bottom)) max(20px, var(--safe-area-left));flex:1}.mobile-layout .settings-page .settings-section>h3{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.mobile-layout .settings-page .theme-options{gap:10px}.mobile-layout .settings-page .theme-options button{gap:11px;padding:9px 8px 12px}.mobile-layout .settings-page .theme-card-preview{height:74px}.mobile-layout .settings-page .theme-mini-page{padding:17px 7px}.mobile-layout .settings-page .theme-option-label{gap:4px;font-size:12px}.mobile-layout .settings-page .setting-row{gap:12px;min-height:60px;font-size:14px}.mobile-layout .settings-page .font-preview{padding:23px 19px}.mobile-layout .select-field{width:min(190px,45vw)}.mobile-layout .text-field,.mobile-layout .select-field{font-size:16px}.mobile-layout .error-banner{padding-left:max(14px, var(--safe-area-left));padding-right:max(15px, var(--safe-area-right));font-size:12px}.mobile-layout .client-update-banner{padding-left:max(16px, var(--safe-area-left));padding-right:max(16px, var(--safe-area-right))}.main-area>.client-update-banner:first-child{padding-top:calc(5px + var(--safe-area-top))}.main-area>.error-banner:first-child{padding-top:calc(4px + var(--safe-area-top))}.main-area:has(>:is(.client-update-banner,.error-banner)) .editor-toolbar{height:64px;padding-top:0}.mobile-layout .main-area:has(>:is(.client-update-banner,.error-banner)) .editor-toolbar{height:52px}:is(body:has(.mobile-layout) .block-style-option,body:has(.mobile-layout) .table-action,body:has(.mobile-layout) .color-reset){min-height:44px}body:has(.mobile-layout) .color-swatch-grid{grid-template-columns:repeat(4,1fr)}body:has(.mobile-layout) .color-swatch{width:44px;height:44px}body:has(.mobile-layout) .custom-color input{width:44px;height:44px}@media (max-height:500px){.mobile-layout .sidebar{overscroll-behavior-y:contain;overflow-y:auto}.mobile-layout .sidebar>*{flex-shrink:0}.mobile-layout .tree-scroll{flex:none;min-height:90px;overflow-y:visible}}@media (max-width:365px){.mobile-layout .format-toolbar{padding-left:max(6px, var(--safe-area-left));padding-right:max(6px, var(--safe-area-right))}.mobile-layout .mobile-format-quickbar{gap:0}.mobile-layout .format-toggle{width:44px;min-width:44px;padding:0}.mobile-layout .format-toggle>svg{display:none}}@media (max-width:380px){.toolbar-divider{margin:0 2px}.editor-page{padding-left:19px;padding-right:19px}.dialog{padding:18px}.trash-card-row{flex-wrap:wrap}.trash-card-info{min-width:80px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
