:root{--bg:#f3f5f2;--panel:#fff;--panel-soft:#f8faf8;--line:#e5e9e5;--line-strong:#d8dfd9;--text:#202923;--muted:#7b867e;--muted-2:#a0aaa2;--accent:#356b52;--accent-strong:#28563f;--accent-soft:#edf4ef;--danger:#b65c58;--shadow:0 8px 30px #1c2b220e;--radius:14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);margin:0}body{min-width:320px}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible{outline-offset:1px;outline:3px solid #356b522b}.app-shell{flex-direction:column;min-height:100vh;display:flex}.topbar{border-bottom:1px solid var(--line);background:#fff;flex:0 0 72px;align-items:center;gap:24px;height:72px;padding:0 30px;display:flex}.brand{align-items:center;gap:11px;min-width:205px;display:flex}.brand-mark{color:#fff;background:#294c3b;border-radius:11px;place-items:center;width:36px;height:36px;display:grid}.brand-mark svg{width:21px;height:21px}.brand-name{letter-spacing:.3px;font-size:16px;font-weight:750;line-height:1.15}.brand-sub{color:#98a29a;letter-spacing:1.3px;margin-top:4px;font-size:9px;font-weight:650}.doc-title-wrap{flex:1;min-width:100px;max-width:560px}.doc-title{color:#253129;background:0 0;border:0;border-radius:8px;width:100%;padding:9px 10px;font-size:16px;font-weight:650}.doc-title:hover{background:#f7f9f7}.doc-title:focus{background:0 0;outline:none}.top-actions{align-items:center;gap:10px;margin-left:auto;display:flex}.save-status{color:var(--muted);white-space:nowrap;align-items:center;gap:7px;margin-right:8px;font-size:12px;display:inline-flex}.save-dot{background:#72a887;border-radius:50%;width:7px;height:7px}.save-status.error .save-dot{background:#c56b64}.btn{border:1px solid var(--line-strong);color:#465249;background:#fff;border-radius:9px;justify-content:center;align-items:center;gap:7px;height:36px;padding:0 13px;font-size:12px;font-weight:650;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.btn.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn.primary:hover{background:var(--accent-strong)}.btn:disabled{opacity:.35;cursor:not-allowed}.btn.icon-only{width:35px;padding:0;font-size:16px}.btn svg{width:15px;height:15px}.workspace{flex:1;grid-template-columns:242px minmax(0,1fr);min-height:calc(100vh - 72px);display:grid}.sidebar{border-right:1px solid var(--line);background:#f8faf8;flex-direction:column;min-height:0;padding:23px 15px 18px;display:flex}.side-heading{justify-content:space-between;align-items:center;margin-bottom:15px;padding:0 9px;display:flex}.side-heading span{color:#77847a;letter-spacing:.7px;font-size:11px;font-weight:750}.side-add{color:#78867b;background:0 0;border:0;border-radius:7px;width:26px;height:26px;font-size:18px}.side-empty{color:#a2aba4;padding:8px 9px;font-size:11px;line-height:1.7}.side-tip{color:#617267;background:#edf3ee;border-radius:10px;margin:18px 3px 0;padding:13px 12px;font-size:10px;line-height:1.75}.side-tip strong{color:#3e5b48;margin-bottom:4px;font-size:11px;display:block}.main{flex-direction:column;min-width:0;padding:22px 28px 24px;display:flex}.main-toolbar{justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;display:flex}.toolbar-left,.toolbar-right{align-items:center;gap:8px;display:flex}.mode-switch{background:#fff;border:1px solid #e1e7e2;border-radius:10px;gap:2px;padding:3px;display:inline-flex}.mode-btn{color:#879188;background:0 0;border:0;border-radius:7px;height:29px;padding:0 13px;font-size:11px;font-weight:700}.toolbar-divider{background:#e1e6e2;width:1px;height:20px;margin:0 3px}.toolbar-label{color:#8d988f;font-size:11px}.editor-card,.preview-card{min-height:460px;box-shadow:var(--shadow);background:#fff;border:1px solid #e5eae6;border-radius:15px;flex-direction:column;flex:1;display:flex;overflow:hidden}.editor-head,.preview-head{border-bottom:1px solid #edf0ed;flex:0 0 58px;justify-content:space-between;align-items:center;height:58px;padding:0 24px;display:flex}.section-title{color:#344239;font-size:13px;font-weight:750}.section-subtitle{color:#a0aaa2;margin-left:10px;font-size:10px}.keyboard-hint{color:#9aa49c;align-items:center;gap:12px;font-size:10px;display:flex}kbd{color:#77847a;background:#fafbfa;border:1px solid #e5e9e5;border-bottom-width:2px;border-radius:5px;place-items:center;min-width:20px;height:19px;margin-right:4px;padding:0 5px;font:10px ui-monospace,SFMono-Regular,Menlo,monospace;display:inline-grid}.outline-scroll{flex:1;padding:23px 26px 28px;overflow:auto}.outline-list{max-width:980px;margin:0 auto}.node-row{--depth:0;min-height:43px;padding:4px 7px 4px calc(8px + var(--depth) * 27px);border-radius:8px;align-items:flex-start;gap:9px;margin:2px 0;transition:background .12s;display:flex;position:relative}.node-row:before{content:"";left:calc(17px + var(--depth) * 27px);background:#e9eeea;width:1px;display:none;position:absolute;top:25px;bottom:-7px}.node-row.has-next-child:before{display:block}.node-gutter{z-index:1;flex:0 0 19px;justify-content:center;align-items:center;width:19px;height:31px;display:flex;position:relative}.node-dot{background:#fff;border:1.5px solid #91a296;border-radius:50%;width:7px;height:7px}.node-row.depth-0 .node-dot{background:#4e8062;border-color:#4e8062;width:9px;height:9px}.node-row.depth-2 .node-dot{background:#aab9ad;border-color:#aab9ad;width:6px;height:6px}.node-text{resize:none;color:#344139;white-space:pre-wrap;overflow-wrap:anywhere;background:0 0;border:0;outline:0;flex:1;min-width:0;min-height:31px;padding:4px 0 3px;font-size:13px;line-height:1.75;overflow:hidden}.node-row.depth-0 .node-text{color:#2d3e33;font-weight:700}.node-row.depth-1 .node-text{font-weight:570}.node-actions{opacity:0;align-items:center;gap:2px;padding-top:1px;transition:opacity .12s;display:flex}.node-row:hover .node-actions,.node-row:focus-within .node-actions{opacity:1}.node-action{color:#9ba69e;background:0 0;border:0;border-radius:6px;place-items:center;width:25px;height:25px;font-size:14px;display:grid}.node-action.collapse{font-size:12px}.node-action.collapse.is-collapsed{transform:rotate(-90deg)}.empty-outline{text-align:center;color:#9aa59c;max-width:500px;margin:90px auto}.empty-outline-mark{color:#568166;background:#edf3ee;border-radius:15px;place-items:center;width:50px;height:50px;margin:0 auto 14px;font-size:23px;display:grid}.empty-outline strong{color:#59685d;margin-bottom:7px;font-size:13px;display:block}.empty-outline p{margin:0 0 14px;font-size:11px;line-height:1.7}.editor-foot{color:#a0aaa2;border-top:1px solid #edf0ed;flex:0 0 43px;justify-content:space-between;align-items:center;min-height:43px;padding:0 24px;font-size:10px;display:flex}.editor-foot strong{color:#6d7a70;font-weight:650}.preview-card{position:relative}.preview-head-right{align-items:center;gap:7px;display:flex}.zoom-label{color:#929d94;text-align:center;min-width:38px;font-size:10px}.map-viewport{background:#fbfcfb;flex:1;justify-content:flex-start;align-items:center;min-height:380px;padding:28px;display:flex;overflow:auto}.map-canvas{flex:none;margin:auto;line-height:0}.map-canvas svg{max-width:none;display:block}.preview-foot{color:#a0aaa2;border-top:1px solid #edf0ed;justify-content:space-between;align-items:center;min-height:42px;padding:0 22px;font-size:10px;display:flex}.export-wrap{position:relative}.export-menu{z-index:20;background:#fff;border:1px solid #e4e9e5;border-radius:11px;width:190px;padding:6px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 12px 30px #1a2a1f21}.export-menu[hidden]{display:none}.export-option{color:#536157;text-align:left;background:0 0;border:0;border-radius:7px;align-items:center;gap:10px;width:100%;padding:9px 10px;font-size:11px;display:flex}.export-option small{color:#a0aaa2;margin-left:auto;font-size:9px}.toast{opacity:0;pointer-events:none;color:#fff;z-index:50;background:#26382d;border-radius:9px;padding:10px 15px;font-size:11px;transition:all .2s;position:fixed;bottom:28px;left:50%;transform:translate(-50%,12px);box-shadow:0 8px 24px #1423192e}.toast.show{opacity:1;transform:translate(-50%)}.hidden{display:none!important}@media (width<=900px){.topbar{gap:14px;padding:0 18px}.brand{min-width:auto}.brand-sub{display:none}.workspace{grid-template-columns:205px minmax(0,1fr)}.main{padding:18px}.keyboard-hint{gap:7px}}@media (width<=680px){.topbar{flex-wrap:wrap;gap:10px;height:auto;min-height:66px;padding:12px 14px}.brand{min-width:125px}.brand-name{font-size:14px}.brand-mark{width:32px;height:32px}.doc-title-wrap{flex-basis:100%;order:3;max-width:none}.doc-title{padding:5px 7px;font-size:14px}.top-actions{gap:6px}.save-status{display:none}.workspace{grid-template-columns:1fr;min-height:calc(100vh - 112px)}.sidebar{display:none}.main{padding:14px 10px 16px}.main-toolbar{margin-bottom:12px}.toolbar-label,.toolbar-divider,#collapseAllBtn,#expandAllBtn{display:none}.editor-card,.preview-card{border-radius:11px;min-height:520px}.editor-head,.preview-head{padding:0 13px}.keyboard-hint{display:none}.outline-scroll{padding:17px 8px 20px}.node-row{padding-left:calc(5px + var(--depth) * 20px);gap:5px}.node-actions{opacity:1}.editor-foot{padding:0 12px}.map-viewport{justify-content:flex-start;padding:14px}}:root{--bg:#eee3bf;--panel:#fbf4dc;--panel-soft:#f5ebc9;--line:#dfd0a5;--line-strong:#c8b681;--text:#29251b;--muted:#786d52;--muted-2:#9b8e6d;--accent:#e0b12e;--accent-strong:#c58e16;--accent-soft:#f8e8b1;--danger:#a94d3d;--shadow:0 8px 30px #3a2b0c17;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html,body{background:var(--bg);color:var(--text)}button:focus-visible{outline:3px solid #cd9a1e59}.topbar{background:#29251b;border-bottom-color:#51452a}.brand-mark{color:#29251b;background:#efc64d}.brand-name{color:#fff4d0}.brand-sub{color:#c9b982}.doc-title{color:#fff0c4}.doc-title::placeholder{color:#c9b982;opacity:1}.doc-title:hover,.doc-title:focus{background:#393222}.save-status{color:#d5c79c}.save-dot{background:#efc64d}.save-status.saving .save-dot{background:#e4a72c}.btn{color:#39311e;background:#fbf4dc;border-color:#c9b986}.btn:hover{background:#f3e7bd;border-color:#a99050}.btn.primary{color:#29251b;background:#efc64d;border-color:#d5a92d}.btn.primary:hover{background:#f6d66e;border-color:#c28e18}.sidebar{background:#f1e6c4;border-right-color:#d8c89b}.side-heading span{color:#6b5d3b}.side-add{color:#675a39}.side-add:hover{color:#29251b;background:#e8d79e}.note-list{scrollbar-color:#b69a55 #f1e6c4;scrollbar-width:thin;flex:1;min-height:80px;padding:2px 3px;overflow-y:auto}.note-item{color:#5e5234;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;width:100%;min-height:44px;margin-bottom:4px;padding:10px;font-size:13px;line-height:1.5;display:flex}.note-item:hover{color:#29251b;background:#e9dcae}.note-item.is-active{color:#29251b;background:#e6d295;font-weight:700}.note-item svg{color:#786332;flex:0 0 18px;width:18px;height:18px}.note-item-title{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.note-list-footer{color:#6b5d3b;margin:16px 9px 0;font-size:11px;line-height:1.6}.side-add svg{width:18px;height:18px;margin:auto;display:block}.side-empty{color:#98885e}.side-tip{color:#5e4e27;background:#e9d9a8}.side-tip strong{color:#342a15}.main{color:var(--text)}.mode-switch{background:#faf2d8;border-color:#d7c79a}.mode-btn{color:#887a57}.mode-btn.active{color:#f7e6a9;background:#302a1d}.toolbar-divider{background:#d5c69b}.toolbar-label{color:#857750}.editor-card,.preview-card{background:#fbf4dc;border-color:#d9c99c}.editor-head,.preview-head{border-bottom-color:#e7dbb8}.section-title{color:#30291b}.section-subtitle,.keyboard-hint{color:#94845d}kbd{color:#655832;background:#f5eccd;border-color:#dfd2ac}.node-row:hover{background:#f5ebc9}.node-row:focus-within{background:#f6edcf}.node-row:before{background:#ddcfaa}.node-dot{background:#fff8e5;border-color:#aa955d}.node-row.depth-0 .node-dot{background:#d4a126;border-color:#b98513}.node-row.depth-1 .node-dot{background:#fff8e5;border-color:#b78a24}.node-row.depth-2 .node-dot{background:#d8bd72;border-color:#c5a34b}.node-text{color:#30291b}.node-text::placeholder{color:#b2a276}.node-row.depth-0 .node-text{color:#252015}.node-action{color:#9b895c}.node-action:hover{color:#352b16;background:#eadba9}.node-action.delete:hover{color:var(--danger);background:#f3dfd4}.empty-outline{color:#97875f}.empty-outline-mark{color:#8b6716;background:#eee0b1}.empty-outline strong{color:#4a3c1d}.editor-foot,.preview-foot{color:#97865d;border-top-color:#e7dbb8}.editor-foot strong{color:#62532e}.zoom-label{color:#857750}.map-viewport{background:#f5eccd}.export-menu{background:#fcf5df;border-color:#d9c99c;box-shadow:0 12px 30px #30240829}.export-option{color:#4c4023}.export-option:hover{color:#29251b;background:#f0e2b6}.export-option small{color:#99885c}.toast{color:#fff2ca;background:#29251b;box-shadow:0 8px 24px #231c0d38}@media (width<=680px){.topbar{background:#29251b}}input:focus,input:focus-visible,textarea:focus,textarea:focus-visible{box-shadow:none;outline:none}.doc-title:focus,.node-text:focus{border:0}.workspace{--sidebar-width:242px;grid-template-columns:var(--sidebar-width) minmax(0, 1fr)}.sidebar{min-width:0;position:relative}.sidebar-resizer{z-index:5;cursor:col-resize;touch-action:none;width:10px;position:absolute;top:0;bottom:0;right:-5px}.sidebar-resizer:after{content:"";background:0 0;width:2px;position:absolute;top:0;bottom:0;left:4px}.sidebar-resizer:hover:after,.sidebar-resizer:focus-visible:after,.workspace.is-resizing .sidebar-resizer:after{background:#c58e16}.workspace.is-resizing,.workspace.is-resizing *{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}#toggleSidebarBtn svg{width:18px;height:18px}#toggleSidebarBtn[aria-expanded=false]{background:#eee0b1}@media (width>=681px){.workspace.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.workspace.sidebar-collapsed .sidebar{display:none}}@media (width<=680px){.workspace{grid-template-columns:minmax(0,1fr)}.workspace .sidebar{display:none}.workspace.mobile-sidebar-open .sidebar{border-right:0;border-bottom:1px solid var(--line);max-height:42vh;display:flex}.sidebar-resizer{display:none}.main-toolbar,.toolbar-left,.toolbar-right{flex-wrap:wrap}}.app-shell.is-locked{visibility:hidden}.startup-overlay{z-index:40;background:var(--bg);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.startup-status{width:min(100%,390px);color:var(--muted);text-align:center;overflow-wrap:anywhere;font-size:14px;line-height:1.8}.startup-status p{margin:0}.startup-status .startup-error{margin-top:8px}.startup-status .btn{margin-top:16px}.auth-overlay{z-index:40;background:#f3e9c8;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow:auto}.auth-overlay[hidden],.notice[hidden],.account-actions[hidden]{display:none}.auth-card{width:min(100%,390px);box-shadow:var(--shadow);background:#fbf4dc;border:1px solid #d9c99c;border-radius:15px;padding:30px}.auth-card h1{color:#29251b;margin:0 0 8px;font-size:24px}.auth-card p{color:#786d52;font-size:13px;line-height:1.7}.auth-tabs{gap:8px;margin:22px 0;display:flex}.auth-tabs .btn{flex:1}.auth-card label{color:#5e5234;margin:15px 0 7px;font-size:12px;display:block}.auth-input{color:#29251b;background:#f5eccd;border:0;border-bottom:1px solid #c8b681;border-radius:0;width:100%;padding:11px}.auth-input:focus{background:#eee0b1}.auth-card .auth-submit{width:100%;margin-top:20px}.auth-error{min-height:22px;margin:12px 0 0;color:#a94d3d!important}.account-actions{align-items:center;gap:7px;display:flex}.account-name{color:#fff0c4;text-overflow:ellipsis;white-space:nowrap;max-width:100px;font-size:12px;overflow:hidden}.notice{color:#4c4023;background:#f8e8b1;border:1px solid #c9b986;border-radius:9px;margin-bottom:16px;padding:12px 14px;font-size:12px;line-height:1.7}.notice p{margin:0 0 9px}.notice-actions{flex-wrap:wrap;gap:8px;display:flex}@media (width<=900px){.topbar{flex-wrap:wrap;height:auto;min-height:72px;padding-top:12px;padding-bottom:12px}.top-actions{flex-wrap:wrap}}@media (width<=680px){.auth-card{padding:24px}.account-name{max-width:80px}}
