:root{--bg:#f7f5f0;--surface:#fff;--text:#1f2620;--muted:#667066;--border:#e2ded4;--accent:#2f6b3b;--accent-text:#fff;--danger:#b3261e;--warn-bg:#fff4d6;--blue:#1a73e8;--orange:#e08a00;--sky:#3a9ad9;--violet:#8b6ee8;--radius:12px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.4}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#141814;--surface:#1e241f;--text:#e8ece8;--muted:#9aa59b;--border:#2f3830;--accent:#6fbf7e;--accent-text:#0d1a10;--danger:#ff8a80;--warn-bg:#3a3315;--blue:#4d9bff;--orange:#ffa726;--sky:#7cc4f5;--violet:#a58bff}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);margin:0}body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}h1{margin:0;font-size:1.4rem}h2{margin:0;font-size:1.1rem}.screen{flex-direction:column;gap:16px;max-width:640px;margin:0 auto;padding:16px;display:flex}.screen.narrow{max-width:440px}.screen.center{justify-content:center;align-items:center;min-height:80vh}.brand{text-align:center;margin-top:24px}.brand img{border-radius:14px}.topbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.grow{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.stack{flex-direction:column;gap:12px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row.between{justify-content:space-between}label{color:var(--muted);flex-direction:column;gap:4px;font-size:.9rem;display:flex}input[type=text],input[type=email],input[type=password],input:not([type]){font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;width:100%;padding:12px;font-size:16px}input:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:10px;min-height:44px;padding:12px 16px}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}button.link{color:var(--accent);background:0 0;border:none;min-height:0;padding:8px 4px}a.link{color:var(--accent)}button.link.danger,.danger{color:var(--danger)}button.icon{color:var(--muted);background:0 0;border:none;padding:8px 12px}.muted{color:var(--muted);margin:0}.small{font-size:.85rem}.error{color:var(--danger);margin:0}.notice{background:var(--surface);border:1px solid var(--border);border-radius:10px;margin:0 0 12px;padding:12px}.shot-list{margin:0;padding:0;list-style:none}.info{color:var(--accent);margin:0}.cards{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.list-link{color:inherit;font-size:1.05rem;font-weight:600;text-decoration:none;display:block}.add-bar{gap:8px;display:flex}.add-bar.sticky{z-index:1;background:var(--bg);padding:8px 0;position:sticky;top:0}.add-bar button{min-width:52px}.add-bar.sticky button{font-size:1.3rem;line-height:1}.items{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin:0;padding:0;list-style:none}.items:empty{display:none}.item{border-bottom:1px solid var(--border);align-items:center;display:flex}.item:last-child{border-bottom:none}.item label{color:var(--text);cursor:pointer;flex-direction:row;flex:1;align-items:center;gap:12px;padding:12px 16px;font-size:1rem}.item input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent);flex-shrink:0}.item-text{flex-wrap:wrap;align-items:baseline;gap:0 8px;display:flex}.qty{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, transparent);border-radius:6px;padding:0 6px;font-weight:600}.items.done .qty{color:inherit;background:0 0;padding:0}.item .icon.edit{color:var(--muted);min-width:44px;min-height:44px}.item.editing{padding:8px 12px}.item-edit{flex-direction:column;flex:1;gap:4px;display:flex}.item-edit .row{gap:8px}.item-edit input{flex:1;min-width:0}.parse-preview{align-items:baseline;gap:8px;margin:0 0 8px;font-size:.9rem;display:flex}.item-edit .parse-preview{margin:0}.parse-preview .item-text{display:inline-flex}.item-recipe{width:100%;color:var(--violet);text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;display:block;overflow:hidden}.item-recipe a{color:inherit;margin:-6px -4px;padding:6px 4px;text-decoration:none}.items.done .item-recipe{color:inherit}.item-recipe a:hover,.item-recipe a:focus-visible{text-decoration:underline}.note{width:100%;color:var(--muted);font-size:.85rem}.items.done .item-text{color:var(--muted);text-decoration:line-through}.section-head{margin-bottom:4px}.list-actions{justify-content:space-between;margin-top:24px;display:flex}.sync{text-align:center;width:24px;font-size:.9rem}.sync.synced{color:var(--accent)}.sync.pending{color:#d99a00}.banner{text-align:center;padding:8px 16px;font-size:.9rem}.banner.offline{background:var(--warn-bg)}.banner.stale{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.banner.stale button{font-weight:600}.banner.error{background:var(--danger);color:#fff}.toast{left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);z-index:100;flex-wrap:wrap;align-items:center;gap:8px;max-width:480px;margin:0 auto;padding:12px 16px;display:flex;position:fixed;box-shadow:0 4px 24px #00000026}.toast span{flex:1}.pulse{border-radius:14px;animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.5}}@media (prefers-reduced-motion:reduce){.pulse{animation:none}}ul.plain{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}ul.plain .grow{white-space:normal;overflow-wrap:anywhere}select{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;min-height:44px;padding:8px 12px;font-size:16px}.category{margin-bottom:12px}.category-head{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0 4px 4px;font-size:.8rem;font-weight:600}.category-chip{color:var(--muted);border:1px solid var(--border);white-space:nowrap;border-radius:8px;flex-shrink:0;margin-right:8px;padding:6px 8px;font-size:.75rem;position:relative}.category-chip select{opacity:0;cursor:pointer;width:100%;height:100%;min-height:0;padding:0;position:absolute;inset:0}.store-picker{flex-direction:row;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;display:flex}.list-link{align-items:center;gap:8px;display:flex}.store-tag{font-size:.8rem;font-weight:400}textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);resize:vertical;border-radius:10px;width:100%;padding:12px;font-size:16px}input[type=number],input[type=url],input[type=search]{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;width:100%;padding:12px;font-size:16px}.dashboard-head{padding:12px 0 8px}.menu-anchor{position:relative}.household-switcher{min-width:0}.household-name{max-width:100%;color:var(--text);background:0 0;border:none;align-items:center;gap:4px;padding:4px 0;display:flex}.household-name h1{text-overflow:ellipsis;white-space:nowrap;font-size:1.9rem;font-weight:700;overflow:hidden}.avatar{border:2px solid var(--violet);background:linear-gradient(135deg, var(--violet), var(--sky));color:#fff;border-radius:50%;flex-shrink:0;width:48px;height:48px;min-height:0;padding:0;font-size:1.05rem;font-weight:700}.menu{z-index:10;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;min-width:220px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 8px 32px #00000040}.menu.right{left:auto;right:0}.menu button,.menu-item{text-align:left;color:var(--text);background:0 0;border:none;border-radius:8px;padding:10px 12px}.menu button:hover{background:var(--bg)}.menu button.link{color:var(--danger);padding:10px 12px}.menu-item.active{color:var(--accent);font-weight:600}.menu-head{border-bottom:1px solid var(--border);overflow-wrap:anywhere;flex-direction:column;margin-bottom:4px;padding:8px 12px 10px;display:flex}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none;display:grid}.tile{background:var(--surface);border:1px solid var(--border);min-width:0;min-height:150px;color:var(--text);border-radius:18px;flex-direction:column;gap:2px;padding:16px;text-decoration:none;transition:transform .1s;display:flex;position:relative}.tile:active{transform:scale(.98)}.tile-title{overflow-wrap:anywhere;font-size:1.25rem;font-weight:700}.tile-status{color:var(--muted);padding-right:4px;font-size:.95rem}.tile-icon{line-height:0;position:absolute;bottom:12px;right:14px}.tone-blue{color:var(--blue)}.tone-orange{color:var(--orange)}.tone-sky{color:var(--sky)}.recipe-title{overflow-wrap:anywhere;font-size:1.7rem}.steps{counter-reset:step;white-space:pre-wrap;overflow-wrap:anywhere;flex-direction:column;gap:10px;margin:0;padding-left:1.4em;list-style:none;display:flex}.steps li:not(.section-heading){counter-increment:step}.steps li:not(.section-heading):before{content:counter(step) ". ";min-width:1.4em;margin-left:-1.4em;display:inline-block}.section-heading{margin-top:8px;font-weight:600}.steps .section-heading{margin-left:-1.4em}.check-row{color:var(--text);cursor:pointer;flex-direction:row;align-items:center;gap:10px;padding:4px 0;font-size:1rem}.check-row input{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}.check-row span{overflow-wrap:anywhere}.inline-link{color:inherit;font-weight:600}.recipe-hero{background:var(--surface);border-bottom:1px solid var(--border);flex-direction:column;justify-content:space-between;min-height:240px;margin:-16px -16px 0;display:flex;position:relative;overflow:hidden}.recipe-hero img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.recipe-hero:not(.no-photo):after{content:"";background:linear-gradient(#00000059,#0000 35% 45%,#000000bf);position:absolute;inset:0}.recipe-hero.no-photo{background:0 0;border-bottom:none;min-height:0}.recipe-hero-bar,.recipe-hero-text{z-index:1;padding:12px 16px;position:relative}.recipe-hero-bar{padding-top:calc(12px + env(safe-area-inset-top));align-items:center;display:flex}.recipe-hero-text{flex-direction:column;gap:2px;padding-bottom:16px;display:flex}.recipe-hero:not(.no-photo) .recipe-hero-text{color:#fff;text-shadow:0 1px 6px #00000080}.recipe-hero .recipe-title{margin:0;line-height:1.15}a.button-link{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);text-align:center;border-radius:10px;justify-content:center;align-items:center;padding:12px 16px;text-decoration:none;display:inline-flex}.ig-embed{width:100%;max-width:480px;margin:0 auto;container-type:inline-size}.ig-embed iframe{background:#fff;border:0;border-radius:10px;width:100%;height:calc(125cqw + 210px);display:block}.recipe-source{color:inherit;opacity:.85;align-self:flex-start;font-size:.9rem;text-decoration:none}.recipe-hero.no-photo .recipe-source{color:var(--muted)}button.round{color:#fff;background:#0000008c;border:none;border-radius:999px;width:44px;height:44px;padding:0;font-size:1.6rem;line-height:1}button.round.text{width:auto;padding:0 16px;font-size:.95rem}.recipe-hero.no-photo button.round{background:var(--surface);color:var(--text);border:1px solid var(--border)}.recipe-description{overflow-wrap:anywhere;margin:0;font-size:1.05rem;line-height:1.45}ul.recipe-facts{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:8px;display:grid}ul.recipe-facts .small{font-size:.75rem}.recipe-facts li{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;align-items:center;gap:2px;padding:10px 4px;display:flex}ul.chips{flex-flow:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:6px 14px;font-size:.9rem}.edit-photo{object-fit:cover;border-radius:var(--radius);width:100%;max-height:200px}.time-fields{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.recipe-thumb{object-fit:cover;border-radius:10px;flex-shrink:0;width:48px;height:48px}ul.recipe-facts strong{white-space:nowrap}.photo-field{flex-direction:column;gap:8px;display:flex}.admin-household h3,.admin-household h4{margin:0}.admin-invite-email{overflow-wrap:anywhere;flex-basis:100%}
