/* MenuMi — Mini App. Палитра «Тёплая кухня» (v3.3 — основная).
   Своя палитра: сливочный фон, терракота, горчица и олива, какао для текста.
   Тёмная тема — тёплая (коричнево-графитовая). По умолчанию светлая; в Профиле: Светлая / Тёмная / Как в Telegram. */
@font-face {
  font-family: "MenuWeek Serif";
  src: url("fonts/menuweek-serif.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
}
:root {
  /* v3.3 «Тёплая кухня» (бренд MenuMi). Все цвета текста проверены на WCAG AA (≥ 4.5:1) */
  --bg: #fbf6ee;
  --paper: #ffffff;
  --card: #ffffff;
  --card2: #f7e9dd;
  --text: #2b211c;
  --hint: #74675e;
  --line: rgba(226, 85, 45, .13);
  --line-strong: rgba(226, 85, 45, .24);
  --accent: #e2552d;          /* кольца, индикаторы, иконка активной вкладки */
  --btn: #cb4c28;             /* заливка кнопок: белый текст 4.56:1 */
  --btn-text: #ffffff;
  --accent-strong: #b34324;   /* акцентный ТЕКСТ и ссылки */
  --accent-soft: #f6e3d6;
  --olive: #4e743d;           /* зелёный ТЕКСТ (вторичный/успех) */
  --olive-fill: #5e8c4a;      /* зелёные заливки: прогресс, галочки, полоски */
  --olive-soft: #e4efdc;
  --mustard: #8e620f;         /* тёплый вторичный ТЕКСТ */
  --mustard-deco: #e0a93b;
  --mustard-soft: #f9ebc8;
  --danger: #b0352a;
  --danger-soft: #f8dcd6;
  --danger-strong: #8a2e20;
  --ph1: #f7e3d3; --ph2: #f5ead2;
  --on-photo-bg: rgba(255, 255, 255, .94);   /* плашки поверх фото */
  --on-photo-text: #2b211c;
  --on-photo-hint: #74675e;
  --toast-bg: #2b211c; --toast-text: #fbf6ee; --toast-btn-bg: #f6c9b0; --toast-btn-text: #2b211c;
  --nope: #5a4a40;
  --scrim: rgba(43, 33, 28, .45);
  --shadow: 0 1px 2px rgba(122, 70, 48, .06), 0 8px 22px rgba(122, 70, 48, .09);
  --shadow-up: 0 14px 38px rgba(70, 40, 20, .22);
  --serif: "MenuWeek Serif", "Lora", Georgia, "Times New Roman", serif;
  --r: 24px;
  --r-sm: 16px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --nav: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root.dark {
  /* v3.3: тёплая тёмная — коричневая «кухня», без почти-чёрного; акценты подняты по яркости под AA на тёмном */
  --bg: #3a2e27;
  --paper: #45372f;
  --card: #46382f;
  --card2: #54443a;
  --text: #f8ede2;
  --hint: #d2c0b1;
  --line: rgba(255, 226, 200, .12);
  --line-strong: rgba(255, 226, 200, .22);
  --accent: #f2764c;
  --btn: #f2764c;
  --btn-text: #2a1710;
  --accent-strong: #ffa787;
  --accent-soft: rgba(242, 118, 76, .16);
  --olive: #bfd494;
  --olive-fill: #8fb06f;
  --olive-soft: rgba(169, 187, 114, .16);
  --mustard: #efc873;
  --mustard-deco: #e3b654;
  --mustard-soft: rgba(227, 182, 84, .16);
  --danger: #ffa08c;
  --danger-soft: rgba(255, 138, 117, .12);
  --danger-strong: #8a2e20;
  --ph1: #54433a; --ph2: #4f4636;
  --on-photo-bg: rgba(255, 255, 255, .94);
  --on-photo-text: #2b211c;
  --on-photo-hint: #74675e;
  --toast-bg: #f6ebdd; --toast-text: #2b211c; --toast-btn-bg: var(--btn); --toast-btn-text: #2a1710;
  --nope: #6b5a4e;
  --scrim: rgba(24, 16, 12, .55);
  --shadow: 0 1px 2px rgba(0, 0, 0, .16), 0 8px 22px rgba(0, 0, 0, .13);
  --shadow-up: 0 14px 38px rgba(0, 0, 0, .34);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  /* v3.0.1: Android — Roboto/Noto Sans (кириллица), iOS — SF; без зависимости от системных шрифтов iOS */
  font: 16px/1.42 -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Noto Sans", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; min-height: var(--app-h, 100vh);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* лёгкая «льняная» фактура */
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 80, 40, .018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 80, 40, .014) 0 1px, transparent 1px 4px);
}
:root.dark body { background-image: repeating-linear-gradient(0deg, rgba(255, 230, 200, .012) 0 1px, transparent 1px 3px); }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--text); }
img { display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
svg { display: block; }
[hidden] { display: none !important; }
.muted { color: var(--hint); }
.small { font-size: 14px; }
.serif, h1, h2, .dtitle { font-family: var(--serif); }

/* ---------- загрузка */
.boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.boot-logo { width: 84px; height: 84px; color: var(--accent); animation: pop .6s var(--ease); }
.wm { display: flex; align-items: center; gap: 8px; color: var(--accent-strong); font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.wm svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.wm span { font-size: 20px; line-height: 1; }
.wm.mh { margin-bottom: 8px; }
.wm.pw { margin: 0 0 8px; } .wm.pw svg { width: 30px; height: 30px; } .wm.pw span { font-size: 24px; }
.boot-text { font-family: var(--serif); font-weight: 700; font-size: 24px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -300px 0; } 100% { background-position: 300px 0; } }
.skel { background: linear-gradient(90deg, var(--card2) 0, var(--card) 50%, var(--card2) 100%); background-size: 600px 100%; animation: shimmer 1.3s infinite linear; border-radius: 16px; }

/* ---------- каркас */
.tab { padding: calc(var(--sat) + 12px) 18px calc(var(--nav) + var(--sab) + 130px); min-height: var(--app-h, 100vh); animation: fadeIn .25s ease; }
h1 { font-size: 29px; line-height: 1.14; margin: 4px 0 6px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.2; margin: 24px 0 10px; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 8px; }
.sub { color: var(--hint); font-size: 15.5px; margin: 0 0 14px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent-strong); letter-spacing: .06em; text-transform: uppercase; }
.ic-sm svg { width: 18px; height: 18px; }

/* плавающая нижняя панель-«таблетка» */
.tabbar {
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--sab));
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; width: min(340px, calc(100% - 36px));
  background: color-mix(in srgb, var(--card) 94%, transparent); box-shadow: var(--shadow-up), 0 0 0 1px var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tabbar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 52px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--hint); transition: background .25s var(--ease), color .2s, flex .3s var(--ease); }
.tabbar button svg { width: 24px; height: 24px; flex-shrink: 0; }
.tabbar button span { display: none; }
.tabbar button.on { flex: 1.9; background: var(--accent-soft); color: var(--accent-strong); }
.tabbar button.on svg { color: var(--accent); }
.tabbar button.on span { display: inline; }

/* ---------- кнопки */
.btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 56px; padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: 17px; transition: transform .12s, background .2s, opacity .2s; user-select: none; }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--btn); color: var(--btn-text); box-shadow: 0 8px 20px color-mix(in srgb, var(--btn) 32%, transparent); }
.btn-primary:active { filter: brightness(.94); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
.btn-ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-line { background: transparent; color: var(--accent-strong); min-height: 48px; font-weight: 650; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; width: auto; }
.row { display: flex; gap: 10px; align-items: center; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px 18px calc(14px + var(--sab)); background: linear-gradient(to top, var(--bg) 72%, transparent); }
.bottom-bar.over-tabs { bottom: calc(var(--nav) + var(--sab) + 6px); padding: 14px 18px 10px; z-index: 15;
  background: linear-gradient(to top, var(--bg) 55%, color-mix(in srgb, var(--bg) 70%, transparent) 85%, transparent); }
.bottom-bar .btn + .btn { margin-top: 8px; }
.iconbtn { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: var(--card); box-shadow: var(--shadow); flex-shrink: 0; }
.iconbtn svg { width: 22px; height: 22px; }

/* ---------- шапка меню */
.mhead { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 16px; }
.mhead .tx { min-width: 0; }
.mhead h1 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--text); white-space: normal; }
.mhead .range { margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--hint); }
.mhead .seg { margin: 0; }
.vtoggle { display: none; }
.vtoggle .thumb, .seg .thumb { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--card); box-shadow: 0 1px 4px rgba(122, 70, 48, .14); transition: transform .28s var(--ease), width .28s var(--ease); }
.seg { display: inline-flex; background: var(--card2); border-radius: 999px; padding: 4px; position: relative; flex-shrink: 0; }
.seg button { position: relative; z-index: 1; min-width: 80px; height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 650; font-size: 15px; color: var(--hint); transition: color .2s; }
.seg button.on { color: var(--text); }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; }

/* полоса дней недели */
.wstrip { display: flex; justify-content: space-between; gap: 2px; margin: 0 -6px 12px; padding: 4px; border-radius: 999px; background: var(--card2); }
.wstrip button { flex: 1; min-width: 0; height: 52px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; position: relative; transition: background .25s, color .25s; }
.wstrip .wd { font-size: 12px; font-weight: 650; color: var(--hint); text-transform: lowercase; }
.wstrip .dn { font-size: 17px; font-weight: 750; }
.wstrip button.today:not(.on)::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.wstrip button.on { background: var(--btn); color: var(--btn-text); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent); }
.wstrip button.on .wd { color: inherit; opacity: .85; }
.wstrip button.past:not(.on) .dn { opacity: .55; }

/* карусель дней. v3.10.6: snap к началу страницы, не к центру — иначе в Safari виден край соседнего дня. */
.carousel { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; margin: 0 -18px; scrollbar-width: none; overscroll-behavior-x: contain; align-items: flex-start; transition: height .3s var(--ease); position: relative; }
.carousel::-webkit-scrollbar { display: none; }
.dpage { flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 100%; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; padding: 0 18px 6px; }
.dayhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 2px 12px; }
.dayhead .t { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.dayhead .k { color: var(--hint); font-size: 14px; white-space: nowrap; }
.swipe-tip { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--hint); font-size: 13px; margin: 10px 0 0; }
.swipe-tip svg { width: 16px; height: 16px; }

/* ---------- карточки приёмов пищи */
.meals { display: flex; flex-direction: column; gap: 16px; }
.meal { display: block; width: 100%; text-align: left; overflow: hidden; position: relative; animation: fadeUp .35s var(--ease) both; transition: transform .15s; }
.meal:active { transform: scale(.985); }
.meal .ph { width: 100%; aspect-ratio: 16 / 9.4; border-radius: 0; }
.meal .ovl { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--on-photo-bg); color: var(--on-photo-text); font-size: 13.5px; font-weight: 750; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.meal .ovl svg { width: 17px; height: 17px; color: #b34324; }
.meal .ovl span { font-weight: 600; color: var(--on-photo-hint); }
.meal .body { padding: 14px 16px 16px; }
.meal .ttl { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.22; margin: 0 0 9px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill2 { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--card2); color: var(--text); font-size: 13.5px; font-weight: 650; }
.pill2 svg { width: 15px; height: 15px; color: var(--hint); }
.meal .acts { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.swapbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.swapbtn svg { width: 19px; height: 19px; }
.swapbtn:active { background: var(--accent-soft); }
.meal .open { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 650; color: var(--hint); min-height: 44px; }
/* v3.0.1: «доедание» — обычная карточка с фото исходного блюда, чуть приглушённая */
.meal.leftover .ph img.ok { opacity: .82; filter: saturate(.72); }
.meal.leftover .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28)); pointer-events: none; }
.meal .lotag { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px 7px 9px; border-radius: 999px; background: rgba(62, 94, 48, .92); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.meal .lotag svg { width: 15px; height: 15px; }
.meal.leftover .ttl { font-size: 19px; }
/* фото-блок фиксированной пропорции даже без aspect-ratio (iOS < 15): метка приёма пищи всегда на фото, не на названии */
@supports not (aspect-ratio: 1 / 1) { .meal .ph { height: 0; padding-top: 58.75%; } .meal .ph > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; } }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.bdg { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; line-height: 1.25; padding: 5px 11px 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); max-width: 100%; }
.bdg svg { width: 15px; height: 15px; flex-shrink: 0; }
.bdg.leftover { background: var(--olive-soft); color: var(--olive); }
.bdg.ahead { background: var(--mustard-soft); color: var(--mustard); }
.bdg.warn { background: var(--danger-soft); color: var(--danger); }
.bdg.own { background: var(--card2); color: var(--hint); }

