/* Guest menu — app-style (scoped to .qm) + phone frame for previews */
.qm {
  container-type: inline-size; position: relative; height: 100%; background: var(--m-bg); color: var(--m-fg); font-family: var(--m-font); font-size: 15px; line-height: 1.45; overflow: hidden; text-align: left; -webkit-font-smoothing: antialiased;
  --m-ease: cubic-bezier(.22, 1, .36, 1);
  --m-shadow: 0 1px 2px color-mix(in srgb, var(--m-fg) 5%, transparent), 0 14px 34px -18px color-mix(in srgb, var(--m-fg) 34%, transparent);
  --m-shadow-lg: 0 2px 6px color-mix(in srgb, var(--m-fg) 6%, transparent), 0 26px 50px -22px color-mix(in srgb, var(--m-fg) 45%, transparent);
  --m-acc-glow: 0 12px 26px -12px color-mix(in srgb, var(--m-accent) 75%, #000);
  --m-acc-grad: linear-gradient(180deg, color-mix(in srgb, var(--m-accent) 86%, #fff), var(--m-accent) 55%);
}
.qm.dark {
  --m-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 16px 34px -16px rgba(0, 0, 0, .8);
  --m-shadow-lg: 0 0 0 1px rgba(255, 255, 255, .06), 0 28px 56px -20px rgba(0, 0, 0, .9);
  --m-acc-glow: 0 12px 30px -10px color-mix(in srgb, var(--m-accent) 45%, transparent);
}
:where(.qm) * { box-sizing: border-box; }
:where(.qm) button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qm :focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; }
.qm-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 180px; scrollbar-width: none; }
.qm-scroll::-webkit-scrollbar { display: none; }
.qm-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.qm-layer > * { pointer-events: auto; }
.qm .grow { flex: 1; }
.qm-price, .qm-qty b, .qm-dot, .qm-cq i, .qm-sum b, .qm-cartbar b, .qm-code { font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.qm-hero { position: relative; height: 236px; overflow: hidden; background: var(--m-accent); }
.qm-cover, .qm-mesh { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); transform: translate3d(0, calc(var(--p, 0) * .4px), 0) scale(calc(1 + var(--p, 0) * .0005)); transform-origin: 50% 100%; will-change: transform; }
.qm-cover { object-fit: cover; }
.qm-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .34), transparent 34%, transparent 58%, rgba(0, 0, 0, .28)); }
.qm-mesh { background:
  radial-gradient(70% 90% at 88% 8%, color-mix(in srgb, var(--m-accent) 55%, #fff) 0%, transparent 62%),
  radial-gradient(80% 110% at 0% 100%, color-mix(in srgb, var(--m-accent) 50%, #000) 0%, transparent 70%),
  conic-gradient(from 210deg at 70% 40%, color-mix(in srgb, var(--m-accent) 80%, #000), var(--m-accent), color-mix(in srgb, var(--m-accent) 75%, #fff), color-mix(in srgb, var(--m-accent) 80%, #000));
}
/* fine guilloché rings + grain: the "printed menu" texture */
.qm-mesh::before { content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; opacity: .22;
  background: repeating-radial-gradient(circle, transparent 0 13px, rgba(255, 255, 255, .55) 13px 14px);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); }
.qm-mesh::after { content: ""; position: absolute; inset: 0; opacity: .45; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.qm-hero-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: flex-end; z-index: 1; }
.qm-langs { display: inline-flex; background: rgba(12, 12, 14, .26); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-radius: 99px; padding: 3px; gap: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 20px -10px rgba(0, 0, 0, .4); }
.qm-langs button { border: 0; background: none; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 99px; color: rgba(255, 255, 255, .86); letter-spacing: .04em; transition: background .25s, color .25s; }
.qm-langs button[aria-pressed="true"] { background: #fff; color: #111; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .3); }

/* identity: a content sheet that slides over the hero */
.qm-id { position: relative; z-index: 2; margin-top: -30px; padding: 0 18px; background: var(--m-bg); border-radius: 30px 30px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: start; }
.qm-logo { grid-row: 1; width: 76px; height: 76px; margin-top: -34px; border-radius: 24px; background: var(--m-card); display: grid; place-items: center; overflow: hidden; font: 600 30px/1 var(--m-name); color: var(--m-accent); flex: none; box-shadow: 0 0 0 4px var(--m-bg), 0 16px 30px -14px rgba(0, 0, 0, .45); }
.qm-logo img { width: 100%; height: 100%; object-fit: cover; }
.qm-id-t { min-width: 0; padding-top: 12px; }
.qm-name { font: 700 22px/1.15 var(--m-name); margin: 0; color: var(--m-fg); letter-spacing: -.02em; text-wrap: balance; }
.qm-tag { color: var(--m-mute); font-size: 13px; margin: 4px 0 0; line-height: 1.4; }
.qm-chips { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.qm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 6px 11px; border-radius: 99px; background: var(--m-card); color: var(--m-fg); box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-chip svg { color: #E3A008; }
.qm-chip i { width: 7px; height: 7px; border-radius: 50%; background: #D0503F; box-shadow: 0 0 0 3px color-mix(in srgb, #D0503F 20%, transparent); }
.qm-chip.ok i { background: #2E9A5A; box-shadow: 0 0 0 3px color-mix(in srgb, #2E9A5A 22%, transparent); animation: qmbeat 2.4s ease-in-out infinite; }
@keyframes qmbeat { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, #2E9A5A 8%, transparent); } }
.qm-chip small { color: var(--m-mute); font-weight: 500; }
.qm-chip.acc { background: var(--m-accent); color: var(--m-ink); box-shadow: none; }

.qm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 18px 0; }
.qm-act { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--m-card); border-radius: 16px; height: 50px; padding: 0 12px; font-size: 14px; font-weight: 650; box-shadow: inset 0 0 0 1px var(--m-line); transition: transform .2s var(--m-ease); }
.qm-act:active { transform: scale(.96); }
.qm-act:first-child { background: var(--m-acc-grad); color: var(--m-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--m-acc-glow); }
.qm-note-bar { margin: 16px 18px 0; padding: 12px 14px; border-radius: 16px; background: var(--m-card); color: var(--m-mute); font-size: 13px; text-align: center; box-shadow: inset 0 0 0 1px var(--m-line); }

.qm-body { padding: 18px 18px 0; }
.qm-search { display: flex; align-items: center; gap: 10px; background: var(--m-card); border-radius: 16px; padding: 0 16px; color: var(--m-mute); box-shadow: inset 0 0 0 1px var(--m-line); transition: box-shadow .25s; }
.qm-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--m-accent), 0 0 0 4px color-mix(in srgb, var(--m-accent) 12%, transparent); }
.qm-search input { border: 0; background: none; outline: none; height: 50px; width: 100%; color: var(--m-fg); font: inherit; font-size: 15px; }
.qm-search input::placeholder { color: var(--m-mute); opacity: .85; }
.qm-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.qm-menus { display: flex; gap: 4px; margin-top: 12px; padding: 4px; background: var(--m-card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--m-line); overflow-x: auto; scrollbar-width: none; }
.qm-menus button { flex: 1; border: 0; background: none; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 650; white-space: nowrap; color: var(--m-mute); transition: background .25s, color .25s, box-shadow .25s; }
.qm-menus button[aria-selected="true"] { background: var(--m-bg); color: var(--m-fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 14px -8px rgba(0, 0, 0, .3); }
.qm.dark .qm-menus button[aria-selected="true"] { background: color-mix(in srgb, var(--m-fg) 12%, var(--m-card)); }
.qm-h { font: 700 20px/1.2 var(--m-title); margin: 30px 0 14px; color: var(--m-fg); letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.qm-h small { font: 700 11px/1 var(--m-font); color: var(--m-mute); background: var(--m-card); box-shadow: inset 0 0 0 1px var(--m-line); padding: 5px 8px; border-radius: 99px; letter-spacing: .02em; }
.qm-sec .qm-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--m-line), transparent); }

/* featured */
.qm-feat-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 6px; scroll-snap-type: x mandatory; scroll-padding: 18px; }
.qm-feat-row::-webkit-scrollbar { display: none; }
.qm-fcard { position: relative; flex: none; width: 176px; height: 226px; border: 0; padding: 0; border-radius: calc(var(--m-r) + 8px); overflow: hidden; text-align: left; scroll-snap-align: start; background: var(--m-card); box-shadow: var(--m-shadow); transition: transform .3s var(--m-ease); isolation: isolate; }
.qm-fcard:active { transform: scale(.96); }
.qm-fcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.qm-fcard > img, .qm-fcard > .qm-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qm-fcard > .qm-ph { place-items: start end; padding: 18px; color: rgba(255, 255, 255, .55); background: radial-gradient(90% 70% at 90% 0%, hsl(var(--h) 45% 46%), transparent 70%), linear-gradient(160deg, hsl(var(--h) 32% 34%), hsl(var(--h) 30% 16%)); }
.qm-fcard > .qm-ph svg { width: 44px; }
.qm-veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .18) 55%, rgba(0, 0, 0, .78)); }
.qm-fbody { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; color: #fff; }
.qm-fbody b { font: 700 15px/1.25 var(--m-title); letter-spacing: -.01em; text-wrap: balance; }
.qm-fbody span { justify-self: start; background: rgba(255, 255, 255, .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-weight: 750; font-size: 12.5px; padding: 5px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* sticky categories */
.qm-cats { position: sticky; top: 0; z-index: 3; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 18px; margin: 18px -18px 0; background: var(--m-glass); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 var(--m-line); }
.qm-cats::-webkit-scrollbar { display: none; }
.qm-cats button { border: 0; background: var(--m-card); padding: 0 16px; height: 36px; border-radius: 99px; font-size: 13px; font-weight: 650; white-space: nowrap; color: var(--m-fg); box-shadow: inset 0 0 0 1px var(--m-line); transition: background .3s var(--m-ease), color .3s, box-shadow .3s; }
.qm-cats button[aria-current="true"] { background: var(--m-fg); color: var(--m-bg); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--m-fg) 70%, transparent); }

/* ---------- dishes ---------- */
.qm-list { display: grid; gap: 12px; }
.qm-dish { position: relative; cursor: default; transition: transform .25s var(--m-ease); }
.qm-dish[data-a] { cursor: pointer; }
.qm-dish[data-a]:active { transform: scale(.985); }
.qm-dbody { min-width: 0; display: grid; gap: 5px; align-content: start; }
.qm-dname { font-weight: 700; font-size: 15.5px; line-height: 1.3; letter-spacing: -.01em; }
.qm-ddesc { color: var(--m-mute); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qm-pr { display: flex; gap: 8px; align-items: baseline; }
.qm-pr.big { font-size: 24px; }
.qm-price { font-weight: 800; color: var(--m-fg); letter-spacing: -.015em; }
.qm-old { color: var(--m-mute); font-size: .85em; font-weight: 500; }
.qm-badge { justify-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 750; letter-spacing: .03em; padding: 4px 8px; border-radius: 7px; background: color-mix(in srgb, var(--m-accent) 13%, transparent); color: var(--m-accent); }
.qm-b-spicy { background: #FDE8E4; color: #C2412C; }
.qm-b-vegan { background: #E5F4E7; color: #2C7A3F; }
.qm-b-new { background: #E7EEFC; color: #3559B5; }
.qm-b-hit { background: #FCF0D9; color: #9A6A12; }
.qm.dark .qm-b-spicy { background: rgba(240, 110, 85, .16); color: #F49A86; }
.qm.dark .qm-b-vegan { background: rgba(90, 190, 120, .16); color: #8FD6A3; }
.qm.dark .qm-b-new { background: rgba(110, 150, 240, .16); color: #A4BCF5; }
.qm.dark .qm-b-hit { background: rgba(230, 170, 60, .16); color: #EBC37A; }
.qm-pic { position: relative; overflow: hidden; border-radius: var(--m-r); background: var(--m-card); }
.qm-pic > img, .qm-pic > .qm-ph { width: 100%; height: 100%; object-fit: cover; }
.qm-pic > img { display: block; transition: transform .6s var(--m-ease); }
.qm-dish[data-a]:active .qm-pic > img { transform: scale(1.04); }
.qm-ph { display: grid; place-items: center; width: 100%; height: 100%; color: hsl(var(--h) 34% 32% / .7); background:
  radial-gradient(90% 70% at 85% 110%, hsl(var(--h) 40% 72% / .9), transparent 70%),
  radial-gradient(120% 100% at 15% 0%, hsl(var(--h) 75% 94%), hsl(var(--h) 45% 82%)); }
.qm.dark .qm-ph { color: hsl(var(--h) 45% 78% / .75); background:
  radial-gradient(90% 70% at 85% 110%, hsl(var(--h) 35% 30% / .9), transparent 70%),
  radial-gradient(120% 100% at 15% 0%, hsl(var(--h) 28% 24%), hsl(var(--h) 22% 14%)); }
.qm-ph svg { width: 38%; max-width: 54px; height: auto; }
.qm-offnote { font-size: 12px; color: var(--m-mute); font-style: italic; }
.qm-off { opacity: .55; }
.qm-off .qm-pic { filter: grayscale(.85); }

/* add & qty */
.qm-add { width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; background: var(--m-acc-grad); color: var(--m-ink); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--m-bg), inset 0 1px 0 rgba(255, 255, 255, .25), var(--m-acc-glow); transition: transform .25s var(--m-ease); }
.qm-add:active { transform: scale(.86); }
.qm-qty { display: inline-flex; align-items: center; background: var(--m-acc-grad); color: var(--m-ink); border-radius: 99px; padding: 2px; box-shadow: 0 0 0 3px var(--m-bg), var(--m-acc-glow); }
.qm-qty.pop { animation: qmgrow .4s var(--m-ease); }
@keyframes qmgrow { from { transform: scale(.7); opacity: .4; } }
.qm-qty button { width: 32px; height: 32px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; transition: background .2s; }
.qm-qty button:active { background: rgba(255, 255, 255, .18); }
.qm-qty button:disabled { opacity: .4; }
.qm-qty b { min-width: 18px; text-align: center; font-size: 14px; font-weight: 800; }
.qm-qty.lg { background: var(--m-card); color: var(--m-fg); box-shadow: inset 0 0 0 1px var(--m-line); padding: 4px; }
.qm-qty.lg button { width: 44px; height: 44px; }
.qm-qty.lg button:active { background: color-mix(in srgb, var(--m-fg) 8%, transparent); }
.qm-qty.lg b { min-width: 28px; font-size: 16px; }
.qm .float { position: absolute; right: 8px; bottom: 8px; z-index: 1; }

/* list: rows with photo on the right, separated by hairlines */
.qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) { gap: 0; }
.qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-dish { display: grid; grid-template-columns: 1fr 108px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--m-line); }
.qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-dish:first-child { padding-top: 4px; }
.qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-dish:last-child { border-bottom: 0; }
.qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic { width: 108px; height: 108px; overflow: visible; background: none; }
.qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic > img, .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic > .qm-ph { border-radius: calc(var(--m-r) + 2px); box-shadow: var(--m-shadow); }
.qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .float { right: -5px; bottom: -7px; }
.qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pr { margin-top: 6px; font-size: 15.5px; }

/* cards: photo on top, full width */
.qm-cards { gap: 16px; }
.qm-cards .qm-dish { background: var(--m-card); border-radius: calc(var(--m-r) + 6px); overflow: hidden; box-shadow: var(--m-shadow); }
.qm-cards .qm-pic { aspect-ratio: 16 / 9.5; border-radius: 0; }
.qm-cards .qm-pic .qm-badge, .qm-grid .qm-pic .qm-badge, .qm-feed .qm-pic .qm-badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35); }
.qm-cards .qm-dbody { padding: 14px 16px 18px; padding-right: 64px; }
.qm-cards .qm-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.qm-cards .float { right: 14px; bottom: 16px; }
.qm-cards .float.qm-add, .qm-cards .float.qm-qty { box-shadow: 0 0 0 3px var(--m-card), var(--m-acc-glow); }

/* grid: two columns, square photos */
.qm-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.qm-grid .qm-dish { display: grid; gap: 10px; align-content: start; }
.qm-grid .qm-pic { aspect-ratio: 1; border-radius: calc(var(--m-r) + 4px); box-shadow: var(--m-shadow); }
.qm-grid .qm-pic .qm-badge { left: 8px; top: 8px; }
.qm-grid .qm-dname { font-size: 14px; }
.qm-grid .qm-dbody { padding: 0 2px; gap: 3px; }

/* feed: big photo cards with text on the image */
.qm-feed { gap: 16px; }
.qm-feed .qm-pic { aspect-ratio: 4 / 3.5; border-radius: calc(var(--m-r) + 8px); box-shadow: var(--m-shadow-lg); }
.qm-feed .qm-veil { background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, transparent 25%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .82)); }
.qm-feed .qm-pic .qm-badge { left: 16px; top: 16px; }
.qm-feed .qm-over { position: absolute; left: 18px; right: 74px; bottom: 18px; color: #fff; display: grid; gap: 5px; }
.qm-feed .qm-dname { font: 700 20px/1.2 var(--m-title); letter-spacing: -.015em; text-wrap: balance; }
.qm-feed .qm-ddesc { color: rgba(255, 255, 255, .8); }
.qm-feed .qm-price { color: #fff; }
.qm-feed .qm-pr { margin-top: 2px; font-size: 16px; }
.qm-feed .qm-old, .qm-feed .qm-offnote { color: rgba(255, 255, 255, .7); }
.qm-feed .float { right: 16px; bottom: 18px; }
.qm-feed .float.qm-add, .qm-feed .float.qm-qty { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px -8px rgba(0, 0, 0, .6); }

/* big: editorial printed-menu style */
.qm-big { gap: 0; background: var(--m-card); border-radius: calc(var(--m-r) + 6px); padding: 8px 20px; box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-big .qm-dish { padding: 16px 0; border-bottom: 1px solid var(--m-line); display: grid; gap: 5px; }
.qm-big .qm-dish:last-child { border-bottom: 0; }
.qm-lead { display: flex; align-items: baseline; gap: 8px; }
.qm-big .qm-dname { font: 600 16.5px/1.3 var(--m-title); }
.qm-dots { flex: 1; border-bottom: 1.5px dotted color-mix(in srgb, var(--m-fg) 28%, transparent); transform: translateY(-4px); min-width: 16px; }
.qm-big .qm-ddesc { -webkit-line-clamp: 3; }
.qm-big .qm-qty, .qm-big .qm-add { justify-self: end; box-shadow: 0 0 0 3px var(--m-card), var(--m-acc-glow); }
.qm-big .inline { margin-top: 4px; }

.qm-empty { color: var(--m-mute); text-align: center; padding: 36px 10px; font-size: 14px; }
.qm-emptybox { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 44px 26px; color: var(--m-mute); background: var(--m-card); border-radius: calc(var(--m-r) + 6px); font-size: 14px; box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-emptybox svg { width: 56px; height: 56px; padding: 15px; border-radius: 50%; color: var(--m-accent); background: color-mix(in srgb, var(--m-accent) 12%, transparent); }
.qm-emptybox p { margin: 0; max-width: 30ch; line-height: 1.55; }
.qm-foot { color: var(--m-mute); text-align: center; font-size: 12px; padding: 30px 0 6px; letter-spacing: .01em; }

/* info */
.qm-about { color: var(--m-fg); font-size: 15px; line-height: 1.65; margin: 0 2px 6px; }
.qm-igroup { background: var(--m-card); border-radius: calc(var(--m-r) + 6px); overflow: hidden; box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-irow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.qm-irow + .qm-irow { border-top: 1px solid var(--m-line); }
.qm-iic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--m-accent) 12%, transparent); color: var(--m-accent); flex: none; font-weight: 700; font-size: 13px; }
.qm-itx { flex: 1; min-width: 0; display: grid; gap: 1px; }
.qm-itx small { color: var(--m-mute); font-size: 12px; }
.qm-itx b { font-weight: 650; font-size: 14.5px; overflow-wrap: anywhere; }
.qm-mini { border: 0; background: var(--m-acc-grad); color: var(--m-ink); border-radius: 99px; padding: 8px 15px; font-size: 13px; font-weight: 650; text-decoration: none; flex: none; box-shadow: var(--m-acc-glow); }
.qm-st { width: 10px; height: 10px; border-radius: 50%; background: var(--m-mute); }
.qm-st-new { background: #E3A008; } .qm-st-accepted { background: #3B82F6; } .qm-st-done { background: #2E9A5A; } .qm-st-rejected { background: #D0503F; }

/* ---------- bottom: floating capsule nav + cart ---------- */
.qm-tabs { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: color-mix(in srgb, var(--m-fg) 86%, transparent); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.qm-tabs button { position: relative; border: 0; background: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 15px; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--m-bg) 62%, transparent); border-radius: 99px; white-space: nowrap; transition: background .35s var(--m-ease), color .35s, padding .35s var(--m-ease); }
.qm-tabs button span { max-width: 0; overflow: hidden; transition: max-width .35s var(--m-ease); }
.qm-tabs button[aria-current="true"] { color: var(--m-fg); background: var(--m-bg); padding: 0 18px 0 15px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
.qm-tabs button[aria-current="true"] span { max-width: 120px; }
.qm-tabs svg { flex: none; }
.qm-dot { position: absolute; top: 5px; left: 28px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--m-accent); color: var(--m-ink); font: 800 10px/17px var(--m-font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px color-mix(in srgb, var(--m-fg) 86%, #000); }
.qm-cartbar { position: absolute; left: 14px; right: 14px; top: calc(12px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; border: 0; background: var(--m-acc-grad); color: var(--m-ink); border-radius: 22px; padding: 9px 20px 9px 9px; margin-bottom: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 22px 40px -16px color-mix(in srgb, var(--m-accent) 80%, #000); animation: qmrise .5s var(--m-ease); }
.qm-cartbar.still { animation: none; }
.qm-cartbar.bump .qm-cq { animation: qmbump .5s var(--m-ease); }
@keyframes qmrise { from { transform: translateY(-24px) scale(.96); opacity: 0; } }
/* language switch moves below the order bar while it is shown */
.qm.has-cart .qm-hero-top { top: 84px; }
.phone-scr .qm.has-cart .qm-hero-top { top: 112px; }
@keyframes qmbump { 30% { transform: scale(1.18) rotate(-6deg); } }
.qm-cq { position: relative; width: 44px; height: 44px; border-radius: 15px; background: color-mix(in srgb, var(--m-ink) 16%, transparent); color: var(--m-ink); display: grid; place-items: center; }
.qm-cq i { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--m-ink); color: var(--m-accent); font: 800 11px/20px var(--m-font); font-style: normal; text-align: center; padding: 0 5px; }
.qm-ct { flex: 1; text-align: left; font-weight: 750; display: grid; line-height: 1.2; font-size: 15px; }
.qm-ct small { font-weight: 550; opacity: .75; font-size: 12px; }
.qm-cartbar b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }

/* ---------- sheets ---------- */
.qm-sheet { position: absolute; inset: 0; background: rgba(8, 10, 12, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; z-index: 10; animation: qmfade .25s ease-out; }
.qm-sheet.full { align-items: center; padding: 18px; }
.qm-sheet-in { position: relative; width: 100%; background: var(--m-bg); border-radius: 32px 32px 0 0; padding: 12px 20px 28px; display: grid; gap: 14px; max-height: 92%; overflow-y: auto; animation: qmup .45s var(--m-ease); cursor: default; scrollbar-width: none; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .35); }
.qm-sheet.still, .qm-sheet.still .qm-sheet-in { animation: none; }
.qm-sheet.full .qm-sheet-in { border-radius: 32px; padding-top: 30px; }
.qm-sheet-in.center { justify-items: center; text-align: center; }
.qm-sheet-in h3 { font: 700 22px/1.25 var(--m-title); margin: 0; letter-spacing: -.02em; text-wrap: balance; }
.qm-grab { justify-self: center; width: 40px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--m-fg) 16%, transparent); }
.qm-grab.on-img { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .75); z-index: 1; }
@keyframes qmup { from { transform: translateY(100%); } }
@keyframes qmfade { from { opacity: 0; } }
.qm-det { padding: 0; display: block; }
.qm-dimg { position: relative; aspect-ratio: 1.3; overflow: hidden; border-radius: 32px 32px 0 0; padding: 0; box-shadow: none; background: var(--m-card); }
.qm-dimg::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 38%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--m-bg) 55%, transparent) 60%, var(--m-bg)); pointer-events: none; }
.qm-dimg > img, .qm-dimg > .qm-ph { width: 100%; height: 100%; object-fit: cover; }
.qm-det-b { position: relative; z-index: 1; margin-top: -26px; padding: 0 22px 8px; display: grid; gap: 12px; }
.qm-det-meta { display: flex; align-items: center; gap: 8px; color: var(--m-mute); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.qm-det-b h3 { font-size: 25px; }
.qm-det-f { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 14px 20px 22px; background: color-mix(in srgb, var(--m-bg) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--m-line); }
.qm-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(12, 12, 14, .32); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 14px; z-index: 2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.qm-x.static { position: static; background: var(--m-card); color: var(--m-fg); box-shadow: inset 0 0 0 1px var(--m-line); backdrop-filter: none; }
.qm-heart { position: absolute; right: 18px; bottom: 40px; border: 0; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #555; z-index: 2; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55); transition: transform .25s var(--m-ease); }
.qm-heart:active { transform: scale(.86); }
.qm-heart.on { color: #E0344F; }
.qm-heart.pop svg { animation: qmpop .45s cubic-bezier(.2, 1.6, .4, 1); }
.qm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qm-mute { color: var(--m-mute); font-size: 14px; margin: 0; line-height: 1.6; }
.qm-send { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: var(--m-acc-grad); color: var(--m-ink); border-radius: 18px; min-height: 54px; padding: 0 10px 0 20px; font-weight: 750; font-size: 15px; flex: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--m-acc-glow); transition: transform .2s var(--m-ease), opacity .2s; }
.qm-send:active { transform: scale(.97); }
.qm-send span { font-weight: 800; background: color-mix(in srgb, var(--m-ink) 15%, transparent); padding: 8px 12px; border-radius: 12px; }
.qm-send.block { width: 100%; justify-content: center; padding: 0 20px; }
.qm-send:disabled { opacity: .6; }
.qm-btn { border: 0; background: var(--m-card); color: var(--m-fg); border-radius: 16px; padding: 13px 26px; font-size: 14.5px; font-weight: 650; box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-btn.ghost { background: none; box-shadow: none; color: var(--m-mute); }
.qm-clist { display: grid; }
.qm-cline { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--m-line); }
.qm-cth { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; display: block; }
.qm-cth > img, .qm-cth > .qm-ph { width: 100%; height: 100%; object-fit: cover; }
.qm-cn { display: grid; min-width: 0; gap: 2px; }
.qm-cn b { font-weight: 700; font-size: 14.5px; }
.qm-cn small { color: var(--m-mute); font-size: 12.5px; }
.qm-cline .qm-qty { box-shadow: var(--m-acc-glow); }
.qm-note { width: 100%; border: 0; border-radius: 16px; background: var(--m-card); color: var(--m-fg); padding: 13px 15px; font: inherit; font-size: 14px; resize: none; box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-note:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--m-accent), 0 0 0 4px color-mix(in srgb, var(--m-accent) 12%, transparent); }
.qm-sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 650; padding-top: 2px; }
.qm-sum b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.qm-okc { width: 76px; height: 76px; border-radius: 50%; background: var(--m-acc-grad); color: var(--m-ink); display: grid; place-items: center; animation: qmpop .55s cubic-bezier(.2, 1.4, .4, 1), qmring 1.8s .4s ease-out infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--m-accent) 35%, transparent); }
.qm-okc svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: qmdraw .5s .25s var(--m-ease) forwards; }
.qm-sheet.still .qm-okc, .qm-sheet.still .qm-okc svg path { animation: none; stroke-dashoffset: 0; }
@keyframes qmpop { from { transform: scale(.4); opacity: 0; } }
@keyframes qmring { to { box-shadow: 0 0 0 22px color-mix(in srgb, var(--m-accent) 0%, transparent); } }
@keyframes qmdraw { to { stroke-dashoffset: 0; } }
.qm-lockic { width: 68px; height: 68px; border-radius: 24px; background: var(--m-card); color: var(--m-fg); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--m-line), var(--m-shadow); }
.qm-ratebox { display: grid; gap: 12px; width: 100%; justify-items: center; padding: 18px; background: var(--m-card); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-ratebox p { margin: 0; font-weight: 650; }
.qm-stars { display: flex; gap: 6px; }
.qm-stars button { border: 0; background: none; font-size: 34px; color: color-mix(in srgb, var(--m-fg) 16%, transparent); padding: 0 2px; line-height: 1; transition: transform .2s var(--m-ease), color .2s; }
.qm-stars button:active { transform: scale(1.25); }
.qm-stars button[aria-pressed="true"] { color: #F2B01E; text-shadow: 0 4px 14px rgba(242, 176, 30, .45); }
.qm-qr { width: 196px; height: 196px; background: #fff; padding: 12px; border-radius: 24px; box-shadow: var(--m-shadow-lg); }
.qm-code { font: 800 34px/1 var(--m-font); letter-spacing: .32em; padding-left: .32em; }
.qm-join { display: flex; gap: 8px; width: 100%; }
.qm-join input { flex: 1; min-width: 0; border: 0; border-radius: 18px; background: var(--m-card); color: var(--m-fg); padding: 0 16px; font: inherit; font-size: 18px; font-weight: 750; letter-spacing: .28em; text-align: center; box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-join input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--m-accent), 0 0 0 4px color-mix(in srgb, var(--m-accent) 12%, transparent); }
.qm-join .qm-send { flex: none; justify-content: center; padding: 0 22px; }
.qm-err { color: #D0503F; font-size: 13.5px; margin: 0; font-weight: 650; }
.qm-inactive { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.qm-inactive .qm-logo { width: 84px; height: 84px; margin: 0; }

/* ---------- one-time entrance (class removed after the first render) ---------- */
.qm.intro .qm-cover, .qm.intro .qm-mesh { animation: qmzoom 1.4s calc(0s - var(--el, 0ms)) var(--m-ease) both; }
.qm.intro .qm-id, .qm.intro .qm-actions, .qm.intro .qm-note-bar, .qm.intro .qm-body > * { animation: qmin .8s var(--m-ease) both; animation-delay: calc(0s - var(--el, 0ms)); }
.qm.intro .qm-id { animation-delay: calc(.08s - var(--el, 0ms)); }
.qm.intro .qm-actions, .qm.intro .qm-note-bar { animation-delay: calc(.16s - var(--el, 0ms)); }
.qm.intro .qm-body > :nth-child(1) { animation-delay: calc(.22s - var(--el, 0ms)); }
.qm.intro .qm-body > :nth-child(2) { animation-delay: calc(.28s - var(--el, 0ms)); }
.qm.intro .qm-body > :nth-child(3) { animation-delay: calc(.34s - var(--el, 0ms)); }
.qm.intro .qm-body > :nth-child(n+4) { animation-delay: calc(.4s - var(--el, 0ms)); }
.qm.intro .qm-tabs { animation: qmnav .9s calc(.3s - var(--el, 0ms)) var(--m-ease) both; }
@keyframes qmzoom { from { transform: scale(1.12); filter: blur(6px); } }
@keyframes qmin { from { transform: translateY(18px); opacity: 0; } }
@keyframes qmnav { from { transform: translate(-50%, 40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .qm *, .qm *::before, .qm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .qm-cover, .qm-mesh { transform: none; }
}

/* ---------- phone frame for previews ---------- */
.phone { position: relative; width: 300px; aspect-ratio: 300 / 620; border-radius: 48px; background: linear-gradient(145deg, #4A5250, #121716 22%, #0B0F0E 60%, #2A302F); padding: 9px; box-shadow: 0 60px 100px -40px rgba(14, 36, 33, .55), 0 24px 40px -24px rgba(14, 36, 33, .4), inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 3px #0A0D0C, 0 0 0 1.5px #59625F; flex: none; }
/* side button + glass glare: small cues that sell the device */
.phone::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #3A4240, #59625F); }
.phone-scr::after { content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none; border-radius: inherit; background: linear-gradient(125deg, rgba(255, 255, 255, .1), transparent 28%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; border-radius: 99px; background: #050808; z-index: 6; }
.phone-scr { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #fff; }
.phone-scr .qm { font-size: 14px; }
.phone-scr .qm-hero { height: 206px; }
.phone-scr .qm-hero-top { top: 50px; }
.phone.sm { width: 264px; border-radius: 44px; }
.phone.sm .phone-scr { border-radius: 36px; }

/* ---------- narrow previews (phone frames on the landing page and dashboard) ---------- */
@container (max-width: 300px) {
  .qm-hero { height: 180px; }
  .qm-id { padding: 0 14px; gap: 0 10px; margin-top: -24px; border-radius: 24px 24px 0 0; }
  .qm-logo { width: 54px; height: 54px; border-radius: 17px; margin-top: -24px; font-size: 22px; box-shadow: 0 0 0 3px var(--m-bg), 0 10px 20px -10px rgba(0, 0, 0, .45); }
  .qm-id-t { padding-top: 8px; }
  .qm-name { font-size: 17px; }
  .qm-tag { font-size: 11.5px; }
  .qm-chips { margin-top: 10px; flex-wrap: nowrap; overflow: hidden; }
  .qm-chip { flex: none; }
  .qm-tag { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .qm-chip { font-size: 11px; padding: 5px 9px; }
  .qm-actions, .qm-note-bar { margin-inline: 14px; }
  .qm-act { height: 44px; font-size: 13px; }
  .qm-body { padding: 14px 14px 0; }
  .qm-cats { margin-inline: -14px; padding-inline: 14px; }
  .qm-feat-row { margin-inline: -14px; padding-inline: 14px; }
  .qm-fcard { width: 148px; height: 190px; }
  .qm-h { font-size: 17px; margin-top: 22px; }
  .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-dish { grid-template-columns: 1fr 84px; gap: 12px; }
  .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic { width: 84px; height: 84px; }
  .qm-tabs { bottom: 10px; padding: 4px; }
  .qm-tabs button, .qm-tabs button[aria-current="true"] { height: 40px; padding: 0 12px; gap: 0; }
  .qm-tabs button[aria-current="true"] span { max-width: 0; }
  .qm-dot { left: 24px; top: 3px; }
  .qm-cartbar { left: 10px; right: 10px; top: 44px; }
}

/* ---------- wider screens (tablet / desktop guest view) ---------- */
@container (min-width: 600px) {
  .qm-hero { height: 300px; }
  .qm-id { padding: 0 28px; grid-template-columns: auto 1fr auto; margin-top: -36px; border-radius: 36px 36px 0 0; }
  .qm-id .qm-chips { grid-column: 3; grid-row: 1; margin: 0; justify-content: flex-end; }
  .qm-logo { width: 96px; height: 96px; border-radius: 28px; margin-top: -44px; }
  .qm-name { font-size: 28px; }
  .qm-actions, .qm-note-bar { margin-inline: 28px; }
  .qm-actions { grid-template-columns: 220px 220px; }
  .qm-body { padding: 22px 28px 0; }
  .qm-cats { margin-inline: -28px; padding-inline: 28px; }
  .qm-feat-row { margin-inline: -28px; padding-inline: 28px; }
  .qm-fcard { width: 220px; height: 270px; }
  .qm-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 16px; }
  .qm-cards, .qm-feed { grid-template-columns: 1fr 1fr; }
  .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-dish:nth-child(2) { padding-top: 4px; }
  .qm-cartbar { left: 50%; right: auto; width: min(460px, calc(100% - 28px)); transform: translateX(-50%); }
  .qm-cartbar { animation: none; }
  .qm-sheet { align-items: center; justify-content: center; padding: 24px; }
  .qm-sheet-in { width: min(540px, 100%); border-radius: 32px; }
  .qm-sheet-in { animation-name: qmpop; }
}

/* ---------- dish options & allergens ---------- */
.qm-og { border: 0; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.qm-og legend { font-weight: 750; font-size: 15px; margin-bottom: 8px; padding: 0; display: flex; align-items: center; gap: 8px; width: 100%; }
.qm-og legend small { font-weight: 650; font-size: 11px; color: var(--m-mute); background: var(--m-card); padding: 3px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--m-line); }
.qm-oc { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: var(--m-card); border-radius: 16px; min-height: 54px; padding: 0 16px; text-align: left; box-shadow: inset 0 0 0 1px var(--m-line); transition: box-shadow .25s, background .25s; }
.qm-oc span { flex: 1; font-size: 14.5px; font-weight: 550; }
.qm-oc b { font-size: 13.5px; color: var(--m-mute); font-weight: 650; }
.qm-oc i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--m-fg) 22%, transparent); flex: none; transition: box-shadow .25s var(--m-ease), background .25s; }
.qm-oc.multi i { border-radius: 7px; }
.qm-oc[aria-pressed="true"] { background: color-mix(in srgb, var(--m-accent) 8%, var(--m-card)); box-shadow: inset 0 0 0 1.5px var(--m-accent); }
.qm-oc[aria-pressed="true"] b { color: var(--m-fg); }
.qm-oc[aria-pressed="true"] i { box-shadow: inset 0 0 0 7px var(--m-accent); }
.qm-oc.multi[aria-pressed="true"] i { box-shadow: none; background: var(--m-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.qm.dark .qm-oc.multi[aria-pressed="true"] i { background-color: var(--m-accent); filter: none; }
.qm-algs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.qm-algs small { color: var(--m-mute); }
.qm-algs span { padding: 4px 9px; border-radius: 8px; background: color-mix(in srgb, #E3A008 15%, transparent); color: color-mix(in srgb, #9A6A12 80%, var(--m-fg)); font-weight: 650; }
.qm-add { position: relative; }
.qm-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; border-radius: 99px; background: var(--m-fg); color: var(--m-bg); font: 800 11px/19px var(--m-font); font-style: normal; text-align: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--m-bg); }

/* ---------- custom design options (data-* on .qm; templates don't set them, so their look is unchanged) ---------- */
/* cards */
.qm[data-cardstyle="flat"] { --m-shadow: none; --m-shadow-lg: none; }
.qm[data-cardstyle="outline"] { --m-shadow: 0 0 0 1px var(--m-line); --m-shadow-lg: 0 0 0 1px var(--m-line); }
/* density */
.qm[data-density="compact"] .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-dish, .qm[data-density="compact"] .qm-big .qm-dish { padding-block: 10px; }
.qm[data-density="compact"] .qm-h { margin: 18px 0 10px; }
.qm[data-density="compact"] .qm-cards, .qm[data-density="compact"] .qm-feed { gap: 10px; }
.qm[data-density="compact"] .qm-grid { gap: 10px 8px; }
.qm[data-density="airy"] .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-dish, .qm[data-density="airy"] .qm-big .qm-dish { padding-block: 22px; }
.qm[data-density="airy"] .qm-h { margin: 38px 0 18px; }
.qm[data-density="airy"] .qm-cards, .qm[data-density="airy"] .qm-feed { gap: 22px; }
.qm[data-density="airy"] .qm-grid { gap: 24px 16px; }
/* category bar */
.qm[data-cats="underline"] .qm-cats { gap: 2px; }
.qm[data-cats="underline"] .qm-cats button { background: none; box-shadow: none; border-radius: 0; padding: 0 10px; color: var(--m-mute); }
.qm[data-cats="underline"] .qm-cats button[aria-current="true"] { background: none; color: var(--m-fg); box-shadow: inset 0 -2px 0 var(--m-accent); }
.qm[data-cats="accent"] .qm-cats button[aria-current="true"] { background: var(--m-accent); color: var(--m-ink); box-shadow: var(--m-acc-glow); }
/* photo shape */
.qm[data-photo="square"] .qm-pic, .qm[data-photo="square"] .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic > img, .qm[data-photo="square"] .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic > .qm-ph, .qm[data-photo="square"] .qm-feed .qm-pic, .qm[data-photo="square"] .qm-grid .qm-pic { border-radius: 4px; }
.qm[data-photo="circle"] .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic, .qm[data-photo="circle"] .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic > img, .qm[data-photo="circle"] .qm-list:not(.qm-cards):not(.qm-grid):not(.qm-feed):not(.qm-big) .qm-pic > .qm-ph, .qm[data-photo="circle"] .qm-grid .qm-pic { border-radius: 50%; }
/* cover */
.qm[data-heroh="s"] .qm-hero { height: 160px; }
.qm[data-heroh="l"] .qm-hero { height: 290px; }
.qm[data-hero="solid"] .qm-mesh { background: var(--m-accent); }
.qm[data-hero="solid"] .qm-mesh::before, .qm[data-hero="solid"] .qm-mesh::after { display: none; }
.qm[data-hero="minimal"] .qm-hero:not(.has-cover) { height: 60px; background: none; }
.qm[data-hero="minimal"] .qm-hero:not(.has-cover)::after, .qm[data-hero="minimal"] .qm-hero:not(.has-cover) .qm-mesh { display: none; }
.qm[data-hero="minimal"] .qm-hero:not(.has-cover) .qm-langs { background: var(--m-card); box-shadow: inset 0 0 0 1px var(--m-line); }
.qm[data-hero="minimal"] .qm-hero:not(.has-cover) .qm-langs button { color: var(--m-mute); }
.qm[data-hero="minimal"] .qm-hero:not(.has-cover) .qm-langs button[aria-pressed="true"] { background: var(--m-fg); color: var(--m-bg); }
.qm[data-hero="minimal"]:not(:has(.qm-hero.has-cover)) .qm-id { margin-top: 0; border-radius: 0; }
.qm[data-hero="minimal"]:not(:has(.qm-hero.has-cover)) .qm-logo { margin-top: 0; }
/* background texture */
.qm[data-pattern="dots"] { background-image: radial-gradient(color-mix(in srgb, var(--m-fg) 10%, transparent) 1px, transparent 1.4px); background-size: 16px 16px; }
.qm[data-pattern="grid"] { background-image: linear-gradient(color-mix(in srgb, var(--m-fg) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--m-fg) 6%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
.qm[data-pattern="grain"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"); }
.qm[data-pattern] .qm-id { background: transparent; }
.qm[data-pattern] .qm-id::before { content: ""; position: absolute; inset: 0 0 auto; height: 40px; border-radius: inherit; background: var(--m-bg); z-index: -1; }
.qm.dark .qm-pic .qm-badge { background: rgba(10, 10, 12, .62); }
.qm-cards .qm-dish.in .qm-dbody { padding-right: 112px; }
.qm-search input:focus, .qm-search input:focus-visible { outline: none; }
.qm h1, .qm h2, .qm h3, .qm h4 { text-transform: none; }
/* mouse drag on horizontal rows */
@media (hover: hover) and (pointer: fine) {
  .qm-feat-row, .qm-cats, .qm-menus { cursor: grab; }
  .qm-feat-row.qm-drag, .qm-cats.qm-drag, .qm-menus.qm-drag { cursor: grabbing; }
  .qm-drag, .qm-drag * { user-select: none; }
  .qm-drag > * { pointer-events: none; }
}
.qm img { -webkit-user-drag: none; }
/* Google review prompt (Super plan) */
.qm-stars5 { display: flex; gap: 4px; color: #F2B01E; filter: drop-shadow(0 4px 10px rgba(242, 176, 30, .35)); }
.qm-stars5 svg { width: 26px; height: 26px; animation: qmpop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
.qm-stars5 svg:nth-child(2) { animation-delay: .06s; } .qm-stars5 svg:nth-child(3) { animation-delay: .12s; } .qm-stars5 svg:nth-child(4) { animation-delay: .18s; } .qm-stars5 svg:nth-child(5) { animation-delay: .24s; }
.qm-sheet.still .qm-stars5 svg { animation: none; }
.qm-google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; border-radius: 18px; background: #fff; color: #1F1F1F; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 12px 26px -14px rgba(0, 0, 0, .45); transition: transform .2s var(--m-ease); }
.qm-google:active { transform: scale(.97); }
.qm-note-bar.qm-demo { background: color-mix(in srgb, var(--m-accent) 10%, var(--m-card)); color: var(--m-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-accent) 30%, transparent); }
/* with the order bar at the top, the sticky categories park just below it */
.qm.has-cart .qm-cats { top: 70px; }
.qm.has-cart .qm-scroll { scroll-padding-top: 130px; }

/* language choice on arrival */
.qm-langsheet .qm-sheet-in { gap: 12px; padding: 30px 22px 26px; }
.qm-langsheet .qm-logo { width: 72px; height: 72px; margin: 0; }
.qm-langsheet h3 { font-size: 21px; }
.qm-langpick { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.qm-langpick button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--m-card); color: var(--m-fg); font-size: 16.5px; font-weight: 700; text-align: left; box-shadow: inset 0 0 0 1px var(--m-line); transition: transform .2s var(--m-ease), box-shadow .2s; }
.qm-langpick button:active { transform: scale(.97); }
.qm-langpick button i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 13px/1 var(--m-font); font-style: normal; letter-spacing: .02em; background: color-mix(in srgb, var(--m-accent) 12%, transparent); color: var(--m-accent); flex: none; }
.qm-langpick button.sug { box-shadow: inset 0 0 0 2px var(--m-accent); }
.qm-langpick button.sug i { background: var(--m-acc-grad); color: var(--m-ink); }
/* guest app: small badges a touch larger and bolder */
.qm-badge { font-size: 11.5px; font-weight: 800; padding: 4px 9px; }
.qm-b-spicy { color: #A3311E; } .qm-b-vegan { color: #1E6331; } .qm-b-new { color: #2A4A9C; } .qm-b-hit { color: #7A520B; }
.qm-chip small { color: var(--m-fg); opacity: .7; }
/* browsing without a table: how to order, in place of the add button */
.qm-scanhint { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--m-accent) 10%, var(--m-card)); color: var(--m-fg); font-size: 14px; font-weight: 650; line-height: 1.4; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-accent) 28%, transparent); }
.qm-scanhint svg { flex: none; color: var(--m-accent); }
/* sheets: content never wider than the card (long texts and the code form used to spill off-screen) */
.qm-sheet-in { grid-template-columns: minmax(0, 1fr); }
.qm-sheet-in.center > * { max-width: 100%; }
.qm-join { min-width: 0; }
/* headings take the template's text colour (the site's dark heading colour must not leak in) */
.qm :is(h1, h2, h3, h4) { color: inherit; }
