*{box-sizing:border-box}html{font-family:system-ui,Microsoft JhengHei,sans-serif;color:#30332f;background:#fff;--side:#f6f6f3;--border:#deded9;--accent:#287b59}html[data-theme=dark]{color-scheme:dark;color:#eee;background:#202120;--side:#292b29;--border:#454545}@media(prefers-color-scheme:dark){html[data-theme=system]{color-scheme:dark;color:#eee;background:#202120;--side:#292b29;--border:#454545}}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,input,select{border:1px solid var(--border);border-radius:6px;padding:9px;background:transparent}button{cursor:pointer}button:hover,.active{background:#829a8429}button:disabled{opacity:.4;cursor:default}.primary{background:var(--accent);color:#fff;border:0}.app{display:flex;min-height:100vh}aside{width:250px;background:var(--side);padding:16px;display:flex;flex-direction:column;gap:7px;height:100vh;overflow:auto;position:sticky;top:0;flex-shrink:0}aside h3{margin:4px 0}aside button,.notes button{text-align:left;border:0}.switch,.toolbar,.line{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.switch button{flex:1;text-align:center}.tree{display:flex;flex-direction:column}.notes{width:220px;border-right:1px solid var(--border);padding:15px;display:flex;flex-direction:column;gap:8px}.main{flex:1;min-width:0}header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-bottom:1px solid var(--border);font-size:13px}article{max-width:850px;margin:40px auto;padding:0 28px}.title{font-size:36px;font-weight:700;border:0;width:100%;margin:20px 0}.block{display:flex;align-items:flex-start;gap:8px;margin:8px 0}.block textarea{width:100%;resize:vertical;background:transparent;border:1px solid transparent;padding:8px;min-height:38px}.block textarea:focus{border-color:var(--border)}.heading_1 textarea{font-size:25px;font-weight:700}.quote textarea{border-left:3px solid #888}.code textarea,pre{font-family:monospace;background:var(--side);white-space:pre-wrap;overflow-wrap:anywhere}.hint,small{opacity:.7}.message{padding:12px;background:#e6a23c22;overflow-wrap:anywhere}.login{min-height:100vh;display:grid;place-content:center;padding:20px;text-align:center}.login form{display:grid;gap:12px;width:min(360px,90vw)}.logo{background:#263c32;color:#fff;font-size:40px;border-radius:16px;width:65px;margin:auto}.line{padding:12px 0;border-bottom:1px solid var(--border)}hr{border:0;border-top:1px solid var(--border);width:100%}@media(max-width:760px){aside{display:none;position:fixed;z-index:3;width:260px;box-shadow:0 0 0 100vmax #0004}aside.show{display:flex}.notes{width:125px;padding:6px;font-size:12px}article{padding:0 14px;margin:20px auto}.title{font-size:26px}header{padding:8px}.toolbar button{font-size:12px}}
