/* ============================================================
   VVellness — MVP
   Дизайн-система:
   - Цвета ВкусВилл (#2DBE64 зелёный, #D7144B ягодный, #FFD508 жёлтый, #F7F6F2 фон)
   - Шрифты: Unbounded (display) + Manrope (body) — аналоги фирменных
   - Структура BCG: большие числа medium-weight, eyebrow 11px uppercase, щедрый whitespace
   - Характер: тёплый, живой, домашний (не стерильный)
   - Mobile-first, 430px container, iOS-like nav
============================================================ */

:root {
  /* ВкусВилл официальная палитра */
  --vv-green:        #2DBE64;    /* brand green Pantone 2250C */
  --vv-green-dark:   #1FA650;
  --vv-green-tint:   #E4F6EB;    /* светлый фон блоков */
  --vv-berry:        #D7144B;    /* CTA ягодный */
  --vv-berry-dark:   #B10E3C;
  --vv-yellow:       #FFD508;    /* плашки скидок */
  --vv-orange:       #FA5F0A;
  --vv-blue:         #54B3FF;
  --vv-lime:         #9AE894;
  --vv-red:          #FF3C3C;

  /* нейтральные */
  --ink:             #1A1A1A;    /* graphite — основной текст */
  --ink-2:           #333333;
  --ink-3:           #6A6A6A;
  --ink-4:           #9B9B9B;
  --line:            #EAE8E1;
  --line-soft:       #F2F0E9;
  --paper:           #FFFFFF;
  --bg:              #F7F6F2;    /* тёплый off-white — фирменный */
  --card:            #FFFFFF;

  /* типографика */
  --display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --body: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* радиусы */
  /* ЕДИНАЯ ШКАЛА СКРУГЛЕНИЙ (05.09.2026) — та же в design_v2.css и premium.css */
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px; /* Б: крупнее (05.09.2026) */

  /* тени */
  --sh-1: 0 1px 2px rgba(26,26,26,.04);
  --sh-2: 0 4px 16px rgba(26,26,26,.06);
  --sh-3: 0 12px 36px rgba(26,26,26,.10);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
}

/* ⚠ ЭТО ПРАВИЛО УБИВАЛО position:sticky ВО ВСЁМ ПРИЛОЖЕНИИ, И ЭТО НЕ ТЕОРИЯ.
   `overflow-x: hidden` вычисляет `overflow-y` в `auto`, то есть делает html и body
   ПРОКРУЧИВАЕМЫМИ КОНТЕЙНЕРАМИ. Липкий элемент липнет к ближайшему такому
   контейнеру, а высота body равна высоте содержимого — прилипать некуда, и
   `header.app-header{position:sticky;top:0}` (строка ниже в этом же файле) не
   срабатывал НИ РАЗУ. Замер на экране «Возраст» (3923 px): scrollY 600 → шапка
   top −600; computed position при этом честно «sticky», transform ни у одного
   предка нет — причина была ровно здесь.

   `overflow: clip` режет вылезающее ТАК ЖЕ, но контейнер прокрутки не создаёт.
   Через @supports, а не заменой: на старых WebView (iOS < 16) `clip` неизвестен,
   там останется прежнее поведение — не хуже сегодняшнего, но и не лучше. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

body {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 80px rgba(0,0,0,.08);
}

/* ============================================================
   ТИПОГРАФИКА — Unbounded (display) + Manrope (body)
   Плотные, характерные, с ручным характером
============================================================ */

h1, h2, h3, .display { font-family: var(--display); }

.h-hero  {
  font-family: var(--display); font-weight: 500;
  font-size: 40px; line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.h-1 {
  font-family: var(--display); font-weight: 500;
  font-size: 30px; line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h-2 {
  font-family: var(--display); font-weight: 500;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h-3 {
  font-family: var(--body); font-weight: 700;
  font-size: 17px; line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
  background: var(--paper);
  border: 1.3px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.eyebrow.tint { background: var(--vv-green-tint); color: var(--vv-green-dark); border-color: transparent; }
.eyebrow.ink { background: var(--ink); color: white; border-color: transparent; }
.eyebrow.berry { background: var(--vv-berry); color: white; border-color: transparent; }
.eyebrow.yellow { background: var(--vv-yellow); color: var(--ink); border-color: transparent; }

.sub { color: var(--ink-3); font-size: 14px; line-height: 1.5; font-weight: 500; }
.caption { color: var(--ink-3); font-size: 12px; font-weight: 500; }

/* BCG-style numbers */
.num-xl {
  font-family: var(--display); font-weight: 400;
  font-size: 72px; line-height: .95;
  letter-spacing: -0.04em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.num-xl small { font-size: 26px; font-weight: 400; color: var(--ink-3); }
.num-lg { font-family: var(--display); font-weight: 500; font-size: 36px; line-height: 1; letter-spacing: -0.025em; }

/* ============================================================
   STATUS BAR + HEADER
============================================================ */

.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px 4px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  font-family: var(--body);
}
.status-bar .icons { display: flex; gap: 5px; align-items: center; }
.status-bar svg { display: block; }

header.app-header {
  padding: 10px 20px 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  background: var(--bg);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--vv-green);
  color: white;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: -0.02em;
}
.brand-text {
  font-family: var(--display); font-weight: 600;
  font-size: 19px; letter-spacing: -0.02em;
  color: var(--ink);
}

.pill-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1.3px solid var(--line);
  color: var(--ink);
  cursor: pointer; transition: all 0.2s var(--ease);
  text-decoration: none;
}
.pill-icon-btn:hover { background: var(--vv-green-tint, #E4F6EB); border-color: var(--vv-green, #2DBE64); color: var(--vv-green-dark, #2E7D32); }
.pill-icon-btn:active { transform: scale(0.92); }
.pill-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.vv-settings-btn svg { width: 22px; height: 22px; }

/* screens */
.screen { display: none; padding: 0 20px 120px; min-height: calc(100dvh - 72px); }
.screen.active { display: block; animation: screenIn .4s var(--ease); }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   BUTTONS
============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 15px;
  padding: 16px 24px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease-spring), box-shadow .2s, background .2s;
  white-space: nowrap;
  letter-spacing: -0.005em;
  user-select: none;
}
.btn:active { transform: scale(0.96); }

/* Ягодный — главный CTA (фирменный ход ВкусВилла) */
.btn-berry {
  background: var(--vv-berry); color: white;
  box-shadow: 0 4px 14px rgba(215,20,75,.25);
}
.btn-berry:hover { background: var(--vv-berry-dark); }

/* Зелёный — вторичный */
.btn-green {
  background: var(--vv-green); color: white;
  box-shadow: 0 4px 14px rgba(45,190,100,.2);
}
.btn-green:hover { background: var(--vv-green-dark); }

.btn-ink { background: var(--ink); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost { background: var(--line-soft); color: var(--ink); }
.btn-block { width: 100%; }
.btn .arrow { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.btn .arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }

/* ============================================================
   CARDS
============================================================ */

.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card.tint { background: var(--vv-green-tint); border-color: transparent; }
.card.ink { background: var(--ink); color: white; border-color: transparent; }

/* ============================================================
   WELCOME
============================================================ */

.hero {
  padding: 16px 0 28px;
}
.hero .h-hero { margin-bottom: 18px; }
.hero .h-hero em { font-style: normal; color: var(--vv-green); }
.hero .sub { font-size: 15px; color: var(--ink-2); max-width: 340px; margin-bottom: 28px; }

/* Hero-карточка: как BCG data-point, но с тёплым ВВ-характером */
.hero-visual {
  background: var(--vv-green-tint);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 280px;
}
/* Плашка витрины — фиксированные цвета, как у кружков (20.09.2026, владелец: «не видно текст»): в ночной теме
   токен --vv-green-dark светлеет до #3FE07A, а premium.css красит .eyebrow им с !important — выходило
   светлое на светлом. Специфичность выше (.hero-visual .eyebrow), поэтому !important здесь побеждает. */
.hero-visual .eyebrow { background: rgba(255,255,255,.88); border: none; color: #0F6E3E !important; position: absolute; top: 20px; left: 20px; white-space: nowrap; z-index: 2; }

/* Плавающие метрики — BCG-бабблы, но с нашими цветами */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 500;
  box-shadow: var(--sh-2);
  letter-spacing: -0.02em;
}
/* ⚠ ЦВЕТА КРУЖКОВ — ФИКСИРОВАННЫЕ, НЕ ИЗ ТЕМЫ (20.09.2026, владелец: «поправить цвета»). Жёлтый «+12»
   с тёмным кольцом и красный «82 %» читались как светофор «плохо/осторожно»; в ночной теме токены
   ещё и светлели (зелёный → салатовый с белым текстом). Кружки лежат на своём фоне, поэтому цвета
   заданы прямо: зелёный, песочный, тёмно-зелёный — палитра приложения. */
.hero-blob.b1 {
  width: 120px; height: 120px;
  background: #1E9E59; color: white;
  top: 56px; right: 28px;
  font-size: 22px;
}
/* ⚠ «+12» НАЕЗЖАЛ НА «+37 %» (найдено глазами 23.08.2026, разбор онбординга).
   Замер на живой странице: b1 занимает справа 28-148 px (120 + тень), b2 стоял
   на 140 и с рамкой 3 px растягивался до 218 — пересечение 8 px, видно на всех
   размерах от 360 до 1280. Это ПЕРВЫЙ экран, который увидят 200 тестировщиков.
   Отодвигаем b2 так, чтобы между кругами остался воздух, а не стык. */
.hero-blob.b2 {
  width: 72px; height: 72px;
  background: #D9A441; color: #1C2B2B;
  top: 120px; right: 162px;
  font-size: 15px;
  border: 3px solid rgba(255,255,255,.22);   /* было var(--paper): в ночной теме — тёмное кольцо */
  box-sizing: content-box;
}
.hero-blob.b3 {
  width: 56px; height: 56px;
  background: #0F6E3E; color: white;
  top: 168px; left: 40px;
  font-size: 13px;
  font-weight: 600;
}
.hero-visual .line-path {
  position: absolute; top: 52%; left: 20px; right: 20px;
  height: 1.5px;
  background: repeating-linear-gradient(to right, var(--vv-green-dark) 0 6px, transparent 6px 12px);
  opacity: .3;
}
.hero-visual .visual-caption {
  position: absolute; bottom: 22px; left: 24px; right: 24px;
}
.hero-visual .visual-caption .h-2 {
  font-family: var(--display); font-weight: 500;
  font-size: 18px; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink);
  max-width: 220px;
}

/* features list */
.welcome-features { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.feature-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-ico {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--vv-green-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--vv-green-dark);
}
.feature-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.feature-body .ft-title { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 3px; letter-spacing: -0.01em; }
.feature-body .ft-sub { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

.cta-stack { display: flex; flex-direction: column; gap: 10px; }
.pricing-note {
  text-align: center; font-size: 12px; color: var(--ink-3);
  margin-top: 20px; line-height: 1.6;
}

/* ============================================================
   ONBOARDING
============================================================ */

.steps-track { display: flex; gap: 4px; margin: 20px 0 28px; }
.steps-track .step { height: 3px; flex: 1; background: var(--line); border-radius: 3px; transition: background .3s; }
.steps-track .step.done { background: var(--vv-green); }
.steps-track .step.current { background: var(--ink); }

.onb-section .h-1 { margin-bottom: 8px; }
.onb-section .sub { font-size: 15px; margin-bottom: 28px; }

.segmented {
  display: flex; gap: 4px;
  background: var(--line-soft);
  padding: 4px; border-radius: var(--r-pill);
  margin-bottom: 8px;
}
.segmented button {
  flex: 1; background: transparent; border: none;
  padding: 12px 14px; border-radius: var(--r-pill);
  font-family: var(--body); font-weight: 600; font-size: 14px;
  color: var(--ink-2); cursor: pointer;
  transition: all .2s;
}
.segmented button.active {
  background: var(--paper);
  color: var(--ink); font-weight: 700;
  box-shadow: var(--sh-1);
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .1em;
  font-family: var(--body);
}
.field input[type="number"], .field input[type="text"] {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--ink);
  transition: border-color .15s;
}
.field input:focus { outline: none; border-color: var(--ink); }

.slider-row { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; }
.slider-row .val { font-family: var(--display); font-size: 36px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.slider-row .unit { font-family: var(--body); font-size: 14px; color: var(--ink-3); font-weight: 600; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; background: var(--line);
  border-radius: 2px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--vv-green); cursor: pointer;
  border: 3px solid white; box-shadow: 0 2px 8px rgba(45,190,100,.3);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--vv-green); cursor: pointer; border: 3px solid white;
}

/* goal tiles */
.goals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.goal-tile {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  cursor: pointer;
  transition: all .25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.goal-tile:active { transform: scale(0.97); }
.goal-tile.selected {
  background: var(--vv-green-tint, #E4F6EB);
  border-color: var(--vv-green, #2DBE64);
  box-shadow: 0 0 0 1.5px var(--vv-green, #2DBE64) inset;
}
.goal-tile.selected .g-title { color: var(--vv-green-dark, #1FA650); }
.goal-tile.selected .g-sub { color: var(--vv-green-dark, #1FA650); opacity: .8; }
.goal-tile .g-ico {
  width: 38px; height: 38px; border-radius: var(--r-xs);
  background: var(--vv-green-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--vv-green-dark);
}
.goal-tile.selected .g-ico { background: var(--vv-green); color: white; }
.goal-tile .g-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.goal-tile .g-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 2px; letter-spacing: -0.01em; }
.goal-tile .g-sub { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.goal-tile .check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--vv-green);
  display: none;
  align-items: center; justify-content: center;
  color: white;
}
.goal-tile.selected .check { display: flex; }
.goal-tile .check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3.5; }

/* Chips с выбранными целями */
.selected-goals {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 20px;
  transition: all .25s var(--ease);
}
.selected-goals.empty {
  background: transparent;
  border-style: dashed;
  opacity: .7;
}
.sg-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.sg-label {
  font-family: var(--body);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3);
}
.sg-count {
  font-family: var(--display);
  font-size: 14px; font-weight: 600;
  color: var(--vv-green-dark);
  background: var(--vv-green-tint);
  padding: 2px 8px; border-radius: var(--r-pill);
  min-width: 24px; text-align: center;
  letter-spacing: -0.01em;
}
.sg-count.zero { background: var(--line-soft); color: var(--ink-4); }
.sg-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  min-height: 28px;
}
.sg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vv-green-tint);
  color: var(--vv-green-dark);
  padding: 5px 8px 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: -0.005em;
  animation: chipIn .25s var(--ease-spring);
}
@keyframes chipIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.sg-chip-x {
  background: rgba(31,166,80,0.15);
  color: var(--vv-green-dark);
  border: none; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; line-height: 1;
  transition: all .15s;
}
.sg-chip-x:hover { background: var(--vv-berry); color: white; }
.sg-empty-text {
  font-size: 12px; color: var(--ink-3); font-weight: 500;
  font-style: italic;
}

/* integrations */
.integ-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.integ-row {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all .2s;
}
.integ-row:active { transform: scale(0.98); }
.integ-row.connected { background: var(--vv-green-tint); border-color: transparent; }
.integ-ico {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.integ-row.connected .integ-ico { background: var(--vv-green); }
.integ-body { flex: 1; }
.integ-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 2px; letter-spacing: -0.01em; }
.integ-sub { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.integ-status {
  font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink-2);
  border: 1.3px solid var(--line);
  letter-spacing: -0.005em;
}
.integ-row.connected .integ-status { background: var(--vv-green); color: white; border-color: transparent; }

/* loading step 4 */
.plan-loading {
  background: var(--vv-green-tint);
  border-radius: var(--r-xl);
  padding: 40px 24px;
  text-align: center;
  margin: 20px 0;
}
.plan-loading .big-emoji {
  font-family: var(--display); font-size: 56px;
  margin-bottom: 18px;
  animation: bob 2s var(--ease) infinite;
  display: inline-block; color: var(--vv-green-dark);
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============================================================
   DASHBOARD
============================================================ */

/* Homepage polish: compact day / streak / status bar at the very top.
   Single-row, lightweight — stays above the greeting without adding
   significant height so the primary CTA isn't pushed noticeably lower. */
.vv-day-status-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3, #6A6A6A);
  letter-spacing: 0.01em;
  line-height: 1;
}
.vv-status-item {
  white-space: nowrap;
}
.vv-status-day {
  color: var(--ink-2, #333);
}
.vv-status-streak {
  color: var(--vv-orange, #FA5F0A);
}
.vv-status-dot {
  color: var(--ink-4, #9B9B9B);
  font-size: 10px;
  user-select: none;
}
.vv-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill, 999px);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.vv-status-active {
  background: var(--vv-green-tint, #E4F6EB);
  color: var(--vv-green-dark, #1FA650);
}
.vv-status-none {
  background: var(--line-soft, #F2F0E9);
  color: var(--ink-3, #6A6A6A);
}

.greeting { padding: 12px 0 4px; }  /* reduced from 20px to account for status bar above */
.greeting-line {
  font-family: var(--display); font-weight: 500;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 6px;
}
.greeting-line em { font-style: normal; color: var(--vv-green); }
.greeting-meta {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  margin-top: 8px; font-size: 13px; color: var(--ink-3);
  font-weight: 500;
}
.greeting-meta .pill {
  display: inline-block;
  background: var(--vv-green-tint); color: var(--vv-green-dark);
  padding: 4px 10px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0;
}

/* Streak banner */
.streak-banner {
  background: linear-gradient(135deg, #FFF7D1 0%, #FFE88A 100%);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  margin: 16px 0;
}
.streak-banner .fire {
  font-size: 28px; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(250,95,10,.3));
}
.streak-banner .txt { flex: 1; }
.streak-banner .big {
  font-family: var(--display); font-size: 17px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.015em;
  line-height: 1.15;
}
.streak-banner .small { font-size: 12px; color: var(--ink-2); font-weight: 500; margin-top: 2px; }

/* Hero data — BCG-style big number on tinted background */
.hero-data {
  background: var(--vv-green-tint);
  border-radius: var(--r-xl);
  padding: 28px 22px;
  margin: 16px 0 20px;
  position: relative; overflow: hidden;
}
.hero-data .eyebrow { margin-bottom: 12px; background: rgba(255,255,255,.7); border-color: transparent; }
.hero-data .big-num {
  font-family: var(--display); font-weight: 400;
  font-size: 88px; line-height: .9; letter-spacing: -0.05em;
  color: var(--ink);
  display: flex; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.hero-data .big-num small { font-size: 28px; font-weight: 400; color: var(--ink-3); }
.hero-data .desc {
  font-family: var(--body);
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  max-width: 260px; margin-top: 12px; line-height: 1.5;
}
/* visual dots in corner */
.hero-data .dots-visual {
  position: absolute; right: 20px; top: 28px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.hero-data .dot-row { display: flex; gap: 4px; }
.hero-data .dot-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--vv-green);
  opacity: .3;
}
.hero-data .dot-dot.on { opacity: 1; }

/* Stats 2x2 grid */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 16px 18px;
  animation: statIn .5s var(--ease) both;
}
.stat-card:nth-child(2) { animation-delay: .06s; }
.stat-card:nth-child(3) { animation-delay: .12s; }
.stat-card:nth-child(4) { animation-delay: .18s; }
@keyframes statIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.stat-card .eyebrow {
  border: none; background: none; padding: 0;
  margin-bottom: 6px; color: var(--ink-3);
}
.stat-card .num {
  font-family: var(--display); font-weight: 500;
  font-size: 32px; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-card .num small { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.stat-card .delta {
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 3px;
  letter-spacing: -0.005em;
}
.stat-card .delta.up { color: var(--vv-green-dark); }
.stat-card .delta.flat { color: var(--ink-3); }
.stat-card .lbl { font-size: 11px; color: var(--ink-3); margin-top: 8px; line-height: 1.4; font-weight: 500; }

/* Section heads */
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 28px 0 14px;
}
.sec-head .h-3 { color: var(--ink); }
.sec-head .action {
  font-family: var(--body); font-weight: 600; font-size: 13px;
  color: var(--ink-2); background: none; border: none; cursor: pointer;
  letter-spacing: -0.005em;
}
.sec-head .action:hover { color: var(--ink); }
.sec-head .action::after { content: ' →'; }

/* Meal cards */
.meal-list { display: flex; flex-direction: column; gap: 10px; }
.meal-card {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex; gap: 14px; align-items: center;
  transition: all .2s;
}
.meal-card.done { background: var(--vv-green-tint); border-color: transparent; }
.meal-time {
  flex-shrink: 0;
  font-family: var(--display); font-size: 18px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em;
  min-width: 44px;
  font-variant-numeric: tabular-nums;
}
.meal-body { flex: 1; min-width: 0; }
.meal-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.3; letter-spacing: -0.01em; }
.meal-kbju { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; font-variant-numeric: tabular-nums; font-weight: 500; }
.nut-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nut-tag {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--paper);
  letter-spacing: -0.005em;
}
.meal-card.done .nut-tag { background: rgba(255,255,255,.7); border-color: transparent; }

.meal-action {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: white; border: none; cursor: pointer;
  transition: transform .15s var(--ease-spring);
}
.meal-action:active { transform: scale(.88); }
.meal-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.meal-action.done-btn { background: var(--vv-green); }
.meal-action.done-btn svg { stroke-width: 3; }

/* Microbiota card (dark, premium feel) */
.microbiota-card {
  background: var(--ink);
  color: white;
  border-radius: var(--r-xl);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.microbiota-card .eyebrow {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border-color: transparent;
}
.microbiota-card .big-num {
  font-family: var(--display); font-weight: 400;
  font-size: 76px; line-height: .9; letter-spacing: -0.05em;
  color: white;
  margin: 14px 0 12px;
  display: flex; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.microbiota-card .big-num small {
  font-size: 24px; color: rgba(255,255,255,.5); font-weight: 400; margin-left: 4px;
}
.microbiota-card .desc {
  font-size: 13px; color: rgba(255,255,255,.7);
  line-height: 1.5; max-width: 260px; font-weight: 500;
}
.microbiota-card .progress {
  margin-top: 18px; height: 6px; background: rgba(255,255,255,.12);
  border-radius: 3px; overflow: hidden;
}
.microbiota-card .progress-fill {
  height: 100%; background: var(--vv-green); border-radius: 3px;
  width: 77%;
  transition: width 1s var(--ease);
}
.microbiota-card .plants {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px;
}
.microbiota-card .plant-chip {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.1);
}
.microbiota-card .plant-chip.new {
  background: var(--vv-yellow); color: var(--ink);
  border-color: transparent; font-weight: 700;
}

/* Quick actions */
.quick-act-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 20px;
}
.quick-act {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  transition: all .2s var(--ease-spring);
  font-family: var(--body);
}
.quick-act:active { transform: scale(.96); }
.quick-act:hover { border-color: var(--ink); }
.quick-act.accent {
  background: var(--vv-yellow);
  border-color: transparent;
}
.quick-act .q-ico { font-size: 22px; margin-bottom: 10px; display: block; }
.quick-act .q-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; letter-spacing: -0.01em; }
.quick-act .q-sub { font-size: 11px; color: var(--ink-3); line-height: 1.3; font-weight: 500; }
.quick-act.accent .q-sub { color: rgba(26,26,26,.65); }

/* ============================================================
   CHAT
============================================================ */

.chat-header {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.chat-header .h-1 { font-size: 28px; margin-bottom: 6px; }
.chat-header .h-1 em { color: var(--vv-green); font-style: normal; }
.chat-header .sub { font-size: 13px; }

.chat-list {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 16px;
}
.msg {
  max-width: 86%;
  padding: 13px 16px;
  border-radius: var(--r-lg);
  font-size: 14px; line-height: 1.5;
  font-weight: 500;
  animation: msgIn .3s var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.ai {
  align-self: flex-start;
  background: var(--line-soft);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.msg.ai .bot {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vv-green-dark); margin-bottom: 4px;
  font-family: var(--body);
}
.msg.ai .bot .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--vv-green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.msg.user {
  align-self: flex-end;
  background: var(--vv-green);
  color: white;
  border-bottom-right-radius: 6px;
  font-weight: 600;
}

.product-suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.prod-sug {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: all .2s;
}
.prod-sug:active { transform: scale(.98); }
.prod-sug:hover { border-color: var(--ink); background: var(--line-soft); }
.prod-sug .emoji {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--vv-green-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.prod-sug .body { flex: 1; min-width: 0; }
.prod-sug .name { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.prod-sug .meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; font-weight: 500; }
.prod-sug .chev { color: var(--ink-3); flex-shrink: 0; font-size: 20px; }

.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.qr-chip {
  background: var(--paper);
  border: 1.3px solid var(--line);
  padding: 9px 14px; border-radius: var(--r-pill);
  font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: all .2s;
}
.qr-chip:hover { background: var(--vv-green-tint); border-color: transparent; }

/* Chat input (fixed above bottom nav) */
.chat-input-wrap {
  position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  padding: 12px 20px 10px;
  background: linear-gradient(to bottom, rgba(247,246,242,0), var(--bg) 40%);
  z-index: 30;
}
.chat-input {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--sh-2);
}
.chat-input input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--body); font-size: 14px; color: var(--ink); font-weight: 500;
  padding: 10px 0;
}
.chat-input input::placeholder { color: var(--ink-3); }
.chat-input .send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--vv-berry); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s var(--ease-spring);
}
.chat-input .send:active { transform: scale(.88); }
.chat-input .send svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.chat-input .send[disabled] { opacity: .38; cursor: default; }

/* Кнопка остановки. Стоит СЛЕВА от «Отправить» — там, куда уже тянется палец,
   а не в пузыре сообщения, как было раньше. */
/* ⚠ «МЕЛКИМ» БЫЛ НЕ ЗНАЧОК, А ВСЯ КНОПКА: КРУГ БЫЛ НЕВИДИМ.
   Замечание владельца «снизу квадратик кнопки мелкий слишком» (12.08.2026)
   сначала лечили размером: круг 40→44px, квадрат 7,5→10px. Не помогло, и вот
   почему — замер контраста рамки к фону поля ввода:
       день  #E0D6C3 на #FBF7EF = 1,35:1
       ночь  #2C3A32 на #1C2721 = 1,29:1
   То есть окружности на телефоне НЕТ ВООБЩЕ. Рядом «Отправить» — сплошной
   зелёный диск 44px, который читается целиком. Глазами это сравнение звучит как
   «большая кнопка и маленький квадратик»: у соседа фигура = 44px, у остановки
   фигура = 10px значка. Размер значка тут вторичен, разница была 4,4-кратная.
   Поэтому кнопка стала СПЛОШНЫМ диском той же массы, что «Отправить», а значок
   на нём — вывороткой (идиома «стоп» из ChatGPT/Claude, человеку знакома).
   ⚠ Заливка --ink, значок --paper: это ЕДИНСТВЕННАЯ пара, которая переживает обе
   темы без отдельного ночного блока. Днём тёмный диск на светлом поле, ночью
   светлый на тёмном — 12,9:1 днём и 12,3:1 ночью в обе стороны. Литеральный цвет
   сюда брать нельзя: ночная палитра инвертирует поверхности, и он станет
   диском-невидимкой заново.
   Зона касания — честные 44px САМОЙ кнопкой, без подпорки ::after (inset:-3px
   не измеряется как элемент, и проверка касаний в shoot_screens.py её не видела). */
.chat-input .chat-stop {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; flex: 0 0 auto;
  transition: transform .15s var(--ease-spring), opacity .15s ease;
}
.chat-input .chat-stop[hidden] { display: none; }
/* svg 24px при rect 12/24 = квадрат ровно 12px. Стрелка «Отправить» вместе со
   штрихом занимает ~9,6px — сплошная фигура читается мельче штриховой, поэтому
   равного размера мало, нужен запас. Разметка — _mvp_body_design.html. */
.chat-input .chat-stop svg { width: 24px; height: 24px; }
.chat-input .chat-stop:active { transform: scale(.88); opacity: .82; }

/* Спиннер вместо текста «думаю N с…». Кольцо, а не точки: точки читаются как
   «печатает», а модель в этот момент ещё не пишет, а ищет. */
.vv-chat-spin {
  display: inline-block; width: 18px; height: 18px; margin-top: 2px;
  border: 2px solid var(--line);
  border-top-color: var(--vv-green-dark, #177652);
  border-radius: 50%;
  animation: vv-chat-spin .7s linear infinite;
}
@keyframes vv-chat-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .vv-chat-spin { animation: vv-chat-pulse 1.4s ease-in-out infinite; }
  @keyframes vv-chat-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}

/* ⚠ ПУЗЫРЬ ОЖИДАНИЯ — ЭТО ОДНА СТРОКА, А НЕ СООБЩЕНИЕ.
   Владелец: «плашка не правильной формы (именно где грузится ответ ИИ), он
   оставляет слишком большое место из-за кругляшка» (12.08.2026). Разбор высот:
       83px — кольцо ПОД шапкой, отдельной строкой (исходное);
       58px — кольцо перенесли в строку с «VVILLIAM», но пузырь остался
              одетым как полноценное сообщение: поля 14px сверху и снизу плюс
              margin-bottom:6px у .bot — тот отступ существует ради ТЕКСТА под
              шапкой, а текста здесь нет. Итог: сверху 15px пустоты, снизу 21px,
              строка сидит на 3px выше центра — плашка выглядит кривой;
       44px — здесь: поля 10px и margin-bottom:0.
   Содержимое 22px, пустоты сверху и снизу поровну — форма стала честной.
   ⚠ Специфичность обязана быть выше, чем у #screen-chat .msg.ai в design_v2.css:
   там оба свойства объявлены с !important. Отсюда двойной класс .msg.ai.vv-msg-thinking. */
#screen-chat .msg.ai.vv-msg-thinking { padding: 10px 16px !important; }
#screen-chat .msg.ai.vv-msg-thinking .bot { margin-bottom: 0 !important; }
/* margin-top у кольца рассчитан на строку текста; во flex-строке с
   align-items:center он смещает кольцо на 1px ниже аватара — видно на снимке. */
.vv-msg-thinking .vv-chat-spin { margin-top: 0; }

/* ============================================================
   CART
============================================================ */

.cart-hero {
  background: var(--vv-green-tint);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  margin: 16px 0 24px;
  position: relative; overflow: hidden;
}
.cart-hero .coverage-label {
  font-size: 11px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 6px;
}
.cart-hero .coverage-num {
  font-family: var(--display); font-weight: 500;
  font-size: 72px; line-height: .9; letter-spacing: -0.05em;
  color: var(--ink);
  display: flex; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.cart-hero .coverage-num small { font-size: 28px; color: var(--ink-3); }
.cart-hero .coverage-desc {
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  max-width: 260px; margin-top: 8px; line-height: 1.45;
}

.cart-list { display: flex; flex-direction: column; gap: 8px; }
.cart-item {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex; align-items: center; gap: 14px;
  transition: all .25s var(--ease);
}
.cart-item.own { background: var(--vv-green-tint); border-color: transparent; }
.cart-item .emoji-box {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.cart-item.own .emoji-box { background: var(--paper); }
.cart-item .c-body { flex: 1; min-width: 0; }
.cart-item .c-name {
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 3px; line-height: 1.25; letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px;
}
.cart-item .c-reason {
  font-size: 11px; color: var(--vv-green-dark); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: -0.005em;
}
.cart-item .c-reason::before { content: '✓'; font-weight: 800; }
.cart-item .c-stm {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--vv-yellow); color: var(--ink);
  padding: 2px 7px; border-radius: 4px;
}
.cart-item .c-right { text-align: right; flex-shrink: 0; }

/* Цена ВкусВилл-стиль: новая слева крупная, старая мелкая зачёркнутая (паттерн из brand book) */
.cart-item .c-price {
  font-family: var(--display); font-size: 20px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cart-item .c-price-old {
  font-size: 11px; color: var(--ink-4); text-decoration: line-through;
  margin-left: 4px;
}
.cart-item .c-qty { font-size: 11px; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.cart-item .c-remove {
  background: none; border: none; color: var(--ink-4);
  font-size: 24px; line-height: 1; cursor: pointer;
  padding: 0 4px;
  transition: color .15s;
}
.cart-item .c-remove:hover { color: var(--vv-red); }

/* Yellow sale badge — classic ВкусВилл */
.sale-badge {
  display: inline-block;
  font-family: var(--display); font-weight: 700;
  font-size: 10px; letter-spacing: -0.02em;
  background: var(--vv-yellow); color: var(--ink);
  padding: 3px 8px; border-radius: 4px;
  transform: rotate(-4deg);
}

.cart-total {
  background: var(--ink); color: white;
  border-radius: var(--r-xl);
  padding: 24px;
  margin-top: 20px;
}
.cart-total .total-label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 6px; font-weight: 700;
}
.cart-total .total-num {
  font-family: var(--display); font-weight: 500;
  font-size: 44px; letter-spacing: -0.04em; color: white; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cart-total .total-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 8px; font-weight: 500; }

/* ============================================================
   PROGRESS
============================================================ */

.progress-hero { padding: 20px 0 8px; }
.progress-hero .h-1 em { color: var(--vv-green); font-style: normal; }

.prog-stat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 20px;
}

.biomarker-card {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 10px;
}
.biomarker-card .bm-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.biomarker-card .bm-name { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.biomarker-card .bm-delta {
  font-family: var(--display); font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.biomarker-card .bm-delta.up { color: var(--vv-green-dark); }
.biomarker-card .bm-values {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-3); margin-bottom: 8px;
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.biomarker-card .bm-bar-wrap {
  height: 6px; background: var(--line); border-radius: 3px; overflow: hidden;
  margin-bottom: 6px;
}
.biomarker-card .bm-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vv-green), var(--vv-green-dark));
  border-radius: 3px;
  transition: width 1s var(--ease);
}
.biomarker-card .bm-ref {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-3); font-weight: 500;
}

.advice-card {
  background: var(--vv-berry);
  color: white;
  border-radius: var(--r-lg);
  padding: 22px;
  margin-top: 16px;
}
.advice-card .a-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 10px;
  font-family: var(--body);
}
.advice-card .a-text {
  font-family: var(--display); font-size: 18px; font-weight: 500;
  color: white; line-height: 1.3; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.advice-card .btn { padding: 11px 18px; font-size: 13px; }
.advice-card .btn-outline { border-color: white; color: white; }

.checkin-card {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-top: 16px;
}
.checkin-card .h-3 { margin-bottom: 6px; }
.checkin-card .sub { font-size: 13px; margin-bottom: 16px; }
.checkin-row { display: flex; justify-content: space-between; gap: 6px; }
.checkin-btn {
  flex: 1; padding: 14px 0;
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-md);
  font-size: 22px;
  cursor: pointer;
  transition: all .2s var(--ease-spring);
}
.checkin-btn:hover { background: var(--line-soft); }
.checkin-btn:active { transform: scale(.94); }
.checkin-btn.selected {
  background: var(--ink); border-color: var(--ink);
  transform: scale(1.06);
}

/* ============================================================
   FOOD LOG
============================================================ */

.log-actions-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px;
  margin: 16px 0 24px;
}
.log-actions-row .btn { padding: 14px 10px; font-size: 13px; }

