/* styles.css — Telegram Mini App «Тело помнит»
   Дизайн: нативный iOS / Telegram, glass morphism, мобильный 320–430px.
*/

/* ─── Переменные ──────────────────────────────────────────────────────────── */
:root {
  /* Telegram-тема (переопределяются SDK автоматически) */
  --tg-bg:           var(--tg-theme-bg-color, #ffffff);
  --tg-secondary-bg: var(--tg-theme-secondary-bg-color, #f2f2f7);
  --tg-text:         var(--tg-theme-text-color, #000000);
  --tg-hint:         var(--tg-theme-hint-color, #8e8e93);
  --tg-link:         var(--tg-theme-link-color, #2AABEE);
  --tg-btn:          var(--tg-theme-button-color, #2AABEE);
  --tg-btn-text:     var(--tg-theme-button-text-color, #ffffff);
  --tg-header-bg:    var(--tg-theme-header-bg-color, #ffffff);

  /* Бренд */
  --accent:          #2a4a38;
  --accent-hover:    #1e3020;
  --accent-mid:      #3d6b51;
  --accent-light:    rgba(42, 74, 56, 0.10);
  --accent-glow:     rgba(42, 74, 56, 0.28);
  --green:           #2a4a38;
  --green-dark:      #1e3020;
  --gold:            #c49a3c;
  --gold-light:      rgba(196,154,60,0.12);
  --danger:          #ff3b30;
  --success:         #34c759;
  --success-glow:    rgba(52, 199, 89, 0.28);

  /* Поверхности */
  --card-bg:     var(--tg-bg);
  --card-border: rgba(0,0,0,0.06);
  --shadow-xs:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:   0 8px 28px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.15), 0 6px 16px rgba(0,0,0,0.08);
  --shadow-glow: 0 4px 24px var(--accent-glow);

  /* Геометрия */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  /* Типографика */
  --font-body:   -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;

  /* Размеры */
  --nav-height:  60px;
  --header-h:    56px;
  --bottom-h:    76px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Тёмная тема */
@media (prefers-color-scheme: dark) {
  :root {
    --card-border:  rgba(255,255,255,0.07);
    --shadow-xs:    0 1px 3px rgba(0,0,0,0.28);
    --shadow-sm:    0 2px 10px rgba(0,0,0,0.36);
    --shadow-md:    0 8px 28px rgba(0,0,0,0.42);
    --shadow-lg:    0 20px 60px rgba(0,0,0,0.52);
    --accent-light: rgba(61,107,81,0.18);
    --accent-glow:  rgba(61,107,81,0.32);
  }
}

/* ─── Сброс и база ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--tg-bg);
  color: var(--tg-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ─── Контейнер приложения ───────────────────────────────────────────────── */
#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ─── Экраны ─────────────────────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--tg-bg);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.screen--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* Анимации переходов */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0.6; }
  to   { transform: translateX(0);    opacity: 1;   }
}
@keyframes slideOutLeft {
  from { transform: translateX(0);    opacity: 1;   }
  to   { transform: translateX(-28%); opacity: 0;   }
}
@keyframes slideInLeft {
  from { transform: translateX(-28%); opacity: 0;   }
  to   { transform: translateX(0);    opacity: 1;   }
}
@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1;   }
  to   { transform: translateX(100%); opacity: 0.6; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.screen--enter        { animation: slideInRight .28s cubic-bezier(.4,0,.2,1) forwards; }
.screen--exit         { animation: slideOutLeft  .28s cubic-bezier(.4,0,.2,1) forwards; }
.screen--enter-back   { animation: slideInLeft   .28s cubic-bezier(.4,0,.2,1) forwards; }
.screen--exit-back    { animation: slideOutRight .28s cubic-bezier(.4,0,.2,1) forwards; }
.screen--fade-in      { animation: fadeIn .3s ease forwards; }

/* ─── Общие блоки экрана ─────────────────────────────────────────────────── */
.screen-header {
  flex-shrink: 0;
  padding: 14px 16px 10px;
  background: var(--tg-header-bg, var(--tg-bg));
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 0.5px solid var(--card-border);
  position: relative;
  z-index: 2;
}
.screen-title {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--tg-text);
  letter-spacing: -0.01em;
}
.screen-sub {
  font-size: 13px;
  color: var(--tg-hint);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(var(--bottom-h) + var(--safe-bottom) + 8px);
}
.screen-scroll--no-bottom { padding-bottom: 16px; }

.screen-bottom {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 0.5px solid var(--card-border);
  background: var(--tg-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}

/* ─── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity .15s, transform .12s, box-shadow .15s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.965); opacity: 0.88; }

.btn--primary {
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-glow), 0 2px 8px rgba(0,0,0,0.15);
}
.btn--primary:active {
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn--primary:disabled {
  opacity: 0.38;
  pointer-events: none;
  box-shadow: none;
}

.btn--accent {
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-glow), 0 2px 8px rgba(0,0,0,0.15);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn--ghost {
  background: var(--tg-secondary-bg);
  color: var(--tg-text);
}

.btn--full { width: 100%; }
.btn--sm   { min-height: 42px; padding: 10px 18px; font-size: 14px; }

/* ─── Карточки ───────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--card-border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

/* ─── Секция-заголовок ───────────────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ─── Экран: Сплэш ───────────────────────────────────────────────────────── */
.splash-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* Фоновое свечение за иконкой */
.splash-wrap::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(42,74,56,0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: splashGlow 2s ease-in-out infinite alternate;
}

@keyframes splashGlow {
  from { transform: scale(0.9); opacity: 0.6; }
  to   { transform: scale(1.2); opacity: 1;   }
}

.splash-icon {
  font-size: 72px;
  line-height: 1;
  animation: splashPulse 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(42,74,56,0.30));
}
@keyframes splashPulse {
  0%,100% { transform: scale(1);    }
  50%      { transform: scale(1.09); }
}

@keyframes breathe {
  0%,100% { transform: scale(1);    }
  50%      { transform: scale(1.06); }
}

.splash-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  font-weight: 700;
  color: var(--tg-text);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.splash-sub {
  font-size: 14px;
  color: var(--tg-hint);
  position: relative;
  z-index: 1;
}
.splash-loader {
  margin-top: 36px;
  width: 100px;
  height: 3px;
  background: var(--accent-light);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.splash-loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-mid), var(--accent));
  border-radius: 3px;
  animation: splashLoad 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes splashLoad {
  from { width: 0; }
  to   { width: 100%; }
}

/* ─── Главный экран: нижняя навигация ───────────────────────────────────── */
.bottom-nav {
  flex-shrink: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  background: var(--tg-header-bg, var(--tg-bg));
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-top: 0.5px solid var(--card-border);
  position: relative;
  z-index: 20;
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--tg-hint);
  transition: color .2s;
  padding: 6px 4px;
  position: relative;
}
.nav-btn svg { transition: transform .22s cubic-bezier(.34,1.56,.64,1); }

/* Активный айтем: мягкая pill-подсветка */
.nav-btn--active { color: var(--accent); }
.nav-btn--active svg { transform: scale(1.14); }
.nav-btn--active::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 28px;
  background: var(--accent-light);
  border-radius: 10px;
  z-index: -1;
  animation: navPillIn .2s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes navPillIn {
  from { transform: translateX(-50%) scale(0.7); opacity: 0; }
  to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}

/* ─── Вкладки ────────────────────────────────────────────────────────────── */
.tab-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.tab-pane--active { display: flex; }

/* ─── Дневник ────────────────────────────────────────────────────────────── */
.streak-hero {
  background: linear-gradient(135deg, #2d5c44 0%, var(--accent) 50%, #1a3028 100%);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
/* Блеск на карточке стрика */
.streak-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.streak-flame {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(255,160,0,0.5));
  animation: flameDance 2s ease-in-out infinite;
}
@keyframes flameDance {
  0%,100% { transform: rotate(-3deg) scale(1);    }
  50%      { transform: rotate(3deg)  scale(1.06); }
}
.streak-info { flex: 1; }
.streak-num  {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: var(--font-body);
}
.streak-days { font-size: 13px; opacity: .82; margin-top: 2px; }

.today-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  border: 0.5px solid var(--card-border);
  background: var(--tg-secondary-bg);
  box-shadow: var(--shadow-xs);
}
.today-card--done {
  border-color: rgba(52,199,89,0.35);
  background: rgba(52,199,89,0.06);
}

.today-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 8px 0;
}
.today-empty-icon  { font-size: 38px; }
.today-empty-title { font-size: 16px; font-weight: 600; color: var(--tg-text); }
.today-empty-sub   { font-size: 13px; color: var(--tg-hint); }

.today-done {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.today-done-check {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  box-shadow: 0 3px 10px var(--success-glow);
}
.today-done-info  { flex: 1; }
.today-done-title { font-size: 15px; font-weight: 600; }
.today-done-meta  { font-size: 13px; color: var(--tg-hint); margin-top: 2px; }

/* ─── Несколько записей за день ─────────────────────────────────────────── */
.today-multi { display: flex; flex-direction: column; }
.today-entry-row { padding: 4px 0; }
.today-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.today-entry-zone { font-size: 14px; font-weight: 600; color: var(--tg-text); }
.today-entry-time { font-size: 11px; color: var(--tg-hint); }
.today-divider {
  height: 0.5px;
  background: var(--card-border);
  margin: 8px 0;
}

/* ─── Карточки записей ───────────────────────────────────────────────────── */
.entry-card {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  border: 0.5px solid var(--card-border);
  box-shadow: var(--shadow-xs);
}
.entry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.entry-zone    { font-size: 14px; font-weight: 600; }
.entry-date    { font-size: 12px; color: var(--tg-hint); }
.entry-sens    { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.entry-sens-chip {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}
.entry-note { font-size: 13px; color: var(--tg-hint); font-style: italic; }

/* ─── Карта тела — переключатель ─────────────────────────────────────────── */
.view-toggle {
  display: flex;
  gap: 6px;
  padding: 0 0 14px;
  justify-content: center;
}
.view-toggle-btn {
  flex: 1;
  max-width: 130px;
  padding: 9px 16px;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: var(--tg-secondary-bg);
  color: var(--tg-hint);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.view-toggle-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 12px var(--accent-glow);
}

/* ─── Фигура тела (SVG) ───────────────────────────────────────────────────── */
.body-figure-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.body-figure-svg {
  width: 55%;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.10));
}

/* Зоны на теле */
.zone-path {
  fill: rgba(255, 185, 80, 0.08);
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.7;
  cursor: pointer;
  transition: fill .18s, stroke .18s, filter .18s;
}
.zone-path:hover {
  fill: rgba(255, 185, 80, 0.22);
  stroke: rgba(255, 220, 140, 0.80);
  filter: drop-shadow(0 0 2px rgba(255, 170, 60, 0.45));
}
.zone-path--decor {
  fill: rgba(255, 185, 80, 0.04);
  stroke: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.zone-path--active {
  fill: rgba(255, 170, 50, 0.35);
  stroke: rgba(255, 215, 100, 0.95);
  stroke-width: 0.9;
  filter: drop-shadow(0 0 4px rgba(255, 170, 50, 0.65));
}

.zone-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--tg-secondary-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  text-align: left;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
  min-height: 54px;
}
.zone-btn:active { transform: scale(0.97); }
.zone-btn--active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.zone-btn-name { font-size: 15px; font-weight: 600; color: var(--tg-text); }
.zone-btn-sub  { font-size: 12px; color: var(--tg-hint); }

.zone-info-card {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 16px;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-xs);
}
.zone-info-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.zone-info-desc { font-size: 13px; color: var(--tg-hint); line-height: 1.55; }

/* ─── Ощущения ───────────────────────────────────────────────────────────── */
.sensations-zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sensations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sensation-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tg-secondary-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
  min-height: 58px;
}
.sensation-btn:active { transform: scale(0.96); }
.sensation-btn--active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.sensation-emoji { font-size: 22px; line-height: 1; }
.sensation-label { font-size: 14px; font-weight: 500; color: var(--tg-text); }

.sensation-custom-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.sensation-custom-input {
  flex: 1;
  background: var(--tg-secondary-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--tg-text);
  transition: border-color .18s;
  min-width: 0;
}
.sensation-custom-input:focus {
  outline: none;
  border-color: var(--accent);
}
.sensation-custom-input::placeholder { color: var(--tg-hint); }
.sensation-custom-add {
  flex: 0 0 auto;
  width: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: transform .12s, opacity .18s;
}
.sensation-custom-add:active { transform: scale(0.94); }

/* ─── Заметка ────────────────────────────────────────────────────────────── */
.note-header-info {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--tg-hint);
}
.note-badge {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.note-textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px;
  background: var(--tg-secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--tg-text);
  resize: none;
  outline: none;
  line-height: 1.6;
  transition: border-color .2s, box-shadow .2s;
  -webkit-user-select: text;
  user-select: text;
}
.note-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.note-textarea::placeholder { color: var(--tg-hint); }
.note-hint {
  font-size: 12px;
  color: var(--tg-hint);
  margin-top: 10px;
  text-align: center;
}

