body { background: #f2eaf6; }
.layout { width: min(100% - 3rem, 1010px); margin: 0 auto; display: grid; grid-template-columns: 1fr minmax(340px, 450px); gap: clamp(2rem, 8vw, 7rem); align-items: start; padding-block: 2.5rem; }
.guide { padding-top: 2.5rem; position: sticky; top: 1rem; }
.back-link { font-size: .88rem; font-weight: 700; text-decoration: none; }
.back-link:hover, .text-link:hover { text-decoration: underline; }
.guide-label, .kicker { margin: 0 0 .55rem; color: var(--plum); text-transform: uppercase; font-weight: 800; letter-spacing: .11em; font-size: .71rem; }
.guide-label { margin-top: clamp(2rem, 7vh, 5rem); }
.guide h1 { margin: .7rem 0 1.3rem; font: 500 clamp(2.7rem, 5.5vw, 5.2rem)/1.02 var(--display); letter-spacing: -.058em; }
.guide p:not(.guide-label) { color: var(--muted); max-width: 36ch; }
.guide-note { display: flex; align-items: center; gap: .9rem; max-width: 340px; margin-top: 2rem; border-top: 1px solid #d8c7e1; padding-top: 1rem; font-size: .84rem; color: var(--muted); }
.guide-note img { flex: none; }
.phone { position: relative; min-width: 0; min-height: min(810px, calc(100dvh - 5rem)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid #ddcfe5; border-radius: 28px; box-shadow: 0 22px 65px #4e378021; }
.app-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: .8rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand .wordmark { width: auto; height: 23px; }
.demo-pill { display: grid; place-items: center; min-height: 44px; background: var(--lavender); padding: .25rem .85rem; border-radius: 999px; text-decoration: none; font-size: .75rem; font-weight: 760; }
.screen { padding: 1.35rem 1.25rem 1rem; flex: 1; }
h2 { margin: 0 0 .75rem; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.045em; line-height: 1.1; }
h2:focus { outline: none; }
h3 { margin: 0; font-size: .96rem; }
.search { position: relative; display: block; margin: 1.1rem 0 .8rem; }
.search svg { position: absolute; left: .8rem; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); stroke: var(--plum); stroke-width: 1.8; }
.search input { width: 100%; min-height: 48px; border-radius: 13px; padding: .5rem .7rem .5rem 2.45rem; border: 1px solid #cfc0de; background: white; color: var(--ink); }
.filters { display: grid; gap: .55rem; margin-bottom: 1.05rem; }
.store { display: flex; align-items: center; gap: .65rem; font-size: .8rem; font-weight: 720; }
select { flex: 1; min-width: 0; min-height: 44px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: .35rem .55rem; font: inherit; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips button { padding: .4rem .85rem; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--plum); font-size: .79rem; font-weight: 750; }
.chips button[aria-pressed=true] { background: var(--lavender); border-color: #c8b7da; }
.chips button[aria-pressed=false] span { display: none; }
.nutrition-filters { border: 1px solid var(--line); border-radius: 13px; background: white; }
.nutrition-filters summary { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .6rem; border-radius: 13px; font-size: .83rem; font-weight: 740; list-style: none; }
.nutrition-filters summary::-webkit-details-marker { display: none; }
.pro-tag { padding: .12rem .35rem; border-radius: 6px; background: var(--lavender); color: var(--plum); font-size: .65rem; white-space: nowrap; }
#nutrition-count { color: var(--plum); font-size: .72rem; white-space: nowrap; }
.nutrition-filters summary svg { flex: none; width: 16px; height: 16px; margin-inline-start: auto; stroke: var(--plum); stroke-width: 1.6; stroke-linecap: round; }
.nutrition-filters[open] summary svg { transform: rotate(180deg); }
.nutrition-fields { display: grid; gap: .25rem; border-top: 1px solid var(--line); padding: .35rem .65rem .5rem; font-size: .83rem; }
.protein-option, .score-option { display: flex; align-items: center; min-height: 44px; gap: .6rem; font-weight: 700; }
.protein-option { cursor: pointer; }
.protein-option input { accent-color: var(--plum); width: 18px; height: 18px; margin: 0; }
.score-option select { margin-inline-start: .25rem; font-weight: 500; }
.nutrition-fields p { color: var(--muted); font-size: .77rem; margin: .25rem 0 0; }
.clear-nutrition { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--plum); font-size: .78rem; font-weight: 740; text-decoration: underline; }
.clear-nutrition:disabled { color: var(--muted); text-decoration: none; }
.list-heading { display: flex; justify-content: space-between; align-items: center; margin: .65rem 0 .5rem; gap: .5rem; }
#count, .subtle { color: var(--muted); font-size: .82rem; }
.product-list { list-style: none; display: grid; gap: .5rem; padding: 0; margin: 0; }
.product-row { width: 100%; display: grid; grid-template-columns: 45px minmax(0, 1fr) 14px; gap: .7rem; align-items: center; text-align: left; padding: .6rem .65rem; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: white; }
.product-row:hover { border-color: #b9a5d0; background: #fdfaff; }
.product-row strong, .product-row small { display: block; }
.product-row small { color: var(--muted); margin: .05rem 0 .25rem; }
.thumb { min-width: 0; width: 45px; height: 50px; display: grid; place-items: center; border-radius: 11px; background: var(--lavender); color: var(--plum); }
.thumb svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.thumb.Pékáru { background: var(--blush); color: #793e27; }
.thumb.Édesség { background: #f5e3ed; color: #743960; }
.thumb.Ital { background: #e7e6f8; color: #4e4485; }
.status { display: inline-flex; align-items: center; gap: .28rem; width: fit-content; padding: .17rem .52rem; border-radius: 999px; font-size: .73rem; font-weight: 740; }
.status.good { color: var(--good); background: var(--good-bg); }
.status.uncertain { color: var(--uncertain); background: var(--uncertain-bg); }
.status.blocked { color: var(--blocked); background: var(--blocked-bg); }
.status.neutral { color: var(--plum); background: var(--lavender); }
.app-nav { position: sticky; z-index: 1; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; background: var(--paper); border-top: 1px solid var(--line); border-radius: 0 0 28px 28px; padding: .45rem .65rem max(.55rem, env(safe-area-inset-bottom)); }
.app-nav button { display: grid; justify-items: center; gap: .12rem; min-height: 52px; padding: .3rem; border: 0; border-radius: 11px; background: none; color: var(--muted); font-size: .73rem; font-weight: 730; }
.app-nav button[aria-current] { background: var(--lavender); color: var(--plum); }
.app-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty { display: block; padding: 1.1rem; border: 1px dashed #c9badb; border-radius: 13px; color: var(--muted); background: white; font-size: .9rem; }
.segmented { display: flex; gap: .3rem; margin: 1rem 0; padding: .28rem; background: var(--lavender); border-radius: 13px; }
.segmented button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--plum); font-size: .84rem; font-weight: 720; }
.segmented button[aria-pressed=true] { background: white; box-shadow: 0 1px 3px #4e378026; }
.shopping-row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .15rem .35rem; border: 1px solid var(--line); border-radius: 11px; background: white; }
.shopping-row label { display: flex; align-items: center; gap: .45rem; flex: 1; min-height: 44px; padding-inline-start: .3rem; cursor: pointer; font-size: .9rem; }
.shopping-row input { accent-color: var(--plum); width: 18px; height: 18px; flex: none; }
.shopping-row input:checked + span { text-decoration: line-through; color: var(--muted); }
.app-plan { margin-bottom: .7rem; border: 1px solid var(--line); border-radius: 15px; padding: .85rem 1rem; background: white; }
.app-plan.plus { background: #f2ebf9; }
.app-plan.pro { background: #fff0e8; }
.app-plan p { margin: .4rem 0 0; font-size: .87rem; color: var(--muted); }
.app-plan strong { display: block; margin-top: .25rem; font-size: .86rem; }
.text-link { display: inline-block; min-height: 44px; padding-block: .65rem; font-size: .87rem; font-weight: 700; }
dialog { width: min(100% - 1.25rem, 440px); max-height: 90dvh; padding: 1.1rem; border: 1px solid #d9c8e3; border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 12px 64px #2b1f4533; }
dialog::backdrop { background: #2b1f456d; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.dialog-head .kicker { margin: 0; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 11px; color: var(--plum); background: var(--lavender); font-size: 1.25rem; line-height: 1; }
.detail-name { display: flex; gap: .8rem; align-items: center; margin-bottom: .85rem; }
.detail-name h2 { font-size: 1.5rem; margin: 0 0 .2rem; }
.detail-name p { margin: 0; font-size: .83rem; color: var(--muted); }
.facts { padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: .86rem; }
.facts dt { font-weight: 730; }
.facts dd { margin: .1rem 0 .6rem; color: var(--muted); }
.facts dd:last-child { margin-bottom: 0; }
.detail-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .75rem; border: 1px solid var(--plum); border-radius: 11px; font-size: .85rem; font-weight: 750; }
.primary { background: var(--plum); color: white; }
.primary:disabled { color: var(--plum); background: var(--lavender); border-color: var(--line); }
.secondary { color: var(--plum); background: white; }
.notice { position: fixed; z-index: 2; bottom: 4.5rem; right: max(1rem, calc((100% - 1010px)/2 + 1rem)); background: var(--ink); color: white; padding: .55rem .8rem; border-radius: 12px; margin: 0; font-size: .84rem; }
@media (max-width: 740px) {
  body { background: var(--paper); }
  .layout { display: block; width: min(100%, 470px); padding: 0; }
  .guide { display: none; }
  .phone { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .app-nav { border-radius: 0; }
}
@media (min-width: 741px) {
  .phone { height: min(860px, calc(100dvh - 5rem)); min-height: 550px; }
  .screen { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .app-head, .app-nav { flex: none; }
}
