
:root{--ink:#30322f;--muted:#92958f;--line:#eaece7;--paper:#fff;--font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:14px var(--font);-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:hover{background:#eeefeb}input{border:1px solid var(--line);border-radius:5px;padding:10px;background:#fff;min-width:0}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #8b9782;outline-offset:3px}[hidden]{display:none!important}button,summary{border-radius:5px}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;display:block}.icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;color:#8b9086;flex-shrink:0}.icon:hover{color:#3c4437}#workspace{display:grid;grid-template-columns:234px minmax(0,1fr);height:100dvh;overflow:hidden}#sidebar{background:#f7f8f5;border-right:1px solid #eeefea;display:flex;flex-direction:column;min-height:0}.list-header{height:72px;padding:0 17px 0 22px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}.list-header>div{display:flex;gap:1px}.collection-button{padding:7px 0;font-size:14px;max-width:130px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left}.collection-button span{color:#a1a79b;margin-left:6px}#search-wrap{padding:0 19px 12px}#search{width:100%;font-size:12px;padding:9px 10px;background:#fff;border-color:#e5e8df}#note-list{flex:1;overflow:auto;padding:0 12px 20px}.note-item{display:block;width:100%;text-align:left;padding:13px 12px;margin:2px 0;border-radius:5px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px;color:#70776a;line-height:1.6}.note-item.active{background:#eaece6;color:#3e4835}.note-item .pin{display:inline-block;width:4px;height:4px;background:#9ca48e;border-radius:50%;margin:0 7px 3px 0}.list-empty{font-size:12px;color:#a1a796;padding:14px 12px}#sidebar footer{padding:12px 18px 18px}main{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.topbar{height:72px;flex-shrink:0;display:flex;align-items:center;padding:0 26px;gap:16px}.topbar #more{margin-left:auto}#save-state{font-size:11px;color:#8d9683}#save-state.error{color:#a3644e}#save-state:empty{display:none}#document{overflow:auto;flex:1;min-height:0;scrollbar-gutter:stable;padding:28px 42px 18vh}.page{max-width:700px;width:100%;margin:0 auto}#note-title{border:0;border-radius:0;outline:0;background:none;padding:0;width:100%;font-size:30px;font-weight:550;line-height:1.6;letter-spacing:-.5px;margin-bottom:27px;color:#333730}#note-title::placeholder{color:#afb5a6;font-weight:400}#empty-state{flex:1;display:grid;place-items:center;padding-bottom:15vh}.quiet{color:#7e8971;font-size:13px;padding:10px 12px}.solid{background:#46543c;color:#fff;padding:10px 17px;border-radius:5px;font-size:13px}.solid:hover{background:#35442b}#workspace.list-hidden{grid-template-columns:1fr}#workspace.list-hidden #sidebar{display:none}
/* The editor is the page. No tabs, preview pane, fixed toolbar or footer. */
#rich-editor .toastui-editor-defaultUI{border:0;border-radius:0;font-family:var(--font);min-height:0!important;height:auto!important}#rich-editor .toastui-editor-toolbar,#rich-editor .toastui-editor-mode-switch,#rich-editor .toastui-editor-md-container{display:none!important}#rich-editor .toastui-editor-main{height:auto!important;min-height:0!important}#rich-editor .toastui-editor-ww-container{background:transparent;overflow:visible!important}#rich-editor .toastui-editor-ww-container .toastui-editor-contents{padding:0!important;min-height:45vh;font-family:var(--font);font-size:17px;color:#3e413b;line-height:1.95;word-break:normal;overflow-wrap:anywhere}#rich-editor .ProseMirror{outline:none;caret-color:#6b7b59}#rich-editor .toastui-editor-contents p{margin:0 0 15px;color:inherit;line-height:1.95}#rich-editor .toastui-editor-contents h1,#rich-editor .toastui-editor-contents h2,#rich-editor .toastui-editor-contents h3,#rich-editor .toastui-editor-contents h4{border:0;color:#373e31;line-height:1.6;margin:27px 0 12px;font-weight:550;padding:0}#rich-editor .toastui-editor-contents h1{font-size:26px}#rich-editor .toastui-editor-contents h2{font-size:22px}#rich-editor .toastui-editor-contents h3{font-size:19px}#rich-editor .toastui-editor-contents h4{font-size:17px}#rich-editor .toastui-editor-contents>:first-child{margin-top:0}#rich-editor .toastui-editor-contents ul,#rich-editor .toastui-editor-contents ol{margin:12px 0 20px;padding-left:24px}#rich-editor .toastui-editor-contents li{line-height:1.95;color:inherit}#rich-editor .toastui-editor-contents li p{margin:0}#rich-editor .toastui-editor-contents blockquote{border-left:2px solid #d9decf;color:#859279;margin:24px 0;padding:0 18px}#rich-editor .toastui-editor-contents pre{background:#f5f7ef;border-radius:5px;padding:18px;overflow:auto;margin:20px 0}#rich-editor .toastui-editor-contents code{font-size:13px;background:#f2f5e9;color:#526841}#rich-editor .toastui-editor-contents pre code{background:none}#rich-editor .toastui-editor-contents img{max-width:100%;height:auto;border-radius:3px}#rich-editor .toastui-editor-contents a,.reading a{color:#60784b;text-underline-offset:4px}#rich-editor .toastui-editor-contents table{max-width:100%;margin:20px 0;border-color:#dfe5d6;font-size:14px}#rich-editor .toastui-editor-contents th{background:#f1f4e9;color:#526542;font-weight:500;border-color:#dfe5d6}#rich-editor .toastui-editor-contents td{border-color:#dfe5d6}#rich-editor .toastui-editor-contents hr{border:0;border-top:1px solid var(--line);margin:28px 0}#rich-editor .toastui-editor-popup{box-shadow:0 8px 24px #27341c15;border:1px solid var(--line)}
#conflict-banner{padding:12px 25px;background:#faf3e9;color:#9e7650;font-size:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}#conflict-banner button{text-decoration:underline}.reading{font-size:16px;line-height:1.9;overflow-wrap:anywhere}.reading img{max-width:100%}.reading pre{overflow:auto;white-space:pre-wrap;background:#f4f6ee;padding:15px}.reading table{border-collapse:collapse;width:100%}.reading th,.reading td{border:1px solid var(--line);padding:8px}.reading blockquote{border-left:2px solid #dce2d2;padding-left:15px;color:#839273}
dialog{width:min(420px,calc(100vw - 36px));max-height:85dvh;overflow:auto;padding:25px;border:1px solid #e5e9df;border-radius:9px;box-shadow:0 14px 60px #28311e17;color:var(--ink);background:#fff}dialog::backdrop{background:#27331c16}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.dialog-heading h2{font-size:17px;font-weight:500;margin:0}dialog label{display:block;font-size:12px;color:#7f8d70;margin:18px 0}dialog label input{display:block;width:100%;margin-top:8px}dialog .solid{margin-top:6px}dialog hr{border:0;border-top:1px solid var(--line);margin:7px 0}.menu{position:fixed;inset:60px 22px auto auto;margin:0;width:182px;padding:7px;border-radius:7px;box-shadow:0 8px 30px #25321b12}.menu::backdrop{background:transparent}.menu>button{display:block;width:100%;text-align:left;padding:10px 12px;font-size:12px;color:#697a57}.format-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.format-grid button{padding:15px 5px;border:1px solid var(--line);font-size:12px}.collection-options{display:flex;flex-direction:column;gap:3px}.collection-options:not(:empty)+.collection-options:not(:empty){border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.collection-options button{text-align:left;padding:10px 12px;color:#67785a;font-size:13px}#backup-details{font-size:12px;line-height:1.9;white-space:pre-line;color:#859576;margin-bottom:20px}#settings-dialog>.quiet{display:block;width:100%;text-align:left}details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:12px 0;padding:16px 12px}summary{cursor:pointer;font-size:13px;color:#7b8a6a}#password-message,#login-error{font-size:12px;color:#a16b4a;line-height:1.7;margin:10px 0}#history-list button{display:block;width:100%;padding:12px 8px;text-align:left;font-size:12px;color:#7a8b67;border-bottom:1px solid var(--line)}#history-preview{margin:20px 0}#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#46553c;color:white;padding:12px 20px;border-radius:6px;font-size:12px;z-index:100;max-width:90vw;line-height:1.6}
#login{min-height:100dvh;display:grid;place-items:center;padding:30px}#login form{width:280px;max-width:100%}#login h1{font-size:24px;font-weight:500;margin:0 0 40px}#login label{display:block;font-size:12px;color:#8d997f;margin:22px 0}#login input{width:100%;display:block;margin-top:9px;padding:12px}#login .solid{width:100%;margin-top:10px}
@media(min-width:1600px){#workspace{grid-template-columns:250px minmax(0,1fr)}#workspace.list-hidden{grid-template-columns:1fr}#document{padding-top:44px}}
@media(max-width:900px){#workspace{grid-template-columns:210px minmax(0,1fr)}#document{padding:24px 32px 18vh}.topbar{padding:0 22px}#note-title{font-size:27px}.list-header{padding-left:20px;padding-right:12px}#rich-editor .toastui-editor-ww-container .toastui-editor-contents{font-size:16px}}
@media(max-width:600px){#workspace{display:block}#sidebar{height:100dvh;border:0}main{height:100dvh;display:none}#workspace.note-open #sidebar{display:none}#workspace.note-open main{display:flex}#workspace.list-hidden #sidebar{display:none}.list-header{height:76px;padding:0 22px}.collection-button{font-size:19px;max-width:200px}.list-header .icon{width:39px}#note-list{padding:0 18px 20px}.note-item{padding:16px 12px;font-size:15px}#search-wrap{padding:0 27px 15px}.topbar{height:62px;padding:0 17px}#document{padding:20px 26px 18vh;scrollbar-gutter:auto}#note-title{font-size:27px;margin-bottom:24px}#rich-editor .toastui-editor-ww-container .toastui-editor-contents{font-size:16px;line-height:1.9}.menu{right:18px;top:53px}#rich-editor .toastui-editor-contents table{font-size:12px}#rich-editor .toastui-editor-contents td,#rich-editor .toastui-editor-contents th{padding:5px}dialog{padding:22px}.menu{padding:7px}}

[data-icon="more"] svg{stroke-width:3}

/* Sidebar actions stay compact, with no collection heading. */
.list-header{justify-content:flex-start;gap:6px;padding-left:18px}
#sidebar footer{display:flex;align-items:center;gap:6px}
#trash[aria-pressed="true"]{background:#eaece6;color:#46543c}
#list-context{display:flex;align-items:center;gap:5px;padding:0 18px 10px;color:#7c8673;font-size:12px}
#context-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.folder-item{display:flex;gap:9px;align-items:center}
.folder-item svg{width:16px;height:16px;flex-shrink:0;color:#939c88}
.folder-item span{overflow:hidden;text-overflow:ellipsis}
#folder-error{font-size:12px;color:#a16b4a;line-height:1.7;margin:10px 0}
@media(max-width:600px){.list-header{justify-content:flex-start;padding-left:22px}}

/* Controls appear only where the user is working. */
#archive[aria-pressed="true"]{background:#eaece6;color:#46543c}
#note-context,#folder-context{position:fixed;z-index:50;min-width:154px;padding:5px;background:#fff;border:1px solid #e9ece5;border-radius:8px;box-shadow:0 7px 25px #27341c16}
#note-context button,#folder-context button{display:block;width:100%;padding:10px 13px;text-align:left;font-size:13px;color:#68745f}
#selection-tools{position:fixed;z-index:40;display:flex;padding:4px;max-width:calc(100vw - 16px);border:1px solid #e6e9e0;border-radius:7px;background:#fff;box-shadow:0 5px 20px #27341c14}
#selection-tools button{min-width:31px;height:32px;padding:0 7px;color:#5d6856;font-size:13px}
#selection-tools button:hover{background:#eef1e9}
#sidebar .note-item{touch-action:pan-y;-webkit-touch-callout:none;user-select:none}
@media(max-width:600px){#selection-tools button{min-width:29px;padding:0 6px}#note-context button,#folder-context button{padding:13px}}

.note-item.dragging{opacity:.45}
.folder-item.drop-target,#back-all.drop-target{background:#e8ede2;box-shadow:inset 0 0 0 1px #a8b49c}
.folder-hint{font-size:13px;color:#858e7c;line-height:1.7}
#folder-delete-name{overflow-wrap:anywhere}
#folder-delete-error{font-size:12px;color:#a16b4a;margin:10px 0}

#note-list.folder-tree{display:flex;flex-direction:column}
.folder-group{flex-shrink:0}
.folder-children{margin-left:19px;border-left:1px solid #e8ece3;padding-left:5px}
.folder-empty{padding:8px 12px 12px;font-size:12px;color:#a0a799}
.folder-item[aria-expanded="true"]{color:#56644b}
.root-notes{flex:1;min-height:72px;border-radius:5px}
.root-drop-hint{display:none;text-align:center;padding:18px 8px;font-size:12px;color:#8a957e}
.moving-from-folder .root-drop-hint{display:block}
.folder-group.drop-target>.folder-item,.root-notes.drop-target{background:#e8ede2;box-shadow:inset 0 0 0 1px #a8b49c}

.note-item.insert-before{box-shadow:inset 0 2px #96a58b}
.note-item.insert-after{box-shadow:inset 0 -2px #96a58b}