/* ─── Сохранено ──────────────────────────────────────────────────────────── */
.saved-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}
@keyframes savedPop {
  0%   { transform: scale(0.4); opacity: 0; }
  55%  { transform: scale(1.18); }
  75%  { transform: scale(0.95); }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes savedRing {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0;   }
}
.saved-circle {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 24px;
  animation: savedPop .55s cubic-bezier(.22,1,.36,1) both;
  box-shadow: 0 6px 28px var(--success-glow);
  position: relative;
}
/* Пульсирующее кольцо вокруг чекмарка */
.saved-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--success);
  animation: savedRing 1.2s ease-out .4s forwards;
}
.saved-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.saved-sub   { font-size: 15px; color: var(--tg-hint); margin-bottom: 24px; }
.saved-streak {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-lg);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 32px;
  border: 1px solid rgba(42,74,56,0.15);
}

/* ─── История ────────────────────────────────────────────────────────────── */
.history-date-group { margin-bottom: 20px; }
.history-date-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--tg-hint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.history-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--tg-hint);
}
.history-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ─── Диагностика: вопросы ───────────────────────────────────────────────── */
.diag-progress {
  height: 3px;
  background: var(--card-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.diag-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-mid), var(--accent));
  border-radius: 3px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.diag-counter { font-size: 12px; color: var(--tg-hint); }

