:root{color-scheme:light dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:light-dark(#20231f,#f1f4ee);background:light-dark(#f5f6f3,#151714);font-synthesis:none}*{box-sizing:border-box}html{scrollbar-gutter:stable}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-frame{--surface: light-dark(#fff, #222520);--soft: light-dark(#eef3ea, #293126);--text: light-dark(#20231f, #f1f4ee);--muted: light-dark(#667064, #b4bdb0);--line: light-dark(#d9ded5, #3c4339);--brand: light-dark(#356b3b, #92c999);--brand-text: light-dark(#fff, #122015);width:min(100%,720px);min-height:100vh;margin:0 auto;background:light-dark(#f5f6f3,#151714);color:var(--text)}.tabs{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);background:var(--surface)}.tabs button{min-height:42px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font-size:.78rem}.tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand)}main{position:relative;padding:0 .45rem .75rem}main[aria-busy=true]{min-height:45vh}main[aria-busy=true]>:not(.startup-loading){visibility:hidden}.startup-loading{position:absolute;inset:4.5rem 0 auto;color:var(--muted);font-size:.85rem;text-align:center}.capture{position:sticky;top:42px;z-index:9;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.35rem;align-items:start;padding:.4rem 0 .25rem;background:light-dark(#f5f6f3,#151714)}.capture.without-store,.capture.search-only{grid-template-columns:minmax(0,1fr)}.capture.voice-enabled{grid-template-columns:auto minmax(0,1fr) 42px}.capture select,.capture textarea{min-height:42px;border:1px solid var(--line);border-radius:.65rem;background:var(--surface);color:var(--text)}.capture select{max-width:8rem;padding:.35rem .5rem;font-size:.82rem;font-weight:600}.capture textarea{width:100%;max-height:7.5rem;resize:none;overflow-y:auto;padding:.6rem .7rem;font-size:1rem;line-height:1.3}.capture-mic-button{display:grid;width:42px;height:42px;place-items:center;padding:0;border:1px solid var(--line);border-radius:.65rem;background:var(--surface);color:var(--brand)}.capture-hint{grid-column:1 / -1;color:var(--muted);font-size:.75rem}.run-button{grid-column:1 / -1;justify-self:end;border:0;background:transparent;color:var(--brand);font-size:.82rem;font-weight:600}.voice-entry-backdrop{position:fixed;z-index:30;inset:0;display:grid;place-items:stretch;overflow-y:auto;background:var(--surface)}.voice-entry-screen{display:flex;width:min(100%,36rem);min-height:100dvh;margin:0 auto;padding:max(1rem,env(safe-area-inset-top)) 1rem max(1rem,env(safe-area-inset-bottom));flex-direction:column;background:var(--surface)}.voice-entry-screen header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.voice-entry-screen h2{margin:0;font-size:1.25rem}.voice-entry-screen header p{margin:.25rem 0 0;color:var(--muted);font-size:.85rem}.voice-store-picker{display:flex;align-items:center;gap:.4rem;margin-top:.35rem;color:var(--muted);font-size:.8rem}.voice-store-picker select{min-width:0;max-width:13rem;height:34px;border:1px solid var(--line);border-radius:.45rem;background:var(--soft);color:var(--text)}.voice-entry-screen header button{display:grid;width:42px;height:42px;place-items:center;padding:0;border:0;background:transparent;color:var(--muted)}.voice-microphone-control{display:flex;align-items:center;flex-direction:column;gap:.7rem;margin:clamp(1.5rem,6vh,3.5rem) 0 1.25rem;color:var(--muted);font-weight:650}.voice-microphone-button{position:relative;display:grid;width:76px;height:76px;place-items:center;padding:0;border:2px solid var(--line);border-radius:50%;background:var(--soft);color:var(--muted)}.voice-microphone-control.is-listening{color:var(--brand)}.voice-microphone-control.is-listening .voice-microphone-button{border-color:var(--brand);background:var(--brand);color:var(--brand-text)}.voice-microphone-control.is-listening .voice-microphone-button:before{position:absolute;inset:-9px;border:2px solid var(--brand);border-radius:50%;content:"";animation:voice-ring-pulse 1.5s ease-in-out infinite;pointer-events:none}.voice-transcript{width:100%;min-height:8rem;padding:1.25rem;border:1px solid var(--line);border-radius:.85rem;background:var(--soft);color:var(--text);font-size:clamp(1.25rem,6vw,1.75rem);line-height:1.3;text-align:center;resize:vertical}.voice-transcript.is-empty{color:var(--muted);font-size:1rem}.voice-message{margin:.75rem 0 0;text-align:center;font-size:.85rem}.voice-message{color:var(--muted)}.voice-session-items{margin-top:1.25rem}.voice-session-items h3{margin:0 0 .5rem;font-size:.85rem;color:var(--muted)}.voice-session-list{display:grid;max-height:min(19rem,38dvh);gap:.45rem;padding-right:.15rem;overflow-y:auto;overscroll-behavior:contain}.voice-session-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:.65rem;background:var(--soft)}.voice-session-row input{min-width:0;height:40px;padding:.45rem .6rem;border:1px solid var(--line);border-radius:.55rem;background:var(--soft);color:var(--text)}.voice-session-row>.voice-session-name{width:100%;height:44px;border:0;border-radius:0;background:transparent}.voice-session-controls{display:grid;grid-template-columns:minmax(0,1fr) auto 38px 38px;align-items:center;gap:.35rem;padding:.35rem .4rem;border-top:1px solid var(--line)}.voice-session-controls select{min-width:0;height:38px;border:1px solid var(--line);border-radius:.5rem;background:var(--soft);color:var(--text)}.voice-session-row button{display:grid;width:38px;height:38px;place-items:center;padding:0;border:1px solid var(--line);border-radius:.55rem;background:transparent;color:var(--muted)}.voice-session-row .voice-session-maybe{color:var(--muted);font-weight:750}.voice-session-row .voice-session-maybe.is-maybe{border-color:light-dark(#b88a23,#b98f31);color:light-dark(#946400,#ffd45c);background:light-dark(#fff8df,#3a321c)}.voice-quantity-field{display:flex;align-items:center;gap:.2rem;color:var(--muted);font-size:.7rem}.voice-quantity-field input{width:3.6rem;height:38px;padding:.3rem;text-align:center}.voice-entry-actions{display:grid;gap:.65rem;margin-top:auto;padding-top:1.5rem}.voice-entry-actions button{min-height:50px;border-radius:.75rem;font-size:1rem;font-weight:650}.voice-add-button{border:0;background:var(--brand);color:light-dark(#fff,#102016)}.voice-add-button:disabled{opacity:.4}.voice-retry-button{display:flex;align-items:center;justify-content:center;gap:.4rem;border:1px solid var(--line);background:var(--soft);color:var(--text)}.voice-done-button{border:0;background:transparent;color:var(--muted)}.voice-privacy{margin:.75rem auto 0;color:var(--muted);font-size:.7rem;line-height:1.35;text-align:center}@keyframes voice-ring-pulse{0%,to{transform:scale(.92);opacity:.35}50%{transform:scale(1.12);opacity:.9}}@media(prefers-reduced-motion:reduce){.voice-microphone-control.is-listening .voice-microphone-button:before{animation:none}}.shop-view-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:28px;padding:0 0 .25rem}.shop-view-toolbar>button{display:flex;align-items:center;gap:.2rem;min-height:28px;padding:0 .35rem;border:0;border-radius:.4rem;background:transparent;color:var(--brand);font-size:.78rem;font-weight:650}.account-status,.account-button{display:flex;align-items:center;gap:.25rem;min-width:0;min-height:28px;padding:0 .35rem;border:0;background:transparent;color:var(--muted);font-size:.72rem}.account-button>span{max-width:min(12rem,46vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-button small{color:var(--brand);font-size:.65rem}.sync-dots{display:inline-flex;width:.8rem}.sync-dots span{opacity:.2;animation:sync-dot 1.2s infinite}.sync-dots span:nth-child(2){animation-delay:.2s}.sync-dots span:nth-child(3){animation-delay:.4s}@keyframes sync-dot{0%,20%{opacity:.2}45%,65%{opacity:1}90%,to{opacity:.2}}@media(prefers-reduced-motion:reduce){.sync-dots span{opacity:1;animation:none}}.local-status{cursor:default}.account-detail{margin:.25rem .2rem .75rem;color:var(--muted);font-size:.85rem}.account-form{display:grid;gap:.5rem;padding:.25rem}.account-form label{color:var(--muted);font-size:.78rem}.account-form input{min-height:42px;border:1px solid var(--line);border-radius:.5rem;background:var(--surface);color:var(--text);padding:.5rem .6rem}.action-sheet .account-form .auth-submit{justify-content:center;border:0;border-radius:.5rem;background:var(--brand);color:var(--brand-text);font-weight:650}.account-form p{margin:.1rem 0;color:var(--muted);font-size:.78rem}.action-sheet .account-form .google-auth{justify-content:center;border:1px solid light-dark(#747775,#8e918f);border-radius:.5rem;background:light-dark(#fff,#131314);color:light-dark(#1f1f1f,#e3e3e3);font-family:Google Sans,Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500}.google-auth img{width:28px;height:28px}.account-form .auth-privacy{line-height:1.35}.auth-divider{display:flex;align-items:center;gap:.5rem;color:var(--muted);font-size:.7rem;text-transform:uppercase}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:var(--line)}.auth-divider span{white-space:nowrap}.list-section{margin-bottom:.3rem;overflow:hidden;border:1px solid var(--line);border-radius:.55rem;background:var(--surface)}.section-header{display:grid;grid-template-columns:minmax(0,1fr) 38px 38px;min-height:38px}.section-toggle,.icon-button,.weekly-heading{border:0;background:transparent;color:var(--text)}.section-toggle{display:flex;align-items:center;gap:.45rem;min-width:0;padding:.3rem .5rem;text-align:left;font-weight:600}.section-toggle small,.weekly-heading small{margin-left:auto;color:var(--muted);font-size:.78rem;font-weight:400;white-space:nowrap}.collapsed-icon{transform:rotate(-90deg)}.icon-button{display:grid;place-items:center;border-left:1px solid var(--line);color:var(--muted)}.add-button{color:var(--brand)}.section-body{border-top:1px solid var(--line)}.shopping-row{position:relative;display:grid;grid-template-columns:29px minmax(0,1fr) 32px 32px;min-height:35px;border-top:1px solid var(--line);background:var(--surface)}.shopping-row:first-child{border-top:0}.shopping-row>input{align-self:center;width:18px;height:18px;margin:0 0 0 .4rem;accent-color:var(--brand)}.shopping-row button{border:0;background:transparent;color:var(--muted)}.shopping-row .item-name{display:flex;align-items:center;gap:.2rem;min-width:0;padding:0 .35rem;overflow:hidden;color:var(--text);font-size:.88rem;text-align:left;white-space:nowrap}.shopping-row .drag-handle,.shopping-row .row-actions{display:grid;place-items:center;padding:0}.shopping-row .drag-handle{touch-action:none;cursor:grab}.shopping-row .drag-handle:active{cursor:grabbing}.shopping-row.completed .item-label{color:var(--muted);text-decoration:line-through}.item-label{min-width:0;overflow:hidden;text-overflow:ellipsis}.maybe-indicator{flex:0 0 auto;color:light-dark(#946400,#ffd45c);font-size:.75rem;font-weight:650;line-height:1}.quantity-indicator{flex:0 0 auto;color:var(--muted);font-size:.75rem;font-weight:650}.maybe-heading{color:light-dark(#855900,#ffd45c)}.maybe-action-icon{display:inline-grid;width:17px;place-items:center;color:light-dark(#946400,#ffd45c);font-weight:650}.shopping-row.dragging{z-index:2;opacity:.78;box-shadow:0 3px 12px #0000002e}.group-heading{padding:.2rem .5rem;background:var(--soft);color:var(--muted);font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.return-heading{color:light-dark(#8a4c16,#ffc078)}.empty-list{padding:.45rem .55rem;color:var(--muted);font-size:.8rem}.all-items-view{margin-bottom:.3rem}.aggregate-list{margin-bottom:.3rem;overflow:hidden;border:1px solid var(--line);border-radius:.55rem;background:var(--surface)}.aggregate-heading{margin-top:.1rem}.aggregate-row{display:grid;grid-template-columns:29px minmax(0,1fr) auto 32px;min-height:35px;align-items:center;border-top:1px solid var(--line);background:var(--surface)}.aggregate-row:first-child{border-top:0}.aggregate-row>input{width:18px;height:18px;margin:0 0 0 .4rem;accent-color:var(--brand)}.aggregate-row button{border:0;background:transparent;color:var(--muted)}.aggregate-row .item-name{display:flex;align-items:center;gap:.2rem;min-width:0;height:35px;padding:0 .35rem;overflow:hidden;color:var(--text);font-size:.88rem;text-align:left;white-space:nowrap}.aggregate-row .row-actions{display:grid;place-items:center;width:32px;height:35px;padding:0}.aggregate-row.completed .item-label{color:var(--muted);text-decoration:line-through}.store-tag{align-self:center;max-width:7.5rem;padding:.12rem .35rem;overflow:hidden;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.68rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.unassigned-tag{color:light-dark(#7a5512,#f2c66d)}.aggregate-edit{border-top:1px solid var(--line)}.aggregate-edit:first-child{border-top:0}.inline-add{display:grid;grid-template-columns:minmax(0,1fr) 38px 38px;gap:.2rem;padding:.25rem;background:var(--soft)}.inline-add input{min-width:0;min-height:38px;border:1px solid var(--line);border-radius:.5rem;background:var(--surface);color:var(--text);padding:.4rem .55rem;font-size:1rem}.inline-add button{display:grid;place-items:center;border:0;border-radius:.45rem;background:transparent;color:var(--muted)}.inline-add button:first-of-type{background:var(--brand);color:var(--brand-text)}.inline-edit{border-top:1px solid var(--line)}.item-inline-edit{grid-template-columns:4rem minmax(0,1fr) 38px 38px}.item-inline-edit .quantity-input{padding-inline:.2rem;text-align:center}.weekly-header{display:grid;grid-template-columns:minmax(0,1fr) 38px}.weekly-heading{display:flex;align-items:center;gap:.4rem;width:100%;min-height:38px;padding:.35rem .55rem;text-align:left;font-weight:600}.weekly-header .icon-button{border-left:1px solid var(--line)}.meals-page-section{margin-top:.35rem}.meals-page-section .weekly-heading{cursor:default}.meal-row{padding:.38rem .55rem;border-top:1px solid var(--line)}.meal-row strong,.meal-row small{display:block}.meal-row strong{font-size:.88rem}.meal-row small{margin-top:.05rem;color:var(--muted);font-size:.75rem}.editable-meal-row{display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;min-height:48px;padding:0;align-items:stretch}.editable-meal-row .meal-copy{min-width:0;padding:.38rem .55rem;border:0;background:transparent;color:var(--text);text-align:left}.editable-meal-row .meal-copy strong,.editable-meal-row .meal-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editable-meal-row .drag-handle,.editable-meal-row .row-actions{display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--muted)}.editable-meal-row .drag-handle{touch-action:none;cursor:grab}.meal-form{display:grid;gap:.45rem;padding:.2rem .15rem .35rem}.meal-form label{color:var(--muted);font-size:.78rem}.meal-form label span{font-weight:400}.meal-form input{min-height:42px;border:1px solid var(--line);border-radius:.5rem;background:var(--surface);color:var(--text);padding:.5rem .6rem;font-size:1rem}.action-sheet .meal-form .meal-save{justify-content:center;margin-top:.2rem;border:0;border-radius:.5rem;background:var(--brand);color:var(--brand-text);font-weight:650}.dialog-scrim{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center;background:#00000073}.action-sheet{width:min(100%,720px);padding:.75rem;border-radius:1rem 1rem 0 0;background:var(--surface)}.action-sheet h2{margin:0 .25rem .5rem;font-size:1rem}.action-sheet button{display:flex;align-items:center;gap:.55rem;width:100%;min-height:48px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--text);text-align:left}.action-sheet button strong{margin-left:auto;color:var(--brand)}.action-sheet button:last-child{justify-content:center;margin-top:.25rem;border:0;border-radius:.5rem;background:var(--soft);text-align:center}.action-sheet button:disabled{color:var(--muted);cursor:default}.action-sheet .danger-action{color:light-dark(#a92c2c,#ff9690)}.action-sheet .quantity-action{display:grid;grid-template-columns:minmax(0,1fr) 48px 2.5rem 48px;min-height:52px;align-items:center;border-top:1px solid var(--line)}.action-sheet .quantity-action>button{display:grid;width:42px;min-height:42px;margin:0;place-items:center;padding:0;border:1px solid var(--line);border-radius:.5rem;background:transparent;font-size:1.25rem;text-align:center}.action-sheet .quantity-action>strong{text-align:center}.placeholder-view{padding:1rem .5rem}.placeholder-view h1{margin:0;font-size:1.1rem}.placeholder-view p{color:var(--muted)}.snackbar{position:fixed;z-index:40;right:max(.75rem,calc((100vw - 720px)/2 + .75rem));bottom:.75rem;left:max(.75rem,calc((100vw - 720px)/2 + .75rem));display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:46px;padding:.5rem .65rem .5rem .85rem;border-radius:.65rem;background:light-dark(#252923,#eef3ea);color:light-dark(#fff,#20231f);box-shadow:0 5px 18px #00000038;font-size:.84rem}.snackbar button{display:flex;align-items:center;gap:.3rem;min-height:34px;padding:0 .55rem;border:0;border-radius:.45rem;background:transparent;color:inherit;font-weight:700}@media(min-width:721px){.app-frame{border-inline:1px solid var(--line)}main{padding-inline:.75rem}}
