/* Shared home-first design: deep petrol, clear type and open working space. */
:root{--green:#176251;--green-dark:#104b3e;--mint:#e8f3ee;--ink:#243c35;--muted:#63736c;--line:#dfe7e2;--bg:#f5f7f4}
body{line-height:1.5}main{max-width:1140px;padding-top:32px}.topbar{max-width:1140px;height:86px}.brand{gap:10px}.brand span{font-weight:700}.location{font-size:.875rem}.sync-status{max-width:1140px;min-height:24px;padding:6px 32px;font-size:.8125rem}.sync-status .text-button{font-size:.8125rem}.sync-status:has(>span:only-child){color:var(--muted)}
.home-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.home-heading .eyebrow{font-size:.875rem;letter-spacing:.03em;text-transform:capitalize;margin-bottom:10px}.home-heading h1{font-size:clamp(1.85rem,3.5vw,2.65rem);letter-spacing:-1.1px;line-height:1.2}.home-heading p{color:var(--muted);margin-top:8px}.history-link{display:flex;gap:8px;align-items:center;min-height:44px;color:var(--muted);font-size:.875rem}.home-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:28px}.home-primary,.home-secondary{min-width:0}.home-secondary{display:flex;flex-direction:column;gap:22px}
.command-box.voice-first{background:#174f43;color:#fff;border:0;border-radius:24px;padding:28px;margin:0 0 26px;box-shadow:0 9px 25px #143e3610}.voice-main{display:flex;align-items:center;justify-content:space-between;gap:20px}.voice-eyebrow{color:#c0ded2;font-size:.75rem;letter-spacing:.11em;font-weight:500}.voice-main h2{font-size:1.9rem;font-weight:550;letter-spacing:-.8px;margin:10px 0 8px}.voice-main p{font-size:1rem;line-height:1.55;color:#e0eee8;max-width:32ch}.voice-orb{border-radius:50%;width:86px;height:86px;min-width:86px;display:grid;place-items:center;background:#e2f4af;color:#244b38;box-shadow:0 0 0 8px #ffffff0a;transition:transform .18s,box-shadow .18s}.voice-orb:hover{transform:scale(1.05);box-shadow:0 0 0 10px #ffffff12}.voice-orb svg{width:32px;height:32px}.voice-caption{color:#c0ded2;font-size:.875rem;margin:20px 0 18px}.voice-first form{border:1px solid #ffffff30;border-radius:13px;background:#ffffff0d;padding:5px;display:flex;align-items:center;gap:6px}.voice-first input:not([type=checkbox]){background:transparent;border:0;color:white;margin:0;min-height:44px;padding:9px 10px;font-size:1rem}.voice-first input::placeholder{color:#c5dcd1;opacity:1}.command-send{background:#ffffff18;color:#fff;border-radius:9px;min-width:42px;min-height:42px;font-size:1.4rem}.command-send:hover{background:#ffffff30}.voice-first .voice-state{color:#e0eee8;font-size:.875rem;margin:10px 0 0}.voice-first .voice-state:empty{display:none}.voice-first .command-reply{background:white;color:var(--ink);font-size:1rem;margin-top:16px}.stop-symbol{width:23px;height:23px;border-radius:5px;background:currentColor}.is-listening .voice-orb{animation:breathe 1.8s ease-in-out infinite;background:#fff0b4}.handsfree-toggle{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:.875rem;font-weight:400;color:#e0eee8}@keyframes breathe{50%{box-shadow:0 0 0 15px #ffffff18}}
.daily-checkin{display:flex;align-items:flex-start;gap:15px;background:#edf1e8;border:1px solid #e0e7d9;padding:20px 22px;border-radius:18px;margin-bottom:28px}.checkin-icon{color:#617a37;padding-top:3px}.daily-checkin h2{font-size:1.1rem;margin-bottom:5px}.daily-checkin p{color:var(--muted);font-size:.9375rem}.daily-checkin .text-button{padding-bottom:0;margin-right:20px}.secondary-text{color:var(--muted)}.home-stock .section-heading{margin-bottom:14px}.home-stock h2{font-size:1.25rem}.shelf-list{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff}.shelf-row{display:flex;align-items:center;gap:16px;min-height:96px;padding:18px 20px;border-bottom:1px solid var(--line);transition:background .15s}.shelf-row:last-child{border:0}.shelf-row:hover{background:#f8faf7}.shelf-icon{width:52px;height:52px;min-width:52px;border-radius:15px;display:grid;place-items:center;background:#eaf1e4;color:#526d31}.shelf-icon svg{width:26px;height:26px}.shelf-icon.medical{background:#f8eae6;color:#9e5c4d}.shelf-icon.home{background:#edf0f8;color:#666ea1}.shelf-copy{flex:1;min-width:0}.shelf-copy strong{display:block;font-size:1.05rem}.shelf-copy small{display:block;font-size:.875rem;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shelf-count{font-size:.9375rem;color:var(--muted)}.shelf-row>svg{width:16px;color:#819186}.start-hint{color:var(--muted);font-size:.875rem;line-height:1.7;margin:18px 6px}.attention-card{border:1px solid var(--line);background:#fff;border-radius:22px;padding:25px}.attention-card>.eyebrow{display:flex;align-items:center;gap:8px;letter-spacing:.08em;font-size:.75rem;color:#67765d}.attention-card h2{font-size:1.35rem;margin-bottom:10px}.attention-card>p{color:var(--muted);font-size:.9375rem}.calm-mark{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#edf4e7;color:#58783a;font-size:1.35rem;margin-top:20px}.expiry-item{width:100%;text-align:left;display:flex;gap:10px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line)}.expiry-item strong{font-size:.9375rem;display:block}.expiry-item small{display:block;font-size:.875rem;color:var(--muted);margin-top:3px}.expiry-label{font-size:.875rem;color:#855c20;flex-shrink:0}.expiry-label.overdue{color:#ab4238}.recipe-teaser{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;display:block}.recipe-teaser img{display:block;width:100%;height:170px;object-fit:cover}.recipe-teaser>div{padding:22px 24px 17px}.recipe-teaser .eyebrow{font-size:.75rem;letter-spacing:.08em;margin-bottom:8px}.recipe-teaser h2{font-size:1.35rem;line-height:1.4}.recipe-teaser .text-button{margin-top:12px}.cooking-resume{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:22px}.cooking-resume>span{font-size:.875rem;color:var(--muted)}.cooking-resume a{display:flex;justify-content:space-between;gap:10px;margin-top:6px}
.bottom-nav{width:390px;bottom:20px;box-shadow:0 8px 35px #21433912;padding:7px;border-radius:22px;background:#fff}.bottom-nav a{font-size:.875rem;min-height:62px}.bottom-nav a.active{background:#eaf2e9}.site-footer{font-size:.8125rem}.stock-group{border:1px solid var(--line);background:white;border-radius:16px;overflow:hidden;margin-bottom:14px}.stock-group>summary{padding:16px 18px}.stock-zone-count{font-size:.875rem}.stock-row{padding:15px 18px;min-height:76px}.stock-copy strong{font-size:1rem;white-space:normal}.stock-copy small{font-size:.875rem;white-space:normal}.stock-row .qty{font-size:.9375rem;white-space:normal}.stock-mark{width:44px;height:44px}.kitchen-head h1{font-size:2rem}.kitchen-head p{display:block;font-size:1rem}.kitchen-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 16px}.kitchen-tools .kitchen-search{margin:0;flex:1}.kitchen-tools details{position:relative}.kitchen-tools summary{cursor:pointer;min-height:44px;padding:10px;color:var(--muted)}.kitchen-tools details[open]>div{position:absolute;right:0;z-index:5;width:200px;background:#fff;padding:12px;box-shadow:0 8px 25px #0002;border:1px solid var(--line);border-radius:12px}.kitchen-tools details a,.kitchen-tools details button{display:flex}.space-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.space-tabs a{min-height:44px;padding:10px 15px;border-radius:12px;color:var(--muted);font-size:.9375rem}.space-tabs a.selected{background:#e3ede3;color:#244e39;font-weight:550}.space-tabs a:hover{background:#eaf1e8}.back-home{margin-bottom:16px}.form-optional{border-top:1px solid var(--line);padding:16px 0;margin-top:12px}.form-optional summary{cursor:pointer;color:var(--muted);margin-bottom:12px}.modal small,.note,.stock-tag{font-size:.875rem}.modal .field-row{flex-wrap:wrap}.modal .field-row>*{min-width:150px}.stock-mark.cat-medical{background:#f8eae6;color:#9e5c4d}.stock-mark.cat-household{background:#edf0f8;color:#666ea1}
@media(max-width:800px){.home-layout{grid-template-columns:minmax(0,1fr);gap:24px}.home-secondary{display:grid;grid-template-columns:1fr 1fr;align-items:start}.recipe-teaser img{height:145px}.topbar{height:74px}main{padding-top:24px}.home-heading{margin-bottom:24px}.home-heading h1{font-size:2rem}.home-primary .command-box{margin-bottom:22px}}
@media(max-width:520px){main{padding:20px 18px 110px}.topbar{padding:0 18px;height:68px}.location{display:none}.avatar{margin-left:auto;width:40px;height:40px}.sync-status{padding:5px 18px;font-size:.8125rem}.home-heading{gap:10px;align-items:flex-start}.home-heading h1{font-size:1.8rem;line-height:1.2;letter-spacing:-.7px}.home-heading .eyebrow{font-size:.8125rem;margin-bottom:8px}.home-heading p{font-size:.9375rem;max-width:27ch}.history-link{min-width:36px;justify-content:center}.history-link span{display:none}.command-box.voice-first,.command-box.voice-first.tight{padding:22px 18px;border-radius:21px}.voice-main{gap:10px}.voice-main h2{font-size:1.55rem}.voice-main p{font-size:.9375rem;max-width:22ch}.voice-orb{width:72px;height:72px;min-width:72px}.voice-orb svg{width:28px;height:28px}.voice-eyebrow{font-size:.6875rem;letter-spacing:.06em}.voice-caption{font-size:.8125rem;margin:20px 0 13px}.voice-first input:not([type=checkbox]){font-size:1rem;padding:8px 5px}.daily-checkin{padding:18px 16px;gap:11px}.shelf-row{padding:17px 15px;gap:12px;min-height:88px}.shelf-icon{width:44px;height:44px;min-width:44px;border-radius:12px}.shelf-copy small{font-size:.875rem}.home-secondary{display:flex}.attention-card{padding:22px;width:100%}.recipe-teaser{display:grid;grid-template-columns:110px 1fr;width:100%}.recipe-teaser img{height:100%;min-height:190px}.recipe-teaser>div{padding:20px 18px 14px}.recipe-teaser h2{font-size:1.15rem}.recipe-teaser .eyebrow{font-size:.6875rem}.bottom-nav{bottom:0;width:100%;border-radius:20px 20px 0 0;padding:7px 12px max(8px,env(safe-area-inset-bottom))}.bottom-nav a{font-size:.8125rem;min-height:59px}.kitchen-head h1{font-size:1.75rem}.stock-row{padding:14px 12px;gap:10px}.stock-row .qty{max-width:32%}.space-tabs{gap:3px}.space-tabs a{padding:9px 12px}.kitchen-tools{gap:6px}.kitchen-tools summary{padding:10px 5px}.stock-mark{display:none}.sync-status .text-button{min-height:30px}}
@media(prefers-reduced-motion:reduce){.is-listening .voice-orb{animation:none}}
.command-box.voice-first.tight{padding:20px 22px;margin:20px 0}.voice-first.tight .voice-eyebrow,.voice-first.tight .voice-caption{display:none}.voice-first.tight .voice-main h2{font-size:1.35rem;margin:0 0 5px}.voice-first.tight .voice-main p{max-width:none;font-size:.9375rem}.voice-first.tight .voice-orb{width:56px;height:56px;min-width:56px}.voice-first.tight .voice-orb svg{width:25px;height:25px}.voice-first.tight form{margin-top:18px}.voice-first.tight .voice-main{gap:18px}
@media(max-width:520px){.command-box.voice-first.tight{padding:18px}.voice-first.tight .voice-main h2{font-size:1.2rem}.voice-first.tight .voice-main p{font-size:.875rem}.voice-first.tight .voice-orb{width:50px;height:50px;min-width:50px}.voice-first.tight form{margin-top:15px}.kitchen-tools .outline{padding:10px;white-space:nowrap}.kitchen-tools input{padding:11px 9px}}
/* Voice review keeps the original words beside the changes to be confirmed. */
.command-box #k-command-input{display:block;min-width:0;width:100%;resize:vertical;min-height:66px;max-height:240px;border:0;background:transparent;color:inherit;font:inherit;line-height:1.5;padding:14px 16px;box-shadow:none}
.command-box #k-command-input::placeholder{color:#b6d2c6;opacity:1}
.heard-text{margin:18px 0;color:#d9ebe2;font-size:.9rem;line-height:1.5}
.heard-text summary{cursor:pointer;font-weight:650}.heard-text p{margin:8px 0;overflow-wrap:anywhere}
.command-review{margin-top:18px;background:#f9fbf7;color:#243c34;padding:22px;border-radius:20px;line-height:1.5}
.command-review h3{font-size:1.1rem;margin:0 0 12px}.command-review ul{list-style:none;margin:0;padding:0}
.command-review li{padding:12px 0;border-bottom:1px solid #dce7df}.command-review li strong,.command-review li span,.command-review li small{display:block}.command-review li span{font-size:.9rem;color:#53665e}
.command-review p{font-size:.9rem;margin:16px 0}.command-review .review-issue{color:#923f28;font-size:.9rem}.review-actions{display:flex;gap:12px;flex-wrap:wrap}.command-review button:disabled{opacity:.45;cursor:default}.voice-state:empty{display:none}
.command-review .review-fields{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,.9fr);gap:8px;margin-top:8px}
.voice-first .command-review .review-field{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:.75rem;font-weight:650;color:#53665e}
.voice-first .command-review .review-field input,.voice-first .command-review .review-field select{width:100%;margin:0;background:#fff;color:#243c34;border:1px solid #c9d7ce;border-radius:10px;padding:8px 10px;min-height:40px;font-weight:500}
.command-review .review-field.missing,.command-review .review-field.missing span{color:#923f28}
.voice-first .command-review .review-field.missing input,.voice-first .command-review .review-field.missing select{border-color:#c4503a;background:#fff1ee;color:#923f28}
.voice-first .command-review .review-field.missing input::placeholder{color:#c4503a;opacity:1}
@media(max-width:700px){.command-review .review-fields{grid-template-columns:1fr}}
