:root{font-family:system-ui,sans-serif;color:#17352f;background:#f1f6f4;font-size:16px}*{box-sizing:border-box}body{margin:0}header{background:#153f35;color:white;padding:20px max(20px,calc((100vw - 960px)/2));display:flex;justify-content:space-between;align-items:center;gap:12px}header strong{font-size:22px}small{display:block;font-size:12px;margin-top:5px;opacity:.8}main{max-width:960px;margin:24px auto;padding:0 16px}section{background:white;border-radius:16px;padding:24px;margin-bottom:18px;box-shadow:0 3px 20px #17352f08}h1{font-size:26px;margin:0 0 18px}h2{font-size:20px}p{line-height:1.6;color:#52655e}label{display:block;font-size:14px;margin:14px 0}input,select{display:block;width:100%;border:1px solid #bdcec7;border-radius:8px;padding:12px;font:inherit;margin-top:6px;background:white;color:#17352f}button{border:0;border-radius:8px;background:#24795d;color:white;padding:12px 18px;font:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#eaf2ee;color:#17352f}nav{display:flex;gap:8px;margin:16px 0}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row input{flex:1;min-width:180px}.row h1{flex:1;margin:0}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.totals{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:22px 0}.metric{border-radius:12px;padding:16px;background:#edf5f0}.metric strong{font-size:24px;display:block}.card{padding:16px 0;border-bottom:1px solid #e3ece6}.card .row{justify-content:space-between}.card small{color:#52655e;font-size:14px;opacity:1}#message{background:#fff0d8;border-radius:10px;padding:16px;color:#6c4212}dialog{border:0;border-radius:16px;padding:24px;width:min(450px,94vw)}dialog::backdrop{background:#123a3290}summary{cursor:pointer;font-weight:600;padding:20px 0}footer{max-width:960px;margin:30px auto;padding:0 16px;font-size:13px;color:#52655e}[hidden]{display:none!important}@media(max-width:600px){.grid,.totals{grid-template-columns:repeat(2,1fr)}section{padding:18px}nav button{font-size:14px;padding:10px}header{padding:18px}header strong{font-size:19px}}
.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.catalog-heading p{margin:0}.catalog-heading h1{font-size:32px;margin:6px 0 8px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:#24795d;font-weight:700}.scan-button{white-space:nowrap;background:#173f35}.catalog-tabs{display:flex;gap:6px;padding:5px;background:#edf3ef;border-radius:12px;margin-bottom:24px}.catalog-tabs button{flex:1;background:transparent;color:#52655e;font-weight:600;padding:12px}.catalog-tabs button[aria-selected=true]{background:white;color:#173f35;box-shadow:0 2px 8px #17352f16}.search-box{background:#f5f8f6;border:1px solid #e2ebe5;padding:16px 20px;border-radius:14px}.search-box label{font-weight:650;margin:0}.search-box input{margin:0}.search-box .row{margin-top:10px}.hint{font-size:13px;color:#667970;line-height:1.5;margin:10px 0 0}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 14px}.list-heading h2{margin:0;font-size:18px}.list-heading span{font-size:13px;color:#667970}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-card{padding:20px;border:1px solid #dfe9e3;border-radius:14px;background:white;display:flex;flex-direction:column;min-width:0}.product-title h3{font-size:17px;line-height:1.4;margin:0;overflow-wrap:anywhere}.brand{font-size:13px;margin:4px 0 12px;color:#687b71}.basis-label{font-size:12px;color:#687b71}.nutrition-row{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0 18px;background:#f4f8f5;padding:12px 10px;border-radius:10px}.nutrition-row strong{font-size:18px;display:block}.nutrition-row span{font-size:11px;color:#687b71}.product-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}.product-bottom button{font-size:13px;padding:10px 12px}.source-link,.source-note{font-size:11px;color:#6a7e73;line-height:1.4}.source-link{text-decoration:underline;text-underline-offset:3px}.provider-panel{border:1px solid #dfe9e3;border-radius:14px;padding:22px;margin-bottom:18px}.provider-heading h2{margin:8px 0 4px}.provider-heading p{font-size:14px;margin:0 0 16px}.provider-badge{font-size:11px;font-weight:600;padding:5px 8px;border-radius:5px;background:#e5f3eb;color:#24795d}.secondary-badge{background:#eef0f7;color:#596b8f}.provider-panel .product-grid{margin-top:18px}.form-heading h2{margin-bottom:6px}.form-heading p{font-size:14px}.grid.two{grid-template-columns:repeat(2,1fr)}.empty-state{grid-column:1/-1;text-align:center;padding:32px;background:#f5f8f6;border-radius:14px}.empty-state h3{margin:0}.empty-state p{font-size:14px}#scan-dialog{width:min(540px,95vw)}#scan-video{width:100%;min-height:180px;max-height:350px;object-fit:cover;background:#122d26;border-radius:12px}#scan-dialog .row h2{flex:1;margin:0}@media(max-width:650px){.catalog-heading{align-items:flex-start;flex-direction:column;gap:14px}.catalog-heading h1{font-size:28px}.scan-button{width:100%}.catalog-tabs button{font-size:12px;padding:10px 5px}.product-grid{grid-template-columns:1fr}.search-box{padding:14px}.search-box .row{gap:8px}.search-box input{min-width:0}.search-box button{font-size:12px;padding:12px}.provider-panel{padding:16px}.grid.two{grid-template-columns:1fr}.product-card{padding:16px}}

.list-heading span{white-space:nowrap}
