:root{--bg:#fff8ef;--surface:#fff;--surface-2:#fdeedb;--text:#3b2a1e;--muted:#8a7563;--line:#f0dfca;--primary:#e8742a;--primary-text:#fff;--primary-soft:#ffe2c7;--ok:#3f9b4f;--ok-soft:#dff3df;--warn:#c98a00;--warn-soft:#fff1c2;--bad:#d64534;--bad-soft:#ffdcd6;--shadow:0 2px 10px #78461414;--radius:16px;--tabbar-h:68px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:Nunito,Segoe UI,system-ui,-apple-system,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#1d1712;--surface:#2a211a;--surface-2:#362a20;--text:#f6e9dc;--muted:#b59f8b;--line:#3f3226;--primary:#f2914a;--primary-text:#1d1712;--primary-soft:#4a321f;--ok:#7fcf8a;--ok-soft:#22382a;--warn:#f0c44d;--warn-soft:#3d3218;--bad:#ff8a7a;--bad-soft:#4a221d;--shadow:0 2px 10px #0000004d}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font-size:17px}button,input,select{font:inherit;color:inherit}button{cursor:pointer}h1,h2,h3,h4{margin:0}a{color:var(--primary)}.topbar{z-index:10;padding:calc(env(safe-area-inset-top) + 8px) 12px 8px;background:var(--bg);border-bottom:1px solid var(--line);align-items:center;gap:6px;display:flex;position:sticky;top:0}.topbar h1{flex:1;font-size:1.3rem;font-weight:800}.logo{margin:0 4px}main{max-width:720px;padding-bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);margin:0 auto}.screen{flex-direction:column;gap:12px;padding:12px 16px;display:flex}.tabbar{z-index:10;height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -2px 12px #7846140f}.tabbar a{color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:.75rem;font-weight:700;text-decoration:none;display:flex}.tabbar a img{filter:grayscale(.6);opacity:.75;transition:transform .15s}.tabbar a.on{color:var(--primary)}.tabbar a.on img{filter:none;opacity:1;transform:scale(1.12)translateY(-2px)}.icon-btn{background:0 0;border:0;border-radius:12px;place-items:center;min-width:44px;height:44px;font-size:1.3rem;display:grid}.icon-btn:active{background:var(--surface-2)}.input{border:2px solid var(--line);background:var(--surface);border-radius:14px;outline:none;width:100%;min-height:48px;padding:10px 14px}.input:focus{border-color:var(--primary)}.input.big{min-height:54px;box-shadow:var(--shadow);font-size:1.05rem}.input.unit{width:auto;min-width:90px}.emoji-input{text-align:center;width:72px;font-size:1.4rem}.btn{border:2px solid var(--line);background:var(--surface);text-align:center;border-radius:14px;justify-content:center;align-items:center;gap:6px;min-height:48px;padding:10px 18px;font-weight:700;display:inline-flex}.btn:active{transform:scale(.98)}.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.btn.danger{color:var(--bad)}.btn.block{width:100%;display:flex}.btn.disabled{opacity:.6;pointer-events:none}.link{color:var(--primary);text-align:left;background:0 0;border:0;padding:6px 0;font-weight:700}.seg{background:var(--surface-2);border-radius:14px;gap:4px;padding:4px;display:flex}.seg button{min-height:42px;color:var(--muted);background:0 0;border:0;border-radius:11px;flex:1;font-weight:700}.seg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:2px solid var(--line);background:var(--surface);white-space:nowrap;border-radius:999px;min-height:42px;padding:8px 14px;font-weight:700}.chip.on{background:var(--primary-soft);border-color:var(--primary)}.badge{background:var(--bad);color:#fff;border-radius:999px;min-width:22px;padding:0 6px;font-size:.8rem;display:inline-block}.tag{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:2px 8px;font-size:.75rem;font-weight:700}.row{align-items:flex-end;gap:10px;display:flex}.row>*{flex:1;min-width:0}.row>.unit{flex:none}.row>.field:first-child:has(.emoji-input){flex:none}.row-between{justify-content:space-between;align-items:center;display:flex}.toolbar{align-items:center;gap:8px;display:flex}.toolbar .input{flex:1}.field{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.field-label{color:var(--muted);font-size:.85rem;font-weight:700}.check{align-items:center;gap:10px;min-height:44px;margin-bottom:14px;font-weight:600;display:flex}.check input{width:22px;height:22px;accent-color:var(--primary)}.actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.actions .btn{flex:1}.picker{position:relative}.suggestions{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);margin:6px 0 0;padding:6px;list-style:none}.suggestions button{text-align:left;background:0 0;border:0;border-radius:10px;width:100%;min-height:48px;padding:8px 10px;font-weight:600}.suggestions button:active,.suggestions button:hover{background:var(--surface-2)}.suggestions .create{color:var(--primary)}.group-title{margin:8px 4px 6px;font-size:.95rem;font-weight:800}.group-title h3{font-size:.95rem;font-weight:800}.list{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);margin:0;padding:0;list-style:none;overflow:hidden}.list>li+li{border-top:1px solid var(--line)}.row-btn{text-align:left;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 14px;display:flex}.row-btn:active{background:var(--surface-2)}.grow{flex-direction:column;flex:1;min-width:0;display:flex}.name{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.sub{color:var(--muted);font-size:.85rem}.emoji.big{text-align:center;width:36px;font-size:1.7rem}.exp{white-space:nowrap;border-radius:999px;padding:4px 10px;font-size:.8rem;font-weight:800}.exp-ok{background:var(--ok-soft);color:var(--ok)}.exp-soon{background:var(--warn-soft);color:var(--warn)}.exp-expired{background:var(--bad-soft);color:var(--bad)}.shop-row{align-items:center;padding-left:12px;display:flex}.check-btn{border:3px solid var(--primary);width:34px;height:34px;color:var(--primary-text);background:0 0;border-radius:10px;flex:none;font-weight:900}.check-btn.on{background:var(--ok);border-color:var(--ok)}.list.done .name{color:var(--muted);text-decoration:line-through}.card{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-direction:column;gap:10px;padding:16px;display:flex}.card h3{font-size:1.05rem}.card p{margin:0}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center}.ok{color:var(--ok);font-weight:700}.error{color:var(--bad);font-weight:700}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:8px;padding:40px 20px;display:flex}.sheet-backdrop{z-index:50;background:#28190a66;justify-content:center;align-items:flex-end;animation:.15s fade;display:flex;position:fixed;inset:0}.sheet{width:100%;max-width:560px;max-height:90vh;padding-bottom:env(safe-area-inset-bottom);background:var(--bg);border-radius:22px 22px 0 0;animation:.2s ease-out up;overflow:auto}@media (width>=600px){.sheet-backdrop{align-items:center}.sheet{border-radius:22px}}.sheet-head{background:var(--bg);align-items:center;padding:14px 12px 8px 18px;display:flex;position:sticky;top:0}.sheet-head h2{flex:1;font-size:1.25rem}.sheet-body{padding:4px 18px 18px}.toast{left:50%;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);z-index:60;background:var(--text);width:max-content;max-width:calc(100% - 32px);color:var(--bg);box-shadow:var(--shadow);border-radius:14px;align-items:center;gap:14px;padding:12px 16px;font-weight:600;animation:.2s ease-out up;display:flex;position:fixed;transform:translate(-50%)}.toast button{color:var(--primary);background:0 0;border:0;padding:4px;font-weight:800}@keyframes fade{0%{opacity:0}}@keyframes up{0%{opacity:0;transform:translateY(24px)}}.toast{animation:none}textarea.input{resize:vertical;line-height:1.4}.chips.scroll{scrollbar-width:none;flex-wrap:nowrap;margin:0 -16px;padding:0 16px 4px;overflow-x:auto}.chips.scroll::-webkit-scrollbar{display:none}.chip.big{min-height:52px;font-size:1.1rem}.btn.small{min-height:38px;padding:6px 12px;font-size:.85rem}.btn.big{flex:1;min-height:64px;font-size:1.15rem}.btn:disabled{opacity:.5}.warn{background:var(--warn-soft);color:var(--text);border-radius:12px;margin:0;padding:10px 12px;font-weight:600}.plain{gap:4px;margin:0;padding:0;list-style:none;display:grid}.name.wrap{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box}.sub.missing{color:var(--bad)}.list.recipes li{align-items:center;display:flex}.thumb{object-fit:cover;background:var(--surface-2);border-radius:12px;flex:none;width:64px;height:64px}.dish-emoji{place-items:center;font-size:2rem;display:grid}.add-missing{margin-right:8px}.sentinel{height:1px}.fail-row{align-items:center;gap:10px;padding:10px 14px;display:flex}.fail-row .name{white-space:normal;word-break:break-all}.small-list{max-height:260px;overflow:auto}.result{flex-direction:column;gap:10px;display:flex}.progress{background:var(--surface-2);border-radius:999px;height:34px;position:relative;overflow:hidden}.progress .bar{background:var(--primary-soft);transition:width .2s;position:absolute;inset:0 auto 0 0}.progress span{text-align:center;font-size:.9rem;font-weight:700;line-height:34px;display:block;position:relative}.recipe .hero,.card .hero{aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);background:var(--surface-2);width:100%;max-height:320px}.recipe .hero.dish-emoji{aspect-ratio:auto;height:140px;font-size:5rem}.recipe-title{font-size:1.5rem;font-weight:800;line-height:1.2}.meta,.source{margin:0}.source a{font-weight:700}.last-time{background:var(--warn-soft)}.stepper{align-items:center;gap:4px;font-weight:700;display:flex}.stepper .icon-btn{background:var(--surface-2);font-size:1.4rem}.ask{flex-direction:column;gap:6px;display:flex}.ingredients,.steps,.diary{margin:0;padding:0;list-style:none}.ingredients .section,.steps .section{color:var(--muted);margin-top:10px;font-weight:800}.ing-btn{border:0;border-bottom:1px solid var(--line);text-align:left;background:0 0;align-items:baseline;gap:10px;width:100%;min-height:44px;padding:8px 0;display:flex}.dot{border-radius:50%;flex:0 0 22px;place-items:center;height:22px;font-size:.8rem;font-weight:900;display:grid}.ing-have .dot{background:var(--ok-soft);color:var(--ok)}.ing-missing .dot{background:var(--bad-soft);color:var(--bad)}.ing-unknown .dot{background:var(--surface-2);color:var(--muted)}.ing-staple .dot{color:var(--muted)}.steps{counter-reset:step}.steps li:not(.section){counter-increment:step;padding:8px 0 8px 40px;line-height:1.5;position:relative}.steps li:not(.section):before{content:counter(step);background:var(--primary-soft);width:28px;height:28px;color:var(--text);border-radius:50%;place-items:center;font-size:.9rem;font-weight:800;display:grid;position:absolute;top:8px;left:0}.diary li{border-bottom:1px solid var(--line);padding:8px 0}.diary p{margin:4px 0 0}.stars{gap:6px;display:flex}.stars button{background:var(--surface-2);width:48px;height:48px;color:var(--line);border:0;border-radius:12px;font-size:1.6rem}.stars button.on{color:#f5a623}.deduct li{padding:10px 14px}.deduct .check{margin-bottom:6px}.review-pick{flex-direction:column;gap:8px;padding:0 14px 14px;display:flex}body.cooking{background:var(--bg)}.cookmode{z-index:40;padding:calc(env(safe-area-inset-top) + 8px) 16px calc(env(safe-area-inset-bottom) + 12px);background:var(--bg);flex-direction:column;gap:12px;display:flex;position:fixed;inset:0}.cook-head{align-items:center;gap:8px;display:flex}.timers{flex-wrap:wrap;gap:8px;display:flex}.timer{background:var(--primary-soft);font-variant-numeric:tabular-nums;border:0;border-radius:14px;min-height:48px;padding:8px 14px;font-size:1.2rem;font-weight:800}.timer.done{background:var(--ok);color:#fff;animation:1s infinite pulse}@keyframes pulse{50%{transform:scale(1.05)}}.cook-step,.cook-ingredients{flex:1;overflow:auto}.cook-ingredients{margin:0;padding:0 0 0 20px;font-size:1.2rem;line-height:1.8}.step-count{color:var(--muted);margin:0 0 8px;font-weight:800}.step-text{margin:0 0 20px;font-size:clamp(1.4rem,5.5vw,2.1rem);font-weight:600;line-height:1.4}.cook-nav{gap:10px;display:flex}.week-nav{align-items:center;gap:6px;display:flex}.week-nav .icon-btn{background:var(--surface);box-shadow:var(--shadow);font-size:1.8rem}.week-label{background:0 0;border:0;flex:1;min-height:44px;font-size:1.05rem;font-weight:800}.day{gap:6px}.day h3{align-items:center;gap:8px;display:flex}.day.today{outline:3px solid var(--primary);scroll-margin-top:120px}.day.past{opacity:.6}.meal{align-items:flex-start;gap:10px;display:flex}.meal-label{color:var(--muted);text-transform:uppercase;flex:0 0 64px;padding-top:12px;font-size:.8rem;font-weight:800}.meal-items{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.dish{background:var(--surface-2);text-align:left;border:0;border-radius:12px;align-items:center;gap:8px;min-height:44px;padding:6px 10px;font-weight:700;display:flex}.dish .grow{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.add-dish{border:2px dashed var(--line);min-height:40px;color:var(--muted);background:0 0;border-radius:12px;font-size:1.2rem;font-weight:800}.soon-card .chip.exp-soon{background:var(--warn-soft)}.soon-card .chip.exp-expired{background:var(--bad-soft)}.sticky-actions{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);z-index:5;border-radius:var(--radius);background:var(--bg);box-shadow:var(--shadow);padding:8px;position:sticky}.servings-row{margin-bottom:12px}.pick-list{max-height:46vh;margin-top:8px;overflow:auto}.trips li{text-transform:none;padding:4px 0}.weekdays{flex-wrap:wrap;gap:6px;display:flex}.weekdays .chip{min-width:52px}.day-title{margin:14px 4px 0;font-size:1.15rem;font-weight:800}.sheet-body .seg{margin-bottom:12px}.sheet-body>.input,.sheet-body>.chips,.sheet-body>select{margin-bottom:8px}.translated{margin:-4px 0 0}.recipe .description{white-space:pre-line;margin:0;line-height:1.5}.emoji-picker .row{align-items:center;gap:8px}.emoji-current{padding:6px 10px;font-size:1.6rem;line-height:1}.emoji-grid{border:1px solid var(--line);border-radius:12px;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:4px;max-height:220px;margin-top:8px;padding:4px;display:grid;overflow-y:auto}.emoji-cell{cursor:pointer;background:0 0;border:0;border-radius:8px;padding:6px 0;font-size:1.4rem}.emoji-cell.on,.emoji-cell:hover{background:var(--line)}.price-table{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.pt-line{grid-template-columns:minmax(0, 1.4fr) repeat(var(--cols), minmax(0, 1fr));text-align:left;width:100%;color:inherit;font:inherit;background:0 0;border:0;align-items:center;gap:4px;padding:8px 10px;display:grid}.pt-line+.pt-line{border-top:1px solid var(--line)}.pt-row{cursor:pointer;min-height:56px}.pt-row:active{background:var(--surface-2)}.pt-headline{background:var(--surface-2);font-size:.8rem;font-weight:800}.pt-head{text-align:center}.pt-name{text-overflow:ellipsis;white-space:nowrap;font-weight:700;overflow:hidden}.pt-cell{text-align:center;border-radius:8px;flex-direction:column;align-items:center;padding:2px 0;font-size:.95rem;display:flex}.pt-cell.empty{color:var(--muted)}.pt-cell.best{background:var(--ok-soft);color:var(--ok)}.pt-cell.old,.sub.old{opacity:.55}.pt-sub{color:var(--muted);white-space:nowrap;font-size:.68rem}.price-per{font-size:1.05rem}.unit-label{align-self:center;padding:0 4px;font-weight:700}.totals{grid-template-columns:1fr auto auto;gap:4px 12px;font-size:.95rem;display:grid}.totals .best{color:var(--ok);font-weight:800}.best-store{color:var(--ok);font-weight:700}.price-btn{cursor:pointer;background:0 0;border:0;flex:none;padding:8px 12px;font-size:1.3rem}.slot-grid{flex-direction:column;gap:6px;display:flex}.slot-row{align-items:center;gap:8px;display:flex}.slot-day{width:72px;font-size:.9rem;font-weight:700}.seg3 button{padding-left:4px;padding-right:4px;font-size:.85rem}.suggest-slot{align-items:flex-start;gap:8px;padding:6px 0;display:flex}.suggest-slot+.suggest-slot{border-top:1px solid var(--line)}.suggest-slot p{margin:0}.slot-actions{flex:none;display:flex}.slot-actions .icon-btn{width:38px;height:38px;font-size:1.05rem}.slot-actions .icon-btn.on{background:var(--surface-2);border-radius:10px}.suggest-summary p{margin:0}.suggest-slot .name{white-space:normal}.suggest-btn{background:linear-gradient(90deg, var(--surface), var(--surface-2));font-weight:800}
