:root{font-family:Noto Sans SC,Microsoft YaHei,system-ui,sans-serif;color:#30372f;background:#f3f1eb;font-synthesis:none;--green:#526a51;--paper:#fbfaf6;--line:#dfddd4;--muted:#858a80}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 10% 0,#fff 0,transparent 30%),#f3f1eb}button,input,textarea{font:inherit}button{color:inherit}.loading,.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.loading{text-align:center;color:var(--muted)}.brand-mark{width:62px;height:62px;border-radius:20px;display:grid;place-items:center;background:var(--green);color:#fff;box-shadow:0 12px 35px #526a5138;margin:0 auto 18px}.login-card{width:min(100%,390px);background:#ffffffb8;border:1px solid #fff;border-radius:28px;padding:38px 28px 28px;box-shadow:0 25px 70px #4c554526;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);text-align:center}.eyebrow{font-size:10px;letter-spacing:.22em;color:#8b9788;font-weight:600;margin:0 0 5px}.login-card h1,.page-heading h2{font-family:"Noto Serif SC",Songti SC,serif}.login-card h1{font-size:40px;letter-spacing:.18em;margin:0 0 8px;padding-left:.18em}.login-copy,.privacy-note,.muted{color:var(--muted)}.login-copy{margin:0 0 34px;font-family:"Noto Serif SC",Songti SC,serif}.login-card form{text-align:left}.login-card label,.field-label{font-size:13px;font-weight:600}.password-field,.search-box{display:flex;align-items:center;gap:10px;background:#f2f1ec;border:1px solid transparent;border-radius:13px;padding:0 14px}.password-field{margin-top:8px}.password-field:focus-within,.search-box:focus-within{border-color:#91a18d;background:#fff}.password-field input,.search-box input{border:0;outline:0;background:transparent;width:100%;height:48px}.primary,.secondary,.new-button{border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;cursor:pointer}.primary,.new-button{background:var(--green);color:#fff}.primary{height:48px}.primary.wide{width:100%;margin-top:18px}.primary.compact{height:38px;padding:0 17px}.primary:disabled{opacity:.6}.privacy-note{font-size:11px;margin:26px 0 0}.form-error{color:#a34e46;font-size:13px;margin:10px 0 0}.app-shell{width:min(100%,720px);min-height:100vh;margin:auto;background:var(--paper);box-shadow:0 0 50px #4b504215;padding-bottom:100px}.topbar{height:65px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6e3da;background:#fbfaf6e8;position:sticky;top:0;z-index:5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.topbar>div{display:flex;align-items:center;gap:10px;font-family:"Noto Serif SC",Songti SC,serif;font-size:20px}.tiny-mark{width:31px;height:31px;border-radius:10px;background:var(--green);color:#fff;display:grid;place-items:center}.tiny-mark svg{width:17px}.icon-button{border:0;background:transparent;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;cursor:pointer}.icon-button:hover{background:#ecebe5}.tab-content{padding:26px 20px 10px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.page-heading h2{font-size:29px;margin:0}.new-button{padding:10px 14px}.calendar-card,.summary-card{border:1px solid var(--line);background:#fff;border-radius:20px;padding:15px;box-shadow:0 7px 25px #4c54430c}.month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.month-title{border:0;background:transparent;font-family:"Noto Serif SC",Songti SC,serif;font-size:18px;font-weight:700;cursor:pointer}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.weekdays span{text-align:center;color:#9c9d96;font-size:11px;padding:8px 0}.calendar-grid button{border:0;background:transparent;aspect-ratio:1;min-height:43px;position:relative;border-radius:14px;cursor:pointer}.calendar-grid button:hover{background:#f1f2ed}.calendar-grid .outside{color:#c8c8c2}.calendar-grid .today{background:var(--green);color:#fff}.calendar-grid .has-entry:not(.today){font-weight:600}.day-number{font-size:13px}.entry-dot{position:absolute;width:5px;height:5px;border-radius:50%;bottom:5px;left:calc(50% - 2.5px);background:var(--green)}.month-note{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:17px 4px;color:#7d8279;font-size:12px}.month-note span:first-child{display:flex;align-items:center;gap:6px}.month-note strong{color:var(--green);font-size:16px}.search-box{margin-bottom:18px}.entry-list{display:flex;flex-direction:column;gap:11px}.entry-card{width:100%;display:flex;text-align:left;border:1px solid var(--line);background:#fff;border-radius:16px;padding:15px;cursor:pointer}.entry-card:hover{border-color:#aeb9ab;transform:translateY(-1px)}.date-block{min-width:54px;border-right:1px solid #e5e3dc;margin-right:14px;display:flex;flex-direction:column;align-items:center;justify-content:center}.date-block strong{font:700 25px "Noto Serif SC",Songti SC,serif}.date-block span{font-size:11px;color:var(--muted)}.entry-copy{min-width:0;flex:1}.entry-copy>div{display:flex;justify-content:space-between;gap:10px}.entry-copy h3{font:600 16px "Noto Serif SC",Songti SC,serif;margin:0}.entry-copy p{margin:7px 0;color:#686d65;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entry-copy small{color:#a0a39b}.count-pill{background:#e7ebe3;color:var(--green);border-radius:99px;padding:6px 11px;font-size:12px}.empty-state{text-align:center;padding:65px 20px;color:#afb1aa}.empty-state h3{color:#777c74;font-family:"Noto Serif SC",Songti SC,serif;margin-bottom:4px}.empty-state p{font-size:13px}.quote-card{position:relative;overflow:hidden;background:var(--green);color:#fff;border-radius:20px;padding:25px;margin-bottom:14px}.quote-card:after{content:"“";position:absolute;font:100px serif;right:17px;bottom:-45px;color:#ffffff18}.quote-card p{font:600 19px/1.8 "Noto Serif SC",Songti SC,serif;margin:12px 0 0}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.stat-grid div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.stat-grid strong{display:block;font:700 24px "Noto Serif SC",Songti SC,serif;color:var(--green)}.stat-grid span{font-size:12px;color:var(--muted)}.summary-card{margin-bottom:14px}.summary-card h3{font-family:"Noto Serif SC",Songti SC,serif;margin:2px 0 15px}.summary-card .muted{font-size:12px;line-height:1.7}.backup-actions{display:flex;gap:9px}.secondary{flex:1;padding:10px;border:1px solid var(--line);background:#f8f7f3;text-decoration:none;font-size:13px}.hidden{display:none}.status-message{font-size:12px;color:var(--green);margin-bottom:0}.bottom-nav{position:fixed;z-index:6;bottom:0;left:50%;transform:translate(-50%);width:min(100%,720px);height:72px;padding-bottom:env(safe-area-inset-bottom);display:flex;background:#faf9f6ef;border-top:1px solid #deddd6;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.bottom-nav button{border:0;background:transparent;flex:1;color:#9b9d97;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;cursor:pointer}.bottom-nav svg{width:21px}.bottom-nav .active{color:var(--green);font-weight:600}.floating-add{display:none}.editor-backdrop{position:fixed;inset:0;background:#252a2477;z-index:20;display:grid;place-items:center;padding:20px}.editor-sheet{background:var(--paper);width:min(100%,700px);max-height:min(90vh,820px);border-radius:24px;overflow:hidden;box-shadow:0 30px 80px #10130f55}.editor-header{height:70px;border-bottom:1px solid var(--line);padding:0 17px;display:grid;grid-template-columns:45px 1fr auto;align-items:center}.editor-header>div{text-align:center}.editor-header strong,.editor-header span{display:block}.editor-header strong{font:600 15px "Noto Serif SC",Songti SC,serif}.editor-header span{font-size:10px;color:var(--muted);margin-top:2px}.editor-body{padding:22px;overflow:auto;max-height:calc(min(90vh,820px) - 70px)}.title-input{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;outline:0;font:600 21px "Noto Serif SC",Songti SC,serif;padding:13px 2px}.editor-body textarea{width:100%;min-height:330px;resize:vertical;border:0;background:transparent;outline:0;padding:20px 2px;line-height:1.9;color:#41473f}.editor-meta{border-top:1px solid var(--line);padding-top:12px;display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.danger-link{border:0;background:transparent;color:#a3534c;cursor:pointer}.global-error{background:#fff2e7;color:#874e34;padding:10px 20px;font-size:12px;display:flex;justify-content:space-between}.global-error button{border:0;background:transparent;text-decoration:underline;color:inherit}@media(max-width:600px){.app-shell{box-shadow:none}.tab-content{padding:23px 16px 8px}.editor-backdrop{padding:0;place-items:end center}.editor-sheet{border-radius:22px 22px 0 0;max-height:94vh}.editor-body{max-height:calc(94vh - 70px)}.calendar-card{padding:10px 7px}.calendar-grid button{min-height:40px}.month-note{align-items:flex-start;flex-direction:column}.floating-add{position:fixed;z-index:7;right:18px;bottom:87px;width:51px;height:51px;border:0;border-radius:18px;background:var(--green);color:#fff;display:grid;place-items:center;box-shadow:0 8px 23px #526a5166}.new-button{display:none}}@media(min-width:721px){body{padding:28px 0}.app-shell{border-radius:26px;overflow:hidden;min-height:calc(100vh - 56px)}.topbar{top:28px}.bottom-nav{bottom:28px;border-radius:0 0 26px 26px}.editor-backdrop{padding:30px}}@media(prefers-reduced-motion:no-preference){button,.entry-card{transition:.18s ease}.brand-mark{animation:arrive .5s ease-out}@keyframes arrive{0%{opacity:0;transform:translateY(8px)}}}.image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 10px}.image-grid figure{position:relative;aspect-ratio:1;margin:0;border-radius:13px;overflow:hidden;background:#e9e8e2}.image-grid img{width:100%;height:100%;object-fit:cover}.image-grid .remove-image{position:absolute;right:5px;top:5px;width:28px;height:28px;border:0;border-radius:50%;display:grid;place-items:center;background:#20231fbb;color:#fff;cursor:pointer}.image-grid .insert-image{position:absolute;left:6px;bottom:6px;border:0;border-radius:8px;padding:5px 7px;background:#20231fbb;color:#fff;font-size:10px;cursor:pointer}.add-image{border:1px dashed #aeb9aa;background:#f1f3ee;color:var(--green);border-radius:12px;padding:10px 14px;display:flex;align-items:center;gap:7px;cursor:pointer;margin:12px 0 2px}.add-image:disabled{opacity:.6}.entry-thumb{width:100%;height:115px;object-fit:cover;border-radius:10px;margin-top:11px}.preview-title-row{display:flex;align-items:flex-start;gap:12px;margin:6px 0 22px}.diary-preview h2{flex:1;margin:0;font-family:"Noto Serif SC",Songti SC,serif}.favorite-button{flex:0 0 auto;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:#f1f3ee;color:#8b9388;cursor:pointer}.favorite-button.active{background:#fff1c7;color:#c68a16}.favorite-button:disabled{opacity:.55}.favorite-filter{display:flex;gap:6px;width:fit-content;margin:-4px 0 14px;padding:4px;border-radius:12px;background:#e9ece6}.favorite-filter button{display:flex;align-items:center;gap:5px;border:0;border-radius:9px;padding:7px 13px;background:transparent;color:var(--muted);cursor:pointer}.favorite-filter button.active{background:#fff;color:var(--green);box-shadow:0 1px 5px #26322614}.favorite-filter span{font-size:11px;opacity:.7}.entry-copy>div{display:flex;align-items:center;gap:7px}.entry-favorite{flex:0 0 auto;color:#c68a16}.app-layout,.desktop-sidebar,.workspace{display:contents}.floating-add span{display:none}.inline-content{line-height:1.9;color:#41473f;min-height:260px}.inline-content>span{white-space:pre-wrap}.inline-image{margin:18px 0}.inline-image img{display:block;width:100%;max-height:65vh;object-fit:contain;border-radius:14px;background:#eeede7}.inline-image figcaption{margin-top:5px;color:var(--muted);font-size:10px;text-align:center}.entry-navigation{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:28px 0 16px;padding-top:14px;border-top:1px solid var(--line)}.entry-navigation button{border:0;background:transparent;color:var(--green);display:flex;align-items:center;gap:3px;cursor:pointer}.entry-navigation button:last-child{justify-content:flex-end}.entry-navigation button:disabled{opacity:.25;cursor:default}.entry-navigation small{color:var(--muted);font-size:10px}.diary-preview{touch-action:pan-y}.spin{animation:image-spin .8s linear infinite}@keyframes image-spin{to{transform:rotate(360deg)}}@media(min-width:960px){body{padding:24px}.app-shell{width:min(1180px,100%);min-height:calc(100vh - 48px);padding-bottom:0;border-radius:26px;overflow:visible}.topbar{top:24px;height:72px;padding:0 28px;border-radius:26px 26px 0 0}.app-layout{display:grid;grid-template-columns:216px minmax(0,1fr);align-items:stretch;min-height:calc(100vh - 120px)}.desktop-sidebar{display:flex;flex-direction:column;align-self:start;position:sticky;top:96px;height:calc(100vh - 120px);padding:27px 18px 22px;border-right:1px solid var(--line);border-radius:0 0 0 26px;background:#f0f1eb}.workspace{display:block;min-width:0;border-radius:0 0 26px;background:var(--paper)}.bottom-nav{position:static;transform:none;width:auto;height:auto;padding:0;flex-direction:column;gap:7px;border:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.bottom-nav button{flex:none;width:100%;height:52px;padding:0 17px;border-radius:13px;flex-direction:row;justify-content:flex-start;gap:13px;font-size:14px}.bottom-nav button:hover{background:#e4e8e0;color:var(--green)}.bottom-nav .active{background:#dde5da}.bottom-nav svg{width:20px}.floating-add{position:static;width:100%;height:48px;margin-top:auto;border:0;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:#fff;box-shadow:0 8px 20px #526a5133;cursor:pointer}.floating-add span{display:inline;font-weight:600}.tab-content{max-width:100%;padding:43px 48px 40px}.page-heading{margin-bottom:28px}.page-heading h2{font-size:32px}.calendar-card{padding:22px 25px 25px}.calendar-grid button{aspect-ratio:auto;height:clamp(44px,calc((100vh - 460px) / 6),68px);min-height:0}.day-number{font-size:15px}.entry-dot{width:6px;height:6px;bottom:9px}.month-note{margin-top:22px}.search-box{max-width:520px;margin-bottom:23px}.favorite-filter{margin-bottom:17px}.stat-grid{grid-template-columns:repeat(4,1fr)}.stat-grid div{padding:22px}.quote-card{padding:30px}.summary-card{padding:24px}.editor-sheet{width:min(860px,calc(100% - 80px));max-height:min(92vh,900px)}.editor-body{max-height:calc(min(92vh,900px) - 70px);padding:32px 46px}.inline-content{font-size:16px;line-height:2}.diary-preview{max-width:720px;margin:0 auto}}@media(min-width:1120px){.entry-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:13px}.entry-card{min-height:116px}}
