:root{--paper:#f7f6f2;--ink:#29382f;--muted:#8c938b;--green:#355749;--line:#e5e7de;--soft:#e9eee6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,textarea{font:inherit}button,a,label[for=photo-input]{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible{outline:3px solid #9bbb9b;outline-offset:4px}input:focus,textarea:focus{outline:2px solid #b7c9b4;outline-offset:2px}button{border:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#8a9789;font-weight:600}.brand-mark{width:42px;height:44px;display:grid;place-items:center;background:var(--green);color:#fff;font-family:serif;font-size:25px;border-radius:13px 4px 13px 4px}.sidebar{width:224px;position:fixed;inset:0 auto 0 0;background:#efefe8;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;font-size:25px;letter-spacing:3px;font-family:serif;font-weight:600}.brand small{display:block;font:8px/1.8 sans-serif;letter-spacing:1.4px;color:#8d9789;margin-top:4px}.sidebar-section{color:#929b8d;font-size:11px;margin:58px 12px 17px;letter-spacing:2px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:12px 13px;border-radius:7px;background:transparent;color:var(--green);text-align:left}.nav-item.active{background:#dfe6d9}.nav-item>span:first-child{font-size:19px}.badge{margin-left:auto;font-size:11px;background:#f3f5ed;padding:0 7px;border-radius:5px}.sidebar-bottom{margin-top:auto;padding:20px 12px 0}.plant{font-size:63px;line-height:1.4;color:#9daa8e;font-family:serif}.sidebar-bottom p{color:#919b89;font-size:12px;line-height:2}.storage-label{font-size:10px;color:#8d9685;display:block;margin-top:25px}.storage-label i{display:inline-block;width:6px;height:6px;background:#8aab83;border-radius:50%;margin-right:5px}.logout{background:none;color:#8d9685;font-size:11px;padding:16px 0 0}main{margin-left:224px}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between;padding:0 48px;border-bottom:1px solid var(--line);color:#8d9588;font-size:11px}.workspace{max-width:1350px;padding:0 48px;margin:auto}.hero{display:flex;align-items:center;justify-content:space-between;padding:53px 0 47px;gap:20px}.hero .eyebrow{margin:0 0 12px}.hero h1{font-family:"Songti SC",SimSun,serif;font-size:35px;font-weight:500;letter-spacing:3px;margin:0}.hero h1 span{color:#a5b292}.hero .muted{font-size:12px;margin-bottom:0}.primary{display:inline-flex;gap:13px;justify-content:center;align-items:center;background:var(--green);color:#fff;border:1px solid var(--green);padding:12px 23px;border-radius:6px;box-shadow:0 3px 9px #35574912;font-size:13px}.primary:hover{background:#294a3b}.primary>span{font-size:19px}.section-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:19px;margin-bottom:25px}.section-heading h2{font-size:15px;font-weight:500;margin:0}.section-heading h2 span{font-size:11px;color:#9aa18f;margin-left:12px;font-weight:400}.section-heading>span{font-size:10px;color:#9aa18f}.entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.entry-card{display:block;text-align:left;background:#fffefa;border:1px solid #e6e7de;border-radius:10px;overflow:hidden;color:inherit;padding:0;transition:transform .18s,box-shadow .18s}.entry-card:hover{transform:translateY(-3px);box-shadow:0 12px 27px #29382f09}.card-photo{display:block;width:100%;height:195px;object-fit:cover}.card-body{padding:12px 22px 10px}.card-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;line-height:1.2;color:#98a08f}.mood-label{font-size:10px;color:#7e9074;background:#f0f3e9;padding:3px 9px;border-radius:4px}.card-body h2{font:500 21px/1.35 "Songti SC",SimSun,serif;margin:6px 0 4px;overflow-wrap:anywhere}.card-excerpt{color:#929589;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0}.card-foot{border-top:1px solid #f0f0e9;margin-top:8px;padding-top:6px;display:flex;justify-content:space-between;align-items:center;line-height:1.2;font-size:12px;color:#a0a693}.card-foot span:last-child{font-size:15px;color:#819575}.empty-state{background:#f0f1e9;border:1px dashed #d8decd;border-radius:10px;text-align:center;padding:58px 20px 64px}.empty-art{display:inline-grid;place-items:center;font-size:47px;width:90px;height:90px;border-radius:50%;background:#e3e8d9;color:#8a9b75;transform:rotate(-9deg);margin-bottom:15px}.empty-state h2{font:400 25px serif;letter-spacing:2px}.empty-state .muted{font-size:12px;margin-bottom:28px}.loading{text-align:center;padding:60px;color:#9aa18f}.load-more{display:block;margin:30px auto;background:#e9ede2;color:#73826a;padding:10px 27px;border-radius:5px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:48px;padding:22px 0 32px;color:#a2a897;font-size:10px}footer span{letter-spacing:2px}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 10% 90%,#e0e6d8 0,transparent 60%),var(--paper)}.login-card{width:100%;max-width:440px;padding:40px 35px}.login-card>.brand-mark{margin-bottom:34px;width:54px;height:57px;font-size:31px}.login-card h1{font-family:"Songti SC",serif;font-size:29px;letter-spacing:2px;font-weight:500}.login-card .muted{font-size:13px;line-height:2}.login-card form{margin-top:33px}.login-card label{display:block;font-size:12px;margin-bottom:8px;color:#758170}.login-card input{width:100%;background:#fffefa;border:1px solid #d9dfce;border-radius:6px;padding:13px 15px}.login-foot{margin-top:33px;text-align:center;color:#9fa993;font-size:10px;letter-spacing:3px}.full{width:100%;justify-content:space-between}.error{color:#b35f4d;font-size:12px;min-height:20px}.error-panel{background:#f5e8dd;padding:15px;border-radius:6px;display:flex;align-items:center;justify-content:space-between}.text-button{background:none;color:var(--green);padding:5px 10px;font-size:12px}.icon-button{background:transparent;color:#8b9585;font-size:29px;line-height:1;width:38px;height:38px;border-radius:50%}.icon-button:hover{background:#e8ece0}dialog{border:1px solid #e4e7dc;border-radius:14px;background:#fffefa;color:var(--ink);padding:32px;width:740px;max-width:calc(100% - 32px);max-height:90dvh;overscroll-behavior:contain}dialog::backdrop{background:#24362966;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.dialog-heading .eyebrow{margin:0 0 8px}.dialog-heading h2{font-family:"Songti SC",serif;font-size:24px;letter-spacing:1px;margin:0;font-weight:500}.editor-meta{display:flex;align-items:start;gap:28px;background:#f6f7f0;padding:16px;border-radius:6px;margin-bottom:20px}.editor-meta>label,.editor-meta legend{font-size:10px;color:#8f9b82}.editor-meta input[type=date]{display:block;border:0;background:transparent;color:var(--green);font-size:12px;padding:6px 0;max-width:140px}fieldset{border:0;padding:0;margin:0}.moods{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.moods label{cursor:pointer}.moods input{position:absolute;opacity:0;pointer-events:none}.moods span{display:block;padding:4px 7px;font-size:10px;border:1px solid transparent;color:#8b957e;border-radius:5px}.moods input:checked+span{background:#e0e9d6;border-color:#cddbc0;color:#49623a}.moods input:focus-visible+span{outline:2px solid #6a8657}.title-input{display:block;border:0;border-bottom:1px solid var(--line);padding:14px 0;font:500 25px/1.5 "Songti SC",serif;color:var(--ink);width:100%;background:transparent;border-radius:0}input::placeholder,textarea::placeholder{color:#b1b6a9}textarea{resize:vertical;min-height:230px;width:100%;border:0;padding:24px 0 12px;line-height:2.1;font-size:14px;color:var(--ink);background:transparent}.writing-count{display:flex;justify-content:space-between;font-size:10px;color:#a2aa98;margin-bottom:24px}.photo-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.photo-button{background:#edf1e6;border:1px solid #dfe6d5;padding:7px 13px;border-radius:5px;color:#657e55;font-size:12px;cursor:pointer}#photo-hint{font-size:10px;color:#a2aa98}.photo-previews{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.preview{position:relative}.preview img{width:90px;height:90px;object-fit:cover;border-radius:6px}.preview button{position:absolute;right:-5px;top:-7px;width:23px;height:23px;border-radius:50%;background:#506247;color:white;font-size:16px}.editor-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:20px}.editor-footer>span{font-size:10px;color:#a1aa95}.reader-actions{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#96a18b;margin-bottom:25px}.reader-actions>div{display:flex;align-items:center;gap:12px}#reader h1{font:500 31px/1.6 "Songti SC",SimSun,serif;overflow-wrap:anywhere;margin-top:14px}.reader-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2.2;font-size:15px;color:#687362;margin:23px 0}.reader-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reader-images button{padding:0;background:none}.reader-images img{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:8px;cursor:zoom-in}.reader-images button:only-child{grid-column:1/-1}.reader-images button:only-child img{max-height:600px;object-fit:contain}.reader-foot{text-align:center;color:#adb5a2;font-size:11px;margin-top:35px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#355749;color:white;border-radius:7px;padding:13px 25px;z-index:100;font-size:13px;box-shadow:0 4px 20px #29382f22}#lightbox{width:auto;padding:10px;background:#1d2a23;border:none;max-height:95dvh}#lightbox img{display:block;max-width:85vw;max-height:85dvh;object-fit:contain}#lightbox .icon-button{display:block;margin-left:auto;color:white}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1500px){.entries{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1000px){.sidebar{width:185px;padding:28px 16px}main{margin-left:185px}.workspace{padding:0 28px}.topbar{padding:0 28px}.hero h1{font-size:29px}.hero{padding:40px 0}.card-body{padding:12px 18px 10px}}@media(max-width:700px){.sidebar{width:auto;position:relative;height:auto;padding:17px 22px;flex-direction:row;align-items:center;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:22px;gap:9px}.brand-mark{height:36px;width:34px;font-size:22px}.brand small{font-size:7px}.sidebar-section,.nav-item,.sidebar-bottom .plant,.sidebar-bottom p,.storage-label{display:none}.sidebar-bottom{margin:0;padding:0}.logout{padding:0;font-size:10px}main{margin-left:0}.topbar{height:48px;padding:0 22px;font-size:10px}.workspace{padding:0 22px}.hero{padding:33px 0;align-items:flex-start}.hero h1{font-size:25px;letter-spacing:1px}.hero .eyebrow{font-size:8px;letter-spacing:1.5px}.hero .muted{font-size:11px}.hero>.primary{font-size:11px;white-space:nowrap;padding:9px 10px;gap:4px;margin-top:24px}.hero>.primary>span{font-size:15px}.section-heading>span{font-size:9px}.entries{grid-template-columns:1fr;gap:20px}.card-photo{height:220px}.card-body{padding:22px}.empty-state{padding:45px 12px}.empty-state .muted{font-size:11px}footer{font-size:9px;margin-top:32px}dialog{padding:22px 19px;max-width:calc(100% - 20px);max-height:94dvh}.dialog-heading h2{font-size:20px}.dialog-heading .eyebrow{font-size:8px}.editor-meta{flex-direction:column;gap:10px;padding:12px}.editor-meta>label{display:flex;align-items:center;gap:15px}.editor-meta input[type=date]{padding:0}.moods span{padding:3px 6px}.writing-count{font-size:9px}.photo-heading{align-items:flex-start}#photo-hint{font-size:9px;text-align:right;max-width:160px}.editor-footer>span{font-size:9px}.editor-footer>.primary{font-size:12px;padding:10px 15px}.title-input{font-size:23px}.reader-images{gap:8px}.reader-images img{max-height:230px}#reader h1{font-size:27px}.toast{width:max-content;max-width:90vw;text-align:center}.login-card{padding:25px 12px}}
/* Keep the save action visible while the writing area scrolls. */
#editor{padding:0;overflow:hidden}#entry-form{display:flex;flex-direction:column;max-height:90dvh}#editor .dialog-heading{padding:28px 32px 0;margin-bottom:20px;flex-shrink:0}.filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin:0 0 22px}.filter-note{flex-basis:100%;font-size:10px;color:#a2aa98}.filters label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#8f9b82}.filters input{border:1px solid #e1e5d8;background:#fffefa;color:var(--ink);border-radius:6px;padding:8px 10px}#search{width:min(320px,70vw)}.card-video{height:112px;display:grid;place-items:center;background:#e6eee4;color:#5c7363;letter-spacing:.2em;font-size:12px}.preview video{width:90px;height:90px;object-fit:cover;border-radius:6px;background:#243028}.reader-videos{display:grid;gap:12px;margin-top:14px}.reader-videos video{width:100%;max-height:480px;border-radius:8px;background:#1c2620}.editor-meta{flex-wrap:wrap}.editor-meta fieldset{flex:1;min-width:240px}.editor-body{padding:0 32px;overflow-y:auto;min-height:0}#editor .editor-footer{margin:0 32px;padding:17px 0;flex-shrink:0}#editor textarea{min-height:170px}@media(max-width:700px){#entry-form{max-height:94dvh}#editor{max-height:94dvh}#editor .dialog-heading{padding:22px 19px 0;margin-bottom:17px}.editor-body{padding:0 19px}#editor .editor-footer{margin:0 19px;padding:15px 0}}.drafts-section{margin-bottom:28px}.draft-mark{font-size:10px;line-height:1.2;color:#8a6a32;background:#f6efd8;padding:2px 7px;border-radius:4px}.entry-card.draft{border-color:#e4d7b0}#draft-status{font-size:11px;color:#8f9b82}.reader-content{white-space:normal}.reader-content p{margin:0 0 12px}.reader-content p:last-child,.reader-content blockquote p:last-child{margin-bottom:0}.reader-content h1,.reader-content h2,.reader-content h3,.reader-content h4,.reader-content h5,.reader-content h6{color:var(--ink);font-weight:600;line-height:1.4;margin:18px 0 8px}.reader-content h1{font-size:22px}.reader-content h2{font-size:18px}.reader-content h3,.reader-content h4,.reader-content h5,.reader-content h6{font-size:16px}.reader-content ul,.reader-content ol{margin:0 0 12px;padding-left:1.3em}.reader-content blockquote{margin:0 0 12px;padding-left:12px;border-left:3px solid #d5ddcf}.reader-content pre{margin:0 0 12px;padding:12px 14px;background:#f3f1e6;border-radius:8px;overflow:auto;white-space:pre-wrap}.reader-content code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:#f3f1e6;border-radius:4px;padding:0 4px}.reader-content pre code{background:none;padding:0}.reader-content a{color:var(--green);text-decoration:underline;text-underline-offset:2px}.reader-content img{display:block;max-width:100%;border-radius:8px;margin:8px 0}.reader-content hr{border:0;border-top:1px solid var(--line);margin:18px 0}.reader-content .md-task{list-style:none;margin-left:-1.1em}.reader-content .md-task input{margin-right:6px}.topbar-meta{display:flex;align-items:center;gap:12px}#page-version{letter-spacing:.04em}.update-notice{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:200;max-width:min(420px,calc(100vw - 32px));background:#355749;color:#fff;border-radius:8px;padding:12px 18px;font-size:13px;line-height:1.5;text-align:center;box-shadow:0 8px 24px #29382f33}#tag-heading{margin:22px 12px 8px}#tag-nav{display:flex;flex-direction:column;gap:2px;flex:1;min-height:0;overflow:auto}.tag-editor{position:relative;margin:8px 0 4px}.tag-known{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:2px}.tag-known-label{font-size:11px;color:#8f9b82}.tag-known-list,.tag-known #tag-known-list{display:flex;flex-wrap:wrap;gap:6px;flex:1}.tag-known .tag-chip{cursor:pointer}.tag-chips,.reader-tags,.card-tags,.filter-tags{display:flex;flex-wrap:wrap;gap:6px}.tag-chips{margin-bottom:6px}.card-tags{margin-top:10px}.reader-tags{margin:8px 0 4px}.tag-chip{border:0;background:#f3f1e6;color:#6d7a62;border-radius:99px;padding:2px 8px;font-size:11px;line-height:1.4;cursor:pointer}.tag-chip.active{background:#dfe6d9;color:var(--green)}.tag-editor .tag-chip{cursor:default}.tag-chip .remove-tag{margin-left:4px;color:#8c938b}#tag-input{width:100%;border:0;background:transparent;padding:6px 0;color:var(--ink)}#tag-input::placeholder{color:#b0b6a8}.tag-suggest{position:absolute;z-index:2;left:0;right:0;top:100%;background:#fffefa;border:1px solid #e1e5d8;border-radius:8px;padding:4px;box-shadow:0 8px 20px #29382f12}.tag-suggest button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);padding:6px 8px;border-radius:5px}.tag-suggest button:hover{background:#f3f5ed}@media(min-width:701px){.filter-tags{display:none}}@media(max-width:700px){#tag-heading,#tag-nav{display:none}.filter-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}}
