:root{--paper:#f8f6ef;--green:#394a34;--soft:#e9ecdf;--ink:#28312a;--muted:#7f8175;--line:#e5e3d9;--wine:#854b4b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #9aab83;outline-offset:4px}button:disabled{opacity:.5;cursor:default}h1,h2,h3,p{margin:0}h1,h2,.brand,.mobile-brand{font-family:"Songti SC","STSong","SimSun",serif}h1{font-size:36px;line-height:1.35;font-weight:600}h2{font-size:25px}small,.muted{color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;padding:44px 30px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#f0f0e6}.brand{font-size:32px;letter-spacing:3px}.brand span,.mobile-brand span{display:block;font:9px/2.6 -apple-system,sans-serif;letter-spacing:4px;color:#747b64}.side-note{font-size:13px;color:#8b8c7d;margin:34px 0 44px;line-height:2.2}.sidebar nav{display:grid;gap:12px}.nav-btn{display:flex;align-items:center;gap:15px;padding:13px 16px;border-radius:12px;text-align:left;font-weight:500}.nav-btn.active{background:var(--green);color:white}.nav-symbol{font-size:22px;line-height:1}.side-bottom{margin-top:auto;display:flex;align-items:center;gap:10px;font-size:12px}.side-bottom small{font-size:10px}.avatar{display:grid;place-items:center;background:#d9dfca;color:var(--green);border-radius:50%;width:36px;height:36px;font-family:serif}main{max-width:1490px;margin-left:232px;padding:0 54px}header{height:92px;display:flex;align-items:center;justify-content:space-between}.desktop-greeting{font-size:12px;letter-spacing:2px;color:var(--muted)}.icon-btn{border:1px solid var(--line);border-radius:50%;width:42px;height:42px;font-size:23px;background:#fffdf6}.mobile-brand,.bottom-nav{display:none}.hero{height:202px;border-radius:22px;overflow:hidden;background:#eee8d7;position:relative;margin-bottom:36px}.hero img{width:100%;height:100%;object-fit:cover;object-position:center}.hero-label{position:absolute;bottom:13px;right:16px;padding:4px 12px;border-radius:20px;background:#fffaf0df;color:#6e725e;font-size:10px;letter-spacing:2px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--muted);margin-bottom:8px}.section-head p{font-size:13px;color:var(--muted);margin-top:9px}.text-btn{color:var(--green);font-size:13px}.toolbar{display:flex;align-items:center;gap:18px;margin-bottom:20px}.search{flex:1;position:relative}.search input{background:#fffdf8;border:1px solid var(--line);border-radius:13px;width:100%;padding:13px 16px 13px 40px;outline:none;font-size:14px}.search span{position:absolute;left:15px;top:10px;font-size:23px;color:#999}.search input:focus{border-color:#8a9c78}.chips{display:flex;gap:9px;overflow:auto;scrollbar-width:none;margin-bottom:25px;padding:2px 0}.chip{white-space:nowrap;border-radius:30px;padding:8px 18px;background:#eeeee5;color:#72786a;font-size:13px}.chip.active{background:var(--green);color:white}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 22px}.card{border-radius:18px;overflow:hidden;background:#fffdf9;border:1px solid #e7e5da;transition:transform .2s,box-shadow .2s;position:relative}.card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #33452b0c}.card-open{display:block;width:100%;text-align:left;padding:0}.food{aspect-ratio:1.24;background-size:205% 220%;background-repeat:no-repeat;background-color:#ece9db}.food.custom{background-size:cover;background-position:center}.food.empty{display:grid;place-items:center;background:#ecefe4;color:#8c9b7a;font-size:42px}.card-body{padding:15px 17px 18px}.card h3{font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card p{font-size:12px;color:var(--muted);margin-top:5px}.card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:13px;font-size:11px;color:#8b8b7c}.tag{background:#edf0e3;border-radius:5px;padding:2px 8px;color:#6a7759}.heart{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;background:#fffdf4eb;font-size:22px;color:#7a7f6c;line-height:1}.heart.on{color:var(--wine)}.example-note{font-size:11px;color:#939285;margin-top:22px}.empty-state{padding:65px 15px;text-align:center;border:1px dashed #ccd3c0;border-radius:18px;grid-column:1/-1}.empty-state p{margin:10px 0 20px;color:var(--muted);font-size:13px}.primary,.secondary{border-radius:12px;padding:12px 21px;font-size:14px;font-weight:500}.primary{background:var(--green);color:white}.secondary{background:#eceee5;color:var(--green)}#add-fab{position:fixed;bottom:32px;right:36px;display:flex;align-items:center;gap:9px;padding:14px 23px;border-radius:40px;background:var(--green);color:white;box-shadow:0 6px 20px #20301e25;font-size:25px;z-index:5}#add-fab span{font-size:14px}footer{text-align:center;padding:50px 0 100px;font-size:11px;letter-spacing:2px;color:#a1a08f}dialog{border:0;padding:0;width:min(650px,100% - 30px);max-height:90dvh;border-radius:24px;background:var(--paper);color:var(--ink);box-shadow:0 24px 90px #0003}dialog::backdrop{background:#16201266;backdrop-filter:blur(5px)}.sheet-header{position:sticky;top:0;background:var(--paper);padding:16px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;z-index:2}.sheet-header strong{font-size:15px}.close{font-size:24px;width:34px;height:34px;line-height:1;border-radius:50%;background:#e9eade}.sheet-body{padding:25px}.detail-photo{aspect-ratio:1.65;border-radius:15px;margin-bottom:24px}.detail-title{display:flex;align-items:start;justify-content:space-between;gap:15px}.detail-title h1{font-size:30px}.detail-meta{color:var(--muted);font-size:13px;margin:12px 0 24px}.detail-section{margin:28px 0}.detail-section h2{font-family:inherit;font-size:17px;margin-bottom:15px}.ingredients{display:grid;gap:10px}.ingredient{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#eeefe5;border-radius:8px}.ingredient input{accent-color:var(--green);width:18px;height:18px}.ingredient:has(input:checked){text-decoration:line-through;color:var(--muted)}.step{display:flex;gap:15px;margin:20px 0;font-size:15px}.step b{font:italic 24px Georgia;color:#879376;flex:0 0 26px}.action-row{display:flex;gap:10px;flex-wrap:wrap}.action-row>*{flex:1}.note-panel{padding:18px;background:#eeeee3;border-radius:13px;font-size:13px;color:#717a65}.field{display:grid;gap:7px;margin-bottom:19px;font-size:13px;font-weight:600}.field input,.field textarea,.field select{width:100%;padding:12px;border:1px solid var(--line);background:#fffef9;border-radius:10px;font-size:16px;font-weight:400;color:var(--ink)}textarea{resize:vertical;min-height:100px}.field small{font-weight:400}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.upload{border:1px dashed #acb59a;border-radius:14px;padding:22px;text-align:center;background:#eff0e6;display:block;cursor:pointer;margin-bottom:20px}.upload small{display:block}.upload img{max-height:140px;max-width:100%;border-radius:10px}.upload input{display:block;margin:14px auto 0;max-width:100%;font-size:12px}details{border-top:1px solid var(--line);padding-top:15px;margin:20px 0}summary{cursor:pointer;font-weight:600;font-size:14px;margin-bottom:18px}.form-foot{position:sticky;bottom:0;background:var(--paper);padding:15px 24px;display:flex;gap:14px;align-items:center;border-top:1px solid var(--line)}.form-foot small{flex:1;font-size:11px}.record{padding:20px;background:#fffdf8;border:1px solid var(--line);border-radius:15px;margin-bottom:15px}.record .date{font-size:11px;color:var(--muted);margin-bottom:7px}.record p{margin-top:8px;white-space:pre-wrap}.cook-step{font-size:24px;line-height:1.8;min-height:180px;margin:35px 0}.cook-number{font:italic 64px Georgia;color:#a1ac8e}.progress{height:4px;background:#e1e5d7;border-radius:4px;margin:20px 0}.progress div{height:100%;background:var(--green);border-radius:4px}#toast{position:fixed;left:50%;bottom:115px;transform:translate(-50%,15px);background:#273420;color:white;padding:12px 20px;border-radius:12px;z-index:30;font-size:13px;opacity:0;pointer-events:none;transition:.2s;max-width:90%;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.space-card{padding:24px;border:1px solid var(--line);border-radius:17px;margin-bottom:16px;background:#fffdf8}.space-card h3{font-size:17px;margin-bottom:10px}.space-card p{font-size:13px;color:var(--muted);margin-bottom:15px}.status-dot{display:inline-block;width:7px;height:7px;background:#b58c54;border-radius:50%;margin-right:6px}.error{color:#a53f3f;font-size:13px;margin:12px 0;white-space:pre-wrap}.mobile-only{display:none}@media(min-width:1500px){main{margin-right:auto}}@media(max-width:1100px){.sidebar{width:195px;padding:35px 23px}main{margin-left:195px;padding:0 30px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{height:180px}}@media(max-width:700px){.sidebar,.desktop-greeting{display:none}main{margin:0;padding:0 20px}header{height:91px;padding-top:env(safe-area-inset-top)}.mobile-brand{display:block;font-size:24px;font-weight:600;letter-spacing:2px}.mobile-brand span{font-size:7px;line-height:1.8;letter-spacing:3px}.icon-btn{width:37px;height:37px}.hero{height:115px;border-radius:15px;margin-bottom:28px}.hero img{object-fit:cover}.hero-label{font-size:8px;right:9px;bottom:7px;padding:2px 7px}.section-head{margin-bottom:18px}.section-head h1{font-size:28px}.section-head p{font-size:12px;margin-top:6px}.eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:5px}.search input{font-size:14px;padding-top:11px;padding-bottom:11px}.chips{gap:7px;margin-bottom:20px;margin-right:-20px;padding-right:20px}.chip{font-size:12px;padding:7px 15px}.grid{gap:17px 12px}.food{aspect-ratio:1.05}.card{border-radius:13px}.card-body{padding:11px 11px 13px}.card h3{font-size:15px}.card p{font-size:10px}.card-bottom{font-size:10px;margin-top:10px}.tag{padding:1px 5px}.heart{top:8px;right:8px;width:29px;height:29px;font-size:19px}.bottom-nav{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;background:#fcfbf5ed;backdrop-filter:blur(20px);border-top:1px solid var(--line);padding:8px 20px calc(8px + env(safe-area-inset-bottom));z-index:5}.bottom-nav .nav-btn{flex-direction:column;gap:2px;padding:3px 22px;border-radius:0;color:#939786;font-size:10px;background:none}.bottom-nav .nav-btn.active{color:var(--green)}.nav-symbol{font-size:23px}.bottom-nav .nav-btn.active .nav-symbol{background:#e5eadb;border-radius:15px;padding:0 15px;margin:0 -15px}#add-fab{bottom:calc(83px + env(safe-area-inset-bottom));right:20px;padding:11px 17px;font-size:23px}#add-fab span{font-size:12px}footer{padding-bottom:160px}.sheet-body{padding:20px}.sheet-header{padding:14px 20px}dialog{width:100%;max-width:100%;max-height:95dvh;margin:auto 0 0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}.detail-title h1{font-size:28px}.detail-photo{aspect-ratio:1.4}.form-foot{padding:14px 20px}.cook-step{font-size:23px}.mobile-only{display:block}}

.logged-out .sidebar,.logged-out .bottom-nav,.logged-out #add-fab,.logged-out header{display:none}.logged-out main{margin:0 auto;max-width:1000px;padding:40px 20px}.login-card{max-width:640px;margin:20px auto;background:#fffdf8;border:1px solid var(--line);border-radius:25px;overflow:hidden}.login-cover{width:100%;display:block;aspect-ratio:3;object-fit:cover}.login-body{padding:35px 45px}.login-body h1{font-size:32px;margin:10px 0}.login-body form{margin-top:30px}.login-body .primary{width:100%}.login-note{font-size:12px;color:var(--muted);text-align:center;margin-top:18px}@media(max-width:700px){.logged-out main{padding:25px 18px}.login-body{padding:30px 23px}.login-body h1{font-size:26px}.login-card{margin-top:30px}.login-cover{aspect-ratio:2.7}}
/* Preserve complete watercolor compositions on every screen size. */
.hero{height:auto;background:#f8f6ef}.hero img{display:block;width:100%;height:auto;object-fit:contain;object-position:center}.hero-label{position:static;display:block;text-align:center;background:transparent;padding:10px 12px;color:#747b64}.login-cover{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;background:#f8f6ef}
.shopping-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.shopping-head h2{margin-bottom:0}.shopping-status{font-size:12px;color:var(--muted);margin:8px 0 14px}.shopping-reset{display:flex;align-items:center;gap:10px;font-size:13px;margin:0 0 20px}.shopping-reset input{width:18px;height:18px;accent-color:var(--green)}
