.product-profile-layout { min-width: 0; }
.attention-help { display: inline; }
.attention-help summary { display: inline-block; cursor: pointer; padding: 2px 6px; color: #174d2f; list-style: none; border-radius: 4px; }
.attention-help summary::-webkit-details-marker { display: none; }
.attention-help summary:focus-visible { outline: 2px solid #174d2f; outline-offset: 2px; }
.attention-help__text { display: block; position: fixed; z-index: 1000; box-sizing: border-box; width: 300px; max-width: calc(100vw - 24px); padding: .65rem .8rem; margin: 0; background: #fff; border: 1px solid #cbd8cf; border-radius: 8px; box-shadow: 0 5px 20px #0002; font-size: .9rem; line-height: 1.45; }
.product-profile-layout--with-attentions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.product-profile-layout > * { min-width: 0; }
.product-attentions { margin: 0 0 18px; padding: 1rem 1.2rem; border: 1px solid #e0d7bd; border-radius: 12px; background: #fffaf0; color: #30352e; }
@media (max-width: 900px) {
  .product-profile-layout--with-attentions { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .product-profile-layout .product-attentions { order: -1; margin: 16px; }
}
.product-attentions h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.product-attentions ul { margin: 0; padding-left: 1.2rem; }
.product-attentions li { line-height: 1.55; overflow-wrap: anywhere; }
.product-attentions li + li { margin-top: .5rem; }
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f3f5f3;
  --ink: #102f22;
  --text: #25342d;
  --muted: #667168;
  --green: #174d2f;
  --green-2: #2f6947;
  --sage: #dfe7d6;
  --orange: #df5d16;
  --orange-text: #b64b13;
  --amber: #f4b447;
  --danger: #a3332a;
  --score-low: #b8473d;
  --score-limited: #dd7136;
  --score-balanced: #d7a52f;
  --score-good: #74a64d;
  --score-excellent: #25824d;
  --border: #dde2de;
  --shadow: 0 14px 38px rgba(27, 53, 38, .08);
  --radius: 18px;
  --small-radius: 11px;
  --page: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.1rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.35rem, 2vw, 2rem); }
h3 { font-size: 1.05rem; }
.page-width { width: min(calc(100% - 32px), var(--page)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -80px; background: var(--ink); color: white; padding: 10px 14px; z-index: 100; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.ui-icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; vertical-align: -.14em; }
.heading-with-icon { display: flex; align-items: center; gap: 9px; }
.heading-with-icon .ui-icon { color: var(--orange); width: .92em; height: .92em; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 700; color: var(--green-2); margin-bottom: 10px; }
.lead { font-size: 1.16rem; color: var(--muted); }
.fine-print { font-size: .84rem; color: var(--muted); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner { min-height: 72px; width: min(calc(100% - 32px), 1440px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header--with-search .site-header__inner { gap: 18px; }
.header-search { position: relative; display: flex; align-items: center; gap: 3px; flex: 1 1 290px; width: min(100%, 380px); max-width: 380px; min-width: 220px; height: 42px; margin: 0; padding: 3px; border: 1px solid #a8b8aa; border-radius: 999px; background: #fff; }
.header-search:focus-within { border-color: var(--green-2); outline: 2px solid rgba(47,105,71,.13); outline-offset: 1px; }
.header-search input { width: 100%; min-width: 0; padding: 6px 10px 6px 13px; border: 0; outline: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: .84rem; }
.header-search button { display: grid; place-items: center; flex: 0 0 34px; width: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--green); color: #fff; cursor: pointer; }
.header-search button:hover, .header-search button:focus-visible { background: #0f3c24; }
.header-search button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.header-search button .ui-icon { width: 17px; height: 17px; }
.header-search__scanner { display: grid; place-items: center; flex: 0 0 34px; width: 34px; min-height: 34px; border: 1px solid #c85012; border-radius: 50%; background: var(--orange); color: #fff; text-decoration: none; }
.header-search__scanner:hover, .header-search__scanner:focus-visible { border-color: #a94110; background: #c85012; }
.header-search__scanner:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.header-search__scanner .ui-icon { width: 17px; height: 17px; }
.header-search .autocomplete-menu { right: 0; left: 0; min-width: min(440px, calc(100vw - 32px)); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.08rem; }
.brand__link { display: inline-flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.home-wordmark__link { color: inherit; text-decoration: none; }
.brand__link:focus-visible, .home-wordmark__link:focus-visible { outline: 2px solid var(--green-2); outline-offset: 5px; border-radius: 3px; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: var(--green); font-size: 1.4rem; }
.brand__section { padding-left: 13px; border-left: 1px solid #99a28e; font-size: .875rem; font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a, .link-button { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 500; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.main-nav a:hover, .link-button:hover { color: var(--orange-text); }
.inline-form { display: inline; margin: 0; }
.pwa-install { border: 0; background: transparent; color: var(--green); font: inherit; cursor: pointer; }
.pwa-install--nav { min-height: 36px; padding: 5px 11px; border: 1px solid #aebbb2; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pwa-install--nav:hover, .pwa-install--nav:focus-visible { border-color: var(--orange); color: var(--orange-text); }
.pwa-install--home { margin: 13px auto 0; padding: 4px 7px; min-height: 30px; color: var(--green-2); font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.pwa-install--home:hover, .pwa-install--home:focus-visible { color: var(--orange-text); }

.pwa-dialog { width: min(calc(100% - 32px), 470px); padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 24px 70px rgba(16,47,34,.22); }
.pwa-dialog::backdrop { background: rgba(9,31,20,.42); backdrop-filter: blur(2px); }
.pwa-dialog h2 { margin: 0 34px 14px 0; font-size: 1.5rem; }
.pwa-dialog p { margin-bottom: 22px; color: var(--muted); }
.pwa-dialog__close { position: absolute; top: 12px; right: 14px; width: 38px; min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.pwa-dialog__close:hover, .pwa-dialog__close:focus-visible { color: var(--ink); }

.flash-stack { position: relative; z-index: 3; width: min(calc(100% - 32px), var(--page)); margin: 14px auto -4px; }
.flash { border-radius: var(--small-radius); padding: 12px 15px; border: 1px solid var(--border); background: var(--surface); }
.flash--success { border-color: #80a884; background: #f0f7ee; }
.flash--error { border-color: #d89a93; background: #fff0ee; color: #6c201a; }

.hero { min-height: calc(100svh - 155px); display: flex; flex-direction: column; justify-content: center; padding: 54px 0 90px; text-align: center; }
.hero h1 { max-width: 760px; margin: 0 auto 24px; font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 600; }
.hero .search-box { width: min(100%, 680px); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 760px; margin: 0 auto 36px; }
.search-box { position: relative; display: flex; align-items: stretch; gap: 8px; padding: 5px; border: 1px solid #9cb1a3; border-radius: 999px; background: var(--surface); box-shadow: 0 4px 16px rgba(27,53,38,.04); max-width: 840px; margin-inline: auto; }
.search-box input { width: 100%; min-width: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); padding: 7px 15px; font-size: 1rem; outline: none; }
.search-box input:focus { outline: none; }
.search-box:focus-within { border-color: var(--green-2); outline: 2px solid rgba(47,105,71,.15); outline-offset: 2px; }
.search-box--compact { margin-top: 32px; max-width: 840px; box-shadow: none; }
.search-box .button { flex-shrink: 0; min-height: 44px; padding: 8px 16px; border-radius: 999px; }
.search-box .search-box__scanner { align-self: center; gap: 6px; padding: 8px 12px; border-color: var(--border); background: var(--surface-soft); color: var(--green-2); font-size: .82rem; font-weight: 500; }
.search-box__scanner .ui-icon { width: 18px; height: 18px; }
.search-box__scanner:hover, .search-box__scanner:focus-visible { border-color: var(--green-2); background: #eef3e9; }
.autocomplete-menu { position: absolute; z-index: 30; top: calc(100% + 7px); left: 9px; right: 9px; overflow: hidden; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 18px 42px rgba(22,52,36,.18); text-align: left; }
.autocomplete-option { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 11px 12px; color: var(--ink); border-radius: 9px; text-decoration: none; }
.autocomplete-option + .autocomplete-option { border-top: 1px solid rgba(23,77,47,.08); }
.autocomplete-option:hover, .autocomplete-option:focus, .autocomplete-option.is-active { color: var(--ink); background: var(--surface-soft); outline: none; }
.autocomplete-option > span { min-width: 0; flex: 1 1 auto; }
.autocomplete-option strong, .autocomplete-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autocomplete-option strong { font-size: .94rem; }
.autocomplete-option small { margin-top: 2px; color: var(--muted); font-size: .74rem; }
.autocomplete-option em { flex: 0 0 auto; max-width: 32%; color: var(--green-2); font-size: .7rem; font-style: normal; text-align: right; }
.autocomplete-more { margin: 4px 6px 1px; padding: 8px 7px 3px; color: var(--muted); border-top: 1px solid var(--border); font-size: .72rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: var(--small-radius); border: 1px solid transparent; text-decoration: none; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.button--primary { background: var(--green); color: white; }
.button--primary:hover { background: #0f3c24; }
.button--secondary { background: var(--surface); color: var(--green); border-color: var(--green); }
.button--quiet { background: var(--surface-soft); color: var(--green); border-color: var(--border); }
.button--danger { color: var(--danger); border-color: #c77970; background: #fff7f5; }
.text-link { font-weight: 750; text-decoration: none; }
.search-hints { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: .92rem; }
.search-hints a { color: var(--green); background: var(--surface-soft); border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.database-note { margin: 18px 0 0; font-size: .82rem; color: var(--muted); }
.database-note__projects { display: inline-block; margin-inline-start: 16px; }
.database-note__projects a { font-weight: 700; text-underline-offset: 3px; }
.project-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 18px 16px; border-top: 1px solid #d7e1da; background: #f0f5f2; }
.project-links a { display: inline-flex; align-items: center; min-height: 44px; color: #073e2d; font-size: 14px; font-weight: 700; text-decoration: none; }
.project-links a:hover, .project-links a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .database-note__projects { margin-inline-start: 0; width: 100%; }
  .project-links { flex-direction: column; align-items: center; gap: 0; }
}
.home-categories { padding: 0 0 72px; }
.home-category-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.home-category-links a { display: flex; justify-content: space-between; gap: 10px; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--small-radius); background: var(--surface); text-decoration: none; font-weight: 700; }
.home-category-links strong { color: var(--orange); }

.explain { padding: 72px 0; border-top: 1px solid var(--border); }
.section-heading { max-width: 720px; margin-bottom: 32px; }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dimension-grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.dimension-number { color: var(--orange); font-weight: 800; font-variant-numeric: tabular-nums; }
.dimension-grid h3 { margin: 24px 0 8px; }
.dimension-grid p { color: var(--muted); margin: 0; }
.trust-row { margin-top: 24px; padding: 18px 20px; background: var(--surface-soft); border-radius: var(--small-radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.trust-row p { margin: 0; }
.request-strip { background: var(--ink); color: #eff5ec; padding: 38px 0; }
.request-strip h2 { color: white; margin-bottom: 6px; }
.request-strip p { margin: 0; color: #cbd7ce; }
.request-strip__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }

.search-page, .product-page, .admin-page { padding-bottom: 80px; }
.results-heading, .product-title-row, .admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 44px 0 28px; }
.results-heading h1, .product-title-row h1, .admin-heading h1 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 6px; }
.results-heading p { color: var(--muted); }
.product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; display: grid; grid-template-columns: 170px 1fr; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.product-card:hover, .product-card:focus-within { z-index: 1; transform: translateY(-4px); border-color: var(--green-2); background: var(--surface); box-shadow: 0 18px 42px rgba(23,77,47,.16); }
.product-card:focus-within { outline: 3px solid rgba(223,93,22,.24); outline-offset: 2px; }
.product-card__meta { padding: 20px; background: var(--surface-soft); }
.product-card__photo { width: 80px; margin: 0 0 14px; }
.product-card__photo img { display: block; width: 80px; height: 80px; padding: 4px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.product-card__photo[hidden] { display: none; }
.product-card:hover .product-card__meta, .product-card:focus-within .product-card__meta { background: #eaf0e9; }
.match-label, .test-label { display: inline-block; margin-bottom: 12px; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--sage); color: var(--green); }
.test-label { background: #fff0c7; color: #6e4400; margin: 0; }
dl { margin: 0; }
.product-card dl div, .identity-panel dl div, .source-card dl div, .request-card dl div { margin-bottom: 10px; }
dt { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; }
dt, .score-preview > span, .response-chips span { display: flex; align-items: center; gap: 5px; }
dd { margin: 1px 0 0; color: var(--ink); }
.product-card__body { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.product-card__title-line { min-width: 0; }
.product-card__package-inline { display: none; }
.product-card__body h2 { font-size: 1.15rem; margin-bottom: 3px; }
.product-card__body h2 a { color: inherit; text-decoration: none; }
.product-card__body h2 a:hover, .product-card__body h2 a:focus-visible { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.product-card__body h2 a::after, .catalog-item h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.product-card__brand { color: var(--green-2); font-weight: 700; }
.product-card:is(:hover, :focus-within) .product-card__body h2 a,
.product-card:is(:hover, :focus-within) .product-card__brand:not(.product-card__brand--generic),
.product-card:is(:hover, :focus-within) .product-card__brand-value { color: var(--orange-text); }
.product-nutrients { container-type: inline-size; container-name: listing-nutrients; width: 100%; min-width: 0; margin: 2px 0 8px; }
.product-nutrients__basis { margin: 0 0 7px; color: var(--muted); font-size: .8rem; }
.product-nutrients .product-nutrients__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.product-nutrients .product-nutrients__grid > div { min-width: 0; margin: 0; padding: 9px 7px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; }
.product-nutrients__grid dt { display: block; color: #3e4d45; font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.product-nutrients__grid dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; margin-top: 6px; color: var(--ink); font-size: 1.35rem; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.product-nutrients__grid dd strong { color: var(--ink); font-weight: 800; }
.product-nutrients__grid dd span { color: #48574f; font-size: .86rem; font-weight: 750; }
@container listing-nutrients (max-width: 320px) {
  .product-nutrients .product-nutrients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-nutrients__grid dt { font-size: 1rem; }
}
.score-preview { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; margin: 6px 0 9px; padding: 11px 13px; background: var(--surface-soft); border-radius: var(--small-radius); }
.score-preview span { color: var(--muted); font-size: .78rem; }
.score-preview strong { color: var(--green); }
.score-preview small { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; }
.response-preview { width: 100%; margin: 8px 0 18px; padding: 13px; border-radius: var(--small-radius); border: 1px solid var(--border); background: var(--bg); }
.response-preview__label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.response-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.response-chips span { padding: 4px 7px; background: var(--surface); border-radius: 6px; font-size: .76rem; color: var(--green); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 32px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.pagination__navigation { display: flex; align-items: center; gap: 12px; }
.pagination__button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--green); font-weight: 750; text-decoration: none; white-space: nowrap; }
.pagination__button:hover, .pagination__button:focus-visible { border-color: var(--green-2); background: var(--surface-soft); }
.pagination__button.is-disabled { color: #9ba49d; background: var(--surface-soft); cursor: not-allowed; }
.pagination__status { min-width: 126px; margin: 0; color: var(--muted); text-align: center; white-space: nowrap; }
.pagination__status strong { color: var(--ink); font-size: 1.05rem; }
.pagination__jump { display: flex; align-items: center; gap: 8px; }
.pagination__jump label { color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pagination__jump input { width: 76px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--ink); font: inherit; text-align: center; }
.pagination__jump button { min-height: 42px; padding: 9px 13px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; font: inherit; font-weight: 750; cursor: pointer; }
.pagination__jump button:hover, .pagination__jump button:focus-visible { background: var(--green-2); }
.empty-state { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; }

.product-title-row { align-items: center; }
.product-title-row__copy { min-width: 0; flex: 1 1 auto; }
@media (min-width: 641px) {
 .product-page > .search-box--product-mobile { display: none; }
 .product-page .product-title-row .mobile-product-photo { display: block; flex: 0 0 136px; margin: 0; }
 .product-page .mobile-product-photo__stage { display: grid; place-items: center; height: 136px; padding: 12px; box-sizing: border-box; border: 1px solid #dce4dd; border-radius: 18px; background: #fff; }
 .product-page .mobile-product-photo__image { display: block; width: 112px; height: 112px; object-fit: contain; }
 .product-page .mobile-product-photo__placeholder { color: #526159; font-size: .8rem; text-align: center; }
 .product-page .mobile-product-photo [hidden] { display: none; }
}
.mobile-product-appbar,
.mobile-product-photo,
.mobile-product-category,
.mobile-product-portion,
.mobile-product-tabs,
.mobile-product-summary { display: none; }
.product-display-mode { display: inline-flex; gap: 3px; margin: 18px 0 8px; padding: 4px; border-radius: 999px; background: #eaf0eb; }
.product-display-mode[hidden] { display: none; }
.product-display-mode button { min-height: 40px; padding: 8px 20px; border: 0; border-radius: 999px; background: transparent; color: #526159; font: inherit; font-size: .88rem; cursor: pointer; }
.product-display-mode button[aria-pressed="true"] { background: #fff; color: #12512f; box-shadow: 0 1px 4px #123b2714; font-weight: 700; }
.product-display-mode button:focus-visible { outline: 2px solid #df5d16; outline-offset: 2px; }
.product-page[data-display-mode="simple"] .product-overview,
.product-page[data-display-mode="simple"] #profil-nutritional { display: none !important; }
.product-page[data-display-mode="simple"] [data-mobile-tab-content][hidden] { display: none !important; }
.product-page[data-display-mode="simple"] .mobile-product-summary { display: block; padding: 18px 22px; margin: 12px 0 22px; border: 1px solid #dce4dd; border-radius: 18px; background: #fff; }
.product-page[data-display-mode="simple"] .mobile-nutrition-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.product-page [data-mobile-nutrient-panel][hidden] { display: none !important; }
.product-page[data-display-mode="simple"] .mobile-nutrient-basis-switch { display: flex; gap: 6px; margin-bottom: 12px; }
.product-page[data-display-mode="simple"] .mobile-nutrient-basis-switch button { border: 0; border-radius: 6px; min-height: 40px; padding: 8px 12px; background: transparent; color: #526159; cursor: pointer; font: inherit; font-size: .82rem; }
.product-page[data-display-mode="simple"] .mobile-nutrient-basis-switch button[aria-pressed="true"] { background: #edf3ee; color: #12512f; font-weight: 700; }
.product-page[data-display-mode="simple"] .mobile-nutrition-tile { display: grid; justify-items: start; align-content: center; min-height: 78px; gap: 7px; padding: 10px 16px; border: 0; border-radius: 0; }
.product-page[data-display-mode="simple"] .mobile-nutrition-tile + .mobile-nutrition-tile { border-left: 1px solid #e7ece8; }
.product-page[data-display-mode="simple"] .mobile-nutrition-tile .ui-icon { display: none; }
.product-page[data-display-mode="simple"] .mobile-nutrition-tile > span { font-size: .8rem; color: #526159; }
.product-page[data-display-mode="simple"] .mobile-nutrition-tile strong { font-size: 1.35rem; line-height: 1.2; }
.product-page[data-display-mode="simple"] .mobile-nutrition-tile small { font-size: .75rem; font-weight: 500; }
@media (max-width: 640px) {
 .product-display-mode { margin-left: 16px; }
 .product-page[data-display-mode="simple"] .mobile-product-summary { margin: 12px 12px 20px; padding: 12px; }
 .product-page[data-display-mode="simple"] .mobile-nutrition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
 .product-page[data-display-mode="simple"] .mobile-nutrition-tile { padding: 8px; }
 .product-page[data-display-mode="simple"] .mobile-nutrition-tile:nth-child(4) { border-left: 0; }
}
.product-page[data-display-mode="simple"] .product-profile-layout { display: block; }
.product-quick-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0; margin: 12px 0 24px; border: 0; background: transparent; align-items: stretch; }
.product-quick-card[hidden] { display: none; }
.quick-glycemic { padding: 20px; border: 1px solid #ccdbe1; border-top: 4px solid #6a91a3; border-radius: 16px; background: #f2f7fa; min-width: 0; }
.quick-glycemic[hidden], [data-quick-glycemic-basis][hidden] { display: none !important; }
.quick-glycemic h2 { font-size: 1rem; }
.quick-glycemic p { font-size: .85rem; line-height: 1.5; }
.quick-glycemic__value { display: block; margin: 20px 0; font-size: 1.7rem; color: #315568; }
@media (min-width: 1101px) {
 .product-quick-card.has-score.has-attentions:has(.quick-glycemic) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
 .product-page[data-display-mode="simple"] .product-quick-card:has(.quick-glycemic) .mobile-nutrition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.product-quick-card.has-score, .product-quick-card.has-attentions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-quick-card.has-score.has-attentions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-page[data-display-mode="simple"] .product-quick-card .mobile-product-summary { padding: 20px 14px; margin: 0; border: 1px solid #dce4dd; border-radius: 16px; min-width: 0; }
.product-page[data-display-mode="simple"] .product-quick-card .mobile-nutrition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.product-page[data-display-mode="simple"] .product-quick-card .mobile-nutrition-tile { padding: 10px 8px; border: 1px solid #e1e7e2; border-radius: 9px; background: #f8faf8; }
.product-page[data-display-mode="simple"] .product-information-row { grid-template-columns: minmax(0, 1fr); }
.product-page[data-display-mode="simple"] #ingrediente { grid-column: 1 / -1; width: auto; box-sizing: border-box; }
.product-quick-card .product-attentions { margin: 0; min-width: 0; padding: 20px; background: #fbf7ee; border: 1px solid #e8dfce; border-radius: 16px; }
.product-quick-card .editorial-score-preview { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; align-content: center; padding: 24px; background: #f0f4f0; border: 1px solid #dce4dd; border-radius: 16px; }
.product-quick-card .editorial-score-preview__number { font-size: clamp(4.5rem, 6.4vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -.055em; }
.product-quick-card .editorial-score-preview > strong { flex: 1 1 auto; }
.product-quick-card .editorial-score-preview__label { margin-bottom: 12px; font-size: .85rem; }
.product-quick-card .editorial-score-preview__scale { font-size: 1rem; margin-left: 5px; }
.product-quick-card .editorial-score-preview > strong { font-size: 1.4rem; color: #254c35; }
.product-quick-card .editorial-score-preview > small { flex-basis: 100%; color: #526159; font-size: .72rem; }
.editorial-score-demo-copy { flex-basis: 100%; font-size: .88rem; line-height: 1.5; margin: 8px 0 0; color: #526159; }
.editorial-score-preview__label { display: block; font-size: .76rem; font-weight: 600; margin-bottom: 4px; }
.editorial-score-preview__number { font-size: 2rem; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.editorial-score-preview__scale { font-size: .85rem; font-weight: 500; margin-left: 3px; }
.product-quick-card .editorial-score-preview[data-score-tone="favorable"] { background: #edf4ef; }
.product-quick-card .editorial-score-preview[data-score-tone="favorable"] > strong { color: #28543a; }
.product-quick-card .editorial-score-preview[data-score-tone="mixed"] { background: #fff5e9; border-color: #e5c8a4; border-top: 4px solid #c16a16; }
.product-quick-card .editorial-score-preview[data-score-tone="mixed"] > strong { color: #a64b08; }
.product-quick-card .editorial-score-preview[data-score-tone="limited"] { background: #fff0ee; border-color: #e5b7b0; border-top: 4px solid #bb4037; }
.product-quick-card .editorial-score-preview[data-score-tone="limited"] > strong { color: #ae302a; }
.product-page[data-display-mode="simple"] .product-quick-card > * { box-shadow: 0 7px 22px #173e2610; }
.product-quick-card .editorial-score-preview[data-score-tone="favorable"] { background: linear-gradient(135deg, #e2f0e7, #f5faf6); border-color: #a8c8b4; border-top: 4px solid #287052; }
.product-quick-card .editorial-score-preview[data-score-tone="favorable"] > strong,
.product-quick-card .editorial-score-preview[data-score-tone="favorable"] > small,
.product-quick-card .editorial-score-preview[data-score-tone="favorable"] .editorial-score-demo-copy { color: #173e2b; }
.product-quick-card .editorial-score-preview[data-score-tone="favorable"] .attention-help > summary { color: #173e2b; border-color: #739481; }
.product-quick-card .editorial-score-demo-copy { font-size: .96rem; line-height: 1.6; font-weight: 400; padding-top: 12px; border-top: 1px solid #b9cebf; }
.product-quick-card .editorial-score-preview > small { font-size: .8rem; }
.product-page[data-display-mode="simple"] .product-quick-card .mobile-product-summary { border-top: 4px solid #6b8d80; }
.product-page[data-display-mode="simple"] .product-quick-card .mobile-nutrition-tile { background: #f0f5f2; border-color: #e2eae4; }
.product-quick-card .product-attentions { border-top: 4px solid #c99443; background: #fff9ed; }
.product-page[data-display-mode="simple"] #ingrediente { border-left: 4px solid #739481; }
@media (max-width: 640px) {
 body.product-view .product-page[data-display-mode="simple"] { background: #f0f4f1; }
 .product-page[data-display-mode="simple"] .product-display-mode { display: flex; margin: 12px; padding: 4px; }
 .product-page[data-display-mode="simple"] .product-display-mode button { flex: 1; min-height: 44px; }
 .product-quick-card .editorial-score-preview { padding: 20px 24px; border-radius: 20px; }
 .product-quick-card .editorial-score-preview__number { font-size: 5rem; }
 .product-page[data-display-mode="simple"] .product-quick-card .mobile-product-summary,
 .product-quick-card .product-attentions { border-radius: 18px; }
}
@media (max-width: 900px) {
 .product-quick-card.has-score.has-attentions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .product-quick-card.has-score.has-attentions .product-attentions { grid-column: auto; }
}
@media (max-width: 640px) {
 .product-quick-card, .product-quick-card.has-score, .product-quick-card.has-attentions, .product-quick-card.has-score.has-attentions { grid-template-columns: minmax(0, 1fr); margin: 12px; padding: 0; gap: 12px; }
 .product-quick-card .editorial-score-preview { width: auto; }
}
.product-title-row p { margin-bottom: 0; color: var(--muted); }
.product-title-row .recipe-estimate-note { margin-top: 10px; font-size: .82rem; line-height: 1.5; }
.product-title-row .preparation-basis-note { max-width: 78ch; margin-top: 12px; padding: 10px 14px; border-left: 3px solid #d8bb8e; background: #fbf8f2; font-size: .84rem; line-height: 1.55; }
.product-title-row .preparation-basis-note strong { font-weight: 600; color: var(--ink); }
.product-overview .overview-portion-unknown { font-size: 1.2rem; line-height: 1.3; }
.product-title-row .product-brand { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 13px; padding: 7px 11px; border: 1px solid #aebfa8; border-radius: 999px; background: var(--sage); color: var(--green); font-size: .82rem; line-height: 1.1; }
.product-brand span { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.product-brand strong { color: var(--ink); font-size: .92rem; }
.product-overview { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 12px; margin: -8px 0 18px; }
.overview-card { --overview-accent: #2c6948; --overview-tint: #f1f8f3; grid-column: span 2; position: relative; min-height: 138px; display: flex; flex-direction: column; overflow: hidden; padding: 18px 16px 16px; border: 1px solid color-mix(in srgb, var(--overview-accent) 28%, #d6ded7); border-radius: var(--small-radius); background-color: var(--surface); background-image: linear-gradient(145deg, var(--overview-tint) 0%, rgba(255,255,255,.98) 74%); color: var(--ink); text-decoration: none; box-shadow: 0 3px 12px rgba(16, 47, 34, .055); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.overview-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--overview-accent); }
.overview-card:hover, .overview-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--overview-accent) 58%, #d6ded7); box-shadow: 0 12px 24px color-mix(in srgb, var(--overview-accent) 15%, transparent); outline: none; }
.overview-card > span { display: block; color: var(--overview-accent); font-size: .76rem; font-weight: 800; letter-spacing: .045em; line-height: 1.3; text-transform: uppercase; }
.overview-card > strong { margin: auto 0 5px; color: var(--ink); font-size: clamp(1.35rem, 2.4vw, 2.25rem); line-height: 1; text-transform: capitalize; }
.overview-card > strong small { font-size: .46em; color: var(--muted); }
.overview-card > em { color: var(--muted); font-size: .8rem; font-style: normal; }
.overview-card--glycemic > strong { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.15; }
.overview-card--glycemic > em { font-size: .8rem; line-height: 1.2; }
.overview-card--energy { --overview-accent: #aa4917; --overview-tint: #fff2e8; }
.overview-card--glycemic { --overview-accent: #256846; --overview-tint: #eef8f1; }
.overview-card--glycemic-intensity { --overview-accent: #946408; --overview-tint: #fff7df; }
.overview-card--macros { --overview-accent: #246469; --overview-tint: #edf8f7; grid-column: span 3; }
.overview-card--portion { --overview-accent: #587333; --overview-tint: #f3f8e9; }
.overview-macros-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; width: 100%; margin: auto 0 0; }
.overview-macros-grid > span { min-width: 0; padding: 9px 6px; text-align: center; border: 1px solid color-mix(in srgb, var(--overview-accent) 22%, #d6ded7); border-radius: 7px; background: rgba(255,255,255,.76); }
.overview-macros-grid b { display: block; color: var(--ink); font-size: .98rem; line-height: 1.1; white-space: nowrap; }
.overview-macros-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: .59rem; line-height: 1.15; }
.nutrition-score-card { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(540px, 1.65fr); gap: 18px; margin: 0 0 18px; padding: 20px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.nutrition-score-card--insufficient { background: #f7f1e9; border-color: #dfd3c5; }
.nutrition-score-card--excellent { background: #edf6ee; border-color: #a8c8ad; }
.nutrition-score-card--good { background: #f2f5e8; border-color: #bccba5; }
.nutrition-score-card--balanced { background: #fbf4dc; border-color: #dfca83; }
.nutrition-score-card--limited { background: #fbefe5; border-color: #e3b18f; }
.nutrition-score-card--low { background: #faece9; border-color: #d9a39d; }
.nutrition-score-card__result h2 { margin-bottom: 8px; }
.product-photo { max-width: 220px; margin: 10px auto 0; }
.product-photo__stage { display: grid; place-items: center; height: 164px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.product-photo__image { display: block; width: 160px; height: 160px; max-width: 100%; object-fit: contain; }
.product-photo__placeholder { color: var(--muted); font-size: .8rem; font-weight: 400; }
.product-photo figcaption { margin-top: 7px; font-size: .66rem; line-height: 1.5; color: var(--muted); text-align: center; }
.product-photo figcaption a { color: inherit; text-underline-offset: 2px; }
.product-photo [hidden] { display: none; }
.nutrition-score-card__number { display: flex; align-items: baseline; gap: 4px; color: var(--green); margin: 4px 0 10px; }
.nutrition-score-card--excellent .nutrition-score-card__number { color: var(--score-excellent); }
.nutrition-score-card--good .nutrition-score-card__number { color: var(--score-good); }
.nutrition-score-card--balanced .nutrition-score-card__number { color: #9b7100; }
.nutrition-score-card--limited .nutrition-score-card__number { color: var(--score-limited); }
.nutrition-score-card--low .nutrition-score-card__number { color: var(--score-low); }
.nutrition-score-card__number strong { font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: .95; letter-spacing: -.06em; }
.nutrition-score-card__number span { color: var(--muted); font-weight: 750; }
.score-verdict { width: fit-content; margin: 0 0 10px; padding: 4px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.score-verdict--excellent { color: #155a33; background: #cfe8d6; }
.score-verdict--good { color: #3c6328; background: #dfeacb; }
.score-verdict--balanced { color: #75570b; background: #f0dfaa; }
.score-verdict--limited { color: #854416; background: #f3d2ba; }
.score-verdict--low { color: #782d27; background: #ecc9c5; }
.score-scale { display: block; width: 100%; max-width: 410px; height: auto; margin: 8px 0 14px; overflow: visible; }
.score-scale__low { fill: var(--score-low); }
.score-scale__limited { fill: var(--score-limited); }
.score-scale__balanced { fill: var(--score-balanced); }
.score-scale__good { fill: var(--score-good); }
.score-scale__excellent { fill: var(--score-excellent); }
.score-scale__range { stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; opacity: .75; }
.score-scale__marker { fill: white; stroke: var(--ink); stroke-width: 1.6; }
.nutrition-score-card__components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 8px; }
.score-component { --indicator-color: #7e8a82; --indicator-soft: #f0f2ef; display: flex; flex-direction: column; min-height: 112px; padding: 11px 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--indicator-soft) 48%, white) 0, rgba(255,255,255,.9) 58%); border: 1px solid rgba(23,77,47,.14); border-radius: 9px; }
.score-component--excellent, .score-component--good { --indicator-color: #4f8f45; --indicator-soft: #eaf4e3; }
.score-component--balanced { --indicator-color: #d5a12a; --indicator-soft: #fbf3d9; }
.score-component--limited { --indicator-color: #dd7136; --indicator-soft: #fbe9dc; }
.score-component--low { --indicator-color: #b8473d; --indicator-soft: #f8dfdc; }
.score-component header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.score-component header span { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: .8rem; font-weight: 750; }
.score-component header .ui-icon { color: var(--indicator-color); }
.score-component__icon { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.score-component header strong { color: var(--ink); white-space: nowrap; }
.score-component__verdict { width: fit-content; margin-top: 6px; padding: 3px 7px; color: color-mix(in srgb, var(--indicator-color) 78%, #162c20); background: color-mix(in srgb, var(--indicator-soft) 78%, white); border: 1px solid color-mix(in srgb, var(--indicator-color) 28%, transparent); border-radius: 999px; font-size: .82rem; line-height: 1.15; }
.score-component p { min-height: 0; margin: 5px 0 3px; color: var(--muted); font-size: .69rem; line-height: 1.25; }
.score-segments { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; width: 100%; margin-top: auto; padding-top: 6px; }
.score-segment { height: 8px; border: 1px solid rgba(18,57,36,.10); border-radius: 1px; opacity: .12; }
.score-segment--red { background: var(--score-low); }
.score-segment--orange { background: var(--score-limited); }
.score-segment--green { background: var(--score-good); }
.score-segment.is-filled { opacity: 1; }
.score-segment.is-current { outline: 2px solid var(--indicator-color); outline-offset: 2px; }
.score-segments--large { max-width: 360px; gap: 4px; margin: 7px 0 12px; padding-top: 0; }
.score-segments--large .score-segment { height: 10px; }
.score-component footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 7px; color: var(--muted); font-size: .69rem; }
.score-component footer strong { color: var(--ink); text-transform: uppercase; }
.nutrition-score-card__missing { align-self: center; padding: 20px; background: rgba(255,255,255,.65); border-radius: var(--small-radius); }
.nutrition-score-card__missing p { margin: 5px 0 0; color: var(--muted); }
.nutrition-score-card__notes { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(23,77,47,.16); }
.nutrition-score-card__notes summary { cursor: pointer; color: var(--green); font-weight: 700; }
.nutrition-score-card__notes ul { margin-bottom: 0; }
.nutrition-profile-card { row-gap: 0; padding: 12px 0; background: transparent; border: 0; border-radius: 0; }
.nutrition-profile-card__basis { grid-column: 1 / -1; }
.product-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; }
.product-layout--single { grid-template-columns: 1fr; }
.product-information-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; margin-top: 18px; }
.product-information-row .response-panel { min-width: 0; padding: 22px 24px; }
.product-information-row h2 { font-size: 1.45rem; }
.product-information-row .ingredients-section--product { min-width: 0; height: 100%; margin: 0; padding: 28px; box-sizing: border-box; overflow-wrap: anywhere; }
.ingredients-section--product h2 { margin-bottom: 18px; }
.ingredients-section--product > p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.ingredients-section--product .recipe-ingredients { white-space: pre-line; }
.ingredients-section--product .recipe-yield { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .78rem; }
.product-information-row .response-panel__body { display: flex; gap: 12px; margin: 12px 0 10px; }
.product-information-row .response-curve { flex: .95 1 0; min-width: 0; }
.product-information-row .response-dimensions { flex: 1.05 1 0; min-width: 0; }
.product-information-row .response-curve { padding: 8px 12px 6px; }
.product-information-row .response-curve svg { max-height: 125px; }
.product-information-row .response-dimensions { gap: 7px; }
.product-information-row .response-dimensions div { min-height: 62px; padding: 8px 10px; }
.product-information-row .response-dimensions span { font-size: .68rem; line-height: 1.2; }
.product-information-row .response-dimensions strong { font-size: .9rem; }
.product-information-row .glycemic-summary { gap: 6px 14px; padding-top: 10px; }
.product-information-row .glycemic-summary dt { font-size: .64rem; }
.product-information-row .glycemic-summary dd { font-size: .86rem; }
.identity-panel, .response-panel, .detail-section, .ingredients-section, .sources-section, .admin-panel, .source-card, .request-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.identity-panel { padding: 22px; }
.identity-panel h2 { font-size: 1rem; margin-bottom: 22px; }
.identity-panel dt { display: flex; align-items: center; gap: 6px; }
.identity-panel dt .ui-icon { color: var(--green-2); }
.identity-panel__brand { color: var(--green); font-size: 1.02rem; font-weight: 800; }
.confidence { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); color: #7a4b06; }
.response-panel { padding: 28px; }
#profil-nutritional, #raspuns-glicemic, #macronutrienti, #portie-selector { scroll-margin-top: 20px; }
.response-panel__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.response-panel__heading h2 { color: var(--orange); max-width: 650px; }
.response-panel__portion { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.portion-form { min-width: 245px; }
.portion-form label { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.portion-form > div { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.portion-form input { width: 72px; }
.portion-form button { border: 0; color: white; background: var(--green); border-radius: 7px; padding: 7px 10px; cursor: pointer; }
.portion-form small { display: block; color: var(--muted); margin-top: 5px; max-width: 230px; }
input, select, textarea { width: 100%; border: 1px solid #b9bdb2; border-radius: 9px; background: #fff; color: var(--ink); padding: 10px 11px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47,105,71,.2); border-color: var(--green); }
.response-panel__body { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: 18px; align-items: stretch; margin: 16px 0 12px; }
.response-curve { margin: 0; padding: 10px 12px 9px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--small-radius); }
.response-curve svg { width: 100%; height: auto; overflow: visible; }
.curve-baseline { stroke: #aeb4aa; stroke-width: 1.5; stroke-dasharray: 7 7; }
.curve-area { stroke: none; fill: rgba(244,180,71,.18); }
.curve-line { stroke: var(--orange); stroke-width: 4; fill: none; stroke-linecap: round; }
.response-curve text { fill: var(--muted); font-size: 12px; }
.response-curve figcaption { color: var(--muted); font-size: .68rem; line-height: 1.25; }
.response-dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.response-dimensions div { display: flex; flex-direction: column; justify-content: center; min-height: 78px; padding: 12px 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--small-radius); }
.response-dimensions span, .nutrition-grid span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.response-dimensions span .ui-icon, .nutrition-grid span .ui-icon { color: var(--orange); }
.response-dimensions strong { color: var(--green); text-transform: capitalize; }
.glycemic-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.glycemic-summary > div { display: flex; align-items: baseline; gap: 7px; }
.glycemic-summary dt { color: var(--muted); font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.glycemic-summary dd { margin: 0; color: var(--green); font-size: .95rem; font-weight: 850; }
.glycemic-summary__note { margin: 6px 0 0; color: var(--muted); font-size: .72rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.detail-grid--single { grid-template-columns: 1fr; }
.detail-section, .ingredients-section, .sources-section { padding: 26px; }
.detail-section p:last-child { margin-bottom: 0; }
.nutrient-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.nutrient-section-heading h2 { margin-bottom: 0; }
.nutrient-basis-switch { display: inline-flex; max-width: 100%; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); }
.nutrient-basis-switch button { min-width: 0; min-height: 44px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.nutrient-basis-switch button[aria-pressed="true"] { background: var(--surface); color: var(--green); box-shadow: 0 1px 4px rgba(27,53,38,.1); }
.nutrient-basis-switch button:hover { color: var(--green); }
.nutrient-basis-switch button:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
[data-nutrient-toggle][hidden], [data-nutrient-panel][hidden] { display: none !important; }
.nutrition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nutrition-grid div { min-height: 112px; padding: 14px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); }
.nutrition-grid strong { display: block; margin-top: 2px; }
.nutrition-grid small { display: block; margin-top: 3px; color: var(--green-2); font-size: .72rem; font-weight: 700; }
.micronutrient-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin: 26px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.micronutrient-heading h3 { margin: 0; font-size: 1.05rem; }
.micronutrient-heading p { margin: 0; color: var(--muted); font-size: .74rem; }
.nutrition-grid--micronutrients div { min-height: 96px; }
.micronutrient-more { margin-top: 12px; }
.micronutrient-more summary { width: fit-content; cursor: pointer; color: var(--green-2); font-weight: 800; }
.micronutrient-more[open] summary { margin-bottom: 12px; }
.nutrition-basis { margin: -4px 0 18px; color: var(--muted); font-size: .82rem; }
.nutrition-note { width: fit-content; margin: -8px 0 16px; padding: 6px 9px; border-left: 3px solid #78a38b; background: #f3f7f1; color: var(--muted); font-size: .78rem; }
.ingredients-section, .sources-section { margin-top: 18px; }
.ingredients-section > p:last-child { margin: 0; }
.product-updated { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 18px 0 0; padding: 16px 20px; color: var(--muted); background: rgba(255,255,255,.52); border: 1px solid var(--border); border-radius: var(--small-radius); font-size: .82rem; }
.product-updated span { display: flex; align-items: center; gap: 7px; }
.product-updated .ui-icon { color: var(--green-2); }
.product-updated strong { color: var(--ink); white-space: nowrap; }
.sources-section { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.sources-section ul { margin: 0; padding: 0; list-style: none; }
.sources-section li { display: grid; grid-template-columns: 1fr auto auto; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.sources-section li span { color: var(--muted); }

.form-page { padding-top: 62px; padding-bottom: 80px; }
.form-page--narrow { max-width: 760px; }
.stack-form { display: grid; gap: 18px; margin-top: 30px; }
.stack-form label { display: grid; gap: 6px; font-weight: 650; color: var(--ink); }
.stack-form label small { font-weight: 400; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-grid--numeric { grid-template-columns: repeat(3, 1fr); }
.stack-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stack-form legend { padding: 0 8px; font-weight: 800; color: var(--ink); }
.honeypot { position: absolute; left: -9999px; }
.checkbox-label { display: flex !important; grid-column: 1/-1; flex-direction: row; align-items: center; gap: 9px !important; }
.checkbox-label input { width: auto; }
.field-span { grid-column: 1 / -1; }
.admin-heading__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.admin-product-heading__identity { flex: 1; min-width: 0; }
.admin-product-heading h1 { overflow-wrap: anywhere; }
.admin-product-brand { color: var(--green-2); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 750; margin: 0 0 10px; }
.admin-product-heading .admin-heading__actions { flex: 0 0 auto; max-width: 300px; }
.stack-form .micronutrient-editor { min-width: 0; background: var(--surface); scroll-margin-top: 24px; }
.micronutrient-editor__intro { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.micronutrient-editor__intro p { margin: 0 0 8px; }
.micronutrient-editor__count { white-space: nowrap; border-radius: 8px; background: var(--surface-soft); color: var(--green); padding: 8px 12px; font-size: .8rem; font-weight: 750; }
.stack-form .micronutrient-editor__search { max-width: 440px; margin: 12px 0 22px; font-size: .85rem; }
.micronutrient-editor__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.micronutrient-editor__group { min-width: 0; }
.micronutrient-editor__group h2 { font-size: 1.12rem; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.micronutrient-editor__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack-form .micronutrient-editor__field { min-width: 0; align-content: start; font-size: .84rem; }
.micronutrient-editor__input { display: flex; align-items: center; border: 1px solid #b9bdb2; border-radius: 9px; background: #fff; overflow: hidden; }
.micronutrient-editor__input:focus-within { outline: 3px solid rgba(47,105,71,.2); border-color: var(--green); }
.micronutrient-editor__input input { min-width: 0; width: 100%; border: 0; border-radius: 0; font-variant-numeric: tabular-nums; }
.micronutrient-editor__input input:focus { outline: 0; }
.micronutrient-editor__input > span { padding: 10px 12px; color: var(--muted); font-size: .8rem; background: var(--surface-soft); border-left: 1px solid var(--border); }
.micronutrient-editor__field input::placeholder { color: #727d74; font-size: .8rem; }
.micronutrient-editor__footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.micronutrient-editor__footer label { font-size: .85rem; }
.micronutrient-editor [hidden] { display: none !important; }
@media (max-width: 1000px) {
  .micronutrient-editor__fields { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .micronutrient-editor__intro { flex-direction: column; }
  .micronutrient-editor__groups, .micronutrient-editor__footer { grid-template-columns: 1fr; }
  .micronutrient-editor__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-form .micronutrient-editor { padding: 16px; }
  .micronutrient-editor__input input { padding: 10px 8px; }
  .micronutrient-editor__input > span { padding: 10px 8px; }
}
.article-page { max-width: 830px; padding-top: 72px; padding-bottom: 90px; }
.article-page section { padding: 24px 0; border-top: 1px solid var(--border); }
.article-page li { margin-bottom: 10px; }
.method-warning { background: var(--surface-soft); border-radius: var(--radius); padding: 24px !important; border: 0 !important; }

.directory-page { padding-top: 34px; padding-bottom: 90px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .84rem; margin-bottom: 42px; }
.breadcrumbs a { color: var(--green); }
.directory-heading { max-width: 820px; margin-bottom: 32px; }
.directory-heading h1 { font-size: clamp(2.1rem, 4vw, 4rem); margin-bottom: 12px; }
.directory-heading--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.directory-heading--split > div { max-width: 820px; }
.directory-total { color: var(--muted); white-space: nowrap; }
.directory-total strong { display: block; color: var(--ink); font-size: 2rem; }
.category-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
.category-directory article { border-bottom: 1px solid var(--border); }
.category-directory__link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding: 12px 2px; color: var(--ink); text-decoration: none; }
.category-directory__link:hover h2, .category-directory__link:focus-visible h2 { color: var(--orange); }
.category-directory__link:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }
.category-directory h2 { margin: 0; font-size: 1.05rem; }
.category-directory__count { flex: 0 0 auto; color: var(--muted); font-size: .78rem; }
.catalog-item { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.catalog-item:hover, .catalog-item:focus-within { transform: translateY(-3px); border-color: var(--green-2); box-shadow: var(--shadow); }
.catalog-item:focus-within { outline: 3px solid rgba(223,93,22,.24); outline-offset: 2px; }
.catalog-item h2 a { color: var(--ink); text-decoration: none; }
.catalog-item h2 a:hover, .catalog-item h2 a:focus-visible,
.catalog-item:is(:hover, :focus-within) h2 a,
.catalog-item:is(:hover, :focus-within) .catalog-item__brand { color: var(--orange-text); }
.similar-products { margin: 28px 0 0; padding: 24px 0; border-top: 1px solid var(--border); }
.similar-products h2 { margin: 6px 0 10px; }
.similar-products__note { max-width: 760px; color: var(--muted); line-height: 1.55; font-size: .9rem; }
.similar-products__note--small { margin-bottom: 0; font-size: .78rem; }
.similar-products__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.similar-product { min-width: 0; display: flex; flex-wrap: wrap; align-content: start; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.similar-product__photo { flex: 0 0 64px; margin: 0; }
.similar-product__photo img { display: block; width: 64px; height: 72px; object-fit: contain; }
.similar-product__identity { flex: 1 1 120px; min-width: 0; }
.similar-product h3 { margin: 6px 0; font-size: .98rem; line-height: 1.4; overflow-wrap: anywhere; }
.similar-product h3 a { color: var(--ink); text-decoration: none; }
.similar-product h3 a:hover { text-decoration: underline; }
.similar-product__package { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.similar-product__compare { width: 100%; align-self: end; margin-top: auto; padding: 9px; font-size: .78rem; }
.book-promotion { display: flex; align-items: center; gap: 16px; margin: 24px 0 12px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: #f7f8f5; }
.book-promotion__cover { width: 52px; height: 78px; flex: 0 0 52px; object-fit: contain; }
.book-promotion__copy { min-width: 0; }
.book-promotion__label { margin: 0 0 5px; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.book-promotion__label span { white-space: nowrap; }
.book-promotion h2 { margin: 0; font-size: 1rem; line-height: 1.4; }
.book-promotion__description { margin: 4px 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.book-promotion__formats { display: flex; flex-wrap: wrap; column-gap: 22px; }
.book-promotion__formats a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--green); font-size: .8rem; font-weight: 650; text-underline-offset: 3px; }
@media (max-width: 1000px) { .similar-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  body.product-view .similar-products { margin: 0; padding: 20px 16px; border-top: 0; }
  .similar-products__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .similar-product { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
  .similar-product__identity { grid-column: 2; }
  .similar-product__identity:first-child { grid-column: 1 / -1; }
  .similar-product__compare { grid-column: 1 / -1; min-height: 44px; }
  .book-promotion { gap: 12px; padding: 14px; }
  body.product-view .book-promotion { margin: 16px; }
  .book-promotion__formats a { min-height: 44px; }
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-item { display: flex; flex-direction: column; }
.catalog-item__header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.catalog-item__identity { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.catalog-item__identity > :last-child { margin-bottom: 0; }
.catalog-item__photo { flex: 0 0 72px; width: 72px; margin: 0; }
.catalog-item__photo img { display: block; width: 72px; height: 80px; object-fit: contain; }
.catalog-item__photo[hidden] { display: none; }
.catalog-item h2 { font-size: 1.12rem; margin-bottom: 7px; }
.catalog-item__package { color: var(--muted); }
.catalog-item .product-nutrients { margin: auto 0 0; padding-top: 14px; }
.catalog-score { font-weight: 800; }
.catalog-score--excellent, .score-preview--excellent strong { color: var(--score-excellent); }
.catalog-score--good, .score-preview--good strong { color: var(--score-good); }
.catalog-score--balanced, .score-preview--balanced strong { color: #9b7100; }
.catalog-score--limited, .score-preview--limited strong { color: var(--score-limited); }
.catalog-score--low, .score-preview--low strong { color: var(--score-low); }

.scanner-page { max-width: 860px; padding-top: 64px; padding-bottom: 90px; }
.scanner-page > .lead { max-width: 700px; }
.scanner-card, .scanner-fallback { margin-top: 24px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.scanner-viewport { position: relative; overflow: hidden; min-height: 280px; background: #17201b; border-radius: var(--small-radius); display: grid; place-items: center; }
.scanner-viewport video { display: block; width: 100%; max-height: 480px; object-fit: cover; }
.scanner-guide { position: absolute; inset: 50% auto auto 50%; width: min(78%, 480px); height: 120px; transform: translate(-50%, -50%); border: 3px solid var(--yellow); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.24); }
.scanner-status { min-height: 1.5em; color: var(--muted); }
.scanner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.scanner-actions button:disabled { cursor: not-allowed; opacity: .55; }
.scanner-fallback h2 { font-size: 1.2rem; }
.public-scanner { padding-top: 16px; }
.public-scanner > h1 { margin: 0 0 8px; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.public-scanner > .lead { margin: 0; font-size: 1rem; line-height: 1.4; }
.public-scanner .scanner-card { margin-top: 12px; padding: 12px; }
.public-scanner .scanner-viewport { min-height: 0; height: clamp(180px, calc(100dvh - 300px), 440px); }
.public-scanner .scanner-viewport video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.public-scanner .scanner-status { margin: 10px 0; font-size: .85rem; line-height: 1.35; }
@media (max-width: 640px), (max-height: 500px) {
  .public-scanner { padding-top: 8px; }
}
.admin-scan-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.admin-scan-stats span { display: flex; align-items: baseline; gap: 9px; padding: 11px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: .82rem; }
.admin-scan-stats strong { color: var(--ink); font-size: 1.2rem; }
.admin-scan-results { margin-top: 28px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.admin-scan-results h2 { margin-bottom: 8px; font-size: 1.2rem; }
.admin-scan-results ol { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.admin-scan-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 13px; border-left: 4px solid #9aa39d; border-radius: 7px; background: var(--surface-soft); overflow-wrap: anywhere; }
.admin-scan-result a { flex: 0 0 auto; font-size: .82rem; font-weight: 750; }
.admin-scan-result--queued { border-left-color: #2f8e55; background: #edf7ef; }
.admin-scan-result--duplicate { border-left-color: #c58b19; background: #fff7e6; }
.admin-scan-result--existing { border-left-color: #547d91; background: #edf5f7; }
.admin-scan-result--invalid { border-left-color: #bd4b42; background: #fbefed; }

.admin-shell { background: var(--bg); }
.admin-shell .site-header { background: var(--surface-soft); }
.admin-shell .main-nav a.admin-traffic-nav-link { display: inline-flex; }
@media (max-width: 640px) {
  .admin-shell .site-header__inner { flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .admin-shell .main-nav { flex-wrap: wrap; gap: 12px; }
}
.auth-page { min-height: 70vh; display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(100%, 410px); padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; }
.auth-card label { display: grid; gap: 6px; }
.admin-heading { align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat-grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--small-radius); padding: 18px; }
.stat-grid span { display: block; color: var(--muted); font-size: .78rem; }
.stat-grid article small { display: block; margin-top: 6px; color: var(--muted); font-size: .68rem; }
.stat-grid--reviews { margin-top: 16px; }
.status--confirmed { background: #dcebdc; color: #245632; }
.status--probable { background: #fff0c7; color: #6e4400; }
.status--conflict, .status--definition_sensitive { background: #f2dddd; color: #762b25; }
.status--no_data { background: #e6e8e3; color: #4f5851; }
.stat-grid strong { color: var(--ink); font-size: 1.8rem; }
.stat-grid .stat-test { border-color: #d9b56d; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.admin-panel { padding: 22px; margin-top: 18px; }
.admin-panel h2 { font-size: 1.2rem; }
.action-list { display: grid; }
.action-list a { padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; }
td small { display: block; color: var(--muted); margin-top: 2px; }
.admin-search { display: flex; gap: 10px; margin-bottom: 16px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 14px; }
.status, .policy { display: inline-block; border-radius: 999px; padding: 3px 8px; background: #e7e9e3; font-size: .72rem; font-weight: 750; }
.status--published, .status--accepted, .policy--approved_api, .policy--approved_manual { background: #dcecdc; color: #27552e; }
.status--review, .status--reviewing, .policy--manual_review { background: #fff0c7; color: #6e4400; }
.status--archived, .status--rejected, .policy--permission_required { background: #f2dddd; color: #762b25; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.source-card { padding: 20px; }
.source-card__head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.source-card h2 { font-size: 1.12rem; }
.source-card p { color: var(--muted); font-size: .86rem; }
.request-list { display: grid; gap: 16px; }
.request-card { padding: 22px; }
.request-card__head { display: flex; justify-content: space-between; gap: 20px; }
.request-card__head h2 { margin-top: 8px; }
.request-card dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.request-card form { display: grid; grid-template-columns: 180px 1fr auto; align-items: end; gap: 12px; margin-top: 18px; }
.request-card label { display: grid; gap: 5px; }
.request-copy { margin-top: 18px; padding: 14px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--border); }
.request-copy__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.request-copy__heading label { font-weight: 750; }
.request-copy__heading .button { width: auto; flex: 0 0 auto; }
.request-copy textarea { min-height: 180px; line-height: 1.45; background: #fff; }
.request-copy form { margin-top: 14px; }
.request-copy input[type="checkbox"] { width: auto; margin-right: 6px; }
.plain-list { padding-left: 20px; }
.url-cell { max-width: 420px; word-break: break-all; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px max(16px, calc((100% - var(--page))/2)); background: var(--surface-soft); color: #49554e; font-size: .86rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .product-overview { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1250px) {
  .site-header--with-search .main-nav { gap: 14px; }
  .site-header--with-search .main-nav a:nth-child(n+3) { display: none; }
}

@media (max-width: 900px) {
  .main-nav { gap: 12px; }
  .main-nav a:nth-child(n+3) { display: none; }
  .main-nav .pwa-install--nav:not([hidden]) { display: inline-flex; align-items: center; }
  .dimension-grid, .source-grid { grid-template-columns: 1fr; }
  .home-category-links { grid-template-columns: repeat(2, 1fr); }
  .category-directory, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-list { grid-template-columns: 1fr; }
  .product-overview { grid-template-columns: 1fr 1fr; }
  .overview-card { grid-column: auto; }
  .overview-card--macros { grid-column: span 2; }
  .product-layout, .sources-section { grid-template-columns: 1fr; }
  .product-information-row { grid-template-columns: 1fr; align-items: start; }
  .product-information-row .response-panel__body { display: grid; grid-template-columns: 1fr; }
  .nutrition-score-card { grid-template-columns: 1fr; }
  .nutrition-profile-card .nutrition-score-card__components { margin-top: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .response-panel__heading { flex-direction: column; }
  .portion-form, .portion-display { width: 100%; }
  .pagination { flex-direction: column; }
}

@media (max-width: 640px) {
  .site-header__inner { min-height: 64px; }
  .site-header--with-search .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 8px 0; }
  .site-header--with-search .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; min-width: 0; }
  .brand { font-size: .95rem; gap: 7px; }
  .brand__mark { display: none; }
  .brand__section { padding-left: 7px; }
  .main-nav a { display: none; }
  .main-nav .pwa-install--nav:not([hidden]) { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 9px; font-size: .72rem; }
  .admin-shell .main-nav a:first-child { display: inline; }
  .hero { padding-top: 64px; }
  .search-box { gap: 6px; }
  .search-box input { padding-inline: 10px; }
  .search-box .button { padding-inline: 12px; }
  .search-box .search-box__scanner { width: 44px; padding-inline: 0; }
  .search-box__scanner-label { display: none; }
  .autocomplete-option em { display: none; }
  .request-strip__inner, .trust-row, .results-heading, .product-title-row, .admin-heading, .admin-toolbar, .site-footer { flex-direction: column; align-items: stretch; }
  .product-card { grid-template-columns: 1fr; }
  .product-overview { grid-template-columns: 1fr; }
  .overview-card--macros { grid-column: auto; }
  .overview-card { min-height: 128px; }
  .product-card__meta dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .response-panel__body { grid-template-columns: 1fr; }
  .response-dimensions { grid-template-columns: 1fr 1fr; }
  .nutrition-grid { grid-template-columns: 1fr 1fr; }
  .micronutrient-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .product-updated { align-items: flex-start; flex-direction: column; gap: 4px; }
  .nutrition-score-card__components { grid-template-columns: 1fr; }
  .sources-section li { grid-template-columns: 1fr; gap: 3px; }
  .field-grid, .field-grid--numeric, .admin-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .request-card dl { grid-template-columns: 1fr 1fr; }
  .request-card form { grid-template-columns: 1fr; }
  .request-copy__heading { align-items: stretch; flex-direction: column; }
  .request-copy__heading .button { width: 100%; }
  .empty-state { padding: 30px 20px; }
  .pwa-dialog { padding: 24px 20px; }
  .home-category-links, .category-directory, .catalog-grid { grid-template-columns: 1fr; }
  .directory-heading--split { flex-direction: column; align-items: stretch; }
  .scanner-card, .scanner-fallback { padding: 18px; }
  .scanner-viewport { min-height: 220px; }
  .admin-scan-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-scan-stats span { display: grid; gap: 3px; }
  .admin-scan-results { padding: 18px; }
  .admin-scan-result { align-items: flex-start; flex-direction: column; gap: 7px; }
  .pagination__navigation { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .pagination__status { grid-column: 1 / -1; grid-row: 1; }
  .pagination__button { white-space: normal; text-align: center; }
  .pagination__jump { width: 100%; justify-content: center; flex-wrap: wrap; }
}

/* On phones, keep the light palette but separate each information layer clearly. */
@media (max-width: 640px) {
  body.public-shell:not(.home-shell),
  body.admin-shell {
    background: #f4f6f3;
  }

  body.public-shell:not(.home-shell) .site-header,
  body.admin-shell .site-header {
    border-bottom-color: #c7d0c9;
    box-shadow: 0 1px 0 rgba(16, 47, 34, .04);
  }

  :is(
    .product-card,
    .catalog-item,
    .overview-card,
    .nutrition-score-card,
    .identity-panel,
    .response-panel,
    .detail-section,
    .ingredients-section,
    .sources-section,
    .scanner-card,
    .scanner-fallback,
    .empty-state,
    .pagination,
    .comparison-scroll,
    .admin-panel,
    .source-card,
    .request-card
  ) {
    border-color: #bcc7be;
    box-shadow: 0 3px 12px rgba(16, 47, 34, .075);
  }

  .nutrition-profile-card {
    background: #fff;
    border-color: #aebdae;
    box-shadow: 0 4px 15px rgba(16, 47, 34, .09);
  }

  .product-card,
  .product-card__meta,
  .product-card__body,
  .catalog-item {
    background: #fff;
  }

  :is(
    .overview-macros-grid > span,
    .product-nutrients .product-nutrients__grid > div,
    .response-preview,
    .response-curve,
    .response-dimensions div,
    .nutrition-grid div,
    .score-component,
    .product-photo__stage,
    .comparison-table th,
    .comparison-table td
  ) {
    border-color: #c3cdc5;
  }

  :is(
    .overview-macros-grid > span,
    .product-nutrients .product-nutrients__grid > div,
    .response-curve,
    .response-dimensions div,
    .nutrition-grid div
  ) {
    background: #f1f4ef;
  }

  .product-card__meta {
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }

  .product-card__meta dl,
  .product-card__meta .match-label,
  .product-card .response-preview {
    display: none;
  }

  .product-card__photo {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    width: 72px;
    margin: 0;
    pointer-events: none;
  }

  .product-card__photo img {
    width: 72px;
    height: 80px;
  }

  .product-card__body {
    padding: 18px;
  }

  .product-card:has(.product-card__photo:not([hidden])) .product-card__identity {
    min-height: 82px;
    padding-right: 86px;
  }

  .product-card__title-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 8px;
  }

  .product-card__title-line h2 {
    margin: 0;
  }

  .product-card__package-inline {
    display: inline;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.3;
    white-space: nowrap;
  }

  .product-card__package-inline::before {
    content: "· ";
  }

  .product-card__brand {
    margin: 4px 0 0;
  }

  /* Mobile cards need a stronger reading hierarchy than the desktop grid. */
  .product-card__body h2,
  .catalog-item h2 {
    font-size: 1.25rem;
    line-height: 1.24;
  }

  .product-card__brand {
    font-size: 1rem;
    line-height: 1.35;
  }

  .catalog-item__brand {
    font-size: .86rem;
    line-height: 1.3;
    letter-spacing: .08em;
  }

  .product-card__meta dd {
    font-size: .96rem;
    line-height: 1.35;
  }

  .overview-card > span {
    font-size: .82rem;
    line-height: 1.3;
  }

  .overview-card > em {
    font-size: .86rem;
    line-height: 1.35;
  }

  .overview-macros-grid b {
    font-size: 1.03rem;
  }

  .overview-macros-grid small {
    font-size: .68rem;
  }

  .score-component header span {
    font-size: .86rem;
  }

  .score-component__verdict {
    font-size: .88rem;
  }

  .score-component p {
    font-size: .76rem;
    line-height: 1.35;
  }

  .score-component footer {
    font-size: .75rem;
  }

  .nutrition-grid span {
    font-size: .82rem;
    line-height: 1.3;
  }

  .nutrition-grid strong {
    font-size: 1.03rem;
  }

  .nutrition-grid small {
    font-size: .77rem;
  }

  .product-information-row .response-dimensions span {
    font-size: .76rem;
    line-height: 1.3;
  }

  .product-information-row .response-dimensions strong {
    font-size: 1rem;
  }

  .product-information-row .glycemic-summary dt {
    font-size: .7rem;
  }

  .product-information-row .glycemic-summary dd {
    font-size: .94rem;
  }

  .response-curve figcaption {
    font-size: .73rem;
  }

  .product-nutrients__basis,
  .response-preview__label {
    font-size: .8rem;
  }

  .product-nutrients__grid dt {
    font-size: .72rem;
  }

  .product-nutrients__grid dd {
    font-size: 1rem;
  }

  .product-nutrients__grid dd span {
    font-size: .73rem;
  }

  /* One compact nutrient row shared by search, catalog and category cards. */
  .catalog-item { padding: 18px; }
  :is(.product-card, .catalog-item) .product-nutrients__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  :is(.product-card, .catalog-item) .product-nutrients__grid > div { padding: 8px 3px; }
  :is(.product-card, .catalog-item) .product-nutrients__grid dt { font-size: .94rem; }
  :is(.product-card, .catalog-item) .product-nutrients__grid dd { gap: 2px; font-size: 1.22rem; }
  :is(.product-card, .catalog-item) .product-nutrients__grid dd strong { overflow-wrap: anywhere; }
  :is(.product-card, .catalog-item) .product-nutrients__grid dd span { font-size: .8rem; }

  .response-chips span {
    font-size: .81rem;
  }

  .product-information-row {
    gap: 16px;
  }

  .product-updated,
  .nutrition-note,
  .flash {
    background: #fff;
    border-color: #c3cdc5;
  }
}

/* Product detail becomes a compact, tabbed app surface only on phones. */
@media (max-width: 640px) {
  body.public-shell.product-view {
    background: #eef2ee;
    color: #173126;
  }

  body.product-view .site-header { display: none; }

  body.product-view .product-page {
    width: 100%;
    padding-bottom: max(44px, env(safe-area-inset-bottom));
  }

  body.product-view .breadcrumbs { display: none; }

  body.product-view .mobile-product-appbar {
    position: sticky;
    z-index: 55;
    top: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 132px;
    align-items: end;
    min-height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 8px 0;
    border-bottom: 1px solid #a8b8aa;
    background: #fff;
  }

  .mobile-product-appbar > strong {
    align-self: center;
    color: #08291b;
    font-size: .98rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-product-appbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .mobile-product-appbar__button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0d4a2d;
    cursor: pointer;
  }
  .mobile-product-appbar__button[hidden] { display: none !important; }

  .mobile-product-appbar > .mobile-product-appbar__button { justify-self: start; }
  .mobile-product-appbar__button .ui-icon { width: 25px; height: 25px; stroke-width: 2; }
  .mobile-product-appbar__button:hover { background: #e4ebe3; }
  .mobile-product-appbar__button:focus-visible { outline: 3px solid rgba(223, 93, 22, .35); outline-offset: -2px; }
  .mobile-product-appbar__button--scanner { border: 1px solid #c85012; background: var(--orange); color: #fff; }
  .mobile-product-appbar__button--scanner:hover, .mobile-product-appbar__button--scanner:focus-visible { background: #c85012; color: #fff; }

  .mobile-product-menu { position: relative; }
  .mobile-product-menu > summary { list-style: none; }
  .mobile-product-menu > summary::-webkit-details-marker { display: none; }
  .mobile-product-menu[open] > summary { background: #e4ebe3; }
  .mobile-product-menu__panel {
    position: absolute;
    z-index: 70;
    top: calc(100% + 6px);
    right: 0;
    width: min(264px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid #97aa9a;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(8, 41, 27, .18);
  }

  .mobile-product-menu__panel > strong {
    display: block;
    margin: 0 2px 9px;
    color: #526159;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-product-menu__panel .comparison-product-actions { display: grid; gap: 8px; }
  .mobile-product-menu__panel .comparison-choice,
  .mobile-product-menu__panel .button { width: 100%; margin: 0; }

  body.product-view .product-page > .search-box--product-mobile { display: none; }
  body.product-view .product-page > .search-box--product-mobile.is-mobile-open {
    position: sticky;
    z-index: 52;
    top: calc(56px + env(safe-area-inset-top));
    display: flex;
    width: calc(100% - 24px);
    margin: 10px auto;
    border-color: #7f9784;
    background: #fff;
    box-shadow: 0 8px 22px rgba(8, 41, 27, .13);
  }

  body.product-view .product-title-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin: 0;
    padding: 20px 16px 18px;
    border-bottom: 1px solid #a8b8aa;
    background: #fff;
  }

  body.product-view .mobile-product-photo {
    display: block;
    width: 76px;
    margin: 0;
  }

  .mobile-product-photo__stage {
    display: grid;
    place-items: center;
    width: 76px;
    height: 92px;
    overflow: hidden;
    border: 1px solid #a8b8aa;
    border-radius: 11px;
    background: #f5f7f3;
  }

  .mobile-product-photo__image { display: block; width: 72px; height: 88px; object-fit: contain; }
  .mobile-product-photo__placeholder {
    display: grid;
    place-items: center;
    gap: 4px;
    color: #28573b;
    font-size: .62rem;
    font-weight: 650;
    line-height: 1.18;
    text-align: center;
  }
  .mobile-product-photo__placeholder .ui-icon { width: 24px; height: 24px; }
  .mobile-product-photo__placeholder[hidden],
  .mobile-product-photo__image[hidden] { display: none !important; }

  body.product-view .product-title-row__copy { min-width: 0; }
  body.product-view .product-title-row .product-brand {
    display: block;
    margin: 2px 0 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body.product-view .product-title-row .product-brand .ui-icon,
  body.product-view .product-title-row .product-brand > span { display: none; }
  body.product-view .product-title-row .product-brand strong {
    color: #12512f;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .065em;
    text-transform: uppercase;
  }
  body.product-view .product-title-row h1 {
    margin: 0;
    color: #08291b;
    font-size: clamp(1.34rem, 6.2vw, 1.68rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
  }
  body.product-view .mobile-product-category {
    display: block;
    margin-top: 6px;
    color: #526159;
    font-size: .82rem;
    line-height: 1.3;
  }
  body.product-view .mobile-product-portion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 10px;
    padding: 5px 9px;
    border: 1px solid #a8b8aa;
    border-radius: 9px;
    background: #f5f7f3;
    color: #12512f;
    font-size: .78rem;
    font-weight: 650;
  }
  body.product-view .mobile-product-portion .ui-icon { width: 16px; height: 16px; }
  body.product-view .product-title-row .preparation-basis-note,
  body.product-view .product-title-row .recipe-estimate-note { margin-top: 9px; font-size: .72rem; line-height: 1.4; }
  body.product-view .product-title-row > .comparison-product-actions { grid-column: 1 / -1; }

  body.product-view .mobile-product-tabs {
    position: sticky;
    z-index: 48;
    top: calc(56px + env(safe-area-inset-top));
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    border-bottom: 1px solid #a8b8aa;
    background: #fff;
    scroll-margin-top: calc(56px + env(safe-area-inset-top));
  }
  body.product-view .mobile-product-tabs[hidden] { display: none !important; }
  .mobile-product-tabs a {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 52px;
    padding: 7px 5px;
    color: #526159;
    font-size: .9rem;
    font-weight: 560;
    text-decoration: none;
  }
  .mobile-product-tabs a[aria-current="page"] { color: #0d4a2d; font-weight: 780; }
  .mobile-product-tabs a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: 0;
    left: 12%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #12512f;
  }
  .mobile-product-tabs a:focus-visible { outline: 3px solid rgba(223, 93, 22, .35); outline-offset: -4px; }

  body.product-view .mobile-product-summary {
    display: block;
    padding: 18px 16px 15px;
    scroll-margin-top: calc(112px + env(safe-area-inset-top));
  }
  body.product-view [data-mobile-tab-content][hidden],
  body.product-view [data-mobile-nutrient-panel][hidden] { display: none !important; }

  .mobile-nutrient-basis-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 13px;
    border: 1px solid #91a594;
    border-radius: 11px;
    background: #fff;
  }
  .mobile-nutrient-basis-switch button {
    min-width: 0;
    min-height: 46px;
    padding: 7px 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #123b27;
    font-size: .88rem;
    font-weight: 650;
    cursor: pointer;
  }
  .mobile-nutrient-basis-switch button + button { border-left: 1px solid #a8b8aa; }
  .mobile-nutrient-basis-switch button[aria-pressed="true"] { background: #12512f; color: #fff; }
  .mobile-nutrient-basis-switch button:focus-visible { position: relative; outline: 3px solid #df5d16; outline-offset: -3px; }
  .mobile-nutrient-basis-label { margin: 0 0 12px; color: #526159; font-size: .78rem; font-weight: 700; }

  .mobile-nutrition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mobile-nutrition-tile {
    display: grid;
    place-items: center;
    align-content: center;
    min-width: 0;
    min-height: 108px;
    padding: 9px 5px;
    border: 1px solid #a8b8aa;
    border-radius: 11px;
    background: #fff;
    text-align: center;
  }
  .mobile-nutrition-tile .ui-icon { width: 21px; height: 21px; margin-bottom: 6px; color: #12512f; stroke-width: 1.9; }
  .mobile-nutrition-tile > span {
    min-width: 0;
    color: #526159;
    font-size: clamp(.64rem, 2.9vw, .77rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }
  .mobile-nutrition-tile > strong { margin-top: 5px; color: #08291b; font-size: 1.28rem; line-height: 1; }
  .mobile-nutrition-tile > strong small { color: #526159; font-size: .62em; font-weight: 600; }

  body.product-view .product-overview { display: none; }

  body.product-view .nutrition-profile-card {
    display: block;
    margin: 0 16px 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body.product-view .nutrition-profile-card__basis { margin: 0 0 4px; color: #526159; font-size: .66rem; }
  body.product-view .nutrition-profile-card .nutrition-score-card__result h2 {
    margin: 0 0 11px;
    color: #08291b;
    font-size: 1.38rem;
  }
  body.product-view .nutrition-profile-card .nutrition-score-card__result h2 .ui-icon { display: none; }
  body.product-view .nutrition-profile-card .product-photo { display: none; }
  body.product-view .nutrition-profile-card .nutrition-score-card__components {
    display: block;
    overflow: hidden;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body.product-view .nutrition-profile-card .score-component {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 47%);
    grid-template-areas: "label verdict" "value bar";
    column-gap: 9px;
    align-items: center;
    min-height: 62px;
    padding: 7px 4px;
    border: 0;
    border-bottom: 1px solid #c4cdc5;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  body.product-view .nutrition-profile-card .score-component:last-child { border-bottom: 0; }
  body.product-view .nutrition-profile-card .score-component header { grid-area: label; min-width: 0; }
  body.product-view .nutrition-profile-card .score-component header span { color: #08291b; font-size: .82rem; font-weight: 760; }
  body.product-view .nutrition-profile-card .score-component header .ui-icon { display: none; }
  body.product-view .nutrition-profile-card .score-component__verdict {
    grid-area: verdict;
    justify-self: end;
    max-width: 100%;
    margin: 0;
    padding: 3px 7px;
    color: color-mix(in srgb, var(--indicator-color) 70%, #08291b);
    font-size: clamp(.62rem, 2.7vw, .72rem);
    line-height: 1.15;
    text-align: center;
  }
  body.product-view .nutrition-profile-card .score-component--excellent .score-component__verdict,
  body.product-view .nutrition-profile-card .score-component--good .score-component__verdict {
    border-color: #a9c79f;
    background: #edf6e8;
    color: #285b29;
  }
  body.product-view .nutrition-profile-card .score-component--balanced .score-component__verdict {
    border-color: #dfc36c;
    background: #fff3ce;
    color: #664900;
  }
  body.product-view .nutrition-profile-card .score-component--limited .score-component__verdict {
    border-color: #e7a173;
    background: #ffebde;
    color: #7c300d;
  }
  body.product-view .nutrition-profile-card .score-component--low .score-component__verdict {
    border-color: #df9691;
    background: #ffe8e6;
    color: #7b1e1b;
  }
  body.product-view .nutrition-profile-card .score-component p {
    grid-area: value;
    min-height: 0;
    margin: 3px 0 0;
    color: #526159;
    font-size: .72rem;
    line-height: 1.2;
  }
  body.product-view .nutrition-profile-card .score-segments {
    grid-area: bar;
    align-self: center;
    display: grid;
    gap: 3px;
    width: 100%;
    margin: 0;
    padding: 8px 0 2px;
  }
  body.product-view .nutrition-profile-card .score-segment {
    position: relative;
    height: 5px;
    border: 0;
    border-radius: 2px;
    opacity: .18;
  }
  body.product-view .nutrition-profile-card .score-segment.is-filled { opacity: 1; }
  body.product-view .nutrition-profile-card .score-segment.is-current { outline: 0; }
  body.product-view .nutrition-profile-card .score-segment.is-current::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #08291b;
    transform: translate(-50%, -50%);
  }

  body.product-view .detail-grid[data-mobile-tab-content] { margin: 16px; }
  body.product-view #macronutrienti { padding: 16px; border-color: #a8b8aa; border-radius: 12px; box-shadow: none; }
  body.product-view #macronutrienti .nutrient-section-heading { display: block; margin-bottom: 13px; }
  body.product-view #macronutrienti .nutrient-section-heading h2 { font-size: 1.38rem; }
  body.product-view #macronutrienti .nutrient-basis-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 12px; padding: 0; overflow: hidden; border-color: #91a594; border-radius: 11px; }
  body.product-view #macronutrienti .nutrient-basis-switch button { min-height: 46px; border-radius: 0; color: #123b27; }
  body.product-view #macronutrienti .nutrient-basis-switch button + button { border-left: 1px solid #a8b8aa; }
  body.product-view #macronutrienti .nutrient-basis-switch button[aria-pressed="true"] { background: #12512f; color: #fff; box-shadow: none; }
  body.product-view #macronutrienti .nutrition-basis { margin: 0 0 10px; font-size: .72rem; }
  body.product-view #macronutrienti .nutrition-grid:not(.nutrition-grid--micronutrients) {
    display: block;
    overflow: hidden;
    border: 1px solid #b4c1b6;
    border-radius: 10px;
    background: #fff;
  }
  body.product-view #macronutrienti .nutrition-grid:not(.nutrition-grid--micronutrients) > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    margin: 0;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid #c7d0c8;
    border-radius: 0;
    background: #fff;
  }
  body.product-view #macronutrienti .nutrition-grid:not(.nutrition-grid--micronutrients) > div:last-child { border-bottom: 0; }
  body.product-view #macronutrienti .nutrition-grid:not(.nutrition-grid--micronutrients) span { color: #263c31; font-size: .82rem; }
  body.product-view #macronutrienti .nutrition-grid:not(.nutrition-grid--micronutrients) strong { margin: 0; color: #08291b; font-size: .94rem; white-space: nowrap; }
  body.product-view #macronutrienti .micronutrient-heading { margin-top: 20px; padding-top: 16px; }
  body.product-view #macronutrienti .nutrition-grid--micronutrients { gap: 8px; }
  body.product-view #macronutrienti .nutrition-grid--micronutrients div { min-height: 82px; padding: 10px; }

  body.product-view .product-information-row { display: contents; }
  body.product-view .ingredients-section--product {
    height: auto;
    margin: 0 16px 16px;
    padding: 16px;
    border-color: #a8b8aa;
    border-radius: 12px;
    box-shadow: none;
  }
  body.product-view .ingredients-section--product h2 { font-size: 1.3rem; }
  body.product-view .ingredients-section--product > p { color: #526159; font-size: .8rem; line-height: 1.55; }

  body.product-view #raspuns-glicemic {
    min-width: 0;
    margin: 16px;
    padding: 16px;
    border-color: #a8b8aa;
    border-radius: 12px;
    box-shadow: none;
  }
  body.product-view #raspuns-glicemic .response-panel__heading h2 { font-size: 1.38rem; }
  body.product-view #raspuns-glicemic .response-panel__body { display: grid; grid-template-columns: 1fr; gap: 10px; }
  body.product-view #raspuns-glicemic .response-curve { border-color: #b4c1b6; background: #f5f7f3; }
  body.product-view #raspuns-glicemic .response-curve svg { max-height: 132px; }
  body.product-view #raspuns-glicemic .response-dimensions { grid-template-columns: 1fr 1fr; gap: 8px; }
  body.product-view #raspuns-glicemic .response-dimensions div { min-height: 72px; border-color: #b4c1b6; background: #fff; }
  body.product-view #raspuns-glicemic .glycemic-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  body.product-view #raspuns-glicemic .glycemic-summary > div { display: block; }

  body.product-view .product-updated {
    margin: 0 16px 16px;
    padding: 11px 13px;
    border-color: #b4c1b6;
    border-radius: 10px;
    font-size: .72rem;
  }

  body.product-view .site-footer { border-top: 1px solid #a8b8aa; background: #e6ece6; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card, .catalog-item, .overview-card, .category-directory article, .category-directory__image img { transition: none; }
  .product-card:hover, .product-card:focus-within, .catalog-item:hover, .catalog-item:focus-within, .overview-card:hover, .overview-card:focus-visible, .category-directory article:hover, .category-directory article:focus-within, .category-directory article:hover .category-directory__image img, .category-directory article:focus-within .category-directory__image img { transform: none; }
}

/* Editorial notes in catalog, search and comparisons. */
.editorial-score-compact { margin: 12px 0; padding: 12px 14px; border: 1px solid #a8c8b4; border-left: 4px solid #287052; border-radius: 12px; background: #edf4ef; color: #173e2b; text-align: left; }
.editorial-score-compact[data-score-tone="mixed"] { background: #fff5e9; border-color: #e5c8a4; border-left-color: #c16a16; color: #854008; }
.editorial-score-compact[data-score-tone="limited"] { background: #fff0ee; border-color: #e5b7b0; border-left-color: #bb4037; color: #942a25; }
.editorial-score-compact__value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .82rem; }
.editorial-score-compact__value strong { font-size: 1.8rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.editorial-score-compact__value small { font-size: .8rem; font-weight: 500; margin-left: 3px; }
.editorial-score-compact__status { display: block; font-size: .72rem; margin-top: 4px; }
.editorial-score-compact details { margin-top: 8px; font-size: .78rem; }
.editorial-score-compact summary { cursor: pointer; }
.editorial-score-compact details p { margin: 8px 0 0; line-height: 1.5; font-weight: 400; }
.comparison-editorial-scores td { vertical-align: top; }
.comparison-editorial-scores .editorial-score-compact { margin: 0; }

/* Fit the summary to the cards actually available. */
.product-quick-card { align-items: start; }
.quick-glycemic svg { max-height: 120px; }
@media (min-width: 1101px) {
 .product-quick-card:has(.quick-glycemic):not(.has-score):not(.has-attentions),
 .product-quick-card.has-score:has(.quick-glycemic):not(.has-attentions) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .product-quick-card.has-attentions:has(.quick-glycemic):not(.has-score) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .product-quick-card.has-score.has-attentions:has(.quick-glycemic) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.editorial-score-compact--pending,
.product-quick-card .editorial-score-preview--pending { background: #f3f5f4; border-color: #d7dfda; color: #526159; }
.product-quick-card .editorial-score-preview--pending > strong { color: #65756b; }
.product-quick-card .editorial-score-preview--pending .editorial-score-demo-copy { border-color: #d7dfda; }
.editorial-score-compact__value strong { white-space: nowrap; }
.comparison-editorial-scores .editorial-score-compact { padding: 10px 8px; }
.comparison-editorial-scores .editorial-score-compact__value { display: block; }
.comparison-editorial-scores .editorial-score-compact__value > span { display: block; white-space: nowrap; }
.comparison-editorial-scores .editorial-score-compact__value strong { display: inline-block; font-size: 1.5rem; }

/* Share content rows so notes align across neighboring catalog cards. */
.catalog-grid > .catalog-item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
}
.catalog-item > .catalog-item__header { margin-bottom: 0; }
.catalog-item > .editorial-score-compact { margin: 0; align-self: start; }
.catalog-item > .product-nutrients { margin: 0; padding-top: 0; align-self: start; }
.editorial-score-compact details { position: relative; z-index: 2; }
.catalog-item > .comparison-choice { justify-self: start; }

.search-editorial-score { display: block; margin: 8px 0 12px; font-size: 2.25rem; line-height: 1.15; font-variant-numeric: tabular-nums; color: #28543a; }
.search-editorial-score small { margin-left: 3px; font-size: .85rem; font-weight: 500; }
.search-editorial-score[data-score-tone="mixed"] { color: #a64b08; }
.search-editorial-score[data-score-tone="limited"] { color: #ae302a; }
.search-editorial-score[data-score-tone="pending"] { color: #65756b; }

.listing-editorial-score { display: inline-block; flex: 0 0 auto; white-space: nowrap; font-size: 1.9rem; line-height: 1.15; font-variant-numeric: tabular-nums; color: #28543a; }
.listing-editorial-score small { font-size: .7rem; font-weight: 500; margin-left: 2px; }
.listing-editorial-score[data-score-tone="mixed"] { color: #a64b08; }
.listing-editorial-score[data-score-tone="limited"] { color: #ae302a; }
.listing-editorial-score[data-score-tone="pending"] { color: #65756b; }
.catalog-item__header { flex-wrap: wrap; }
.catalog-item__header > .listing-editorial-score { margin-left: auto; align-self: flex-start; }
.product-card__identity > .listing-editorial-score { float: right; margin: 0 0 6px 16px; }
@media (max-width: 640px) { .listing-editorial-score { font-size: 1.65rem; } }
.listing-editorial-score { padding: 6px 9px; border-radius: 9px; background: #d7efdf; color: #145b32; }
.listing-editorial-score[data-score-tone="mixed"] { background: #ffe3b8; color: #974300; }
.listing-editorial-score[data-score-tone="limited"] { background: #ffd9d5; color: #a22420; }
.listing-editorial-score[data-score-tone="pending"] { background: #e9eeeb; color: #65756b; }
:is(.catalog-item, .product-card) .product-nutrients__grid > div { background: #e8f2ec; border-color: #cbded2; }

.product-nutrients__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.product-nutrients__heading .product-nutrients__basis { margin: 0; }
.product-nutrients__heading .listing-editorial-score { font-size: 1.65rem; padding: 4px 8px; }

/* Selected desktop medallion cards and mobile photo-left layout. */
.catalog-grid > .food-listing-card { grid-row: span 4; grid-template-rows: subgrid; padding: 18px; gap: 12px; }
.food-listing-card__photo { margin: 0; height: 160px; display: flex; justify-content: center; align-items: center; }
.food-listing-card__photo img { width: 100%; height: 100%; object-fit: contain; }
.food-listing-card__photo img[hidden] { display: none; }
.food-listing-card__identity { min-width: 0; }
.food-listing-card__identity h2 { margin: 0 0 5px; }
.food-listing-card__identity p { margin: 0; font-size: .82rem; color: var(--muted); }
.food-listing-card > .product-nutrients { margin: 0; padding: 0; }
.food-listing-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #dce5df; padding-top: 10px; }
.food-listing-card__rating { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 650; }
.food-listing-card__rating .listing-editorial-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 0; border-radius: 50%; background: #25832e; color: white; font-size: 1.4rem; }
.food-listing-card__rating .listing-editorial-score small { margin: 2px 0 0; font-size: .65rem; }
.food-listing-card__rating .listing-editorial-score[data-score-tone="mixed"] { background: #bc5700; }
.food-listing-card__rating .listing-editorial-score[data-score-tone="limited"] { background: #d52b31; }
.food-listing-card__rating .listing-editorial-score[data-score-tone="pending"] { background: #697d71; }
.food-listing-card__footer .comparison-choice { margin: 0; }
.food-search-grid.product-list { display: grid; gap: 16px; }
@media (max-width: 640px) {
 .catalog-grid > .food-listing-card { display: grid; grid-row: auto; grid-template-columns: 86px minmax(0,1fr); grid-template-rows: auto auto auto; gap: 10px 12px; padding: 14px; }
 .food-listing-card__photo { grid-column: 1; grid-row: 1 / 3; height: 112px; align-self: start; }
 .food-listing-card__identity { grid-column: 2; grid-row: 1; }
 .food-listing-card > .product-nutrients { grid-column: 2; grid-row: 2; }
 .food-listing-card__footer { grid-column: 1 / -1; grid-row: 3; }
 .food-listing-card__rating .listing-editorial-score { width: 48px; height: 48px; font-size: 1.15rem; }
 .food-listing-card .product-nutrients__grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; }
 .food-listing-card .product-nutrients__grid > div { padding: 4px 1px; border: 0; border-radius: 0; background: transparent; }
 .food-listing-card .product-nutrients__grid dt { overflow-wrap: anywhere; }
 .food-listing-card .product-nutrients__basis { font-size: .64rem; }
 .food-listing-card__identity h2 { font-size: .98rem; }
 .food-listing-card__identity p { font-size: .75rem; }
 .site-header--with-search .header-search__scanner { display: inline-flex; }
}

/* Variant 4: white editorial cards, photographic emphasis and vivid medallions. */
.catalog-grid > .food-listing-card {
    padding: 22px 22px 0;
    border: 1px solid #e1e5e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(22,45,32,.045);
    gap: 15px;
}
.food-listing-card:hover { transform: none; border-color: #bbcec1; box-shadow: 0 5px 18px rgba(22,45,32,.07); }
.food-listing-card__photo { height: 230px; padding: 2px 6px; }
.food-listing-card__identity h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.4rem; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: #073b2c; }
.food-listing-card__identity h2 a { color: #073b2c; }
.food-listing-card__identity p { font-size: .95rem; line-height: 1.5; color: #31493f; }
.food-listing-card .product-nutrients__heading { border-top: 1px solid #e6eae7; margin-bottom: 10px; padding-top: 12px; }
.food-listing-card .product-nutrients__basis { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: .92rem; color: #153d2e; }
.food-listing-card .product-nutrients__grid { gap: 0; }
.food-listing-card .product-nutrients__grid > div { background: #fff; border: 0; border-right: 1px solid #e0e6e2; border-radius: 0; padding: 0 8px; }
.food-listing-card .product-nutrients__grid > div:first-child { padding-left: 0; }
.food-listing-card .product-nutrients__grid > div:last-child { border-right: 0; padding-right: 0; }
.food-listing-card .product-nutrients__grid dt { font-size: 1rem; color: #3e4d45; }
.food-listing-card .product-nutrients__grid dd { font-size: 1.35rem; color: #123c2c; }
.food-listing-card .product-nutrients__grid dd span { font-size: .86rem; }
.food-listing-card__footer { margin: 0 -22px; padding: 12px 22px; border-top: 1px solid #e6eae7; }
.food-listing-card__rating { font-family: Georgia, 'Times New Roman', serif; color: #0e3d2b; font-size: 1rem; gap: 12px; }
.food-listing-card__rating .listing-editorial-score { font-family: Georgia, 'Times New Roman', serif; width: 70px; height: 70px; background: #198b2c; font-size: 1.65rem; }
.food-listing-card__rating .listing-editorial-score[data-score-tone="mixed"] { background: #f77700; color: #fff; }
.food-listing-card__rating .listing-editorial-score[data-score-tone="limited"] { background: #ee2533; color: #fff; }
.food-listing-card__rating .listing-editorial-score small { font-size: .76rem; font-weight: 600; }
.food-listing-card__footer .comparison-choice { background: transparent; border: 0; border-radius: 4px; font-weight: 400; color: #3d5147; padding: 5px 0 5px 7px; }
@media (max-width: 640px) {
 .catalog-grid > .food-listing-card { padding: 14px 14px 0; gap: 10px 12px; }
 .food-listing-card__photo { height: 114px; padding: 0; }
 .food-listing-card__identity h2 { font-family: inherit; font-size: 1rem; letter-spacing: -.015em; }
 .food-listing-card__identity p { font-size: .76rem; }
 .food-listing-card .product-nutrients__heading { padding-top: 7px; margin-bottom: 6px; }
 .food-listing-card .product-nutrients__basis { font-family: inherit; font-size: .66rem; }
 .food-listing-card .product-nutrients__grid > div { padding: 0 3px; }
 .food-listing-card .product-nutrients__grid dt { font-size: .9rem; }
 .food-listing-card .product-nutrients__grid dd { font-size: 1.15rem; }
 .food-listing-card .product-nutrients__grid dd span { font-size: .76rem; }
 .food-listing-card__footer { margin: 0 -14px; padding: 9px 14px; }
 .food-listing-card__rating { font-family: inherit; font-size: .82rem; gap: 9px; }
 .food-listing-card__rating .listing-editorial-score { width: 48px; height: 48px; font-family: inherit; font-size: 1.15rem; }
 .food-listing-card__rating .listing-editorial-score small { font-size: .6rem; }
}
/* Combine photo and identity on desktop as well as mobile. */
@media (min-width: 641px) {
 .catalog-grid > .food-listing-card { grid-template-columns: 100px minmax(0,1fr); grid-template-rows: subgrid; grid-row: span 3; padding: 18px 18px 0; gap: 14px 14px; }
 .food-listing-card__photo { grid-column: 1; grid-row: 1; height: 126px; padding: 0; }
 .food-listing-card__identity { grid-column: 2; grid-row: 1; align-self: center; }
 .food-listing-card__identity h2 { font-size: 1.22rem; }
 .food-listing-card__identity p { font-size: .83rem; }
 .food-listing-card > .product-nutrients { grid-column: 1 / -1; grid-row: 2; }
 .food-listing-card__footer { grid-column: 1 / -1; grid-row: 3; margin: 0 -18px; padding: 11px 18px; }
 .food-listing-card__rating .listing-editorial-score { width: 58px; height: 58px; font-size: 1.4rem; }
}

/* Admin scan workstation: full camera frame and live feedback together. */
.admin-scanner.scanner-page { max-width: 920px; padding-top: 16px; padding-bottom: 24px; }
.admin-scanner .admin-heading { margin: 0 0 10px; }
.admin-scanner .admin-heading h1 { font-size: 1.5rem; margin: 0; }
.admin-scan-console { display:grid; gap:10px; padding:14px; border:1px solid var(--border); border-radius:16px; background:var(--surface); }
.admin-scanner .admin-scan-stats { margin:0; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.admin-scanner .admin-scan-stats span { display:flex; justify-content:space-between; align-items:center; padding:7px 10px; }
.admin-scanner .scanner-viewport { min-height:0; height:clamp(240px, 42dvh, 440px); }
.admin-scanner .scanner-viewport video { width:100%; height:100%; max-height:none; object-fit:contain; }
.admin-scan-camera-hint { position:absolute; bottom:6px; left:8px; right:8px; text-align:center; padding:3px 6px; color:white; background:#17201bba; border-radius:5px; font-size:.72rem; pointer-events:none; }
.admin-scan-success { position:absolute; inset:0; z-index:2; display:grid; place-items:center; border:6px solid #32d875; border-radius:inherit; background:rgba(34,197,94,.28); pointer-events:none; animation:admin-scan-confirm .5s ease-out both; }
.admin-scan-success[hidden] { display:none; }
.admin-scan-success span { padding:10px 18px; border-radius:12px; background:#116530; color:#fff; font-size:1.2rem; font-weight:800; box-shadow:0 2px 12px #0003; }
@keyframes admin-scan-confirm { 0%, 60% { opacity:1; } 100% { opacity:0; } }
@media (prefers-reduced-motion:reduce) { .admin-scan-success { animation:none; } }
.admin-scan-controls { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.admin-scanner .scanner-status { margin:0; font-size:.8rem; line-height:1.3; }
.admin-scanner .scanner-actions { flex-wrap:nowrap; gap:6px; }
.admin-scanner .scanner-actions .button { padding:8px 10px; font-size:.8rem; white-space:nowrap; }
.admin-scanner .admin-scan-results { margin:0; padding:0; border:0; box-shadow:none; }
.admin-scanner .admin-scan-results h2 { margin:0; font-size:.9rem; }
.admin-scanner .admin-scan-results ol { margin-top:6px; gap:5px; }
.admin-scanner .admin-scan-result { padding:7px 9px; font-size:.8rem; line-height:1.3; gap:5px; }
.admin-scanner .admin-scan-result span { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.admin-scanner .admin-scan-result a { font-size:.75rem; }
.admin-scanner .admin-scan-results .fine-print { margin:6px 0 0; font-size:.8rem; }
.admin-scanner .admin-scan-manual { margin-top:12px; padding:10px 14px; box-shadow:none; }
.admin-scan-manual summary { cursor:pointer; font-size:.85rem; font-weight:700; }
.admin-scan-manual form { margin-top:12px; }
@media(max-width:600px) {
 .admin-scanner.scanner-page { padding-top:10px; }
 .admin-scan-console { padding:10px; gap:8px; }
 .admin-scanner .scanner-viewport { height:clamp(200px, min(44dvh, calc(100dvh - 340px)), 440px); }
 .admin-scan-controls { align-items:stretch; flex-direction:column; gap:5px; }
 .admin-scanner .scanner-actions { justify-content:space-between; }
 .admin-scanner .admin-scan-result { flex-direction:row; align-items:center; }
 .admin-scanner .admin-heading .button { padding:8px 10px; font-size:.8rem; }
}
@media(max-height:500px) and (min-width:650px) {
 .admin-scan-console { grid-template-columns:1fr 1fr; }
 .admin-scanner .admin-scan-stats { grid-column:1 / -1; }
 .admin-scanner .scanner-viewport { grid-row:2 / 4; height:52dvh; }
 .admin-scan-controls { flex-direction:column; }
}

@media(max-width:700px), (max-height:500px) {
 .admin-scanner-view .site-header__inner { min-height:46px; gap:0; padding:0; width:calc(100% - 20px); }
 .admin-scanner-view .site-header .brand { display:none; }
 .admin-scanner-view .main-nav { display:flex; flex-wrap:nowrap; overflow-x:auto; width:100%; gap:18px; }
 .admin-scanner-view .main-nav > * { flex:0 0 auto; }
 .admin-scanner-view .main-nav a, .admin-scanner-view .main-nav button { min-height:42px; font-size:.8rem; }
}

@media(max-width:600px) {
 .admin-scanner .admin-heading { flex-direction:row; align-items:center; gap:8px; }
 .admin-scanner .admin-heading h1 { font-size:1.15rem; }
 .admin-scanner .admin-heading .button { width:auto; flex:0 0 auto; }
 .admin-scanner .admin-scan-stats span { padding:6px 9px; font-size:.76rem; }
 .admin-scanner .admin-scan-result { padding:5px 8px; line-height:1.2; }
 .admin-scanner .admin-scan-result a { max-width:95px; text-align:right; }
}
@media(max-height:500px) and (min-width:650px) {
 .admin-scanner.scanner-page { padding-top:4px; }
 .admin-scanner .admin-heading { margin-bottom:4px; }
 .admin-scanner .admin-heading .button { min-height:34px; padding:5px 10px; font-size:.8rem; }
 .admin-scan-console { padding:8px; gap:6px; }
 .admin-scanner .admin-scan-stats span { padding:4px 9px; font-size:.76rem; }
}
@media(max-width:600px) and (max-height:700px) {
 .admin-scanner.scanner-page { padding-top:6px; }
 .admin-scanner .admin-heading { margin-bottom:6px; }
 .admin-scanner .admin-heading .button { min-height:34px; padding:5px 10px; }
 .admin-scanner .admin-scan-console { padding:8px; gap:6px; }
 .admin-scanner .admin-scan-stats span { padding:3px 8px; }
 .admin-scanner .scanner-viewport { height:clamp(200px, calc(100dvh - 390px), 300px); }
 .admin-scanner .admin-scan-result span { -webkit-line-clamp:1; }
}

/* Customer account forms share the existing authentication card. */
.account-card { width: min(100%, 480px); min-width: 0; overflow-wrap: anywhere; }
.account-card form { display: grid; gap: 14px; }
.account-card h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.account-card input { width: 100%; min-width: 0; }

.account-card .checkbox-label input[type="checkbox"] { width: auto; flex: 0 0 auto; margin: 0; }

/* Private member management uses anonymous account numbers. */
.admin-shell .main-nav a.admin-members-nav-link{display:inline-flex}
.member-filters,.member-status-form,.member-pagination{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.member-filters label{display:grid;gap:6px;flex:1;min-width:160px}
.member-filters input,.member-filters select,.member-status-form select{min-height:42px;max-width:100%;padding:8px;border:1px solid var(--border,#d2d9d5);border-radius:8px;background:#fff}
.member-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--border,#d2d9d5)}
.member-row p{margin:6px 0 0}.member-pagination{margin-top:18px;align-items:center}
@media(max-width:600px){.member-row{align-items:stretch;flex-direction:column}.member-status-form{align-items:center}.member-status-form select{flex:1;min-width:0}.member-filters{align-items:stretch;flex-direction:column}}
