:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#24342f;background:#fff;font-size:14px;--line:#e4eae6;--muted:#75827b;--green:#27715a;--tint:#e5f0e9}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{border:0;background:transparent;color:inherit;cursor:pointer;border-radius:7px;transition:background .15s,color .15s}button:hover{background:#e9efeb;color:var(--green)}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #438b70;outline-offset:2px}input,textarea{color:inherit}header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line);gap:12px;flex-shrink:0}.app{display:grid;grid-template-columns:218px 302px minmax(0,1fr);height:100dvh}.folders,.notes{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:#f4f7f3}.notes{background:#fafbf9}.brand{font-size:27px;letter-spacing:-1.5px}.brand span,.overlay h2 span{color:var(--green)}.tag{font-size:9px;letter-spacing:1.5px;color:var(--muted)}.sectionHead{padding:20px 16px 8px 22px;display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:650;letter-spacing:.7px;color:var(--muted)}.sectionHead button{font-size:22px;width:30px;height:30px}.scroll{overflow:auto;flex:1;min-height:0;padding:8px 10px}.item{padding:12px;border-radius:8px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;outline-offset:-2px}.item:hover{background:#edf1eb}.item.active{background:var(--tint);color:#1e614b;font-weight:600}.item small{display:block;color:var(--muted);margin-top:7px;font-size:11px;font-weight:400}.notes .item{margin-bottom:5px;padding:16px 14px;border:1px solid transparent}.notes .item.active{border-color:#d3e4d8;background:#edf5ee}.item.dragover{outline:2px dashed var(--green)}.folder{display:flex;gap:9px;align-items:center}.folder>span:first-child{color:#8d9c90;font-size:13px}.folder .foldername{overflow:hidden;text-overflow:ellipsis}.listHeading{display:flex;flex-direction:column;gap:5px;min-width:0}.listHeading small{font-size:9px;letter-spacing:1.4px;color:var(--muted)}.listHeading strong{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.primary{background:var(--green);color:#fff;padding:10px 14px;font-size:12px;font-weight:600;white-space:nowrap}.primary:hover{background:#205e4b;color:#fff}.searchBox{padding:17px 16px 8px}.searchBox input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:white;font-size:12px}.searchBox input::placeholder{color:#8a948d}footer{padding:16px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.folders footer{display:flex;justify-content:space-between;gap:8px}.notes footer{display:flex;flex-direction:column;gap:7px}footer small{font-size:11px}.hint{font-size:10px;color:#929b94}main{min-width:0;display:flex;flex-direction:column;background:#fff}#empty{margin:auto;text-align:center;padding:28px;color:var(--muted)}.emptyIcon{font-size:35px;color:var(--green);background:#edf4ee;width:72px;height:72px;border-radius:22px;display:grid;place-items:center;margin:0 auto 23px}#empty h1{font-size:24px;font-weight:550;letter-spacing:-.6px;color:#34483c}#empty p{font-size:14px;line-height:1.8;margin-bottom:24px}#editor{height:100%;display:flex;flex-direction:column}#editor[hidden],[hidden]{display:none!important}.editorTop{min-height:61px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 38px;color:var(--muted);font-size:11px;border-bottom:1px solid var(--line)}#noteLocation{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#saveState{white-space:nowrap;color:var(--green)}.editorHead{display:flex;padding:28px 38px 16px}.editorHead input{font-size:30px;letter-spacing:-.8px;font-weight:600;border:0;background:transparent;flex:1;min-width:0;width:100%}.editorActions{display:flex;align-items:center;gap:5px;padding:0 30px 15px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.editorActions button{padding:8px 10px;color:#68776d;font-size:12px}.editorActions #previewBtn{background:#f0f4ef;color:var(--green)}.editorActions #deleteBtn{margin-left:auto;color:#a16961}.editorActions #deleteBtn:hover{color:#a5392f;background:#fff0ed}.meta{display:flex;gap:18px;padding:16px 38px 8px;color:#8c968f;font-size:10px;flex-wrap:wrap}textarea{border:0;resize:none;flex:1;padding:17px 38px 30px;line-height:1.85;min-height:0;font-size:15px;background:#fff}textarea::placeholder{color:#adb5ae}#preview{overflow:auto;flex:1;margin:0;padding:17px 38px 30px;white-space:pre-wrap;line-height:1.85;font-family:inherit;font-size:15px}.editorFoot{display:flex;justify-content:space-between;gap:15px;padding:13px 38px;border-top:1px solid var(--line);color:#929b94;font-size:10px}.overlay{position:fixed;inset:0;z-index:10;background:#f4f7f3;display:grid;place-items:center}.overlay form{width:min(390px,90vw);padding:36px;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 50px #24342f08}.overlay h2{font-size:36px;letter-spacing:-2px;margin:0 0 15px}.overlay p{color:var(--muted);line-height:1.6}.overlay label{display:block;font-size:12px;margin-top:26px}.overlay input,.overlay button{width:100%;padding:12px;margin-top:10px;border-radius:7px}.overlay input{border:1px solid var(--line)}.overlay button{background:var(--green);color:#fff}.error{color:#b91c1c!important}.contextMenu{position:fixed;z-index:30;min-width:230px;max-width:calc(100vw - 12px);max-height:min(75vh,520px);overflow:auto;background:#fff;border:1px solid var(--line);box-shadow:0 12px 40px #24342f22;border-radius:11px;padding:6px}.contextMenu button{display:block;width:100%;padding:11px 13px;text-align:left;font-size:13px;overflow-wrap:anywhere}.contextMenu button:hover,.contextMenu button:focus{background:var(--tint);color:var(--green)}.contextMenu button.danger{color:#b05246;border-top:1px solid var(--line);border-radius:0 0 6px 6px;margin-top:5px}.menuTitle{padding:13px;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}.menuBack{color:var(--green)}.listEmpty{padding:30px 15px;text-align:center;color:var(--muted);line-height:1.8;font-size:12px}@media(min-width:1450px){.app{grid-template-columns:240px 330px minmax(0,1fr)}textarea,#preview{padding-right:max(38px,calc((100vw - 1250px)/2))}}@media(max-width:1000px){.app{grid-template-columns:180px 240px minmax(0,1fr)}header{padding:0 14px}.tag{display:none}.editorTop,.editorHead,.meta,.editorFoot{padding-left:24px;padding-right:24px}textarea,#preview{padding-left:24px;padding-right:24px}.editorActions{padding-left:16px;padding-right:16px}.editorHead input{font-size:26px}}@media(max-width:720px){.app{grid-template-columns:145px minmax(185px,1fr);height:auto;min-height:100dvh}.folders,.notes{height:40dvh;min-height:240px}main{grid-column:1/-1;height:60dvh;min-height:360px;border-top:1px solid var(--line)}header{height:64px}.brand{font-size:24px}.sectionHead{padding-top:8px}.searchBox{padding:10px}.item{padding-top:9px;padding-bottom:9px}.notes .item{padding:11px}.hint{display:none}footer{padding:10px 14px}.editorTop{min-height:42px;padding-top:9px;padding-bottom:9px}.editorHead{padding-top:17px;padding-bottom:12px}.meta{padding-top:10px}.editorFoot{padding-top:9px;padding-bottom:9px}.editorFoot span:last-child{display:none}#empty h1{font-size:21px}}

