/* Mini App «Замая Выручай × Меню от Замаи» — эталон владельца 2026-11-04 (content/brand/design): молочный фон, глубокий зелёный, золото листа только в логотипе, Manrope. */
:root {
  --school-ground: light-dark(#f3f6f2, #15231c);
  --school-card: light-dark(#fff, #1f3027);
  --school-ink: light-dark(#1b3027, #eff5ee);
  --school-muted: light-dark(#465c52, #becfc3);
  --school-action: light-dark(#20563e, #b3dfbf);
  --school-on-action: light-dark(#fff, #13291c);
  --school-line: light-dark(#788e80, #82988b);
  --school-error: light-dark(#8e2e25, #ffb6aa);
  color-scheme: light;
  --ground: #F7F2E9; --card: #FFFDF8; --line: #EDE5D6; --ink: #1E2B22; --muted: #6B7268; --soft: #4B564D;
  --sage: #2F5D3A; --sage-dark: #244A2E; --sage-soft: #EEF3E6; --sage-mid: #4E7A57; --sage-ink: #D8E6CF; --leaf: #A9CF8E;
  --sand: #E9D3B5; --peach: #F6D9C9; --gold: #D2A64A;
  --warm: #2F5D3A; --warm-soft: #FBF1EA; --warm-line: #F0D2BF; --warm-ink: #8A4B22; --placeholder: #EFE7D8;
  --accent-text: #2F5D3A; --on-accent: #FFFFFF; --field: #FFFFFF; --nav: #FFFDF8; --label: #34403A; --strike: #8A8F86; --knob: #FFFFFF;
  --photo-shade: rgba(20, 40, 28, 0.78); --hero-glow: rgba(169, 207, 142, 0.35); --bar-track: rgba(255, 255, 255, 0.22); --overlay: rgba(30, 43, 34, 0.35);
  --first-offer-shadow: 0 20px 70px #0005; --first-offer-backdrop: rgb(10 25 17 / 62%);
  --shadow: 0 6px 20px rgba(47, 61, 42, 0.08); --shadow-btn: 0 6px 16px rgba(47, 93, 58, 0.25); --shadow-hero: 0 10px 26px rgba(36, 74, 46, 0.25);
  --shadow-nav: 0 -4px 18px rgba(47, 61, 42, 0.06); --shadow-plus: 0 6px 16px rgba(47, 93, 58, 0.35);
  /* «Замая Выручай» (Obsidian 27): тёмно-зелёная шапка, жёлтые главные кнопки и сердце логотипа */
  --head: #1C4A2A; --head-2: #2B6539; --on-head: #FFFFFF; --on-head-soft: rgba(255, 255, 255, 0.78); --head-chip: rgba(255, 255, 255, 0.16);
  --cta: #F6C532; --cta-dark: #E4AF19; --cta-ink: #1F2A1C; --heart: #F6C532; --shadow-cta: 0 6px 16px rgba(196, 146, 18, 0.35); --scrim: rgba(0, 0, 0, 0.45);
  /* Цветные значки строк, как в макете IMG_8285: питание, вода, активность, сладкое, вес */
  --t-food: #E4F2DA; --t-food-ink: #3E8A3A; --t-water: #E0EFFA; --t-water-ink: #2B7BC0; --t-move: #FDE9DA; --t-move-ink: #E0661B;
  --t-sweet: #FBE3E3; --t-sweet-ink: #D04848; --t-weight: #FFF3D1; --t-weight-ink: #B7860B;
  /* новый облик 09.11.2026 (стекло, изумруд, подсолнух): brand-refresh, glass-design, design-8394 */
  --brand-edge: #b7c9a4;
  --brand-glow: rgba(246,197,50,.1);
  --brand-surface: linear-gradient(145deg,#fffef9,#f1f3e6);
  --brand-shine: rgba(255,255,255,.85);
  --glass: linear-gradient(135deg,rgba(255,255,248,.94),rgba(235,242,225,.87));
  --glass-edge: rgba(72,112,65,.24);
  --glass-highlight: rgba(255,255,255,.8);
  --glass-text: #244b32;
  --glass-shadow: 0 12px 30px rgba(18,50,25,.1);
  --c-052212-9: rgba(5,34,18,.09);
  --c-00190c-13: rgba(0,25,12,.13);
  --c-bdcc91: #bdcc91;
  --c-fff9e6: #fff9e6;
  --c-d8dfba: #d8dfba;
  --c-ffffff: #fff;
  --c-00190c-12: rgba(0,25,12,.12);
  --c-e3b82e: #e3b82e;
  --c-ffda4c: #ffda4c;
  --c-f6c532: #f6c532;
  --c-12371e: #12371e;
  --c-ffe889: #ffe889;
  --c-fff2af: #fff2af;
  --c-644c00-13: rgba(100,76,0,.13);
  --c-fff1ad: #fff1ad;
  --c-d3a516: #d3a516;
  --c-9eb435-15: rgba(158,180,53,.15);
  --c-a9be40-10: rgba(169,190,64,.1);
  --c-bad392-55: rgba(186,211,146,.55);
  --c-00140a-20: rgba(0,20,10,.2);
  --c-ffdc6a: #ffdc6a;
  --c-ffc32c: #ffc32c;
  --c-062c1b: #062c1b;
  --c-ffe798: #ffe798;
  --c-ffffe0-50: rgba(255,255,224,.5);
  --c-001408-12: rgba(0,20,8,.12);
  --c-bad5a3-32: rgba(186,213,163,.32);
  --c-000c08-25: rgba(0,12,8,.25);
  --c-cfde8a-25: rgba(207,222,138,.25);
  --c-72974a-17: rgba(114,151,74,.17);
  --c-695300: #695300;
  --c-7a9d3e-22: rgba(122,157,62,.22);
  --c-abbb33-14: rgba(171,187,51,.14);
  --c-ffe87f-20: rgba(255,232,127,.2);
  --c-edf4bc-65: rgba(237,244,188,.65);
  --c-d0e597-26: rgba(208,229,151,.26);
  --c-054632: #054632;
  --c-042e20: #042e20;
  --c-f0ffc5-60: rgba(240,255,197,.6);
  --c-000000-30: rgba(0,0,0,.3);
  --c-ffe28a: #ffe28a;
  --c-001e13-80: rgba(0,30,19,.8);
  --c-ffe18a: #ffe18a;
  --c-bec05c-50: rgba(190,192,92,.5);
  /* шапка экранов в новом облике прозрачная: в светлой теме текст и «←» тёмно-зелёные (аудит 09.11.2026) */ --bar-ink: var(--glass-text);
  /* «Звёзды и числа» (SPEC-027): ночное небо и золото */ --sky-1: #1d2547; --sky-2: #4a2a5e; --sky-star: #f6c532; --on-sky: #fff8e7; --on-sky-soft: rgba(255, 248, 231, 0.78); --sky-glow: rgba(246, 197, 50, 0.35); --sky-card: rgba(255, 248, 231, 0.06); --sky-line: rgba(246, 197, 50, 0.35);
}
/* Тёмная тема: глубокий изумруд вместо молока; зелёный текст светлеет, чтобы читаться на тёмном. */
:root[data-theme="dark"] {
  --school-ground: #15231c;
  --school-card: #1f3027;
  --school-ink: #eff5ee;
  --school-muted: #becfc3;
  --school-action: #b3dfbf;
  --school-on-action: #13291c;
  --school-line: #82988b;
  --school-error: #ffb6aa;
  color-scheme: dark;
  --ground: #002719; --card: #103c2b; --line: rgba(168,202,150,.2); --ink: #fffbee; --muted: #b6c7ad; --soft: #eeeedd;
  --sage: #3F7A4F; --sage-dark: #2F6140; --sage-soft: rgba(127,164,95,.15); --sage-mid: #4F8C5F; --sage-ink: #CFE3C6; --leaf: #A9CF8E;
  --sand: #3A3122; --peach: #3B2A24; --gold: #D9B25A;
  --warm: #3F7A4F; --warm-soft: #33261C; --warm-line: #5A4030; --warm-ink: #F0B88E; --placeholder: #1C3327;
  --accent-text: #fff5cf; --on-accent: #FFFFFF; --field: #0b3324; --nav: #123c2c; --label: #eeeedd; --strike: #8F9A90; --knob: #EEF0E6;
  --photo-shade: rgba(6, 18, 12, 0.85); --hero-glow: rgba(169, 207, 142, 0.18); --bar-track: rgba(255, 255, 255, 0.18); --overlay: rgba(0, 0, 0, 0.55);
  --first-offer-shadow: 0 20px 70px #0005; --first-offer-backdrop: rgb(10 25 17 / 62%);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.35); --shadow-btn: 0 6px 16px rgba(0, 0, 0, 0.35); --shadow-hero: 0 10px 26px rgba(0, 0, 0, 0.4);
  --shadow-nav: 0 -4px 18px rgba(0, 0, 0, 0.35); --shadow-plus: 0 6px 16px rgba(0, 0, 0, 0.45);
  --head: #052a1c; --head-2: #103e2b; --on-head: #FFFFFF; --on-head-soft: rgba(255, 255, 255, 0.72); --head-chip: rgba(255, 255, 255, 0.12);
  --cta: #E8BB34; --cta-dark: #D1A220; --cta-ink: #1A1D12; --heart: #ffce35; --shadow-cta: 0 6px 16px rgba(0, 0, 0, 0.4); --scrim: rgba(0, 0, 0, 0.5);
  --t-food: transparent; --t-food-ink: #fff4d3; --t-water: transparent; --t-water-ink: #fff4d3; --t-move: #3E2718; --t-move-ink: #F6A06A;
  --t-sweet: transparent; --t-sweet-ink: #ffcf3c; --t-weight: transparent; --t-weight-ink: #fff4d3;
  /* новый облик 09.11.2026 (стекло, изумруд, подсолнух): brand-refresh, glass-design, design-8394 */
  --brand-edge: #4c7650;
  --brand-glow: rgba(246,197,50,.09);
  --brand-surface: linear-gradient(145deg,#1b462c,#0e2e1c 72%,#1d4126);
  --brand-shine: rgba(235,247,214,.12);
  --glass: linear-gradient(125deg,rgba(115,146,80,.34),rgba(10,64,45,.6) 45%,rgba(12,60,43,.88));
  --glass-edge: rgba(205,222,171,.42);
  --glass-highlight: rgba(247,251,206,.35);
  --glass-text: #fff5d5;
  --glass-shadow: 0 14px 35px rgba(0,15,8,.2);
  --c-052212-9: rgba(5,34,18,.09);
  --c-00190c-13: rgba(0,25,12,.13);
  --c-bdcc91: #bdcc91;
  --c-fff9e6: #fff9e6;
  --c-d8dfba: #d8dfba;
  --c-ffffff: #fff;
  --c-00190c-12: rgba(0,25,12,.12);
  --c-e3b82e: #e3b82e;
  --c-ffda4c: #ffda4c;
  --c-f6c532: #f6c532;
  --c-12371e: #12371e;
  --c-ffe889: #ffe889;
  --c-fff2af: #fff2af;
  --c-644c00-13: rgba(100,76,0,.13);
  --c-fff1ad: #fff1ad;
  --c-d3a516: #d3a516;
  --c-9eb435-15: rgba(158,180,53,.15);
  --c-a9be40-10: rgba(169,190,64,.1);
  --c-bad392-55: rgba(186,211,146,.55);
  --c-00140a-20: rgba(0,20,10,.2);
  --c-ffdc6a: #ffdc6a;
  --c-ffc32c: #ffc32c;
  --c-062c1b: #062c1b;
  --c-ffe798: #ffe798;
  --c-ffffe0-50: rgba(255,255,224,.5);
  --c-001408-12: rgba(0,20,8,.12);
  --c-bad5a3-32: rgba(186,213,163,.32);
  --c-000c08-25: rgba(0,12,8,.25);
  --c-cfde8a-25: rgba(207,222,138,.25);
  --c-72974a-17: rgba(114,151,74,.17);
  --c-695300: #695300;
  --c-7a9d3e-22: rgba(122,157,62,.22);
  --c-abbb33-14: rgba(171,187,51,.14);
  --c-ffe87f-20: rgba(255,232,127,.2);
  --c-edf4bc-65: rgba(237,244,188,.65);
  --c-d0e597-26: rgba(208,229,151,.26);
  --c-054632: #054632;
  --c-042e20: #042e20;
  --c-f0ffc5-60: rgba(240,255,197,.6);
  --c-000000-30: rgba(0,0,0,.3);
  --c-ffe28a: #ffe28a;
  --c-001e13-80: rgba(0,30,19,.8);
  --c-ffe18a: #ffe18a;
  --c-bec05c-50: rgba(190,192,92,.5);
  --bar-ink: var(--on-head);
  --sky-1: #141a33; --sky-2: #3a2049; --sky-star: #f6c532; --on-sky: #fff8e7; --on-sky-soft: rgba(255, 248, 231, 0.72); --sky-glow: rgba(246, 197, 50, 0.28); --sky-card: rgba(255, 248, 231, 0.05); --sky-line: rgba(246, 197, 50, 0.3);
}
@supports not (color: light-dark(white, black)) {
  #ponimay, html.ponimay-page {
    --school-ground: var(--ground);
    --school-card: var(--card);
    --school-ink: var(--ink);
    --school-muted: var(--soft);
    --school-action: var(--accent-text);
    --school-on-action: var(--ground);
    --school-line: var(--muted);
    --school-error: var(--warm-ink);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: Manrope, system-ui, sans-serif; }
body { min-height: 100vh; }
.screen { display: none; flex-direction: column; gap: 16px; padding: 20px 16px 110px; max-width: 480px; margin: 0 auto; }
.screen.on { display: flex; }
h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.3px; }
p { margin: 0; line-height: 1.45; }
.muted { color: var(--muted); font-size: 13px; }
.lead { color: var(--soft); font-size: 15px; }

/* шапка: логотип платформы + продукт */
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand b { display: block; font-size: 17px; font-weight: 800; color: var(--accent-text); line-height: 1.1; }
.brand span { display: block; font-size: 11px; color: var(--muted); }
.brand-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 8px 0 4px; }
.brand-hero svg { width: 56px; height: 56px; }
.brand-hero b { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.05; }
.brand-hero .tagline { color: var(--accent-text); font-weight: 600; font-size: 13px; letter-spacing: 0.4px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.soft { background: var(--sage-soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.warn { background: var(--warm-soft); border: 1px solid var(--warm-line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.big { font-size: 52px; font-weight: 800; color: var(--accent-text); letter-spacing: -1px; }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--sage-mid), var(--sage-dark)); color: var(--on-accent);
  border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-hero); }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 70%); }
.hero .muted { color: var(--sage-ink); }
.hero .num { font-size: 42px; font-weight: 800; letter-spacing: -1px; }
.bar { height: 8px; border-radius: 4px; background: var(--bar-track); overflow: hidden; }
.bar > div { height: 8px; background: var(--leaf); border-radius: 4px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.btn { display: block; width: 100%; text-align: center; background: var(--sage); color: var(--on-accent); border: 0; font: inherit; font-weight: 700;
  font-size: 16px; padding: 16px; border-radius: 18px; min-height: 54px; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-btn); }
.btn:active { background: var(--sage-dark); }
.btn.pay { background: var(--sage); font-weight: 800; font-size: 17px; }
.btn.ghost { background: var(--card); color: var(--accent-text); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: none; color: var(--warm-ink); box-shadow: none; font-weight: 600; }
.meal { cursor: pointer; font: inherit; color: inherit; text-align: left; width: 100%; }
.btn.small { width: auto; font-size: 14px; padding: 0 16px; min-height: 44px; border-radius: 12px; box-shadow: none; }
.chip { font: inherit; font-size: 13px; color: var(--accent-text); background: var(--sage-soft); border: 0; border-radius: 12px; padding: 10px 12px; min-height: 44px; cursor: pointer; }
label { font-size: 14px; color: var(--label); }
input, select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-height: 46px; width: 100%; background: var(--field); color: var(--ink); }
input:focus, select:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.inline { display: flex; gap: 8px; }
.inline input { flex-grow: 1; }
.error { color: var(--warm-ink); font-size: 14px; }

/* вход на сайте через бота (SPEC-019): в том же облике, что заставка — тёмная зелень, логотип, Замая, стеклянная карточка */
.splash.login-splash { justify-content: center; gap: 18px; }
.login-splash > .zlogo { width: 150px; }
.login-hello { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 380px; text-align: left; }
.login-hello img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 15%;
  border: 2px solid var(--heart); box-shadow: var(--shadow); }
.login-hello .bubble { flex: 1; padding: 12px 14px; border-radius: 18px 18px 18px 4px; background: var(--glass); border: 1px solid var(--glass-edge);
  color: var(--on-head); font-size: 14px; line-height: 1.4; }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; text-align: left; color: var(--glass-text); }
.login-card h1 { font-size: 26px; color: var(--on-head); }
.login-pick, .login-wait { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.login-pick .btn, .login-wait .btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-pick .note { color: var(--on-head-soft); font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.login-code { font-size: 30px; line-height: 1.2; letter-spacing: 10px; text-align: center; color: var(--ink); background: var(--field); border-color: var(--line); font-variant-numeric: tabular-nums; min-height: 56px; }
.login-code::placeholder { color: var(--muted); opacity: 0.5; }
.login-phone { font-size: 22px; text-align: center; color: var(--ink); background: var(--field); border-color: var(--line); min-height: 52px; } /* SPEC-029 */
.login-qr { width: 200px; height: 200px; margin: 0 auto; border-radius: 16px; box-shadow: var(--shadow); }
.login-status:empty { display: none; }
.login-cancel { color: var(--on-head-soft); }
@media (pointer: coarse) { .login-qr { display: none; } }
.linkbtn { background: none; border: 0; padding: 12px 8px; min-height: 44px; font: inherit; font-size: 14px; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
/* «Доступ закрыт» (PLAN-021): тот же облик, что вход на сайте */
.blocked-card { text-align: center; }
.blocked-card .btn { width: 100%; }
/* /blocked */

/* приём пищи: иконка в плашке + название + ккал */
.meal { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
.meal .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--peach); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.meal .ico svg { width: 22px; height: 22px; stroke: var(--sage); }
.meal .txt { flex-grow: 1; min-width: 0; }
.meal > b { white-space: nowrap; }
.meal .txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.msgs { display: flex; flex-direction: column; gap: 10px; }
.me, .her { max-width: 86%; border-radius: 18px; padding: 10px 14px; font-size: 15px; line-height: 1.45; }
.me { align-self: flex-end; background: var(--sage); color: var(--on-accent); border-bottom-right-radius: 6px; }
.her { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.her.safe { background: var(--warm-soft); border-color: var(--warm-line); }
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: var(--accent-text); }
.price s { color: var(--strike); }
.check { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.check i { width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--on-accent); font-style: normal; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.photo-box { height: 220px; border-radius: 24px; background: linear-gradient(135deg, var(--sand), var(--peach)); display: flex; align-items: center; justify-content: center;
  color: var(--soft); font-size: 14px; overflow: hidden; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }

/* нижняя панель «Замая Выручай»: 6 разделов как в макете (IMG_8285), без камеры — фото крупной кнопкой на Главной */
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end;
  background: var(--nav); border-top: 1px solid var(--line); padding: 6px 2px calc(8px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-nav); }
nav.tabs button { font: inherit; font-size: 10.5px; color: var(--muted); background: none; border: 0; min-height: 52px; cursor: pointer; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 0; }
nav.tabs svg { width: 23px; height: 23px; stroke: currentColor; }
/* столбцов столько, сколько видно кнопок: «Диабет» и «Мама» появляются, если сервер открыл раздел */
nav.tabs.seven button { font-size: 9.5px; }
/* SPEC-013: семь подписей — крупнее там, где помещаются (замер 08.11.2026: «Здоровье», «Прогресс» — самые длинные) */
@media (min-width: 380px) { nav.tabs.seven button { font-size: 10.5px; } }
@media (min-width: 420px) { nav.tabs.seven button { font-size: 11px; } }
/* «Еда»: переключатель «Меню недели · Рецепты» над экраном (kitchen.js foodSwitch) */
.food-switch { margin-bottom: 4px; }
.food-switch button { font-weight: 700; }
.t2d-body { display: flex; flex-direction: column; gap: 12px; }
.t2d-link { font: inherit; color: inherit; text-align: left; cursor: pointer; }
/* «Я мама» (mom.js): пункты чек-листа — крупные кнопки в столбик, отмеченные — зелёные */
.mom-h { font-size: 15px; margin: 8px 2px 0; color: var(--accent-text); }
.card.mom-tool { flex-direction: row; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; }
.mom-tool > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.mom-ico { font-style: normal; font-size: 24px; width: 40px; height: 40px; border-radius: 12px; background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center; flex: none; }
.mom-items { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mom-items .chip { text-align: left; white-space: normal; min-height: 44px; }
.mom-items .chip[aria-pressed="true"] { background: var(--sage); color: var(--on-accent); }
.linkish { font: inherit; font-size: 14px; color: var(--accent-text); background: none; border: 0; padding: 4px 0; text-align: left; text-decoration: underline; cursor: pointer; }
.days .chip[aria-selected="true"] { background: var(--head); color: var(--on-head); font-weight: 700; }
nav.tabs button[aria-current="page"] { color: var(--accent-text); font-weight: 800; background: var(--sage-soft); }
/* приветствие Замаи, кольцо нормы, помощник, профиль, переключатели */
.hero-photo { position: relative; min-height: 340px; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--sage-mid), var(--sage-dark));
  display: flex; align-items: flex-end; box-shadow: var(--shadow-hero); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--photo-shade) 100%); }
.hero-photo-text { position: relative; z-index: 1; padding: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--on-accent); }
.hero-photo-text b { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -0.5px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--sage-soft); }
.avatar.logo { display: flex; align-items: center; justify-content: center; }
.avatar.logo svg { width: 30px; height: 30px; }
.avatar.letter { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--accent-text); overflow: hidden; }
.avatar.letter img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vera-says { flex-direction: row; gap: 12px; align-items: flex-start; }
.vera-says p { font-size: 14px; color: var(--soft); margin: 4px 0; }
.day { flex-direction: row; align-items: center; gap: 16px; }
.ring-box { position: relative; width: 124px; height: 124px; flex-shrink: 0; }
.ring-box svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track, .ring-fill { fill: none; stroke-width: 11; }
.ring-track { stroke: var(--sage-soft); }
.ring-fill { stroke: var(--sage); stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-text b { font-size: 28px; font-weight: 800; color: var(--accent-text); line-height: 1; }
.ring-text span { font-size: 11px; color: var(--muted); }
.day-macros { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.day-macros div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.btn-ico { width: 20px; height: 20px; stroke: var(--on-accent); vertical-align: -4px; margin-right: 8px; }
.helper { flex-direction: row; align-items: center; gap: 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.helper > span { display: flex; flex-direction: column; gap: 2px; }
.profile-head { flex-direction: row; align-items: center; gap: 14px; }
.profile-head > div { display: flex; flex-direction: column; gap: 2px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--sage-soft); border-radius: 14px; padding: 4px; }
.seg button { font: inherit; font-size: 13px; border: 0; background: none; color: var(--soft); border-radius: 10px; min-height: 40px; cursor: pointer; }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: var(--card); color: var(--accent-text); font-weight: 700; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .ring-fill { transition: none; } }

/* меню, рецепт, «Готовим вместе» */
.row-link { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.row-link > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.chip.back { align-self: flex-start; background: var(--head); color: var(--on-head); font-weight: 700; border-radius: 14px; padding: 10px 14px; }
h2 { margin: 6px 0 0; font-size: 19px; font-weight: 800; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days .chip { flex-shrink: 0; min-width: 58px; text-transform: capitalize; }
.days .chip.today { box-shadow: inset 0 0 0 1.5px var(--accent-text); }
.slot { flex-direction: row; align-items: center; gap: 10px; padding: 10px; }
.dish { display: flex; align-items: center; gap: 12px; flex-grow: 1; min-width: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.dish img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--placeholder); }
.dish-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recipe-card { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 8px 8px 12px; box-shadow: var(--shadow); }
.recipe-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--placeholder); }
.recipe-card b { font-size: 14px; line-height: 1.25; }
.recipe-cover img, .cook-media img, img.wide { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; background: var(--placeholder); }
video.reel { width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; object-fit: cover; border-radius: 24px; background: var(--placeholder); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.grid4 .soft { padding: 10px 8px; align-items: center; text-align: center; }
.cook-step { display: flex; flex-direction: column; gap: 14px; }
#cook-h { font-size: 22px; line-height: 1.3; }
.timer { flex-direction: row; align-items: center; justify-content: space-between; }
.timer b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.btn[disabled].ghost { opacity: 0.4; }

/* анкета: шаги, карточки-варианты, −/+, переключатели, чипы, «Считаем…» */
.wz, .wz-welcome { display: flex; flex-direction: column; gap: 16px; }
.dots { display: flex; gap: 6px; }
.dots i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.dots i.on { background: var(--sage); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.two { display: grid; grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 48px 16px 16px; min-height: 64px;
  box-shadow: var(--shadow); transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.opt b { font-size: 16px; }
.opt[aria-pressed="true"] { border-color: var(--accent-text); background: var(--sage-soft); }
.opt[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px;
  border-radius: 50%; background: var(--sage); color: var(--on-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.opt:active { transform: scale(0.98); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 0; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--sage-soft); color: var(--accent-text); font: inherit; font-size: 26px; font-weight: 700; cursor: pointer; }
.num-box { display: flex; align-items: baseline; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px 16px; box-shadow: var(--shadow); }
.num-box input { width: 110px; border: 0; padding: 0; min-height: 0; text-align: center; font-size: 40px; font-weight: 800; background: transparent; }
.num-box span { color: var(--muted); font-size: 16px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.switch:last-child { border-bottom: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; min-height: 0; padding: 0; border-radius: 14px; border: 0;
  background: var(--line); position: relative; flex-shrink: 0; cursor: pointer; transition: background 0.2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--knob); transition: left 0.2s; }
.switch input:checked { background: var(--sage); }
.switch input:checked::after { left: 23px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip[aria-pressed="true"] { background: var(--sage); color: var(--on-accent); }
.wz-body { display: flex; flex-direction: column; gap: 12px; }
.wz-body.enter { animation: wz-in 0.25s ease-out; }
@keyframes wz-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.wz-calc { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 40px; text-align: center; }
.ring { width: 120px; height: 120px; border-radius: 50%; border: 8px solid var(--sage-soft); border-top-color: var(--sage); display: flex;
  align-items: center; justify-content: center; animation: spin 1.1s linear infinite; }
.ring svg { width: 48px; height: 48px; animation: spin 1.1s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.calc-list { display: flex; flex-direction: column; gap: 10px; }
.calc-list .check { opacity: 0; animation: fade 0.3s forwards; }
.calc-list .check:nth-child(2) { animation-delay: 0.4s; }
.calc-list .check:nth-child(3) { animation-delay: 0.8s; }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wz-body.enter, .ring, .ring svg { animation: none; } .calc-list .check { animation: none; opacity: 1; } .opt { transition: none; } }

/* состояния: скелет загрузки, «печатает», плашка «нет связи», занятая кнопка */
.skel { height: 68px; box-shadow: none; background: linear-gradient(90deg, var(--card) 0%, var(--placeholder) 50%, var(--card) 100%);
  background-size: 200% 100%; animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.typing { color: var(--muted); font-style: italic; }
.netbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: var(--warm-soft); border-bottom: 1px solid var(--warm-line); color: var(--warm-ink); font-size: 14px; }
.btn[disabled], .chip[disabled] { opacity: 0.6; cursor: progress; }
.hidden { display: none !important; }

/* Согласие на обработку данных — на приветствии анкеты */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; margin: 4px 2px 12px; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--accent-text); }
.consent a { color: var(--accent-text); text-decoration: underline; }
#wz-start[aria-disabled="true"] { opacity: 0.55; }
/* SPEC-023: галочка согласия и «Создать свой план» прилипают к низу экрана — кнопку видно без прокрутки на любом телефоне */
.start-bar { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--ground); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.start-bar .consent { margin: 0 2px; }
.start-bar .error:empty { display: none; }
.consent.need { border-radius: 14px; outline: 2px solid var(--warm-ink); outline-offset: 4px; animation: z-shake 0.4s; }
@keyframes z-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .consent.need { animation: none; } }
/* фото Замаи на экране согласия — ниже, чтобы список «Помогу тебе» и кнопка помещались на маленьком экране */
#wz-hello .hello img { aspect-ratio: auto; height: min(36vh, 300px); object-position: center 30%; }

/* ---------- «Замая Выручай» (Obsidian 27, эталон IMG_8285): логотип, шапки, жёлтые кнопки, заставка, Главная, Клуб */
/* Логотип — вертикальный, без наклона (SPEC-013 §4): шапочка, «Замая», «Выручай», сердце и черта внутри композиции.
   Контуры букв Caveat — в спрайте index.html (#lv-*), собирает content/brand/make_logo_vertical.py. Буквы — currentColor. */
.zlogo { display: block; width: 210px; height: auto; color: var(--ink); overflow: visible; }
.zlogo .heart, .zlogo .under { color: var(--heart); fill: none; stroke: currentColor; }
.zlogo .w1, .zlogo .w2 { fill: currentColor; }
.zlogo .heart { transform-box: fill-box; transform-origin: center; }
.zlogo.light { color: var(--on-head); }
.zlogo.small { width: 104px; }
.tagline { font-weight: 700; letter-spacing: 0.2px; }

.topbar { margin: -20px -16px 2px; padding: calc(14px + env(safe-area-inset-top)) 16px 16px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--head-2), var(--head)); color: var(--on-head); border-radius: 0 0 24px 24px; box-shadow: var(--shadow-hero); }
.topbar h1 { flex: 1; min-width: 0; color: var(--on-head); font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.topbar .tb-btn { width: 42px; height: 42px; flex: none; border: 0; border-radius: 14px; background: var(--head-chip); color: var(--on-head);
  font: inherit; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.topbar .tb-btn svg { width: 22px; height: 22px; stroke: currentColor; }
.topbar .tb-ico { width: 24px; height: 24px; flex: none; stroke: var(--on-head); }
.topbar.home { justify-content: space-between; padding-bottom: 18px; }

.btn.cta { background: var(--cta); color: var(--cta-ink); box-shadow: var(--shadow-cta); font-weight: 800; }
.btn.cta:active { background: var(--cta-dark); }
.btn.cta .btn-ico { stroke: var(--cta-ink); }

/* заставка и знакомство */
.splash { margin: -20px -16px 0; min-height: 100vh; padding: calc(40px + env(safe-area-inset-top)) 24px 32px; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; gap: 22px; text-align: center; color: var(--on-head);
  background: radial-gradient(120% 70% at 50% 0%, var(--head-2), var(--head) 70%); }
.splash .dish { width: 100%; max-width: 360px; aspect-ratio: 785 / 495; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-hero); }
.splash .tagline { font-size: 21px; color: var(--on-head); }
/* приветственное видео — первый экран: вертикальное 9:16, играет без звука (субтитры вшиты), «Включить звук» — с начала */
.wv { position: relative; width: min(100%, calc(56vh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-hero); background: var(--head-2); }
.wv-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.wv-bar { position: absolute; left: 14px; right: 14px; top: 12px; height: 3px; border-radius: 3px; background: var(--head-chip); overflow: hidden; }
.wv-bar i { display: block; height: 100%; width: 0; background: var(--on-head); transition: width 0.25s linear; }
.wv-sound { position: absolute; top: 24px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 10px;
  border: 0; border-radius: 999px; background: var(--scrim); color: var(--on-head); font: 700 13px/1 Manrope, system-ui, sans-serif;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; cursor: pointer; }
.wv-sound svg { width: 18px; height: 18px; fill: var(--on-head); }
.wv-sound .wv-wave { fill: none; stroke: var(--on-head); stroke-width: 1.8; stroke-linecap: round; opacity: 0.45; }
.wv.sound .wv-sound .wv-wave { opacity: 1; }
.wv.ended .wv-sound { top: auto; bottom: 16px; right: 50%; transform: translateX(50%); padding: 12px 18px; font-size: 15px; background: var(--cta); color: var(--cta-ink); }
.wv.ended .wv-sound svg, .wv.ended .wv-sound .wv-wave { fill: var(--cta-ink); stroke: var(--cta-ink); }
.offer-headline { margin: 4px 0 0; font-size: 21px; line-height: 1.25; }
.offer-benefits { display: flex; flex-direction: column; gap: 12px; }
.offer-benefits .check { align-items: flex-start; }
.offer-benefits .check b { display: block; font-size: 15px; }
.offer-benefits .check small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.pay-price { display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 2px; }
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.pay-opt small { font-weight: 500; opacity: 0.8; }
.splash-go { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.splash .note { color: var(--on-head-soft); font-size: 13px; }
.splash .btn { max-width: 360px; }
.hello { position: relative; border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hello img { display: block; width: 100%; aspect-ratio: 555 / 520; object-fit: cover; object-position: center 0%; }
.hello .bubble { position: relative; display: block; margin: -46px 16px 16px; text-align: center; background: var(--card); color: var(--accent-text); border-radius: 22px;
  padding: 10px 14px; font-family: Caveat, cursive; font-weight: 700; font-size: 31px; line-height: 0.95; box-shadow: var(--shadow); transform: rotate(-3deg); }
.hello .bubble svg { width: 20px; height: 18px; fill: none; stroke: var(--heart); stroke-width: 2.6; vertical-align: -2px; }
.helps { display: flex; flex-direction: column; gap: 8px; }
.helps > b { font-size: 18px; }

/* Главная */
.greet { flex-direction: row; align-items: center; gap: 14px; }
.greet-ava { width: 70px; height: 70px; border-radius: 50%; flex: none; border: 3px solid var(--sage-soft); background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: Caveat, cursive; font-weight: 700; font-size: 38px; line-height: 1; color: var(--accent-text); }
.greet-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.greet-ava svg { width: 30px; height: 27px; fill: none; stroke: var(--heart); stroke-width: 2.4; }
.greet .hi { display: block; font-family: Caveat, cursive; font-weight: 700; font-size: 30px; line-height: 0.95; color: var(--accent-text); }
.greet .hi svg { width: 18px; height: 16px; fill: none; stroke: var(--heart); stroke-width: 2.6; vertical-align: 0; display: inline-block; }
/* три плитки как в макете (экран 5): значок сверху, подпись и цифра под ним */
.stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; font: inherit; color: inherit; text-align: center; cursor: pointer; }
.stat .mini-ring { width: 44px; height: 44px; flex: none; }
.stat .mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.stat .mini-ring circle { fill: none; stroke-width: 6; }
.stat .ico-drop, .stat .ico-weight, .stat .ico-target, .stat .ico-left { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.stat .ico-drop { background: var(--t-water); } .stat .ico-drop svg { stroke: var(--t-water-ink); }
.stat .ico-weight { background: var(--t-weight); } .stat .ico-weight svg { stroke: var(--t-weight-ink); }
.stat .ico-target { background: var(--t-sweet); } .stat .ico-target svg { stroke: var(--t-sweet-ink); }
.stat .ico-left { background: var(--t-food); } .stat .ico-left svg { stroke: var(--t-food-ink); }
.stat-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-tiles.two .stat { flex-direction: row; justify-content: center; text-align: left; gap: 10px; }
.stat svg { width: 24px; height: 24px; }
.stat .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat .txt b { font-size: 14px; }
.stat .txt span { font-size: 12px; color: var(--muted); line-height: 1.25; }
.sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sec { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 2px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; font-weight: 700; line-height: 1.15; box-shadow: var(--shadow); }
.sec i { width: 44px; height: 44px; border-radius: 14px; background: var(--sage-soft); display: flex; align-items: center; justify-content: center; }
.sec svg { width: 24px; height: 24px; stroke: var(--accent-text); }
.plan-card { flex-direction: row; align-items: center; gap: 12px; padding: 10px; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.plan-card img { width: 88px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; background: var(--placeholder); }
.plan-card .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-card .go { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--sage); color: var(--on-accent); display: flex; align-items: center;
  justify-content: center; font-weight: 800; }

/* Клуб */
.club-hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; box-shadow: var(--shadow-hero); }
.club-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.club-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--photo-shade)); }
.club-hero .zlogo { position: relative; z-index: 1; margin: 0 0 16px 22px; }
.club-hero .crown { position: absolute; z-index: 1; top: 14px; left: 16px; width: 42px; height: 42px; border-radius: 12px; background: var(--cta);
  display: flex; align-items: center; justify-content: center; }
.club-hero .crown svg { width: 24px; height: 24px; stroke: var(--cta-ink); }
.nowrap { white-space: nowrap; }
/* Раздел под замком (макет: экраны 6 и 10) — пример, как выглядит раздел в клубе */
.locked { position: relative; }
.lock-badge { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: var(--cta); color: var(--cta-ink); font-size: 12px; font-weight: 800; }
.lock-badge svg { width: 14px; height: 14px; stroke: var(--cta-ink); }
.lock-rows { display: flex; flex-direction: column; opacity: 0.72; }
.lock-dim { opacity: 0.55; }
.lock-kcal { font-size: 13px; white-space: nowrap; }

/* ---------- Анимация первого экрана, вариант Б «Рукописный» (docs/superpowers/specs/2026-11-05-splash-animation-design.md)
   Всем, один раз за запуск (club/web/motion.js). Двигаются только opacity, transform и clip-path — без перерасчёта вёрстки.
   .play — идёт анимация; .done — касание: сразу финальный кадр. */
.play .zlogo .hat { animation: z-fade 0.4s both; }
.play .zlogo .w1 { animation: z-write 0.8s 0.2s steps(14) both; }
.play .zlogo .w2 { animation: z-write 0.9s 0.9s steps(16) both; }
.play .zlogo .under { animation: z-write 0.5s 1.6s ease-out both; }
.play .zlogo .heart { animation: z-pop 0.5s 1.8s cubic-bezier(0.3, 1.8, 0.5, 1) both; }
.splash.play .dish { animation: z-spin 0.9s 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.splash.play .wv { animation: z-up 0.6s 0.5s ease-out both; }
.splash.play .tagline, .splash.play .note { animation: z-fade 0.4s 1.9s both; }
.splash.play .btn { animation: z-up 0.45s 2.1s ease-out both; }
.splash.leave { animation: z-out 0.22s ease-in both; }
#boot.play #boot-text { animation: z-fade 0.3s 0.8s both; }
#wz-hello.play .hello { animation: z-fade 0.35s both; }
#wz-hello.play .bubble { animation: z-pop 0.35s 0.2s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
#wz-hello.play .helps > * { animation: z-up 0.35s both; }
#wz-hello.play .helps > :nth-child(2) { animation-delay: 0.35s; }
#wz-hello.play .helps > :nth-child(3) { animation-delay: 0.47s; }
#wz-hello.play .helps > :nth-child(4) { animation-delay: 0.59s; }
#wz-hello.play .helps > :nth-child(5) { animation-delay: 0.71s; }
#wz-hello.play .helps > :nth-child(6) { animation-delay: 0.83s; }
.play.done, .play.done *, .play.done ::after { animation: none !important; }
@keyframes z-fade { from { opacity: 0; } }
@keyframes z-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes z-pop { from { opacity: 0; transform: scale(0); } }
@keyframes z-spin { from { opacity: 0; transform: rotate(-120deg) scale(0.6); } }
@keyframes z-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes z-out { to { opacity: 0; transform: scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .play, .play *, .play ::after, .splash.leave { animation: none !important; } }
/* Экран загрузки — как заставка: тёмно-зелёный во весь экран, светлый логотип по центру (вариант Б пишется на нём) */
#boot.on { position: fixed; inset: 0; z-index: 5; max-width: none; margin: 0; justify-content: center; align-items: center; background: var(--head); padding: 24px 24px 18vh; }
#boot .zlogo { width: 240px; }
#boot #boot-text { color: var(--on-head-soft); }
/* ИИ-нутрициолог Замая: у каждого ответа метка «Ответ ИИ», предложения — карточкой с «Применить» */
.ai-tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; color: var(--accent-text); margin-bottom: 2px; }
.ai-proposal, .ai-consent { align-self: stretch; gap: 8px; }
#chat-prefs:empty { display: none; }
.prog { gap: 8px; }
.prog .row { display: flex; justify-content: space-between; gap: 10px; }

/* «Малыш растёт» и «Вопросы педиатру» (club/web/mom.js) */
.mom-event { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.mom-event > i { font-style: normal; font-size: 22px; text-align: center; }
.mom-event > span { display: flex; flex-direction: column; }
.mom-event.done b { color: var(--accent-text); }
.mom-event input[type=date] { max-width: 150px; font: inherit; font-size: 14px; }
.mom-measure { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.mom-measure input { min-width: 0; font: inherit; }
.mom-pre { white-space: pre-wrap; font: inherit; font-size: 14px; margin: 0; }

/* Вкладка «Клуб» — гостиная клуба (club/web/app.js, SPEC-006) */
.club-body { display: flex; flex-direction: column; gap: 14px; }
.club-post { gap: 10px; }
.club-post-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.club-tag { background: var(--sage-soft); color: var(--accent-text); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
.club-post-text { margin: 0; line-height: 1.5; }
.club-post-text.locked { -webkit-mask-image: linear-gradient(180deg, black 55%, transparent); mask-image: linear-gradient(180deg, black 55%, transparent); }
.club-lock { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.club-poll { display: flex; flex-direction: column; gap: 6px; }
.club-poll .chip { pointer-events: none; }
.club-chat { gap: 8px; }
.club-chat .club-link { box-shadow: none; border: 1px solid var(--line); margin: 0; }
.club-quiet { font-size: 13px; color: var(--muted); line-height: 1.4; }
.club-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.club-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; text-align: center; }
.club-day i { font-style: normal; font-size: 20px; }
.club-day small { font-size: 10px; line-height: 1.15; color: var(--muted); }
.club-day.today { background: var(--sage-soft); }
.club-day.today small, .club-day.today span { color: var(--accent-text); font-weight: 600; }
.club-group { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.club-price { align-items: stretch; gap: 8px; }
.club-quick { display: grid; grid-template-columns: 1fr; gap: 8px; }

/* «Что приготовить из того, что есть» (club/web/pantry.js, SPEC-007) */
.pantry-row { display: grid; grid-template-columns: 1fr 64px auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.pantry-row > span { display: flex; flex-direction: column; min-width: 0; }
.pantry-row.off b { text-decoration: line-through; color: var(--muted); }
.pantry-count { min-width: 0; font: inherit; text-align: center; }
.pantry-result { gap: 6px; }
.pantry-exp { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.pantry-date { font: inherit; font-size: 14px; max-width: 160px; }

/* «Как красиво накрыть стол» (club/web/serving.js) */
.serving-card { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.serving-cover, .serving-photo, .serving-video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.serving-step { gap: 10px; }
.serving-text { margin: 0; line-height: 1.5; font-size: 16px; }
.serving-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
/* «Гости на пороге» · бюджет на продукты (ползунок 500–5 000 ₽) */
.budget { display: flex; flex-direction: column; gap: 10px; }
.budget-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.budget-head b { font-size: 18px; color: var(--accent-text); }
.budget-range { width: 100%; min-height: 44px; accent-color: var(--sage); }
/* SPEC-009 · таблицы пропорций в уроках «Тесто» и «Шашлык» */
.lesson-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lesson-table th, .lesson-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lesson-table th { color: var(--accent-text); font-weight: 700; }
/* SPEC-012 · вкладка «Здоровье» по образцу Apple Health */
.health-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.health-h { font-size: 17px; margin: 14px 2px 4px; color: var(--accent-text); }
.health-head .health-h { margin-top: 4px; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.health-card { display: flex; flex-direction: column; gap: 4px; text-align: left; min-height: 96px; }
.health-value { font-size: 20px; color: var(--accent-text); }
.health-soon { opacity: 0.7; }
.health-source { gap: 4px; }
.health-pin { display: flex; align-items: center; gap: 8px; }
.health-pin .switch { flex: 1; }
.health-goal { display: flex; flex-direction: column; gap: 2px; }
/* Видео «Знакомься, я Замая» наверху Главной (08.11.2026) */
.home-wv { width: min(100%, calc(48vh * 9 / 16)); margin: 4px auto 14px; box-shadow: var(--shadow-hero); }
.wv-close { position: absolute; top: 24px; left: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--scrim); color: var(--on-head); font-size: 16px; line-height: 34px; cursor: pointer; }

/* Своё фото в кружке и окно «Изменить фото» (09.11.2026): лицо в кружке — сдвиг и масштаб, tests/test_avatar.py */
.ava-btn { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; font: inherit; }
.ava-pen { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--line); color: var(--accent-text); font-size: 13px; line-height: 22px; text-align: center; }
.greet-ava img, .avatar.letter img { transform-origin: 50% 50%; }
.ava-sheet { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: flex; align-items: flex-end;
  justify-content: center; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.ava-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.ava-card h2 { margin: 0; text-align: center; }
.ava-card .muted { text-align: center; }
/* фото в окне видно целиком (не обрезано), кружок — рамка поверх, за кружком затемнение; вырезаем по «Сохранить» */
.ava-stage { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 4px auto; overflow: hidden; border-radius: 18px;
  background: var(--sage-soft); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.ava-stage:active { cursor: grabbing; }
.ava-stage img { position: absolute; max-width: none; display: block; transform-origin: 50% 50%; pointer-events: none; }
.ava-ring { position: absolute; inset: 10%; border-radius: 50%; border: 3px solid var(--sage); pointer-events: none;
  box-shadow: 0 0 0 400px var(--overlay); }
.ava-zoom { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--accent-text); }
.ava-zoom input { flex: 1; accent-color: var(--sage); }
.ava-actions { display: flex; gap: 10px; }
.ava-actions .btn { flex: 1; }

/* Сайт на планшете и компьютере (SPEC-019): приложение колонкой 480 px по центру, на компьютере слева панель бренда.
   Telegram и MAX (data-host tg/max) не затронуты. Экраны уже max-width 480; закреплённые полосы ограничиваем той же колонкой. */
.brand-aside { display: none; }
@media (min-width: 768px) {
  html[data-host="web"] { background: var(--head); }
  html[data-host="web"] body { max-width: 480px; margin: 0 auto; background: var(--ground); box-shadow: var(--shadow-hero); }
  html[data-host="web"] nav.tabs, html[data-host="web"] .netbar { left: 50%; right: auto; width: 480px; transform: translateX(-50%); }
}
@media (min-width: 1024px) {
  html[data-host="web"] .brand-aside { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
    position: fixed; left: 0; top: 0; bottom: 0; width: calc(50vw - 240px); padding: 48px 32px; color: var(--on-head); }
  html[data-host="web"] .brand-aside .zlogo { width: 240px; margin-bottom: 8px; }
  html[data-host="web"] .brand-aside p { font-size: 18px; max-width: 320px; }
  html[data-host="web"] .brand-aside .muted { color: var(--on-head-soft); font-size: 14px; }
  html[data-host="web"] .brand-aside .btn.ghost { width: auto; padding: 12px 22px; background: transparent; color: var(--on-head); border-color: var(--head-chip); }
  html[data-host="web"] .login-qr { width: 220px; height: 220px; }
  html[data-host="web"] .aside-bots { display: flex; flex-wrap: wrap; gap: 10px; }
  html[data-host="web"] .splash > .zlogo { display: none; } /* логотип уже крупно в панели слева */
}

/* «Мои входы» в Профиле (PLAN-020, задача 6): Telegram и MAX у одного аккаунта; цвета — только токенами */
.links-card { gap: 10px; }
.link-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.link-ico { width: 24px; height: 24px; flex: none; color: var(--accent-text); }
.link-name { flex: 1; font-weight: 600; }
.link-state { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.link-state .linkbtn { padding: 8px 4px; font-size: 13px; }
.link-on { color: var(--accent-text); font-size: 14px; font-weight: 600; }
.link-delivery { display: flex; flex-direction: column; gap: 6px; }
.link-confirm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.link-note { display: flex; flex-direction: column; gap: 4px; background: var(--sage-soft); border-radius: 16px; padding: 12px 14px; }
.link-note b { color: var(--accent-text); }
.link-note.bad { background: var(--warm-soft); }
.link-note.bad b { color: var(--warm-ink); }
/* /links */

/* Meal preview and resilient text columns, shared by Today and diary. */
.meal-image{display:flex;align-items:center;justify-content:center;width:58px;height:58px;flex:0 0 58px;overflow:hidden;border-radius:12px;background:var(--sage-soft)}
.meal-image img{width:100%;height:100%;object-fit:cover;display:block}
.meal-image-empty{font-size:11px;color:var(--muted);text-align:center}
.card.meal,.dz-slot>.dz-entry{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:5px 12px;max-width:100%;box-sizing:border-box}
.card.meal>.meal-image,.dz-entry>.meal-image{grid-column:1;grid-row:1 / 3}
.card.meal>.txt,.dz-entry>.dz-entry-txt{grid-column:2;min-width:0;width:100%}
.card.meal>.txt b,.dz-entry>.dz-entry-txt b{white-space:normal;overflow-wrap:anywhere;line-height:1.35;overflow:visible}
.card.meal>.txt .muted,.dz-entry>.dz-entry-txt .muted{white-space:normal;overflow-wrap:anywhere}
.card.meal>b,.dz-entry>b{grid-column:2;white-space:normal;overflow-wrap:anywhere;font-size:14px}
.meal-photo-choice{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5}
.meal-photo-choice input{flex:0 0 20px;width:20px;height:20px;margin-top:3px}

/* «Звёзды и числа» (SPEC-027) */
.stars-big { font-size: 44px; line-height: 1; color: var(--accent-text); }
.stars-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.stars-field input, .stars-field select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: inherit; }
.stars-banner { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 26px; min-height: 112px; padding: 16px 18px; text-align: left;
  color: var(--on-sky); background: radial-gradient(circle at 85% 20%, var(--sky-glow), transparent 45%), linear-gradient(135deg, var(--sky-1), var(--sky-2)); box-shadow: var(--shadow-hero); position: relative; overflow: hidden; }
.stars-banner .stars-moon { font-size: 44px; filter: drop-shadow(0 0 10px var(--sky-glow)); }
.stars-banner b { font-family: "Caveat", cursive; font-size: 28px; line-height: 1.05; color: var(--sky-star); display: block; }
.stars-banner span span { font-size: 14px; color: var(--on-sky-soft); }
.stars-banner .stars-dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 20% 30%, var(--on-sky) 50%, transparent 51%),
  radial-gradient(1px 1px at 60% 15%, var(--on-sky) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 75% 70%, var(--sky-star) 50%, transparent 51%),
  radial-gradient(1px 1px at 40% 80%, var(--on-sky) 50%, transparent 51%), radial-gradient(1px 1px at 90% 45%, var(--on-sky) 50%, transparent 51%); opacity: .8; }
.stars-banner .banner-arrow { color: var(--sky-star); margin-left: auto; }
.stars-match { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
/* «Звёзды и числа» — ночное небо и золото (владелец 12.11.2026) */
#stars { background: radial-gradient(260px 220px at 88% 30px, var(--sky-glow), transparent 70%), linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 1400px, var(--sky-1) 100%); color: var(--on-sky); }
#stars .topbar h1, #stars .topbar .tb-btn { color: var(--on-sky); }
#stars .card, #stars .soft { background: var(--sky-card); border: 1px solid var(--sky-line); color: var(--on-sky); box-shadow: none; }
#stars .muted { color: var(--on-sky-soft); }
#stars .stars-big { color: var(--sky-star); font-family: "Caveat", cursive; font-size: 56px; }
#stars b { color: var(--on-sky); }
#stars i { color: var(--sky-star); }
#stars .stars-hook { font-family: "Caveat", cursive; font-size: 24px; line-height: 1.2; color: var(--sky-star); margin: 4px 0; }
#stars .stars-portrait { line-height: 1.55; margin: 0 0 6px; }
#stars .chip[aria-pressed="true"] { background: var(--sky-star); color: var(--sky-1); }
#stars .btn.cta, #stars .btn:not(.ghost) { background: var(--sky-star); color: var(--sky-1); }
#stars .btn.ghost { color: var(--on-sky); border-color: var(--sky-line); background: transparent; }
.stars-map-box { display: flex; justify-content: center; }
.stars-map { width: 100%; max-width: 340px; }
.stars-map .sm-ring { fill: none; stroke: var(--sky-line); stroke-width: 1; }
.stars-map .sm-ray { stroke: var(--sky-line); stroke-width: 1.5; }
.stars-map .sm-node { fill: var(--sky-1); stroke: var(--sky-star); stroke-width: 2; }
.stars-map .sm-core { fill: var(--sky-star); filter: drop-shadow(0 0 12px var(--sky-glow)); }
.stars-map text { text-anchor: middle; font-family: "Caveat", cursive; }
.stars-map .sm-num { fill: var(--on-sky); font-size: 20px; font-weight: 700; }
.stars-map .sm-core-num { fill: var(--sky-1); font-size: 36px; font-weight: 700; }
.stars-map .sm-label { fill: var(--on-sky-soft); font-size: 13px; }
.matrix-map .mx-square { fill: none; stroke: var(--sky-star); stroke-width: 1.5; opacity: .75; }
.matrix-head { text-align: center; align-items: center; }
.stars-tabs { justify-content: center; }

.measure-ruler { position:relative; height:4rem; overflow:hidden; width:100%; touch-action:pan-y; user-select:none; cursor:ew-resize; color:var(--text,currentColor); }
.measure-ruler span { position:absolute; top:1rem; padding-top:1.2rem; transform:translateX(-50%); font-size:.8rem; }
.measure-ruler span::before,.measure-ruler::after { content:""; position:absolute; width:2px; top:0; left:50%; height:.7rem; background:currentColor; }
.measure-ruler .major::before { height:1rem; }
.measure-ruler::after { top:.55rem; height:1.65rem; width:3px; background:var(--accent-text,currentColor); pointer-events:none; }

#first-offer {
  box-sizing: border-box;
  width: min(420px, calc(100% - 24px));
  max-height: 88dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--first-offer-shadow);
}
#first-offer::backdrop { background: var(--first-offer-backdrop); }
#first-offer img { display: block; width: 100%; height: clamp(85px, 19vh, 160px); object-fit: cover; }
#first-offer form { display: grid; gap: 12px; padding: 20px; }
#first-offer h2, #first-offer p { margin: 0; }
#first-offer small { text-align: center; color: var(--soft); }