.question-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 24px;
  color: var(--tg-text);
  letter-spacing: -0.01em;
}

.options-list { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  width: 100%;
  background: var(--tg-secondary-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  color: var(--tg-text);
  transition: border-color .18s, background .18s, box-shadow .15s, transform .12s;
  min-height: 52px;
}
.option-btn:active  { transform: scale(0.98); }
.option-btn--selected {
  border-color: var(--accent);
  background: var(--accent-light);
  font-weight: 500;
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Диагностика: таб-интро */
.diag-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}
.diag-intro-icon { font-size: 52px; text-align: center; }
.diag-intro-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--tg-text);
  letter-spacing: -0.01em;
}
.diag-intro-desc {
  font-size: 15px;
  color: var(--tg-hint);
  text-align: center;
  line-height: 1.6;
}
.diag-intro-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.diag-chip {
  background: var(--tg-secondary-bg);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--tg-hint);
}

/* Диагностика: таб-результат */
.diag-saved-result {
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.diag-saved-emoji  { font-size: 40px; margin-bottom: 8px; }
.diag-saved-name   { font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.diag-saved-sub    { font-size: 13px; opacity: .75; margin-bottom: 16px; }
.diag-saved-date   { font-size: 12px; opacity: .6; }

/* ─── Результат диагностики ──────────────────────────────────────────────── */
.result-hero {
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
/* Блеск на карточке результата */
.result-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.result-emoji    {
  font-size: 64px;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.20));
  display: block;
}
.result-name     { font-size: 28px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.result-subtitle { font-size: 14px; opacity: .75; margin-bottom: 16px; }
.result-desc     { font-size: 15px; line-height: 1.65; }

.result-section {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  border: 0.5px solid var(--card-border);
}
.result-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--tg-hint);
  margin-bottom: 8px;
}
.result-section-text { font-size: 14px; line-height: 1.6; color: var(--tg-text); }
.result-cta-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ─── Профиль ────────────────────────────────────────────────────────────── */
.profile-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  border: 0.5px solid var(--card-border);
}
.profile-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.profile-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.profile-meta { font-size: 13px; color: var(--tg-hint); margin-top: 2px; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-box {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  text-align: center;
  border: 0.5px solid var(--card-border);
}
.stat-box-num   {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-box-label { font-size: 11px; color: var(--tg-hint); margin-top: 4px; }

/* ─── Следующая встреча ──────────────────────────────────────────────────── */
.next-meeting-card {
  background: linear-gradient(145deg, #2d5c44, var(--accent));
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.next-meeting-card::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.next-meeting-card--done {
  background: var(--tg-secondary-bg);
  color: var(--tg-text);
  box-shadow: var(--shadow-xs);
}
.next-meeting-label {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 6px;
}
.next-meeting-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.next-meeting-date { font-size: 14px; opacity: .9; margin-bottom: 4px; }
.next-meeting-week { font-size: 12px; opacity: .72; }

/* ─── Расписание ─────────────────────────────────────────────────────────── */
.schedule-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.schedule-item {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  border-left: 3px solid var(--accent);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
}
.schedule-item:active { opacity: 0.75; transform: scale(0.99); }
.schedule-item-left { display: flex; flex-direction: column; gap: 2px; }
.schedule-item--past { opacity: .42; border-left-color: var(--card-border); }
.schedule-item-date { font-size: 13px; font-weight: 600; color: var(--tg-text); }
.schedule-item-type { font-size: 12px; color: var(--tg-hint); }
.schedule-item-practice { font-size: 11px; color: var(--accent); font-style: italic; margin-top: 2px; }
.schedule-item-arrow { color: var(--card-border); flex-shrink: 0; }

/* ─── Bottom sheet ───────────────────────────────────────────────────────── */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tg-secondary-bg);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}
.bottom-sheet.active { transform: translateY(0); }
.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--card-border);
  border-radius: 2px;
  margin: 14px auto 4px;
  flex-shrink: 0;
}
.bottom-sheet-content {
  padding: 8px 20px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bottom-sheet-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--tg-hint);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.meeting-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.meeting-detail-type {
  font-size: 18px;
  font-weight: 700;
  color: var(--tg-text);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: -0.01em;
}
.meeting-detail-date { font-size: 13px; color: var(--tg-hint); margin-top: 4px; }
.meeting-detail-week {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}
.meeting-detail-practice {
  background: rgba(42,74,56,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 16px;
}
.meeting-detail-section { margin-bottom: 16px; }
.meeting-detail-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.meeting-detail-text { font-size: 14px; color: var(--tg-text); line-height: 1.55; }

/* ─── Онбординг ─────────────────────────────────────────────────────────── */
#screen-onboarding {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.onboarding-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  padding: 24px 20px 32px;
  text-align: center;
}
.onboarding-icon {
  font-size: 44px;
  margin-bottom: 12px;
  animation: breathe 3.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(42,74,56,0.25));
}
.onboarding-hello {
  font-size: 26px;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: var(--tg-text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.onboarding-welcome {
  font-size: 15px;
  color: var(--tg-hint);
  margin: 0 0 20px;
  line-height: 1.55;
}
.onboarding-welcome em { color: var(--accent); font-style: italic; }
.onboarding-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.onboarding-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  border: 0.5px solid var(--card-border);
  box-shadow: var(--shadow-xs);
}
.onboarding-bullet-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.onboarding-bullets li div { display: flex; flex-direction: column; gap: 2px; }
.onboarding-bullets li strong { font-size: 14px; font-weight: 600; color: var(--tg-text); }
.onboarding-bullets li span  { font-size: 12px; color: var(--tg-hint); line-height: 1.4; }
.onboarding-btn { width: 100%; font-size: 16px; padding: 13px 24px; }

/* ─── Zoom pending ───────────────────────────────────────────────────────── */
.zoom-pending {
  font-size: 13px;
  color: var(--tg-hint);
  text-align: center;
  padding: 10px 0;
}

.host-card-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 0.5px solid var(--card-border);
}
.host-avatar-mini {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 10px var(--accent-glow);
}
.host-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.host-name-mini { font-size: 14px; font-weight: 600; }
.host-role-mini { font-size: 12px; color: var(--tg-hint); margin-top: 1px; }
.host-tg-link   { margin-left: auto; color: var(--accent); flex-shrink: 0; }