.attachments{flex-shrink:0;border-top:1px solid var(--line);padding:15px 38px 10px;max-height:30dvh;overflow:auto;background:#fcfdfb}.attachmentHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.attachmentHead strong{font-size:12px}.attachmentHead span{font-size:10px;color:var(--muted);margin-left:10px}.attachmentHead button{font-size:11px;padding:7px 10px;background:var(--tint);color:var(--green)}.attachmentDrop{border:1px dashed #cbd9ce;border-radius:8px;padding:12px;text-align:center;color:#65796b;font-size:12px;cursor:pointer;background:#f7faf5}.attachmentDrop span{font-size:10px;color:var(--muted);margin-left:5px}.attachmentDrop:hover,.attachmentDrop.dragover{border-color:var(--green);background:var(--tint)}#attachmentList{list-style:none;padding:0;margin:8px 0 0}#attachmentList li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid var(--line)}#attachmentList button{color:var(--green);padding:5px 0;text-align:left;overflow-wrap:anywhere;font-size:12px}#attachmentList small{white-space:nowrap;font-size:10px;color:var(--muted)}#attachmentStatus{font-size:11px;color:var(--green);margin:7px 0 0;overflow-wrap:anywhere}#attachmentStatus:empty{display:none}@media(max-width:1000px){.attachments{padding-left:24px;padding-right:24px}}@media(max-width:720px){.attachments{max-height:23dvh;padding:10px 24px}.attachmentDrop span{display:block;margin:5px 0 0}}

[hidden]{display:none!important}.overlay details{margin-top:18px}.overlay summary{cursor:pointer;font-size:13px}.overlay label.remember{display:flex;align-items:center;gap:8px;font-size:12px;margin:16px 0}.overlay .remember input{width:auto;margin:0}.overlay details input{margin-top:6px}.overlay form{max-height:90dvh;overflow:auto}.recoveryCard{background:white;padding:28px;border-radius:14px;width:min(92vw,560px);max-height:90dvh;overflow:auto}.recoveryCard pre{font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap;user-select:all}.recoveryCard button{display:block;background:var(--tint);padding:12px;margin-top:12px}.accountActions{position:fixed;right:8px;bottom:4px;display:flex;gap:5px;background:white;border:1px solid var(--line);border-radius:7px;font-size:10px;z-index:10}.accountActions button{padding:6px}.editorFoot{padding-bottom:36px}
@media(max-width:720px){.accountActions{font-size:10px}.accountActions button{padding:8px}.editorActions{flex-wrap:wrap}.editorActions button{min-height:40px}.attachmentHead{flex-wrap:wrap}}

.mobileNav{display:none}.overlay{z-index:40}#recoveryPanel{z-index:50}
@media(max-width:720px){body{overflow:hidden}.mobileNav{height:48px;display:flex;border-bottom:1px solid var(--line);background:#f4f7f3;gap:6px;padding:4px 10px}.mobileNav button{flex:1;font-weight:600}.app{display:block;height:calc(100dvh - 86px);min-height:0}.app>.folders,.app>.notes,.app>main{display:none;height:100%;min-height:0;border:0}body[data-screen="folders"] .app>.folders,body[data-screen="notes"] .app>.notes,body[data-screen="editor"] .app>main{display:flex}body[data-screen="folders"] #viewFolders,body[data-screen="notes"] #viewNotes,body[data-screen="editor"] #viewEditor{background:var(--tint);color:var(--green)}.accountActions{left:0;right:0;bottom:0;height:38px;justify-content:space-around;border-radius:0;align-items:center}.editorFoot{padding-bottom:10px}.meta{gap:6px}.editorHead{padding-top:12px}.editorActions{padding-bottom:7px}textarea,#preview{padding-top:10px}.attachments{max-height:25dvh}.item{min-height:44px}}
