:root{--bg:#f7f8f5;--paper:#fff;--ink:#243b32;--muted:#78827b;--line:#e5e9e1;--green:#326c50;--soft:#eaf1e6;--gold:#b88945;--radius:14px;font-family:'Segoe UI','Microsoft YaHei',sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:9px 14px;transition:background .15s}button:hover{background:#f0f4ed}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #6a9a74;outline-offset:2px}input,select,textarea{border:1px solid var(--line);border-radius:7px;background:white;padding:9px 11px;color:var(--ink);min-width:0}input::placeholder,textarea::placeholder{color:#98a197}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1{font-size:28px;font-weight:650;letter-spacing:-1px;line-height:1.5;margin-bottom:8px}h2{font-size:17px;font-weight:650;margin-bottom:16px}h3{font-size:15px;line-height:1.7}small{font-size:12px}kbd{font:11px 'Segoe UI',sans-serif;color:#95a18f}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#295c43}.primary kbd{color:#c8d8cb}.danger{color:#a1493d}.text-button{border:0;background:transparent;padding:5px;color:var(--muted)}.muted{color:var(--muted);line-height:1.8}.hidden{display:none!important}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grow{flex:1}.gap-top{margin-top:20px}.tag{display:inline-block;background:#f1f3ed;color:#6d7d68;padding:3px 8px;border-radius:5px;font-size:11px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{font-size:11px;border-radius:5px;padding:4px 8px;white-space:nowrap;background:#edf2e9;color:#548044}.badge.idea{background:#fcf2df;color:#b18a43}.badge.experience{background:#e8eff7;color:#5a7e9f}.badge.inbox{background:#f1efeb;color:#8b8378}.pill{border-radius:99px;background:#eef3e8;font-size:12px;padding:5px 10px}.live-dot{display:inline-block;width:6px;height:6px;background:#6e9865;border-radius:50%;margin-right:5px}.count{font-size:12px;color:#8b9787}.sidebar{width:232px;height:100vh;position:fixed;display:flex;flex-direction:column;background:#f1f4ec;border-right:1px solid var(--line);padding:30px 18px}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 32px}.brand-mark{display:flex;align-items:center;justify-content:center;width:39px;height:43px;background:#37664d;color:white;border-radius:11px 11px 11px 3px;font-size:23px;font-weight:500}.brand strong{font-size:17px;letter-spacing:1px}.brand small{display:block;margin-top:5px;color:#83907e;font-size:10px}.new-note{text-align:left;display:flex;justify-content:space-between;align-items:center;padding:12px;margin-bottom:24px}nav{flex:1;overflow:auto}nav button{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;border:0;background:transparent;margin:4px 0;padding:12px 14px;border-radius:9px;color:#657361}nav button.active{background:#e0e9d9;color:#315d3a;font-weight:650}nav button:hover{background:#e7ede0}.nav-label{font-size:10px;letter-spacing:2px;color:#9aa38f;padding:20px 14px 7px}.nav-icon{display:inline-block;width:25px;font-size:15px;font-weight:400}.sidebar-foot{border-top:1px solid #dce3d4;padding:18px 10px 0;font-size:12px;color:#687d60}.sidebar-foot small{display:block;font-size:10px;color:#95a08e;margin:7px 0 14px}.sidebar-foot button{font-size:11px;padding-left:0}.workspace{margin-left:232px}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:0 34px;background:rgba(255,255,255,.62)}#breadcrumb{font-size:12px;color:#7e8977;min-width:110px}.search{margin-left:auto;display:flex;align-items:center;gap:10px;background:#f2f4ef;border:1px solid #e8ece4;border-radius:8px;padding:0 12px;width:350px}.search span{font-size:25px;color:#919b89}.search input{border:0;background:transparent;flex:1;outline:0;padding:9px 0;font-size:12px}.search kbd{white-space:nowrap}.local-badge{font-size:10px;color:#88917f;border:1px solid var(--line);border-radius:99px;padding:6px 10px;white-space:nowrap}.workspace-body{display:flex;min-height:calc(100vh - 76px)}main{flex:1;min-width:0;padding:32px 36px 55px;max-width:1600px;margin:0 auto;width:100%}.eyebrow{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:#90a080;margin-bottom:11px}.page-head{margin-bottom:26px}.page-head .muted{font-size:12px}.date{font-size:12px;color:#87917d}.hero{background:linear-gradient(110deg,#edf2e7,#f5f6ee);padding:28px 30px;border:1px solid #e1e8d8;border-radius:var(--radius);margin-bottom:24px;position:relative;overflow:hidden}.hero h1{font-size:26px}.hero-decoration{position:absolute;right:32px;top:22px;font-family:Georgia,serif;font-size:112px;line-height:1;color:#d8e4ca;opacity:.7;pointer-events:none}.hero p{font-size:12px;color:#819272;max-width:75%;line-height:1.9;margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:26px}.stat{padding:17px 20px;border:1px solid var(--line);background:#fff;border-radius:11px}.stat .num{font:30px/1.4 Georgia,serif;color:#426044}.stat label{font-size:11px;color:#8a9480;display:block;margin-bottom:5px}.stat small{font-size:10px;color:#a0a895;margin-left:9px}.section{margin-bottom:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-heading h2{margin:0}.section-heading button{font-size:11px}.capture{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.capture textarea{width:100%;border:0;resize:vertical;min-height:90px;padding:20px;outline:0;line-height:1.8;background:transparent}.capture-bottom{display:flex;justify-content:space-between;align-items:center;padding:10px 16px 14px;border-top:1px solid #f1f3ed}.capture-bottom small{color:#9aa58f}.capture-bottom button{font-size:12px}.section-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:22px}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:14px}.note-card{background:white;border:1px solid var(--line);border-radius:12px;padding:19px 20px;cursor:pointer;display:flex;flex-direction:column;min-height:174px;transition:border .15s,transform .15s}.note-card:hover{border-color:#aac29c;transform:translateY(-2px)}.note-card.selected{border-color:#6c9560;background:#fcfef8}.note-card h3{margin:12px 0 6px;word-break:break-word}.note-card p{color:#8c9686;line-height:1.8;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px;margin-bottom:17px;white-space:pre-wrap}.note-card footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;gap:5px;font-size:10px;color:#a2aa99}.note-card input{accent-color:#55814c}.note-meta{display:flex;align-items:center;justify-content:space-between}.note-meta .fav{color:#b9965a}.note-project{font-size:10px;color:#909b85;margin-bottom:10px}.empty{padding:44px 25px;text-align:center;color:#91a085;background:#fcfdf9;border:1px dashed #dce4d4;border-radius:12px}.empty strong{font-weight:500;display:block;color:#6f8565;margin-bottom:9px;font-size:15px}.empty p{font-size:12px;line-height:1.8;margin-bottom:17px}.empty-symbol{display:block;font:32px Georgia;color:#b0c09f;margin-bottom:14px}.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px}.filters select{font-size:12px;max-width:175px}.filters button{font-size:12px;padding:8px 12px}.filters .active{background:var(--soft);border-color:#bdcfb4}.selection-bar{display:flex;gap:8px;align-items:center;background:#eaf0e3;border-radius:8px;margin:0 0 16px;padding:10px 14px;font-size:12px}.selection-bar button{font-size:11px}.task-card{background:#fff;border:1px solid var(--line);padding:5px 16px;border-radius:12px}.task-row{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid #eff1ec;align-items:flex-start}.task-row:last-child{border-bottom:0}.task-row input[type=checkbox]{accent-color:var(--green);margin-top:4px;cursor:pointer}.task-row .task-title{line-height:1.7;word-break:break-word;font-size:13px}.task-row.done .task-title{text-decoration:line-through;color:#9ba493}.task-row small{color:#9aa18f;display:block;line-height:1.7;margin-top:5px}.overdue{color:#b16b48!important}.task-row button{font-size:11px;padding:4px 7px}.tip-card{background:#eff2e9;border:1px solid #e2e8d9;border-radius:12px;padding:18px 20px;margin-top:16px;font-size:12px;line-height:1.9;color:#819173}.tip-card strong{display:block;color:#61784f;margin-bottom:5px;font-weight:500}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:18px}.panel p{font-size:12px;line-height:1.9;color:var(--muted)}.panel .path{font-family:Consolas,monospace;font-size:12px;word-break:break-all;background:#f3f5ef;border-radius:7px;padding:12px}.panel h3{margin-bottom:8px}.backup-row,.project-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.backup-row:last-child,.project-row:last-child{border:0}.backup-row small{color:#929c88;margin-left:10px}.backup-row a{white-space:nowrap}.notice{border-left:3px solid #d7b877;background:#fbf7ed;padding:13px 16px;color:#9a8255;font-size:12px;line-height:1.9;margin-bottom:18px;border-radius:0 7px 7px 0}.editor{width:540px;flex-shrink:0;border-left:1px solid var(--line);background:white;height:calc(100vh - 76px);position:sticky;top:0;display:flex;flex-direction:column}.editor-head{display:flex;justify-content:space-between;align-items:center;padding:15px 21px;border-bottom:1px solid var(--line);gap:7px}.editor-head small{font-size:11px;color:#95a088}.editor-head button{font-size:12px;padding:6px 9px}.editor-scroll{overflow:auto;padding:24px;flex:1}.editor-title{border:0;border-radius:0;font-size:22px;font-weight:600;padding:4px 0 12px;width:100%;line-height:1.5}.editor-props{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center;margin:12px 0 19px;font-size:12px}.editor-props>label{color:#8b9782}.editor-props input,.editor-props select{font-size:12px;width:100%;padding:7px 9px}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:8px 0;border-top:1px solid #eff1eb;border-bottom:1px solid #eff1eb;margin-bottom:12px}.toolbar button{padding:5px 8px;font-size:11px;border:0;color:#73856b;background:#f4f6f0}.body-editor{width:100%;min-height:285px;resize:vertical;border:0;line-height:1.9;padding:8px 0;font-size:14px;outline:0;color:#4a5a43}.preview{min-height:280px;padding:10px 0;line-height:1.9;overflow-wrap:anywhere;font-size:14px}.preview h1{font-size:23px}.preview h2{font-size:19px}.preview p{margin:0 0 7px;white-space:pre-wrap}.preview img{max-width:100%;border-radius:8px}.preview code{background:#f0f3ec;border-radius:3px;padding:2px 4px;font-family:Consolas,monospace}.subheading{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8a987f;letter-spacing:1px;margin:23px 0 11px;border-top:1px solid var(--line);padding-top:17px}.attachment{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:7px;padding:9px;margin-bottom:7px;font-size:12px;word-break:break-word}.attachment img{width:38px;height:38px;object-fit:cover;border-radius:4px}.attachment small{color:#99a18f;display:block;margin-top:4px}.attachment button{border:0;padding:4px 6px;color:#929d88;font-size:11px}.related-chip{display:flex;align-items:center;justify-content:space-between;background:#f4f7ee;border-radius:6px;padding:8px 10px;margin:5px 0;font-size:12px}.related-chip button{border:0;background:transparent;padding:2px 4px}.editor-foot{padding:10px 22px;border-top:1px solid var(--line);font-size:10px;color:#9aa68e;line-height:1.8}.modal-overlay{position:fixed;inset:0;background:#20372d55;backdrop-filter:blur(3px);z-index:20;display:flex;align-items:center;justify-content:center;padding:30px}.modal{background:#fff;border-radius:17px;box-shadow:0 24px 80px #19302225;width:620px;max-width:100%;max-height:90vh;overflow:auto;padding:28px}.modal.wide{width:920px}.modal h2{font-size:21px}.modal label.field{display:block;margin:17px 0 6px;font-size:12px;color:#819175}.modal input:not([type=checkbox]),.modal select,.modal textarea{width:100%}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.modal-header{display:flex;justify-content:space-between}.modal-header button{border:0;align-self:flex-start;padding:3px 8px;font-size:18px;color:#95a38a}.conflict{border:1px solid var(--line);border-radius:10px;padding:15px;margin-top:12px}.conflict select{margin:10px 0;font-size:12px}.diff{display:grid;grid-template-columns:1fr 1fr;gap:12px}.diff div{padding:10px;background:#f7f8f4;border-radius:7px;font-size:12px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.diff small{display:block;color:#8f9b84;margin-bottom:7px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;border-radius:9px;background:#2c4939;color:white;box-shadow:0 6px 24px #253b3325;z-index:40;font-size:13px;max-width:85%;line-height:1.7}.toast.error{background:#875043}.form-inline{display:flex;gap:9px;margin-bottom:18px}.form-inline input{flex:1}.checkline{font-size:12px;color:#7a8a6f;display:flex;align-items:center;gap:7px;margin-top:12px}.checkline input{accent-color:var(--green)}
.brand-mark{width:48px;height:48px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:12px}
.brand{gap:9px;padding-left:0;padding-right:0}.brand strong{font-size:16px}
.red-text,.toolbar .red-text{color:#b42318}.preview strong{font-weight:750}
.preview mark,.rich-editor mark{background:#fff1a8;color:inherit;padding:0 2px;border-radius:2px}.preview blockquote,.rich-editor blockquote{border-left:3px solid #a8bd9b;margin:8px 0;padding:5px 12px;color:#647361;background:#f6f8f2}.preview ul,.preview ol,.rich-editor ul,.rich-editor ol{padding-left:25px;line-height:1.9}.rich-editor{min-height:285px;white-space:normal;overflow-wrap:anywhere;cursor:text}.rich-editor:empty:before{content:attr(data-placeholder);color:#98a197}.rich-editor:focus{outline:2px solid #6a9a74;outline-offset:4px}.rich-editor img{max-width:100%}
.reading-title{font-size:23px;overflow-wrap:anywhere;letter-spacing:0}.reading-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px;color:var(--muted);padding-bottom:16px;border-bottom:1px solid var(--line)}
.relation-label{font-size:11px;color:var(--muted);margin:14px 0 7px}.related-chip button:first-child{overflow-wrap:anywhere;text-align:left}
.selection-bar{flex-wrap:wrap;position:sticky;top:8px;z-index:1}.undo-bar{padding:12px 16px;background:#eaf1e6;border:1px solid #bdd0b4;border-radius:10px;margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.graph-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px;background:radial-gradient(#dee7d9 1px,transparent 1px);background-size:16px 16px}
.graph-canvas{position:relative;width:100%;min-width:720px;aspect-ratio:820/450}.graph-canvas svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.graph-canvas line{stroke:#79927c;stroke-width:1.7}
.graph-node{position:absolute;transform:translate(-50%,-50%);width:152px;height:68px;display:flex;flex-direction:column;justify-content:center;text-align:left;padding:10px 13px;box-shadow:0 4px 12px #243b3210;border-color:#c7d7c1}.graph-node:hover{background:#edf3e7}.graph-node small{font-size:10px;color:var(--muted);margin-bottom:4px}.graph-node strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.graph-node.center{background:#326c50;color:white;border-color:#326c50}.graph-node.center small{color:#d6e7ce}.graph-node.idea{border-color:#d9bd85}.graph-node.experience{border-color:#97b2ca}.graph-empty{position:absolute;left:0;right:0;top:75%;text-align:center;font-size:12px;color:var(--muted)}
@media(min-width:1500px){main{padding:38px 48px}.editor{width:600px}}@media(max-width:1180px){.sidebar{width:200px;padding:25px 13px}.workspace{margin-left:200px}.brand{padding-left:3px}.brand small{font-size:9px}main{padding:25px}.topbar{padding:0 25px}.editor{width:470px}.section-grid{grid-template-columns:1fr}.stats{gap:9px}.stat{padding:13px}.search{width:290px}.notes-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr))}}@media(max-width:950px){.editor{position:fixed;right:0;top:76px;width:calc(100vw - 210px);box-shadow:-20px 0 60px #20372d1a;z-index:5}.local-badge{display:none}.hero-decoration{display:none}}@media(max-width:650px){.sidebar{width:66px;padding:20px 7px}.brand{padding:0 6px 23px}.brand>div,.new-note kbd,.sidebar-foot,.nav-label{display:none}.brand-mark{width:38px;height:38px}.new-note{font-size:0;padding:10px}.new-note:before{content:'＋';font-size:20px;margin:auto}nav button{font-size:0;padding:12px;justify-content:center}nav .nav-icon{font-size:19px;width:auto}nav .count{display:none}.workspace{margin-left:66px}.topbar{height:64px;padding:0 15px;gap:10px}#breadcrumb{display:none}.search{width:100%}.editor{width:calc(100vw - 66px);top:64px;height:calc(100vh - 64px)}main{padding:20px 16px}.hero{padding:23px}.hero h1{font-size:22px}.hero p{max-width:100%}.stats{grid-template-columns:1fr 1fr}.notes-grid{grid-template-columns:1fr}.modal-overlay{padding:13px}.modal{padding:22px}.diff{grid-template-columns:1fr}.capture-bottom small{max-width:55%;line-height:1.8}.selection-bar{flex-wrap:wrap}}
@media(max-width:650px){.sidebar{left:0;right:0;top:auto;bottom:0;width:100%;height:72px;padding:5px 8px;flex-direction:row;align-items:center;border-right:0;border-top:1px solid var(--line);z-index:8}.brand,.sidebar-foot,.nav-label{display:none!important}.new-note{display:flex;width:54px;min-width:54px;height:54px;margin:0 7px 0 0;justify-content:center;font-size:0;padding:0}.new-note:before{content:'＋';font-size:25px}.sidebar nav{display:flex;flex:1;overflow-x:auto;overflow-y:hidden;gap:2px;scrollbar-width:none}.sidebar nav::-webkit-scrollbar{display:none}.sidebar nav button{width:64px;min-width:64px;height:57px;margin:0;padding:5px 2px;justify-content:center;line-height:1.1;font-size:10px;text-align:center}.sidebar nav button>span:first-child{display:flex;flex-direction:column;align-items:center;gap:3px}.sidebar nav .nav-icon{font-size:18px;width:auto}.sidebar nav .count{display:none}.workspace{margin-left:0;padding-bottom:72px}.workspace-body{min-height:calc(100dvh - 136px)}.topbar{height:64px}.editor{position:fixed;inset:0;width:100%;height:100dvh;z-index:15;box-shadow:none}.editor-head{padding:10px 12px}.editor-scroll{padding:18px}.modal-overlay{z-index:25}main{padding:18px 14px}.section-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.notes-grid{grid-template-columns:1fr}.capture-bottom small{max-width:55%}.modal-overlay{padding:10px}.modal{padding:18px}}