/* ─── SVG иконки (заменяют emoji) ──────────────────────────────────────── */
.icon-svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.2em;
  display: inline-block;
  flex-shrink: 0;
}
.sensation-emoji .icon-svg,
.tops-emoji .icon-svg,
.checkin-scale-emoji .icon-svg,
.checklist-emoji .icon-svg { width: 1em; height: 1em; vertical-align: middle; }
.diag-result-emoji .icon-svg,
.reaction-card-emoji .icon-svg { width: 1em; height: 1em; }

.app-footer {
  text-align: center;
  font-size: 12px;
  color: var(--tg-hint);
  padding: 20px 0 8px;
  opacity: 0.7;
}
.app-footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.program-card {
  background: linear-gradient(145deg, #2d5c44, var(--accent));
  border-radius: var(--radius-xl);
  padding: 20px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.program-card-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.program-card-sub  { font-size: 13px; opacity: .8; margin-bottom: 16px; }
.program-card-meta { display: flex; gap: 12px; font-size: 13px; margin-bottom: 16px; flex-wrap: wrap; }
.program-card-meta span { opacity: .85; }

/* ─── Модалка: оффер ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  animation: overlayIn 0.28s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.offer-card {
  background: var(--tg-bg);
  border-radius: var(--radius-xl);
  padding: 30px 24px 26px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: cardPop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 0.5px solid var(--card-border);
}

@keyframes cardPop {
  from { transform: scale(0.86); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.offer-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 16px rgba(42,74,56,0.25));
}
.offer-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--tg-text);
  letter-spacing: -0.01em;
}
.offer-sub {
  font-size: 14px;
  color: var(--tg-hint);
  line-height: 1.55;
  margin-bottom: 16px;
}
.offer-bullets {
  list-style: none;
  text-align: left;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offer-bullets li {
  font-size: 15px;
  color: var(--tg-text);
  padding-left: 26px;
  position: relative;
}
.offer-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.offer-btn {
  display: block;
  text-align: center;
  padding: 15px 20px;
  background: linear-gradient(145deg, var(--accent-mid), var(--accent));
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 14px;
  min-height: 50px;
  line-height: 1.3;
  box-shadow: var(--shadow-glow), 0 2px 8px rgba(0,0,0,0.12);
  transition: opacity .15s, transform .12s;
}
.offer-btn:active { opacity: 0.85; transform: scale(0.97); }
.offer-skip {
  font-size: 14px;
  color: var(--tg-hint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

/* ─── Утилиты ────────────────────────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-hint   { color: var(--tg-hint); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   ВКЛАДКА: МОЙ ПУТЬ
═══════════════════════════════════════════════════════════════════════════ */

/* Пустое состояние */
.mypath-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 24px;
}
.mypath-empty-icon  { font-size: 52px; margin-bottom: 16px; }
.mypath-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--tg-text);
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: -0.01em;
}
.mypath-empty-sub  { font-size: 14px; color: var(--tg-hint); line-height: 1.55; }