/* фото и заглушка */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ph1), var(--ph2)); display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--accent) 55%, transparent); }
.ph > span svg { width: 38px; height: 38px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.ph img.ok { opacity: 1; }

.plan-cta { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin-top: 16px; text-align: left; background: var(--mustard-soft); border-radius: var(--r); }
.plan-cta .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--mustard); flex-shrink: 0; }
.plan-cta .ic svg { width: 26px; height: 26px; }
.plan-cta .tx { flex: 1; }
.plan-cta b { display: block; font-size: 16.5px; }
.plan-cta .muted { font-size: 14px; }
.chev { color: var(--hint); width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- неделя: дни вертикально, строки можно перетаскивать */
.wday { margin-bottom: 14px; padding: 6px 6px 6px; user-select: none; -webkit-user-select: none; }
.wday.today { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent); }
.wdh { display: flex; align-items: baseline; gap: 8px; padding: 10px 12px 6px; }
.wdh b { font-family: var(--serif); font-size: 18px; }
.wdh .tg { font-size: 12px; font-weight: 750; color: var(--btn-text); background: var(--btn); padding: 2px 8px; border-radius: 999px; }
.wdh .k { margin-left: auto; color: var(--hint); font-size: 13px; }
.wrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 10px; border-radius: 18px; text-align: left; position: relative; -webkit-touch-callout: none; touch-action: pan-y; transition: transform .2s var(--ease), opacity .2s, background .2s; }
.wrow + .wrow::before { content: ""; position: absolute; top: 0; left: 70px; right: 10px; height: 1px; background: var(--line); }
.wrow .ph { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line); }
.wrow .ph > span svg { width: 22px; height: 22px; }
.wrow .tx { flex: 1; min-width: 0; }
.wrow .ml { font-size: 12px; font-weight: 750; color: var(--hint); text-transform: uppercase; letter-spacing: .05em; }
.wrow .ct { font-size: 15.5px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wrow .mk { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.wrow .mk svg { width: 16px; height: 16px; }
.mk.leftover { background: var(--olive-soft); color: var(--olive); }
.mk.ahead { background: var(--mustard-soft); color: var(--mustard); }
.mk.auto, .mk.own { background: var(--accent-soft); color: var(--accent-strong); }
.mk.warn { background: var(--danger-soft); color: var(--danger); }
.wrow .grip { color: var(--line-strong); width: 18px; flex-shrink: 0; }
.wrow.leftover .ct { color: var(--hint); font-weight: 600; }
.wrow.leftover .ph { filter: saturate(.5); opacity: .75; }
.wlist.dragging .wrow { opacity: .4; }
.wlist.dragging .wrow.ok { opacity: 1; background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.wlist.dragging .wrow.src { opacity: .25; }
.wrow.over { transform: scale(1.02); background: var(--accent-soft) !important; box-shadow: inset 0 0 0 2px var(--accent); }
.wrow.no { background: var(--danger-soft) !important; box-shadow: inset 0 0 0 2px var(--danger); }
.wrow.flash { animation: flash 1.1s ease; }
@keyframes flash { 0%, 100% { background: transparent; } 30% { background: var(--accent-soft); } }
.ghost { position: fixed; z-index: 100; pointer-events: none; display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-up), 0 0 0 2px var(--accent); transform: translate(-40%, -70%) rotate(-2deg) scale(1.04); will-change: left, top; }
.ghost .ph { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.ghost .ct { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend { display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: 13px; color: var(--hint); margin: 4px 4px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .mk { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.legend .mk svg { width: 13px; height: 13px; }

/* ---------- подсказка */
.hint { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 48px 14px 14px; margin: 0 0 14px; border-radius: 20px; background: var(--mustard-soft); color: var(--text); font-size: 15px; font-weight: 550; animation: fadeUp .4s var(--ease); }
.hint .e { width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--mustard); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hint .e svg { width: 20px; height: 20px; }
.hint .x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 50%; color: var(--hint); display: flex; align-items: center; justify-content: center; }
.hint .x svg { width: 18px; height: 18px; }

/* ---------- состояния */
.state { text-align: center; padding: 40px 20px; }
.state .e { width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.state .e svg { width: 44px; height: 44px; }
.state h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.state p { color: var(--hint); margin: 0 0 18px; }
.state .btn { max-width: 290px; margin: 0 auto; }

/* ---------- страницы поверх (блюдо, план) */
.page { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; transform: translateX(100%); transition: transform .32s var(--ease); overscroll-behavior: contain; scroll-padding-top: calc(var(--sat) + 72px); }
.page.in { transform: none; }
.page.under { transform: translateX(-18%); }
.page .content { padding: 0 18px calc(130px + var(--sab)); }
.pad { padding: 16px 18px calc(36px + var(--sab)); }
.page > .pad { padding-top: calc(var(--sat) + 72px); }
.page > .hero + .pad { padding-top: 18px; }
.topbtn { position: fixed; z-index: 45; top: calc(var(--sat) + 10px); width: 46px; height: 46px; border-radius: 50%; background: var(--on-photo-bg); color: var(--on-photo-text); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .16); }
.topbtn svg { width: 22px; height: 22px; }
.topbtn.l { left: 14px; }
.pbar { position: fixed; z-index: 44; left: 0; right: 0; top: 0; height: calc(var(--sat) + 66px); padding: calc(var(--sat) + 6px) 16px 0 72px; line-height: 54px; font-family: var(--serif); font-size: 18px; font-weight: 700; background: var(--bg); box-shadow: 0 1px 0 var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pbar.on { opacity: 1; }
.hero { position: relative; height: 310px; margin: 0 -18px; border-radius: 0 0 34px 34px; overflow: hidden; }
.hero .ph { position: absolute; inset: 0; }
.hero .ph > span svg { width: 64px; height: 64px; }
.dlabel { margin: 18px 0 4px; }
.dtitle { font-size: 28px; font-weight: 700; line-height: 1.15; margin: 0 0 12px; }
.dmeta { margin-bottom: 4px; }
.kbju { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 6px; }
.kbju div { background: var(--card); border-radius: 18px; padding: 12px 4px; text-align: center; box-shadow: var(--shadow); }
.kbju b { display: block; font-size: 20px; font-weight: 800; }
.kbju span { font-size: 12.5px; color: var(--hint); }
.kbju div:first-child { background: var(--accent-soft); color: var(--accent-strong); box-shadow: none; }
.note { display: flex; gap: 12px; padding: 14px; border-radius: 20px; background: var(--mustard-soft); font-size: 15px; margin: 12px 0; line-height: 1.38; }
.note.warn { background: var(--danger-soft); }
.note.olive { background: var(--olive-soft); }
.note .e { width: 34px; height: 34px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--mustard); }
.note.warn .e { color: var(--danger); }
.note.olive .e { color: var(--olive); }
.note .e svg { width: 19px; height: 19px; }
.intro { font-size: 16px; line-height: 1.55; margin: 14px 0; white-space: pre-line; }
.paper { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); position: relative; }
.ings { padding: 6px 18px; }
.ing { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); font-size: 16px; align-items: baseline; }
.ing:last-child { border-bottom: 0; }
.ing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mustard-deco); flex-shrink: 0; transform: translateY(-2px); }
.ing .sw { display: block; font-size: 13.5px; color: var(--hint); margin-top: 2px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); margin-left: 6px; vertical-align: 1px; }
.steps-list { padding: 4px 18px; }
.steps-list .st { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line-strong); }
.steps-list .st:last-child { border-bottom: 0; }
.steps-list .n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.steps-list .tx { font-size: 15.5px; line-height: 1.5; }
.bottom-bar .row .btn-primary { flex: 1; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.bottom-bar .row .btn-ghost { flex: 0 0 auto; white-space: nowrap; }

/* ---------- режим готовки */
.cook { position: fixed; inset: 0; bottom: auto; height: var(--vp-h, 100%); z-index: 60; background: var(--bg); display: flex; flex-direction: column; padding: calc(var(--sat) + 10px) 20px calc(16px + var(--sab)); transform: translateY(100%); transition: transform .35s var(--ease); }
.cook.in { transform: none; }
.cook .top { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.cook .top .ttl { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook .x { width: 46px; height: 46px; border-radius: 50%; background: var(--card2); display: flex; align-items: center; justify-content: center; }
.cook .x svg { width: 20px; height: 20px; }
.segs { display: flex; gap: 4px; margin: 10px 0 0; }
.segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--card2); }
.segs i.done { background: var(--accent); }
.segs i.cur { background: color-mix(in srgb, var(--accent) 50%, var(--card2)); }
.stepcard { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 2px 28px; display: flex; flex-direction: column; gap: 12px; animation: fadeUp .35s var(--ease); overscroll-behavior: contain; scroll-padding-bottom: 12px; }
.stepcard.back { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.shead { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring .bgc { stroke: var(--card2); }
.ring .fgc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .45s var(--ease); }
.ring .rn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring .rn b { font-family: var(--serif); font-size: 28px; }
.ring .rn span { font-size: 12px; color: var(--hint); margin-top: 3px; }
.shead .sic { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; }
.shead .sic svg { width: 30px; height: 30px; }
.shead .tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: 16px; height: 36px; padding: 0 13px; border-radius: 999px; background: var(--mustard-soft); color: var(--mustard); }
.tag svg { width: 17px; height: 17px; }
.tag.time { background: var(--olive-soft); color: var(--olive); }
.stepdish { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--accent-strong); }
.ph.stepimg, .stepimg { width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--ph1), var(--ph2)); }
.stepimg .ph { width: 100%; height: 100%; border-radius: inherit; }
.ph.stepimg > span svg { width: 42px; height: 42px; }
.steptext { font-size: 23px; line-height: 1.45; font-weight: 500; }
.timer { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.timer .tv { font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 800; flex: 1; }
.timer .tl { font-size: 13px; color: var(--hint); display: block; font-weight: 600; }
.timer .btn { width: auto; min-height: 48px; padding: 0 18px; font-size: 16px; }
.timer.run .tv { color: var(--accent-strong); }
.timer.end { background: var(--accent-soft); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { transform: scale(1.02); } }
.tchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.tchip svg { width: 16px; height: 16px; }
.need { flex-shrink: 0; padding-bottom: 4px; }
.need h4 { margin: 4px 0 8px; font-size: 13px; color: var(--hint); text-transform: uppercase; letter-spacing: .05em; }
.need .chips { gap: 6px; }
.need .chip { font-size: 15px; min-height: 36px; padding: 6px 13px; background: var(--card2); box-shadow: none; }
.cook .nav { display: flex; gap: 10px; margin-top: 8px; flex-shrink: 0; padding-top: 4px; }
.cook .nav .prev { width: 58px; flex-shrink: 0; padding: 0; }
.done-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; animation: pop .5s var(--ease); }
.done-screen .e { width: 110px; height: 110px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; }
.done-screen .e svg { width: 58px; height: 58px; }
.done-screen h2 { margin: 10px 0 4px; font-size: 28px; }

