:root{--bg: #f4f7f6;--card: #ffffff;--text: #0f172a;--muted: #64748b;--line: #e2e8f0;--track: #e2e8f0;--brand: #0f766e;--brand-soft: #ccfbf1;--avoid: #dc2626;--caution: #d97706;--info: #0f766e;--radius: 16px;color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme: dark){:root{--bg: #0b1211;--card: #131c1b;--text: #e6f0ee;--muted: #93a6a3;--line: #22302e;--track: #2a3836;--brand: #2dd4bf;--brand-soft: #123a35;color-scheme:dark}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit;color:inherit}a{color:var(--brand)}h1{font-size:1.5rem;margin:0;letter-spacing:-.01em}h2{font-size:1rem;margin:0 0 12px}p{margin:4px 0}.app{max-width:560px;margin:0 auto;min-height:100dvh}main{padding-bottom:88px}.screen{padding:16px 16px 24px;display:flex;flex-direction:column;gap:12px}.muted{color:var(--muted)}.small{font-size:.85rem}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.brand{display:flex;align-items:center;gap:10px;padding-top:4px}.brand img{border-radius:8px}.title-row{display:flex;align-items:center;justify-content:space-between;min-height:40px}.segmented{display:flex;gap:4px;background:var(--card);border:1px solid var(--line);padding:4px;border-radius:999px;overflow-x:auto}.segmented button{flex:1;border:0;background:none;padding:8px 12px;border-radius:999px;cursor:pointer;white-space:nowrap}.segmented button.on{background:var(--brand);color:#fff}.segmented.small{margin:8px 0}.segmented.small button{padding:6px 10px;font-size:.9rem}.scanner{position:relative;aspect-ratio:4 / 3;background:#0b1211;border-radius:var(--radius);overflow:hidden}.scanner video{width:100%;height:100%;object-fit:cover;display:block}.scanner-frame{position:absolute;top:22%;right:12%;bottom:22%;left:12%;border:3px solid rgba(255,255,255,.9);border-radius:14px;box-shadow:0 0 0 999px #00000059}.scanner-frame:after{content:"";position:absolute;left:6%;right:6%;top:50%;height:2px;background:#2dd4bf;animation:sweep 2s ease-in-out infinite}@keyframes sweep{0%,to{transform:translateY(-40px)}50%{transform:translateY(40px)}}@media (prefers-reduced-motion: reduce){.scanner-frame:after{animation:none}}.scanner-retry,.scanner-tap{margin-top:14px;padding:10px 18px;border-radius:999px;border:0;background:#2dd4bf;color:#062b28;font-weight:600;font-size:15px}.scanner-tap{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;margin:0}.scanner-error{color:#e6f0ee;padding:24px;display:grid;place-items:center;height:100%;text-align:center}.torch{position:absolute;right:12px;bottom:12px;border:0;border-radius:999px;padding:8px 12px;background:#0000008c;color:#fff}.hint{text-align:center;margin:0}.status.error{border-color:var(--avoid);color:var(--avoid)}.btn-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--brand);color:#fff;padding:10px 16px;border-radius:12px;cursor:pointer;text-decoration:none;font-weight:600}.btn:disabled{opacity:.5;cursor:default}.btn.secondary{background:var(--brand-soft);color:var(--brand)}.btn.ghost{background:none;color:var(--muted)}.btn.wide{width:100%}.link{border:0;background:none;color:var(--brand);padding:0;cursor:pointer;text-decoration:underline}label{display:block;font-weight:600;margin-bottom:8px}input,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin-bottom:8px}textarea{resize:vertical}.input-row{display:flex;gap:8px}.input-row input{margin:0}.tabbar{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;background:var(--card);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}.tabbar button{flex:1;max-width:140px;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px;font-size:.75rem;color:var(--muted);cursor:pointer}.tabbar button span{font-size:1.25rem;line-height:1}.tabbar button.on{color:var(--brand);font-weight:600}.list{display:flex;flex-direction:column;gap:8px}.row{display:flex;align-items:center;gap:12px;padding:10px;background:var(--card);border:1px solid var(--line);border-radius:14px;text-align:left;cursor:pointer;width:100%}.thumb{width:48px;height:48px;border-radius:10px;background:var(--bg);display:grid;place-items:center;overflow:hidden;flex:none;font-size:1.4rem}.thumb img{width:100%;height:100%;object-fit:contain;background:#fff}.row-text{flex:1;min-width:0;display:flex;flex-direction:column}.row-text strong,.row-text span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-text span{color:var(--muted);font-size:.85rem}.chip{min-width:40px;padding:6px 8px;border-radius:10px;color:#fff;font-weight:700;text-align:center}.empty{text-align:center;padding:48px 16px}.topbar{display:flex;align-items:center;justify-content:space-between}.icon-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:1.2rem;cursor:pointer}.pill{color:#fff;padding:4px 12px;border-radius:999px;font-size:.85rem;font-weight:600}.hero{display:flex;gap:16px}.hero-img{width:110px;height:140px;flex:none;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;font-size:2.5rem;border:1px solid var(--line)}.hero-img img{width:100%;height:100%;object-fit:contain}.hero-text{min-width:0;flex:1}.hero-text h1{font-size:1.2rem;overflow-wrap:anywhere}.hero-score{display:flex;align-items:center;gap:12px;margin-top:8px}.hero-score strong{font-size:1.1rem}.ring{position:relative;flex:none}.ring svg{display:block}.ring-label{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}.ring-label span{font-size:.7rem;color:var(--muted);margin-top:2px}.flags{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.flag{display:flex;gap:10px}.flag p{color:var(--muted);font-size:.85rem}.flag-dot{width:10px;height:10px;border-radius:50%;margin-top:6px;flex:none}.flag.avoid .flag-dot{background:var(--avoid)}.flag.caution .flag-dot{background:var(--caution)}.flag.info .flag-dot{background:var(--info)}.tag{font-style:normal;font-size:.7rem;background:var(--brand-soft);color:var(--brand);padding:2px 6px;border-radius:6px;margin-left:6px;vertical-align:middle}.factor+.factor{margin-top:12px}.factor-head{display:flex;justify-content:space-between;font-weight:600}.bar{height:8px;background:var(--track);border-radius:999px;overflow:hidden;margin:6px 0 2px}.bar div{height:100%;border-radius:999px}.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}.fact{border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:2px}.fact em{font-style:normal;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.fact.low{background:#dcfce7;color:#14532d}.fact.medium{background:#fef3c7;color:#78350f}.fact.high{background:#fee2e2;color:#7f1d1d}.ingredients{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.ingredients li{display:flex;gap:10px}.dot{width:12px;height:12px;border-radius:50%;margin-top:5px;flex:none}.ingredients-text{line-height:1.5;overflow-wrap:anywhere}.chips{display:flex;flex-wrap:wrap;gap:8px}.toggle{border:1px solid var(--line);background:var(--bg);padding:8px 12px;border-radius:999px;cursor:pointer}.toggle.on{background:var(--brand);border-color:var(--brand);color:#fff}.about p+p{margin-top:8px}.credit{text-align:center;padding:8px 16px;line-height:1.6}.toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%);background:var(--text);color:var(--bg);padding:10px 16px;border-radius:999px}.labels{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:8px;vertical-align:middle}.safety{font-style:normal;font-size:.7rem;font-weight:700;color:#fff;padding:2px 7px;border-radius:999px;white-space:nowrap}.reg{font-style:normal;font-size:.7rem;font-weight:600;padding:2px 7px;border-radius:999px;border:1px solid var(--line);color:var(--muted);white-space:nowrap}.reg.banned{border-color:#7f1d1d;color:#b91c1c}.reg.synth{border-color:#ea580c;color:#ea580c}.tox-head{display:flex;justify-content:space-between;align-items:baseline}.tox-bar{display:flex;height:10px;border-radius:999px;overflow:hidden;gap:2px;margin-bottom:10px}.tox-counts{display:flex;flex-wrap:wrap;gap:10px;font-weight:600;margin-bottom:6px}.legend{margin-top:14px}.legend summary{cursor:pointer;color:var(--brand);font-size:.9rem}.legend ul{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:8px;font-size:.85rem;color:var(--muted)}.ocr-cta{padding:14px 16px;font-size:1rem}.ocr .title-row{margin-bottom:4px}.ocr-reading{display:flex;gap:12px;align-items:center;margin-bottom:10px}.ocr-reading img{width:96px;height:96px;object-fit:cover;border-radius:12px;flex:none;border:1px solid var(--line)}.ocr-reading>div{flex:1}.baby-banner{background:#fef3c7;color:#78350f;border-radius:12px;padding:10px 12px;font-size:.9rem;font-weight:600}.switch-row{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.switch{flex:none;width:52px;height:30px;border-radius:999px;border:0;background:var(--track);position:relative;cursor:pointer;margin-top:2px}.switch span{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 3px #0000004d}.switch.on{background:var(--brand)}.switch.on span{transform:translate(22px)}.screen{gap:14px}.brand{gap:8px}.brand h1{font-size:1.25rem;flex:1}.baby-pill{font-size:.75rem;font-weight:600;background:#fef3c7;color:#78350f;padding:4px 10px;border-radius:999px}.chips-scroll{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}.chips-scroll::-webkit-scrollbar{display:none}.chip-btn{flex:none;border:1px solid var(--line);background:var(--card);padding:6px 12px;border-radius:999px;font-size:.85rem;cursor:pointer;white-space:nowrap}.chip-btn.on{background:var(--brand);border-color:var(--brand);color:#fff}.scan .scanner{aspect-ratio:3 / 4;max-height:56vh;border-radius:20px}.hint{text-align:center;margin:-4px 0 0}.warn{color:#b45309}.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.ing-filters{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}.ing-filters .chip-btn{display:inline-flex;align-items:center;gap:4px;font-size:13px}.ing-filters .dot{width:8px;height:8px;border-radius:50%;display:inline-block}.reg.role{background:transparent;border:1px solid currentColor;opacity:.75}.reg.env{background:#0f766e22;color:#0f766e}.name-search .list{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:60vh;overflow-y:auto}.action{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:14px;border:1px solid var(--line);background:var(--card);font-size:.8rem;cursor:pointer;color:var(--text)}.action span{font-size:1.3rem}.notfound{display:flex;flex-direction:column;gap:6px}.notfound .btn-row{margin-top:4px}.tox-line{margin-top:4px;color:var(--muted)}.fold summary{cursor:pointer;font-weight:600;list-style:none}.fold summary::-webkit-details-marker{display:none}.fold summary:after{content:"›";float:right;transition:transform .15s;color:var(--muted)}.fold[open] summary:after{transform:rotate(90deg)}.fold[open] summary{margin-bottom:12px}.card{border-radius:18px}.hero{border:0}.ocr-camera{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;background:#000}.camera{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column}.camera video{flex:1;width:100%;object-fit:cover;min-height:0}.camera-guide{position:absolute;top:12%;right:6%;bottom:22%;left:6%;border:2px dashed rgba(255,255,255,.8);border-radius:16px;display:flex;align-items:flex-start;justify-content:center;pointer-events:none}.camera-guide span{margin-top:-14px;background:#0009;color:#fff;font-size:.8rem;padding:4px 10px;border-radius:999px}.camera-bar{display:flex;align-items:center;justify-content:space-between;padding:18px 20px calc(18px + env(safe-area-inset-bottom));background:#000}.shutter{width:72px;height:72px;border-radius:50%;border:5px solid #fff;background:#fff;box-shadow:inset 0 0 0 3px #000;cursor:pointer}.shutter:disabled{opacity:.5}.btn.light{color:#fff}.camera-error{padding:32px 20px;color:#fff}.share h2{margin-bottom:4px}.reasons{margin:6px 0 0;padding-left:18px;color:var(--muted);font-size:.85rem}.ok{color:#16a34a}.ingredients li.ing-row{cursor:pointer;border-radius:10px;padding:6px;margin:-6px;align-items:flex-start}.ingredients li.ing-row:hover,.ingredients li.ing-row:focus-visible{background:color-mix(in srgb,var(--text) 6%,transparent);outline:none}.ing-main{flex:1;min-width:0}.ing-more{color:var(--muted);font-size:1.3rem;line-height:1;align-self:center}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--card);color:var(--text);width:100%;max-width:560px;max-height:85vh;overflow-y:auto;border-radius:18px 18px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px #00000040}@media (min-width: 700px){.sheet-backdrop{align-items:center}.sheet{border-radius:18px}}.sheet-grip{width:40px;height:4px;border-radius:4px;background:var(--line);margin:0 auto 10px}.sheet-head{display:flex;gap:12px;align-items:flex-start}.sheet-head>div{flex:1;min-width:0}.sheet-head h2{margin:0 0 2px;font-size:1.15rem;overflow-wrap:anywhere}.dot.big{width:16px;height:16px;margin-top:5px;flex:none}.sheet-close{background:none;border:0;color:var(--muted);font-size:1.1rem;padding:4px 6px;cursor:pointer}.sheet-facts{display:grid;grid-template-columns:minmax(96px,30%) 1fr;gap:8px 12px;margin:12px 0 4px}.sheet-facts dt{color:var(--muted);font-size:.85rem}.sheet-facts dd{margin:0;overflow-wrap:anywhere}.sheet-facts a{color:inherit}@media (max-width: 380px){.sheet-facts{grid-template-columns:1fr}.sheet-facts dt{margin-top:4px}}.hero-img.zoomable{border:0;padding:0;cursor:zoom-in;font:inherit;color:inherit}.viewer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#000000eb;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}.viewer img{max-width:94vw;max-height:80vh;object-fit:contain;background:#fff;border-radius:10px;touch-action:none;-webkit-user-select:none;user-select:none;transition:transform .05s linear}.viewer-close{position:absolute;top:calc(10px + env(safe-area-inset-top));right:12px;background:#ffffff26;color:#fff;border:0;border-radius:999px;width:40px;height:40px;font-size:1.1rem;cursor:pointer}.viewer-hint{position:absolute;bottom:calc(14px + env(safe-area-inset-bottom));left:0;right:0;text-align:center;color:#fff9;font-size:.8rem;margin:0}.reviews-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.stars{color:var(--line);letter-spacing:1px;white-space:nowrap}.stars .on{color:#f5a524}.stars button{background:none;border:0;padding:0 2px;font-size:inherit;color:var(--line);cursor:pointer}.stars button.on{color:#f5a524}.review-form{display:flex;flex-direction:column;gap:8px;margin-top:8px}.review-form input,.review-form textarea{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px;width:100%;box-sizing:border-box}.review-form .row-btns{display:flex;gap:8px;flex-wrap:wrap}.review-list{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-direction:column;gap:12px}.review-list li{border-top:1px solid var(--line);padding-top:10px}.review-list p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.review-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.small-btn{padding:2px 8px;font-size:.8rem;font-weight:500}.tabbar{z-index:40;-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);background:color-mix(in srgb,var(--card) 92%,transparent)}.tabbar button{min-height:48px;justify-content:center;font-size:.72rem;letter-spacing:.01em}.tabbar button svg{display:block}.tabbar button.on svg{stroke-width:2.2}.tabbar button:focus-visible{outline:2px solid var(--brand);outline-offset:-4px;border-radius:10px}main{padding-bottom:calc(80px + env(safe-area-inset-bottom))}.action{min-height:56px}.action svg{display:block;margin:0 auto 4px;color:var(--brand)}:root{--text: #10201d;--muted: #586b67;--line: #e1e8e6;--track: #e1e8e6;--bg: #f3f6f5;--fs-xs: .75rem;--fs-sm: .8125rem;--fs-md: .9375rem;--fs-lg: 1.0625rem;--fs-xl: 1.375rem;--sp-1: 4px;--sp-2: 8px;--sp-3: 12px;--sp-4: 16px;--sp-5: 24px;--shadow-1: 0 1px 2px rgba(16, 32, 29, .06)}@media (prefers-color-scheme: dark){:root{--text: #e7efed;--muted: #9db0ac;--line: #22302d;--track: #2a3835;--bg: #0b1211;--shadow-1: none}}body{font-size:var(--fs-md);line-height:1.5;-webkit-font-smoothing:antialiased}h1{font-size:var(--fs-xl);line-height:1.25;text-wrap:balance}h2{font-size:var(--fs-lg);font-weight:650;letter-spacing:-.005em;margin-bottom:var(--sp-3)}.small{font-size:var(--fs-sm)}.card{box-shadow:var(--shadow-1);padding:var(--sp-4)}.screen{gap:var(--sp-3)}.row{min-height:64px;box-shadow:var(--shadow-1)}.row:focus-visible,.alt-card:focus-visible,.btn:focus-visible,.chip-btn:focus-visible,.action:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.row-text strong{font-weight:600;font-size:var(--fs-md)}.chip{min-width:44px;font-variant-numeric:tabular-nums}.btn{min-height:44px}.chip-btn{min-height:36px}.hero-text h1{font-size:var(--fs-lg);line-height:1.3}.sk{background:linear-gradient(90deg,var(--track) 25%,color-mix(in srgb,var(--track) 55%,var(--card)) 50%,var(--track) 75%);background-size:200% 100%;animation:sk 1.2s ease-in-out infinite;border-radius:8px;display:block}.sk-line{height:12px;width:80%;margin:4px 0}.sk-line.short{width:45%}.sk-chip{width:44px;height:30px;flex:none}.skeleton-row{cursor:default}@keyframes sk{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.sk{animation:none}}.alt-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(140px,42%);gap:var(--sp-3);overflow-x:auto;scroll-snap-type:x mandatory;margin:0 calc(-1 * var(--sp-4));padding:2px var(--sp-4) var(--sp-2);scrollbar-width:none}.alt-rail::-webkit-scrollbar{display:none}.alt-card{position:relative;scroll-snap-align:start;display:flex;flex-direction:column;gap:4px;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:var(--sp-2);cursor:pointer;min-width:0;box-shadow:var(--shadow-1)}.alt-img{aspect-ratio:1;width:100%;max-width:100%;border-radius:10px;background:#fff;display:grid;place-items:center;overflow:hidden;font-size:2rem}.alt-img img{width:100%;height:100%;object-fit:contain}.alt-card strong{font-size:var(--fs-sm);font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.alt-card .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alt-score{position:absolute;top:12px;right:12px;color:#fff;font-weight:700;font-size:var(--fs-sm);border-radius:8px;padding:2px 8px;font-variant-numeric:tabular-nums}:root{--brand: #0b6e66;--brand-deep: #0b4f4a;--brand-soft: #d6f5ee;--accent-amber: #f2a93b;--accent-coral: #f0705a;--accent-blue: #2f5bd3;--bg: #f2f7f5}@media (prefers-color-scheme: dark){:root{--brand: #2dd4bf;--brand-deep: #0b2b28;--brand-soft: #123a35;--bg: #0b1615;--card: #12201e}}.brand h1,.title-row h1{color:var(--brand-deep);letter-spacing:-.02em}@media (prefers-color-scheme: dark){.brand h1,.title-row h1{color:var(--text)}}.brand-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding-top:6px;min-height:44px}.brand-bar .wordmark{margin:0;line-height:0}.brand-bar .wordmark img{height:30px;width:auto;display:block}.brand-side{justify-self:end}
