@font-face{font-family:Onest;src:url('/fonts/onest.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Manrope;src:url('/fonts/manrope.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap}
:root{color-scheme:light;--bg:#f7f7fa;--surface:#fff;--text:#191920;--muted:#666676;--accent:#6544e8;--line:#e4e4ec;--soft:#eeeafb;--danger:#b23d43;font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button{border:0}input,textarea,select{color:var(--text);background:var(--surface)}.shell{max-width:640px;margin:auto;padding:calc(22px + max(env(safe-area-inset-top),var(--safe-top,0px))) 20px calc(110px + max(env(safe-area-inset-bottom),var(--safe-bottom,0px)))}header{margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;display:flex;justify-content:space-between;gap:8px}.eyebrow span{letter-spacing:0;color:var(--accent);font-size:11px;font-weight:500}.headline{display:flex;justify-content:space-between;align-items:center;margin-top:16px}h1{font-family:Onest,Manrope,sans-serif;font-size:36px;letter-spacing:-1.5px;line-height:1.2;margin:0;font-weight:750}header p{font-size:14px;color:var(--muted);margin:8px 0 0}.icon-button{width:44px;height:44px;border-radius:50%;background:var(--surface);font-size:26px;display:grid;place-items:center}.tools{display:flex;gap:10px}.search{flex:1;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 14px;min-width:0}.search span{font-size:27px;color:var(--muted)}.search input{width:100%;min-width:0;height:48px;border:0;outline:none;font-size:15px}.add-button{width:50px;height:50px;background:var(--accent);color:#fff;border-radius:14px;font-size:30px}.filters{display:flex;overflow-x:auto;gap:8px;padding:16px 0 6px;scrollbar-width:none}.filters button{white-space:nowrap;padding:9px 14px;border-radius:24px;background:var(--surface);font-size:13px;border:1px solid var(--line)}.filters button.selected{background:var(--text);color:var(--surface);border-color:var(--text)}.group{margin-top:25px}.group h2{font-size:13px;font-weight:650;color:var(--muted);display:flex;align-items:center;justify-content:space-between;margin:0 3px 11px}.group h2 span{font-variant-numeric:tabular-nums;font-size:12px}.products{border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}.product-row{display:flex;align-items:center;gap:10px;padding:13px 12px;border-bottom:1px solid var(--line);min-height:85px}.product-row:last-child{border-bottom:0}.product-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left;background:none;padding:0}.thumb{width:52px;height:56px;flex-shrink:0;background:var(--soft);border-radius:11px;display:grid;place-items:center;font-size:26px;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:contain;background:#fff;padding:3px}.product-copy{min-width:0;flex:1}.product-copy strong{font-size:16px;font-weight:650;display:block;overflow-wrap:anywhere}.product-copy small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}.product-check{width:44px;height:44px;border:2px solid var(--line);border-radius:50%;background:var(--surface);font-size:24px;flex-shrink:0}.product-check.add-again{background:var(--soft);border:0;color:var(--accent)}.in-list{font-size:11px;color:var(--accent);max-width:48px;line-height:1.3;text-align:center}.empty,.loading{padding:42px 18px;text-align:center;line-height:1.7;color:var(--muted)}.empty .symbol{font-size:42px;margin-bottom:12px}.empty h2{color:var(--text);font-size:20px;margin:0 0 8px}.empty p{font-size:14px;margin:0 0 22px}.primary,.secondary{min-height:48px;padding:13px 18px;border-radius:13px;font-size:15px;font-weight:650}.primary{background:var(--accent);color:#fff}.secondary{background:var(--soft);color:var(--accent)}.full{width:100%}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:640px;display:flex;background:var(--surface);border-top:1px solid var(--line);padding:10px 12px calc(10px + max(env(safe-area-inset-bottom),var(--safe-bottom,0px)));z-index:2}nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;background:none;padding:6px 12px;color:var(--muted);font-size:11px;border-radius:12px;min-height:54px}nav button span{font-size:23px;line-height:1.1}nav button[aria-current]{color:var(--accent);background:var(--soft);font-weight:650}dialog{width:calc(100% - 24px);max-width:520px;max-height:88dvh;margin:auto;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--text);overflow-y:auto}dialog::backdrop{background:rgba(15,13,29,.45)}.sheet-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.sheet-top>span{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:650}.sheet-top button{background:var(--bg)}dialog h2{font-family:Onest,Manrope,sans-serif;font-size:27px;margin:14px 0 8px;overflow-wrap:anywhere}dialog label{display:block;font-size:13px;font-weight:600;margin-top:20px}dialog textarea,dialog select{display:block;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:16px;line-height:1.5}dialog textarea{resize:vertical}.muted{color:var(--muted);font-size:13px}.hint{font-size:12px;color:var(--muted);line-height:1.65}.sheet-actions{display:flex;gap:10px;margin-top:24px}.sheet-actions button{flex:1}.detail-photo{width:100%;max-height:250px;object-fit:contain;background:#fff;border-radius:15px}.text-button{width:100%;background:none;color:var(--accent);padding:18px 4px 0;font-size:14px}#draft{padding:12px 0;margin-bottom:12px;border-top:1px solid var(--line);font-size:14px;line-height:1.8}#draft p{margin:6px 0}#toast{position:fixed;bottom:calc(96px + max(env(safe-area-inset-bottom),var(--safe-bottom,0px)));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:var(--text);color:var(--surface);border-radius:14px;padding:13px 16px;box-shadow:0 6px 24px #0002;display:flex;align-items:center;gap:15px;z-index:5;font-size:14px}#toast[hidden]{display:none}#toast button{background:transparent;color:inherit;font-weight:700;text-decoration:underline;min-height:36px}.history-row{padding:16px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.6}.history-row:last-child{border:0}.history-row small{display:block;font-size:11px;color:var(--muted)}#demo-banner{font-size:12px;background:var(--soft);padding:10px;border-radius:10px;margin-bottom:16px}body.dark{color-scheme:dark;--bg:#101014;--surface:#1b1b22;--text:#f2f2f7;--muted:#a4a4b5;--accent:#b8a4ff;--line:#34343f;--soft:#292139}body.dark .primary,body.dark .add-button{color:#171125}body.dark .filters button.selected{color:#171125}body.dark #toast{color:#171125}@media(max-width:360px){.shell{padding-left:14px;padding-right:14px}.product-row{gap:6px;padding:12px 9px}.thumb{width:44px}.product-open{gap:9px}h1{font-size:32px}.eyebrow{letter-spacing:1px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,opacity .15s}dialog[open]{animation:appear .16s ease-out}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

[hidden]{display:none!important}

/* A tap is visible before the network answers. */
.product-check svg{width:24px;height:24px;display:block;margin:auto;fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;opacity:.22}
.product-check svg path{stroke-dasharray:25;stroke-dashoffset:0}
.product-row.is-buying{background:var(--soft)}
.product-row.is-buying .product-check{background:var(--accent);border-color:var(--accent);opacity:1;cursor:default}
.product-row.is-buying .product-check svg{stroke:var(--surface);opacity:1}
.product-row.is-buying .product-copy strong{color:var(--muted)}
.product-check:active:not(:disabled){transform:scale(.9)}
.add-button:active,.primary:active,.secondary:active{transform:scale(.97)}
@media(prefers-reduced-motion:no-preference){
 .product-row.is-buying .product-check{animation:check-pop .24s cubic-bezier(.2,.8,.2,1)}
 .product-row.is-buying .product-check svg path{animation:check-draw .2s ease-out}
 #toast:not([hidden]){animation:toast-in .18s ease-out}
 @keyframes check-pop{0%{transform:scale(.85)}60%{transform:scale(1.12)}100%{transform:scale(1)}}
 @keyframes check-draw{from{stroke-dashoffset:25}to{stroke-dashoffset:0}}
 @keyframes toast-in{from{opacity:0;margin-bottom:-6px}to{opacity:1;margin-bottom:0}}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Shared visual language: compact product cards and one clear action color. */
h1{font-size:40px;letter-spacing:-1.8px;font-weight:750}
.eyebrow{font-family:Onest,Manrope,sans-serif;letter-spacing:1.4px;color:var(--muted)}
.eyebrow span{border:1px solid var(--line);background:var(--surface);padding:5px 8px;border-radius:20px;font-size:10px;color:var(--muted)}
.headline{margin-top:13px}
.icon-button{border:1px solid var(--line);background:transparent}
.icon-button svg,.search svg,.add-button svg,nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.search span{color:var(--muted)}
.search{border-radius:18px;box-shadow:0 2px 5px #19192003}
.add-button{border-radius:18px;display:grid;place-items:center;box-shadow:0 5px 13px #6544e82a}
.add-button svg{width:26px;height:26px;stroke-width:2}
.filters{gap:7px;padding-top:18px}
.filters button{font-size:12px;padding:9px 13px;font-weight:600}
.filters button.selected{background:var(--text);color:var(--surface)}
.group{margin-top:22px}
.group h2{font-family:Onest,Manrope,sans-serif;font-size:13px;letter-spacing:-.1px;font-weight:650}
.group h2 span{min-width:22px;height:22px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.products{border-radius:22px;box-shadow:0 3px 12px #19192003}
.product-row{padding:14px 13px;min-height:87px}
.product-copy strong{font-family:Onest,Manrope,sans-serif;letter-spacing:-.3px;font-size:17px;font-weight:650;line-height:1.35}
.product-copy small{font-size:12px;line-height:1.6}
.thumb{border-radius:15px;background:var(--bg)}
.product-check{border-width:1.5px;border-radius:15px;width:44px;height:44px}
.product-check svg{opacity:.3;stroke:var(--muted)}
.product-check.add-again{border-radius:15px}
.product-row.is-buying{background:var(--soft)}
.product-row.is-buying .product-check{background:var(--accent);border-color:var(--accent)}
.product-row.is-buying .product-check svg{stroke:#fff;opacity:1}
nav{border-radius:24px 24px 0 0;padding-top:12px;box-shadow:0 -4px 20px #19192005}
nav button{font-family:Onest,Manrope,sans-serif;font-size:11px;font-weight:550;gap:6px}
nav button[aria-current]{background:var(--soft);font-weight:700}
nav button span{display:block}
dialog{position:fixed;inset:auto 0 0;width:100%;max-width:640px;max-height:90dvh;border-radius:28px 28px 0 0;border-bottom:0;padding:24px 24px calc(24px + max(env(safe-area-inset-bottom),var(--safe-bottom,0px)));box-shadow:0 -16px 60px #0002;margin:0 auto}
dialog::before{content:'';display:block;width:36px;height:4px;border-radius:8px;background:var(--line);margin:-10px auto 17px}
dialog h2{font-weight:700;letter-spacing:-1px;line-height:1.2}
.sheet-top{margin-bottom:16px}.sheet-top>span{font-family:Onest,Manrope,sans-serif;font-size:10px}
.primary,.secondary{border-radius:16px;font-weight:700;letter-spacing:-.2px}
.hint{line-height:1.8}
body.dark .filters button.selected{color:#101014}
body.dark .product-row.is-buying .product-check svg{stroke:#171125}
@media(max-width:360px){h1{font-size:36px}.eyebrow{font-size:9px;letter-spacing:1px}.eyebrow span{font-size:9px}.product-copy strong{font-size:16px}.product-row{padding:13px 10px}dialog{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:no-preference){
 nav button.tab-entering svg{animation:nav-settle .2s ease-out}
 dialog[open]{animation:sheet-rise .24s cubic-bezier(.16,1,.3,1)}
 dialog[open]::backdrop{animation:backdrop-in .2s ease-out}
 .filters button,.icon-button,.product-check{transition:background .16s,border-color .16s,transform .16s}
 @keyframes nav-settle{from{transform:translateY(3px);opacity:.6}to{transform:translateY(0);opacity:1}}
 @keyframes sheet-rise{from{transform:translateY(32px);opacity:.6}to{transform:translateY(0);opacity:1}}
 @keyframes backdrop-in{from{opacity:0}to{opacity:1}}
}

/* Keep the shopping list dense, with packaging and completion state easy to scan. */
.shell{padding-top:calc(16px + max(env(safe-area-inset-top),var(--safe-top,0px)))}
header{margin-bottom:16px}h1{font-size:32px;letter-spacing:-1.2px}.headline{margin-top:10px}
.thumb{width:60px;height:64px}.thumb img{padding:2px}
.product-row{padding-top:10px;padding-bottom:10px}
.product-copy small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-check svg{opacity:0}
.empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
@media(max-width:360px){h1{font-size:30px}.thumb{width:52px;height:60px}}
#family{margin:0 0 14px;min-height:40px;padding:8px 14px;font-size:13px}

.family-controls{display:grid;gap:12px;margin-top:18px}.family-controls h3{font-size:15px;margin:16px 0 0}.family-controls label{margin-top:8px}dialog input{display:block;width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:16px;margin:8px 0 12px}.family-confirm{line-height:1.7;font-size:15px}.danger{color:#c74334}.family-controls .history-row{padding:10px 0}.family-controls .text-button{padding-top:8px}#family-join-form{margin-top:16px}#family-accept-transfer,#family-accept{margin-top:12px}

.language-picker{display:inline-flex;align-items:center;gap:8px;margin:0 12px 12px 0}.language-picker select{padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:inherit;font:inherit}

.language-picker{vertical-align:middle;margin:0 8px 12px 0;font-size:14px}
.language-picker select{width:148px;max-width:148px;min-height:44px;margin:0;padding:9px 30px 9px 12px;font-size:14px;border-radius:12px}
#family{vertical-align:middle;min-height:44px;margin-bottom:12px}
.language-picker~button.secondary{min-height:44px;padding:9px 12px;font-size:13px;vertical-align:middle;margin-bottom:12px}
@media(max-width:380px){.language-picker{gap:5px;margin-right:4px}.language-picker select{max-width:155px;padding-right:20px}.language-picker~button.secondary{padding-left:10px;padding-right:10px}}

.usage-choices{display:grid;gap:12px;width:min(100%,360px);margin:24px auto 0}.usage-choices button{min-height:48px}
