/* Поверх макетных стилей: настоящее приложение занимает весь экран и прокручивается */
html, body { margin: 0; height: 100%; background: var(--tg-bg, #F1F4F3); }
body.dark { background: #121516; }
#root { height: 100%; }
.app { width: 100%; max-width: 520px; height: 100dvh; margin: 0 auto; }
.body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
.main { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.sheet { max-height: 88%; overflow-y: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.sheet.tall { top: 56px; }
button { cursor: pointer; font-family: inherit; }
button:disabled { opacity: .55; cursor: default; }

.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.choice-card { min-height:92px; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:12px; font:inherit; font-weight:750; text-align:center; }
.choice-card.on { border:2px solid var(--ink); box-shadow:0 0 0 2px color-mix(in srgb,var(--ink) 9%,transparent); }
.choice-card.off { opacity:.48; }
.choice-card i { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:var(--bg); font-style:normal; font-size:23px; }
.choice-card small { color:var(--muted); font-weight:600; }
.back-link { border:0; background:transparent; color:var(--ink); padding:0; min-height:34px; font:inherit; font-weight:750; display:flex; align-items:center; width:max-content; }
.store-logo { width:50px!important; height:38px!important; font-size:18px!important; font-weight:900; background:#fff!important; border:1px solid rgba(0,0,0,.07); overflow:hidden; }
.store-logo>span { display:grid; place-items:center; width:100%; height:100%; font-style:normal; line-height:1; }
.logo-magnit { color:#e21f26; font-size:25px; font-weight:1000; transform:scaleX(1.2); }
.logo-five { color:#fff; background:linear-gradient(135deg,#e52329 0 55%,#159447 55%); font-size:25px; font-weight:1000; }
.logo-cross { color:#159447; font-size:30px; }
.logo-lenta { color:#fff; background:#1557a5; font-size:12px; font-weight:900; font-style:italic!important; }
.logo-vkus { color:#fff; background:#74b82a; font-size:15px; font-weight:1000; }
.logo-auchan { color:#d71920; font-size:25px; font-weight:1000; }
.meal-card { padding:0; overflow:hidden; gap:0; }
.meal-card>button { width:100%; min-height:72px; border:0; background:transparent; color:inherit; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font:inherit; font-weight:750; }
.mini-step { width:100%; display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; border-top:1px solid var(--line); min-height:38px; }
.mini-step button { height:38px; border:0; background:transparent; color:var(--ink); font-size:20px; }
.mini-step b { font-variant-numeric:tabular-nums; }
.chip { cursor: pointer; }
.chip.off { cursor: default; }
.hit { cursor: pointer; }
input.txt { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); min-height: 44px; }
.card.focus { border-color: var(--ink); }
.toast { position: absolute; left: 16px; right: 16px; top: 12px; z-index: 30; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.locked { filter: blur(5px); opacity: .75; pointer-events: none; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { align-items: center; justify-content: center; text-align: center; }
.cardbtn { text-align: left; color: var(--ink); font-size: 17px; font-weight: 700; width: 100%; }
a.linkbtn { text-decoration: underline; }
.err { color: var(--sale); font-weight: 700; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.rowbtn { background: none; border: 0; padding: 0; color: inherit; text-align: left; width: 100%; }
.tag.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* фото блюд */
.dish-photo { width: 60px; height: 60px; flex: none; border-radius: 14px; overflow: hidden; background: var(--line); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-hero { margin: 0 0 4px; border-radius: 18px; overflow: hidden; background: var(--line); flex: none; width: 100%; height: 210px; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