/* ─── Диагностика паттерна ─────────────────────────────────────────────── */
.diag-invite {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.diag-invite-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.diag-invite-sub {
  font-size: 13px;
  color: var(--tg-hint);
  line-height: 1.5;
  margin-bottom: 16px;
}

.diag-result-card {
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--p-color-light, rgba(0,0,0,0.06));
  border-left: 4px solid var(--p-color, var(--accent));
}
.diag-result-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.diag-result-emoji { font-size: 32px; }
.diag-result-name  { font-size: 18px; font-weight: 700; }
.diag-result-sub   { font-size: 13px; color: var(--tg-hint); margin-top: 2px; }
.diag-result-desc  { font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.diag-result-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p-color, var(--accent));
  margin-bottom: 6px;
}
.diag-result-body  { font-size: 13px; color: var(--tg-hint); line-height: 1.55; margin-bottom: 14px; }
.diag-result-retry {
  background: none;
  border: none;
  color: var(--tg-hint);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  margin-top: 4px;
}

.diag-quiz {
  padding: 8px 0;
}
.diag-quiz-header  { margin-bottom: 20px; }
.diag-quiz-counter { font-size: 12px; color: var(--tg-hint); margin-bottom: 8px; }
.diag-quiz-bar {
  height: 4px;
  background: var(--tg-secondary-bg);
  border-radius: 2px;
  overflow: hidden;
}
.diag-quiz-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.diag-quiz-q {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 20px;
}
.diag-quiz-options { display: flex; flex-direction: column; gap: 10px; }
.diag-quiz-option {
  background: var(--tg-secondary-bg);
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  color: var(--tg-text);
  transition: background 0.15s;
}
.diag-quiz-option:active { background: var(--tg-section-bg, #e8e8e8); }

/* Зеркало недели */
.mirror-card {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 4px solid var(--accent);
  margin-bottom: 4px;
  box-shadow: var(--shadow-xs);
}
.mirror-card--empty { border-left-color: var(--card-border); }
.mirror-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.mirror-text {
  font-size: 15px;
  color: var(--tg-text);
  line-height: 1.55;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
}
.mirror-text em { font-style: normal; color: var(--accent); font-weight: 600; }
.mirror-count { font-size: 12px; color: var(--tg-hint); margin-top: 8px; }

/* Тепловая карта */
.hmap-wrap {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 0.5px solid var(--card-border);
}
.hmap-svg-col { flex-shrink: 0; width: 100px; }
.hmap-img-wrap { position: relative; width: 100%; }
.hmap-glow-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}
.hmap-zones-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hmap-labels-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
}
.hmap-row { display: flex; align-items: center; gap: 8px; }
.hmap-zone-name {
  font-size: 11px;
  color: var(--tg-hint);
  width: 68px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hmap-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(42,74,56,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.hmap-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-mid), var(--accent));
  border-radius: 3px;
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}
.hmap-count { font-size: 11px; color: var(--tg-hint); width: 16px; text-align: right; flex-shrink: 0; }
.hmap-count--active { color: var(--accent); font-weight: 700; }

/* Кнопка посещаемости */
.schedule-item-wrap { position: relative; }
.schedule-item-wrap .schedule-item--past { padding-right: 44px; }
.attend-btn {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(42,74,56,0.28);
  background: var(--tg-bg);
  color: var(--tg-hint);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  flex-shrink: 0;
}
.attend-btn--on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px var(--accent-glow);
}
.attend-hint {
  font-size: 11px;
  color: var(--tg-hint);
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}