.log-section-title {
  font-family: var(--body);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 20px 0 10px;
}
.log-meal {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
  transition: all .2s;
}
.log-meal.empty { opacity: .5; border-style: dashed; }
.log-meal.done { background: var(--vv-green-tint); border-color: transparent; opacity: 1; }

.day-totals {
  background: var(--vv-green-tint);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-top: 24px;
}
.day-totals .eyebrow { margin-bottom: 14px; background: rgba(255,255,255,.7); border-color: transparent; }
.day-totals .totals-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.total-item {
  text-align: center; padding: 12px 4px;
  background: var(--paper); border-radius: var(--r-md);
}
.total-item .num {
  font-family: var(--display); font-size: 22px; font-weight: 500;
  letter-spacing: -0.025em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.total-item .num small { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.total-item .lbl {
  font-size: 10px; color: var(--ink-3); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-top: 2px;
}

/* ============================================================
   LIFEHACKS — Block 3: improved readability + food/lifestyle card feel
   Card anatomy: [category pill] [status pill] → strong title →
   short explanation → «читать полностью» → expanded details → source area
============================================================ */

.lifehack-filters {
  display: block;
  margin-bottom: 14px;
}
.lifehack-filters::-webkit-scrollbar { display: none; }

/* --- Filter chips: warm, rounded, food/lifestyle card feel --- */
.lh-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s var(--ease);
  box-shadow: 0 1px 2px rgba(26,26,26,0.03);
}
.lh-chip:hover:not(.lh-chip-active) {
  background: var(--line-soft);
  border-color: var(--line);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(26,26,26,0.06);
}
.lh-chip-active {
  background: var(--vv-green);
  color: white;
  border-color: var(--vv-green);
  box-shadow: 0 2px 8px rgba(45,190,100,0.25);
}
.lh-chip-goals {
  background: var(--vv-green-tint);
  color: var(--vv-green-dark);
  border-color: rgba(45,190,100,0.25);
}
.lh-chip-goals.lh-chip-active {
  background: var(--vv-green);
  color: white;
  border-color: var(--vv-green);
}
.lh-chip-count {
  font-size: 10px;
  font-weight: 700;
  background: rgba(0,0,0,0.06);
  color: var(--ink-3);
  padding: 1px 6px;
  border-radius: 99px;
  line-height: 1.4;
}
.lh-chip-active .lh-chip-count {
  background: rgba(255,255,255,0.25);
  color: white;
}
.lh-chip-more {
  background: transparent !important;
  border-style: dashed !important;
  border-color: var(--ink-4) !important;
  color: var(--ink-3);
  font-weight: 700;
}
.lh-chip-more:hover {
  background: var(--line-soft) !important;
  color: var(--ink-2);
}

/* Legacy .lh-filter kept for backward compat if any external code uses it */
.lh-filter { display: none; }

/* --- Card list --- */
.lifehack-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Card base: warm paper feel with subtle depth --- */
.lifehack-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .25s var(--ease);
  box-shadow: 0 1px 3px rgba(26,26,26,0.04);
}
.lifehack-card.featured {
  background: var(--vv-green-tint);
  border-color: rgba(45,190,100,0.15);
}
.lifehack-card.berry {
  background: var(--vv-berry);
  color: white;
  border-color: transparent;
}
.lifehack-card.dark {
  background: var(--ink);
  color: white;
  border-color: transparent;
}

/* --- Card top section: pills + title + short explanation --- */
.lh-top {
  padding: 20px 20px 16px;
}
.lh-tag-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Category / status pills */
.lh-tag {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--line-soft);
  color: var(--ink-3);
}
/* Area pill: slightly warmer */
.lh-tag-area {
  background: rgba(45,190,100,0.08);
  color: var(--vv-green-dark);
}
/* Strength pill: subtle */
.lh-tag-str {
  background: rgba(0,0,0,0.04);
  color: var(--ink-3);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
/* Confidence levels */
.lh-tag.hot {
  background: var(--vv-yellow);
  color: var(--ink);
}
.lh-tag.new {
  background: var(--vv-green);
  color: white;
}
/* Pills on dark/berry cards */
.lifehack-card.berry .lh-tag,
.lifehack-card.dark .lh-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.lifehack-card.featured .lh-tag {
  background: rgba(255,255,255,0.55);
  color: var(--vv-green-dark);
}

/* Strong title */
.lh-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.lifehack-card.berry .lh-title,
.lifehack-card.dark .lh-title { color: white; }

/* Short human-readable explanation */
.lh-preview {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 500;
}
.lifehack-card.berry .lh-preview,
.lifehack-card.dark .lh-preview { color: rgba(255,255,255,0.85); }

/* --- «читать полностью» toggle control --- */
.lh-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  color: var(--vv-green-dark);
  cursor: pointer;
  transition: color .15s;
}
.lh-read-more:hover { color: var(--vv-green); }
.lh-read-more svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2.5;
  transition: transform .3s var(--ease);
}
.lifehack-card.open .lh-read-more svg {
  transform: rotate(180deg);
}
.lifehack-card.berry .lh-read-more,
.lifehack-card.dark .lh-read-more {
  color: rgba(255,255,255,0.8);
}
.lifehack-card.berry .lh-read-more:hover,
.lifehack-card.dark .lh-read-more:hover {
  color: white;
}

/* --- Expanded section: practical details + sources --- */
.lh-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.lifehack-card.open .lh-expanded {
  max-height: 2400px;
}

.lh-bottom {
  padding: 0 20px 20px;
}
.lh-bottom-content {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 16px;
  margin-top: 4px;
}
.lifehack-card.berry .lh-bottom-content,
.lifehack-card.dark .lh-bottom-content {
  border-top-color: rgba(255,255,255,0.15);
}

/* Full effect text */
.lh-detail {
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 14px;
}
.lh-detail-effect {
  /* Slightly larger for main expanded text */
  font-size: 14px;
}
.lifehack-card.berry .lh-detail,
.lifehack-card.dark .lh-detail { color: rgba(255,255,255,0.82); }
.lh-detail strong { color: var(--ink); font-weight: 700; }
.lifehack-card.berry .lh-detail strong,
.lifehack-card.dark .lh-detail strong { color: white; }

