:root{--bg:#f7f6ef;--paper:#fffefa;--ink:#233c30;--muted:#737b6b;--green:#365f45;--line:#e5e7dc;--orange:#d27943;--soft:#edf0e5;--red:#a43f30;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#e9ece2;font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid var(--green);outline-offset:1px}a{color:inherit;text-decoration:none}.shell{max-width:480px;min-height:100dvh;background:var(--bg);margin:auto;position:relative;box-shadow:0 0 70px #2438280b}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:14px 24px}.brand{display:flex;gap:11px;align-items:center;font-weight:700;letter-spacing:1px;font-size:18px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:2px;color:var(--muted)}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--green);color:#fffef2;font-size:22px;font-family:serif;font-weight:400}.icon-btn{border:1px solid var(--line);background:transparent;border-radius:50%;width:44px;height:44px;font-size:21px;display:grid;place-items:center;flex-shrink:0}main{padding:8px 22px 120px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--orange);font-weight:700;text-transform:uppercase}h1{font-size:32px;line-height:1.4;margin:8px 0 10px;letter-spacing:-1px}h2{font-size:19px;margin:0}h3{font-size:17px;margin:0}p{margin:8px 0 14px}.muted{color:var(--muted);font-size:13px}.hero{position:relative;min-height:160px;padding:12px 0 12px}.hero-text{position:relative;z-index:1;max-width:74%}.hero-art{position:absolute;right:-4px;top:22px;width:116px;height:116px;border-radius:50%;background:#ebe9d9;display:grid;place-items:center;transform:rotate(-12deg)}.hero-art:before{content:"";position:absolute;border:1px dashed #c2cbb4;inset:-9px;border-radius:50%}.hero-art svg{width:112px;height:112px}.section-label{display:flex;justify-content:space-between;align-items:center;margin:15px 0 12px;font-weight:600;font-size:14px}.section-label small{font-size:11px;color:var(--muted);font-weight:400}.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.choice{border:1px solid var(--line);background:var(--paper);border-radius:15px;padding:13px 3px 12px;text-align:center;font-size:12px}.choice strong{display:block;font-size:23px;line-height:1.4;font-family:Georgia,serif;font-weight:400;margin-bottom:3px}.choice.active{border:1.5px solid var(--green);background:#edf1e5;color:var(--green);box-shadow:0 2px 0 #365f4510}.filter-box{margin:16px 0 18px;border:1px solid var(--line);border-radius:12px;background:#ffffff55}.filter-box summary{padding:12px 14px;cursor:pointer;font-size:12px;color:var(--muted)}.filter-options{padding:0 14px 12px;display:flex;gap:15px;flex-wrap:wrap}.check-row{display:flex;align-items:center;gap:8px;font-size:13px;min-height:44px;margin:0}.check-row input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}.primary,.secondary{min-height:50px;border-radius:13px;border:0;display:block;width:100%;font-weight:600;padding:12px 15px}.primary{background:var(--green);color:white;box-shadow:0 5px 10px #365f4512}.primary:active{transform:translateY(1px)}.primary.big{min-height:58px;font-size:16px;letter-spacing:1px}.secondary{background:var(--soft);color:var(--green);border:1px solid var(--line)}.draw-caption{text-align:center;color:var(--muted);font-size:11px;margin:9px 0 23px}.result-head{display:flex;justify-content:space-between;align-items:center;margin:23px 0 12px}.result-head h2{font-size:17px}.text-btn{background:transparent;border:0;color:var(--green);min-height:44px;padding:8px;font-size:12px;text-decoration:underline;text-underline-offset:3px}.dish{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:14px 12px;display:flex;align-items:center;gap:12px;margin-bottom:10px}.dish-art{width:62px;height:62px;background:#f0eee0;border-radius:50%;flex-shrink:0;display:grid;place-items:center}.dish-art svg{width:59px;height:59px}.dish-info{flex:1;min-width:0}.dish-info h3{font-size:16px;overflow-wrap:anywhere;line-height:1.5}.dish-info p{font-size:11px;color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere}.tag{display:inline-block;border-radius:5px;background:#eaf0e5;color:#526b46;font-size:10px;padding:1px 5px;margin-right:5px}.tag.meat{background:#f8ebde;color:#ae633c}.tag.soup{background:#eceee6;color:#777957}.swap{background:transparent;border:1px solid var(--line);border-radius:10px;min-width:55px;min-height:44px;font-size:11px;padding:8px}.empty{padding:26px 20px;text-align:center;border:1px dashed #cfd5c3;border-radius:17px;background:#f0f1e6;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--ink);font-size:16px;margin-bottom:7px}.empty svg{width:60px;height:60px;opacity:.6;margin-bottom:7px}.note{font-size:11px;color:var(--muted);margin:18px 0;text-align:center}.error-box{background:#fcf0e6;border:1px solid #efd2bb;color:#8e4e2d;border-radius:12px;padding:13px;margin:14px 0;font-size:13px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);background:#fffefaee;backdrop-filter:blur(15px);border-top:1px solid var(--line);display:flex;z-index:10;padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.bottom-nav button{flex:1;border:0;background:none;min-height:54px;color:#828777;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:1px}.bottom-nav button span{font-size:24px;line-height:29px}.bottom-nav button.active{color:var(--green);font-weight:700}.page-intro{margin:10px 0 20px}.page-intro h1{font-size:28px}.toolbar{display:flex;gap:8px;margin-bottom:14px}.toolbar input{flex:1;min-width:0;background:var(--paper)}.add-btn{white-space:nowrap;width:auto;min-height:47px;font-size:13px}.pills{display:flex;gap:8px;margin:12px 0 17px;overflow:auto;padding:2px}.pill{white-space:nowrap;border:1px solid var(--line);background:transparent;padding:8px 15px;border-radius:22px;min-height:42px;font-size:12px}.pill.active{background:var(--green);color:white;border-color:var(--green)}.recipe-row{align-items:flex-start}.recipe-row .dish-info{padding-top:2px}.recipe-actions{display:flex;gap:10px;align-items:center;margin-top:3px}.recipe-actions button{border:0;background:none;font-size:11px;color:var(--green);padding:5px 0;min-height:38px}.recipe-actions .off{color:var(--orange)}.disabled-dish{opacity:.65}.history-card{border:1px solid var(--line);background:var(--paper);border-radius:16px;padding:17px;margin-bottom:12px}.history-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.history-card header strong{font-size:15px}.history-card p{font-size:14px;margin:6px 0}.history-actions{display:flex;justify-content:space-between;margin-top:10px;border-top:1px solid var(--line);padding-top:5px}.history-actions button{font-size:12px}.history-actions .danger{color:var(--red)}dialog{border:1px solid var(--line);border-radius:22px;padding:24px;width:calc(100% - 36px);max-width:430px;max-height:90dvh;overflow:auto;background:var(--paper);color:var(--ink);box-shadow:0 20px 90px #1d382a30}dialog::backdrop{background:#182b2255;backdrop-filter:blur(3px)}.full-dialog{height:100dvh;max-height:100dvh;width:100%;max-width:480px;padding:0;border:0;border-radius:0;margin:0 auto;background:var(--bg)}.full-dialog form{min-height:100%;display:flex;flex-direction:column}.editor-head{position:sticky;top:0;background:var(--bg);padding:16px 20px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);z-index:1}.editor-head h2{font-size:18px}.form-body{padding:16px 24px 20px;flex:1}.form-body>label{display:block;margin:18px 0}.form-body label.check-row{display:flex}.form-row{display:flex;gap:12px}.form-row label{flex:1;min-width:0}label{font-size:13px;font-weight:500}em{color:var(--orange);font-style:normal}input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;min-height:48px;border:1px solid #dce0d1;border-radius:11px;background:var(--paper);padding:11px 12px;color:var(--ink);font-size:16px;display:block;margin-top:7px}input[type=hidden]{display:none!important}textarea{resize:vertical}.hint{font-size:11px;line-height:1.7;font-weight:400;color:var(--muted);display:block;margin-top:6px}.editor-foot{padding:16px 24px calc(20px + env(safe-area-inset-bottom));position:sticky;bottom:0;background:var(--bg);border-top:1px solid var(--line)}.error{font-size:13px;color:var(--red)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.setting-box{padding:18px;border:1px solid var(--line);border-radius:15px;margin:20px 0}.setting-box button{margin-top:12px}.dialog-actions{display:flex;gap:10px;margin-top:24px}.dialog-actions button{flex:1}#copy-dialog button{margin-top:16px}#toast{position:fixed;left:50%;bottom:calc(100px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#233c30f5;color:white;border-radius:12px;padding:12px 18px;font-size:13px;max-width:calc(100% - 40px);width:max-content;z-index:100;pointer-events:none;opacity:0;transition:opacity .2s}#toast.visible{opacity:1}.confirmed-banner{padding:13px 16px;border-radius:12px;background:#e5eddd;font-size:13px;margin:12px 0}.footer-stamp{display:flex;align-items:center;justify-content:center;gap:9px;margin:26px 0 8px;color:#939a87;font-size:10px;letter-spacing:2px}.footer-stamp:before,.footer-stamp:after{content:"";height:1px;width:26px;background:#dce0d2}.count{font-size:12px;color:var(--muted)}@media(max-width:350px){main{padding-left:16px;padding-right:16px}.topbar{padding-left:16px;padding-right:16px}.hero-art{width:90px;height:90px;top:38px}.hero-art svg{width:90px;height:90px}h1{font-size:29px}.dish{gap:8px}.dish-art{width:48px;height:48px}.dish-art svg{width:46px;height:46px}.filter-options{gap:4px}.choice{font-size:11px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* 限制装饰图形，避免小屏幕出现横向滚动。 */
.shell{overflow-x:clip}
