:root{--cream:#fff4e3;--sand:#f6e3c8;--white:#fff;--ink:#3b2417;--muted:#6b4a38;--tomato:#c8401f;--tomato-dark:#8a2410;--sun:#f9c74f;--urgent-bg:#fbd9cf;--urgent-text:#8a2410;--soon-bg:#ffe2b0;--soon-text:#6b4300;--fine-bg:#d9ebd6;--fine-text:#1f5229;--radius-card:28px;--radius-row:20px;--tab-bar-height:calc(76px + env(safe-area-inset-bottom));--font:"Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif}*{box-sizing:border-box}body{background:var(--cream);min-height:100vh;color:var(--ink);font-family:var(--font);margin:0;font-weight:500}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--ink);outline-offset:2px}.shell{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:100vh;padding:24px;display:flex}.pot{color:var(--tomato);line-height:0}.shell h1{letter-spacing:-.5px;color:var(--tomato);margin:8px 0 0;font-size:44px;font-weight:900}.tagline{margin:0 0 16px;font-size:18px;font-weight:700}.status{border-radius:var(--radius-row);background:var(--white);margin:0;padding:10px 18px;font-size:15px;font-weight:700}.card{border-radius:var(--radius-card);background:var(--white);text-align:left;flex-direction:column;gap:12px;width:100%;max-width:380px;padding:24px;display:flex}.card h2{margin:0;font-size:24px;font-weight:900}.field,.card label{flex-direction:column;gap:4px;font-size:14px;font-weight:800;display:flex}.card input,.card select,.card textarea{border:2px solid var(--sand);background:var(--cream);border-radius:14px;min-height:44px;padding:10px 14px;font-weight:700}.card textarea{resize:vertical}.button-primary,.card button[type=submit]{background:var(--tomato);min-height:48px;color:var(--white);border:none;border-radius:999px;padding:0 20px;font-weight:800}.button-quiet{border:2px solid var(--sand);background:var(--white);border-radius:999px;min-height:44px;padding:0 16px;font-weight:800}.button-danger{color:var(--tomato-dark)}button[disabled]{opacity:.6;cursor:default}.card .link,.link{background:0 0;border:none;min-height:44px;padding:4px 8px;font-size:14px;font-weight:700;text-decoration:underline}.hint{color:var(--muted);margin:0;font-size:13px;font-weight:700}.error{color:var(--tomato-dark);margin:0;font-size:14px;font-weight:800}.kitchen{flex-direction:column;gap:20px;width:100%;max-width:560px;margin:0 auto;padding:32px 24px 220px;display:flex}.kitchen-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.kitchen-header>div{flex:1;min-width:0}.kitchen-header p{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:15px;font-weight:700}.kitchen-header h1{letter-spacing:-.5px;margin:0;font-size:32px;font-weight:900}.use-soon{border-radius:var(--radius-card);background:var(--tomato);color:var(--white);flex-direction:column;gap:12px;padding:18px;display:flex}.use-soon-title{justify-content:space-between;align-items:center;gap:12px;display:flex}.use-soon h2{margin:0;font-size:20px;font-weight:900}.use-soon-count{font-size:14px;font-weight:700}.use-soon ul,.item-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.use-soon-item{background:var(--cream);width:100%;min-height:44px;color:var(--ink);text-align:left;border:none;border-radius:16px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:16px;font-weight:800;display:flex}.use-soon-item span:last-child{color:var(--tomato-dark);flex-shrink:0;font-size:13px}.segments{background:var(--sand);border-radius:26px;gap:4px;padding:4px;display:flex}.segments button{background:0 0;border:none;border-radius:22px;flex:1;min-height:44px;font-size:15px;font-weight:800}.segments button[aria-pressed=true]{background:var(--ink);color:var(--white)}.item-row{align-items:stretch;gap:8px;display:flex}.item-main{border-radius:var(--radius-row);background:var(--white);text-align:left;border:none;flex:1;justify-content:space-between;align-items:center;gap:12px;min-width:0;min-height:64px;padding:12px 16px;display:flex}.item-text{flex-direction:column;gap:2px;min-width:0;display:flex}.item-name{overflow-wrap:anywhere;font-size:17px;font-weight:800}.item-detail{color:var(--muted);font-size:13px;font-weight:700}.item-used{border-radius:var(--radius-row);background:var(--fine-bg);width:56px;color:var(--fine-text);border:none;flex-shrink:0;justify-content:center;align-items:center;display:flex}.chip{white-space:nowrap;border-radius:14px;flex-shrink:0;padding:6px 12px;font-size:13px;font-weight:800}.chip-expired{background:var(--tomato-dark);color:var(--white)}.chip-urgent{background:var(--urgent-bg);color:var(--urgent-text)}.chip-soon{background:var(--soon-bg);color:var(--soon-text)}.chip-fine{background:var(--fine-bg);color:var(--fine-text)}.empty{border-radius:var(--radius-row);background:var(--white);text-align:center;color:var(--muted);margin:0;padding:28px 20px;font-weight:700}.add-button{right:max(24px,50% - 256px);bottom:calc(var(--tab-bar-height) + 20px);border:4px solid var(--cream);background:var(--tomato);width:72px;height:72px;color:var(--white);box-shadow:0 6px 0 var(--tomato-dark);border-radius:24px;justify-content:center;align-items:center;display:flex;position:fixed}.add-button:active{box-shadow:0 2px 0 var(--tomato-dark);transform:translateY(4px)}dialog.sheet{border-radius:var(--radius-card);width:min(420px,100vw - 32px);max-height:calc(100vh - 32px);color:var(--ink);background:0 0;border:none;padding:0}dialog.sheet::backdrop{background:#3b24178c}dialog.sheet .card{max-width:none}.form-row{gap:12px;display:flex}.form-row>*{flex:1;min-width:0}.form-actions{flex-wrap:wrap;gap:8px;display:flex}.form-actions .button-primary{flex:1}.form-secondary{border-top:2px solid var(--sand);flex-wrap:wrap;gap:8px;padding-top:12px;display:flex}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.choice{border:2px solid var(--sand);border-radius:var(--radius-row);background:var(--cream);text-align:left;cursor:pointer;flex-direction:column;gap:2px;width:100%;min-height:64px;padding:14px 18px;display:flex;position:relative}.choice-primary{border-color:var(--tomato);background:var(--urgent-bg)}.choice:focus-within{outline:3px solid var(--ink);outline-offset:2px}.choice-title{font-size:17px;font-weight:900}.choice-detail{color:var(--muted);font-size:14px;font-weight:700}dialog.sheet-wide{width:min(560px,100vw - 24px)}.photo-status{align-items:center;gap:12px;margin:8px 0;font-size:17px;font-weight:800;display:flex}.spinner{border:4px solid var(--sand);border-top-color:var(--tomato);border-radius:50%;flex-shrink:0;width:28px;height:28px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}.review-list{flex-direction:column;gap:10px;max-height:min(56vh,520px);margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.review-row{border-radius:var(--radius-row);background:var(--cream);flex-direction:column;gap:10px;padding:12px;display:flex}.review-row-off{opacity:.55}.review-top{align-items:center;gap:10px;display:flex}.review-top input[type=checkbox]{width:26px;height:26px;min-height:26px;accent-color:var(--tomato);flex-shrink:0;margin:9px}.card .review-name{background:var(--white);flex:1;min-width:0;font-size:17px;font-weight:800}.review-fields{grid-template-columns:1fr 1fr;gap:8px;display:grid}@media (width>=520px){.review-fields{grid-template-columns:.8fr 1fr 1.1fr 1.5fr}}.card .review-fields label{font-size:12px}.card .review-fields input,.card .review-fields select{background:var(--white);width:100%;min-width:0}.review-source{color:var(--muted);margin:0;font-size:12px;font-weight:700}.tab-bar{z-index:5;height:var(--tab-bar-height);padding:8px 16px env(safe-area-inset-bottom);background:var(--white);box-shadow:0 -2px 0 var(--sand);border-radius:28px 28px 0 0;justify-content:center;align-items:flex-start;gap:12px;display:flex;position:fixed;bottom:0;left:0;right:0}.tab-bar button{min-width:112px;height:56px;color:var(--muted);background:0 0;border:none;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:13px;font-weight:800;display:flex}.tab-bar button[aria-current=page]{background:var(--urgent-bg);color:var(--tomato-dark)}.past-date{border-radius:var(--radius-card);background:var(--ink);color:var(--white);flex-direction:column;gap:12px;padding:18px;display:flex}.past-date h2{margin:0;font-size:20px;font-weight:900}.past-date ul{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.past-date-item{background:var(--cream);color:var(--ink);border-radius:18px;flex-direction:column;gap:8px;padding:10px;display:flex}.past-date-name{text-align:left;background:0 0;border:none;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:0 4px;font-size:16px;font-weight:800;display:flex}.past-date-when{color:var(--tomato-dark);flex-shrink:0;font-size:13px}.past-date-actions{flex-wrap:wrap;gap:6px;display:flex}.past-date-actions button{border:2px solid var(--sand);background:var(--white);border-radius:999px;flex:auto;min-height:44px;padding:0 12px;font-size:14px;font-weight:800}.past-date-actions .past-date-primary{border-color:var(--tomato);background:var(--tomato);color:var(--white)}.notice{left:50%;bottom:calc(var(--tab-bar-height) + 108px);z-index:6;background:var(--ink);width:min(512px,100vw - 32px);min-height:56px;color:var(--white);border-radius:20px;align-items:center;gap:8px;padding:8px 8px 8px 18px;font-size:15px;font-weight:800;display:flex;position:fixed;transform:translate(-50%)}.notice span{flex:1}.notice-action{background:var(--soon-bg);min-height:40px;color:var(--ink);border:none;border-radius:999px;padding:0 14px;font-size:14px;font-weight:900}.notice-close{width:40px;height:40px;color:var(--white);background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;display:flex}.shop-add{gap:8px;display:flex}.shop-add input{border:2px solid var(--sand);background:var(--white);border-radius:999px;flex:1;min-width:0;min-height:52px;padding:0 18px;font-size:16px;font-weight:700}.shop-add .button-primary{min-height:52px}.shop-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.shop-row{border-radius:var(--radius-row);background:var(--white);align-items:center;gap:10px;min-height:60px;padding:8px 8px 8px 10px;display:flex}.shop-check{border:3px solid var(--sand);background:var(--cream);width:44px;height:44px;color:var(--fine-text);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.shop-row-done .shop-check{border-color:var(--fine-bg);background:var(--fine-bg)}.shop-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.shop-name{overflow-wrap:anywhere;font-size:17px;font-weight:800}.shop-row-done .shop-name{color:var(--muted);text-decoration:line-through}.shop-detail{color:var(--muted);font-size:13px;font-weight:700}.shop-remove{width:44px;height:44px;color:var(--muted);background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.shop-basket{flex-direction:column;gap:10px;display:flex}.shop-basket-title{justify-content:space-between;align-items:center;display:flex}.shop-basket-title h2{margin:0;font-size:18px;font-weight:900}.shop-basket-title{flex-wrap:wrap;gap:12px}.shop-basket-actions{gap:8px;display:flex}.shop-basket-actions .button-primary{min-height:44px}.use-soon-cook{border:2px solid var(--cream);min-height:44px;color:var(--white);font:inherit;background:0 0;border-radius:22px;padding:10px 16px;font-size:16px;font-weight:900}.recipe-section{flex-direction:column;gap:12px;display:flex}.recipe-section-head h2{margin:0;font-size:22px;font-weight:900}.recipe-section-head .hint{margin:4px 0 0}.recipe-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.recipe-card{border-radius:var(--radius-row);background:var(--white);width:100%;color:var(--ink);font:inherit;text-align:left;box-shadow:0 2px 0 var(--sand);border:none;flex-direction:column;gap:6px;padding:16px 18px;display:flex}.recipe-card-title{font-size:18px;font-weight:900}.recipe-card-summary{color:var(--muted);font-size:15px}.recipe-card-foot{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.recipe-card-tally{color:var(--muted);font-size:14px;font-weight:700}.recipe-ask{flex-direction:column;gap:10px;display:flex}.recipe-ask textarea{box-sizing:border-box;border:2px solid var(--sand);background:var(--white);width:100%;color:var(--ink);font:inherit;resize:vertical;border-radius:18px;padding:12px 14px;font-size:16px}.recipe-detail h2{margin:0}.recipe-detail h3{margin:0 0 8px;font-size:17px;font-weight:900}.recipe-meta{color:var(--muted);margin:4px 0 0;font-weight:700}.ingredient-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.ingredient{background:var(--cream);border-radius:14px;align-items:center;gap:10px;padding:8px 12px;display:flex}.ingredient-mark{border:2px solid var(--sand);border-radius:50%;flex-shrink:0;place-items:center;width:22px;height:22px;display:grid}.ingredient-have .ingredient-mark{border-color:var(--fine-text);background:var(--fine-text);color:var(--white)}.ingredient-need{background:var(--soon-bg)}.ingredient-need .ingredient-mark{border-color:var(--soon-text)}.ingredient-name{flex:1;font-weight:700}.ingredient-amount{color:var(--muted);font-weight:600}.ingredient-status{color:var(--muted);flex-shrink:0;font-size:13px;font-weight:800}.ingredient-need .ingredient-status{color:var(--soon-text)}.recipe-steps{flex-direction:column;gap:8px;margin:0;padding-left:22px;line-height:1.45;display:flex}.recipe-added{background:var(--fine-bg);color:var(--fine-text);border-radius:14px;margin:0;padding:10px 14px;font-weight:800}