/* --- Organizations area: readable chip labels --- */
.lh-orgs {
  margin-bottom: 14px;
}
.lh-orgs-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.lh-orgs-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lh-org-chip {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(45,190,100,0.08);
  color: var(--vv-green-dark);
  line-height: 1.3;
}
.lifehack-card.berry .lh-orgs-label,
.lifehack-card.dark .lh-orgs-label { color: rgba(255,255,255,0.65); }
.lifehack-card.berry .lh-org-chip,
.lifehack-card.dark .lh-org-chip {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

/* --- Source/reference row: clickable, shows human-readable preview --- */
.lh-source {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--line-soft);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.lh-source:hover {
  background: var(--line);
  transform: translateY(-1px);
}
.lifehack-card.berry .lh-source,
.lifehack-card.dark .lh-source { background: rgba(255,255,255,0.1); }
.lifehack-card.berry .lh-source:hover,
.lifehack-card.dark .lh-source:hover { background: rgba(255,255,255,0.18); }

.lh-source-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-xs);
  background: var(--vv-green-tint);
  color: var(--vv-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.lifehack-card.berry .lh-source-icon {
  background: rgba(255,255,255,0.15);
  color: white;
}
.lh-source-text { flex: 1; min-width: 0; }
.lh-source-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lifehack-card.berry .lh-source-title,
.lifehack-card.dark .lh-source-title { color: white; }
.lh-source-meta {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lifehack-card.berry .lh-source-meta,
.lifehack-card.dark .lh-source-meta { color: rgba(255,255,255,0.6); }
.lh-source-arrow {
  color: var(--ink-4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.lifehack-card.berry .lh-source-arrow,
.lifehack-card.dark .lh-source-arrow { color: rgba(255,255,255,0.5); }

/* Legacy .lh-source .ext kept for backward compat */
.lh-source .ext {
  color: var(--ink-3); flex-shrink: 0;
}
.lh-source .ext svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.lifehack-card.berry .lh-source .ext,
.lifehack-card.dark .lh-source .ext { color: rgba(255,255,255,0.7); }

/* --- Collapse button (inside expanded section) --- */
.lh-expand-btn {
  width: 100%;
  margin-top: 14px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color .15s;
}
.lifehack-card.berry .lh-expand-btn,
.lifehack-card.dark .lh-expand-btn { color: rgba(255,255,255,0.7); }
.lh-expand-btn:hover { color: var(--ink); }
.lh-expand-btn svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2.5;
  transition: transform .25s var(--ease);
}
.lifehack-card.open .lh-expand-btn svg { transform: rotate(180deg); }

/* ============================================================
   COOK MODE — выбор «готовлю сам / кулинария»
============================================================ */

.cook-mode {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}
.cook-mode-title {
  font-family: var(--body);
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.cook-mode-buttons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.cook-mode-btn {
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: var(--body);
}
.cook-mode-btn:hover { border-color: var(--vv-green); }
.cook-mode-btn.active {
  background: var(--vv-green-tint);
  border-color: var(--vv-green);
}
.cook-mode-btn .cm-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.cook-mode-btn .cm-emoji {
  font-size: 22px; line-height: 1;
}
.cook-mode-btn .cm-title {
  font-size: 14px; font-weight: 700;
  color: var(--ink);
}
.cook-mode-btn.active .cm-title { color: var(--vv-green-dark); }
.cook-mode-btn .cm-desc {
  font-size: 11px; font-weight: 500;
  color: var(--ink-3);
  line-height: 1.3;
}

/* Бюджет на экране корзины. Кнопок здесь больше нет — режимов бюджета всего один,
   выбирать было не из чего (см. _mvp_body_design.html). Правила .budget-mode-buttons /
   .budget-btn / .bb-* удалены вместе с разметкой, чтобы не копить мёртвый CSS. */
.budget-mode {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px 14px 10px;
  margin-bottom: 14px;
}
.budget-mode-title {
  font-family: var(--body);
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.budget-mode-note { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.cook-mode-hint {
  margin-top: 10px;
  font-size: 11px; font-weight: 500;
  color: var(--ink-3);
  padding-left: 2px;
}

/* Пустое состояние корзины */
.cart-empty {
  text-align: center;
  padding: 40px 20px 36px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  margin-top: 4px;
}
.cart-empty .ce-icon {
  font-size: 44px;
  opacity: .5;
  margin-bottom: 10px;
}
.cart-empty .ce-title {
  font-family: var(--display);
  font-size: 20px; font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.cart-empty .ce-sub {
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
}

/* Анимация наполнения корзины */
.cart-item.cart-fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: cartFadeIn .35s var(--ease) forwards;
}
@keyframes cartFadeIn {
  to { opacity: 1; transform: none; }
}

/* Блок рецептов */
.recipes-block {
  margin-top: 16px;
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 12px 10px;
}
.recipes-title {
  font-family: var(--body);
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0 4px;
}
.recipe-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s var(--ease);
}
.recipe-row:hover { background: var(--bg-2); }
.recipe-row .rr-emoji {
  width: 38px; height: 38px;
  background: var(--vv-green-tint);
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.recipe-row .rr-body { flex: 1; min-width: 0; }
.recipe-row .rr-name {
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.recipe-row .rr-meta {
  font-size: 11px; font-weight: 500;
  color: var(--ink-3);
  margin-top: 3px;
}
.recipe-row .rr-arrow {
  color: var(--ink-3);
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================================
   "ПОЧЕМУ ТАКОЙ РАЦИОН?" — expandable в корзине
============================================================ */

.cart-why {
  background: var(--paper);
  border: 1.3px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all .25s var(--ease);
}
.cart-why.open {
  background: var(--vv-green-tint);
  border-color: transparent;
}
.cart-why-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  cursor: pointer;
}
.cart-why-icon {
  width: 36px; height: 36px; border-radius: var(--r-xs);
  background: var(--vv-green-tint);
  color: var(--vv-green-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--display); font-size: 18px; font-weight: 700;
}
.cart-why.open .cart-why-icon { background: var(--vv-green); color: white; }
.cart-why-text { flex: 1; }
.cart-why-title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.cart-why-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.cart-why-chev {
  color: var(--ink-3); transition: transform .3s var(--ease);
}
.cart-why.open .cart-why-chev { transform: rotate(180deg); color: var(--vv-green-dark); }
.cart-why-chev svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.cart-why-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.cart-why.open .cart-why-body { max-height: 1500px; }
.cart-why-content { padding: 0 16px 18px; }

.why-section { margin-bottom: 16px; }
.why-section:last-child { margin-bottom: 0; }
.why-section-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--vv-green-dark);
  margin-bottom: 8px;
}
.why-section-title .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--vv-green);
}
.why-section-body {
  font-family: var(--body); font-size: 13px; color: var(--ink-2);
  line-height: 1.55; font-weight: 500;
}
.why-section-body strong { color: var(--ink); font-weight: 700; }
.why-timeline {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 10px;
}
.why-time-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; background: rgba(255,255,255,0.6);
  border-radius: var(--r-md);
}
.why-time-label {
  font-family: var(--display); font-size: 15px; font-weight: 500;
  color: var(--vv-green-dark); min-width: 58px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.why-time-body { flex: 1; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; font-weight: 500; }
.why-time-body strong { color: var(--ink); font-weight: 700; }

.why-pair {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(255,255,255,0.6);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.why-pair:last-child { margin-bottom: 0; }
.why-pair-emoji {
  font-size: 20px; line-height: 1; flex-shrink: 0;
  width: 28px; text-align: center;
}
.why-pair-plus {
  font-family: var(--display); font-size: 14px; font-weight: 600;
  color: var(--vv-green); flex-shrink: 0;
}
.why-pair-text {
  font-size: 12.5px; color: var(--ink-2); font-weight: 500; line-height: 1.4;
}
.why-pair-text strong { color: var(--ink); font-weight: 700; }

.why-link-source {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--vv-green-dark); font-weight: 700;
  text-decoration: none; margin-top: 6px;
}
.why-link-source:hover { text-decoration: underline; }

/* ============================================================
   BOTTOM NAV
============================================================ */

.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(247,246,242,0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  display: none;
  z-index: 50;
}
.bottom-nav.visible { display: flex; }
.bottom-nav button {
  flex: 1; background: transparent; border: none;
  padding: 6px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .2s;
  font-family: var(--body);
  min-width: 0;
}
.bottom-nav button svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  transition: all .25s var(--ease-spring);
  flex-shrink: 0;
}
.bottom-nav button span {
  font-family: var(--body); font-size: 9px; font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.bottom-nav button.active { color: var(--vv-green); }
.bottom-nav button.active svg { stroke-width: 2.3; transform: scale(1.08); }
.bottom-nav button.active span { font-weight: 800; }

/* ИИ — постоянная ЯРКАЯ тёмно-зелёная таблетка с заливкой, выделяется независимо от active. */
.bottom-nav #nav-chat {
  color: #fff;
  background: #0E9E4E;
  border-radius: var(--r-sm);
  margin: 2px 1px;
}
.bottom-nav #nav-chat svg { stroke: #fff; stroke-width: 2.4; transform: scale(1.08); }
.bottom-nav #nav-chat span { color: #fff; font-weight: 800; }
.bottom-nav #nav-chat.active {
  color: #fff;
  background: #0A7C3C;
}
.bottom-nav #nav-chat.active svg { stroke: #fff; stroke-width: 2.5; transform: scale(1.12); }
.bottom-nav #nav-chat.active span { color: #fff; font-weight: 800; }

/* ============================================================
   DEV banner
============================================================ */

.dev-banner {
  background: var(--ink);
  color: white;
  text-align: center;
  padding: 7px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--body);
}
.dev-banner .tag {
  color: var(--ink);
  background: var(--vv-yellow);
  padding: 2px 7px; border-radius: 3px;
  font-weight: 800;
}

/* Utilities */
.spacer-lg { height: 32px; }
.spacer-md { height: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.arrow-ico { display: inline-flex; }

/* ===========================
   Lucide SVG icons via CSS mask
   =========================== */
.vv-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0;
}
.vv-icon-lg { width: 32px; height: 32px; }
.vv-icon-xl { width: 40px; height: 40px; }
.vv-icon-sm { width: 18px; height: 18px; }
/* Цветовые варианты (через color наследует CSS var) */
.vv-icon-green { color: var(--vv-green); }
.vv-icon-berry { color: var(--vv-berry); }
.vv-icon-yellow { color: var(--vv-yellow); }
.vv-icon-ink2 { color: var(--ink-2); }
.vv-icon-ink3 { color: var(--ink-3); }
.vv-icon-white { color: white; }

/* Аватар цели — кружок с иконкой внутри */
.goal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vv-green-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vv-green-dark, #2E7D32);
  flex-shrink: 0;
}
.goal-avatar .vv-icon { width: 22px; height: 22px; }

/* ===========================
   Goal product tiles (3 в ряд) — единые размеры
   =========================== */
.goal-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.goal-product-tile {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.goal-product-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--line-soft);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 6px;
}
.goal-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.goal-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.goal-product-name {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink-2);
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.goal-product-kbju {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
  height: 14px;
  line-height: 1.2;
  overflow: hidden;
}

/* ===========================
   Lifehack modal — полная статья
   =========================== */
.vv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 22, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  animation: vvFadeIn .2s ease-out;
}
.vv-modal-backdrop.open {
  display: flex;
}
@keyframes vvFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vvSlideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.vv-modal-content {
  background: var(--card);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: relative;
  animation: vvSlideUp .25s ease-out;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 600px) {
  .vv-modal-backdrop { align-items: center; padding: 24px; }
  .vv-modal-content { border-radius: var(--r-lg); max-height: 86vh; }
}
.vv-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.vv-modal-close:hover { background: var(--paper); color: var(--vv-red); }

.lh-modal-head {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.lh-modal-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.lh-meta-pill {
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(0,0,0,0.05);
  border-radius: 99px;
  color: var(--ink-2);
  font-weight: 600;
}
.lh-modal-body {
  padding: 16px 20px 24px;
}
.lh-section {
  margin-top: 18px;
}
.lh-section:first-child { margin-top: 0; }
.lh-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.lh-effect-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.lh-jur-chip {
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(0,0,0,0.05);
  border-radius: 99px;
  color: var(--ink-3);
}
.lh-goal-chip {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--vv-green-tint);
  border-radius: 99px;
  color: var(--vv-green-dark, #2E7D32);
  font-weight: 600;
}
.lh-safe-quote {
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.04);
  border-left: 3px solid var(--vv-green, #2DBE64);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Card hover: gentle lift effect */
.lifehack-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26,26,26,0.07);
}
.lifehack-card:active { transform: scale(0.99); }
/* When card is open, disable hover lift to avoid jank */
.lifehack-card.open:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(26,26,26,0.06);
}

/* ===========================
   Habit list (на дашборде в карточке цели)
   =========================== */
.habit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}
.habit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(45, 190, 100, 0.06);
  border: 1px solid rgba(45, 190, 100, 0.18);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.habit-arrow {
  font-size: 22px;
  color: var(--ink-3);
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
}
.habit-row:hover { background: rgba(45, 190, 100, 0.12); }
.habit-row:active { transform: scale(0.99); }
.habit-emoji {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.habit-icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-xs);
  background: rgba(45, 190, 100, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vv-green-dark, #2E7D32);
}
.habit-icon-wrap .vv-icon { width: 20px; height: 20px; }
.push-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--vv-green-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vv-green-dark, #2E7D32);
}
.push-icon-wrap .vv-icon { width: 24px; height: 24px; }
.mode-row.selected .push-icon-wrap { background: var(--vv-green); color: white; }
.habit-text {
  flex: 1;
  min-width: 0;
}
.habit-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 2px;
}
.habit-doing {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.habit-strength {
  flex-shrink: 0;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
  text-transform: lowercase;
  white-space: nowrap;
}
.habit-strength-сильная { background: #C8E6C9; color: #1B5E20; }
.habit-strength-умеренная { background: #FFE0B2; color: #E65100; }
.habit-strength-слабая { background: #ECEFF1; color: #546E7A; }

/* ===========================
   Lifehack tabs (Факты / Привычки)
   =========================== */
.lh-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--line-soft);
  border-radius: var(--r-sm);
  padding: 3px;
}
.lh-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: calc(var(--r-sm) - 3px);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .15s;
}
.lh-tab.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.lh-subfilters {
  margin-bottom: 14px;
}
.lh-row-main {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lh-row-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.lh-row-scroll::-webkit-scrollbar { display: none; }
.lh-row-scroll .lh-chip { flex-shrink: 0; }
/* Legacy .lh-filter-more kept but hidden in favor of .lh-chip-more */
.lh-filter-more { display: none; }
.lh-row-extra {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  animation: vv-fade-in .25s ease;
}
@keyframes vv-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ===========================
   Cart "Почему такой рацион?" — стиль старого MVP
   =========================== */
.cart-why {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all .25s;
}
.cart-why.open {
  background: var(--vv-green-tint);
  border-color: transparent;
}
.cart-why-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  cursor: pointer;
}
.cart-why-icon {
  width: 36px; height: 36px; border-radius: var(--r-xs);
  background: var(--vv-green-tint);
  color: var(--vv-green-dark, #2E7D32);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px; font-weight: 700;
}
.cart-why.open .cart-why-icon { background: var(--vv-green); color: white; }
.cart-why-text { flex: 1; }
.cart-why-title { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.cart-why-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; font-weight: 500; }
.cart-why-chev {
  color: var(--ink-3); transition: transform .3s;
  display: flex; align-items: center; justify-content: center;
}
.cart-why.open .cart-why-chev { transform: rotate(180deg); color: var(--vv-green-dark, #2E7D32); }

.cart-why-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s;
}
.cart-why.open .cart-why-body { max-height: 2400px; }
.cart-why-content { padding: 0 16px 18px; }
.cart-why-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   Почему такой рацион — секции в стиле старого MVP
============================================================ */
.why-section { margin-bottom: 18px; }
.why-section:last-child { margin-bottom: 0; }
.why-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--vv-green-dark, #2E7D32);
  margin-bottom: 10px;
}
.why-section-title .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--vv-green);
}
.why-section-body {
  font-size: 13px; color: var(--ink-2);
  line-height: 1.55; font-weight: 500;
  margin-bottom: 10px;
}
.why-section-body strong { color: var(--ink); font-weight: 700; }