/* Топ ощущений */
.tops-list { display: flex; flex-direction: column; gap: 8px; }
.tops-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 0.5px solid var(--card-border);
}
.tops-rank  { font-size: 12px; font-weight: 700; color: var(--tg-hint); width: 14px; flex-shrink: 0; }
.tops-emoji { font-size: 20px; flex-shrink: 0; }
.tops-info  { flex: 1; min-width: 0; }
.tops-label { font-size: 13px; font-weight: 600; color: var(--tg-text); margin-bottom: 4px; }
.tops-bar-wrap {
  height: 4px;
  background: rgba(42,74,56,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.tops-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-mid), var(--accent));
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}
.tops-count { font-size: 13px; font-weight: 700; color: var(--accent); flex-shrink: 0; }

/* Статистика пути */
.path-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.path-stat {
  background: var(--tg-secondary-bg);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  border: 0.5px solid var(--card-border);
}
.path-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.path-stat-of    { font-size: 14px; font-weight: 400; color: var(--tg-hint); }
.path-stat-label { font-size: 11px; color: var(--tg-hint); line-height: 1.3; }

/* ─── Кнопка-действие в шапке экрана ─────────────────────────────────────── */
.screen-header { position: relative; }
.screen-header-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--tg-hint);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}
.screen-header-btn:active { color: var(--accent); border-color: var(--accent); }

/* ─── AI Чат ──────────────────────────────────────────────────────────────── */
.ai-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 24px;
  text-align: center;
}
.ai-locked-icon { font-size: 48px; margin-bottom: 16px; }
.ai-locked-title { font-size: 17px; font-weight: 600; color: var(--tg-text); margin-bottom: 10px; }
.ai-locked-text { font-size: 14px; color: var(--tg-hint); line-height: 1.6; }

.ai-welcome {
  padding: 40px 24px;
  text-align: center;
}
.ai-welcome-icon {
  font-size: 44px;
  margin-bottom: 16px;
}
.ai-welcome-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--tg-text);
}
.ai-msg {
  display: flex;
  margin: 6px 16px;
}
.ai-msg--user  { justify-content: flex-end; }
.ai-msg--assistant { justify-content: flex-start; }
.ai-msg-text {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}
.ai-msg--user .ai-msg-text {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg--assistant .ai-msg-text {
  background: var(--tg-secondary-bg);
  color: var(--tg-text);
  border-bottom-left-radius: 4px;
}

/* Индикатор набора текста */
.ai-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 48px;
  padding: 14px 16px !important;
}
.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tg-hint);
  animation: aiTyping 1.1s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes aiTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Поле ввода */
.ai-input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--tg-bg);
  border-top: 1px solid var(--card-border);
  z-index: 10;
}
.ai-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--tg-secondary-bg);
  color: var(--tg-text);
  outline: none;
  resize: none;
  max-height: 100px;
  line-height: 1.4;
  transition: border-color 0.15s;
}
.ai-input:focus { border-color: var(--accent); }
.ai-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.ai-send-btn:active { opacity: 0.75; transform: scale(0.93); }

/* ─── Стоп-реакция ──────────────────────────────────────────────────────── */

/* Сетка типов реакций */
.reaction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reaction-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  background: var(--reaction-bg, rgba(0,0,0,0.04));
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, transform 0.12s;
}
.reaction-card:active { transform: scale(0.97); }
.reaction-card--selected {
  border-color: var(--reaction-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--reaction-color) 15%, transparent);
}
.reaction-card-emoji { font-size: 1.5rem; line-height: 1; }
.reaction-card-name  { font-size: 14px; font-weight: 600; color: var(--tg-text); }
.reaction-card-sub   { font-size: 11px; color: var(--tg-hint); }

/* Слайдер интенсивности */
.intensity-wrap {
  padding: 4px 0 8px;
}
.checkin-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
}
.checkin-step-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--tg-secondary-bg);
  color: var(--tg-hint);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.checkin-step-btn:active { background: var(--accent); color: #fff; }

.intensity-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) 50%, var(--card-border) 50%);
  outline: none;
  cursor: pointer;
}
.intensity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  cursor: pointer;
}
.intensity-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.intensity-hint  { font-size: 12px; color: var(--tg-hint); }
.intensity-value {
  font-size: 18px; font-weight: 700;
  color: var(--accent);
  min-width: 24px; text-align: center;
}

/* Чипы зон тела (горизонтальный скролл) */
.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zone-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--tg-secondary-bg);
  border: 1.5px solid var(--card-border);
  color: var(--tg-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.zone-chip--selected {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Опциональная подсказка */
.optional-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--tg-hint);
  margin-left: 6px;
}

/* Карточка в истории реакций */
.trigger-card {
  background: var(--tg-secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}
.trigger-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.trigger-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.trigger-card-date     { font-size: 12px; color: var(--tg-hint); }
.trigger-card-situation { font-size: 14px; color: var(--tg-text); line-height: 1.4; margin-bottom: 6px; }
.trigger-card-meta     { font-size: 12px; color: var(--tg-hint); margin-bottom: 4px; }
.trigger-card-note     { font-size: 13px; color: var(--tg-hint); font-style: italic; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--card-border); }

/* Статистика реакций */
.trigger-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.trigger-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trigger-stat-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.trigger-stat-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.trigger-stat-label { font-size: 13px; color: var(--tg-text); white-space: nowrap; min-width: 110px; }
.trigger-stat-count { font-size: 13px; font-weight: 600; color: var(--tg-hint); min-width: 20px; text-align: right; }

