/* VOICE everyday household tool, used standing in the kitchen
   IDEA the real fridge and pantry, door open, every item on its shelf; the list reads like shelf tags
   PICTURE low-poly 3D fridge, freezer and pantry; out = ghost, low = butter dot, use soon = tomato dot
   COLOUR white ground, basil green header field, butter yellow for low, tomato red for out and use-soon
   TYPE Archivo 800 for names and figures, Archivo for text
   LAYOUT laptop: kitchen left (sticky), inbox + list right; phone: title, kitchen, inbox, list */
:root{color-scheme:light dark;--bg:light-dark(#ffffff,#0f1713);--ink:light-dark(#16201b,#e9efe9);--muted:light-dark(#55625b,#a5b3aa);--line:light-dark(#dfe5e1,#26352c);--panel:light-dark(#f3f7f4,#152019);--fig:light-dark(#e6eee8,#14211a);--basil:light-dark(#1d5c3f,#173f2d);--butter:#ffd75e;--tomato:light-dark(#c4331d,#ff8166);--focus:light-dark(#1d5c3f,#8fd3ae)}
*{box-sizing:border-box;min-width:0}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:16px/1.5 Archivo,system-ui,sans-serif;overflow-x:clip}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.band{padding-block:clamp(20px,3vw,36px);padding-left:max(4vw,16px);padding-right:max(4vw,16px)}
header{background:var(--basil);color:#fff}
.hd{max-width:1240px;margin:0 auto;display:flex;flex-wrap:wrap;gap:16px 24px;align-items:end;justify-content:space-between}
h1{margin:0;font-size:clamp(34px,5vw,48px);line-height:1.05;letter-spacing:-.02em;font-weight:800}
h2{margin:0 0 6px;font-size:20px;line-height:1.2}
.stats{margin:6px 0 0;font-size:16px;color:#d9eee2}
.stats b{color:#fff}
.tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.search{height:44px;width:min(240px,56vw);border-radius:10px;border:1px solid #ffffff55;background:#ffffff1a;color:#fff;padding:0 14px;font-size:16px}
.search::placeholder{color:#d9eee2}
.btn{display:inline-flex;align-items:center;justify-content:center;height:44px;min-width:44px;padding:0 18px;border-radius:10px;border:1px solid var(--line);background:var(--bg);font-weight:600;font-size:16px;text-decoration:none;white-space:nowrap}
.btn.solid{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.btn.small{height:40px;padding:0 12px;font-size:15px}
header .btn{background:#fff;color:#16201b;border-color:#fff}
header .ghostbtn{background:transparent;color:#fff;border-color:#ffffff66}
.narrow{max-width:560px;margin:0 auto}
.card{background:var(--panel);border-radius:16px;padding:20px;display:grid;gap:14px}
.card label{display:grid;gap:6px;font-size:15px;color:var(--muted)}
.card input,.card textarea{border-radius:10px;border:1px solid var(--line);background:var(--bg);padding:10px 12px;font-size:16px;color:var(--ink)}
.card input{height:44px}
.help{margin:0;color:var(--muted)}
.err{margin:0;color:var(--tomato);font-weight:600}
main.grid{max-width:1240px;margin:0 auto;display:grid;gap:24px}
.stage{position:relative;background:var(--fig);border-radius:16px;overflow:hidden;min-height:340px}
@media(min-width:900px){main.grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}.stage{position:sticky;top:16px;height:min(80vh,720px)}}
@media(max-width:899px){.stage{height:360px}}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-y}
.legend{position:absolute;left:12px;bottom:12px;display:flex;flex-wrap:wrap;gap:6px 12px;font-size:13px;background:var(--bg);border-radius:10px;padding:6px 10px}
.legend span{display:inline-flex;align-items:center;gap:6px}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.ghost{width:10px;height:10px;border:1.5px dashed var(--muted);border-radius:2px;display:inline-block}
.nogl{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;color:var(--muted)}
.tell{display:flex;gap:8px;margin-bottom:16px}
.tell input{flex:1;height:48px;border-radius:12px;border:1px solid var(--line);background:var(--bg);padding:0 14px;font-size:16px}
.muse{background:var(--panel);border-radius:14px;padding:14px 16px;margin-bottom:16px}
.muse p{margin:0 0 10px;color:var(--muted);font-size:15px}
.inbox{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.drop{background:var(--bg);border-radius:12px;padding:12px}
.drop .top{display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap}
.drop .top b{font-size:15px}
.drop .when{font-size:13px;color:var(--muted)}
.drop .said{margin:4px 0 8px;font-size:15px;color:var(--muted);overflow-wrap:anywhere}
.props{list-style:none;margin:0 0 10px;padding:0}
.props li{border-top:1px solid var(--line)}
.props label{display:flex;gap:12px;align-items:center;min-height:46px;cursor:pointer;font-size:15px}
.props input{width:22px;height:22px;flex:none;accent-color:var(--basil)}
.ask{display:flex;gap:8px;align-items:center;justify-content:space-between;min-height:50px;flex-wrap:wrap;font-size:15px}
.ask .yn{display:flex;gap:6px}
.ask button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.working{font-size:15px;color:var(--muted)}
.empty-in{font-size:15px;color:var(--muted)}
.linkbtn{background:none;border:0;padding:0 2px;height:44px;text-decoration:underline;color:var(--ink);font-size:15px}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.tab{height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--bg);font-weight:600}
.tab[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.tab small{font-weight:400;opacity:.75;margin-left:4px}
h3{margin:18px 0 6px;font-size:15px;color:var(--muted);font-weight:600}
.list{list-style:none;margin:0;padding:0}
.row{display:grid;grid-template-columns:12px minmax(0,1fr) auto 44px;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.row.flash{background:var(--panel)}
.sw{width:12px;height:36px;border-radius:4px}
.nm b{display:block;font-size:17px;font-weight:600;line-height:1.25}
.nm .sz{font-size:14px;color:var(--muted)}
.chip{display:inline-block;font-size:13px;font-weight:600;border-radius:6px;padding:1px 7px;margin-left:6px;white-space:nowrap}
.chip.out{background:var(--tomato);color:#fff}
.chip.soon{border:1.5px solid var(--tomato);color:var(--tomato)}
.chip.low{background:var(--butter);color:#2a2410}
.step{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px}
.step button{width:40px;height:44px;border:0;background:none;font-size:20px;font-weight:600}
.q{min-width:3.4em;text-align:center;font-weight:800;font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums}
.q small{font-weight:400;font-size:13px;color:var(--muted)}
.q .prob{display:block;font-size:12px;font-weight:400;color:var(--muted);line-height:1}
.ed{width:44px;height:44px;border-radius:10px;border:1px solid transparent;background:none;display:grid;place-items:center}
.ed:hover{border-color:var(--line)}
.editor{background:var(--panel);border-radius:12px;padding:14px;margin:8px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5em,1fr));gap:10px 12px}
.editor label{display:grid;gap:4px;font-size:14px;color:var(--muted)}
.editor input,.editor select{height:44px;border-radius:8px;border:1px solid var(--line);background:var(--bg);padding:0 10px;font-size:16px;color:var(--ink)}
.editor .acts{grid-column:1/-1;justify-content:flex-start}
.editor .del{margin-left:auto;color:var(--tomato)}
.empty{padding:20px 0;color:var(--muted)}
.links{margin-top:22px}
.links ul{list-style:none;margin:0;padding:0}
.links li{padding:8px 0;border-bottom:1px solid var(--line);font-size:15px;overflow-wrap:anywhere}
.links li span{color:var(--muted)}
.dropbox{margin-top:22px;background:var(--panel);border-radius:14px;padding:14px 16px}
.dropbox p{margin:0 0 8px;color:var(--muted);font-size:15px}
.dropbox code{display:block;font-size:13px;overflow-wrap:anywhere;margin-bottom:8px}
.toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:var(--ink);color:var(--bg);border-radius:12px;padding:8px 8px 8px 16px;display:none;align-items:center;gap:12px;z-index:30;max-width:calc(100vw - 32px)}
.toast.on{display:flex}
.toast button{height:40px;border-radius:8px;border:0;background:var(--bg);color:var(--ink);padding:0 14px;font-weight:600}
.or{text-align:center;font-size:14px}
