@charset "UTF-8";
:root{color-scheme:light;--bg:#f4f7f6;--surface:#fff;--paper:#fff;--ink:#25362f;--muted:#748079;--line:#e7ece9;--accent:#216858;--accent-soft:#e6f1eb;--hover:#f4f7f5;--danger:#aa4242;--shadow:0 20px 80px #173c281c;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}
:root.dark{color-scheme:dark;--bg:#18221e;--surface:#202c26;--paper:#202c26;--ink:#e6eee8;--muted:#9cac9f;--line:#344039;--accent:#9fcdb1;--accent-soft:#2c4537;--hover:#29382f;--danger:#ee9d9d;--shadow:0 20px 80px #0005}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a{touch-action:manipulation}button{color:inherit}button:disabled{cursor:default;opacity:.4}a{color:var(--accent)}svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button{border:0;background:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,textarea{color:var(--ink)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-80px;left:20px;padding:12px;background:var(--surface);z-index:50}.skip-link:focus{top:10px}
.app{display:grid;grid-template-columns:244px minmax(0,1fr);height:100vh;height:100dvh;min-height:540px}.sidebar{display:flex;flex-direction:column;padding:34px 20px 20px;border-right:1px solid var(--line);min-height:0}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-size:26px;font-weight:650;letter-spacing:-1px;margin:0 4px 36px}.brand-mark{width:40px;height:42px;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:12px;background:var(--accent);color:var(--surface)}.brand-mark svg{width:29px;height:29px;stroke-width:1.5}.brand-caption{display:block;font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0;margin-top:3px;white-space:nowrap}.new-button,.primary-button{display:flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;background:var(--accent);color:var(--surface);font-size:14px;font-weight:550;min-height:44px;padding:10px 15px;text-decoration:none}.new-button:hover,.primary-button:hover{filter:brightness(1.08)}kbd{font-family:inherit;font-size:12px;font-weight:400;border:1px solid var(--line);border-radius:4px;min-width:19px;line-height:19px;text-align:center;color:var(--muted)}.new-button kbd{color:inherit;border-color:#ffffff45;margin-left:auto;padding:0 3px}.new-button svg{width:18px}.main-nav{display:flex;flex-direction:column;gap:5px;margin-top:27px}.nav-item,.folder-item{display:flex;align-items:center;gap:11px;width:100%;padding:12px;border-radius:8px;font-size:14px;text-align:left;color:var(--muted);min-height:43px}.nav-item svg{width:19px;height:19px}.nav-item:hover,.folder-item:hover{background:var(--hover);color:var(--ink)}.nav-item.active,.folder-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav-count{font-size:12px;line-height:20px;margin-left:auto;min-width:19px;text-align:center}.nav-item.active .nav-count{background:var(--surface);border-radius:4px}.folder-heading{font-size:11px;font-weight:650;letter-spacing:1.5px;color:var(--muted);padding:0 12px;margin:34px 0 11px}.folder-item{padding-top:10px;padding-bottom:10px}.folder-dot{width:8px;height:8px;margin:0 6px 0 4px;border-radius:3px;background:#bf9a72}.folder-dot.work{background:#88a8bc}.folder-dot.ideas{background:#b09cb9}.sidebar-bottom{margin-top:auto;padding-top:30px}.local-card{display:flex;gap:9px;padding:14px 10px 15px;border:1px solid var(--line);border-radius:9px}.local-card svg{width:17px;height:17px;color:var(--accent);margin-top:1px}.local-card strong{font-size:12px;font-weight:550}.local-card p{font-size:12px;line-height:1.65;color:var(--muted);margin:5px 0 0}.sidebar-tools{display:flex;align-items:center;justify-content:space-between;margin-top:16px}.text-button{display:inline-flex;gap:8px;align-items:center;font-size:13px;color:var(--muted);padding:8px 2px}.text-button:hover{color:var(--accent)}.text-button svg{width:17px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:7px;flex:none;color:var(--muted)}.icon-button:hover{color:var(--accent);background:var(--hover)}
.workspace{display:flex;flex-direction:column;min-width:0;min-height:0}.workspace-header{height:74px;flex:none;border-bottom:1px solid var(--line);padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--surface)}.breadcrumb{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:14px}.breadcrumb strong{font-weight:500;color:var(--ink)}.breadcrumb>span{color:#bcc8c0}.header-date{font-size:13px;color:var(--muted)}.workspace-content{display:grid;grid-template-columns:310px minmax(0,1fr);flex:1;min-height:0}.note-list-pane{display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--line);padding:32px 18px 0;min-height:0;min-width:0}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:0 5px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.65px;color:var(--muted)}.list-heading h1{font-size:23px;letter-spacing:-.6px;font-weight:600;line-height:1.3;margin:10px 0 22px}.list-heading .icon-button{align-self:flex-end;margin-bottom:19px}.search{display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:9px 10px;min-height:42px}.search>svg{width:17px;color:var(--muted)}.search input{min-width:0;width:100%;border:0;background:transparent;font-size:13px;outline:none}.search input:focus-visible{outline:none}.search:focus-within{border-color:var(--accent)}.search input::placeholder{color:var(--muted)}.search kbd{font-size:11px;min-width:17px}.list-meta{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);padding:23px 5px 12px}.note-list{overflow:auto;min-height:0;padding:0 0 12px}.note-card{display:block;width:100%;text-align:left;padding:18px 16px 15px;border:1px solid var(--line);background:var(--surface);border-radius:9px;margin-bottom:10px;transition:background .15s,border-color .15s}.note-card:hover{background:var(--hover)}.note-card.selected{background:var(--accent-soft);border-color:#bdd5c7}.dark .note-card.selected{border-color:#527c61}.card-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}.card-folder{font-size:10px;letter-spacing:.3px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}.card-folder .folder-dot{width:6px;height:6px;margin:0}.card-top>.card-star{margin-left:auto;width:13px;height:13px;color:var(--accent);fill:var(--accent)}.note-card h2{font-size:14px;font-weight:600;letter-spacing:-.1px;margin:0 0 8px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.note-card p{font-size:12px;line-height:1.75;color:var(--muted);margin:0 0 16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:42px;overflow-wrap:anywhere}.card-bottom{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px}.card-bottom svg{width:14px;height:14px}.list-footer{font-size:10px;color:var(--muted);padding:16px 5px 20px;margin-top:auto;flex:none;line-height:1.5}.list-empty{text-align:center;margin:50px 5px}.list-empty>svg{height:30px;width:30px;color:var(--muted)}.list-empty h2{font-size:17px;font-weight:550}.list-empty p{font-size:14px;color:var(--muted);line-height:1.7}
.editor-pane{min-width:0;min-height:0;display:flex;background:var(--paper)}.editor{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0}.editor-top{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:10px;flex:none}.folder-select{display:inline-flex;align-items:center;gap:7px;color:var(--muted)}.folder-select>svg{height:16px;width:16px}.folder-select select{appearance:none;border:0;background:var(--bg);color:var(--muted);border-radius:5px;padding:7px 25px 7px 9px;font-size:12px;cursor:pointer;max-width:140px}.folder-select .chevron{width:14px;height:14px;margin-left:-30px;pointer-events:none}.editor-actions{display:flex;gap:5px}.editor-actions .icon-button svg{height:17px;width:17px}.icon-button.starred{color:var(--accent)}.icon-button.starred svg{fill:var(--accent)}.editor-paper{padding:26px 52px 24px;max-width:840px;width:100%;margin:0 auto;flex:1;display:flex;flex-direction:column;overflow:auto;min-height:0}.document-meta{display:flex;gap:9px;align-items:center;font-size:11px;color:var(--muted);margin:0 0 14px}.meta-separator{color:#b2bdb5}.note-title{width:100%;padding:6px 0 16px;margin:0;border:0;background:none;font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(25px,2.7vw,39px);letter-spacing:-1.5px;color:var(--ink);height:78px;flex:none;min-width:0}.note-title::placeholder{color:var(--muted)}.note-title:focus-visible{outline:none}.format-toolbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 0;display:flex;align-items:center;justify-content:space-between;flex:none;margin:0 0 23px;gap:5px}.format-buttons{display:flex;align-items:center;gap:3px}.format-buttons button{width:31px;height:31px;border-radius:4px;font-family:Georgia,serif;font-size:17px;color:var(--muted);display:inline-flex;align-items:center;justify-content:center}.format-buttons button:hover{background:var(--hover);color:var(--accent)}.format-buttons button svg{height:17px;width:17px}.format-buttons button>span{font:11px sans-serif;align-self:center;padding-top:5px}.toolbar-divider{height:17px;width:1px;background:var(--line);margin:0 7px}.preview-button{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);padding:6px 8px;border-radius:5px}.preview-button svg{width:15px;height:15px}.preview-button:hover,.preview-button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}.note-body{width:100%;flex:1;min-height:260px;border:0;resize:none;background:none;padding:0;color:var(--ink);font-size:15px;line-height:1.95;letter-spacing:.1px;overflow-wrap:anywhere;tab-size:2}.note-body:focus-visible{outline:none}.note-body::placeholder{color:var(--muted)}.note-preview{font-size:15px;line-height:1.95;overflow-wrap:anywhere;min-height:260px;flex:1}.note-preview p{margin:0 0 1em;white-space:pre-wrap}.note-preview h1,.note-preview h2,.note-preview h3{font-family:Georgia,serif;font-weight:400;line-height:1.4;margin:1em 0 .5em;letter-spacing:-.4px}.note-preview h1:first-child,.note-preview h2:first-child{margin-top:0}.note-preview h1{font-size:30px}.note-preview h2{font-size:24px}.note-preview h3{font-size:20px}.note-preview ul,.note-preview ol{padding-left:23px;margin:0 0 1em}.note-preview blockquote{border-left:3px solid var(--accent);padding:7px 16px;margin:12px 0;background:var(--accent-soft);color:var(--accent)}.note-preview code{background:var(--bg);padding:3px 5px;border-radius:3px;font-size:13px;white-space:pre-wrap}.note-preview pre{background:var(--bg);padding:16px;overflow:auto}.note-preview hr{border:0;border-top:1px solid var(--line);margin:24px 0}.editor-footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:15px 32px;flex:none;gap:12px;color:var(--muted);font-size:11px}.save-status{display:inline-flex;align-items:center;gap:7px}.save-status svg{width:13px;height:13px;color:var(--accent)}.save-status.error,.save-status.error svg{color:var(--danger)}.trash-banner{margin-top:22px;border:1px solid var(--line);padding:12px;border-radius:6px;font-size:13px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:10px}.trash-banner .text-button{color:var(--accent);font-weight:600}.editor-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;width:100%;padding:30px}.empty-art{width:85px;height:95px;border:1px solid var(--line);border-radius:10px 30px 10px 10px;display:grid;place-items:center;margin-bottom:28px;transform:rotate(-8deg);background:var(--bg)}.empty-art svg{width:44px;height:44px;color:var(--accent);stroke-width:1}.editor-empty h2{font-family:Georgia,serif;font-size:34px;font-weight:400;line-height:1.35;letter-spacing:-.8px;margin:17px 0}.editor-empty p{font-size:14px;color:var(--muted);line-height:1.9;margin:0 0 25px}.editor-empty .primary-button{font-size:13px}
.modal{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:30px;width:min(470px,calc(100% - 32px));max-height:calc(100dvh - 40px);box-shadow:var(--shadow);overflow:auto}.modal::backdrop{background:#14271f70;backdrop-filter:blur(4px)}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:25px}.modal h2{font-family:Georgia,serif;font-size:35px;font-weight:400;letter-spacing:-1px;margin:10px 0 15px}.modal>p{font-size:14px;color:var(--muted);line-height:1.8}.about-note{padding:16px;border-radius:8px;background:var(--bg);margin:22px 0}.about-note strong{font-size:13px;font-weight:600}.about-note p{font-size:13px;color:var(--muted);line-height:1.8;margin:7px 0 0}.backup-buttons{display:flex;gap:10px;flex-wrap:wrap}.secondary-button{border:1px solid var(--line);border-radius:7px;padding:10px 12px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px}.secondary-button:hover{border-color:var(--accent);color:var(--accent)}.secondary-button svg{width:16px;height:16px}.modal .help-small{font-size:11px;line-height:1.9;margin-top:23px}.version{font-size:11px;color:var(--muted)}.confirm-modal h2{font-size:26px}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.danger-button{background:var(--danger);color:var(--surface);font-size:13px;padding:10px 17px;border-radius:7px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 20px;border:1px solid var(--line);box-shadow:var(--shadow);background:var(--ink);color:var(--surface);font-size:13px;border-radius:9px;max-width:calc(100% - 30px);z-index:20;line-height:1.6}.noscript{position:fixed;inset:0;display:grid;place-items:center;background:var(--surface);padding:30px;z-index:100}.error-page{min-height:100dvh;display:grid;place-items:center;padding:30px}.error-page main{max-width:600px}.error-page h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(32px,6vw,55px);line-height:1.2;letter-spacing:-1px}.error-page p{color:var(--muted);line-height:1.8}.error-page .primary-button{display:inline-flex;margin-top:20px}.back-button,.mobile-new{display:none}
@media(min-width:1500px){.app{grid-template-columns:260px minmax(0,1fr)}.workspace-content{grid-template-columns:340px minmax(0,1fr)}.sidebar{padding-left:25px;padding-right:25px}.editor-paper{padding-top:35px}}
@media(max-width:1150px){.app{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:28px 14px 18px}.brand{font-size:24px;gap:9px;margin-left:0}.brand-caption{font-size:10px}.brand-mark{width:35px;height:38px}.workspace-content{grid-template-columns:270px minmax(0,1fr)}.editor-paper{padding:20px 30px}.editor-top{padding:0 22px}.workspace-header{padding:0 24px}.local-card{padding:12px 7px}.local-card strong{font-size:11px}.local-card p{font-size:11px}.note-list-pane{padding-top:27px}.header-date{font-size:11px}.breadcrumb{font-size:12px}}
@media(max-width:850px){.app{grid-template-columns:190px minmax(0,1fr)}.workspace-content{grid-template-columns:240px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand{font-size:22px}.brand-caption{font-size:9px}.brand-mark{width:31px;height:35px}.new-button{font-size:13px}.new-button kbd{display:none}.note-list-pane{padding-left:12px;padding-right:12px}.editor-paper{padding:16px 22px}.editor-top{padding:0 16px}.format-buttons{gap:0}.format-buttons button{width:25px}.toolbar-divider{margin:0 3px}.preview-button>span{display:none}.header-date{display:none}.editor-footer{padding-left:16px;padding-right:16px}.folder-select select{max-width:105px}.editor-actions{gap:0}.editor-actions .icon-button{width:30px}.list-heading h1{font-size:21px}.note-title{letter-spacing:-.8px;font-size:27px}}
@media(max-width:680px){.app{display:flex;flex-direction:column;min-height:100dvh;height:100dvh}.sidebar{position:relative;flex:none;padding:18px 16px 9px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:25px;gap:10px;margin:0 0 18px;width:fit-content}.brand-mark{width:35px;height:38px}.brand-caption{font-size:11px}.new-button,.folder-heading,.folders,.local-card{display:none}.main-nav{margin:0;display:flex;flex-direction:row;gap:4px}.nav-item{width:auto;flex:1;min-height:40px;padding:8px;gap:6px;font-size:12px;justify-content:center}.nav-item svg{width:16px;height:16px}.nav-count{font-size:11px;min-width:16px;margin-left:0}.sidebar-bottom{position:absolute;top:19px;right:15px;margin:0;padding:0}.sidebar-tools{margin:0;gap:4px}.sidebar-tools .text-button{font-size:0;width:34px;justify-content:center}.sidebar-tools .text-button svg{width:20px;height:20px}.workspace{flex:1}.workspace-header{height:53px;padding:0 20px}.breadcrumb{font-size:12px;gap:10px}.mobile-new{display:inline-flex;background:var(--accent);color:var(--surface);width:32px;height:32px}.mobile-new:hover{background:var(--accent);color:var(--surface)}.workspace-content{display:flex;flex:1}.note-list-pane{width:100%;padding:24px 20px 0;border:0;flex:1}.list-heading{padding:0}.list-heading h1{font-size:26px;margin-top:9px;margin-bottom:23px}.list-heading .icon-button{margin-bottom:22px}.eyebrow{font-size:10px}.search{min-height:45px}.search input{font-size:16px}.search kbd{display:none}.list-meta{font-size:12px;padding-top:22px}.note-card{padding:17px 18px;margin-bottom:12px}.note-card h2{font-size:16px}.note-card p{font-size:14px;min-height:0;-webkit-line-clamp:2;margin-bottom:15px}.card-folder,.card-bottom{font-size:11px}.list-footer{font-size:11px}.editor-pane{display:none;width:100%;flex:1}.app.note-open .editor-pane{display:flex}.app.note-open .note-list-pane{display:none}.app.note-open .workspace-header{display:none}.editor-top{height:62px;padding:0 16px;border-bottom:1px solid var(--line);justify-content:flex-start;gap:12px}.back-button{display:inline-flex}.editor-actions{margin-left:auto;gap:3px}.editor-actions .icon-button{width:32px;height:36px}.folder-select select{font-size:13px;max-width:120px}.editor-paper{padding:25px 24px 20px}.document-meta{font-size:11px;margin-bottom:8px}.note-title{font-size:30px;letter-spacing:-.8px;height:70px}.note-body,.note-preview{font-size:16px;line-height:1.9;min-height:200px}.format-toolbar{margin-bottom:21px;padding:8px 0}.format-buttons{gap:4px}.format-buttons button{height:32px;width:30px}.preview-button{font-size:12px}.preview-button>span{display:inline}.editor-footer{font-size:11px;padding:13px 20px;padding-bottom:max(13px,env(safe-area-inset-bottom))}.editor-empty{min-height:350px}.modal{padding:25px}.modal>p{font-size:15px}.about-note p{font-size:14px}.backup-buttons .secondary-button{font-size:13px}.toast{bottom:max(20px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Keep editable text and frequently used controls readable at normal zoom. */
.note-body,.note-preview{font-size:16px}.search input,.folder-select select,.preview-button,.secondary-button{font-size:14px}.modal>p{font-size:16px}
.note-card p{font-size:14px;line-height:1.65;min-height:46px}.card-folder,.card-bottom{font-size:12px}.breadcrumb{font-size:14px}
@media(max-width:680px){.breadcrumb{font-size:12px}.card-folder,.card-bottom{font-size:11px}.note-card p{min-height:0}}