/* план готовки на день — «таймлайн» */
.tl { position: relative; margin: 8px 0 0; }
.tl::before { content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 11px); }
.tli { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; margin-bottom: 12px; position: relative; }
.tli .num { width: 40px; height: 40px; border-radius: 50%; background: var(--btn); color: var(--btn-text); font-family: var(--serif); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 5px var(--bg); }
.tli .box { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; }
.tli .box .tx { flex: 1; min-width: 0; }
.tli .meta { margin-left: auto; text-align: right; flex-shrink: 0; font-size: 13px; color: var(--hint); line-height: 1.3; max-width: 42%; }
.tli .ph { width: 66px; height: 66px; border-radius: 18px; flex-shrink: 0; }
.tli .ml { font-size: 12px; font-weight: 750; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .05em; }
.tli .t { font-weight: 700; font-size: 16px; line-height: 1.25; }
.tli .m { font-size: 13.5px; color: var(--hint); margin-top: 3px; }

/* ---------- нижние листы */
.sheet-back { position: fixed; inset: 0; z-index: 70; background: var(--scrim); opacity: 0; transition: opacity .25s; }
.sheet-back.in { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 88vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 30px 30px 0 0; transform: translateY(100%); transition: transform .34s var(--ease); box-shadow: var(--shadow-up); }
.sheet.in { transform: none; }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; margin: 10px auto 2px; flex-shrink: 0; background: color-mix(in srgb, var(--hint) 40%, transparent); }
.sheet .sh { display: flex; align-items: flex-start; gap: 10px; padding: 8px 20px 4px; }
.sheet .sh h3 { flex: 1; font-family: var(--serif); font-size: 23px; margin: 6px 0 2px; }
.sheet .sh .x { width: 44px; height: 44px; border-radius: 50%; background: var(--card2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sheet .sh .x svg { width: 18px; height: 18px; }
.sheet .sb { overflow-y: auto; padding: 4px 20px calc(22px + var(--sab)); }
.sheet .sb .sub { margin-bottom: 12px; }
.alt { display: flex; gap: 12px; padding: 10px; width: 100%; text-align: left; align-items: center; margin-bottom: 10px; }
.alt .ph { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; }
.alt .t { font-weight: 700; font-size: 16px; line-height: 1.25; display: flex; align-items: center; gap: 6px; }
.alt .t svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.alt .m { font-size: 14px; color: var(--hint); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.alt .m span { display: inline-flex; align-items: center; gap: 4px; }
.alt .m svg { width: 14px; height: 14px; }
.alt:active { transform: scale(.985); }

/* ---------- продукты: бумажный чек-лист */
.shead2 { display: flex; align-items: center; gap: 14px; margin: 2px 0 14px; }
.shead2 .tx { flex: 1; min-width: 0; }
.shead2 h1 { margin: 2px 0 4px; }
.shead2 .sub { margin: 0; font-size: 14.5px; }
.pring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.pring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.pring circle { fill: none !important; stroke-width: 3.8; }
.pring .bgc { stroke: color-mix(in srgb, var(--olive) 28%, var(--card2)); fill: none !important; }
.pring .fgc { stroke: var(--olive-fill); fill: none !important; stroke-linecap: round; transition: stroke-dasharray .45s var(--ease); }
.pring .rn b { color: var(--text); }
:root.dark .pring .bgc { stroke: color-mix(in srgb, var(--olive) 40%, var(--card2)); }
.ring circle { fill: none !important; }
.pring .rn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; text-align: center; }
.pring .rn b { font-size: 21px; font-weight: 800; }
.pring .rn span { font-size: 10.5px; color: var(--hint); margin-top: 3px; font-weight: 650; }
.left-line { font-size: 15px; font-weight: 700; margin: -2px 2px 12px; color: var(--olive); display: flex; align-items: center; gap: 8px; }
.left-line svg { width: 18px; height: 18px; }
.checklist { position: relative; padding: 4px 0 10px; margin-bottom: 16px;
  background-image: linear-gradient(var(--paper), var(--paper)); overflow: hidden; }
.checklist.paper::before { content: none; }
.sech { position: sticky; top: var(--sat); z-index: 3; display: flex; align-items: center; gap: 10px; padding: 14px 18px 10px 18px; font-family: var(--serif); font-weight: 700; font-size: 18px; background: var(--paper); border-radius: var(--r) var(--r) 0 0; }
.sech .e { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-strong); }
.sech .e svg { width: 16px; height: 16px; }
.sech .c { margin-left: auto; color: var(--hint); font-family: -apple-system, Roboto, "Noto Sans", "Segoe UI", sans-serif; font-weight: 650; font-size: 13.5px; }
.sec + .sec .sech { border-radius: 0; border-top: 1px dashed var(--line-strong); }
.item { position: relative; }
.item .ir { display: flex; align-items: center; min-height: 56px; }
.item .cb { width: 52px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item .cb i { width: 26px; height: 26px; border-radius: 8px; border: 2px solid color-mix(in srgb, var(--hint) 60%, transparent); display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s, transform .2s; transform: rotate(-3deg); }
.item .cb i svg { width: 16px; height: 16px; color: #fff; opacity: 0; transform: scale(.4); transition: all .2s var(--ease); }
.item.on .cb i { background: var(--olive-fill); border-color: var(--olive-fill); }
:root.dark .item.on .cb i svg { color: #211a16; }
.item.on .cb i svg { opacity: 1; transform: none; }
.item .nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; text-align: left; min-height: 56px; border-bottom: 1px solid var(--line); }
.item:last-child .nm { border-bottom: 0; }
.item .nm .n { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 16.5px; font-weight: 600; position: relative; transition: color .2s; }
.item .nm .n .s { background: linear-gradient(var(--hint), var(--hint)) no-repeat 0 55% / 0 1.6px; transition: background-size .35s var(--ease); }
.item.on .nm .n { color: var(--hint); }
.item.on .nm .n .s { background-size: 100% 1.6px; }
.item .nm .q { font-size: 13.5px; font-weight: 550; color: var(--hint); white-space: normal; word-break: break-word; line-height: 1.35; font-variant-numeric: tabular-nums; max-width: 100%; }
.item .nm .for { font-size: 12.5px; font-weight: 550; color: var(--accent-strong); line-height: 1.3; max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.on .nm .for { color: var(--hint); }
.item .nm .chev { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s var(--ease); }
.item.open .nm .chev { transform: rotate(90deg); }
.uses { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.item.open .uses { max-height: 600px; }
.uses .in { padding: 2px 16px 12px 64px; display: flex; flex-direction: column; gap: 4px; }
.uses .lbl { font-size: 12.5px; color: var(--hint); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 2px; }
.use { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; min-height: 44px; border-radius: 14px; background: var(--card2); font-size: 14.5px; width: 100%; }
.use .w { font-weight: 750; color: var(--accent-strong); white-space: nowrap; }
.use .d { flex: 1; min-width: 0; }
.use .d small { display: block; color: var(--hint); font-size: 12.5px; }
/* v3.6.1: свёрнутый раздел «Куплено» внизу списка */
.bought { margin: 0 16px 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm, none); overflow: hidden; }
.bought .bh { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 10px 16px; text-align: left; font-size: 16px; color: var(--hint); }
.bought .bh b { font-weight: 650; }
.bought .bh .e svg { width: 18px; height: 18px; color: var(--olive); }
.bought .bh .c { margin-left: auto; font-size: 13.5px; font-weight: 650; background: var(--card2); border-radius: 999px; padding: 2px 10px; }
.bought .bh .chev { transition: transform .25s var(--ease); }
.bought.open .bh .chev { transform: rotate(90deg); }
.bought .bb { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.bought.open .bb { grid-template-rows: 1fr; }
.bought .bb .in { overflow: hidden; min-height: 0; }
.bought .checklist { box-shadow: none; margin: 0; border-radius: 0; }
.bought .fine { margin: 6px 16px 14px; font-size: 12.5px; color: var(--hint); }
.home { padding: 16px 18px; margin-bottom: 14px; }
.home h3 { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 18px; }
.home h3 svg { width: 20px; height: 20px; color: var(--olive); }
.home .chips { margin-top: 10px; }
.home .chip { background: var(--card2); box-shadow: none; font-size: 14.5px; min-height: 34px; padding: 5px 12px; cursor: default; }
.store-tabs { margin: 6px 0 10px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; margin-bottom: 8px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.cart-item .tx { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 600; }
.cart-item .tx small { display: block; color: var(--hint); font-weight: 500; font-size: 13px; }

/* ---------- профиль */
.prof { display: flex; flex-direction: column; gap: 0; padding: 0; margin-bottom: 8px; }
.phead { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; }
.ava { width: 62px; height: 62px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--serif); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 4px var(--accent-soft); }
:root.dark .ava { color: #1e1814; }
.pinfo { flex: 1; min-width: 0; }
.pinfo .nm, .prof .nm { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.2; }
.status { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 16px; background: var(--olive-soft); color: var(--olive); font-size: 14px; font-weight: 650; }
.status > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status b { font-size: 14.5px; font-weight: 750; }
.status span { font-size: 13px; font-weight: 550; opacity: .9; }
.status svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.status.off { background: var(--mustard-soft); color: var(--mustard); }
.list { overflow: hidden; margin-bottom: 14px; }
.li { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; min-height: 66px; text-align: left; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li:active { background: var(--card2); }
.li .ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-strong); flex-shrink: 0; }
.li .ic.o { background: var(--olive-soft); color: var(--olive); }
.li .ic.m { background: var(--mustard-soft); color: var(--mustard); }
.li .ic svg { width: 21px; height: 21px; }
.li .tx { flex: 1; min-width: 0; }
.li .tx b { display: block; font-size: 16.5px; font-weight: 650; }
.li .tx span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; color: var(--hint); overflow: hidden; line-height: 1.3; }
.foot { text-align: center; color: var(--hint); font-size: 13px; margin: 18px 0 40px; }
.plan { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; margin-bottom: 10px; text-align: left; box-shadow: var(--shadow), inset 0 0 0 2px transparent; transition: box-shadow .2s, transform .12s; }
.plan.on { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.plan .r, .radio .r { width: 24px; height: 24px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--hint) 55%, transparent); flex-shrink: 0; position: relative; }
.plan.on .r, .radio.on .r { border-color: var(--accent); }
.plan.on .r::after, .radio.on .r::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.plan .tx { flex: 1; }
.plan .tx b { display: block; font-size: 17px; }
.plan .tx span { font-size: 14px; color: var(--hint); }
.plan .pr { text-align: right; font-weight: 800; font-size: 17px; white-space: nowrap; }
.plan .pr small { display: block; font-weight: 600; font-size: 13px; color: var(--hint); }
.fine { font-size: 13px; color: var(--hint); text-align: center; margin: 12px 4px 0; line-height: 1.4; }
.paywall .heroimgs { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 236px; margin: 4px 0 20px; }
.paywall .heroimgs .ph { border-radius: 26px; }
.paywall .heroimgs .ph:first-child { grid-row: span 2; border-radius: 26px 26px 26px 90px; }
.paywall h1 { font-size: 28px; }
/* v3.10.7: главная кнопка пейволла «прилипает» над нижней панелью — видна сразу, без прокрутки (iPhone SE и др.) */
.paywall .pw-cta { position: -webkit-sticky; position: sticky; bottom: calc(var(--nav) + var(--sab) + 20px); z-index: 21; margin: 0 -6px; padding: 0 6px; border-radius: 999px; }
.paywall .pw-cta .btn { box-shadow: 0 10px 28px color-mix(in srgb, var(--btn) 40%, transparent), 0 0 0 4px var(--bg); }
.benefits { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 14px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.benefits li .e { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefits li:nth-child(2) .e { background: var(--olive-soft); color: var(--olive); }
.benefits li:nth-child(3) .e { background: var(--mustard-soft); color: var(--mustard); }
.benefits li .e svg { width: 21px; height: 21px; }

/* ---------- знакомство
   v3.0.1: один скролл — .fbody; футер sticky вне скролла; карточки не сжимаются
   (раньше flex-shrink + overflow:hidden обрезал аллергии — «только молоко и яйца»). */
.flow { position: fixed; inset: 0; bottom: auto; height: var(--vp-h, 100%); z-index: 50; background: var(--bg); display: flex; flex-direction: column; padding: calc(var(--sat) + 6px) 20px 0; overflow: hidden; }
.fhead { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 10px; flex-shrink: 0; }
.fback { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card2); color: var(--text); }
.fback svg { width: 22px; height: 22px; }
.fprog { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--hint); font-size: 14px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width .3s var(--ease), background .3s; }
.dots i.done { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.dots i.cur { width: 22px; background: var(--accent); }
.fbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; animation: fadeUp .35s var(--ease); margin: 0 -20px; padding: 6px 20px 28px; }
.fbody > * { flex-shrink: 0; }
.fbody h1 { font-size: 29px; margin: 6px 0 8px; }
.lead, .fbody .lead { color: var(--hint); font-size: 15.5px; line-height: 1.45; margin: 0 0 16px; }
.fbody .sub { font-size: 16px; }
.ffoot { flex-shrink: 0; padding: 12px 0 calc(16px + var(--sab)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.ffoot .btn + .btn { margin-top: 4px; }

/* сетка плиток с блюдами */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 6px; }
.tile { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1.08; text-align: left; box-shadow: var(--shadow); background: var(--card); transition: transform .15s, box-shadow .2s; user-select: none; -webkit-user-select: none; }
.tile:active { transform: scale(.97); }
.tile .ph { position: absolute; inset: 0; z-index: 0; }
/* v3.3.1: iOS WebKit рисовал фото поверх подписи и значка — поднимаем их явно */
.tile .cap, .tile .mark { z-index: 2; }
.tile { isolation: isolate; -webkit-transform: translateZ(0); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 11px; background: linear-gradient(to top, rgba(43, 33, 28, .80), transparent); color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.22; }
.tile .mark { position: absolute; top: 9px; right: 9px; width: 36px; height: 36px; border-radius: 50%; background: var(--on-photo-bg); color: var(--on-photo-hint); display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease), background .2s, color .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.tile .mark svg { width: 19px; height: 19px; }
.tile.like { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.tile.like .mark { background: var(--accent); color: #fff; transform: scale(1.12); }
.tile.nope { box-shadow: 0 0 0 3px var(--nope); }
.tile.nope .ph { filter: grayscale(.85) brightness(.85); }
.tile.nope .mark { background: var(--nope); color: #fff; }
.tile.nope .cap::before { content: "не едим"; display: inline-block; margin-bottom: 4px; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); text-transform: uppercase; letter-spacing: .05em; }
.tile.nope .cap { display: flex; flex-direction: column; align-items: flex-start; }
.tlegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--hint); margin: -4px 0 14px; }
.tlegend span { display: inline-flex; align-items: center; gap: 6px; }
.tlegend i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.tlegend i svg { width: 12px; height: 12px; }
.tlegend .l i { background: var(--accent); color: #fff; }
.tlegend .n i { background: var(--nope); color: #fff; }

/* сгруппированные ограничения — компактные чипы 2 колонки (v3.0.1, без внутреннего скролла) */
.group { margin-bottom: 16px; overflow: visible; padding: 14px 12px 12px; }
.group .gt { font-size: 13px; font-weight: 750; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .06em; padding: 2px 4px 12px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cchip { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 12px; text-align: left; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-size: 14.5px; font-weight: 650; color: var(--text); transition: background .15s, border-color .15s, color .15s, transform .12s; }
.cchip:active { transform: scale(.97); }
.cchip .ce { font-size: 18px; line-height: 1; flex-shrink: 0; }
.cchip .cl { flex: 1; min-width: 0; line-height: 1.2; }
.cchip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
/* legacy .tgl (если где-то осталось) */
.tgl { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; text-align: left; border-top: 1px solid var(--line); font-size: 16.5px; font-weight: 600; }
.group .tgl:first-of-type { border-top: 0; }
.tgl .tx { flex: 1; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--line-strong); position: relative; flex-shrink: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.tgl.on .switch { background: var(--accent); }
.tgl.on .switch::after { transform: translateX(20px); }
.other { padding: 4px 0 2px; }
.other label { display: block; font-size: 13px; font-weight: 750; color: var(--hint); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px 8px; }
.other input { width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); outline: none; font-size: 16px; }
.other input:focus { border-color: var(--accent); }
.other .muted { font-size: 13.5px; margin-top: 6px; padding-left: 6px; }

/* сегмент выбора темы в Профиле */
.theme-seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 4px 14px 14px; }
.theme-seg button { min-height: 40px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--hint); background: var(--card2); transition: background .15s, color .15s; }
.theme-seg button.on { background: var(--accent-soft); color: var(--accent-strong); }

/* шкала «насколько строго» */
.scale { margin: 22px 0 10px; }
.scale .track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card2); border-radius: 999px; padding: 5px; }
.scale .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: var(--btn); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .32s var(--ease); }
.scale button { position: relative; z-index: 1; min-height: 54px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--hint); transition: color .2s; line-height: 1.15; padding: 4px 8px; white-space: nowrap; }
.scale button.on { color: var(--btn-text); }
.scale .ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--hint); margin: 8px 10px 0; font-weight: 600; }
.explain { display: flex; gap: 14px; padding: 18px; margin-top: 10px; animation: fadeUp .3s var(--ease); }
.explain .e { width: 46px; height: 46px; border-radius: 50%; background: var(--olive-soft); color: var(--olive); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.explain .e svg { width: 24px; height: 24px; }
.explain b { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.explain span { color: var(--hint); font-size: 15px; }

/* шаговый счётчик порций */
.stepper { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 30px 0 8px; }
.stepper .sbtn { width: 68px; height: 68px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--accent-strong); transition: transform .12s; }
.stepper .sbtn:active { transform: scale(.92); }
.stepper .sbtn[disabled] { opacity: .35; pointer-events: none; }
.stepper .sbtn svg { width: 30px; height: 30px; }
.stepper .val { min-width: 96px; text-align: center; }
.stepper .val b { display: block; font-family: var(--serif); font-size: 72px; line-height: 1; font-weight: 700; }
.stepper .val span { font-size: 16px; color: var(--hint); font-weight: 650; }
.people { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; min-height: 40px; margin: 24px 10px 0; color: var(--accent); }
.people svg { width: 34px; height: 34px; animation: pop .28s var(--ease); }
.people svg:nth-child(even) { color: var(--mustard-deco); }
.people svg:nth-child(3n) { color: var(--olive); }
.plates-note { text-align: center; color: var(--hint); font-size: 14px; margin: 16px 0 0; }

/* цель — компактно */
.goals { display: flex; flex-direction: column; gap: 10px; }
.radio { display: flex; gap: 14px; align-items: center; width: 100%; min-height: 64px; padding: 12px 16px; text-align: left; box-shadow: var(--shadow), inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.radio.on { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.radio .gi { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.radio .gi svg { width: 22px; height: 22px; }
.radio .tx { flex: 1; min-width: 0; }
.radio b { display: block; font-size: 17px; line-height: 1.25; }
.radio span { display: block; font-size: 14px; color: var(--hint); margin-top: 2px; line-height: 1.35; }

/* «Собираем ваше меню…» — кастрюля с паром */
.build { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.potw { position: relative; width: 170px; height: 170px; }
.potw .steam { position: absolute; bottom: 104px; width: 14px; height: 52px; border-radius: 50%; border-left: 4px solid color-mix(in srgb, var(--hint) 55%, transparent); opacity: 0; animation: steam 2.2s ease-in-out infinite; }
.potw .steam:nth-child(1) { left: 54px; animation-delay: 0s; }
.potw .steam:nth-child(2) { left: 80px; animation-delay: .7s; }
.potw .steam:nth-child(3) { left: 106px; animation-delay: 1.4s; }
@keyframes steam { 0% { transform: translateY(14px) scaleY(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-34px) scaleY(1.1) translateX(6px); opacity: 0; } }
.potw svg { position: absolute; left: 0; bottom: 0; width: 170px; height: 120px; }
.potw .lid { animation: lid 1.1s ease-in-out infinite; transform-origin: 85px 34px; }
@keyframes lid { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-5px) rotate(-3deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-3px) rotate(2deg); } }
.build h1 { margin: 18px 0 6px; }
.bsteps { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.bsteps li { display: flex; gap: 12px; align-items: center; font-size: 16.5px; color: var(--hint); transition: color .3s; }
.bsteps li i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .3s; }
.bsteps li i svg { width: 15px; height: 15px; opacity: 0; transition: opacity .3s; }
.bsteps li.on { color: var(--text); }
.bsteps li.on i { background: var(--olive-fill); border-color: var(--olive-fill); }
.bsteps li.on i svg { opacity: 1; }
.bigbar { width: 230px; height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-top: 24px; }
.bigbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .45s cubic-bezier(.4, .1, .3, 1); }

/* ---------- тост */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav) + var(--sab) + 22px); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 22px; background: var(--toast-bg); color: var(--toast-text); font-size: 15.5px; box-shadow: var(--shadow-up); animation: toastIn .3s var(--ease); }
.toast .ti { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); flex-shrink: 0; }
:root.dark .toast .ti { background: rgba(0, 0, 0, .08); }
.toast .ti svg { width: 18px; height: 18px; }
.toast .tx { flex: 1; line-height: 1.35; }
.toast button { color: var(--toast-btn-text); background: var(--toast-btn-bg); font-weight: 800; padding: 0 16px; min-height: 44px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.toast button svg { width: 16px; height: 16px; }
.toast.err { background: var(--danger-strong); color: #fff; }
.toast.top { bottom: calc(var(--sab) + 100px); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 15px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 15.5px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ------------------------------------------------------------------ v3.0.1: Android
 * высота экранов — из Telegram viewportHeight (--vp-h) / viewportStableHeight (--app-h), не 100vh;
 * при открытой клавиатуре (класс .kb) прячем плавающие панели, чтобы они не прыгали над клавиатурой. */
:root.kb .tabbar, :root.kb .bottom-bar, :root.kb .toast { display: none !important; }
:root.kb .ffoot { padding-bottom: 10px; }
.wrow { -webkit-user-select: none; user-select: none; }
.stepcard { touch-action: pan-y; }
.carousel { touch-action: pan-x pan-y; }
.sheet .grab, .sheet .sh { touch-action: none; }
/* длинные русские подписи на узких Android (360px): переносим, а не вылезаем за край */
/* break-word — только крайний случай (слово длиннее строки); размеры ниже подобраны так, чтобы слова не рвались */
.btn, .cchip, .chip, .seg button, .theme-seg button { overflow-wrap: break-word; }
.cchip .cl { min-width: 0; }
@media (max-width: 370px) {
  .btn { font-size: 16px; padding-left: 16px; padding-right: 16px; }
  .group { padding: 12px 10px 10px; }
  .cchip { font-size: 13.5px; padding: 9px 8px 9px 10px; gap: 6px; }
  .cchip .ce { font-size: 16px; }
  .bottom-bar .row .btn-primary, .bottom-bar .row .btn-ghost { white-space: normal; }
}

/* v3.0.1: лист «Чем заменить?» — без пустой плашки; скелетон в форме строк списка */
.alt-sub { margin: 0 4px 12px; }
.alt-reset { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin: -4px 0 8px 2px; padding: 0 4px; font-size: 15px; font-weight: 700; color: var(--accent-strong); background: none; }
.alt-reset svg { width: 18px; height: 18px; }
.altskel { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 10px; }
.altskel > .skel { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; display: block; }
.altskel > div { flex: 1; }
.altskel > div .skel { display: block; height: 14px; border-radius: 7px; margin: 6px 0; }
.altskel > div .skel + .skel { width: 55%; }
/* план готовки: строки «доедаем» с фото исходного блюда */
.skipnote .skiprow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.skipnote .skiprow .ph { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; }
.skipnote .skiprow .ph > span svg { width: 18px; height: 18px; }
.skipnote .skiprow i { font-style: normal; color: var(--hint); margin-right: 6px; }

/* ===================================================================== v3.1 админка (только ADMIN_IDS) */
.btn-danger { background: var(--danger); color: #fff; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.adm h1, .adm-h1 { font-family: var(--serif); font-size: 28px; margin: 4px 0 14px; }
.adm-h2 { font-family: var(--serif); font-size: 20px; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.adm-h2 small { font-family: inherit; font-size: 14px; color: var(--hint); font-weight: 600; }
.adm-head { display: flex; align-items: baseline; gap: 10px; }
.adm-head h1 { flex: 1; }
.adm-ver { font-size: 13px; font-weight: 700; color: var(--hint); background: var(--card2); border-radius: 999px; padding: 4px 10px; }
.adm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.adm-kpis > div { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.adm-kpis b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.adm-kpis span { font-size: 13px; color: var(--hint); }
.adm-list { display: flex; flex-direction: column; overflow: hidden; }
.adm-list.card > * + * { border-top: 1px solid var(--line); }
.adm-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 16px; text-align: left; }
.adm-row .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-row .ic svg { width: 22px; height: 22px; }
.adm-row .tx, .adm-dish .tx, .adm-pay .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-row b, .adm-dish b, .adm-pay b { font-size: 16.5px; font-weight: 700; }
.adm-row small, .adm-dish small, .adm-pay small { color: var(--hint); font-size: 13.5px; }
.adm-row .chev, .adm-dish .chev { color: var(--hint); width: 20px; flex-shrink: 0; }
.adm-row .chev svg, .adm-dish .chev svg { width: 18px; height: 18px; }
#sheets .adm-list .adm-row { background: var(--card); border-radius: var(--r-sm); margin-bottom: 8px; }
.adm-foot { margin-top: 16px; text-align: center; }
.adm-search { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); margin-bottom: 12px; }
.adm-search svg { width: 20px; height: 20px; color: var(--hint); flex-shrink: 0; }
.adm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; min-height: 50px; }
.adm-seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-seg button { min-height: 44px; padding: 8px 15px; border-radius: 999px; background: var(--card2); color: var(--text); font-weight: 650; font-size: 15px; }
.adm-seg button.on { background: var(--text); color: var(--bg); }
.adm-count { margin: 4px 2px 8px; }
.adm-dishes { display: flex; flex-direction: column; gap: 8px; }
.adm-dish { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow); text-align: left; margin-bottom: 8px; }
.adm-th { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; overflow: hidden; }
.adm-th.sm { width: 46px; height: 46px; border-radius: 12px; }
.adm-th span svg { width: 24px; height: 24px; }
.adm-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-flags:empty { display: none; }
.adm-pill { display: inline-flex; align-items: center; font-style: normal; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--card2); color: var(--hint); white-space: nowrap; }
.adm-pill.olive { background: var(--olive-soft); color: var(--olive); }
.adm-pill.mustard { background: var(--mustard-soft); color: var(--mustard); }
.adm-pill.accent { background: var(--accent-soft); color: var(--accent-strong); }
.adm-sticky { position: sticky; bottom: 0; padding: 14px 0 calc(10px + var(--sab)); margin-top: 18px; background: linear-gradient(to bottom, transparent, var(--bg) 30%); z-index: 5; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.fld > span { font-size: 14px; font-weight: 650; color: var(--hint); }
.fld.grow { flex: 1; margin-bottom: 0; }
.adm input:not([type="search"]), .adm textarea, .adm select, .adm-ta { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--text); font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.adm textarea, .adm-ta { resize: none; line-height: 1.4; }
.adm input:focus, .adm textarea:focus, .adm select:focus { border-color: var(--accent); }
.adm select { background-image: linear-gradient(45deg, transparent 50%, var(--hint) 50%), linear-gradient(135deg, var(--hint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.adm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-photo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 180px; border-radius: var(--r); background: linear-gradient(135deg, var(--ph1), var(--ph2)); margin-bottom: 16px; overflow: hidden; color: var(--accent-strong); }
.adm-photo.sm { min-height: 120px; }
.adm-photo > span svg { width: 42px; height: 42px; opacity: .6; }
.adm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-photo.has { min-height: 220px; justify-content: flex-end; padding-bottom: 12px; }
.adm-photo .btn { position: relative; z-index: 1; }
.adm-photo.has .btn { background: var(--on-photo-bg); color: var(--on-photo-text); }
.adm-photo.has { flex-direction: row; align-items: flex-end; }
.adm-ing, .adm-step { padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r-sm); }
.adm-ingrow { display: flex; gap: 8px; align-items: flex-end; }
.adm-ingrow .qt { flex: 1.2; }
.adm-ingrow .un { flex: .8; }
.iconbtn.sm { width: 44px; height: 44px; box-shadow: none; background: var(--card2); }
.iconbtn.sm svg { width: 18px; height: 18px; }
.iconbtn.sm.up svg { transform: rotate(-90deg); }
.iconbtn[disabled] { opacity: .35; }
.adm-stephead { display: flex; align-items: center; gap: 8px; }
.adm-stephead b { flex: 1; }
.adm-timer { flex: 1; display: flex; align-items: center; gap: 8px; }
.adm-timer svg { width: 20px; height: 20px; color: var(--olive); flex-shrink: 0; }
.adm-stepimg { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; }
.btn-add { min-height: 50px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-chips button { min-height: 44px; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-weight: 600; font-size: 15px; }
.adm-chips button.auto { box-shadow: inset 0 0 0 2px var(--mustard-deco); }
.adm-chips button.on { background: var(--btn); color: var(--btn-text); box-shadow: none; }
.adm-tgl { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow); text-align: left; margin-bottom: 12px; }
.adm-tgl > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.adm-tgl small { color: var(--hint); font-size: 13.5px; }
.adm-tgl.on .switch { background: var(--accent); }
.adm-tgl.on .switch::after { transform: translateX(20px); }
.adm-day { padding: 6px 10px 8px; margin-bottom: 14px; }
.adm-day h3 { font-family: var(--serif); font-size: 18px; margin: 10px 6px 6px; }
.adm-slot { display: flex; align-items: stretch; gap: 4px; border-radius: 16px; transition: background .15s, box-shadow .15s; }
.adm-slot + .adm-slot { border-top: 1px solid var(--line); }
.adm-slot .grip { width: 44px; min-height: 64px; display: flex; align-items: center; justify-content: center; color: var(--hint); touch-action: none; flex-shrink: 0; cursor: grab; }
.adm-slot .grip svg { width: 20px; height: 20px; }
.adm-slot.left .grip { color: var(--mustard); cursor: default; }
.adm-slot .body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 9px 6px 9px 0; text-align: left; }
.adm-slot .body .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.adm-slot .body small { color: var(--hint); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.adm-slot .body b { font-size: 15.5px; font-weight: 650; line-height: 1.25; }
.adm-slot.sel { background: var(--accent-soft); }
.adm-slot.over { background: var(--olive-soft); box-shadow: inset 0 0 0 2px var(--olive); }
.adm-slot.drag { opacity: .35; }
.adm-ghost { position: fixed; left: 0; top: 0; z-index: 100; background: var(--card); box-shadow: var(--shadow-up); border-radius: 16px; pointer-events: none; }
.adm-warn { display: flex; gap: 6px; align-items: flex-start; font-style: normal; font-size: 13px; color: var(--danger); font-weight: 600; }
.adm-warn svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.adm-swapbar { position: sticky; top: calc(var(--sat) + 64px); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); margin-bottom: 12px; font-weight: 650; }
.adm-swapbar svg { width: 20px; height: 20px; }
.adm-swapbar span { flex: 1; }
.adm-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.adm-toolbar button { min-width: 48px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--card2); font-size: 16px; }
.adm-toolbar .cnt { margin-left: auto; font-size: 13px; color: var(--hint); font-weight: 700; }
.adm-toolbar .cnt.over { color: var(--danger); }
.adm-ta { margin-bottom: 14px; }
.adm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.adm-bubble { max-width: 330px; margin: 6px 0 8px; background: var(--card); border-radius: 18px 18px 18px 6px; box-shadow: var(--shadow); overflow: hidden; }
.adm-bubble img { width: 100%; max-height: 220px; object-fit: cover; }
.adm-bubble .msg { padding: 10px 14px; font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }
.adm-bubble .msg a { color: var(--accent-strong); text-decoration: underline; }
.adm-bubble .kb { margin: 0 8px 8px; padding: 10px; text-align: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 15px; }
.adm-post { padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; border-radius: var(--r-sm); }
.adm-post small { color: var(--hint); font-size: 13px; }
.adm-post p { margin: 2px 0 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.adm-post .btn { align-self: flex-start; padding-left: 0; }
.adm-kpis.k3 { grid-template-columns: repeat(3, 1fr); }
.adm-rev { display: grid; grid-template-columns: 1fr 1fr; padding: 4px 0; margin-bottom: 4px; }
.adm-rev > div { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.adm-rev > div + div { border-left: 1px solid var(--line); }
.adm-rev b { font-size: 20px; font-weight: 800; }
.adm-rev small { color: var(--hint); font-size: 13px; }
.adm-pay { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; text-align: left; }
.adm-pay .r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; flex-shrink: 0; }
.adm-pay .r s { color: var(--hint); font-size: 14px; }
.adm-pay small.ok { color: var(--olive); font-weight: 700; }
#sheets .adm-pay { background: var(--card); border-radius: 14px; margin-bottom: 6px; }
.adm-kv { padding: 4px 16px; margin-bottom: 8px; }
.adm-kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.adm-kv > div + div { border-top: 1px solid var(--line); }
.adm-kv span { color: var(--hint); }
.adm-kv b { text-align: right; overflow-wrap: anywhere; }
.adm-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.adm-days button { min-height: 48px; border-radius: 14px; background: var(--card2); font-weight: 700; }
.adm-danger { color: var(--danger); margin-top: 16px; }
.adm-tariff { padding: 12px 14px 4px; margin-bottom: 10px; border-radius: var(--r-sm); }
.adm-tariff .th { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.adm-tariff .th b { font-size: 16.5px; }
.adm-tariff .th small { color: var(--hint); }
.adm-tariff > small { display: block; margin: -4px 0 10px; font-size: 13px; }
.adm-confirm { margin-bottom: 8px; font-size: 16px; }
.adm-confirm p { margin: 0 0 10px; }
.adm-big { font-size: 44px; font-weight: 800; text-align: center; margin: 4px 0 0 !important; color: var(--accent-strong); }
.adm p svg, .adm .hint svg, .adm small svg { width: 1.05em; height: 1.05em; vertical-align: -.15em; display: inline; }

/* ======================================================================
   v3.2 — обложка блюда без фото, категории замены, раздел «Калории»
   ====================================================================== */
/* обложка-заглушка: пять тёплых палитр, иконка по названию, мягкие «тарелочные» круги */
.ph { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ph::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 16% 20%, rgba(255, 255, 255, .55) 0 13%, transparent 14%), radial-gradient(circle at 88% 86%, rgba(255, 255, 255, .38) 0 24%, transparent 25%), radial-gradient(circle at 78% 14%, rgba(255, 255, 255, .28) 0 7%, transparent 8%); }
.ph > span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; padding: .22em; background: rgba(255, 255, 255, .62); box-shadow: 0 2px 8px rgba(122, 70, 48, .10); }
.ph img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.ph.pv0 { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--card)), color-mix(in srgb, var(--mustard-deco) 18%, var(--card))); color: var(--accent-strong); }
.ph.pv1 { background: linear-gradient(135deg, color-mix(in srgb, var(--olive-fill) 24%, var(--card)), color-mix(in srgb, var(--mustard-deco) 14%, var(--card))); color: var(--olive); }
.ph.pv2 { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, var(--card)), color-mix(in srgb, var(--accent) 10%, var(--card))); color: var(--accent-strong); }
.ph.pv3 { background: linear-gradient(135deg, color-mix(in srgb, var(--mustard-deco) 30%, var(--card)), color-mix(in srgb, var(--accent) 12%, var(--card))); color: var(--mustard); }
.ph.pv4 { background: linear-gradient(135deg, color-mix(in srgb, var(--hint) 16%, var(--card)), color-mix(in srgb, var(--accent) 8%, var(--card))); color: var(--hint); }
:root.dark .ph::before { background: radial-gradient(circle at 16% 20%, rgba(255, 235, 215, .10) 0 13%, transparent 14%), radial-gradient(circle at 88% 86%, rgba(255, 235, 215, .07) 0 24%, transparent 25%); }
:root.dark .ph > span { background: rgba(30, 22, 17, .34); box-shadow: none; }
.wrow .ph > span, .ghost .ph > span, .tile .ph > span { padding: 0; background: none; box-shadow: none; }
.alt .ph > span svg { width: 36px; height: 36px; }