/* ─── Трекер изменений — форма чекина ─────────────────────────────────── */
.checkin-scale-item {
  background: var(--tg-secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}
.checkin-scale-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.checkin-scale-emoji { font-size: 18px; }
.checkin-scale-label { font-size: 14px; font-weight: 500; color: var(--tg-text); flex: 1; }
.checkin-scale-val   { font-size: 20px; font-weight: 700; color: var(--accent); min-width: 24px; text-align: right; }

/* ─── История чекинов — карточка ──────────────────────────────────────── */
.checkin-card {
  background: var(--tg-secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}
.checkin-card-date { font-size: 13px; font-weight: 600; color: var(--tg-hint); margin-bottom: 10px; }
.checkin-card-note { font-size: 13px; color: var(--tg-hint); font-style: italic; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--card-border); }

.checkin-mini-bars   { display: flex; flex-direction: column; gap: 6px; }
.checkin-mini-row    { display: flex; align-items: center; gap: 8px; }
.checkin-mini-label  { font-size: 14px; width: 20px; }
.checkin-mini-bar-wrap { flex: 1; height: 6px; background: var(--card-border); border-radius: 3px; overflow: hidden; }
.checkin-mini-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.checkin-mini-val    { font-size: 12px; color: var(--tg-hint); width: 16px; text-align: right; }

/* ─── Сравнение было/стало ─────────────────────────────────────────────── */
.checkin-comparison {
  background: var(--tg-secondary-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}
.checkin-comparison-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-text);
  margin-bottom: 12px;
}
.checkin-comparison-dates { font-size: 12px; font-weight: 400; color: var(--tg-hint); }
.checkin-compare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--card-border);
}
.checkin-compare-row:last-child { border-bottom: none; }
.checkin-compare-label { font-size: 13px; color: var(--tg-text); flex: 1; }
.checkin-compare-vals  { font-size: 13px; color: var(--tg-hint); }
.checkin-delta         { font-size: 13px; font-weight: 700; min-width: 28px; text-align: right; }
.checkin-delta--good   { color: #22c55e; }
.checkin-delta--bad    { color: #ef4444; }
.checkin-delta--same   { color: var(--tg-hint); }

/* ─── Чеклист ощущений (Стоп-реакция) ────────────────────────────────────── */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--tg-secondary-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.checklist-item--selected {
  border-color: var(--accent);
  background: var(--accent-light);
}
.checklist-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.checklist-item--selected .checklist-check {
  background: var(--accent);
  border-color: var(--accent);
}
.checklist-item--selected .checklist-check::after {
  content: '✓';
  font-size: 13px;
  color: #fff;
  line-height: 1;
}
.checklist-emoji { font-size: 18px; }
.checklist-label { font-size: 15px; color: var(--tg-text); }

/* ═══════════════════════════════════════════════════════════════════════════
   АНКЕТА УЧАСТНИЦЫ
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Bottom sheet — приглашение ────────────────────────────────────────── */
.q-invite-emoji  { font-size: 36px; text-align: center; margin-bottom: 12px; }
.q-invite-title  { font-family: Georgia, serif; font-size: 20px; font-weight: 400; font-style: italic; text-align: center; color: var(--tg-text); margin: 0 0 10px; }
.q-invite-text   { font-size: 14px; color: var(--tg-hint); text-align: center; line-height: 1.5; margin: 0 0 20px; }
.q-invite-later  { display: block; width: 100%; background: none; border: none; padding: 12px; font-size: 14px; color: var(--tg-hint); cursor: pointer; text-align: center; margin-top: 8px; }

/* ─── Баннер в профиле ───────────────────────────────────────────────────── */
.q-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tg-secondary-bg);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 0 16px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.q-banner-icon  { font-size: 24px; flex-shrink: 0; }
.q-banner-body  { flex: 1; min-width: 0; }
.q-banner-title { font-size: 14px; font-weight: 600; color: var(--tg-text); margin-bottom: 2px; }
.q-banner-sub   { font-size: 12px; color: var(--tg-hint); }
.q-banner svg   { flex-shrink: 0; stroke: var(--tg-hint); }

/* ─── Экран анкеты ───────────────────────────────────────────────────────── */
.questionnaire-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--tg-bg);
}

.questionnaire-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}

.q-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--tg-hint);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}

.q-progress-wrap  { flex: 1; }
.q-progress-bar   { height: 4px; background: var(--card-border); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.q-progress-fill  { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; }
.q-progress-label { font-size: 12px; color: var(--tg-hint); text-align: right; }

.questionnaire-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.q-block-title {
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  color: var(--tg-text);
  margin-bottom: 20px;
}

/* ─── Поля анкеты ────────────────────────────────────────────────────────── */
.q-field       { margin-bottom: 20px; }
.q-label       { font-size: 15px; font-weight: 500; color: var(--tg-text); margin-bottom: 6px; display: block; line-height: 1.4; }
.q-field-hint  { font-size: 13px; color: var(--tg-hint); margin-bottom: 8px; }
.q-required    { color: var(--accent); margin-left: 2px; }

.q-input, .q-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--tg-secondary-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 15px;
  color: var(--tg-text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  resize: none;
}
.q-input:focus, .q-textarea:focus { border-color: var(--accent); }

/* ─── Варианты ответов ───────────────────────────────────────────────────── */
.q-options { display: flex; flex-direction: column; gap: 8px; }

.q-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tg-secondary-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.q-option input { display: none; }
.q-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.q-option-label { font-size: 14px; color: var(--tg-text); line-height: 1.4; }

/* ─── Шкала ──────────────────────────────────────────────────────────────── */
.q-scale { display: flex; gap: 6px; flex-wrap: wrap; }

.q-scale-btn {
  flex: 1;
  min-width: 36px;
  height: 40px;
  background: var(--tg-secondary-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--tg-text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.q-scale-btn--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Футер с кнопками ───────────────────────────────────────────────────── */
.questionnaire-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--card-border);
  flex-shrink: 0;
  background: var(--tg-bg);
}
.q-back-btn { flex: 1; }
.q-next-btn { flex: 2; }

/* ─── Финальный экран ────────────────────────────────────────────────────── */
.q-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  min-height: 300px;
}
.q-done-icon  { font-size: 56px; margin-bottom: 20px; }
.q-done-title { font-family: Georgia, serif; font-size: 24px; font-style: italic; color: var(--tg-text); margin-bottom: 12px; }
.q-done-text  { font-size: 15px; color: var(--tg-hint); line-height: 1.6; max-width: 280px; }