.why-timeline {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 6px;
}
.why-time-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px; background: rgba(255,255,255,0.6);
  border-radius: var(--r-md);
}
.why-time-label {
  font-size: 15px; font-weight: 600;
  color: var(--vv-green-dark, #2E7D32); min-width: 58px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.why-time-body { flex: 1; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; font-weight: 500; }
.why-time-body strong { color: var(--ink); font-weight: 700; }

.why-pair {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(255,255,255,0.6);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}
.why-pair:last-child { margin-bottom: 0; }
.why-pair.bad { background: rgba(215,20,75,0.06); }
.why-pair-emoji {
  font-size: 20px; line-height: 1; flex-shrink: 0;
  width: 28px; text-align: center;
}
.why-pair-plus {
  font-size: 14px; font-weight: 600;
  color: var(--vv-green); flex-shrink: 0;
}
.why-pair-plus.minus { color: var(--vv-berry); }
.why-pair-text {
  font-size: 12.5px; color: var(--ink-2); font-weight: 500; line-height: 1.4;
}
.why-pair-text strong { color: var(--ink); font-weight: 700; }

.why-link-source {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--vv-green-dark, #2E7D32); font-weight: 700;
  text-decoration: none; margin-top: 10px;
  cursor: pointer;
}
.why-link-source:hover { text-decoration: underline; }
.cart-why-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cart-why-ico {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1.3;
}
.cart-why-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.cart-why-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
}

/* ===========================
   Cart row — единая высота
   =========================== */
.vv-cart-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  border: 1px solid var(--line-soft);
  min-height: 116px;
}
.vv-cart-img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: var(--line-soft);
  display: block;
}
.vv-cart-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.vv-cart-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.vv-cart-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}
.vv-cart-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 20px;
  margin-bottom: 4px;
  align-items: center;
}
.vv-cart-kbju {
  font-size: 11px;
  color: var(--ink-3);
  height: 14px;
  line-height: 1.2;
  overflow: hidden;
  margin-bottom: 6px;
}
.vv-cart-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vv-cart-price {
  font-weight: 700;
  color: var(--vv-berry);
  font-size: 15px;
}
.vv-cart-remove {
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.vv-cart-remove:hover { color: var(--vv-red); }
.vv-cart-nutr-btn {
  background: var(--vv-green-tint);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.vv-cart-nutr-btn:hover { background: rgba(45, 190, 100, 0.25); }

/* Nutrients modal contents */
.nutr-group {
  margin-top: 16px;
}
.nutr-group:first-child { margin-top: 0; }
.nutr-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.nutr-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.nutr-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 12px;
}
.nutr-label {
  color: var(--ink-2);
}
.nutr-value {
  font-weight: 600;
  color: var(--ink);
}
.nutr-value small {
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 2px;
}
@media (max-width: 480px) {
  .nutr-rows { grid-template-columns: 1fr; }
}
.vv-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}
.vv-badge-good { background: var(--vv-lime, #C5E1A5); color: white; }
.vv-badge-warn { background: #FFE0E0; color: #B71C1C; }
.vv-badge-allergy { background: #FFF3E0; color: #cc6600; font-weight: 500; }
.vv-badge-diet { background: #E8F5D8; color: #2E7D32; font-weight: 500; }
.vv-badge-placeholder { display: inline-block; height: 18px; }


.arrow-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
/* ============================================
   AI Chat (LLM-powered с CART/CHAT)
   ============================================ */
.vv-ai-text { margin: 6px 0 4px; line-height: 1.55; font-size: 14px; }
.vv-ai-text strong { color: var(--ink, #222); }
.vv-kbzhu-line {
  display: inline-block;
  background: rgba(45, 190, 100, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vv-green, #2DBE64);
  letter-spacing: 0.2px;
  margin: 2px 0;
}
.vv-ai-cart {
  margin-top: 12px;
  border: 1px solid #e8eae5;
  border-radius: var(--r-md);
  background: #fafbf8;
  padding: 12px;
}
.vv-ai-cart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed #d8dad3;
}
.vv-ai-cart-goal { font-weight: 700; color: var(--vv-green-dark, #2E7D32); font-size: 13px; }
.vv-ai-cart-total { font-weight: 700; font-size: 13px; color: #111; }

.vv-ai-cart-item {
  display: flex; gap: 10px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid #ededeb;
}
.vv-ai-cart-item:last-child { border-bottom: none; }
.vv-ai-cart-img {
  width: 44px; height: 44px;
  border-radius: var(--r-xs); object-fit: cover; flex-shrink: 0;
  background: #f0f0f0;
}
.vv-ai-cart-body { flex: 1; min-width: 0; }
.vv-ai-cart-name {
  font-size: 13px; font-weight: 500; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vv-ai-cart-meta { font-size: 11px; color: #666; margin-top: 2px; }

.vv-ai-cart-actions {
  display: flex; gap: 8px; margin-top: 10px;
}
.vv-ai-btn {
  flex: 1; padding: 9px 12px; border: none; border-radius: var(--r-xs);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: opacity 0.2s;
}
.vv-ai-btn:disabled { opacity: 0.6; }
.vv-ai-btn-primary { background: var(--vv-green, #2E7D32); color: white; }
.vv-ai-btn-ghost {
  background: white; color: var(--vv-green-dark, #2E7D32);
  border: 1.5px solid var(--vv-green, #2E7D32);
}

.vv-ai-sources, .vv-ai-disclaimer {
  margin-top: 8px; font-size: 11px; color: #777;
  padding: 4px 8px; border-radius: 6px;
}
.vv-ai-sources { background: #f0f4ec; }
.vv-ai-disclaimer { background: #fff5e6; color: #a05a00; font-style: italic; }

/* кнопка + / ✓ на каждой карточке товара */
.vv-ai-pick {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1.5px solid var(--vv-green, #2E7D32);
  background: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: var(--vv-green, #2E7D32);
  transition: all 0.15s;
  font-family: inherit;
  position: relative;
}
.vv-ai-pick:hover { transform: scale(1.08); }
.vv-ai-pick.checked {
  background: var(--vv-green, #2E7D32);
  color: white;
  border-color: var(--vv-green, #2E7D32);
}
.vv-ai-pick .vv-pick-plus { display: block; }
.vv-ai-pick .vv-pick-check { display: none; }
.vv-ai-pick.checked .vv-pick-plus { display: none; }
.vv-ai-pick.checked .vv-pick-check { display: block; }

/* Активная корзина — карточки товаров на экране Cart */
.vv-cart-row-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--card, white); border-radius: var(--r-md, 12px);
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--line-soft, #ededeb);
}
.vv-cart-row-img {
  width: 50px; height: 50px; border-radius: var(--r-xs); object-fit: cover; flex-shrink: 0;
  background: #f0f0f0;
}
.vv-cart-row-body { flex: 1; min-width: 0; }
.vv-cart-row-name {
  font-size: 14px; font-weight: 500; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vv-cart-row-meta { font-size: 12px; color: #666; margin-top: 3px; }
.vv-cart-row-del {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: #f5f5f5; cursor: pointer; font-size: 20px; color: #999;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vv-cart-row-del:hover { background: #ffe0e0; color: #c00; }

/* Карусель готовых корзин-шаблонов */
.vv-tpl-card {
  background: var(--card, white);
  border: 1px solid var(--line-soft, #ededeb);
  border-radius: var(--r-md, 12px);
  padding: 14px;
}
.vv-tpl-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px dashed #e5e5e3; margin-bottom: 10px;
}
.vv-tpl-goal { font-weight: 700; font-size: 15px; color: var(--vv-green-dark, #2E7D32); }
.vv-tpl-meta { font-size: 11px; color: var(--ink-3, #888); margin-top: 2px; }
.vv-tpl-items { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.vv-tpl-item { display: flex; justify-content: space-between; font-size: 12.5px; }
.vv-tpl-item-name { color: var(--ink-2, #333); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-tpl-item-price { color: var(--ink-3, #888); margin-left: 8px; flex-shrink: 0; }
.vv-tpl-more { font-size: 11px; color: var(--ink-3, #888); font-style: italic; padding-top: 2px; }

/* Корзина по приёмам пищи */
.vv-meal-block {
  background: var(--card, white);
  border: 1px solid var(--line-soft, #ededeb);
  border-radius: var(--r-md, 12px);
  padding: 10px 12px 6px;
  margin-bottom: 12px;
}
.vv-meal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 4px 10px; border-bottom: 1px dashed #e5e5e3; margin-bottom: 8px;
}
.vv-meal-title { font-weight: 700; font-size: 15px; color: var(--ink-2, #333); }
.vv-meal-total { font-weight: 700; font-size: 14px; color: var(--vv-green-dark, #2E7D32); }

.vv-meal-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 4px;
  border-bottom: 1px solid #f3f3f1;
}
.vv-meal-item:last-child { border-bottom: none; }
.vv-meal-img {
  width: 50px; height: 50px; border-radius: var(--r-xs); object-fit: cover;
  flex-shrink: 0; background: #f5f5f5;
}
.vv-meal-body { flex: 1; min-width: 0; }
.vv-meal-name {
  font-size: 13.5px; font-weight: 500; color: #111;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vv-meal-meta { font-size: 11.5px; color: #666; margin-top: 2px; }
/* Базовое правило на случай, если карточку товара отрисуют вне #screen-cart:
   цена всё равно должна быть видимой строкой, а не хвостом обрезаемого блока. */
.vv-meal-price { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.vv-meal-reason {
  font-size: 11px; color: var(--vv-green-dark, #2E7D32);
  font-style: italic; margin-top: 4px; line-height: 1.35;
}

.vv-meal-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.vv-meal-btn-eat {
  background: #f0f3f0;
  color: #b8c0c8;
  border: none;
  border-radius: var(--r-xs);
  padding: 0;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.vv-meal-btn-eat svg { width: 16px; height: 16px; }
.vv-meal-btn-eat:hover { background: var(--vv-green-tint, #E4F6EB); color: var(--vv-green-dark, #1FA650); }
.vv-meal-btn-eat:disabled { opacity: 0.5; cursor: wait; }
.vv-meal-item.is-eaten .vv-meal-btn-eat {
  background: var(--vv-green, #2DBE64);
  color: white;
}
.vv-meal-item.is-eaten {
  background: var(--vv-green-tint, #E4F6EB);
  border-color: var(--vv-green, #2DBE64);
}
.vv-meal-item.is-eaten .vv-meal-name {
  text-decoration: line-through;
  text-decoration-color: var(--vv-green, #2DBE64);
  opacity: 0.85;
}

.vv-meal-btn-swap, .vv-meal-btn-del {
  width: 28px; height: 28px; border: none; border-radius: 50%;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.vv-meal-btn-swap { background: #e8f5e9; color: var(--vv-green-dark, #2E7D32); }
.vv-meal-btn-swap:hover { background: var(--vv-green, #2E7D32); color: white; }
.vv-meal-btn-del { background: #f5f5f5; color: #999; font-size: 18px; }
.vv-meal-btn-del:hover { background: #ffe0e0; color: #c00; }

/* Модалка с альтернативами */
.vv-modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.vv-modal-card {
  background: white; border-radius: var(--r-md); padding: 18px;
  max-width: 420px; width: 100%; max-height: 80vh; overflow-y: auto;
}
.vv-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vv-modal-title { font-weight: 700; font-size: 15px; color: #111; flex: 1; padding-right: 10px; }
.vv-modal-close {
  background: #f5f5f5; border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; font-size: 22px; color: #666;
  display: flex; align-items: center; justify-content: center;
}
.vv-alt-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border: 1px solid #ededeb; border-radius: var(--r-xs);
  margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
}
.vv-alt-item:hover { border-color: var(--vv-green, #2E7D32); background: #f8fbf6; }
.vv-alt-img { width: 50px; height: 50px; border-radius: var(--r-xs); object-fit: cover; flex-shrink: 0; background: #f0f0f0; }
.vv-alt-name { font-size: 13.5px; font-weight: 600; color: #111; line-height: 1.3; }
.vv-alt-why { font-size: 11.5px; color: #666; margin-top: 3px; line-height: 1.35; }

/* Саммари под целью на главной — "что делать кратко" */
.vv-goal-summary {
  background: linear-gradient(135deg, var(--vv-green-tint) 0%, #fff 100%);
  border-radius: var(--r-md, 12px);
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(45, 190, 100, 0.15);
}
.vv-goal-summary-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--vv-green-dark, #1FA650);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.vv-goal-summary-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, #333);
  font-weight: 500;
}

/* Главная: БОЛЬШАЯ корзина-hero (главное действие на экране) */
.vv-cart-hero {
  position: relative;
  background: linear-gradient(135deg, #2DBE64 0%, #1FA650 100%);
  border-radius: var(--r-lg, 18px);
  padding: 26px 22px 22px;
  margin-bottom: 18px;
  color: white;
  box-shadow: 0 10px 28px rgba(45, 190, 100, 0.28);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
}
.vv-cart-hero::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.vv-cart-hero:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(45, 190, 100, 0.35); }
.vv-cart-hero:active { transform: translateY(0); }
.vv-cart-hero-eyebrow {
  font-family: var(--body, 'Manrope'), sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.vv-cart-hero-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.vv-cart-hero-sub {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.vv-cart-hero-btn {
  background: white;
  color: var(--vv-green-dark, #1FA650);
  border: none;
  border-radius: var(--r-sm);
  padding: 12px 20px;
  font-family: var(--body, 'Manrope'), sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
  position: relative; z-index: 1;
}
.vv-cart-hero-btn:active { transform: scale(0.97); }

/* Главная: collapsible-карточка цели */
.goal-collapsible-head { cursor: pointer; user-select: none; position: relative; }
.goal-collapsible-chev {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-4); transition: transform .2s;
}
.goal-collapsible-open .goal-collapsible-chev { transform: translateY(-50%) rotate(90deg); color: var(--vv-green-dark); }
.goal-collapsible-body { padding-top: 8px; display: flex; flex-direction: column; gap: 14px; }
.goal-collapsible-body[hidden] { display: none; }
.goal-detail-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3, #888); margin-bottom: 8px;
}
.goal-detail-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.goal-product-tile-mini {
  background: var(--vv-green-tint, #E4F6EB); border-radius: var(--r-sm, 12px);
  padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.goal-product-tile-mini img {
  width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-xs); background: white;
}
.goal-product-placeholder-mini {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: white; border-radius: var(--r-xs);
}
.goal-product-name-mini { font-size: 11px; line-height: 1.3; text-align: center; color: var(--ink-2); }
.goal-detail-tip {
  background: var(--vv-green-tint); border-radius: var(--r-sm); padding: 12px;
  display: flex; gap: 10px; cursor: pointer; transition: background .15s;
}
.goal-detail-tip:hover { background: var(--vv-lime, #C5EFA9); }
.goal-detail-tip-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.goal-detail-tip-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.goal-detail-tip-effect { font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.habit-list-mini { display: flex; flex-direction: column; gap: 6px; }
.habit-row-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s;
}
.habit-row-mini:hover { border-color: var(--vv-green); }
.habit-text-mini { flex: 1; font-size: 13px; color: var(--ink-2); }
.habit-arrow-mini { color: var(--ink-4); font-size: 16px; }
.goal-detail-loading, .goal-detail-empty, .goal-detail-error {
  padding: 12px; text-align: center; font-size: 13px; color: var(--ink-3);
}
.goal-detail-error { color: var(--vv-berry); }

/* Главная: компактная карточка нормы ккал (внизу страницы) */
.vv-kcal-compact {
  background: var(--card, white);
  border: 1.3px solid var(--line, #ededeb);
  border-radius: var(--r-lg, 18px);
  padding: 16px 18px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.vv-kcal-compact-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.vv-kcal-compact-body { flex: 1; min-width: 0; }
.vv-kcal-compact-label {
  font-family: var(--body, 'Manrope'), sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3, #888);
  margin-bottom: 2px;
}
.vv-kcal-compact-value {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink, #1A1A1A);
}
.vv-kcal-compact-note {
  font-size: 12px;
  color: var(--ink-3, #888);
  margin-top: 2px;
}

/* Главная: CTA «Собрать корзину» — зелёный градиент VV-стиль (LEGACY — заменено на vv-cart-hero) */
.vv-cart-cta {
  background: linear-gradient(135deg, var(--vv-green-tint, #E4F6EB) 0%, var(--vv-lime, #9AE894) 100%);
  border-radius: var(--r-lg, 18px);
  padding: 22px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(45, 190, 100, 0.25);
}
.vv-cart-cta-eyebrow {
  font-family: var(--body, 'Manrope'), sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink, #1A1A1A);
  opacity: 0.7;
  margin-bottom: 8px;
}
.vv-cart-cta-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink, #1A1A1A);
  margin-bottom: 16px;
}
.vv-cart-cta-actions { display: flex; gap: 10px; }
.vv-cart-cta-btn-primary {
  flex: 1;
  background: var(--vv-green, #2DBE64);
  color: white;
  border: none;
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-family: var(--body, 'Manrope'), sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
  box-shadow: 0 4px 12px rgba(45, 190, 100, 0.25);
}
.vv-cart-cta-btn-primary:hover { background: var(--vv-green-dark, #1FA650); }
.vv-cart-cta-btn-primary:active { transform: scale(0.97); }

/* Главная: общий саммари-блок (под все цели) с кликабельными ссылками в Лайфхаки */
.vv-plan-summary {
  background: var(--paper, white);
  border: 1.3px solid var(--line, #ededeb);
  border-radius: var(--r-lg, 18px);
  padding: 18px 18px 16px;
  margin-bottom: 18px;
}
.vv-plan-summary-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--vv-green-dark, #1FA650);
  margin-bottom: 10px;
}
.vv-plan-summary-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2, #333);
}
.vv-plan-link {
  color: var(--vv-berry, #D7144B);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1.5px dotted var(--vv-berry, #D7144B);
  transition: opacity 0.15s;
}
.vv-plan-link:hover { opacity: 0.75; }

.vv-plan-keyword {
  font-weight: 600;
  border-bottom: none;
  text-decoration: none;
  cursor: default;
}

/* Главная: компактная карточка цели */
.goal-card-compact {
  background: var(--card, white);
  border: 1.3px solid var(--line, #ededeb);
  border-radius: var(--r-lg, 18px);
  padding: 16px 18px;
}
.goal-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.goal-card-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink, #1A1A1A);
}
.goal-card-progress {
  background: var(--vv-green-tint, #E4F6EB);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.goal-card-progress-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.goal-card-progress-label {
  font-size: 11px;
  color: var(--ink-3, #6A6A6A);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.goal-card-progress-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--vv-green-dark, #1FA650);
}
.goal-card-progress-bar {
  height: 6px;
  background: rgba(45, 190, 100, 0.15);
  border-radius: 99px;
  overflow: hidden;
}
.goal-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--vv-green, #2DBE64), var(--vv-lime, #9AE894));
  border-radius: 99px;
  transition: width 0.4s ease;
}
.goal-card-summary {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2, #333);
  margin-bottom: 12px;
}
.goal-card-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--vv-berry, #D7144B);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.goal-card-link:hover { opacity: 0.75; }

/* Корзина: блок «Почему такая корзина» */
.vv-why-cart {
  background: var(--paper, white);
  border: 1.3px solid var(--line, #ededeb);
  border-radius: var(--r-md, 12px);
  margin-bottom: 14px;
  overflow: hidden;
}
.vv-why-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%; background: transparent; border: none;
  padding: 14px 16px; cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.vv-why-icon { font-size: 20px; }
.vv-why-title {
  flex: 1;
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink, #1A1A1A);
}
.vv-why-chev {
  color: var(--ink-3, #6A6A6A);
  transition: transform 0.25s ease;
}
.vv-why-cart.open .vv-why-chev { transform: rotate(180deg); }
.vv-why-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s ease;
}
.vv-why-cart.open .vv-why-body { max-height: 3000px; }

.vv-why-section {
  padding: 6px 16px 16px;
  border-top: 1px solid var(--line-soft, #f3f3f1);
}
.vv-why-section-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink, #1A1A1A);
  margin: 12px 0 10px;
}
.vv-why-meal {
  display: flex; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft, #f3f3f1);
}
.vv-why-meal:last-child { border-bottom: none; }
.vv-why-time {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--vv-green-dark, #1FA650);
  width: 50px; flex-shrink: 0;
}
.vv-why-meal-body { flex: 1; min-width: 0; }
.vv-why-meal-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1A1A1A);
  margin-bottom: 4px;
  line-height: 1.4;
}
/* Block 4: meal-timing heuristic line — explains WHY products are at this time */
.vv-why-meal-timing {
  font-size: 12px;
  color: var(--vv-green, #4CAF50);
  font-style: italic;
  line-height: 1.45;
  margin-top: 2px;
}
.vv-why-meal-reason {
  font-size: 12px;
  color: var(--ink-3, #6A6A6A);
  line-height: 1.45;
  margin-top: 2px;
}
.vv-why-pair {
  display: flex; gap: 12px;
  padding: 8px 0;
}
.vv-why-pair-icon {
  font-size: 18px;
  min-width: 72px;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}
.vv-why-pair-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2, #333);
}
.vv-why-pair-text strong { color: var(--ink, #1A1A1A); }

/* Бары микро/макро нутриентов в дневнике */
.vv-nut-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.vv-nut-bar { display: flex; flex-direction: column; gap: 4px; }
.vv-nut-bar-row { display: flex; justify-content: space-between; align-items: baseline; }
.vv-nut-bar-label { font-size: 12px; font-weight: 700; color: var(--ink-2, #333); }
.vv-nut-bar-val { font-size: 12px; color: var(--ink-3, #777); font-variant-numeric: tabular-nums; }
.vv-nut-bar-val small { font-size: 11px; color: var(--ink-3, #777); }
.vv-nut-bar-track {
  height: 6px;
  background: #f0f0f0;
  border-radius: 99px;
  overflow: hidden;
}
.vv-nut-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .4s ease;
}

/* Попап выбора съеденного из корзины (дневник) */
.vv-meal-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-warm);
  border: 2px solid transparent;
  border-radius: var(--r-xs);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all .15s;
}
.vv-meal-pick-row:has(.vv-meal-pick-cb:checked) {
  background: var(--vv-green-tint, #E4F6EB);
  border-color: var(--vv-green, #2DBE64);
}
.vv-meal-pick-cb {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--vv-green, #2DBE64);
  cursor: pointer;
}
.vv-meal-pick-img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.vv-meal-pick-body { flex: 1; min-width: 0; }
.vv-meal-pick-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink, #1A1A1A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vv-meal-pick-meta {
  font-size: 11px;
  color: var(--ink-3, #777);
  margin-top: 2px;
}
.vv-meal-pick-reason {
  font-size: 11px;
  color: var(--vv-green-dark, #2E7D32);
  margin-top: 4px;
  line-height: 1.3;
}

/* «+ Добавить ещё» под приёмом пищи */
.vv-meal-add-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: 1.5px dashed var(--vv-green, #2DBE64);
  color: var(--vv-green-dark, #2E7D32);
  border-radius: var(--r-xs);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.vv-meal-add-more:hover, .vv-meal-add-more:active {
  background: var(--vv-green-tint, #E4F6EB);
  border-style: solid;
}

/* Поиск-попап «Добавить в приём» */
.vv-addmore-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--bg-warm);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all .12s;
}
.vv-addmore-item:hover, .vv-addmore-item:active {
  background: var(--vv-green-tint, #E4F6EB);
}
.vv-addmore-img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.vv-addmore-body { flex: 1; min-width: 0; }
.vv-addmore-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vv-addmore-meta {
  font-size: 11px;
  color: var(--ink-3, #777);
  margin-top: 2px;
}
.vv-addmore-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vv-green, #2DBE64);
  color: white;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Daily-recommendations — карточки на главной */
.vv-daily-recs {
  margin: 16px 0 18px;
}
.vv-daily-recs-head {
  margin-bottom: 10px;
}
.vv-recs-tabs {
  display: flex; gap: 6px; margin-bottom: 12px; padding: 4px;
  background: var(--line-soft, #f1f1ee); border-radius: var(--r-sm);
}
.vv-recs-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 10px;
  border-radius: var(--r-xs);
  font-family: var(--body, 'Manrope'), sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3, #888);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.vv-recs-tab:hover { color: var(--ink, #1A1A1A); }
.vv-recs-tab.is-on {
  background: var(--paper, #fff);
  color: var(--vv-green-dark, #1FA650);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.vv-recs-empty {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3, #888);
  background: var(--line-soft, #f1f1ee);
  border-radius: var(--r-sm);
}
.vv-daily-recs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vv-daily-rec-card {
  padding: 12px 14px;
  background: var(--paper, #fff);
  border: 1px solid var(--line-soft, #E0E0E0);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.vv-daily-rec-card.featured {
  background: var(--vv-green-tint, #E4F6EB);
  border-color: var(--vv-green, #2DBE64);
}
.vv-daily-rec-card:active {
  transform: scale(0.985);
}
.vv-daily-rec-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2, #333);
}
.vv-daily-rec-full {
  font-size: 12px;
  color: var(--ink-3, #777);
  line-height: 1.5;
  margin-top: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, margin-top .15s ease;
}
.vv-daily-rec-card.expanded .vv-daily-rec-full {
  max-height: 400px;
}

/* Symptom-checker CTA на главной */
.vv-symptom-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE0E0 100%);
  border: 1px solid #FFC1A5;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .2s;
}
.vv-symptom-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.vv-symptom-cta-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.vv-symptom-cta-body { flex: 1; min-width: 0; }
.vv-symptom-cta-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink, #1A1A1A);
  margin-bottom: 2px;
}
.vv-symptom-cta-desc {
  font-size: 12px;
  color: var(--ink-3, #666);
  line-height: 1.4;
}
.vv-symptom-cta-arrow {
  font-size: 26px;
  color: var(--ink-3, #999);
  font-weight: 300;
}

/* Symptom chips на отдельном экране */
.vv-sym-chip {
  padding: 8px 14px;
  background: var(--paper, #fff);
  border: 1.5px solid var(--line-soft, #E0E0E0);
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #333);
  transition: all .15s;
}
.vv-sym-chip:hover {
  background: var(--vv-green-tint, #E4F6EB);
  border-color: var(--vv-green, #2DBE64);
  color: var(--vv-green-dark, #2E7D32);
}
.vv-sym-chip:active { transform: scale(0.95); }

/* Результат поиска по симптому — карточки нутриентов */
.vv-sym-result-card {
  padding: 14px;
  background: var(--paper, #fff);
  border: 1px solid var(--line-soft, #E0E0E0);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
}
.vv-sym-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.vv-sym-result-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink, #1A1A1A);
}
.vv-sym-result-prob {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  background: var(--vv-green-tint, #E4F6EB);
  color: var(--vv-green-dark, #2E7D32);
  border-radius: 99px;
}
.vv-sym-result-foods {
  font-size: 12px;
  color: var(--ink-3, #777);
  line-height: 1.4;
  padding-top: 4px;
}

/* TBD-плашка для целей/диет/режимов:
   оригинальное содержимое остаётся видимым (полупрозрачное),
   а сверху overlay с надписью TBD. Клик заблокирован. */
.tbd-locked {
  cursor: not-allowed !important;
  position: relative;
  border-color: var(--line-soft, #E0E0E0) !important;
}
/* Делаем все ВНУТРЕННИЕ элементы карточки бледными — но плашку TBD оставляем непрозрачной */
.tbd-locked > *:not(.tbd-plate) {
  opacity: 0.32;
  filter: grayscale(0.6);
  pointer-events: none;
}
/* ⚠ ПЛАШКА БОЛЬШЕ НЕ ЛЕЖИТ ПОВЕРХ НАЗВАНИЯ.
   Было: `top:50%; left:50%; transform:translate(-50%,-50%)` — плашка садилась ровно
   на середину плитки, то есть на её название. По снимку экрана «Настройки»
   (docs/shots/settings_day.png, кроп 7350-8900 px, увеличение x2) читалось
   «Ве TBD тво» вместо «Веганство», «Прав TBD ый пост», «Средизе TBD морская»,
   «Бе TBD зная», «Высок TBD ковая» — из закрытых плиток название нельзя было
   прочесть примерно у половины.
   Стало: плашка уезжает в правый верхний угол и уменьшается, название остаётся целым.
   Само содержимое плитки при этом по-прежнему бледное — то, что выбор закрыт, видно. */
.tbd-plate {
  position: absolute;
  top: 6px; right: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink-3, #777);
  padding: 2px 6px;
  border: 1px dashed var(--ink-3, #999);
  border-radius: 6px;
  background: var(--card, rgba(255,255,255,0.9));
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}
/* Название не должно заезжать под плашку: оставляем ей угол. */
.tbd-locked > *:first-child { padding-right: 44px; }

/* Чит-дей блок: 3 уровня строгости + плитка разрешений */
.cheat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cheat-tile {
  background: var(--paper, #fff);
  border: 2px solid var(--line-soft, #E0E0E0);
  border-radius: var(--r-md, 12px);
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: all .2s;
}
.cheat-tile.selected {
  border-color: var(--vv-green, #2DBE64);
  background: var(--vv-green-tint, #E4F6EB);
}
.cheat-tile .ct-emo { font-size: 22px; margin-bottom: 4px; }
.cheat-tile .ct-name { font-weight: 700; font-size: 13px; color: var(--ink, #1A1A1A); }
.cheat-tile .ct-desc { font-size: 11px; color: var(--ink-3, #777); margin-top: 2px; line-height: 1.3; }

.cheat-allow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cheat-allow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: var(--paper, #fff);
  border: 1.5px solid var(--line-soft, #E0E0E0);
  border-radius: var(--r-xs);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.cheat-allow.selected {
  border-color: var(--vv-green, #2DBE64);
  background: var(--vv-green-tint, #E4F6EB);
}
.cheat-allow .ca-emo { font-size: 18px; }
.cheat-allow .ca-name { font-size: 11px; font-weight: 600; color: var(--ink-2, #333); }

/* ============================================================
   STORE SELECTOR (сверху корзины)
============================================================ */
.store-selector {
  position: relative;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--ink-line, #E2E8E2);
  border-radius: var(--r-sm);
}
.store-selector-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.store-selector-label { font-size: 13px; color: var(--ink-3, #777); }
.store-selector-current {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-selector-chevron {
  font-size: 14px;
  color: var(--ink-3, #777);
  transition: transform .15s;
}
.store-selector.open .store-selector-chevron { transform: rotate(180deg); }
.store-selector-stock {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-3, #888);
  font-weight: 500;
}
.store-selector-stock.warn { color: #c9971b; }
.store-selector-stock.error { color: #c14b4b; }
.store-selector-dropdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ink-line, #E2E8E2);
}
.store-selector-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.store-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background .12s;
}
.store-option:hover { background: var(--surface-2, #f4f7f4); }
.store-option.active {
  background: var(--vv-green-tint, #E4F6EB);
  border: 1px solid var(--vv-green, #2DBE64);
}
.store-option-radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink-line, #ccc);
  flex-shrink: 0;
  position: relative;
}
.store-option.active .store-option-radio {
  border-color: var(--vv-green, #2DBE64);
}
.store-option.active .store-option-radio::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vv-green, #2DBE64);
}
.store-option-info { flex: 1; min-width: 0; }
.store-option-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-option-meta {
  font-size: 11px;
  color: var(--ink-3, #888);
  margin-top: 2px;
}
.store-selector-search-wrap { position: relative; }
.store-selector-search-wrap input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--ink-line, #E2E8E2);
  border-radius: var(--r-xs);
  font-size: 13px;
  font-family: inherit;
  background: var(--surface-2, #fafafa);
}
.store-search-results {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}

/* ============================================================
   === Wellness module ===
   Все классы префикс .wkb-, mobile-first.
============================================================ */

:root {
  --wkb-cat-sleep:        #5B6CFF;
  --wkb-cat-energy:       #F5C518;
  --wkb-cat-digestion:    #37B26A;
  --wkb-cat-reproductive: #E84B8A;
  --wkb-cat-cognition:    #9D4EDD;
  --wkb-cat-thinking:     #7B2CBF;
  --wkb-cat-calm:         #2EC4B6;
  --wkb-cat-longevity:    #FF8C42;
  --wkb-cat-performance:  #E63946;
  --wkb-accent:           var(--vv-green);
  --wkb-line:             var(--line);
  --wkb-card:             var(--paper);
  --wkb-bg:               var(--bg);
}

/* Layout — wellness pages используют тот же 430px контейнер */
.wkb-screen { padding: 0 20px 140px; min-height: calc(100dvh - 64px); }

.wkb-header { padding-top: 14px; }
.wkb-back-btn svg { width: 22px; height: 22px; }

/* Hero блоки */
.wkb-hero { padding: 14px 0 20px; }
.wkb-hero-compact { padding: 10px 0 16px; }
.wkb-hero-title {
  font-family: var(--display); font-weight: 500;
  font-size: 30px; line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 14px 0 10px;
}
.wkb-hero-title em { font-style: normal; color: var(--vv-green); }
.wkb-hero-sub { color: var(--ink-3); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.wkb-cta { margin-top: 6px; }

/* Секции */
.wkb-section { margin-top: 26px; }
.wkb-section-head { margin-bottom: 14px; }
.wkb-section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--vv-green-dark, #1FA650);
  margin-bottom: 6px;
}
.wkb-section-title {
  font-family: var(--display); font-weight: 500;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.wkb-progress-meta { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ═══════════════════════════════════════════════════════════════
   Foundation — Habit/Action cards (Block 4 redesign)
   Layout: title + streak top → slim progress → collapsed desc →
   large CTA button → secondary actions.
   Optimised for quick daily check-ins and finger-friendly taps.
   ═══════════════════════════════════════════════════════════════ */
.wkb-foundation-grid {
  display: flex; flex-direction: column; gap: 12px;
}
.wkb-card {
  background: var(--wkb-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--sh-1);
  transition: border-color .2s, box-shadow .2s;
}

/* ── Habit card: done state ── */
.wkb-found-card.is-done {
  border-color: var(--vv-green);
  background: linear-gradient(180deg, var(--vv-green-tint) 0%, var(--paper) 60%);
}

/* ── Top row: title + streak badge ── */
.wkb-found-top {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px;
}
.wkb-found-title {
  font-family: var(--display); font-weight: 600;
  font-size: 15px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink); flex: 1; min-width: 0;
}
.wkb-found-card.is-done .wkb-found-title::before {
  content: '✓ '; color: var(--vv-green);
}
.wkb-found-streak-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  border-radius: var(--r-pill); white-space: nowrap;
  background: var(--line-soft); color: var(--ink-3);
}
.wkb-found-streak-badge.has-streak {
  background: #FFF3E0; color: #E65100;
}

/* ── Slim progress bar + fraction ── */
.wkb-found-progress {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.wkb-bar {
  flex: 1; height: 6px; background: var(--line-soft);
  border-radius: 99px; overflow: hidden;
}
.wkb-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--vv-green), var(--vv-lime));
  border-radius: 99px;
  transition: width .4s var(--ease);
}
.wkb-found-cap {
  font-size: 11px; color: var(--ink-3); font-weight: 600; white-space: nowrap;
}

/* ── Collapsible description ── */
.wkb-found-desc {
  font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-bottom: 4px;
}
.wkb-found-desc-full {
  font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-bottom: 4px;
}
.wkb-found-toggle {
  background: none; border: none; padding: 0; margin: 0 0 6px;
  font-size: 12px; font-weight: 600; color: var(--vv-green-dark, #1FA650);
  cursor: pointer; display: inline-flex; align-items: center; gap: 3px;
}
.wkb-found-toggle:hover { text-decoration: underline; }
.wkb-found-toggle svg {
  width: 12px; height: 12px; transition: transform .2s;
}
.wkb-found-toggle.is-open svg { transform: rotate(90deg); }

/* ── Primary CTA: large, full-width, finger-friendly (min 48px) ── */
.wkb-found-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  font-family: var(--body); font-size: 15px; font-weight: 700;
  color: var(--ink); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.wkb-found-cta:hover { border-color: var(--vv-green); color: var(--vv-green-dark); }
.wkb-found-cta:active { transform: scale(0.97); }
.wkb-found-cta svg { width: 22px; height: 22px; flex-shrink: 0; }

/* CTA done state */
.wkb-found-cta.is-done {
  background: var(--vv-green); border-color: var(--vv-green);
  color: white; box-shadow: 0 4px 14px rgba(45,190,100,.25);
}
.wkb-found-cta.is-done:hover { background: var(--vv-green-dark); border-color: var(--vv-green-dark); }

/* ── Secondary actions row (photo, start tracking) ── */
.wkb-found-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wkb-btn-sm {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: var(--r-pill);
}

/* ── Legacy round check kept for standalone foundation.html only ── */
.wkb-check {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s var(--ease-spring), background .2s, border-color .2s, color .2s;
  color: #b8c0c8;
  padding: 0;
}
.wkb-check:hover { color: var(--vv-green); border-color: var(--vv-green); }
.wkb-check:active { transform: scale(0.92); }
.wkb-check svg { width: 28px; height: 28px; }
.wkb-check-on {
  background: var(--vv-green);
  border-color: var(--vv-green);
  color: white;
  box-shadow: 0 4px 14px rgba(45,190,100,.3);
}
.wkb-found-meta { flex: 1; min-width: 0; }
.wkb-check-label { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.wkb-found-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px;
}
.wkb-streak {
  font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px;
}
.wkb-streak-icon { font-size: 14px; }
.wkb-streak-zero { font-style: italic; color: var(--ink-4); }

.wkb-progress-block { margin-top: 12px; }
.wkb-progress-cap { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* ИИ-чат: категории промптов */
.vv-chat-categories {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 4px 0 8px; margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.vv-chat-categories::-webkit-scrollbar { display: none; }
.vv-chat-cat {
  background: var(--paper, #fff); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
  font-family: var(--body, 'Manrope'), sans-serif; font-size: 13px; font-weight: 600;
  color: var(--ink-3, #888); cursor: pointer; transition: all .15s; white-space: nowrap; flex-shrink: 0;
}
.vv-chat-cat:hover { color: var(--ink); border-color: var(--vv-green); }
.vv-chat-cat.is-on {
  background: var(--vv-green-tint, #E4F6EB);
  color: var(--vv-green-dark, #1FA650);
  border-color: var(--vv-green, #2DBE64);
}

/* /wellness/progress — единая горизонтальная лента вкладок */
.wkb-tab-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 6px 4px 14px; margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.wkb-tab-strip::-webkit-scrollbar { height: 4px; }
.wkb-tab-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.wkb-tab {
  flex-shrink: 0; min-width: 92px;
  padding: 12px 12px;
  background: var(--paper, #fff);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .15s;
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--body, 'Manrope'), sans-serif;
}
.wkb-tab:hover { border-color: var(--vv-green); transform: translateY(-1px); }
.wkb-tab.is-on {
  border-color: var(--vv-green);
  background: var(--vv-green-tint);
  box-shadow: 0 4px 14px rgba(45,190,100,.18);
}
.wkb-tab-icon { font-size: 22px; line-height: 1; }
.wkb-tab-label {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.wkb-tab.is-on .wkb-tab-label { color: var(--vv-green-dark); }
.wkb-tab-val {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1;
}

.wkb-tab-content { min-height: 200px; }
/* ⚠ АВТОМАТИКА ПРОКРУТКИ BLINK ЗДЕСЬ ВЫКЛЮЧЕНА НАМЕРЕННО (16.08.2026).
   Тап по карточке привычки перерисовывает чипы, бейдж и подпись НАД карточкой,
   и высота содержимого меняется. Chrome в этот момент двигает прокрутку сам
   («scroll anchoring»), WKWebView на айфоне — нет: одна и та же правка давала
   ноль на замере в Chrome и прыжок на телефоне, то есть проверить её было нечем.
   С `overflow-anchor: none` оба движка ведут себя одинаково, а позицию якоря
   возвращает _foundSyncAll — единственной, измеримой компенсацией. */
.wkb-tab-content { overflow-anchor: none; }
.wkb-pane {
  background: var(--paper, #fff);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px);
  padding: 18px;
  margin-bottom: 18px;
}
.wkb-pane-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.wkb-pane-icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.wkb-pane-titles { flex: 1; min-width: 0; }
.wkb-pane-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.wkb-pane-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.wkb-pane-action {
  font-size: 12px; font-weight: 600; color: var(--vv-berry); text-decoration: none;
}
.wkb-pane-action:hover { text-decoration: underline; }
.wkb-pane-input { margin-bottom: 14px; }
.wkb-pane-cta {
  font-size: 13px; line-height: 1.5; color: var(--ink-3);
  background: var(--vv-green-tint); padding: 14px; border-radius: var(--r-sm);
}
.wkb-pane-chart-title {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.wkb-pane-chart {
  background: var(--line-soft); border-radius: var(--r-sm); padding: 8px;
}
.wkb-pane-section-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  margin: 18px 0 10px;
}

/* Цели как карточки в pane */
.wkb-goal-list { display: flex; flex-direction: column; gap: 12px; }
.wkb-goal-card {
  background: var(--vv-green-tint);
  border-radius: var(--r-md, 14px);
  padding: 14px;
}
.wkb-goal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.wkb-goal-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.wkb-goal-link { font-size: 12px; color: var(--vv-berry); text-decoration: none; font-weight: 600; white-space: nowrap; }
.wkb-goal-prog { margin-bottom: 8px; }
.wkb-goal-prog-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.wkb-goal-prog-val { font-weight: 700; color: var(--vv-green-dark); }
.wkb-goal-prog-bar { height: 6px; background: rgba(255,255,255,.5); border-radius: 3px; overflow: hidden; }
.wkb-goal-prog-bar > div { height: 100%; background: var(--vv-green); transition: width .3s; }
.wkb-goal-sum { font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* Фундамент — компактный виджет на /progress */
.wkb-foundation-widget {
  background: var(--paper, #fff); border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px); padding: 14px;
}
.wkb-found-mini-row { display: flex; gap: 12px; margin-bottom: 14px; }
.wkb-found-mini-cell {
  flex: 1; padding: 10px 8px; background: var(--vv-green-tint);
  border-radius: var(--r-sm, 12px); text-align: center;
}
.wkb-found-mini-label { font-size: 10px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wkb-found-mini-val {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 18px; color: var(--vv-green-dark); font-weight: 500; margin-top: 2px;
}
.wkb-found-mini-list { display: flex; flex-direction: column; gap: 6px; }
.wkb-found-mini-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--line-soft); border-radius: var(--r-xs);
  transition: background .15s;
}
.wkb-found-mini-item.is-done { background: var(--vv-green-tint); }
.wkb-found-mini-check {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: white; color: var(--ink-4); font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.wkb-found-mini-item.is-done .wkb-found-mini-check { background: var(--vv-green); color: white; }
.wkb-found-mini-title { font-size: 13px; color: var(--ink-2); flex: 1; }
.wkb-found-mini-item.is-done .wkb-found-mini-title { color: var(--ink-3); }

/* Сферы — компактный виджет на /progress */
.wkb-spheres-widget {
  background: var(--paper, #fff); border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px); padding: 14px;
}
.wkb-spheres-radar-mini {
  display: flex; justify-content: center; margin-bottom: 14px;
}
.wkb-spheres-radar-mini svg { max-width: 100%; height: auto; }
.wkb-spheres-mini-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.wkb-sphere-mini {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; background: var(--line-soft); border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink); transition: background .15s;
}
.wkb-sphere-mini:hover { background: var(--vv-green-tint); }
.wkb-sphere-mini-dot { width: 12px; height: 12px; border-radius: 50%; }
.wkb-sphere-mini-name { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; }
.wkb-sphere-mini-pct { font-size: 14px; font-weight: 700; color: var(--vv-green-dark); }

/* WHOOP-style metric strip */
.wkb-metric-strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 4px 4px 14px; margin-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.wkb-metric-strip::-webkit-scrollbar { height: 4px; }
.wkb-metric-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.wkb-metric-card {
  flex-shrink: 0;
  width: 130px;
  padding: 14px 12px;
  background: var(--paper, #fff);
  border: 1px solid var(--line);
  border-radius: var(--r-md, 14px);
  cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  text-align: left;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--body, 'Manrope'), sans-serif;
}
.wkb-metric-card:hover { transform: translateY(-1px); border-color: var(--vv-green); }
.wkb-metric-card.is-on {
  border-color: var(--vv-green);
  background: var(--vv-green-tint);
  box-shadow: 0 4px 14px rgba(45,190,100,.15);
}
.wkb-metric-card.has-data { border-color: var(--vv-green-soft, rgba(45,190,100,.4)); }
.wkb-metric-icon { font-size: 22px; line-height: 1; }
.wkb-metric-label { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.wkb-metric-value {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.1;
}
.wkb-metric-target { font-size: 10px; color: var(--ink-4); }
.wkb-metric-bar {
  margin-top: 6px;
  height: 4px; background: var(--line-soft); border-radius: 2px; overflow: hidden;
}
.wkb-metric-bar-fill { height: 100%; background: var(--vv-green); transition: width .3s; }

.wkb-metric-detail {
  background: var(--paper, #fff);
  border: 1px solid var(--vv-green);
  border-radius: var(--r-lg, 18px);
  padding: 18px;
  margin-bottom: 18px;
}
.wkb-metric-detail[hidden] { display: none; }
.wkb-metric-detail-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.wkb-metric-detail-icon { font-size: 36px; line-height: 1; }
.wkb-metric-detail-titles { flex: 1; min-width: 0; }
.wkb-metric-detail-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 18px; font-weight: 500; color: var(--ink);
}
.wkb-metric-detail-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.wkb-metric-close {
  background: var(--line-soft); border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 18px; cursor: pointer; color: var(--ink-3);
}
.wkb-metric-close:hover { background: #ffe0e0; color: #c00; }

.wkb-metric-input { margin-bottom: 14px; }
.wkb-quick-input {
  display: flex; align-items: center; gap: 8px;
  background: var(--vv-green-tint); padding: 8px 12px; border-radius: var(--r-sm);
}
.wkb-quick-input input {
  flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--line);
  border-radius: var(--r-xs); font-size: 16px; font-weight: 600; background: white;
  font-family: var(--body, 'Manrope'), sans-serif;
}
.wkb-qi-unit { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.wkb-qi-save { padding: 8px 14px; font-size: 13px; }

.wkb-mood-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wkb-mood-btn {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xs);
  padding: 10px 4px; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--body, 'Manrope'), sans-serif; font-size: 26px;
}
.wkb-mood-btn span { font-size: 10px; font-weight: 600; color: var(--ink-3); }
.wkb-mood-btn:hover { border-color: var(--vv-green); }
.wkb-mood-btn.is-on { border-color: var(--vv-green); background: var(--vv-green-tint); }
.wkb-mood-btn.is-on span { color: var(--vv-green-dark); }

.wkb-energy-row { display: flex; gap: 4px; }
.wkb-energy-btn {
  flex: 1; aspect-ratio: 1;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xs);
  font-family: var(--body, 'Manrope'), sans-serif; font-weight: 700; font-size: 13px;
  color: var(--ink-3); cursor: pointer; transition: all .15s;
}
.wkb-energy-btn:hover { border-color: var(--vv-green); }
.wkb-energy-btn.is-on { background: var(--vv-green); color: white; border-color: var(--vv-green); }
.wkb-energy-hint { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 6px; }

.wkb-metric-chart {
  background: var(--line-soft); border-radius: var(--r-sm); padding: 8px;
}
.wkb-metric-cta {
  font-size: 13px; line-height: 1.5; color: var(--ink-3);
  background: var(--vv-green-tint); padding: 14px; border-radius: var(--r-sm);
}

/* ═══ Diary: committed plan summary card ═══
   Three sections in one card:
   1. Plan label (planned kcal + item count)
   2. Eaten kcal (big number) / planned kcal + progress bar
   3. Eaten P/F/C macros with remaining delta labels
*/
.wkb-food-day-totals {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--vv-green-tint, #E4F6EB), var(--vv-lime, #C5EFA9));
  border-radius: var(--r-lg, 18px);
}
.wkb-food-total-main { display: flex; flex-direction: column; }
/* Plan label: "📋 План: 2100 ккал · 12 позиций" */
.wkb-food-plan-label {
  font-size: 11px; font-weight: 600; color: var(--vv-green-dark, #1FA650);
  margin-bottom: 4px; opacity: 0.85; letter-spacing: 0.02em;
}
.wkb-food-total-num {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 32px; font-weight: 500; color: var(--vv-green-dark, #1FA650); line-height: 1;
}
.wkb-food-total-lbl { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* Progress bar: visual eaten/planned kcal ratio */
.wkb-food-progress-bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.5); margin-top: 8px; overflow: hidden;
}
.wkb-food-progress-fill {
  height: 100%; border-radius: 3px;
  background: var(--vv-green, #2DBE64);
  transition: width .4s ease;
  min-width: 2px;
}
/* Remaining macronutrient label: "-75" shown below each eaten value */
.wkb-food-total-remain {
  font-size: 9px; color: var(--vv-green-dark, #1FA650); margin-top: 1px; font-weight: 500; opacity: 0.8;
}
/* Eaten P/F/C columns */
.wkb-food-total-kbju { display: flex; gap: 14px; }
.wkb-food-total-kbju > div,
.wkb-food-macro-col {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.6); padding: 8px 12px; border-radius: var(--r-xs); min-width: 40px;
}
.wkb-food-total-kbju b { font-size: 16px; color: var(--ink); }
.wkb-food-total-kbju span { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

.wkb-food-meal-block {
  background: var(--paper, #fff); border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px); padding: 14px; margin-bottom: 12px;
}
.wkb-food-meal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.wkb-food-meal-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.wkb-food-meal-right { display: flex; align-items: center; gap: 8px; }
.wkb-food-meal-total { font-size: 12px; color: var(--vv-green-dark); font-weight: 600; }
.wkb-food-meal-all {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-xs);
  border: 1px solid var(--vv-green, #2DBE64); background: transparent;
  color: var(--vv-green-dark, #1FA650); cursor: pointer; transition: all .15s;
}
.wkb-food-meal-all:hover { background: var(--vv-green-tint, #E4F6EB); }
.wkb-food-meal-all.is-done {
  background: var(--vv-green, #2DBE64); color: #fff; border-color: var(--vv-green, #2DBE64);
}
.wkb-food-meal-all.is-done:hover { background: var(--vv-green-dark, #1FA650); }
.wkb-food-meal-all:disabled { opacity: 0.5; cursor: wait; }
.wkb-food-total-of { font-size: 18px; font-weight: 400; color: var(--ink-3, #999); }
.wkb-food-total-plan { font-size: 11px; font-weight: 400; color: var(--ink-3, #999); }
/* ═══ Diary visual context — differentiates diary items from Cart items ═══
   Cart items: no left border, show price + swap/delete buttons
   Diary items: green left border accent, eat/uneat checkmark, no price shown
   This class is set on the diary wrapper .wkb-pane to scope diary-only styles */
.vv-diary-context .vv-meal-item {
  border-left: 3px solid var(--vv-green-tint, #E4F6EB);
  padding-left: 10px; margin-left: -4px;
  border-radius: 0 8px 8px 0;
  transition: border-color .2s, background .2s;
}
.vv-diary-context .vv-meal-item.is-eaten {
  border-left-color: var(--vv-green, #2DBE64);
}
.vv-diary-context .vv-meal-item:not(.is-eaten) {
  opacity: 0.92;
}
.vv-diary-context .wkb-food-meal-block {
  border-color: var(--vv-green-tint, #E4F6EB);
}

/* Stale plan warning — more prominent */
.wkb-food-stale {
  padding: 12px 16px; margin-bottom: 12px; border-radius: var(--r-xs);
  background: var(--bg-warm); color: var(--ink-2); font-size: 13px; font-weight: 500;
  border: 1px solid #FFE69C; line-height: 1.45;
}
.wkb-food-stale-icon { margin-right: 4px; }
.wkb-food-stale-btn {
  display: inline-block; margin-top: 6px;
  background: none; border: none; color: var(--vv-green-dark, #1FA650);
  font-weight: 700; cursor: pointer; text-decoration: underline; font-size: 13px;
}
/* When plan is stale, slightly mute diary items */
.vv-diary-stale .vv-meal-item { opacity: 0.8; }
.vv-diary-stale .wkb-food-meal-block { border-color: var(--line); }
.wkb-food-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line-soft);
}
.wkb-food-item:first-of-type { border-top: none; padding-top: 0; }
.wkb-food-img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--r-xs); background: var(--bg-warm); flex-shrink: 0; }
.wkb-food-body { flex: 1; min-width: 0; }
.wkb-food-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.wkb-food-meta { font-size: 11px; color: var(--ink-3); }
.wkb-food-del {
  background: #f5f5f5; color: #999; border: none;
  border-radius: var(--r-xs); width: 28px; height: 28px; font-size: 16px;
  cursor: pointer; flex-shrink: 0;
}
.wkb-food-del:hover { background: #ffe0e0; color: #c00; }
/* Empty state: shown when no committed plan exists.
   Message: "Сначала собери и оформи корзину во ВкусВилл" + step-by-step subtitle */
.wkb-food-empty {
  text-align: center; padding: 30px 18px;
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.wkb-food-empty-icon { font-size: 48px; margin-bottom: 12px; }
.wkb-food-empty-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.wkb-food-empty-sub { font-size: 13px; color: var(--ink-3); line-height: 1.4; max-width: 280px; margin: 0 auto; }

/* Diary WHOOP-style tabs (Питание / Привычки / Сон) */
.wkb-diary-tabs {
  display: flex; gap: 6px; margin-bottom: 18px; padding: 4px;
  background: var(--line-soft, #f1f1ee); border-radius: var(--r-sm);
}
.wkb-diary-tab {
  flex: 1; background: transparent; border: none;
  padding: 10px; border-radius: var(--r-xs);
  font-family: var(--body, 'Manrope'), sans-serif; font-size: 13px; font-weight: 600;
  color: var(--ink-3, #888); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.wkb-diary-tab:hover { color: var(--ink); }
.wkb-diary-tab.is-on {
  background: var(--paper, #fff); color: var(--vv-green-dark, #1FA650);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.wkb-diary-pane[hidden] { display: none; }
.wkb-diary-coming-soon {
  text-align: center; padding: 32px 18px;
  background: var(--paper, #fff); border: 1px dashed var(--line);
  border-radius: var(--r-lg, 18px);
}
.wkb-diary-coming-icon { font-size: 56px; margin-bottom: 14px; }
.wkb-diary-coming-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 8px;
}
.wkb-diary-coming-sub { font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 320px; margin: 0 auto; }

/* Progress page (Фундамент + Сферы) */
.wkb-progress-tabs {
  display: flex; gap: 6px; margin-bottom: 16px; padding: 4px;
  background: var(--line-soft, #f1f1ee); border-radius: var(--r-sm);
}
.wkb-progress-tab {
  flex: 1; background: transparent; border: none;
  padding: 10px; border-radius: var(--r-xs);
  font-family: var(--body, 'Manrope'), sans-serif; font-size: 13px; font-weight: 600;
  color: var(--ink-3, #888); cursor: pointer; transition: all .15s;
}
.wkb-progress-tab:hover { color: var(--ink); }
.wkb-progress-tab.is-on {
  background: var(--paper, #fff); color: var(--vv-green-dark, #1FA650);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.wkb-progress-pane[hidden] { display: none; }
.wkb-progress-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; background: var(--paper, #fff);
  border: 1px solid var(--line); border-radius: var(--r-lg, 18px);
  text-decoration: none; color: var(--ink, #1A1A1A);
  transition: border-color .15s, transform .15s;
}
.wkb-progress-card:hover { border-color: var(--vv-green); transform: translateY(-1px); }
.wkb-progress-card-icon { font-size: 36px; line-height: 1; flex-shrink: 0; }
.wkb-progress-card-body { flex: 1; min-width: 0; }
.wkb-progress-card-title {
  font-family: var(--display, 'Unbounded'), sans-serif;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px;
}
.wkb-progress-card-sub { font-size: 13px; color: var(--ink-3); line-height: 1.4; margin-bottom: 8px; }
.wkb-progress-card-meta {
  font-size: 12px; font-weight: 600; color: var(--vv-green-dark);
  background: var(--vv-green-tint); padding: 4px 10px; border-radius: var(--r-xs); display: inline-block;
}
.wkb-progress-card-arrow {
  font-size: 24px; color: var(--ink-4); flex-shrink: 0;
}

/* Уровни 2-7 */
.wkb-levels-list { display: flex; flex-direction: column; gap: 8px; }
.wkb-level-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  transition: opacity .2s, border-color .2s;
}
.wkb-level-locked { opacity: 0.55; background: var(--line-soft); }
.wkb-level-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--vv-green-tint);
  color: var(--vv-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 15px;
}
.wkb-level-locked .wkb-level-num { background: var(--line); color: var(--ink-4); }
.wkb-level-body { flex: 1; min-width: 0; }
.wkb-level-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.wkb-level-sub { font-size: 12px; color: var(--ink-3); }
.wkb-level-chevron { width: 18px; height: 18px; color: var(--ink-4); flex-shrink: 0; transition: transform .2s; }
.wkb-level-expandable { cursor: pointer; }
.wkb-level-expandable:hover { border-color: var(--vv-green); }
.wkb-level-expandable.is-open { border-color: var(--vv-green); background: var(--vv-green-tint); }
.wkb-level-expandable.is-open .wkb-level-chevron { transform: rotate(90deg); color: var(--vv-green-dark); }
.wkb-level-block { display: flex; flex-direction: column; gap: 8px; }
.wkb-level-theses { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 4px 12px; border-left: 2px solid var(--vv-green-tint); margin-left: 18px; }
.wkb-level-theses[hidden] { display: none; }

/* Spheres page */
.wkb-radar-section { background: var(--paper); border-radius: var(--r-lg); padding: 18px 14px; margin-top: 14px; }
.wkb-radar-wrap { display: flex; justify-content: center; align-items: center; }
.wkb-radar { max-width: 100%; height: auto; }
.wkb-radar-ring { fill: none; stroke: var(--line); stroke-width: 1; opacity: 0.6; }
.wkb-radar-axis { stroke: var(--line); stroke-width: 0.7; opacity: 0.6; }
.wkb-radar-shape {
  fill: rgba(45,190,100,.15); stroke: var(--vv-green); stroke-width: 1.5;
  stroke-linejoin: round;
}
.wkb-radar-dot { stroke: var(--paper); stroke-width: 1.5; }
.wkb-radar-label {
  font-family: var(--body); font-size: 10px; font-weight: 700;
  fill: var(--ink-2); letter-spacing: -0.01em;
}

.wkb-radar-legend {
  margin-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.wkb-legend-row {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  padding: 6px 8px;
  border-radius: var(--r-sm);
  transition: background .2s;
}
.wkb-legend-row:hover { background: var(--line-soft); }
.wkb-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.wkb-legend-name { flex: 1; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wkb-legend-val { font-weight: 700; font-size: 12px; color: var(--ink-3); flex-shrink: 0; }

.wkb-spheres-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 380px) {
  .wkb-spheres-grid { grid-template-columns: repeat(3, 1fr); }
}
.wkb-sphere-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 12px;
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s var(--ease-spring), box-shadow .2s, border-color .2s;
  border-left: 3px solid var(--wkb-tile-c, var(--vv-green));
}
.wkb-sphere-tile:active { transform: scale(0.97); }
.wkb-sphere-tile:hover { box-shadow: var(--sh-2); border-color: var(--wkb-tile-c, var(--vv-green)); }
.wkb-sphere-bullet { width: 10px; height: 10px; border-radius: 50%; }
.wkb-sphere-name { font-weight: 700; font-size: 13px; }
.wkb-sphere-count { font-size: 11px; color: var(--ink-3); }
.wkb-sphere-pct { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--ink); margin-top: auto; }

/* Sphere drill-down */
.wkb-screen-sphere .wkb-hero-title em {
  color: var(--wkb-accent, var(--vv-green));
}
.wkb-filters { display: flex; flex-direction: column; gap: 12px; }
.wkb-filter-group { }
.wkb-filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 8px; }
.wkb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wkb-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.wkb-chip:hover { border-color: var(--vv-green); color: var(--vv-green-dark); }
.wkb-chip-on {
  background: var(--vv-green);
  border-color: var(--vv-green);
  color: white;
}

.wkb-theses-list { display: flex; flex-direction: column; gap: 8px; }
.wkb-thesis-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.wkb-thesis-row:hover { border-color: var(--vv-green); box-shadow: var(--sh-1); }
.wkb-thesis-row-body { flex: 1; min-width: 0; }
.wkb-thesis-row-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.wkb-thesis-row-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.wkb-thesis-row-sum { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.wkb-thesis-add {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--vv-green-tint);
  border: none;
  color: var(--vv-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .2s;
}
.wkb-thesis-add:hover { background: var(--vv-green); color: white; }
.wkb-thesis-add:active { transform: scale(0.92); }
.wkb-thesis-add svg { width: 18px; height: 18px; }

/* Badges */
.wkb-badge {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
  background: var(--line-soft);
  color: var(--ink-2);
}
.wkb-badge-evidence.wkb-badge-strong { background: #DDF7E5; color: #137A3D; }
.wkb-badge-evidence.wkb-badge-mod    { background: #FFF4D1; color: #8A6800; }
.wkb-badge-evidence.wkb-badge-weak   { background: #FFE3D8; color: #B14C20; }
.wkb-badge-evidence.wkb-badge-anec   { background: #F0E5FF; color: #6B2BC4; }
.wkb-badge-diff.wkb-badge-easy   { background: #E1F0FF; color: #1864AB; }
.wkb-badge-diff.wkb-badge-medium { background: #FFF4D1; color: #8A6800; }
.wkb-badge-diff.wkb-badge-hard   { background: #FFE0E0; color: #B91C1C; }
.wkb-badge-contro { background: #FFE0E6; color: #C71F4A; }
.wkb-badge-attr { background: var(--ink); color: white; }
.wkb-badge-level { background: var(--vv-yellow); color: var(--ink); }
.wkb-badge-type { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }

/* Thesis page */
.wkb-thesis-hero { padding: 14px 0 12px; }
.wkb-thesis-title {
  font-family: var(--display); font-weight: 500;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.025em;
  color: var(--ink);
  margin: 12px 0;
}
.wkb-thesis-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.wkb-thesis-summary {
  font-size: 16px; line-height: 1.55; color: var(--ink-2);
  font-weight: 500;
  padding: 16px;
  background: var(--vv-green-tint);
  border-radius: var(--r-md);
  margin-bottom: 14px;
}

.wkb-accordion {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  overflow: hidden;
}
.wkb-accordion[open] { border-color: var(--vv-green); }
.wkb-accordion-head {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  user-select: none;
  list-style: none;
}
.wkb-accordion-head::-webkit-details-marker { display: none; }
.wkb-accordion-chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s; }
.wkb-accordion[open] .wkb-accordion-chev { transform: rotate(180deg); }
.wkb-accordion-body { padding: 0 16px 14px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.wkb-accordion-body p { margin: 0 0 8px; }
.wkb-quote {
  border-left: 3px solid var(--vv-green);
  padding: 6px 0 6px 12px;
  margin: 0 0 10px;
  font-style: italic;
  color: var(--ink-2);
}
.wkb-link {
  color: var(--vv-green-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.wkb-link:hover { color: var(--vv-green); }

/* Warnings (sanity / conflict baner) */
.wkb-warn {
  display: flex; gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border-left: 4px solid;
  margin-bottom: 10px;
}
.wkb-warn-critical { background: #FFEBEB; border-color: #DC2626; }
.wkb-warn-warning  { background: #FFF6E5; border-color: #F59E0B; }
.wkb-warn-note     { background: var(--line-soft); border-color: var(--ink-3); }
.wkb-warn-conflict { background: #F4EAFF; border-color: #9D4EDD; }
.wkb-warn-icon { font-size: 22px; flex-shrink: 0; }
.wkb-warn-body { flex: 1; min-width: 0; }
.wkb-warn-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.wkb-warn-text { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.wkb-warn-rec { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 6px; }

/* Related */
.wkb-related-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.wkb-related-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  text-decoration: none; color: var(--ink);
  border-left: 3px solid var(--wkb-c, var(--vv-green));
  transition: box-shadow .2s;
}
.wkb-related-card:hover { box-shadow: var(--sh-1); }
.wkb-related-cat {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wkb-related-title { font-weight: 700; font-size: 13px; line-height: 1.3; }
.wkb-related-kind { font-size: 11px; color: var(--ink-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* CTA-fixed (Thesis page) */
.wkb-cta-fixed {
  position: sticky;
  bottom: 86px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 30%);
  padding: 22px 0 6px;
  z-index: 30;
}

/* Sanity */
.wkb-sanity-list { display: flex; flex-direction: column; gap: 12px; }
.wkb-sanity-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid;
  border-radius: var(--r-md);
  padding: 16px;
}
.wkb-sanity-critical { border-left-color: #DC2626; box-shadow: 0 1px 8px rgba(220,38,38,.12); }
.wkb-sanity-warning  { border-left-color: #F59E0B; }
.wkb-sanity-note     { border-left-color: var(--ink-3); }
.wkb-sanity-head { display: flex; gap: 12px; margin-bottom: 10px; }
.wkb-sanity-icon { font-size: 24px; flex-shrink: 0; }
.wkb-sanity-topic { flex: 1; }
.wkb-sanity-sev {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.wkb-sanity-critical .wkb-sanity-sev { color: #DC2626; }
.wkb-sanity-warning .wkb-sanity-sev  { color: #B36900; }
.wkb-sanity-title {
  font-family: var(--display); font-weight: 500;
  font-size: 18px; color: var(--ink); margin-top: 2px;
  line-height: 1.2;
}
.wkb-sanity-concern, .wkb-sanity-rec {
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
  margin-top: 8px;
}
.wkb-sanity-rec { padding: 8px 10px; background: var(--line-soft); border-radius: var(--r-sm); }
.wkb-sanity-theses { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.wkb-mini-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 6px; }
.wkb-mini-link {
  display: inline-block;
  background: var(--line-soft);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  margin: 2px 4px 2px 0;
}
.wkb-mini-link:hover { background: var(--vv-green-tint); color: var(--vv-green-dark); }

/* Conflicts */
.wkb-conflict-list { display: flex; flex-direction: column; gap: 14px; }
.wkb-conflict-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.wkb-conflict-head {
  background: var(--ink);
  color: white;
  padding: 14px 16px;
}
.wkb-conflict-topic {
  font-family: var(--display); font-weight: 500;
  font-size: 16px; line-height: 1.25; letter-spacing: -0.01em;
}
.wkb-conflict-cols {
  display: grid; grid-template-columns: 1fr 1fr;
}
.wkb-conflict-col {
  padding: 14px;
}
.wkb-conflict-col-h { background: rgba(91,108,255,.08); border-right: 1px solid var(--line); }
.wkb-conflict-col-p { background: rgba(232,75,138,.08); }
.wkb-conflict-author {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.wkb-conflict-col-h .wkb-conflict-author { color: #5B6CFF; }
.wkb-conflict-col-p .wkb-conflict-author { color: #E84B8A; }
.wkb-conflict-pos { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.wkb-conflict-why {
  background: var(--vv-green-tint);
  padding: 12px 16px;
}
.wkb-conflict-why-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--vv-green-dark); margin-bottom: 4px;
}
.wkb-conflict-why-text { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* Diary */
.wkb-cal-grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px;
}
@media (max-width: 360px) {
  .wkb-cal-grid { grid-template-columns: repeat(7, 1fr); }
}
.wkb-cal-cell {
  aspect-ratio: 1 / 1;
  background: var(--line-soft);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--ink-3); font-weight: 600;
}
.wkb-cal-cell.wkb-cal-full { background: var(--vv-green); color: white; }
.wkb-cal-cell.wkb-cal-partial { background: var(--vv-lime); color: var(--ink-2); }
.wkb-cal-cell.wkb-cal-miss { background: #FFE3DC; color: #B14C20; }
.wkb-cal-day { line-height: 1; }
.wkb-cal-legend {
  display: flex; gap: 14px; margin-top: 12px;
  font-size: 12px; color: var(--ink-3);
}
.wkb-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wkb-cal-swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  background: var(--line-soft);
}
.wkb-cal-swatch.wkb-cal-full { background: var(--vv-green); }
.wkb-cal-swatch.wkb-cal-partial { background: var(--vv-lime); }
.wkb-cal-swatch.wkb-cal-miss { background: #FFE3DC; }

.wkb-bonus-block {
  background: linear-gradient(135deg, var(--vv-yellow) 0%, #FFA500 100%);
  border-radius: var(--r-lg);
  padding: 22px;
  text-align: center;
  color: var(--ink);
}
.wkb-bonus-counter { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.wkb-bonus-num {
  font-family: var(--display); font-weight: 500;
  font-size: 56px; line-height: 1; letter-spacing: -0.03em;
}
.wkb-bonus-label { font-size: 14px; font-weight: 700; }
.wkb-bonus-note {
  margin-top: 12px;
  font-size: 12px; color: var(--ink-2); opacity: 0.75;
  background: rgba(255,255,255,.5);
  padding: 8px 12px;
  border-radius: 99px;
  display: inline-block;
}

.wkb-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wkb-photo-card {
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
}
.wkb-photo-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.wkb-photo-card figcaption { padding: 8px 10px; }
.wkb-photo-date { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.wkb-photo-thesis { font-size: 12px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.wkb-photo-note { font-size: 11px; color: var(--ink-3); margin-top: 4px; line-height: 1.4; }

.wkb-ledger { display: flex; flex-direction: column; gap: 6px; }
.wkb-ledger-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
}
.wkb-ledger-amount {
  flex-shrink: 0;
  font-family: var(--display); font-weight: 600;
  font-size: 18px; color: var(--vv-green-dark);
}
.wkb-ledger-body { flex: 1; min-width: 0; }
.wkb-ledger-kind { font-weight: 700; font-size: 13px; color: var(--ink); }
.wkb-ledger-reason { font-size: 11px; color: var(--ink-3); }
.wkb-ledger-date { font-size: 11px; color: var(--ink-4); flex-shrink: 0; }

/* Loading / Empty / Error */
.wkb-loading {
  text-align: center;
  padding: 30px 14px;
  color: var(--ink-3);
  font-size: 14px;
}
.wkb-empty {
  text-align: center;
  padding: 30px 14px;
  color: var(--ink-3);
}
.wkb-empty-icon { font-size: 32px; margin-bottom: 8px; }
.wkb-empty-msg { font-size: 14px; margin-bottom: 14px; }
.wkb-error {
  background: var(--paper);
  border: 1px dashed var(--vv-red);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
}
.wkb-error-icon { font-size: 26px; margin-bottom: 6px; }
.wkb-error-msg { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.wkb-error-retry { padding: 8px 16px; font-size: 13px; }

/* Toasts */
.wkb-toast-root {
  position: fixed;
  bottom: calc(var(--vv-nav-h, 76px) + 24px);
  left: 50%; transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
  width: calc(100% - 40px);
  max-width: 390px;
  /* отступ от измеренной панели, не от числа (VVELL-914) */
}
.wkb-toast {
  /* ⚠ БЕЗ ПЕРЕХВАТА НАЖАТИЙ (VVELL-914, 15.09.2026): плашка висит 3,5 секунды, и всё это время
     съедала тапы по карточкам под собой — человек жмёт товар, и ничего не происходит. */
  pointer-events: none;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wkb-toast-shown { opacity: 1; transform: translateY(0); }
.wkb-toast-hidden { opacity: 0; transform: translateY(-20px); }
.wkb-toast-success { background: var(--vv-green-dark); }
.wkb-toast-info { background: var(--ink); }
.wkb-toast-bonus {
  background: linear-gradient(135deg, var(--vv-yellow) 0%, #FFA500 100%);
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  animation: wkb-bonus-pulse 0.6s var(--ease-spring);
}
.wkb-toast-bonus-icon { font-size: 32px; flex-shrink: 0; }
.wkb-toast-bonus-body { flex: 1; min-width: 0; }
.wkb-toast-bonus-title { font-family: var(--display); font-weight: 600; font-size: 15px; }
.wkb-toast-bonus-amount { font-size: 13px; font-weight: 700; opacity: 0.85; margin-top: 2px; }
@keyframes wkb-bonus-pulse {
  0% { transform: translateY(20px) scale(0.8); }
  60% { transform: translateY(0) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

/* Modal */
.wkb-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9000;
  padding: 20px;
  animation: wkb-fade .2s var(--ease);
}
@keyframes wkb-fade { from { opacity: 0; } to { opacity: 1; } }
.wkb-modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 22px;
  max-width: 380px; width: 100%;
  box-shadow: var(--sh-3);
}
.wkb-modal-title {
  font-family: var(--display); font-weight: 500;
  font-size: 20px; line-height: 1.2;
  margin-bottom: 14px;
}
.wkb-modal-body { margin-bottom: 14px; }
.wkb-modal-actions {
  display: flex; gap: 8px; justify-content: flex-end;
}
.wkb-field { display: block; margin-bottom: 12px; }
.wkb-field-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 6px; }
.wkb-file, .wkb-textarea {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper);
}
.wkb-textarea { resize: vertical; min-height: 70px; }

/* Bottom-nav adapter (использует существующий .bottom-nav из app.css) */
.wkb-bottom-nav { display: flex; }
.wkb-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--ink-3);
  padding: 8px 4px;
  font-size: 11px;
  background: none; border: none;
}
.wkb-bottom-nav a svg { width: 22px; height: 22px; margin-bottom: 2px; }
.wkb-bottom-nav a.active { color: var(--vv-green); font-weight: 800; }
.wkb-bottom-nav a.active svg { stroke-width: 2.3; transform: scale(1.06); }

/* === Lifestyle Diary Tracker (2026-05-21) === */
.vv-ld-header { padding: 0 16px 12px; }
.vv-ld-h1 { font-size: 20px; font-weight: 800; font-family: var(--heading); line-height: 1.2; }
.vv-ld-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.vv-ld-summary {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; margin: 0 12px 16px;
  background: var(--paper); border-radius: var(--r-md);
  border: 1px solid var(--ink-5, #eee);
}
.vv-ld-circle-wrap { width: 90px; height: 90px; flex-shrink: 0; }
.vv-ld-circle { width: 100%; height: 100%; }
.vv-ld-summary-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.vv-ld-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
}
.vv-ld-line span:first-child { font-weight: 600; color: var(--ink); }
.vv-ld-ok { color: var(--vv-green) !important; font-weight: 600; }

.vv-ld-section { padding: 14px 16px; border-top: 1px solid var(--ink-5, #eee); }
.vv-ld-stitle { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

.vv-ld-empty { text-align: center; padding: 20px 0; }
.vv-ld-empty-msg { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; line-height: 1.4; }

/* Tracked habits */
.vv-ld-habit {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; margin-bottom: 8px;
  background: var(--paper); border-radius: var(--r-sm);
  border: 1px solid var(--ink-5, #eee);
  transition: border-color .2s, background .2s;
}
.vv-ld-habit.is-done { border-color: var(--vv-green-tint, #c8f5d0); background: var(--vv-green-tint, #f0faf0); }
.vv-ld-hinfo { flex: 1; min-width: 0; }
/* ⚠ НАЗВАНИЕ ПЕРЕНОСИТСЯ В ДВЕ СТРОКИ, А НЕ РЕЖЕТСЯ МНОГОТОЧИЕМ (07.09.2026).
   Было `white-space: nowrap` с многоточием, и на 390 px рядом со второй кнопкой
   («Не делал», VVELL-720) от названий оставались огрызки: «Ложиться и вс…»,
   «Убрать яркий …», «Стакан воды у…». По названию человек решает, отмечать ли
   привычку, — рубить его посреди слова нельзя. Ровно это правило уже действует
   на Фундаменте (premium.css, .wkb-mine); теперь оно общее. */
.vv-ld-htitle {
  font-size: 13px; font-weight: 600; line-height: 1.3;
  /* Три строки, а не две: замер на живом экране показал, что при двух
     «Ложиться и вставать в одно время» всё равно упиралось в многоточие. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  white-space: normal; overflow: hidden;
}
.vv-ld-hstreak { font-size: 11px; color: var(--vv-orange, #e88a1a); font-weight: 600; }
.vv-ld-hbtn {
  flex-shrink: 0; margin-left: 10px;
  padding: 7px 14px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--vv-berry, #e8375a);
  background: transparent; color: var(--vv-berry, #e8375a);
  cursor: pointer; transition: all .15s;
}
.vv-ld-hbtn:active { transform: scale(0.96); }
.vv-ld-hbtn.is-done {
  background: var(--vv-green); color: #fff;
  border-color: var(--vv-green);
}
/* «Не делал?» (VVELL-720, 07.09.2026): ВТОРОСТЕПЕННАЯ кнопка — приглушённая,
   но с постоянным контуром.
   ⚠ РАМКА В ПОКОЕ ОБЯЗАТЕЛЬНА (правка 07.09.2026 по разбору). Сначала здесь
   стоял голый текст без рамки и заливки — «чтобы не спорить с „Отметить“».
   На живом экране получилось хуже, чем спор: 21 строка с серой надписью
   «Не делал» слева от зелёной кнопки читалась колонкой статуса, то есть
   приложение как будто выносило приговор про человека до первого тапа. А на
   выполненной привычке зелёная галочка и надпись «Не делал» стояли в одной
   строке и противоречили друг другу. Форма пилюли повторяет «Отметить»:
   рядом стоят два ОТВЕТА на один вопрос, а не статус и действие. */
.vv-ld-hskip {
  flex-shrink: 0; margin-left: 6px;
  padding: 7px 8px; border: 1px solid var(--ink-5, #e6e6e2); background: none;
  border-radius: var(--r-xs);
  font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--ink-3, #8a8f8a); cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.vv-ld-hskip:active { transform: scale(0.96); }
.vv-ld-hskip.is-on {
  color: var(--ink); font-weight: 700;
  border-color: var(--ink-3, #8a8f8a); background: var(--ink-5, #eee);
}
/* Подпись над списком привычек: она делает из двух кнопок строки два ответа на
   заданный вопрос. Без неё серая кнопка читалась выводом приложения о человеке. */
.vv-ld-shint {
  font-size: 12px; color: var(--ink-3, #8a8f8a); line-height: 1.35;
  margin: -2px 0 10px;
}
/* Строка «Напоминание о привычках» под списком (VVELL-1301): ведёт в «Настройки → Уведомления». Цвета только токенами. */
.vv-ld-remind {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 10px; padding: 10px 12px;
  background: var(--paper, transparent); border: 1px solid var(--line-soft, var(--ink-5, #eee)); border-radius: var(--r-md, 12px);
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.vv-ld-remind .wh-ic { width: 18px; height: 18px; flex: 0 0 auto; color: var(--vv-green-dark, var(--ink-3)); }
.vv-ld-remind .vv-ld-remind-t { flex: 1; min-width: 0; }
.vv-ld-remind .vv-ld-remind-v { font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.vv-ld-remind .vv-ld-remind-go { display: flex; }
.vv-ld-remind .vv-ld-remind-go .wh-ic { color: var(--ink-3); transform: rotate(-90deg); }
.vv-ld-remind.is-pressed { background: var(--vv-green-tint); }
/* Строка «не делал»: приглушена, но не покрашена зелёным — это не выполнение. */
.vv-ld-habit.is-skipped { opacity: .68; }

/* Progress bars */
.vv-ld-prow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vv-ld-bar { flex: 1; height: 8px; background: var(--ink-5, #eee); border-radius: 4px; overflow: hidden; }
.vv-ld-bar-fill { height: 100%; background: var(--vv-green); border-radius: 4px; transition: width .3s; }
.vv-ld-pval { font-size: 12px; color: var(--ink-3); white-space: nowrap; min-width: 90px; text-align: right; }

/* Quick-add buttons */
.vv-ld-qbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.vv-ld-qbtn {
  padding: 7px 12px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 600;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink-5, #ddd);
  cursor: pointer; transition: all .15s;
  font-family: var(--body);
}
.vv-ld-qbtn:active { transform: scale(0.96); background: var(--ink-5); }
.vv-ld-coffee { color: var(--ink-3); }
.vv-ld-hint { font-size: 11px; color: var(--ink-3); margin-top: 6px; font-style: italic; }

/* === Wellness modes (2026-05-02) === */

/* Совет дня на главной — режим recommendations */
.wkb-tip-of-day-wrap {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.wkb-tip-card {
  background: linear-gradient(135deg, #fff8e8 0%, #fff3d0 100%);
  border: 1px solid #f5d77a;
  border-radius: var(--r-md);
  padding: 18px 16px;
}
.wkb-tip-card .wkb-tip-label {
  font-size: 12px;
  font-weight: 800;
  color: #b27a00;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wkb-tip-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #4a3a00;
}
.wkb-tip-card p {
  margin: 0 0 10px;
  color: #5d4d1a;
  line-height: 1.5;
}
.wkb-tip-more {
  display: inline-block;
  color: #b27a00;
  font-weight: 700;
  text-decoration: none;
}
.wkb-tip-loading {
  color: #888;
  font-style: italic;
}
.wkb-tracker-hint {
  background: #f4f8ed;
  border: 1px dashed var(--vv-green, #2DBE64);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wkb-tracker-hint p { margin: 0; font-size: 14px; color: #2e3a2e; }
.wkb-btn-secondary {
  background: var(--vv-green, #2DBE64);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--r-xs);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.wkb-btn-secondary:active { transform: scale(0.97); }

/* Welcome page */
.wkb-welcome {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}
.wkb-welcome-hero {
  text-align: center;
  margin-bottom: 24px;
}
.wkb-welcome-hero h1 {
  font-size: 24px;
  margin: 0 0 8px;
  color: #1a2a1a;
}
.wkb-welcome-sub { color: #777; margin: 0; }
.wkb-welcome-cards {
  display: grid;
  gap: 14px;
}
.wkb-mode-card {
  background: var(--paper);
  border: 2px solid #eaeaea;
  border-radius: var(--r-md);
  padding: 20px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, transform 0.05s;
}
.wkb-mode-card:hover { border-color: var(--vv-green, #2DBE64); }
.wkb-mode-card:active { transform: scale(0.99); }
.wkb-mode-card.loading { opacity: 0.6; pointer-events: none; }
.wkb-mode-icon { font-size: 32px; margin-bottom: 8px; }
.wkb-mode-card h3 { margin: 0 0 10px; font-size: 18px; color: #1a2a1a; }
.wkb-mode-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  color: #444;
  font-size: 14px;
}
.wkb-mode-card ul li {
  padding-left: 22px;
  position: relative;
  margin: 6px 0;
}
.wkb-mode-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--vv-green, #2DBE64);
  font-weight: bold;
}
.wkb-mode-tag {
  font-size: 12px;
  color: #888;
  font-style: italic;
}
.wkb-welcome-status {
  margin-top: 20px;
  text-align: center;
  color: #555;
  min-height: 24px;
}

/* Settings — секция режима */
.wkb-settings-mode {
  background: #f7f9f5;
  border-radius: var(--r-md);
  padding: 16px;
  margin: 12px;
  border: 1px solid #e2eed7;
}
.wkb-settings-mode h3 { margin: 0 0 6px; font-size: 16px; }
.wkb-settings-mode p { margin: 0 0 12px; color: #555; font-size: 14px; }

/* === Wellness widgets on home dashboard (2026-05-02) === */
.wkb-home-widgets {
  padding: 0 16px;
  display: grid;
  gap: 12px;
}
.wkb-home-widgets-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2, #5a6a5a);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wkb-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--ink-line, #E2E8E2);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.05s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.wkb-widget:active { transform: scale(0.99); }
.wkb-widget:hover { box-shadow: 0 4px 12px rgba(45,190,100,0.12); border-color: var(--vv-green, #2DBE64); }
.wkb-widget-foundation { background: linear-gradient(135deg,#f4faf0 0%,#fff 60%); }
.wkb-widget-spheres    { background: linear-gradient(135deg,#f0f4ff 0%,#fff 60%); }
.wkb-widget-diary      { background: linear-gradient(135deg,#fff8e8 0%,#fff 60%); }
.wkb-widget-icon {
  font-size: 32px;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wkb-widget-body { flex: 1; min-width: 0; }
.wkb-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #1a2a1a);
  margin-bottom: 2px;
}
.wkb-widget-sub {
  font-size: 13px;
  color: var(--ink-3, #788078);
  margin-bottom: 8px;
}
.wkb-widget-progress {
  display: flex; flex-direction: column; gap: 4px;
}
.wkb-widget-progress-bar {
  height: 6px;
  background: #e8eee8;
  border-radius: 3px;
  overflow: hidden;
}
.wkb-widget-progress-bar span {
  display: block;
  height: 100%;
  background: var(--vv-green, #2DBE64);
  transition: width 0.4s;
}
.wkb-widget-progress-text {
  font-size: 11px;
  color: var(--ink-3, #788078);
}
.wkb-widget-cta {
  font-weight: 700;
  color: var(--vv-green, #2DBE64);
  font-size: 13px;
}
.wkb-widget-streak {
  font-size: 13px;
  color: var(--ink-2, #2a3a2a);
  margin-top: 4px;
}
.wkb-widget-mini-radar {
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
}
.wkb-widget-mini-radar svg { display: block; }
.wkb-widget-arrow {
  font-size: 22px;
  color: var(--ink-3, #aaa);
  font-weight: 300;
}

/* === Onboarding wizard (6 steps) — 2026-05-04 === */
/* ⚠ ШАПКА И КНОПКИ ЗАКРЕПЛЕНЫ, ПРОКРУЧИВАЕТСЯ ТОЛЬКО СЕРЕДИНА (20.08.2026).
   Было: `min-height: 100vh` и обычный поток — вся страница ехала целиком, и
   кнопка «Далее» уходила ровно настолько, насколько длинный шаг. Замеры на
   живом визарде, окно 390×844:
     шаг «Какие цели вам важны?» — страница 1759 px, кнопка на y=1683;
     шаг «Как удобнее общаться?» — 1591 px, «Готово» на y=1514.
   То есть на шаге целей человек видел плитки и НИ ОДНОЙ кнопки: чтобы пойти
   дальше, надо было догадаться пролистать два экрана. На 360×640 то же самое
   начиналось уже на первом шаге «Расскажите о себе» (764 px при окне 640).
   Длину шагов это не лечит и лечить не должно — целей девятнадцать, они
   столько и занимают. Лечит то, что выход со шага теперь всегда на экране.
   `100dvh`, а не `100vh`: в мобильном Safari `vh` считается по окну БЕЗ
   адресной строки, и футер на 100vh прячется под неё — то есть ровно та
   кнопка, ради которой всё и делается. */
.wkb-onb {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
}
.wkb-onb-head { padding-bottom: 12px; flex: 0 0 auto; }
.wkb-onb-progress {
  height: 6px;
  background: rgba(0,0,0,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.wkb-onb-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2DBE64, #4ADE80);
  transition: width 0.3s;
}
.wkb-onb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: var(--ink-2, #555);
  font-size: 13px;
}
.wkb-onb-skip {
  background: none;
  border: none;
  color: var(--ink-3, #999);
  font-size: 13px;
  cursor: pointer;
}

.wkb-onb-main {
  flex: 1 1 auto;
  padding: 16px 0;
  /* Прокручивается ТОЛЬКО содержимое шага — шапка с прогрессом и кнопки
     остаются на месте. `overscroll-behavior` не даёт «протащить» за собой
     страницу под визардом, когда список докручен до края. */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.wkb-onb-step { animation: wkb-fade 0.3s; }
@keyframes wkb-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wkb-onb-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink, #1a1a1a);
}
.wkb-onb-sub {
  font-size: 14px;
  color: var(--ink-2, #555);
  margin: 0 0 20px;
  line-height: 1.5;
}
.wkb-onb-note {
  background: rgba(45, 190, 100, 0.08);
  border-left: 3px solid #2DBE64;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2, #444);
  margin-bottom: 16px;
}

/* Tiles (mode, supplements yes/no) */
.wkb-onb-tiles {
  display: grid;
  gap: 12px;
}
.wkb-onb-tile {
  background: var(--paper);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font: inherit;
  color: inherit;
}
.wkb-onb-tile:hover {
  border-color: rgba(45, 190, 100, 0.4);
  transform: translateY(-1px);
}
.wkb-onb-tile.selected {
  border-color: #2DBE64;
  background: rgba(45, 190, 100, 0.05);
}
.wkb-onb-tile-icon { font-size: 28px; margin-bottom: 6px; }
.wkb-onb-tile-label { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.wkb-onb-tile-desc { font-size: 13px; color: var(--ink-2, #555); line-height: 1.4; }

/* Chips (diet, allergies) */
.wkb-onb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wkb-onb-chip {
  background: var(--paper);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font: inherit;
  color: inherit;
}
.wkb-onb-chip:hover { border-color: rgba(45, 190, 100, 0.5); }
.wkb-onb-chip.selected {
  background: #2DBE64;
  border-color: #2DBE64;
  color: white;
}

/* Drilldown (medications, conditions) */
.wkb-onb-yesno { display: flex; gap: 10px; margin-bottom: 16px; }
.wkb-onb-yesno-btn {
  flex: 1;
  background: var(--paper);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--r-xs);
  padding: 14px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  font-size: 14px;
  transition: all 0.2s;
}
.wkb-onb-yesno-btn:hover { border-color: rgba(45,190,100,0.5); }
.wkb-onb-yesno-btn.selected {
  background: rgba(45,190,100,0.1);
  border-color: #2DBE64;
  font-weight: 600;
}

.wkb-onb-cat {
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r-xs);
  margin-bottom: 8px;
  overflow: hidden;
}
.wkb-onb-cat > summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}
.wkb-onb-cat > summary::-webkit-details-marker { display: none; }
.wkb-onb-cat > summary::after { content: '▾'; float: right; transition: transform 0.2s; }
.wkb-onb-cat[open] > summary::after { transform: rotate(180deg); }
.wkb-onb-cat-list {
  padding: 4px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wkb-onb-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}
.wkb-onb-checkbox:hover { background: rgba(0,0,0,0.03); }
.wkb-onb-checkbox input { margin-top: 2px; }
.wkb-onb-checkbox em { color: var(--ink-3, #888); font-style: normal; font-size: 12px; }

.wkb-onb-freetext { margin-top: 14px; }
.wkb-onb-freetext label { display: block; font-size: 13px; color: var(--ink-2, #555); margin-bottom: 4px; }
.wkb-onb-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--r-xs);
  font: inherit;
  /* 16px — иначе Safari на iOS зумит страницу при касании (было 13px). */
  font-size: 16px;
  resize: vertical;
}

.wkb-onb-foot {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  /* Отступ под «домашнюю полосу» айфона — иначе кнопка стоит вплотную к ней
     и нажимается через раз. */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line, rgba(0,0,0,0.08));
  flex: 0 0 auto;
  /* Фон обязателен: содержимое шага прокручивается ПОД футером, и без
     заливки под кнопками просвечивал бы список. Токен, а не белый литерал, —
     иначе ночью и на палитре «Песок» получилась бы заплатка. */
  background: var(--bg, var(--paper, #fff));
}
.wkb-onb-foot .wkb-btn { flex: 1; padding: 14px 12px; min-height: 48px; }

.wkb-btn {
  border-radius: var(--r-xs);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
/* ⚠ ВКЛЮЧЁННАЯ «ДАЛЕЕ»: белый на #2DBE64 = 2,42:1 в ОБЕИХ темах — тоже ниже
   порога, просто это видно хуже, чем исчезнувшая кнопка. Литерал заменён на
   заливочный токен: он для того и заведён, что под белым текстом (--vv-green-fill,
   день #1A855C = 4,61; ночь пересчитана в palette_sand.css). */
.wkb-btn-primary { background: var(--vv-green-fill, #1A855C); color: white; }
.wkb-btn-primary:hover:not([disabled]) { filter: brightness(0.92); }
/* ⚠ ВЫКЛЮЧЕННАЯ «ДАЛЕЕ» БЫЛА НАПИСАНА ЛИТЕРАЛАМИ ПОД СВЕТЛЫЙ ФОН — И НОЧЬЮ
   ИСЧЕЗАЛА. Замер на живом шаге онбординга «Стиль питания» (тема night):
   color rgba(0,0,0,0.4) на background rgba(0,0,0,0.1) поверх body rgb(19,28,24)
   = 1,08:1 при пороге 4,5:1. Слово «Далее» на снимке не читалось вовсе —
   человек видел только «Назад» и не понимал, чем идти вперёд. Днём та же пара
   давала 2,69:1, то есть правило было плохим и там, просто не смертельно.
   Токена темы в правиле не было ни одного — отсюда и поведение.
   Теперь и фон, и текст, и рамка берутся из палитры: --bg-warm/--ink-2/--line
   пересчитаны под обе темы (см. palette_sand.css). Фолбэки — дневные значения
   палитры, чтобы правило пережило отключённый <link> палитры. */
.wkb-btn-primary[disabled] {
  background: var(--bg-warm, #F5EFE3);
  color: var(--ink-2, #5E6B62);
  border: 1.5px solid var(--line, #E0D6C3);
  cursor: not-allowed;
}
.wkb-btn-ghost { background: transparent; border: 1.5px solid rgba(0,0,0,0.1); color: var(--ink, #333); }
.wkb-btn-ghost:hover { background: rgba(0,0,0,0.04); }

.wkb-onb-toast {
  position: fixed;
  bottom: calc(var(--vv-nav-h, 76px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 10px 18px;
  border-radius: var(--r-xl);
  font-size: 14px;
  z-index: 999;
}
.wkb-onb-toast[data-kind="ok"] { background: #2DBE64; }
.wkb-onb-toast[data-kind="error"] { background: #EF4444; }

.wkb-onb-loading { padding: 20px; text-align: center; color: var(--ink-3, #999); font-size: 14px; }
.wkb-onb-error { padding: 16px; text-align: center; color: #EF4444; font-size: 14px; }

/* =====================================================
   Block 2: Day Selector — today / tomorrow / послезавтра
   ===================================================== */
.vv-day-selector {
  padding: 8px 0 4px;
  margin-bottom: 6px;
}
.vv-day-selector-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #555);
  margin-bottom: 8px;
}
.vv-day-selector-btns {
  display: flex;
  gap: 8px;
}
.vv-day-btn {
  flex: 1;
  padding: 10px 8px;
  border: 1.5px solid var(--line-soft, #ededeb);
  border-radius: var(--r-xs);
  background: var(--card, white);
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  font-family: inherit;
}
.vv-day-btn-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #444);
}
.vv-day-btn-date {
  font-size: 11px;
  color: var(--ink-3, #888);
  margin-top: 2px;
}
.vv-day-btn.active {
  border-color: var(--vv-green, #2DBE64);
  background: var(--vv-green-tint, #E4F6EB);
}
.vv-day-btn.active .vv-day-btn-label {
  color: var(--vv-green-dark, #1FA650);
}
.vv-day-btn:hover:not(.active) {
  border-color: var(--vv-green, #2DBE64);
  background: rgba(45, 190, 100, 0.05);
}

/* =====================================================
   Block 2: Meal Toggles — enable/disable per meal
   ===================================================== */
.vv-meal-toggles {
  padding: 4px 0 8px;
  margin-bottom: 6px;
}
.vv-meal-toggles-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #555);
  margin-bottom: 8px;
}
.vv-meal-toggles-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
/* ⚠ min-height 44 — норма касания Apple HIG. Замерено 07.08: было 40px.
   Это переключатели приёмов пищи, главный способ управлять корзиной. */
.vv-meal-toggle-pill {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
  padding: 7px 12px;
  border: 1.5px solid var(--line-soft, #ededeb);
  border-radius: var(--r-lg);
  background: var(--card, white);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2, #555);
  transition: all .15s;
  user-select: none;
  -webkit-user-select: none;
}
.vv-meal-toggle-pill .vv-mt-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.vv-meal-toggle-pill .vv-mt-check svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity .12s;
}
.vv-meal-toggle-pill.active {
  border-color: var(--vv-green, #2DBE64);
  background: var(--vv-green-tint, #E4F6EB);
  color: var(--vv-green-dark, #1FA650);
}
.vv-meal-toggle-pill.active .vv-mt-check {
  border-color: var(--vv-green, #2DBE64);
  background: var(--vv-green, #2DBE64);
}
.vv-meal-toggle-pill.active .vv-mt-check svg {
  opacity: 1;
  stroke: white;
}
.vv-meal-toggle-pill:hover:not(.active) {
  border-color: #bbb;
  background: rgba(0,0,0,0.02);
}

/* Disabled meal block visual state — collapsible with smooth animation */
.vv-meal-block.vv-meal-disabled {
  opacity: 0.35;
  max-height: 48px;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .25s, max-height .3s ease-in-out;
}
.vv-meal-block.vv-meal-disabled .vv-meal-head::after {
  content: 'выключен';
  font-size: 11px;
  color: var(--ink-3, #999);
  font-weight: 400;
  margin-left: 8px;
}

/* ⚠ ЗДЕСЬ ЖИЛИ СТИЛИ «VVILLIAM КОУЧА» — СНЯТЫ 07.09.2026 (VVELL-724).
   Кнопка и нижний лист коуча удалены вместе с его кодом: он открывался
   вторым окном поверх корзины и умел только говорить. Разговор про
   корзину теперь один и идёт репликами общего чата. */

/* ═══════════════════════════════════════════════════════════════════════
   BLOCK 6: "Итог дня" — Day / Week Result Summary View
   ═══════════════════════════════════════════════════════════════════════
   Summary-oriented progress view. Two modes (day / week toggle).
   Day: nutrition ring + macros + meal breakdown + lifestyle grid.
   Week: TBD placeholder with disabled day-pills.
   No cart-related messaging.
   ═══════════════════════════════════════════════════════════════════════ */

/* -- View wrapper -- */
.vv-itog-view {
  padding: 0;
}
.vv-itog-header {
  margin-bottom: 14px;
}
.vv-itog-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.vv-itog-date {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
  text-transform: capitalize;
}

/* -- Day / Week toggle -- */
.vv-itog-toggle {
  display: flex;
  background: var(--line-soft);
  border-radius: var(--r-xs);
  padding: 3px;
  margin-bottom: 16px;
  gap: 2px;
}
.vv-itog-toggle-btn {
  flex: 1;
  min-height: 44px;          /* было 40px — ниже нормы касания (07.08) */
  padding: 8px 0;
  border: none;
  border-radius: var(--r-xs);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .18s var(--ease);
  text-align: center;
}
.vv-itog-toggle-btn.is-active {
  background: var(--card);
  color: var(--vv-green-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.vv-itog-toggle-btn:not(.is-active):hover {
  color: var(--ink-2);
}

/* -- Day readiness bar -- */
.vv-itog-readiness {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.vv-itog-readiness-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.vv-itog-readiness-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.vv-itog-readiness-val {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.vv-itog-readiness-bar {
  height: 6px;
  background: var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
.vv-itog-readiness-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--vv-green), var(--vv-lime, #9AE894));
  transition: width .6s var(--ease);
}

/* -- Section headers -- */
.vv-itog-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 10px;
  margin-bottom: 4px;
}
.vv-itog-section-icon { font-size: 18px; }
.vv-itog-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* -- Nutrition card with kcal ring + macro bars -- */
.vv-itog-nutrition-card {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Kcal ring */
.vv-itog-kcal-ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}
.vv-itog-kcal-ring {
  display: block;
}
.vv-itog-kcal-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.vv-itog-kcal-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--vv-green-dark);
  line-height: 1.1;
}
.vv-itog-kcal-label {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 1px;
  white-space: nowrap;
}

/* Macros */
.vv-itog-macros {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vv-itog-macro {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vv-itog-macro-bar-wrap {
  height: 6px;
  background: var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
.vv-itog-macro-bar {
  height: 100%;
  border-radius: 3px;
  transition: width .6s var(--ease);
}
.vv-itog-macro-bar-protein { background: #4CAF50; }
.vv-itog-macro-bar-fat     { background: #FF9800; }
.vv-itog-macro-bar-carbs   { background: #42A5F5; }
.vv-itog-macro-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.vv-itog-macro-val span {
  font-weight: 400;
  color: var(--ink-3);
}
.vv-itog-macro-lbl {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* -- Meal breakdown rows -- */
.vv-itog-meals {
  margin-bottom: 12px;
}
.vv-itog-meal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  transition: background .12s;
}
.vv-itog-meal-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.vv-itog-meal-info {
  flex: 1;
  min-width: 0;
}
.vv-itog-meal-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.vv-itog-meal-items {
  font-size: 12px;
  color: var(--ink-3);
}
.vv-itog-meal-kcal {
  font-size: 13px;
  font-weight: 600;
  color: var(--vv-green-dark);
  flex-shrink: 0;
  white-space: nowrap;
}

/* -- Empty nutrition hint (no cart messaging) -- */
.vv-itog-empty-hint {
  text-align: center;
  padding: 16px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

/* -- Lifestyle grid -- */
.vv-itog-life-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.vv-itog-life-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: all .15s;
}
.vv-itog-life-item:hover {
  border-color: var(--line);
  background: var(--paper);
}
.vv-itog-life-item.is-done {
  background: var(--vv-green-tint);
  border-color: var(--vv-green-tint);
}
.vv-itog-life-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.vv-itog-life-body {
  flex: 1;
  min-width: 0;
}
.vv-itog-life-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.vv-itog-life-value {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 1px;
}
.vv-itog-life-target {
  color: var(--ink-3);
  font-weight: 400;
}
/* «Дополнение к завтраку» — фрукты, орехи, соки завтрака отдельным блоком (VVELL-723) */
.vv-meal-bf-extra { margin-top: -6px; }
.vv-meal-bf-extra .vv-meal-title { font-size: 14px; font-weight: 600; color: var(--ink-2, var(--ink)); }
/* «Что на тебя влияет» — эффекты дня по своим ночам (VVELL-721) */
.vv-ld-eff-sub { font-size: 12px; color: var(--ink-3); margin: -4px 0 8px; }
.vv-ld-eff-item { padding: 8px 10px; border-radius: 10px; margin-top: 6px; background: var(--paper, #fff); border-left: 3px solid var(--ink-5, #ddd); }
.vv-ld-eff-item.is-bad { border-left-color: var(--warn, #b3541e); }
.vv-ld-eff-item.is-good { border-left-color: var(--accent, #1f5e45); }
.vv-ld-eff-text { font-size: 13.5px; line-height: 1.4; }
.vv-ld-eff-age { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
/* «Твои цели · где увидишь результат» в Дневнике (VVELL-727) */
.vv-dg { display: flex; flex-direction: column; gap: 10px; }
.vv-dg-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.vv-dg-title svg { width: 16px; height: 16px; }
.vv-dg-sub { font-weight: 400; font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.vv-dg-row { border-top: 1px solid var(--line-soft, rgba(0,0,0,.08)); padding-top: 8px; }
.vv-dg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vv-dg-name { font-weight: 700; }
.vv-dg-when { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.vv-dg-text { font-size: 13px; line-height: 1.4; color: var(--ink-2, var(--ink)); margin-top: 2px; }
.vv-dg-num, .vv-dg-lab-row { font-size: 13px; margin-top: 4px; }
.vv-dg-num b, .vv-dg-lab-row b { font-size: 14px; }
.vv-dg-lab, .vv-dg-norm, .vv-dg-cov { color: var(--ink-3); font-size: 12px; }
/* «К этому часу обычно N шагов» — строка под значением (VVELL-726) */
.vv-itog-life-hint {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-3);
}
.vv-itog-life-hint.is-low { color: var(--warn, #b3541e); }
.vv-itog-life-hint.is-high { color: var(--accent, #1f5e45); }
.vv-itog-life-item.is-done .vv-itog-life-title {
  color: var(--vv-green-dark);
}
.vv-itog-life-status {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--ink-4);
  transition: all .2s;
}
.vv-itog-life-item.is-done .vv-itog-life-status {
  background: var(--vv-green);
  border-color: var(--vv-green);
  color: white;
}

/* -- Quick actions strip (no cart button) -- */
.vv-itog-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.vv-itog-qbtn {
  flex: 1;
  min-height: 44px;          /* было 40px — ниже нормы касания (07.08) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
  text-align: center;
}
.vv-itog-qbtn:hover {
  border-color: var(--vv-green);
  background: var(--vv-green-tint);
  color: var(--vv-green-dark);
}

/* ═══════════════════════════════════════════════════════════════════════
   BLOCK 6: Week view — полоса дней
   Живой блок недели («Динамика · неделя», VVELL-301) рисуется инжектом
   `_ensureWeekCss()` в bindings.js; здесь остались только базовые размеры
   кнопки дня. Заглушка «В разработке» и её стили удалены 17.08.2026 вместе
   с самой заглушкой.
   ═══════════════════════════════════════════════════════════════════════ */

/* -- Week day pills strip -- */
.vv-itog-week-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
}
.vv-itog-week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--card);
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  min-width: 42px;
}.vv-itog-week-day.is-today {
  border-color: var(--vv-green);
  background: var(--vv-green-tint);
  opacity: 0.8;
}
.vv-itog-week-day-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-3);
  letter-spacing: 0.3px;
}
.vv-itog-week-day-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-2);
}
.vv-itog-week-day.is-today .vv-itog-week-day-name {
  color: var(--vv-green-dark);
}
.vv-itog-week-day.is-today .vv-itog-week-day-num {
  color: var(--vv-green-dark);
}


/* ============================================================
   BLOCK 7 — Visual Polish & Naming Cleanup
   ────────────────────────────────────────
   Targeted refinements toward VkusVill-like design language:
   • Off-white (--bg) backgrounds on screen containers
   • Green accent polish on headings & interactive elements
   • Dark readable headings (--ink, no murky grays)
   • Calm rounded cards with softer shadows
   • Consistent border-radius (--r-lg = 16px for cards)
   • Warmer tint on feature sections

   CONVENTION: All Block 7 overrides use existing CSS vars.
   No new custom properties introduced — uses --vv-green, --bg,
   --card, --ink, --r-lg, --sh-1, --sh-2 from :root above.

   Only screens touched by Blocks 1-6 are styled here:
   Homepage (dashboard), Cart, Lifehacks, Progress.
============================================================ */

/* ── 7.1 Screen container — warm off-white background ────────── */
#screen-dashboard,
#screen-cart,
#screen-lifehacks,
#screen-progress {
  background: var(--bg);
}

/* ── 7.2 Chat-header polish on touched screens ───────────────── */
/* Softer divider, slightly more breathing room */
#screen-cart .chat-header,
#screen-lifehacks .chat-header,
#screen-progress .chat-header {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 20px;
  margin-bottom: 18px;
}

/* Dark readable heading — ensure ink color, not gray */
#screen-cart .chat-header .h-1,
#screen-lifehacks .chat-header .h-1,
#screen-progress .chat-header .h-1 {
  color: var(--ink);
  font-weight: 500;
}

/* Green accent on <em> is already set globally; reinforce clarity */
#screen-cart .chat-header .sub,
#screen-lifehacks .chat-header .sub,
#screen-progress .chat-header .sub {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.55;
}

/* ── 7.3 Homepage: greeting & status bar polish ──────────────── */
.greeting-line {
  color: var(--ink);
  font-weight: 600;
}

.vv-day-status-bar {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin-bottom: 16px;
}

/* ── 7.4 Cart screen: calm rounded cards ─────────────────────── */
/* Meal blocks: uniform rounded radius + softer border */
.vv-meal-block {
  border-radius: var(--r-lg);
  border-color: var(--line-soft);
  box-shadow: var(--sh-1);
}

/* Meal header: readable dark title */
.vv-meal-head .vv-meal-title {
  color: var(--ink);
  font-weight: 600;
}

/* "Добавить ещё" button: green accent */
.vv-meal-add-more {
  color: var(--vv-green-dark);
  font-weight: 600;
}

/* Total bar: calm rounded card */
#screen-cart #cart-list > div:last-child {
  border-radius: var(--r-lg);
}

/* "Почему такая корзина" — softer toggle background */
.vv-why-cart {
  border-radius: var(--r-lg);
}
.vv-why-toggle {
  border-radius: var(--r-lg);
}

/* ── 7.5 Cart hero on homepage: softer glow ──────────────────── */
.vv-cart-hero {
  border-radius: var(--r-xl);
  box-shadow: 0 8px 24px rgba(45, 190, 100, 0.22);
}
.vv-cart-hero-btn {
  border-radius: var(--r-lg);
}

/* ── 7.6 Lifehacks: calm card refinements ────────────────────── */
/* Cards already use --r-lg; add consistent shadow + spacing */
.lifehack-card {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 4px rgba(26,26,26,0.03), 0 2px 8px rgba(26,26,26,0.02);
}
.lifehack-card:hover:not(.lifehack-card-open) {
  box-shadow: 0 4px 14px rgba(26,26,26,0.06);
}

/* Filter chips: consistent radius + calmer active state */
.lh-chip {
  border-radius: var(--r-pill);
}
.lh-chip-active {
  box-shadow: 0 2px 10px rgba(45,190,100,0.2);
}

/* ── 7.7 Progress tabs & content: warm containers ────────────── */
/* Tab strip pills: calm rounded */
.wkb-tab-strip {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
}

/* Foundation cards: calm rounded + softer shadow */
.wkb-found-card {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 4px rgba(26,26,26,0.03);
}

/* CTA button on foundation cards: green accent reinforcement */
.wkb-found-cta:not(.is-done):hover {
  border-color: var(--vv-green);
  color: var(--vv-green-dark);
}

/* Diary context: calm border */
.vv-diary-context {
  border-radius: var(--r-lg);
}

/* Itog dnya (Block 6 summary view): consistent cards */
.vv-itog-section {
  border-radius: var(--r-lg);
}
.vv-itog-nutrition-card {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 4px rgba(26,26,26,0.03);
}
.vv-itog-meal-card,
.vv-itog-meal-empty {
  border-radius: var(--r-md);
}
.vv-itog-lifestyle-card {
  border-radius: var(--r-md);
}

/* Quick action buttons: green accent + calm rounded */
.vv-itog-quick-actions .vv-day-qbtn,
.vv-itog-quick-actions button {
  border-radius: var(--r-lg);
  border-color: var(--line-soft);
}
.vv-itog-quick-actions .vv-day-qbtn:hover,
.vv-itog-quick-actions button:hover {
  border-color: var(--vv-green);
  color: var(--vv-green-dark);
}

/* ── 7.8 Plan summary on homepage: warm rounded card ─────────── */
.vv-plan-summary {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 3px rgba(26,26,26,0.03);
}

/* ── 7.9 Kcal compact card: warm rounded ─────────────────────── */
.vv-kcal-compact {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 3px rgba(26,26,26,0.03);
}

/* ── 7.10 Goal cards: consistent rounded + shadow ────────────── */
.goal-card-compact {
  border-radius: var(--r-lg);
  box-shadow: 0 1px 3px rgba(26,26,26,0.03);
}

/* ── 7.11 Daily recs card: warm background ───────────────────── */
.vv-daily-recs {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
}

/* ── 7.13 "VVILLIAM" branding: consistent green accent ──────────── */
/* Пункт 7.12 (нижний лист коуча) снят вместе с самим коучем, VVELL-724. */

/* Chat bot label "VVILLIAM" — green dot + dark text */
.msg.ai .bot {
  color: var(--ink-2);
  font-weight: 700;
}
.msg.ai .bot .dot {
  background: var(--vv-green);
}

/* ── Фундамент: компактные карточки тем (раньше .vv-theme-* были только в design_v2.css,
   в app.css отсутствовали → на версиях без design_v2.css шеврон-SVG раздувался в
   «гигантскую кнопку». Дублируем компактный list-item стиль здесь). 2026-06-15 ── */
.vv-themes-list { display: flex; flex-direction: column; gap: 10px; }
.vv-theme-card {
  background: var(--card, #fff);
  border: 1px solid var(--line, #E8E1D4);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s;
}
.vv-theme-card.is-open { border-color: var(--vv-green, #2DBE64); }
.vv-theme-header {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 16px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vv-theme-icon { font-size: 22px; line-height: 1; flex: 0 0 auto; width: 28px; text-align: center; }
.vv-theme-info { flex: 1 1 auto; min-width: 0; }
.vv-theme-name { font-size: 15px; font-weight: 700; color: var(--ink, #10170F); line-height: 1.25; }
.vv-theme-desc { font-size: 12px; color: var(--ink-3, #756C5D); margin-top: 2px; }
.vv-theme-count { font-size: 11px; color: var(--ink-3, #756C5D); white-space: nowrap; flex: 0 0 auto; }
.vv-theme-badge {
  font-size: 11px; font-weight: 700; color: var(--vv-green, #2DBE64);
  background: var(--vv-green-tint, rgba(45,190,100,.1));
  padding: 2px 8px; border-radius: var(--r-xs); white-space: nowrap; flex: 0 0 auto;
}
.vv-theme-chevron {
  width: 16px; height: 16px; max-width: 16px; max-height: 16px;
  flex: 0 0 auto; color: var(--ink-3, #756C5D);
  transition: transform .2s; display: block;
}
.vv-theme-card.is-open .vv-theme-chevron { transform: rotate(90deg); }
.vv-theme-habits { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; }
/* ⚠ БЕЗ ЭТОЙ СТРОКИ АККОРДЕОН НЕ ЗАКРЫВАЛСЯ ВОВСЕ (замер 16.08.2026).
   JS ставит на список атрибут hidden, но `[hidden]{display:none}` живёт в
   стиле БРАУЗЕРА, а `display:flex` — в авторском: авторский выигрывает
   независимо от веса селектора. Итог на живом экране: у всех пяти тем
   hidden=true и одновременно computed display=flex, высота 666px каждая,
   вкладка 4344px — стена из 25 карточек, которую нечем свернуть.
   Селектор с атрибутом (0,2,0) перебивает голый класс (0,1,0). */
.vv-theme-habits[hidden] { display: none; }
.vv-theme-diff { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 600; background: var(--ink-5, #f0f0f0); color: var(--ink-3, #756C5D); }
.vv-diff-easy { background: #e8f5e9; color: #2e7d32; }
.vv-diff-medium { background: #fff3e0; color: #e65100; }
.vv-diff-hard { background: #fce4ec; color: #c62828; }

/* ── Онбординг по замечаниям владельца 10.09.2026 (VVELL-818/821) ── */
.wkb-onb-store-row { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wkb-onb-store-input { width: 100%; box-sizing: border-box; min-height: 48px; }
.wkb-onb-store-near { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; }
.wkb-onb-store-near svg { width: 18px; height: 18px; }
.wkb-onb-birth { width: 100%; box-sizing: border-box; min-height: 48px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.wkb-onb-age-row { display: flex; align-items: center; gap: 10px; }
.wkb-onb-age-row .wkb-onb-birth { flex: 1 1 auto; }
.wkb-onb-age-unit { flex: 0 0 auto; white-space: nowrap; }
.wkb-onb-note { margin-top: 14px; }
.wkb-onb-allergy-toggle { width: 100%; text-align: left; margin-bottom: 12px; }
.wkb-onb-allergy-chips[hidden] { display: none !important; }
.wkb-onb-store-input, .wkb-onb-store-input[type=search] { -webkit-appearance: none; appearance: none; /* VVELL-818 store input */ border: 1px solid var(--line, #E0D6C3); border-radius: 12px; background: var(--paper, #FFFDF8); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink, #23302A); outline: none; }
.wkb-onb-store-input:focus { border-color: var(--vv-green, #159145); }
.wkb-onb-store-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ══ ПОЛОСА ПОД ЧАСАМИ И ВЫРЕЗОМ КАМЕРЫ (VVELL-915, 15.09.2026) ══════════════
   Владелец на айфоне: при прокрутке шапка исчезает, и содержимое заходит за вырез камеры и за
   системные часы. Шапка липкая и полупрозрачная — под системной строкой не оставалось ничего
   плотного. Эта полоса стоит всегда и красится фоном приложения.

   ⚠ Там, где безопасной зоны нет (компьютер, браузер без выреза, webview, прижатый к зоне),
   env(safe-area-inset-top) равен нулю — высота полосы 0, и она не видна вовсе. Поэтому правило
   безопасно везде и не требует проверок на устройство.

   Слой 60 выбран сознательно: выше нижней панели (50) и кнопки вида главной, но НИЖЕ листов и
   модальных окон (≈950) — полоса не должна ложиться поверх диалогов. */
:root { --vv-safe-top: env(safe-area-inset-top, 0px); }
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0;
  height: var(--vv-safe-top); background: var(--bg, #F1EADD);
  z-index: 60; pointer-events: none;
}
html.vv-theme-night body::before { background: #131C18; }