/* категории в окне замены */
.altchips { display: flex; gap: 8px; overflow-x: auto; margin: 2px -20px 12px; padding: 4px 20px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.altchips::-webkit-scrollbar { display: none; }
.achip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-weight: 650; font-size: 15px; color: var(--text); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.achip i { font-style: normal; font-size: 12.5px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--card2); color: var(--hint); }
.achip.on { background: var(--btn); color: var(--btn-text); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.achip.on i { background: rgba(255, 255, 255, .26); color: inherit; }
.achip.zero { opacity: .55; }
.alt .catp { padding: 1px 9px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); font-weight: 650; font-size: 13px; }
.altlist .state { padding: 26px 8px; }
.altlist .state .e { width: 72px; height: 72px; }

/* ---------- раздел «Калории» */
.tabbar { width: min(372px, calc(100% - 24px)); }
.tabbar button.on { flex: 1.75; }
.n-wrap { padding-bottom: 8px; animation: fadeUp .3s var(--ease); }
.n-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.n-top h1 { margin-bottom: 2px; }
.n-top .range { color: var(--hint); font-size: 15px; }
.n-gear { width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--accent-strong); flex-shrink: 0; }
.n-gear svg { width: 21px; height: 21px; }
.n-days { display: flex; align-items: center; gap: 6px; margin: 12px 0 14px; }
.n-days button { height: 46px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 700; }
.n-days button[disabled] { opacity: .35; pointer-events: none; }
.n-days .lb { flex: 1; font-size: 16px; }
.n-days button:not(.lb) { width: 46px; display: flex; align-items: center; justify-content: center; }
.n-days button svg { width: 20px; height: 20px; }
.n-days .fw svg { transform: rotate(180deg); }
.n-card { display: block; width: 100%; text-align: left; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.n-h2 { font-size: 20px; margin: 22px 2px 10px; }
.n-sec { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hint); margin: 6px 4px 8px; }
.n-kcal { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; }
.n-ringbox { position: relative; width: 132px; height: 132px; }
.n-ring .trk { stroke: var(--card2); }
.n-ring .bar { stroke: var(--accent); transition: stroke-dashoffset .7s var(--ease); }
.n-ring.over .bar { stroke: var(--mustard-deco); }
.n-ringc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.n-ringc b { font-family: var(--serif); font-size: 31px; line-height: 1; }
.n-ringc span { font-size: 12.5px; color: var(--hint); margin-top: 3px; }
.n-left b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1.05; color: var(--accent-strong); }
.n-left.soft b { color: var(--mustard); }
.n-left span { font-size: 14.5px; color: var(--hint); font-weight: 600; }
.n-note { margin: 8px 0 0; font-size: 14px; line-height: 1.35; color: var(--hint); }
.n-macs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 4px; }
.n-mac-h { display: flex; flex-direction: column; font-size: 12.5px; margin-bottom: 6px; line-height: 1.25; }
.n-mac-h b { font-size: 14.5px; }
.n-mac-h span { color: var(--hint); }
.n-bar { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.n-bar i { display: block; height: 100%; border-radius: 4px; transition: width .6s var(--ease); }
.n-mac.p .n-bar i { background: var(--olive-fill); } .n-mac.f .n-bar i { background: var(--mustard-deco); } .n-mac.c .n-bar i { background: var(--accent); }
.n-water { padding: 14px 16px 12px; }
.n-wh { display: flex; align-items: center; gap: 12px; }
.n-wh .ic, .n-grow .ic { width: 44px; height: 44px; border-radius: 50%; background: #dfeaf0; color: #3d7b99; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
:root.dark .n-wh .ic { background: rgba(120, 180, 210, .18); color: #8cc6e0; }
.n-wh .ic svg { width: 22px; height: 22px; }
.n-wh .tx { flex: 1; min-width: 0; } .n-wh .tx b { display: block; font-size: 17px; } .n-wh .tx span { font-size: 14px; color: var(--hint); }
.n-wbtn { display: flex; gap: 8px; }
.n-wbtn button { width: 46px; height: 46px; border-radius: 50%; background: var(--card2); display: flex; align-items: center; justify-content: center; }
.n-wbtn button.pl { background: var(--btn); color: var(--btn-text); }
.n-wbtn button[disabled] { opacity: .35; pointer-events: none; }
.n-wbtn svg { width: 20px; height: 20px; }
.n-drops { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; }
.n-drop { width: 38px; height: 44px; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--hint) 45%, transparent); }
.n-drop svg { width: 26px; height: 26px; }
.n-drop.on { color: #4a9bc0; } .n-drop.on svg { fill: color-mix(in srgb, #4a9bc0 30%, transparent); }
.n-foods { display: flex; flex-direction: column; gap: 10px; }
.n-food { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.n-food.on { box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--olive) 55%, transparent); }
.n-food-main { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 12px 9px 9px; min-height: 72px; }
.n-food-main.static { cursor: default; }
.n-food-main .ph { width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; }
.n-food-main .ph > span svg { width: 26px; height: 26px; }
.n-food-main .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.n-food-main .tx b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.n-food-main .mt { font-size: 12.5px; font-weight: 700; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .04em; }
.n-food-main .kc { font-size: 13.5px; color: var(--hint); margin-top: 1px; }
.n-chk { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, border-color .2s; }
.n-food.on .n-chk { background: var(--olive-fill); border-color: var(--olive-fill); }
:root.dark .n-food.on .n-chk { color: #1e1814; }
.n-chk svg { width: 20px; height: 20px; }
.n-port { display: flex; gap: 8px; padding: 0 12px 12px 74px; }
.n-port button { flex: 1; min-height: 40px; border-radius: 999px; background: var(--card2); font-weight: 700; font-size: 15px; }
.n-port button small { font-weight: 600; color: var(--hint); font-size: 12px; }
.n-port button.on { background: var(--olive); color: #fff; } .n-port button.on small { color: rgba(255, 255, 255, .85); }
:root.dark .n-port button.on { color: #1e1814; } :root.dark .n-port button.on small { color: rgba(30, 24, 20, .75); }
.n-oic { width: 44px; height: 44px; margin: 0 2px; border-radius: 50%; background: var(--mustard-soft); color: var(--mustard); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.n-oic svg { width: 22px; height: 22px; }
.n-del { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--hint); }
.n-del svg { width: 16px; height: 16px; }
.n-empty { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--card2); color: var(--hint); font-size: 14.5px; }
.n-empty svg { width: 28px; height: 28px; flex-shrink: 0; }
.n-wcard { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.n-wcard .l b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.n-wcard .eb { font-size: 13px; font-weight: 700; color: var(--hint); letter-spacing: .05em; text-transform: uppercase; }
.n-wcard .dl { display: block; font-size: 14px; color: var(--hint); margin-top: 2px; font-weight: 600; } .n-wcard .dl.good { color: var(--olive); }
.n-wcard .r { display: flex; align-items: center; gap: 8px; color: var(--hint); }
.n-wcard .r .chev { width: 20px; height: 20px; }
.n-spark polyline { stroke: var(--accent); } .n-spark circle { fill: var(--accent); }
.n-addhint { font-weight: 700; color: var(--accent-strong); font-size: 14.5px; }
.n-grow { display: flex; align-items: center; gap: 12px; }
.n-grow .ic { background: var(--accent-soft); color: var(--accent-strong); }
.n-grow .ic svg { width: 22px; height: 22px; }
.n-grow .tx b { display: block; font-size: 17px; } .n-grow .tx span { color: var(--hint); font-size: 14px; }
.n-eta { margin: 12px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--text); }
.n-eta.soft { color: var(--hint); font-size: 13.5px; }
.n-bmi { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card2); }
.n-bmi b { font-size: 15.5px; margin-right: 8px; } .n-bmi span { font-size: 14px; font-weight: 650; color: var(--olive); }
.n-bmi p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--hint); }
.n-card.n-bmi { margin: 12px 0; }
.n-disc { font-size: 12.5px; line-height: 1.4; color: var(--hint); text-align: center; margin: 14px 8px 0; }
/* знакомство */
.n-intro { padding-top: 6px; }
.n-hero { text-align: center; padding: 18px 6px 14px; }
.n-hero-ic { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; }
.n-hero-ic svg { width: 42px; height: 42px; }
.n-hero p { color: var(--hint); font-size: 16px; margin: 4px 6px 0; line-height: 1.45; }
.n-feat { padding: 6px 16px; margin-bottom: 16px; }
.n-feat > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.n-feat > div + div { border-top: 1px solid var(--line); }
.n-feat .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.n-feat .ic.o { background: var(--olive-soft); color: var(--olive); } .n-feat .ic.m { background: var(--mustard-soft); color: var(--mustard); }
.n-feat .ic svg { width: 21px; height: 21px; }
.n-feat b { display: block; font-size: 16px; } .n-feat span:not(.ic) { font-size: 14px; color: var(--hint); line-height: 1.35; display: block; }
/* анкета */
.n-wiz { padding-top: 62px; }
.n-wiz h1 { margin-top: 18px; }
.n-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.n-two .radio { min-height: 64px; padding: 10px 12px; }
.n-two .radio .r { display: none; }
.n-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.radio.dis { opacity: .5; }
.n-fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.n-fld > span { font-size: 14px; font-weight: 650; color: var(--hint); }
.n-inp { position: relative; }
.n-inp input, .n-fld > input, .n-fld > input[type="date"] { width: 100%; min-height: 56px; padding: 12px 54px 12px 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); outline: none; font-size: 18px; font-weight: 600; -moz-appearance: textfield; appearance: none; }
.n-fld > input[type="text"], .n-fld > input[type="date"] { padding-right: 16px; }
.n-inp input:focus, .n-fld > input:focus { border-color: var(--accent); }
.n-inp u { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); text-decoration: none; color: var(--hint); font-size: 14.5px; font-weight: 650; pointer-events: none; }
.n-inp input::placeholder, .n-fld > input::placeholder { color: color-mix(in srgb, var(--hint) 60%, transparent); font-weight: 500; }
.n-err { margin: 6px 2px 10px; padding: 10px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 14.5px; line-height: 1.35; }
.n-tip { margin: -4px 2px 12px; padding: 10px 14px; border-radius: 14px; background: var(--mustard-soft); color: var(--mustard); font-size: 14px; line-height: 1.35; }
.n-nav { margin-top: 8px; }
.n-more { margin: 2px 0 14px; } .n-more summary { cursor: pointer; font-weight: 650; font-size: 15px; color: var(--accent-strong); min-height: 44px; display: flex; align-items: center; } .n-more summary small { color: var(--hint); font-weight: 500; margin-left: 5px; }
.n-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.n-3 .n-inp input { padding: 12px 28px 12px 12px; font-size: 17px; }
.n-3 .n-inp u { right: 10px; font-size: 13px; }
.n-result { text-align: center; }
.n-result .kbju, .n-result .n-card, .n-result .n-eta { text-align: left; }
.n-result h1 { margin-bottom: 8px; }
.n-bignum b { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent-strong); }
.n-bignum span { color: var(--hint); font-weight: 650; }
.n-result .sub { margin: 12px 6px 4px; }
.n-etabox { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 14px 16px; }
.n-etabox svg { width: 28px; height: 28px; color: var(--accent-strong); flex-shrink: 0; }
.n-etabox p { margin: 0; font-size: 14.5px; line-height: 1.4; }
/* вес */
.n-wp { padding-top: 66px; }
.n-wsum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 8px; }
.n-wsum div { background: var(--card); border-radius: 18px; padding: 11px 6px; text-align: center; box-shadow: var(--shadow); min-width: 0; }
.n-wsum span { display: block; font-size: 12.5px; color: var(--hint); }
.n-wsum b { font-size: 16.5px; white-space: nowrap; }
.n-chg { text-align: center; font-weight: 650; color: var(--hint); font-size: 15px; margin: 8px 0 4px; }
.n-chg.good { color: var(--olive); }
.n-range { margin: 12px 0 10px; }
.n-chart { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 6px 6px; color: var(--accent); }
.n-chart svg { width: 100%; height: auto; }
.n-chart .gl { stroke: var(--line); stroke-width: 1; }
.n-chart .ax { fill: var(--hint); font-size: 10.5px; font-family: inherit; }
.n-chart .ln { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.n-chart .dt { fill: var(--card); stroke: var(--accent); stroke-width: 2.4; }
.n-chart .dt.last { fill: var(--accent); stroke: var(--card); stroke-width: 3; }
.n-chart .tg { stroke: var(--olive); stroke-width: 1.6; stroke-dasharray: 5 5; }
.n-chart .tgt { fill: var(--olive); font-size: 11px; font-weight: 700; font-family: inherit; }
.n-chart .lastv { fill: var(--text); font-size: 12.5px; font-weight: 800; font-family: inherit; }
.n-chart.empty { text-align: center; padding: 30px 16px; color: var(--hint); }
.n-chart.empty span svg { width: 40px; height: 40px; margin: 0 auto 8px; color: var(--accent); }
.n-chart-hint { margin: 0 0 8px; text-align: center; font-size: 13.5px; color: var(--hint); }
.n-wadd { margin-top: 14px; }
.n-wadd h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 12px; }
.n-wform { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.n-tip2 { margin: 10px 2px 0; font-size: 13px; color: var(--hint); text-align: center; line-height: 1.4; }
.n-wlist { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 6px 4px 16px; }
.n-wrow { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.n-wrow + .n-wrow { border-top: 1px solid var(--line); }
.n-wrow .tx { flex: 1; } .n-wrow b { display: block; font-size: 16.5px; } .n-wrow .tx span { font-size: 13.5px; color: var(--hint); }
.n-wrow em { font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--hint); } .n-wrow em.good { color: var(--olive); }
@media (max-width: 380px) {
  .n-kcal { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .n-kside { text-align: center; }
  .n-ringbox { width: 148px; height: 148px; }
  .n-wform { grid-template-columns: 1fr; }
  .n-port { padding-left: 12px; }
  .achip { padding: 0 14px; }
}
@media (max-width: 400px) {
  .n-kcal { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .n-ringbox svg { width: 148px; height: 148px; }
}

.alt .ab { flex: 1; min-width: 0; }
.alt .m span { white-space: nowrap; }
.n-wiz .radio { border-radius: 22px; background: var(--card); }
.n-drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(31px, 1fr)); gap: 0; }
.n-drop { width: 100%; min-width: 31px; }

/* ===================================================================== v3.4 партнёры, сброс статистики */
.adm-lead { margin: -6px 0 12px; }
.adm-since { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 10px; }
.adm-since span { flex: 1 1 100%; font-size: 13.5px; color: var(--hint); font-weight: 600; }
.adm-since .btn { padding: 4px 12px; min-height: 40px; }
.adm-note { padding: 12px 14px; margin-bottom: 12px; font-size: 14px; color: var(--hint); border-radius: var(--r-sm); }
.adm-partners { display: flex; flex-direction: column; gap: 12px; }
.adm-partner { padding: 14px; border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 12px; }
.adm-partner.off { opacity: .66; }
.adm-partner .pt-head { display: flex; align-items: flex-start; gap: 8px; }
.adm-partner .pt-head .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-partner .pt-head b { font-family: var(--serif); font-size: 19px; overflow-wrap: anywhere; }
.adm-partner .pt-head small { color: var(--hint); font-size: 13.5px; overflow-wrap: anywhere; }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-grid > div { background: var(--card2); border-radius: 12px; padding: 9px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pt-grid b { font-size: 17px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.pt-grid span { font-size: 12.5px; color: var(--hint); }
.pt-money { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pt-money > div { display: flex; flex-direction: column; gap: 1px; }
.pt-money span { font-size: 13px; color: var(--hint); }
.pt-money b { font-size: 17px; }
.pt-money .due { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; background: var(--olive-soft); border-radius: 12px; padding: 10px 12px; }
.pt-money .due b { font-size: 22px; font-weight: 800; color: var(--olive); }
.pt-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-btns .btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pt-btns .btn svg { width: 18px; height: 18px; }
.adm-link { margin-bottom: 14px; }
.adm-link small { display: block; color: var(--hint); font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.adm-link .lk { display: flex; gap: 8px; align-items: center; }
.adm-link input { flex: 1; min-width: 0; min-height: 48px; border-radius: 14px; border: 0; background: var(--card2); padding: 0 12px; font-size: 14px; color: var(--text); }
.adm-link .btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.adm-link .btn svg { width: 18px; height: 18px; }
.adm-form .fld small, .adm .fld small { font-weight: 500; color: var(--hint); }
.adm input[type="checkbox"] { width: 22px; min-height: 22px; padding: 0; accent-color: var(--olive-fill); }
.adm-sticky .btn + .btn { margin-top: 8px; }
.adm-chk { flex-direction: row !important; align-items: center; gap: 10px !important; }
.adm-balance { font-size: 15px; color: var(--hint); }
.adm-balance b { font-size: 22px; color: var(--olive); margin-left: 6px; }
.adm-h4 { font-family: var(--serif); font-size: 17px; margin: 18px 0 6px; }
.adm-payout { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.adm-payout span { flex: 1; min-width: 0; color: var(--hint); overflow-wrap: anywhere; }
.adm-payout .x { width: 40px; height: 40px; border-radius: 12px; color: var(--hint); display: flex; align-items: center; justify-content: center; }
.adm-payout .x svg { width: 16px; height: 16px; }
.adm-postbtns { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.adm-post .adm-postbtns .btn { padding-left: 0; padding-right: 0; align-self: auto; }
.adm-post .adm-postbtns .adm-danger { margin-top: 0; }

/* ---- v3.5: баннеры, режимы питания, 3-кнопочный переключатель ---- */
.banner { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; border-radius: 18px; background: var(--accent-soft); color: var(--text); font-size: 15px; font-weight: 550; line-height: 1.35; }
.banner.warm { background: var(--mustard-soft); padding-right: 48px; }
.banner .bi { width: 32px; height: 32px; border-radius: 50%; background: var(--card); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.banner .bi svg { width: 18px; height: 18px; }
.banner .bt { flex: 1; min-width: 0; }
.banner .bx { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border-radius: 50%; color: var(--hint); display: flex; align-items: center; justify-content: center; }
.banner .bx svg { width: 18px; height: 18px; }
.goals.modes .radio .tx span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.3; color: var(--hint); }
.seg.seg3 button { min-width: 0; padding-left: 6px; padding-right: 6px; font-size: 14.5px; white-space: nowrap; }
@media (max-width: 360px) { .seg.seg3 button { font-size: 13px; } }
.plan .tx em.pm { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); font-style: normal; font-size: 13px; font-weight: 700; }

/* v3.6.1: переключатель корзины — «Сегодня · Завтра · На 3 дня · До конца недели» */
.seg.seg4 button { min-width: 0; padding: 0 4px; font-size: 13.5px; line-height: 1.12; white-space: normal; height: 46px; }
.seg.seg4 button:last-of-type { flex: 1.25; }
@media (max-width: 360px) { .seg.seg4 button { font-size: 12.5px; } }

/* v3.7: оценки блюда, быстрый фильтр, общий список — только текст, контурные кнопки */
.vote{display:flex;gap:8px;margin:12px 0 4px}
.vbtn,.qchip{flex:1;appearance:none;background:transparent;border:1px solid var(--line,rgba(0,0,0,.14));color:var(--ink,#2b2a27);border-radius:999px;padding:9px 14px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;transition:background .18s,border-color .18s,color .18s}
.vbtn:active,.qchip:active{transform:scale(.98)}
.vbtn.on,.qchip.on{background:var(--soft,rgba(76,110,72,.10));border-color:var(--accent,#4c6e48);color:var(--accent,#4c6e48)}
.vbtn[data-v="-1"].on{background:rgba(160,70,50,.08);border-color:rgba(160,70,50,.55);color:#9a4632}
.vote-fine{margin:4px 2px 0}
.altfilters{display:flex;margin:4px 0 10px}
.qchip{flex:0 0 auto;padding:7px 14px;font-size:13px}
.share-box{margin-top:18px;padding-top:14px;border-top:1px solid var(--line,rgba(0,0,0,.08))}
.share-box h3{margin:0 4px 6px;font-family:var(--serif);font-size:18px}
.share-box .small{margin:0 4px 10px;font-size:13px}
.share-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid var(--line,rgba(0,0,0,.06))}
.share-row .tx{flex:1;display:flex;flex-direction:column}.share-row small{opacity:.65}
.shared-wrap{padding:16px}
.adm-top{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.adm-top ol{margin:6px 0 0;padding-left:18px}.adm-top li{margin:3px 0}

/* v3.7.1: «Написать в поддержку» */
.sp-ta { width: 100%; min-height: 140px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--card); font-size: 16px; line-height: 1.4; resize: none; outline: none; -webkit-appearance: none; appearance: none; }
.sp-ta:focus { border-color: var(--accent); }
.sp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* v3.9 soft paywall */
.meal.locked, .wrow.locked, .dpage.locked .meals { opacity: 1; }
.meal.locked { background: var(--card, #fff); border: 1px dashed var(--line, rgba(0,0,0,.12)); min-height: 120px; }
.meal.locked .ttl, .wrow.locked .ct { color: var(--muted, #7a746b); font-weight: 500; }
.wstrip button.locked { opacity: .55; }
.seg button.locked { opacity: .65; }
.wday.locked .wdh .k { color: var(--muted, #7a746b); }

/* v3.10: спиннер появляется только если загрузка затянулась; вне Telegram его не видно вовсе */
.boot .spinner { opacity: 0; animation: spin .8s linear infinite, spinner-in .2s ease 1.2s forwards; }
@keyframes spinner-in { to { opacity: 1; } }
/* v3.10: экран вне Telegram */
.outside { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px; max-width: 360px; }
.outside-logo { width: 84px; height: 84px; border-radius: 22px; }
.outside h1 { font-family: var(--serif); font-size: 26px; margin: 4px 0 0; }
.outside p { margin: 0 0 8px; color: var(--hint); }
.outside .btn { width: 100%; text-decoration: none; display: flex; justify-content: center; }
.docs-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; font-size: 13px; }
.docs-links a, .fine a { color: var(--hint); text-decoration: underline; text-underline-offset: 2px; }
/* v3.10: «Пригласить друга» */
.inv-link { padding: 12px 14px; border-radius: 14px; background: var(--card2, rgba(0,0,0,.04)); font-size: 14px; word-break: break-all; user-select: all; -webkit-user-select: all; }
.inv-stats { display: flex; gap: 10px; margin: 14px 0 4px; }
.inv-stats > div { flex: 1; padding: 10px 12px; border-radius: 14px; background: var(--card2, rgba(0,0,0,.04)); display: flex; flex-direction: column; }
.inv-stats b { font-size: 20px; }
.inv-stats span { font-size: 13px; color: var(--hint); }
/* v3.10: админка — воронка */
.adm-fseg { display: flex; gap: 6px; margin: 4px 0 10px; }
.adm-fseg button { flex: 1; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line, rgba(0,0,0,.1)); background: transparent; color: inherit; font: inherit; font-size: 13px; }
.adm-fseg button.on { background: var(--accent-soft); border-color: transparent; font-weight: 700; }
.adm-fwrap { padding: 10px 12px; }
.adm-frow { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 6px 4px; border-radius: 8px; }
.adm-frow span { flex: 1; min-width: 0; }
.adm-frow span small { display: block; font-size: 11px; color: var(--accent); }
.adm-frow b { width: 44px; text-align: right; }
.adm-frow em { font-style: normal; color: var(--hint); width: 62px; text-align: right; }
.adm-fhead { color: var(--hint); font-size: 11px; }
.adm-fhead b { font-weight: 400; }
.adm-frow.drop { background: var(--accent-soft); }
.adm-ferr { font-size: 12px; margin: 4px 0 8px; }
.adm-ferr div { display: flex; gap: 8px; padding: 2px 0; }
.adm-ferr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hint); }
.adm-frow em.low { color: var(--hint); opacity: .55; }
.adm-frow small.lowtxt { color: var(--hint); }
.adm-fh { font-size: 14px; margin: 16px 4px 4px; }
.adm-floss { font-size: 13px; }
.adm-floss div { display: flex; gap: 8px; padding: 3px 4px; }
.adm-floss span { flex: 1; }

/* v3.10.2: карточка партнёра — главное крупно, остальное одной строкой */
.pt-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-big > div { background: var(--card2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.pt-big b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.pt-big span { font-size: 13px; color: var(--hint); }
.pt-cap { display: block; font-size: 12.5px; color: var(--hint); margin-bottom: 2px; }
.pt-trow { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; padding: 3px 0; }
.pt-trow span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pt-trow b { white-space: nowrap; }
.pt-sum { padding-top: 8px; border-top: 1px solid var(--line); }
.pt-trow.total b { font-size: 17px; }
.pt-trow.net { font-weight: 700; }
.pt-trow.net b { font-size: 18px; color: var(--accent); }
.pt-line { margin: 0; font-size: 13px; }
.pt-line.muted { color: var(--hint); }
.adm-buyer { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; }
.adm-buyer .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-buyer .tx small, .adm-buyer .am small { font-size: 12.5px; color: var(--hint); }
.adm-buyer .am { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.adm-pay { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adm-pay .l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adm-pay .r { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.adm-pay small { font-size: 12.5px; color: var(--hint); }
.adm-pay small.muted { opacity: .8; }
.adm-pay.ref .r b { text-decoration: line-through; color: var(--hint); }
.adm-payout small { display: block; font-size: 12px; color: var(--hint); }
.adm-payout .x.csv { width: auto; padding: 0 8px; font-size: 12px; }
.adm-seg[data-seg="per"] { flex-wrap: nowrap; gap: 6px; }
.adm-seg[data-seg="per"] button { flex: 1 1 auto; padding: 8px 6px; font-size: 14px; white-space: nowrap; }

/* v3.10.3 — удаление партнёра */
.pt-del { width: 100%; margin-top: 18px; }
.pt-warn { background: var(--danger-soft); color: var(--danger); font-weight: 700; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; }
.pt-deltoggle { display: block; margin: 4px auto 12px; }
.pt-deleted { display: grid; gap: 8px; margin-bottom: 12px; }
.pt-delrow { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card2); }
.pt-delrow .tx { flex: 1; min-width: 0; display: grid; }
.pt-delrow small { color: var(--hint); }
/* v3.10.5: сайт — вход через Telegram */
.outside .small { font-size: 14px; margin-top: -4px; }
.outside .login-err { color: var(--danger); font-weight: 600; font-size: 14px; }
.tg-login { min-height: 44px; display: flex; justify-content: center; margin: 4px 0; }
.tg-login iframe { max-width: 100%; }
.outside .btn-ghost { box-shadow: none; color: var(--accent-strong); background: transparent; min-height: 44px; }
/* v3.10.5: «Документы», «На экран Домой» */
a.li { color: inherit; text-decoration: none; }
.sheet-sub { margin: 16px 4px 8px; font-family: var(--serif); font-size: 17px; }
.home-hint { display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 0; padding: 10px 14px; border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--hint); font-size: 14px; text-align: left; }
.home-hint svg { width: 20px; height: 20px; flex-shrink: 0; }
.home-hint .chev { width: 16px; height: 16px; margin-left: auto; }
.howto { padding: 12px 14px; margin-top: 10px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.howto b { display: block; margin-bottom: 4px; }
.howto ol { margin: 0; padding-left: 20px; color: var(--text); font-size: 15px; line-height: 1.45; }
/* v3.10.5: подсказки поверх экранов (coach marks) */
.coach { position: fixed; inset: 0; z-index: 80; opacity: 0; transition: opacity .2s; }
.coach.in { opacity: 1; }
.coach-hole { position: fixed; border-radius: 20px; box-shadow: 0 0 0 9999px var(--scrim); pointer-events: none; transition: top .25s var(--ease), left .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
.coach-card { position: fixed; left: 16px; right: 16px; max-width: 320px; margin: 0 auto; padding: 12px 14px 10px; border-radius: 18px; background: var(--bg); color: var(--text); box-shadow: var(--shadow-up); }
.coach-n { font-size: 13px; color: var(--hint); font-weight: 600; }
.coach-card p { margin: 2px 0 0; font-size: 15px; line-height: 1.4; }
.coach-t { font-weight: 700; }
.coach-acts { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.outside #out-tg { color: var(--hint); font-weight: 600; }

/* v3.11: пакеты меню */
.pkg-open { width: 100%; margin: 0 0 14px; }
.pkg-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.pkg-card { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; background: var(--card); border: 0; border-radius: 20px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow); color: var(--text); }
.pkg-card .ph { width: 92px; height: 92px; flex: 0 0 92px; border-radius: 16px; }
.pkg-card .tx { min-width: 0; flex: 1; }
.pkg-card b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pkg-card small { display: block; margin-top: 5px; color: var(--hint); font-size: 13.5px; font-weight: 550; line-height: 1.4; }
.pkg-hero { margin: 0 18px 8px; border-radius: 22px; overflow: hidden; }
.pkg-hero .ph { width: 100%; height: 200px; border-radius: 22px; }
.pkg-meta { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 8px; }
.pkg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pkg-row .lb { font-weight: 650; font-size: 15px; }
.pkg-step { display: flex; align-items: center; gap: 4px; }
.pkg-step button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card2); color: var(--text); font-size: 22px; font-weight: 600; line-height: 1; }
.pkg-step b { min-width: 28px; text-align: center; font-size: 18px; }
.pkg-group { margin: 22px 0 8px; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.pkg-dish { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: var(--card); border: 0; border-radius: 18px; padding: 10px; margin: 0 0 10px; box-shadow: var(--shadow); color: var(--text); }
.pkg-dish .ph { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 14px; }
.pkg-dish .tx { min-width: 0; flex: 1; }
.pkg-dish b { display: block; font-size: 16px; font-weight: 700; }
.pkg-dish .muted { display: block; margin-top: 3px; font-size: 13px; }
.pkg-check { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 24px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--card); position: relative; }
.pkg-dish.on .pkg-check { background: var(--accent); border-color: var(--accent); }
.pkg-dish.on .pkg-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pkg-recipe { margin: -4px 0 14px; padding: 4px 6px 8px 14px; }
.pkg-recipe h4 { margin: 12px 0 6px; font-size: 14px; }
.pkg-recipe ol, .pkg-recipe ul { margin: 0; padding-left: 18px; }
.pkg-recipe li { margin: 0 0 6px; font-size: 14.5px; line-height: 1.45; }
.pkg-bar { position: sticky; bottom: 0; z-index: 5; margin: 18px -6px 0; padding: 12px 6px calc(16px + var(--sab)); background: linear-gradient(to bottom, transparent, var(--bg) 28%); }
.pkg-bar .btn { width: 100%; }
.pkg-plan { display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; }
.pkg-plan h3 { margin: 8px 0 4px; font-family: var(--serif); font-size: 22px; }
.pkg-plan ol { margin: 0; padding-left: 20px; }
.pkg-plan li { margin: 0 0 8px; font-size: 15.5px; line-height: 1.45; }
.pkg-preview { margin-top: 8px; padding: 16px; border-radius: 18px; background: var(--card2); }
.pkg-preview p { margin: 0 0 12px; }
.pkg-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.pkg-replace, .pkg-remove { background: none; border: 0; padding: 0; color: var(--accent-strong); font: inherit; font-weight: 650; font-size: 14px; }
.pkg-add { width: 100%; margin: 0 0 16px; }
.pkg-badge { display: inline-block; margin: 5px 8px 0 0; font-size: 12px; font-weight: 650; color: var(--olive); }
.pkg-badge-note { color: var(--hint); }
.login-bot { margin: 2px 0 0 !important; font-size: 14px; }
.login-bot a { color: var(--hint); text-decoration: none; font-weight: 600; }
.outside #out-alt[hidden] { display: none !important; }

.login-code { width: 100%; margin: 4px 0 2px; padding: 14px 16px; border-radius: 18px; background: var(--card2); text-align: center; }
.login-code b { display: block; font-size: 28px; letter-spacing: .12em; font-weight: 800; color: var(--text); }
.login-code span { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--hint); letter-spacing: 0; }