/* ─── Согласие на обработку данных (ФЗ-152) ─────────────────────────────── */

/* Чекбокс в онбординге */
.consent-block {
  margin: 12px 0 10px;
  text-align: left;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--tg-hint);
  line-height: 1.5;
}
.consent-cb {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-link {
  color: var(--accent);
  text-decoration: underline;
}

/* Баннер в профиле для существующих пользователей */
.consent-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e6;
  border: 1px solid #e8c96b;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.consent-banner-icon { font-size: 22px; flex-shrink: 0; }
.consent-banner-body { flex: 1; min-width: 0; }
.consent-banner-title { font-size: 13px; font-weight: 600; color: var(--tg-text); margin-bottom: 2px; }
.consent-banner-sub   { font-size: 12px; color: var(--tg-hint); }
.consent-banner-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ─── Итоговое резюме потока ─────────────────────────────────────────────── */
.stream-summary {
  background: linear-gradient(135deg, #2a4a38 0%, #3d6b52 100%);
  border-radius: 18px;
  padding: 24px 20px 20px;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}
.stream-summary-title {
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  margin-bottom: 4px;
}
.stream-summary-sub { font-size: 13px; opacity: 0.75; margin-bottom: 20px; }
.stream-summary-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.stream-summary-num   { font-size: 28px; font-weight: 700; line-height: 1; }
.stream-summary-label { font-size: 11px; opacity: 0.7; margin-top: 4px; line-height: 1.4; }
.stream-summary-insight {
  font-size: 13px;
  opacity: 0.85;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.5;
}

/* ─── График чекинов ─────────────────────────────────────────────────────── */
.checkin-chart-wrap {
  background: var(--tg-secondary-bg);
  border-radius: 14px;
  padding: 12px 8px 8px;
}
.checkin-chart-svg { width: 100%; display: block; }
.checkin-chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 6px;
}
.cchart-leg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tg-hint);
}
.cchart-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Фильтр по неделям (карта тела) ─────────────────────────────────────── */
.hmap-week-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hmap-week-btn {
  background: var(--tg-secondary-bg);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--tg-hint);
  cursor: pointer;
}
.hmap-week-btn--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ─── Последние заметки ──────────────────────────────────────────────────── */
.rnotes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rnote-item {
  background: var(--tg-secondary-bg);
  border-radius: 12px;
  padding: 12px 14px;
}
.rnote-date  { font-size: 11px; color: var(--tg-hint); margin-bottom: 4px; }
.rnote-text  { font-size: 14px; color: var(--tg-text); line-height: 1.5; }

/* ─── Кнопка-ссылка в профиле (Обратная связь и т.п.) ─────────────────── */
.profile-link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--tg-secondary-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tg-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.profile-link-btn:active { transform: scale(0.98); }
.profile-link-btn .icon-svg { color: var(--accent); flex: 0 0 auto; }
.profile-link-btn span { flex: 1; }
.profile-link-arrow { width: 16px; height: 16px; color: var(--tg-hint); flex: 0 0 auto; }

/* ─── Экран обратной связи ──────────────────────────────────────────────── */
.fb-hint {
  font-size: 14px;
  color: var(--tg-hint);
  line-height: 1.5;
  margin-bottom: 20px;
}
.fb-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tg-hint);
  margin: 16px 0 10px;
}
.fb-stars {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.fb-star {
  flex: 1;
  background: var(--tg-secondary-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 0;
  font-size: 28px;
  line-height: 1;
  color: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: color .15s, background .15s, transform .12s;
}
.fb-star:active { transform: scale(0.94); }
.fb-star--active { color: #c49a3c; background: rgba(196,154,60,0.08); }
.fb-textarea {
  width: 100%;
  background: var(--tg-secondary-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--tg-text);
  resize: vertical;
  min-height: 140px;
  transition: border-color .18s;
}
.fb-textarea:focus { outline: none; border-color: var(--accent); }
.fb-textarea::placeholder { color: var(--tg-hint); }
.fb-counter {
  font-size: 12px;
  color: var(--tg-hint);
  text-align: right;
  margin-top: 6px;
}
.fb-thanks {
  text-align: center;
  padding: 40px 20px 20px;
}
.fb-thanks-icon { font-size: 48px; margin-bottom: 16px; }
.fb-thanks-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--tg-text);
  margin-bottom: 8px;
}
.fb-thanks-text {
  font-size: 14px;
  color: var(--tg-hint);
  line-height: 1.5;
  margin-bottom: 8px;
}
