/* ==========================================================
   CHYSTO.MEDIA — style.css · v6 (2026-04-23)
   Тихий додаток підтримки. Одна палітра. Без mood-кольорів.
   ========================================================== */

:root {
  --bg:        #F6F2EE;
  --bg-card:   #FFFFFF;
  --bg-soft:   #fdf2ef;
  --text:      #2C2C2C;
  --text-soft: #6a5f57;
  --accent:    #C96A4A;
  --secondary: #8FAF9D;
  --border:    #E8E3DD;

  /* v2 Apple-style icon system: stroke colour driven by `color`, sized via
     CSS so a single sprite serves default / active / done states. */
  --icon-default: #7E9F8C;
  --icon-active:  #C96A4A;
  --icon-done:    #6FAE8A;
  --radius-card: 20px;
  --radius-pill: 100px;
  --shadow-card: 0 8px 24px rgba(201,106,74,0.08);
  --shadow-lift:  0 16px 40px rgba(201,106,74,0.12);

  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans:  'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}
/* Subtle grain texture — makes the warm palette feel premium */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
em { font-style: normal; font-weight: 700; color: var(--accent); }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Typography ---------- */
.hp-eyebrow,
.hero-eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

/* ---------- Icons ---------- */
.icon {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  display: inline-block; vertical-align: middle;
}
.icon--soft { opacity: 0.7; }
.icon--pulse { animation: iconPulse 2.4s ease-in-out infinite; }

/* v2 Apple-style icon — currentColor driven, three states.
   Use:  <svg class="icon-v2" aria-hidden="true"><use href="/assets/icons/sprite.svg#i-v2-kitchen"/></svg>
   Add .is-active or .is-done on parent or icon itself to switch colour. */
.icon-v2 {
  width: 24px; height: 24px;
  display: inline-block; vertical-align: middle;
  color: var(--icon-default);
  fill: none;
  stroke: currentColor;
  transition: color .18s ease, transform .18s ease;
}
.icon-v2.is-active,
.is-active > .icon-v2,
.active > .icon-v2 { color: var(--icon-active); }
.icon-v2.is-done,
.is-done > .icon-v2 { color: var(--icon-done); }
.icon-v2--lg { width: 28px; height: 28px; }
.icon-v2--xl { width: 36px; height: 36px; }
.icon-v2--xxl { width: 48px; height: 48px; }
@keyframes iconPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.08); opacity: 0.85; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Global focus ring (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.cta-primary {
  background: var(--accent); color: #fff;
}
.cta-primary:hover { background: #b05a3d; }

.cta-secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--text);
}
.cta-secondary:hover { background: var(--text); color: #fff; }

.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: #b05a3d; }

.btn-ghost {
  background: transparent; color: var(--accent);
  padding: 10px 20px; font-size: 14px;
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Checkbox ---------- */
.checkbox {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: border-color .2s ease, background .2s ease;
  background: #fff;
}
.checkbox:hover { border-color: var(--accent); }
.checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox.checked::after {
  content: '';
  width: 12px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px,-1px);
}

/* ==========================================================
   HEADER
   ========================================================== */
.top-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,238,0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  position: relative;
}
.logo-wrap {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; white-space: nowrap;
  transition: color .2s;
}
.logo-wrap:hover .logo-word { color: var(--accent); }
.logo-word {
  font-family: var(--font-serif);
  font-weight: 700; font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
}
.logo-dot {
  color: var(--accent, #C96A4A);
  font-weight: 700;
  margin-left: 1px;
}
.logo-wrap:hover .logo-dot { color: var(--accent); }
.logo-tagline {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted, #8a8378);
  margin-top: 1px;
  text-transform: lowercase;
}
.hdr-nav {
  display: flex; gap: 18px;
  flex: 1;
  margin-left: 8px;
}
.hdr-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--text-soft);
  padding: 6px 0;
  transition: color .2s ease;
}
.hdr-nav a:hover { color: var(--accent); }
.hdr-nav a.active { color: var(--accent); font-weight: 700; }

.hdr-right { display: flex; align-items: center; gap: 10px; }
.hdr-icon {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  background: none; border: none; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.hdr-icon:hover { background: var(--border); color: var(--text); }
.hdr-icon .icon { width: 20px; height: 20px; }
.hdr-icon.active { background: var(--accent); color: #fff; }
.hdr-icon.active:hover { background: #b05a3d; }

.streak-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  background: var(--bg-soft);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================
   1. HERO — full-width photo + gradient fade
   ========================================================== */
.hero-full {
  position: relative;
  background-color: #F6F2EE;
  background-image: url('/images/hero-photo.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-full::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right,
      rgba(246,242,238,0.82) 0%,
      rgba(246,242,238,0.55) 38%,
      rgba(246,242,238,0.08) 65%,
      transparent 80%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 42%, transparent 72%);
  mask-image: linear-gradient(to right, black 0%, black 42%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}
.hero-full::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to top, #F6F2EE 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
#pg-home { background: #F6F2EE; }
.hero-full-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 48px;
}
.hero-full-text {
  max-width: 560px;
}
.hero-title {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-title span { display: block; }
.hero-sub {
  font-size: 17px; line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 28px; max-width: 500px;
}
.hero-cta-wrap {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-microcopy {
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 0; padding: 0;
  font-size: 14px; line-height: 1.5;
  color: var(--text-soft);
  max-width: 440px;
}
.hero-microcopy svg { flex-shrink: 0; color: #e0a89d; }
@media (max-width: 560px) { .hero-microcopy { justify-content: center; font-size: 13px; } }

/* Hero feature cards row */
@media (max-width: 767px) {
  .hdr-nav { display: none !important; }
}

/* universal back-arrow for inner pages */
.page-back {
  display: flex; align-items: center; gap: 8px;
  width: fit-content;
  background: none; border: none; padding: 8px 0;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--text-soft); cursor: pointer;
  margin-bottom: 20px;
  transition: color .2s ease;
}
.page-back:hover { color: var(--accent); }
.page-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.hero-photo-wrap { display: contents; }
.hero-photo-wrap > img { display: none; }

/* Quote cards float on the photo side */
.hero-quote-card {
  position: absolute;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 14px 36px rgba(42,37,32,0.12), 0 2px 8px rgba(42,37,32,0.05);
  font-size: 13px; line-height: 1.5;
  color: var(--text);
  max-width: 240px;
  z-index: 3;
}
.hero-quote-card--top {
  top: 10%; right: 5%;
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px;
}
.hero-quote-card--top em { color: var(--accent); font-weight: 600; }
.hero-quote-card--bottom {
  bottom: 12%; right: 5%;
  font-style: italic;
  font-size: 13px;
  color: #4a4038;
}
.quote-author {
  display: block; margin-top: 6px;
  font-style: normal; font-weight: 700;
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--accent);
}

/* ==========================================================
   2. MOOD
   ========================================================== */
.hp-mood {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  background: transparent;
}
.hp-mood-header { text-align: center; margin-bottom: 24px; }
.hp-mood-title {
  font-size: clamp(24px, 3vw, 32px);
}

.hp-mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mood-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 16px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.mood-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.mood-card.active {
  border-color: var(--accent);
  background: var(--bg-soft);
}
.mood-icon {
  width: 40px; height: 40px;
  color: var(--text);
  fill: none; stroke: currentColor;
  stroke-width: 1.5;
  margin-bottom: 6px;
  transition: color .25s ease;
}
.mood-card:hover .mood-icon,
.mood-card.active .mood-icon { color: var(--accent); }

/* Apple-feel mood icon micro-animations */
.mood-card[data-mood="tired"] .mood-icon { animation: moodFloat 6s ease-in-out infinite; transform-origin: center; }
.mood-card[data-mood="anxious"] .mood-icon { animation: moodWave 2.6s ease-in-out infinite; transform-origin: center; }
.mood-card[data-mood="angry"] .mood-icon { animation: moodShake 2.2s ease-in-out infinite; transform-origin: center; }
.mood-card[data-mood="inspired"] .mood-icon { animation: moodGlow 2.8s ease-in-out infinite; transform-origin: center; }
@keyframes moodFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes moodWave  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px) scale(1.02); } }
@keyframes moodShake { 0%,100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-1.5px) rotate(-2deg); } 75% { transform: translateX(1.5px) rotate(2deg); } }
@keyframes moodGlow  { 0%,100% { opacity: .85; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .mood-card .mood-icon { animation: none !important; }
}

.mood-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.mood-sub {
  font-size: 13px; color: var(--text-soft);
}

.mood-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}
.mood-hint a { color: var(--accent); text-decoration: underline; }

/* ==========================================================
   3. PLAN
   ========================================================== */
.hp-plan {
  max-width: 720px;
  margin: 36px auto;
  padding: 28px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.hp-plan .hp-eyebrow { margin-bottom: 20px; }

.hp-plan-progress {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.hp-plan-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.hp-plan-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width .4s ease;
}
.hp-plan-progress-n {
  font-weight: 700; font-size: 13px;
  color: var(--text-soft);
  min-width: 36px; text-align: right;
}

/* Completion message — shown when all tasks are done */
.hp-plan-done-msg {
  margin: 8px 0 20px;
  padding: 16px 20px;
  background: #f0f7f0;
  border-left: 3px solid #7aad7a;
  border-radius: 0 12px 12px 0;
  animation: planDoneFade .4s ease;
}
.hp-plan-done-inner {
  display: flex; align-items: center; gap: 14px;
}
.hp-plan-done-msg svg { color: #5a9a5a; flex-shrink: 0; }
.hp-plan-done-text { display: flex; flex-direction: column; gap: 2px; }
.hp-plan-done-text strong { font-size: 15px; color: var(--text); }
.hp-plan-done-text span { font-size: 13px; color: var(--text-soft); }
@keyframes planDoneFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Petal celebration animation ─────────────────────────── */
.task-petal {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 20px;
  line-height: 1;
  user-select: none;
  animation: petalRise 1.3s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes petalRise {
  0%   { opacity: 1;   transform: translateY(0)    rotate(0deg)   scale(1); }
  60%  { opacity: 0.8; transform: translateY(-60px) rotate(12deg) scale(0.9); }
  100% { opacity: 0;   transform: translateY(-110px) rotate(25deg) scale(0.6); }
}

.hp-plan-tasks { margin-bottom: 20px; }
.hp-plan-task {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
}
.hp-plan-task:last-child { border-bottom: none; }
.hp-plan-task .task-title { flex: 1; }
.hp-plan-task .task-time {
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================
   4. ПІДТРИМКА
   ========================================================== */
.hp-support-micro {
  max-width: 640px;
  margin: 28px auto;
  padding: 20px 28px;
  background: var(--bg-soft);
  border-radius: 16px;
  text-align: center;
  transition: padding .3s ease, font-size .3s ease;
}
.hp-support-text {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text);
}
.hp-support-icon {
  width: 20px; height: 20px;
  color: var(--accent);
}
.hp-support-phrase.pulse-once {
  animation: pulseOnce .9s ease;
}
@keyframes pulseOnce {
  0%   { transform: scale(1);   opacity: 1; }
  40%  { transform: scale(1.06); opacity: .95; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ==========================================================
   5. ДЛЯ СЕБЕ
   ========================================================== */
.hp-self {
  max-width: 1080px;
  margin: 48px auto;
  padding: 0 24px;
  text-align: center;
}
.hp-self-title {
  font-size: clamp(22px, 2.6vw, 28px);
  max-width: 680px;
  margin: 0 auto 20px;
}
.hp-self-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.self-card {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 22px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .25s ease, background .25s ease;
  text-align: center;
}
.self-card:hover {
  transform: translateY(-2px);
  background: #faeae5;
}
/* Featured first card — visually anchors the row */
.hp-self-grid .self-card:first-child {
  background: #faeae5;
  border: 1px solid #f0d5cb;
  padding: 28px 20px;
}
.hp-self-grid .self-card:first-child .self-icon {
  width: 40px; height: 40px;
}
.hp-self-grid .self-card:first-child .self-title {
  font-size: 17px;
}
.self-icon {
  width: 32px; height: 32px;
  color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.5;
  margin-bottom: 8px;
}
.self-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.self-time {
  font-size: 12px; color: var(--text-soft);
}

/* ==========================================================
   6. СТАТТІ
   ========================================================== */
.hp-articles {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 24px;
}
.hp-articles-header {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 20px;
  gap: 16px;
}
.hp-articles-header .hp-eyebrow { grid-column: 1; margin-bottom: 6px; }
.hp-articles-title {
  grid-column: 1; grid-row: 2;
  font-size: clamp(24px, 3vw, 32px);
}
.hp-articles-all {
  grid-column: 2; grid-row: 2;
  align-self: end;
  font-size: 14px; font-weight: 700; color: var(--accent);
  transition: transform .2s ease;
}
.hp-articles-all:hover { transform: translateX(3px); }

.hp-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); }
.article-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg,#e8ddd2,#d4c2b0) center/cover no-repeat;
}
.article-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 16px 20px 0;
  padding: 4px 12px;
  background: var(--border);
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-title {
  font-size: 18px;
  margin: 10px 20px 8px;
  line-height: 1.3;
}
.article-meta {
  margin: auto 20px 20px;
  font-size: 12px;
  color: var(--text-soft);
}

/* ==========================================================
   7. ЛІД-МАГНІТ PDF
   ========================================================== */
.hp-leadmag {
  max-width: 760px; margin: 40px auto; padding: 0 20px;
}
.hp-leadmag-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f9f5ef 0%, #fff8f0 100%);
  border: 1px solid rgba(180,130,60,0.18);
  border-radius: var(--radius-card); padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(42,37,32,0.07);
}
.hp-leadmag-icon {
  flex-shrink: 0; width: 56px; height: 56px;
  background: var(--accent); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.hp-leadmag-text { flex: 1; min-width: 180px; }
.hp-leadmag-title { font-family: var(--font-serif); font-size: 18px; margin: 0 0 6px; color: var(--text); }
.hp-leadmag-sub { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.5; }
.hp-leadmag-btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .hp-leadmag-inner { flex-direction: column; text-align: center; }
  .hp-leadmag-btn { width: 100%; }
}

/* ==========================================================
   8. TELEGRAM + VIBER
   ========================================================== */
.hp-channels {
  max-width: 640px;
  margin: 32px auto 48px;
  padding: 28px 24px;
  background: transparent;
  border-top: 1px solid var(--border);
  text-align: center;
}
.hp-channels-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}
.hp-channels-sub {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 20px;
}
.hp-channels-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn-channel {
  padding: 10px 22px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  font-size: 14px;
}
.btn-channel:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-channel .icon { width: 18px; height: 18px; opacity: 0.7; }

/* ==========================================================
   8. FOOTER
   ========================================================== */
.site-footer {
  margin-top: 48px;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.foot-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.foot-inner--cols {
  flex-direction: row; justify-content: space-between; align-items: flex-start;
  text-align: left; gap: 48px; flex-wrap: wrap;
}
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 160px; }
.foot-col-title {
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.foot-col button, .foot-col a {
  background: none; border: none; padding: 0; text-align: left;
  font: inherit; font-size: 14px; color: var(--text-soft); cursor: pointer;
  transition: color .2s ease;
}
.foot-col button:hover, .foot-col a:hover { color: var(--accent); }
.foot-tagline { font-size: 13px; color: var(--text-soft); }
.foot-logo {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 18px; letter-spacing: 0.08em;
}
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot-nav a { font-size: 14px; color: var(--text-soft); }
.foot-nav a:hover { color: var(--accent); }
.foot-copy {
  max-width: 1200px; margin: 24px auto 0;
  font-size: 12px; color: var(--text-soft); text-align: center;
  padding-top: 16px; border-top: 1px solid var(--border);
}
@media (max-width: 720px) {
  .foot-inner--cols { flex-direction: column; gap: 24px; }
}

/* header: avatar */

.hdr-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  font-family: var(--font-serif); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.hdr-avatar:hover { transform: scale(1.05); }

/* ==========================================================
   FLOAT TELEGRAM
   ========================================================== */
.float-telegram {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 100;
  transition: transform .25s ease, background .25s ease;
}
.float-telegram:hover { transform: translateY(-2px); background: #000; }
.float-telegram .icon { width: 24px; height: 24px; }

/* ==========================================================
   §10 STRESS MODE
   ========================================================== */
html[data-stress="true"] .hp-articles,
html[data-stress="true"] .hp-channels {
  display: none;
}
html[data-stress="true"] .hp-support-micro {
  padding: 40px 28px;
}
html[data-stress="true"] .hp-support-text { font-size: 20px; }
html[data-stress="true"] .hp-self { margin-top: 20px; }
html[data-stress="true"] .hp-plan-task {
  font-size: 17px;
  padding: 16px 0;
}
html[data-stress="true"] body { background: #faf3ed; }

/* ==========================================================
   §10 BLACKOUT MODE
   ========================================================== */
html[data-blackout="true"] body {
  background: #1a1410;
  color: #f5f1ec;
}
html[data-blackout="true"] .top-header {
  background: rgba(26,20,16,0.92);
  border-bottom-color: #2a1f18;
}
html[data-blackout="true"] .hdr-nav a,
html[data-blackout="true"] .hdr-icon,
html[data-blackout="true"] .logo-word { color: #f5f1ec; }
html[data-blackout="true"] .hero-photo-wrap,
html[data-blackout="true"] .hp-articles,
html[data-blackout="true"] .hp-channels,
html[data-blackout="true"] .hp-mood,
html[data-blackout="true"] .hp-self,
html[data-blackout="true"] .hp-support-micro,
html[data-blackout="true"] .site-footer,
html[data-blackout="true"] .float-telegram {
  display: none !important;
}
html[data-blackout="true"] .hero-full { background: #1a1410; }
html[data-blackout="true"] .hero-full-content {
  grid-template-columns: 1fr;
  padding: 40px 24px;
  min-height: auto;
}
html[data-blackout="true"] .hero-full-text {
  padding: 20px 0;
  color: #f5f1ec;
}
html[data-blackout="true"] .hero-sub { color: #c7bdb4; }
html[data-blackout="true"] .cta-secondary {
  color: #f5f1ec; border-color: #f5f1ec;
}
html[data-blackout="true"] .hp-plan {
  background: #241b15;
  border-color: #3a2c22;
  color: #f5f1ec;
  max-width: 520px;
}
html[data-blackout="true"] .hp-plan-task {
  font-size: 20px;
  border-bottom-color: #3a2c22;
}
html[data-blackout="true"] .hp-plan-task .task-time {
  background: #3a2c22; color: #e6d9cb;
}
html[data-blackout="true"] .checkbox {
  background: #241b15; border-color: #6a5140;
}

/* ==========================================================
   MOBILE NAV DRAWER
   ========================================================== */
.hdr-menu-btn { display: none; }

@media (max-width: 960px) {
  .hdr-nav { display: none; }
  .hdr-menu-btn { display: inline-flex; }
}

.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(44,35,30,0.45);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed; top: 0; left: 0;
  width: min(320px, 88vw); height: 100dvh;
  background: var(--bg-card);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  box-shadow: 4px 0 32px rgba(44,35,30,0.15);
}
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-inner {
  padding: 24px 0 40px;
  display: flex; flex-direction: column;
  height: 100%;
}
.mobile-nav-close {
  align-self: flex-end;
  margin: 0 16px 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  transition: background .2s;
}
.mobile-nav-close:hover { background: var(--border); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  font-size: 17px; font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.mobile-nav-ic {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--text-soft);
  transition: color .15s;
}
.mobile-nav-link:hover .mobile-nav-ic,
.mobile-nav-link.active .mobile-nav-ic { color: var(--accent); }
.mobile-nav-link:first-of-type { border-top: 1px solid var(--border); }
.mobile-nav-link:hover { background: var(--bg-soft); color: var(--accent); }
.mobile-nav-link.active { color: var(--accent); font-weight: 700; }

.mobile-nav-channels {
  margin-top: auto;
  padding: 18px 4px 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-channels-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.mobile-nav-channels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mobile-nav-ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, filter .15s;
}
.mobile-nav-ch:hover { filter: brightness(1.06); }
.mobile-nav-ch:active { transform: scale(0.98); }
.mobile-nav-ch--tg { background: #229ED9; }
.mobile-nav-ch--vb { background: #7360F2; }
.mobile-nav-ch svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.mobile-nav-ch svg use { fill: currentColor; stroke: none; }

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 1024px) {
  .hero-full-content { padding: 56px 32px; }
}

@media (max-width: 900px) {
  .hero-full {
    min-height: 70vh;
  }
  .hero-video { object-position: 65% center; }
  .hero-full::before {
    background: linear-gradient(to bottom,
      rgba(246,242,238,0.97) 0%,
      rgba(246,242,238,0.90) 50%,
      rgba(246,242,238,0.40) 100%);
  }
  .hero-full-content {
    padding: 48px 24px;
    text-align: center;
  }
  .hero-full-text { max-width: 100%; }
  .hero-quote-card { display: none; }
  .hero-cta-wrap { justify-content: center; flex-direction: column; width: 100%; }
  .cta-primary, .cta-secondary { width: 100%; }

  .hp-articles-header { grid-template-columns: 1fr; }
  .hp-articles-all { grid-column: 1; grid-row: 3; justify-self: start; }
  .hp-articles-grid { grid-template-columns: 1fr 1fr; }

  /* Self grid collapses to 2 cols on tablet */
  .hp-self-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 560px) {
  .hero-full {
    min-height: 72vh;
  }
  .hero-video { object-position: center 20%; }
  .hero-full::before {
    background: linear-gradient(to bottom,
      rgba(246,242,238,0.96) 0%,
      rgba(246,242,238,0.88) 45%,
      rgba(246,242,238,0.15) 100%);
  }
  .hero-full-content { padding: 40px 20px; }
  .hero-title { font-size: clamp(24px, 7vw, 32px); }
  .hp-mood-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-self-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hp-self-grid .self-card:first-child { padding: 22px 18px; }
  .hp-self-grid .self-card:first-child .self-icon { width: 32px; height: 32px; }
  .hp-self-grid .self-card:first-child .self-title { font-size: 15px; }
  .hp-plan-task { font-size: 15px; }
  .float-telegram { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .hp-channels { margin: 40px 16px; padding: 32px 20px; }
  .hp-channels-buttons { flex-direction: column; }
  .btn-channel { width: 100%; }
  .hp-plan { margin: 40px 16px; padding: 24px 20px; }
  .hp-support-micro { margin: 32px 16px; }
}

@media (max-width: 380px) {
  .hdr-inner { padding: 10px 12px; gap: 8px; }
  .streak-badge { font-size: 11px; padding: 4px 8px; }
  .logo-word { font-size: 16px; }
  .hdr-right { gap: 4px; }
  .hdr-icon { width: 36px; height: 36px; }
  .hero-full { min-height: 55vh; }
  .hero-full-content { padding: 32px 16px; }
}

/* ==========================================================
   APP SHELL — mobile compact home
   ========================================================== */

/* Desktop: shell hidden, landing sections visible */
.app-shell { display: none; }

@media (max-width: 767px) {
  /* Reveal shell */
  .app-shell {
    display: block;
    padding: 4px 16px 0;
  }

  /* Hide landing-page sections on mobile */
  #pg-home .hero-full,
  #pg-home .hp-mood,
  #pg-home .hp-self,
  #pg-home .hp-leadmag,
  #pg-home .hp-support-micro,
  #pg-home .hp-articles,
  #pg-home .hp-channels { display: none !important; }

  /* Keep hp-house in DOM (JS reads tasks from it) but invisible */
  #pg-home .hp-house {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0; padding: 0;
    pointer-events: none;
  }

  /* --- Greeting ---------------------------------------- */
  .app-greeting {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
    margin: 8px 0 14px;
    letter-spacing: 0.01em;
  }

  /* --- Zone pills -------------------------------------- */
  .app-zone-rail {
    margin: 0 -16px 14px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .app-zone-rail::-webkit-scrollbar { display: none; }

  .app-zone-pills {
    display: flex;
    gap: 7px;
    width: max-content;
    padding-bottom: 2px;
  }

  .app-zone-pill {
    height: 34px;
    padding: 0 15px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
  }

  .app-zone-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  /* --- Today task card --------------------------------- */
  .app-today-card {
    background: var(--bg-soft);
    border: 1px solid rgba(201,106,74,0.18);
    border-radius: var(--radius-card);
    padding: 18px 20px 20px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
  }

  /* Subtle warm glow top-right */
  .app-today-card::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(201,106,74,0.10) 0%, transparent 65%);
    pointer-events: none;
  }

  .app-today-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
  }

  .app-today-text {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.35;
    color: var(--text);
    margin: 0 0 12px;
  }

  .app-today-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 16px;
    min-height: 18px;
  }

  .app-today-zone {
    font-size: 11px;
    font-weight: 600;
    background: rgba(0,0,0,0.055);
    padding: 2px 8px;
    border-radius: 100px;
    color: var(--text-soft);
  }
  .app-today-zone:empty { display: none; }

  .app-today-btn {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    -webkit-tap-highlight-color: transparent;
  }

  .app-today-btn:disabled {
    background: var(--border);
    color: var(--text-soft);
    cursor: default;
  }

  .app-today-card.done .app-today-btn {
    background: var(--secondary);
    opacity: 0.85;
  }

  /* --- Mood chips -------------------------------------- */
  .app-mood-wrap { margin-bottom: 14px; }

  .app-mood-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin: 0 0 9px;
  }

  .app-mood-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  /* Override big .mood-card styles for compact chips */
  .app-mood-chip.mood-card {
    padding: 10px 10px 8px;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    text-align: left;
    min-height: 0;
    transition: background .2s, border-color .2s;
  }

  .app-mood-chip.mood-card .mood-icon { display: none; }  /* hide big icon */

  .app-mood-chip.mood-card .mood-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
  }

  .app-mood-chip.mood-card .mood-sub {
    font-size: 11px;
    color: var(--text-soft);
    font-family: var(--font-sans);
    font-weight: 400;
  }

  /* Direct text children (app-mood-sub) */
  .app-mood-sub {
    display: block;
    font-size: 11px;
    color: var(--text-soft);
    font-weight: 400;
    line-height: 1.2;
  }

  .app-mood-chip.mood-card.active {
    background: var(--bg-soft);
    border-color: var(--accent);
  }

  .app-mood-chip.mood-card.active .mood-title,
  .app-mood-chip.mood-card.active { color: var(--accent); }

  /* --- Article strip ----------------------------------- */
  .app-articles-wrap { margin-bottom: 8px; }

  .app-section-hdr {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
  }

  .app-section-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
  }

  .app-section-all {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .app-article-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 8px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.045);
    box-shadow: 0 2px 12px rgba(42,37,32,0.05);
    transition: transform .15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .app-article-row:active { transform: scale(0.985); }

  .app-article-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8ddd2, #d4c2b0) center/cover no-repeat;
    flex-shrink: 0;
  }

  .app-article-body { flex: 1; min-width: 0; }

  .app-article-tag {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 3px;
  }

  .app-article-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    margin: 0 0 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .app-article-meta {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-soft);
  }

  .app-article-chevron {
    color: var(--border);
    flex-shrink: 0;
  }
}

/* ==========================================================
   BOTTOM NAVIGATION (mobile only)
   ========================================================== */
.bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  /* Push content above bottom nav */
  body { padding-bottom: 66px; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    height: 62px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(42,37,32,0.07);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 8px 4px;
    transition: color .2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .bottom-nav-item svg {
    width: 22px; height: 22px;
    color: var(--icon-default);
    stroke: currentColor; fill: none;
    transition: color .2s ease, transform .2s ease;
    flex-shrink: 0;
  }
  .bottom-nav-item.active svg { color: var(--icon-active); }

  .bottom-nav-item.active {
    color: var(--accent);
  }

  .bottom-nav-item.active svg {
    transform: translateY(-1px);
  }

  .bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
  }

  /* Float telegram moves up above bottom nav */
  .float-telegram {
    bottom: 76px !important;
  }

  /* Article cards → 1 column on small mobile */
  .hp-articles-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================
   PWA INSTALL BANNER
   ========================================================== */
.pwa-banner {
  position: fixed;
  bottom: 80px; left: 16px; right: 16px;
  z-index: 998;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(42,37,32,0.18);
  animation: bannerSlideUp .35s ease;
  max-width: 420px;
  margin: 0 auto;
}
.pwa-banner[hidden] { display: none; }
@keyframes bannerSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pwa-banner-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pwa-banner-ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pwa-banner-text-wrap { flex: 1; min-width: 0; }
.pwa-banner-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
}
.pwa-banner-sub {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
}
.pwa-banner-close {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
  line-height: 1;
}
.pwa-banner-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pwa-banner-actions[hidden] { display: none; }
.pwa-banner-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, color .18s;
}
.pwa-banner-btn--primary { flex: 1; background: var(--accent); color: #fff; }
.pwa-banner-btn--primary:active { background: #b05a3d; }
.pwa-banner-btn--ghost { background: var(--bg-soft); color: var(--text-soft); }
.pwa-banner-btn--ghost:active { background: var(--border); }
.pwa-banner-ios {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pwa-banner-ios[hidden] { display: none; }
.pwa-banner-ios p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 12px;
}

/* ==========================================================
   PLAN PAGE ===== */
.plan-panel {
  background: #fff;
  border: 1px solid var(--line, #ece7e0);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 16px;
}
.plan-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.plan-panel-eyebrow {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted, #8a8378); font-weight: 600; margin-bottom: 4px;
}
.plan-panel-title { font-size: 20px; font-weight: 700; color: var(--ink, #2b2521); }
.plan-streak-mini {
  display: inline-flex; align-items: center; gap: 6px;
  background: #faf6f0; border-radius: 999px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink, #2b2521);
}
.plan-streak-mini .ic { width: 14px; height: 14px; color: var(--accent, #C96A4A); }
.plan-progress-bar {
  height: 8px; background: #f3ede4; border-radius: 999px; overflow: hidden;
  margin-bottom: 16px;
}
.plan-progress-bar-fill {
  height: 100%; background: var(--accent, #C96A4A);
  border-radius: 999px; transition: width .35s ease;
}
.plan-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-task-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #faf6f0; border-radius: 14px;
}
.plan-task-row .task-title { flex: 1; font-size: 15px; color: var(--ink, #2b2521); }
.plan-task-row .task-time { font-size: 13px; color: var(--muted, #8a8378); }

.plan-panel--bonus { background: linear-gradient(135deg, #fff8f0, #fdefe4); border-color: #f4e0ce; }
.plan-panel--bonus.is-done { opacity: 0.65; }
.plan-bonus-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.plan-bonus-text { margin: 0; font-size: 15px; color: var(--ink, #2b2521); flex: 1; min-width: 200px; }
.plan-bonus-btn { white-space: nowrap; }

.plan-week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.plan-week-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  background: #faf6f0; border-radius: 12px;
  border: 2px solid transparent;
  font-size: 12px; color: var(--muted, #8a8378);
}
.plan-week-day.is-done { background: #e8f3ea; color: #3d7a4a; }
.plan-week-day.is-done .plan-week-num { color: #3d7a4a; font-weight: 700; }
.plan-week-day.is-today { border-color: var(--accent, #C96A4A); }
.plan-week-dow { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.plan-week-num { font-size: 15px; font-weight: 600; color: var(--ink, #2b2521); }
.plan-week-legend { margin: 0; font-size: 13px; color: var(--muted, #8a8378); text-align: center; }

.plan-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-stat { text-align: center; }
.plan-stat-n { font-family: 'Libre Baskerville', Georgia, serif; font-size: 28px; color: var(--accent, #C96A4A); font-weight: 700; }
.plan-stat-l { font-size: 13px; color: var(--muted, #8a8378); margin-top: 4px; }

/* ===== PRACTICES — BREATH ===== */
.breath-page { position: relative; padding-bottom: 40px; }
.breath-head { text-align: center; margin-bottom: 24px; }
.breath-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 44px; line-height: 1.1; margin: 8px 0 10px;
  color: var(--ink, #2b2521);
}
.breath-sub { color: var(--muted, #8a8378); font-size: 15px; margin: 0; }

.breath-stage {
  position: relative; display: flex; justify-content: center; align-items: center;
  padding: 40px 0 10px; min-height: 360px;
}
.breath-orbit {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(212,97,74,0.22);
  animation: breathOrbitSpin 18s linear infinite;
}
.breath-orbit-dot {
  position: absolute; top: -4px; left: 50%; width: 8px; height: 8px;
  margin-left: -4px; border-radius: 50%;
  background: var(--accent, #C96A4A);
  box-shadow: 0 0 12px rgba(212,97,74,0.6);
}
@keyframes breathOrbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.breath-circle {
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe8d2 0%, #f8c9a6 55%, #eaa87d 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink, #2b2521);
  box-shadow:
    0 0 60px rgba(234,168,125,0.55),
    0 0 120px rgba(234,168,125,0.28),
    inset 0 -20px 40px rgba(212,97,74,0.08);
  transition: transform var(--phase-dur, 4s) cubic-bezier(.37,.01,.36,1),
              box-shadow var(--phase-dur, 4s) ease;
  --phase-dur: 4s;
}
.breath-circle.is-inhale { transform: scale(1.18); box-shadow: 0 0 90px rgba(234,168,125,0.7), 0 0 180px rgba(234,168,125,0.35); }
.breath-circle.is-hold   { transform: scale(1.18); }
.breath-circle.is-exhale { transform: scale(0.82); box-shadow: 0 0 40px rgba(234,168,125,0.4), 0 0 80px rgba(234,168,125,0.18); }
.breath-circle.is-done   { transform: scale(1); }

.breath-phase-mini { font-size: 14px; color: var(--muted, #8a8378); margin-bottom: 6px; }
.breath-phase-big  { font-family: 'Libre Baskerville', Georgia, serif; font-size: 38px; font-weight: 700; }
.breath-phase-sec  { font-size: 16px; color: var(--muted, #8a8378); margin-top: 8px; }

.breath-cycle-pill {
  display: block; margin: 18px auto 28px; width: fit-content;
  padding: 8px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line, #ece7e0);
  font-size: 14px; font-weight: 600; color: var(--ink, #2b2521);
}

.breath-quote {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line, #ece7e0);
  border-radius: 20px; padding: 18px 20px; margin-bottom: 20px;
}
.breath-quote-ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: #fdecdf; color: var(--accent, #C96A4A);
  display: flex; align-items: center; justify-content: center;
}
.breath-quote-ic svg { width: 22px; height: 22px; }
.breath-quote-title { font-weight: 600; font-size: 17px; color: var(--ink, #2b2521); }
.breath-quote-sub   { color: var(--muted, #8a8378); font-size: 14px; margin-top: 3px; }

.breath-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  background: #fff; border: 1px solid var(--line, #ece7e0);
  border-radius: 20px; padding: 20px; margin-bottom: 16px;
}
.breath-stat { text-align: center; }
.breath-stat-ic {
  width: 40px; height: 40px; border-radius: 50%;
  background: #f3ede4; color: var(--ink, #2b2521);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.breath-stat-ic svg { width: 20px; height: 20px; }
.breath-stat-l { font-size: 13px; color: var(--muted, #8a8378); }
.breath-stat-n { font-family: 'Libre Baskerville', Georgia, serif; font-size: 26px; color: var(--ink, #2b2521); margin: 4px 0 2px; font-weight: 700; }
.breath-stat-u { font-size: 12px; color: var(--muted, #8a8378); }

.breath-cta {
  display: flex; align-items: center; gap: 14px;
  background: #faf0e4; border: 1px solid #f0dcc3;
  border-radius: 20px; padding: 18px 20px; margin-bottom: 20px;
}
.breath-cta-leaf { flex-shrink: 0; color: #98a77d; }
.breath-cta-leaf svg { width: 36px; height: 36px; }
.breath-cta-body { flex: 1; min-width: 0; }
.breath-cta-title { font-weight: 600; font-size: 16px; color: var(--ink, #2b2521); }
.breath-cta-sub   { color: var(--muted, #8a8378); font-size: 13px; margin-top: 2px; }
.breath-cta-btn { white-space: nowrap; flex-shrink: 0; }

.breath-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-top: 14px; border-top: 1px solid var(--line, #ece7e0);
}
.breath-toggle {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--ink, #2b2521); font: inherit; text-align: left;
  padding: 6px 8px; border-radius: 10px; transition: background .2s;
}
.breath-toggle:hover { background: #faf6f0; }
.breath-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.breath-toggle b { font-weight: 600; font-size: 13px; }
.breath-toggle small { font-size: 12px; color: var(--muted, #8a8378); }
.breath-howto { border: 1px solid var(--line, #ece7e0); border-radius: 999px; padding: 8px 16px; }
.breath-toggle[aria-pressed="false"] .sound-wave { opacity: 0.25; }

.breath-howto-modal {
  position: fixed; inset: 0; background: rgba(43,37,33,0.55);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.breath-howto-modal[hidden] { display: none; }
.breath-howto-inner {
  background: #fff; border-radius: 20px; padding: 28px; max-width: 440px; width: 100%;
}
.breath-howto-inner h3 { margin: 0 0 14px; font-family: 'Libre Baskerville', Georgia, serif; font-size: 24px; }
.breath-howto-inner p { margin: 6px 0; font-size: 15px; line-height: 1.55; }
.breath-howto-inner button { margin-top: 16px; }

/* Night mode for breath page only */
.breath-page[data-night="true"] {
  background: linear-gradient(160deg, #1f1a1f 0%, #2a201e 100%);
  color: #f2e5d3;
  border-radius: 24px;
  padding: 32px 20px 40px;
  margin: -10px -8px 0;
}
.breath-page[data-night="true"] .breath-title,
.breath-page[data-night="true"] .breath-phase-big,
.breath-page[data-night="true"] .breath-quote-title,
.breath-page[data-night="true"] .breath-cta-title,
.breath-page[data-night="true"] .breath-toggle b,
.breath-page[data-night="true"] .breath-stat-n { color: #f8ecd8; }
.breath-page[data-night="true"] .breath-sub,
.breath-page[data-night="true"] .breath-phase-mini,
.breath-page[data-night="true"] .breath-phase-sec,
.breath-page[data-night="true"] .breath-quote-sub,
.breath-page[data-night="true"] .breath-cta-sub,
.breath-page[data-night="true"] .breath-stat-l,
.breath-page[data-night="true"] .breath-stat-u,
.breath-page[data-night="true"] .breath-toggle small { color: #a89a84; }
.breath-page[data-night="true"] .breath-cycle-pill,
.breath-page[data-night="true"] .breath-quote,
.breath-page[data-night="true"] .breath-stats,
.breath-page[data-night="true"] .breath-howto { background: rgba(255,248,232,0.06); border-color: rgba(255,248,232,0.12); }
.breath-page[data-night="true"] .breath-stat-ic { background: rgba(255,248,232,0.09); color: #f8ecd8; }
.breath-page[data-night="true"] .breath-cta { background: rgba(212,97,74,0.15); border-color: rgba(212,97,74,0.35); }
.breath-page[data-night="true"] .breath-bottom { border-color: rgba(255,248,232,0.12); }
.breath-page[data-night="true"] .breath-circle {
  background: radial-gradient(circle at 35% 35%, #f4c18a 0%, #c9815a 55%, #7a3d2a 100%);
  box-shadow: 0 0 80px rgba(244,193,138,0.45), 0 0 160px rgba(244,193,138,0.2);
}
.breath-page[data-night="true"] .breath-orbit { border-color: rgba(244,193,138,0.3); }

@media (prefers-reduced-motion: reduce) {
  .breath-circle { transition: none; }
  .breath-orbit { animation: none; }
}

@media (max-width: 640px) {
  .breath-title { font-size: 32px; }
  .breath-circle { width: 220px; height: 220px; }
  .breath-orbit { width: 270px; height: 270px; }
  .breath-phase-big { font-size: 30px; }
  .breath-stats { grid-template-columns: 1fr; gap: 16px; }
  .breath-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .breath-cta-btn { width: 100%; }
  .breath-bottom { flex-direction: column; align-items: stretch; }
  .breath-toggle { justify-content: center; }
}

/* ===== PRACTICES — PAUSE ===== */
.pause-stage { text-align: center; padding: 30px 0; }
.pause-time {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 56px; color: var(--accent, #C96A4A); margin-bottom: 20px;
}
.pause-ring {
  height: 8px; background: #f3ede4; border-radius: 999px;
  overflow: hidden; max-width: 320px; margin: 0 auto 24px;
}
.pause-ring-fill {
  height: 100%; background: var(--accent, #C96A4A);
  border-radius: 999px; transition: width 1s linear; width: 0%;
}
.pause-actions { display: flex; justify-content: center; }

.music-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.music-card {
  display: block; padding: 16px 18px; background: #faf6f0;
  border: 1px solid var(--line, #ece7e0); border-radius: 14px;
  text-decoration: none; color: inherit; transition: background .2s;
}
.music-card:hover { background: #f3ede4; }
.music-card-title { font-size: 16px; font-weight: 600; color: var(--ink, #2b2521); }
.music-card-sub { font-size: 13px; color: var(--muted, #8a8378); margin-top: 2px; }

.music-player {
  margin: 20px 0;
  padding: 22px 20px;
  background: linear-gradient(160deg, #faf6f0 0%, #f3ede4 100%);
  border: 1px solid var(--line, #ece7e0);
  border-radius: 18px;
}
.music-player-title {
  font-size: 16px; font-weight: 600; color: var(--ink, #2b2521);
}
.music-player-sub {
  font-size: 13px; color: var(--muted, #8a8378); margin-top: 4px;
}
.music-player-controls {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
}
.music-play-btn {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border: none; border-radius: 50%;
  background: var(--accent, #C96A4A); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217,119,85,.3);
  transition: transform .15s;
}
.music-play-btn:hover { transform: scale(1.05); }
.music-play-btn:active { transform: scale(0.97); }
.music-play-btn svg { width: 24px; height: 24px; }
.music-progress {
  flex: 1; height: 5px;
  background: rgba(0,0,0,.08);
  border-radius: 3px; overflow: hidden;
}
.music-progress-fill {
  height: 100%; width: 0%;
  background: var(--accent, #C96A4A);
  transition: width .2s linear;
}
.music-time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--muted, #8a8378);
  min-width: 38px; text-align: right;
}

/* ── Profile page ────────────────────────────────────────── */
.profile-hero {
  display: flex; gap: 18px; align-items: stretch;
  margin: 18px 0 28px;
  padding: 22px;
  background: linear-gradient(160deg, #faf6f0 0%, #f3ede4 100%);
  border: 1px solid var(--line, #ece7e0);
  border-radius: 20px;
}
.profile-hero-streak {
  flex: 0 0 auto;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-width: 120px;
  padding-right: 18px;
  border-right: 1px solid rgba(0,0,0,.07);
}
.profile-hero-n {
  font-family: var(--serif, Georgia, serif);
  font-size: 56px; line-height: 1;
  color: var(--accent, #C96A4A);
  font-weight: 500;
}
.profile-hero-l {
  margin-top: 6px; font-size: 13px; color: var(--muted, #8a8378);
}
.profile-hero-side {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.profile-hero-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--muted, #8a8378);
}
.profile-hero-row b {
  color: var(--ink, #2b2521); font-weight: 600; font-size: 18px;
}

.profile-section { margin: 24px 0; }
.profile-section-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted, #8a8378);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.profile-badge-count {
  font-weight: 500; color: var(--accent, #C96A4A);
  text-transform: none; letter-spacing: 0;
}

.profile-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.profile-week-day {
  padding: 10px 4px; border-radius: 10px;
  background: #faf6f0; text-align: center;
  border: 1px solid transparent;
}
.profile-week-day.is-done {
  background: #e8f0e3; color: #3a5a2e;
}
.profile-week-day.is-today {
  border-color: var(--accent, #C96A4A);
}
.profile-week-lbl { font-size: 11px; color: var(--muted, #8a8378); }
.profile-week-num { font-size: 15px; font-weight: 600; margin-top: 2px; }

.profile-badges {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.profile-badge {
  padding: 14px 12px; border-radius: 14px;
  background: #faf6f0; border: 1px solid var(--line, #ece7e0);
  text-align: center; opacity: .45;
  transition: opacity .2s, transform .15s;
}
.profile-badge.is-unlocked {
  opacity: 1;
  background: linear-gradient(160deg, #fff4e8 0%, #f3ede4 100%);
  border-color: rgba(217,119,85,.3);
}
.profile-badge-ic { font-size: 28px; line-height: 1; }
.profile-badge-title {
  margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink, #2b2521);
}
.profile-badge-sub {
  margin-top: 2px; font-size: 12px; color: var(--muted, #8a8378);
}

.profile-practices {
  display: flex; flex-direction: column; gap: 8px;
}
.profile-practice {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: #faf6f0; border: 1px solid var(--line, #ece7e0);
  border-radius: 12px;
  font-size: 14px;
}
.profile-practice b { font-size: 16px; color: var(--accent, #C96A4A); }

.profile-empty {
  padding: 18px; text-align: center;
  background: #faf6f0; border: 1px dashed var(--line, #ece7e0);
  border-radius: 12px;
  font-size: 14px; color: var(--muted, #8a8378);
}

/* ── Blackout page ───────────────────────────────────────── */
.blackout-picker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 20px 0 10px;
}
.blackout-mode-btn {
  padding: 24px 18px;
  background: #faf6f0;
  border: 1px solid var(--line, #ece7e0);
  border-radius: 18px;
  text-align: center; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s;
}
.blackout-mode-btn:hover {
  background: linear-gradient(160deg, #fff4e8 0%, #f3ede4 100%);
  border-color: rgba(217,119,85,.35);
  transform: translateY(-2px);
}
.blackout-mode-ic { font-size: 38px; line-height: 1; }
.blackout-mode-title {
  margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--ink, #2b2521);
}
.blackout-mode-sub {
  margin-top: 4px; font-size: 13px; color: var(--muted, #8a8378);
}
.blackout-hint {
  font-size: 13px; color: var(--muted, #8a8378); text-align: center;
  margin-top: 14px;
}

.blackout-panel { margin-top: 20px; }
.blackout-panel-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(160deg, #faf6f0 0%, #f3ede4 100%);
  border: 1px solid var(--line, #ece7e0);
  border-radius: 16px;
  margin-bottom: 18px;
}
.blackout-panel-ic { font-size: 34px; line-height: 1; }
.blackout-panel-title { font-size: 18px; font-weight: 600; color: var(--ink, #2b2521); }
.blackout-panel-sub { font-size: 13px; color: var(--muted, #8a8378); margin-top: 2px; }
.blackout-change { margin-left: auto; flex: 0 0 auto; }

.blackout-tips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.blackout-tip {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: #faf6f0;
  border: 1px solid var(--line, #ece7e0);
  border-radius: 14px;
}
.blackout-tip-n {
  flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent, #C96A4A); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.blackout-tip-t { font-size: 15px; font-weight: 600; color: var(--ink, #2b2521); }
.blackout-tip-d { font-size: 13px; color: var(--muted, #8a8378); margin-top: 3px; line-height: 1.5; }

/* ── Practice card: new (7 days) ─────────────────────────── */
.practice-card--new { position: relative; }
.practice-card-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent, #C96A4A); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 10px;
}

/* ── Practice skeleton ──────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.practice-skeleton { padding: 12px 0; display: flex; flex-direction: column; gap: 14px; }
.sk-line, .sk-circle {
  background: linear-gradient(90deg, #f0ebe4 25%, #e8e2d9 50%, #f0ebe4 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}
.sk-line--title  { height: 28px; width: 60%; }
.sk-line--sub    { height: 16px; width: 80%; }
.sk-line--med    { height: 16px; width: 70%; }
.sk-line--short  { height: 16px; width: 45%; }
.sk-circle       { width: 160px; height: 160px; border-radius: 50%; align-self: center; margin: 12px 0; }

/* ── Seven Days ─────────────────────────────────────────── */
.sd-hero {
  text-align: center; padding: 28px 20px 20px;
  background: linear-gradient(160deg, #f5f0ff 0%, #faf6f0 100%);
  border: 1px solid var(--line, #ece7e0);
  border-radius: 20px; margin-bottom: 24px;
}
.sd-hero-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px; font-weight: 500; color: var(--ink, #2b2521);
}
.sd-hero-sub { font-size: 14px; color: var(--muted, #8a8378); margin-top: 6px; }
.sd-hero-stats {
  display: flex; justify-content: center; gap: 24px; margin-top: 16px;
}
.sd-hero-stat { font-size: 13px; color: var(--muted, #8a8378); }
.sd-hero-stat span { font-size: 20px; font-weight: 700; color: var(--ink, #2b2521); display: block; }

.sd-track {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.sd-day {
  padding: 16px 14px; border-radius: 16px;
  background: #faf6f0; border: 1px solid var(--line, #ece7e0);
  text-align: left; cursor: pointer; transition: transform .15s, background .2s;
  position: relative;
}
.sd-day:hover:not(.is-locked) { transform: translateY(-2px); background: #f3ede4; }
.sd-day.is-current {
  background: linear-gradient(160deg, #f5f0ff 0%, #ede6ff 100%);
  border-color: #b39ddb; box-shadow: 0 4px 16px rgba(179,157,219,.2);
}
.sd-day.is-done {
  background: linear-gradient(160deg, #e8f5e9 0%, #f1f8e9 100%);
  border-color: #a5d6a7;
}
.sd-day.is-locked { opacity: .45; cursor: default; }
.sd-day-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sd-day-n { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted, #8a8378); }
.sd-day-check { font-size: 14px; color: #66bb6a; font-weight: 700; }
.sd-day-icon { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.sd-day-title { font-size: 14px; font-weight: 600; color: var(--ink, #2b2521); }
.sd-day-theme { font-size: 11px; color: var(--muted, #8a8378); margin-top: 3px; }

.sd-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--muted, #8a8378);
  padding: 0; margin-bottom: 20px;
}
.sd-back:hover { color: var(--ink, #2b2521); }

.sd-day-page { }
.sd-day-head { margin-bottom: 20px; }
.sd-day-theme-label {
  font-size: 13px; color: var(--muted, #8a8378); margin-top: 6px; font-style: italic;
}

.sd-textarea { border-color: var(--sd-color, #b39ddb); }
.sd-textarea:focus { outline: none; border-color: var(--sd-color, #b39ddb); box-shadow: 0 0 0 3px rgba(179,157,219,.15); }

.sd-action-card {
  margin: 20px 0;
  padding: 18px 20px;
  background: linear-gradient(160deg, #fff8f0 0%, #fdf3e7 100%);
  border: 1.5px solid var(--accent, #C96A4A);
  border-radius: 16px;
}
.sd-action-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent, #C96A4A); margin-bottom: 8px;
}
.sd-action-text { font-size: 15px; font-weight: 600; color: var(--ink, #2b2521); line-height: 1.5; }
.sd-action-time { font-size: 13px; color: var(--muted, #8a8378); margin-top: 6px; }

.sd-save-btn { width: 100%; margin-top: 8px; padding: 16px; font-size: 17px; }

.sd-done-banner {
  text-align: center; padding: 14px;
  background: #e8f5e9; border-radius: 12px;
  font-size: 15px; color: #2e7d32; margin: 16px 0;
}

.sd-done-page {
  text-align: center; padding: 32px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.sd-done-icon { font-size: 64px; line-height: 1; }
.sd-done-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 32px; color: var(--ink, #2b2521); font-weight: 500;
}
.sd-done-sub { font-size: 16px; color: var(--muted, #8a8378); max-width: 280px; }
.sd-done-points {
  font-size: 20px; font-weight: 700; color: var(--accent, #C96A4A);
}
.sd-done-streak { font-size: 15px; color: var(--ink, #2b2521); }
.sd-done-next { font-size: 14px; color: var(--muted, #8a8378); }
.sd-done-page .btn { width: 100%; max-width: 300px; padding: 15px; font-size: 16px; }

.sd-complete {
  text-align: center; padding: 28px 20px;
  background: linear-gradient(160deg, #f5f0ff 0%, #fff8f0 100%);
  border: 1px solid var(--line, #ece7e0);
  border-radius: 20px; margin-top: 24px;
}
.sd-complete-ic { font-size: 52px; margin-bottom: 12px; }
.sd-complete-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 26px; color: var(--ink, #2b2521);
}
.sd-complete-sub { font-size: 14px; color: var(--muted, #8a8378); margin: 8px 0 20px; }

/* ── Mobile fallbacks for profile/blackout/music (≤480px) ── */
@media (max-width: 480px) {
  .profile-hero { flex-direction: column; gap: 14px; }
  .profile-hero-streak {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.07);
    padding-right: 0; padding-bottom: 14px;
    min-width: 0; width: 100%;
  }
  .blackout-panel-head { flex-wrap: wrap; }
  .blackout-change { margin-left: 0; width: 100%; }
  .profile-week { gap: 4px; }
  .profile-week-day { padding: 8px 2px; }
  .profile-week-lbl { font-size: 10px; }
  .music-player-controls { gap: 10px; }
}

.journal-prompts { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.journal-prompt {
  padding: 10px 14px; background: #faf6f0; border-radius: 10px;
  font-size: 14px; color: var(--ink, #2b2521);
}
.journal-text {
  width: 100%; padding: 14px; border: 1px solid var(--line, #ece7e0);
  border-radius: 14px; font-family: inherit; font-size: 15px;
  line-height: 1.55; resize: vertical; background: #fff;
}
.journal-text:focus { outline: none; border-color: var(--accent, #C96A4A); }
.journal-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.journal-status { font-size: 13px; color: var(--muted, #8a8378); }

/* ===== MOOD RESPONSE BLOCK — editorial "note from a friend" style ===== */
.mood-hint { margin-top: 24px; }
.mood-response {
  max-width: 640px; margin: 0 auto;
  background: #fdf2ef;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  padding: 22px 28px;
  animation: moodHintFade .3s ease;
}
.mood-response-msg {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; color: var(--text);
  margin-bottom: 4px;
}
.mood-response-sub {
  font-size: 14px; color: var(--text-soft); margin-bottom: 16px; line-height: 1.5;
}
/* Tasks — subtle list, not a card grid */
.mood-tasks { display: flex; flex-direction: column; gap: 0; margin-bottom: 18px; }
.mood-task-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201,106,74,0.12);
  font-size: 14px;
}
.mood-task-item:last-child { border-bottom: none; }
.mood-task-zone {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent); text-transform: uppercase; white-space: nowrap;
  min-width: 52px;
}
.mood-task-title { flex: 1; color: var(--text); font-weight: 500; }
.mood-task-time {
  font-size: 12px; color: var(--text-soft); white-space: nowrap;
}
.mood-response-action {
  background: none; border: none; padding: 0;
  color: var(--accent); font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  transition: opacity .18s;
}
.mood-response-action:hover { opacity: 0.7; }

/* ===== MOOD HINT + RECOMMENDED PRACTICES ===== */
.self-mood-hint {
  margin: 16px 0 20px;
  padding: 14px 18px;
  background: #fdf2ef;
  border-left: 3px solid var(--accent, #C96A4A);
  border-radius: 0 12px 12px 0;
  animation: moodHintFade .35s ease;
}

/* ── Mood Flower Card ─────────────────────────────────────── */
.mood-flower-wrap { margin: 0 0 28px; }
.mood-flower-card {
  background: var(--flower-bg, #f5f0e8);
  border-radius: 20px;
  padding: 28px 20px 22px;
  text-align: center;
  animation: flowerFade .5s cubic-bezier(0.34,1.2,0.64,1);
}
@keyframes flowerFade {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.mood-flower-emoji {
  display: block;
  font-size: 54px;
  line-height: 1;
  margin-bottom: 14px;
  animation: flowerSway 4s ease-in-out infinite;
}
@keyframes flowerSway {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50%       { transform: rotate(4deg)  scale(1.04); }
}
.mood-flower-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}
.mood-flower-meaning {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.self-hint-msg {
  font-family: var(--font-serif); font-style: italic;
  font-size: 16px; color: var(--text);
  display: block; margin-bottom: 3px;
}
.self-hint-sub {
  font-size: 13px; color: var(--text-soft);
}
@keyframes moodHintFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.practice-card.is-recommended {
  border-color: var(--accent, #C96A4A);
  background: #fdf2ef;
  box-shadow: 0 0 0 1.5px rgba(212,97,74,0.2), var(--shadow-card);
  position: relative;
  animation: recommendedPop .35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes recommendedPop {
  from { transform: scale(0.97); opacity: 0.6; }
  to   { transform: scale(1);    opacity: 1; }
}
/* "для тебе" badge in top-right corner */
.practice-card.is-recommended::after {
  content: 'для тебе';
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-sans); font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); opacity: 0.8;
}

/* Subtitle when recommendation is active */
.self-section-title.has-recommendation {
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0;
}

/* ==========================================================
   Lime PAGE
   ========================================================== */
:root { --lime-green: #3a7d44; --lime-green-light: #e8f5eb; }

.lm-hero {
  background: linear-gradient(145deg, #2a1f1a 0%, #3d2820 60%, #4a3228 100%);
  padding: 60px 24px 70px; text-align: center; color: #fff; position: relative;
}
.lm-back { color: rgba(255,255,255,0.75) !important; margin-bottom: 28px; }
.lm-back:hover { color: #fff !important; }
.lm-eyebrow {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 16px;
}
.lm-hero-title {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 48px);
  font-weight: 400; line-height: 1.2; color: #fff; margin: 0 0 18px;
}
.lm-hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.82); line-height: 1.6; margin: 0 0 36px;
}
.lm-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lm-hero-cta .cta-secondary {
  border-color: rgba(255,255,255,0.5); color: #fff;
}
.lm-hero-cta .cta-secondary:hover { background: rgba(255,255,255,0.12); }
.lm-hero-inner { max-width: 680px; margin: 0 auto; }

.lm-section { padding: 64px 24px; }
.lm-section--soft { background: var(--bg-soft, #f5f0ea); }
.lm-inner { max-width: 1080px; margin: 0 auto; }
.lm-section-title {
  font-family: var(--font-serif); font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 400; color: var(--text); margin: 8px 0 36px; line-height: 1.3;
}

/* 3 reasons */
.lm-reasons { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 720px) { .lm-reasons { grid-template-columns: 1fr; } }
.lm-reason-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.lm-reason-ic {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--lime-green-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--lime-green);
}
.lm-reason-ic svg { width: 24px; height: 24px; stroke: var(--lime-green); }
.lm-reason-card h3 { font-family: var(--font-serif); font-size: 18px; margin: 0 0 10px; }
.lm-reason-card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin: 0; }

/* story quote */
.lm-story { padding: 0 24px; }
.lm-story-quote {
  max-width: 760px; margin: 0 auto; padding: 36px 40px;
  background: var(--lime-green-light); border-left: 4px solid var(--lime-green);
  border-radius: 0 16px 16px 0;
}
.lm-story-quote p {
  font-family: var(--font-serif); font-style: italic; font-size: 17px;
  line-height: 1.75; color: var(--text); margin: 0 0 16px;
}
.lm-story-quote footer { font-size: 13px; font-weight: 600; color: var(--lime-green); }

/* products grid */
.lm-products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media (max-width: 900px) { .lm-products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .lm-products-grid { grid-template-columns: 1fr; } }
.lm-product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 22px 20px;
  box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s;
}
.lm-product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(42,37,32,0.12); }
.lm-product-photo {
  width: 100%; height: 160px; border-radius: 10px; overflow: hidden;
  background: #f5f5f5; margin-bottom: 14px;
}
.lm-product-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.lm-mop-photo {
  flex-shrink: 0; width: 100px; height: 130px; border-radius: 10px;
  overflow: hidden; background: #f5f5f5;
}
.lm-mop-photo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.lm-product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lm-product-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.lm-product-ic svg { width: 22px; height: 22px; }
.lm-product-ic--green { background: #e8f5eb; } .lm-product-ic--green svg { stroke: #3a7d44; }
.lm-product-ic--lavender { background: #f0eaf8; } .lm-product-ic--lavender svg { stroke: #7c4fa0; }
.lm-product-ic--lemon { background: #fffbe6; } .lm-product-ic--lemon svg { stroke: #b5860d; }
.lm-product-ic--floor { background: #e6f3fb; } .lm-product-ic--floor svg { stroke: #1a6fa0; }
.lm-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
  background: var(--bg-soft); color: var(--text-soft);
}
.lm-badge--hit { background: #fff8e1; color: #b5860d; }
.lm-badge--power { background: #fdecea; color: #c0392b; }
.lm-badge--new { background: var(--lime-green-light); color: var(--lime-green); }
.lm-product-card h3 { font-family: var(--font-serif); font-size: 16px; margin: 0 0 4px; }
.lm-product-sub { font-size: 12px; color: var(--text-soft); margin: 0 0 14px; }
.lm-product-list { list-style: none; padding: 0; margin: 0; }
.lm-product-list li {
  font-size: 13px; color: var(--text-soft); padding: 5px 0;
  border-bottom: 1px solid var(--border); line-height: 1.4;
}
.lm-product-list li:last-child { border-bottom: none; }
.lm-product-list li::before { content: "✓ "; color: var(--lime-green); font-weight: 700; }

/* mop systems */
.lm-mops-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 760px; }
@media (max-width: 600px) { .lm-mops-grid { grid-template-columns: 1fr; } }
.lm-mop-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card);
}
.lm-mop-ic {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px;
  background: var(--lime-green-light); display: flex; align-items: center; justify-content: center;
}
.lm-mop-ic svg { width: 22px; height: 22px; stroke: var(--lime-green); }
.lm-mop-body h3 { font-family: var(--font-serif); font-size: 16px; margin: 0 0 8px; }
.lm-mop-body p { font-size: 14px; color: var(--text-soft); line-height: 1.55; margin: 0 0 12px; }
.lm-mop-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lm-mop-tags span {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; background: var(--bg-soft); color: var(--text-soft);
}

/* comparison table */
.lm-table-wrap { overflow-x: auto; }
.lm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lm-table th, .lm-table td {
  padding: 13px 16px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.lm-table th:first-child, .lm-table td:first-child { text-align: left; font-weight: 500; }
.lm-table thead th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.lm-col-lime { background: var(--lime-green-light); font-weight: 700; }
.lm-table thead .lm-col-lime { color: var(--lime-green); border-radius: 8px 8px 0 0; }
.lm-yes { color: var(--lime-green); font-size: 16px; }
.lm-no { color: #c0392b; font-size: 16px; }
.lm-warn { color: #b5860d; font-size: 16px; }

/* reviews */
.lm-reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 720px) { .lm-reviews { grid-template-columns: 1fr; } }
.lm-review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 24px;
  box-shadow: var(--shadow-card);
}
.lm-review-stars { color: #f4a400; font-size: 15px; margin-bottom: 12px; }
.lm-review-card p { font-size: 14px; font-style: italic; line-height: 1.65; color: var(--text); margin: 0 0 16px; }
.lm-review-author { font-size: 12px; font-weight: 600; color: var(--text-soft); }

/* cta */
.lm-cta {
  background: linear-gradient(135deg, #1e4d2b 0%, #3a7d44 100%);
  padding: 72px 24px; text-align: center; color: #fff;
}
.lm-cta-inner { max-width: 600px; }
.lm-cta-title { font-family: var(--font-serif); font-size: clamp(26px, 3.5vw, 40px); font-weight: 400; color: #fff; margin: 0 0 16px; line-height: 1.25; }
.lm-cta-sub { font-size: 16px; color: rgba(255,255,255,0.8); margin: 0 0 36px; line-height: 1.6; }
.lm-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lm-cta-btns .cta-secondary { border-color: rgba(255,255,255,0.5); color: #fff; }
.lm-cta-btns .cta-secondary:hover { background: rgba(255,255,255,0.12); }

/* ── Bookmark button on article cards ─────────────────── */
.article-list-item { position: relative; }
.article-save-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(253,248,244,0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-soft);
  transition: color .2s ease, background .2s ease, transform .15s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.article-save-btn:hover { color: var(--accent); background: #fdf2ef; }
.article-save-btn.saved { color: var(--accent); background: #fdf2ef; border-color: var(--accent); }
.article-save-btn:active { transform: scale(0.92); }

/* Bookmark in article reader */
.reader-top-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.reader-save-btn {
  position: static;
  display: inline-flex; align-items: center; gap: 6px;
  width: auto; height: auto;
  padding: 6px 14px;
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius-pill);
}
.reader-save-btn.saved { color: var(--accent); border-color: var(--accent); background: #fdf2ef; }

/* Profile saved articles list */
.profile-saved-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s ease;
}
.profile-saved-item:last-child { border-bottom: none; }
.profile-saved-item:hover .profile-saved-title { color: var(--accent); }
.profile-saved-info { flex: 1; min-width: 0; }
.profile-saved-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s ease;
}
.profile-saved-meta { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.profile-saved-remove {
  flex-shrink: 0; background: none; border: none;
  color: var(--text-soft); cursor: pointer; padding: 4px;
  border-radius: 6px; transition: color .2s ease;
}
.profile-saved-remove:hover { color: var(--accent); }
.profile-saved-empty {
  font-size: 14px; color: var(--text-soft); line-height: 1.6;
  padding: 8px 0;
}

/* ── Email save-account banner ───────────────────────────── */
.email-save-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  width: calc(100% - 32px); max-width: 400px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 20px 20px 20px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 9000; text-align: center;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
  opacity: 0;
}
.email-save-banner.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.email-save-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; font-size: 20px; line-height: 1;
  color: var(--text-soft); cursor: pointer; padding: 4px 8px;
}
.email-save-icon  { font-size: 28px; margin-bottom: 8px; }
.email-save-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.email-save-sub   { font-size: 13px; color: var(--text-soft); line-height: 1.5; margin-bottom: 14px; }
.email-save-cta   {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.email-save-cta:hover { background: #b05a3d; }

/* ── Email modal ────────────────────────────────────────── */
.email-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 9100; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .3s ease;
}
.email-modal-overlay.is-visible { opacity: 1; }
.email-modal {
  background: var(--card-bg); border-radius: 24px;
  padding: 32px 24px 24px; width: 100%; max-width: 380px;
  position: relative; text-align: center;
  transform: translateY(20px); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.email-modal-overlay.is-visible .email-modal { transform: translateY(0); }
.email-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--text-soft); cursor: pointer;
}
.email-modal-icon  { font-size: 36px; margin-bottom: 12px; }
.email-modal-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.email-modal-sub   { font-size: 14px; color: var(--text-soft); line-height: 1.6; margin: 0 0 18px; }
.email-modal-input {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; font-family: var(--font-sans);
  background: var(--bg); color: var(--text-main);
  margin-bottom: 8px; outline: none; transition: border-color .2s;
}
.email-modal-input:focus { border-color: var(--accent); }
.email-modal-error {
  font-size: 13px; color: #c0392b; margin-bottom: 8px;
  text-align: left; padding: 0 2px;
}
.email-modal-btn {
  width: 100%; margin-bottom: 10px;
  border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 600;
}
.email-modal-btn:disabled { opacity: .6; cursor: default; }
.email-modal-note { font-size: 12px; color: var(--text-soft); margin: 0; }

/* === Streak hero (compact, homepage) === */
/* ── Streak — quiet editorial strip ─────────────────────────────────────── */
.hp-streak {
  margin: 0 0 32px;
  padding: 24px 0;
  border-top: 1px solid #e6dfd6;
  border-bottom: 1px solid #e6dfd6;
}
.hp-streak-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hp-streak-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}
.hp-streak-num {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  color: #C96A4A;
}
.hp-streak-unit {
  font-size: 12px;
  line-height: 1.4;
  color: #8a7e72;
  letter-spacing: 0.04em;
}
.hp-streak-body {
  flex: 1;
  min-width: 180px;
}
.hp-streak-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a7e72;
  margin-bottom: 4px;
}
.hp-streak-msg {
  font-size: 15px;
  color: #3a342f;
  margin: 0 0 12px;
  font-style: italic;
  font-family: 'Libre Baskerville', Georgia, serif;
}
.hp-streak-dots {
  display: flex;
  gap: 6px;
}
.hp-streak-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e6dfd6;
  transition: background .3s;
  display: block;
}
.hp-streak-dots span.is-done { background: #8FAF9D; }
.hp-streak-dots span.is-today { background: #C96A4A; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #C96A4A; }
.hp-streak-link {
  flex-shrink: 0;
  font-size: 13px;
  color: #C96A4A;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity .2s;
}
.hp-streak-link:hover { opacity: .7; }
@media (max-width: 600px) {
  .hp-streak-num { font-size: 40px; }
  .hp-streak-link { width: 100%; }
}

/* === Reward toast === */
.reward-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#3a342f;color:#f6f2ee;padding:14px 22px;border-radius:999px;font-size:15px;box-shadow:0 8px 24px rgba(0,0,0,0.18);opacity:0;pointer-events:none;transition:opacity .35s ease,transform .35s cubic-bezier(.2,.8,.2,1);z-index:9999;display:flex;align-items:center;gap:10px;max-width:90vw}
.reward-toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}
.reward-toast::before{content:"";width:8px;height:8px;border-radius:50%;background:#d6a76a;flex-shrink:0}

/* === Email prompt overlay === */
.email-prompt{position:fixed;inset:0;background:rgba(58,52,47,0.5);display:flex;align-items:center;justify-content:center;z-index:9998;padding:20px;animation:emailFadeIn .25s ease}
.email-prompt[hidden]{display:none!important}
@keyframes emailFadeIn{from{opacity:0}to{opacity:1}}
.email-prompt-card{background:#F6F2EE;border-radius:18px;padding:32px 28px;max-width:420px;width:100%;position:relative;box-shadow:0 20px 60px rgba(0,0,0,0.18)}
.email-prompt-x{position:absolute;top:14px;right:14px;background:none;border:none;font-size:26px;line-height:1;color:#6a5f57;cursor:pointer;padding:6px 10px}
.email-prompt-title{font-family:'Libre Baskerville',Georgia,serif;font-size:24px;color:#3a342f;margin:8px 0 6px;line-height:1.2}
.email-prompt-sub{font-size:15px;color:#6a5f57;margin:0 0 20px;line-height:1.5}
.email-prompt-form{display:flex;flex-direction:column;gap:10px}
.email-prompt-form input{padding:13px 16px;border:1.5px solid #e6dfd6;border-radius:10px;font-size:15px;font-family:inherit;background:#fff;color:#3a342f}
.email-prompt-form input:focus{outline:none;border-color:#C96A4A}
.email-prompt-skip{margin:14px 0 0;text-align:center}
.email-prompt-skip button{background:none;border:none;color:#6a5f57;font-size:14px;cursor:pointer;text-decoration:underline}
.hp-house {
  max-width: 1180px;
  margin: 32px auto;
  padding: 36px 28px;
  background: var(--bg-card, #fff);
  border-radius: 20px;
  border: 1px solid var(--border, #E8E3DD);
  box-shadow: 0 8px 24px rgba(201,106,74,0.08);
}
.hp-house-title {
  font-family: var(--font-serif, 'Libre Baskerville', Georgia, serif);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.2;
  margin: 8px 0 28px;
  max-width: 22ch;
  color: #2C2C2C;
}
.hp-house-stage {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  grid-template-areas:
    "tl illu tr"
    "bl illu br";
  gap: 18px;
  align-items: stretch;
}
.hp-zone--tl { grid-area: tl; }
.hp-zone--tr { grid-area: tr; }
.hp-zone--bl { grid-area: bl; }
.hp-zone--br { grid-area: br; }
.hp-house-illu { grid-area: illu; }

@media (max-width: 980px) {
  .hp-house-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "illu illu"
      "tl tr"
      "bl br";
  }
}
@media (max-width: 520px) {
  .hp-house-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "illu" "tl" "tr" "bl" "br";
  }
}

.hp-zone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: #fdf2ef;
  border: 1px solid #E8E3DD;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  min-width: 0;
}
.hp-zone:hover {
  border-color: #C96A4A;
  background: #fbeadf;
  transform: translateY(-2px);
}
.hp-zone.is-active {
  border-color: #C96A4A;
  background: #fbeadf;
  box-shadow: 0 8px 24px rgba(201,106,74,0.12);
}
.hp-zone-num {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 13px;
  color: #C96A4A;
  letter-spacing: 0.08em;
}
.hp-zone-ic {
  width: 28px; height: 28px;
  color: var(--icon-default);
  margin-bottom: 2px;
}
.hp-zone.is-active .hp-zone-ic,
.hp-zone[data-mood-active] .hp-zone-ic { color: var(--icon-active); }
.hp-zone-name {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 19px;
  color: #2C2C2C;
  line-height: 1.2;
}
.hp-zone-meta {
  font-size: 12px;
  color: #6a5f57;
}
.hp-zone-bar {
  display: block;
  height: 4px;
  background: #E8E3DD;
  border-radius: 100px;
  overflow: hidden;
  margin: 4px 0;
}
.hp-zone-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #8FAF9D;
  border-radius: 100px;
  transition: width .9s ease;
}
.hp-zone-desc {
  font-size: 12px;
  color: #6a5f57;
  line-height: 1.5;
}

.hp-house-illu {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: linear-gradient(135deg, #ece4d8 0%, #ddd1bf 100%);
  border: 1px solid #E8E3DD;
  min-width: 0;
  width: 100%;
}
.hp-house-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-house-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hp-house-svg .hp-room {
  cursor: pointer;
}
.hp-house-svg .hp-room rect {
  transition: fill .25s ease, stroke .25s ease;
  stroke: transparent;
  stroke-width: 2;
}
.hp-house-svg .hp-room:hover rect { fill: rgba(201,106,74,0.10); }
.hp-house-svg .hp-room[data-active="true"] rect {
  fill: rgba(201,106,74,0.18);
  stroke: #C96A4A;
}

.hp-house-tip {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #E8E3DD;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(201,106,74,0.08);
  max-width: 220px;
  font-size: 13px;
  line-height: 1.5;
  color: #2C2C2C;
  backdrop-filter: blur(4px);
}
.hp-house-tip p { margin: 4px 0 0; }
.hp-house-tip-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6e8e7c;
  letter-spacing: 0.04em;
}
@media (max-width: 980px) {
  .hp-house-tip {
    position: static;
    margin: 12px auto 0;
    max-width: 100%;
  }
}

/* zone-click activation */
.hp-zone[data-active]:not([data-active="true"]) { opacity: .6; }

/* merged house+plan */
.hp-house-plan { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e6dfd6; }
.hp-house-plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.hp-house-plan-eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #C96A4A; margin-bottom: 6px; }
.hp-house-plan-sub { font-size: 15px; color: #6a5f57; max-width: 60ch; margin: 0; }
.hp-house-plan-progress { display: flex; align-items: center; gap: 12px; min-width: 160px; }
.hp-house-plan-progress .hp-plan-bar { width: 110px; height: 6px; background: #efe7df; border-radius: 999px; overflow: hidden; }
.hp-house-plan-progress .hp-plan-bar-fill { height: 100%; background: #8FAF9D; transition: width 400ms ease-out; }
.hp-house-plan-n { font-family: 'Libre Baskerville', Georgia, serif; font-size: 16px; color: #3a342f; }
.hp-house-plan-foot { margin-top: 18px; display: flex; justify-content: flex-end; }
@media (max-width: 720px) {
  .hp-house-plan-head { flex-direction: column; align-items: flex-start; }
  .hp-house-plan-progress { width: 100%; }
  .hp-house-plan-progress .hp-plan-bar { flex: 1; width: auto; }
  .hp-house-plan-foot { justify-content: stretch; }
  .hp-house-plan-foot .btn { width: 100%; }
}

/* mood → house zone highlight */
.hp-zone[data-mood-dim] { opacity: .42; filter: saturate(.6); transition: opacity .35s ease, filter .35s ease; }
.hp-zone[data-mood-active] { box-shadow: 0 0 0 2px #C96A4A, 0 12px 28px -16px rgba(201,106,74,.5); transition: box-shadow .35s ease, transform .35s ease; transform: translateY(-2px); }
.hp-zone[data-mood-active] .hp-zone-num { color: #C96A4A; }

/* plan empty-state — коли настрій є, зона не вибрана */
.hp-plan-empty { padding: 28px 24px; text-align: center; border: 1px dashed #d6cfc4; border-radius: 14px; background: #fbf8f3; }
.hp-plan-empty-eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #C96A4A; margin-bottom: 8px; }
.hp-plan-empty-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 22px; line-height: 1.25; color: #3a342f; margin: 0 0 8px; }
.hp-plan-empty-sub { font-size: 14.5px; color: #6a5f57; margin: 0 auto; max-width: 36ch; }

/* selected zone — сильніший стан після кліку */
.hp-zone.is-active { box-shadow: 0 0 0 2px #C96A4A, 0 16px 36px -18px rgba(201,106,74,.55); transform: translateY(-2px); }
.hp-zone.is-active .hp-zone-num { color: #C96A4A; }

/* === PAGE: МІЙ ТИЖДЕНЬ — у нашій паперовій естетиці === */
#pg-week .wk-wrap { max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 28px) 60px; }
.wk-header { margin-bottom: 28px; }
.wk-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; color: #2e2a26; margin: 8px 0 10px; font-weight: 400; }
.wk-sub { font-size: 15.5px; color: #6a5f57; max-width: 52ch; margin: 0; }

.wk-card { background: #fbf8f3; border: 1px solid #ece4d8; border-radius: 14px; padding: 22px 22px; margin-bottom: 18px; }
.wk-card-head { margin-bottom: 14px; }

/* Weekly-zone legend (renders above the mood strip on /pg-week) */
.wk-card--legend { background: #fff; }
.wk-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 0;
}
@media (min-width: 600px) { .wk-legend-grid { grid-template-columns: repeat(6, 1fr); } }
.wk-legend-cell {
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
}
.wk-legend-cell--bath    { background: #e8f4fd; }
.wk-legend-cell--dust    { background: #fef9e7; }
.wk-legend-cell--floor   { background: #e8f8f5; }
.wk-legend-cell--kitchen { background: #fdf2f8; }
.wk-legend-cell--laundry { background: #fff3e0; }
.wk-legend-cell--rest    { background: #fce4ec; }
.wk-legend-ic   { font-size: 22px; line-height: 1; }
.wk-legend-day  { font-size: 11px; font-weight: 700; color: var(--text); margin-top: 4px; }
.wk-legend-name { font-size: 11px; color: var(--text-soft); }
.wk-legend-note { font-size: 13px; color: var(--text-soft); line-height: 1.6; margin: 14px 0 0; }

.wk-days { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wk-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 10px; background: #fff; border: 1px solid #efe8db; position: relative; }
.wk-day.is-today { border-color: #C96A4A; box-shadow: 0 0 0 1px #C96A4A inset; }
.wk-day.is-future { opacity: .55; }
.wk-day-label { font-family: 'Libre Baskerville', Georgia, serif; font-size: 13px; color: #3a342f; }
.wk-day-dot { width: 14px; height: 14px; border-radius: 50%; }
.wk-day-dot--empty { background: transparent; border: 1px dashed #c9bfae; }
.wk-day-mood { font-size: 11px; color: #8a7e72; text-align: center; min-height: 14px; }
.wk-day-done { position: absolute; top: 6px; right: 6px; font-size: 11px; color: #8FAF9D; }

.wk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.wk-card--stat { padding: 22px 20px; margin: 0; text-align: left; }
.wk-stat-eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #C96A4A; margin-bottom: 10px; }
.wk-stat-value { font-family: 'Libre Baskerville', Georgia, serif; font-size: 44px; line-height: 1; color: #2e2a26; }
.wk-stat-of { font-size: 18px; color: #8a7e72; }
.wk-stat-sub { font-size: 13px; color: #6a5f57; margin-top: 8px; max-width: 24ch; }

.wk-zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wk-zone-pill { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: #f3ece1; color: #5a4f44; border: 1px solid #e6dcc9; }
.wk-zone-empty { font-size: 14px; color: #8a7e72; }

.wk-note { background: #f6f0e6; border-radius: 12px; padding: 22px 24px; margin: 22px 0 6px; }
.wk-note-text { font-family: 'Libre Baskerville', Georgia, serif; font-size: 18px; line-height: 1.45; color: #3a342f; margin: 0; font-style: italic; }

.wk-foot { margin-top: 28px; }

@media (max-width: 560px) {
  .wk-row { grid-template-columns: 1fr; }
  .wk-day { padding: 10px 2px; }
  .wk-day-mood { display: none; }
}

/* ── Мій тиждень — досягнення ───────────────────────────────────────────── */
.wk-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.wk-badge { text-align: center; padding: 16px 10px; border-radius: 12px; background: #f5f0ea; border: 1px solid #ece4d8; opacity: .45; transition: opacity .25s; }
.wk-badge.is-unlocked { opacity: 1; background: #fff; border-color: #8FAF9D; }
.wk-badge-ic { font-size: 28px; margin-bottom: 6px; }
.wk-badge-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 13px; color: #2e2a26; margin-bottom: 3px; }
.wk-badge-sub { font-size: 11px; color: #8a7e72; line-height: 1.3; }

/* ==========================================================
   MOBILE D2 — full mobile redesign (≤767px only).
   Desktop is untouched; everything inside this @media block
   either replaces .app-shell content or hides legacy elements
   that conflict with the new mobile flow.
   Tokens reused: --accent #C96A4A, --secondary #8FAF9D,
                  --bg #F6F2EE, --bg-soft #fdf2ef, --bg-card #fff,
                  --text #2C2C2C, --text-soft #6a5f57,
                  --border #E8E3DD, --font-serif Libre Baskerville,
                  --font-sans Onest.
   ========================================================== */

.d2-calm-wrap { display: none; }

/* ==========================================================
   MARIA — chat persona (works at all viewports).
   Header avatar replaces the bell icon on mobile + drawer +
   /pg-self CTA + full-page chat at /pg-maria.
   ========================================================== */

/* ----- Header avatar button (mobile only — inside .d2-hdr) ----- */
.d2-hdr-maria {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(201,106,74,0.28);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease;
}
.d2-hdr-maria:active { transform: scale(0.96); }
.d2-hdr-maria-avatar {
  /* Real photo of Maria. If image fails to load, parent button stays
     orange (var(--accent)) which is acceptable graceful degradation. */
  display: inline-block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: url('/images/Maria.jpg') center/cover, var(--accent);
  font-size: 0;
  color: transparent;
  line-height: 0;
}
.d2-hdr-maria-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: mariaPulse 3.6s ease-out infinite;
}
@keyframes mariaPulse {
  0%   { opacity: 0.55; transform: scale(0.95); }
  60%  { opacity: 0;    transform: scale(1.35); }
  100% { opacity: 0;    transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .d2-hdr-maria-pulse { animation: none; }
}

/* ----- /pg-self CTA card "Спитай Марію" ----- */
.self-maria-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 18px 0 8px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 12px rgba(36,30,26,0.05);
  transition: transform .15s ease, box-shadow .2s;
}
.self-maria-cta:active {
  transform: translateY(1px);
  box-shadow: 0 1px 6px rgba(36,30,26,0.06);
}
.self-maria-cta-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: url('/images/Maria.jpg') center/cover, var(--accent);
  color: transparent;
  font-size: 0;
  box-shadow: 0 2px 8px rgba(201,106,74,0.22);
}
.self-maria-cta-body { flex: 1; min-width: 0; }
.self-maria-cta-title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.self-maria-cta-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.35;
}
.self-maria-cta-arr {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--accent);
}

/* ----- Full-page chat (#pg-maria) ----- */
/* Treat Maria as a full-screen takeover. Position fixed so it never gets
   measured against parent .pg constraints, and so footer/tabbar are visually
   below/behind it without affecting layout. */
#pg-maria { padding: 0 !important; }
#pg-maria.active {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bg);
  overflow: hidden;
}
body:has(#pg-maria.active) {
  overflow: hidden;
  padding-bottom: 0 !important;
}
/* Insurance: hide things that would peek through if z-index ever fails */
body:has(#pg-maria.active) .site-footer,
body:has(#pg-maria.active) .bottom-nav,
body:has(#pg-maria.active) .float-telegram,
body:has(#pg-maria.active) .d2-calm,
body:has(#pg-maria.active) .d2-calm-wrap,
body:has(#pg-maria.active) .pwa-banner { display: none !important; }
.maria-shell {
  display: flex;
  flex-direction: column;
  /* 100dvh tracks the dynamic viewport on iOS Safari, so when the keyboard
     opens the form (with send button) stays visible above it instead of being
     pushed below the chrome. Falls back to vh on browsers without dvh. */
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
}
/* The .pg wrapper around Maria has no height of its own — give it one, so the
   .maria-shell { height: 100% } chain works even outside the inner-page layout. */
#pg-maria.active {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.maria-hdr {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 8px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.maria-back {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.maria-back:active { background: var(--bg-soft); }
.maria-back svg { width: 22px; height: 22px; }
.maria-hdr-id {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.maria-hdr-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: url('/images/Maria.jpg') center/cover, var(--accent);
  color: transparent;
  font-size: 0;
  box-shadow: 0 2px 6px rgba(201,106,74,0.22);
}
.maria-hdr-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.maria-hdr-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}
.maria-hdr-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-soft);
}
.maria-hdr-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--secondary);
}
.maria-hdr-dot--typing {
  background: var(--accent);
  animation: mariaDotBlink 1s infinite;
}
@keyframes mariaDotBlink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.maria-clear {
  width: 38px; height: 38px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.maria-clear:active { background: var(--bg-soft); color: var(--accent); }
.maria-clear svg { width: 18px; height: 18px; }

/* Trigger pills */
.maria-pills {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.maria-pills::-webkit-scrollbar { display: none; }
.maria-pill {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.maria-pill:active {
  background: var(--bg-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Message feed */
.maria-feed {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.maria-bubble {
  max-width: 80%;
  padding: 11px 14px;
  border-radius: 18px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.45;
  word-wrap: break-word;
  animation: mariaBubbleIn .25s ease-out;
}
@keyframes mariaBubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.maria-bubble--her {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.maria-bubble--me {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.maria-bubble--welcome {
  background: var(--bg-soft);
  border-color: rgba(201,106,74,0.18);
  max-width: 90%;
}
.maria-bubble-text { white-space: pre-wrap; }
.maria-link {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}
.maria-bubble--me .maria-link { color: #fff; }

/* Lime product card under Maria's bubble */
.maria-product {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  max-width: 86%;
  margin-top: -2px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, transform .15s;
  animation: mariaBubbleIn .25s ease-out;
}
.maria-product:active {
  border-color: var(--accent);
  transform: translateY(1px);
}
.maria-product-img {
  display: block;
  width: 88px; height: 88px;
  border-radius: 10px;
  background: var(--secondary) center/cover no-repeat;
  flex-shrink: 0;
}
.maria-product-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  justify-content: center;
}
.maria-product-eyebrow {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2px;
}
.maria-product-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.2;
}
.maria-product-sub {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.3;
  margin-top: 2px;
}
.maria-product-cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* Typing dots */
.maria-bubble--typing {
  padding: 12px 16px;
}
.maria-typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.maria-typing-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-soft);
  opacity: 0.4;
  animation: mariaTypingDot 1.4s infinite;
}
.maria-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.maria-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mariaTypingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .maria-bubble, .maria-typing-dots span { animation: none; }
}

/* Input */
.maria-input {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.maria-input-area {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 22px;
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
  max-height: 120px;
  min-height: 44px;
  outline: none;
  transition: border-color .15s;
}
.maria-input-area:focus { border-color: var(--accent); }
.maria-send {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(201,106,74,0.28);
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s, background .15s;
}
.maria-send:active { transform: scale(0.94); background: #b05a3d; }
.maria-send svg { width: 20px; height: 20px; }

/* On desktop, render Maria centered with max-width like inner-page */
@media (min-width: 768px) {
  .maria-shell { max-width: 720px; margin: 0 auto; height: calc(100vh - 80px); }
  .maria-bubble { max-width: 70%; }
  /* Hide header avatar on desktop — link comes from desktop nav instead */
  .d2-hdr-maria { display: none; }
}

/* ==========================================================
   D2 Streak milestone toast (overrides legacy .reward-toast
   when class .is-d2 is set by inline JS).
   ========================================================== */
.reward-toast.is-d2 {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  z-index: 1050;
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,.9,.36,1);
  pointer-events: none;
}
.reward-toast.is-d2.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.d2-streak-toast {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(201,106,74,0.32);
  font-family: var(--font-sans);
  text-align: center;
  min-width: 200px;
  max-width: 84vw;
}
.d2-streak-toast-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.d2-streak-toast-sub {
  font-size: 11.5px;
  opacity: 0.88;
}

/* ==========================================================
   D2 Lifehack modal — overlay popup, mobile-first.
   Visible at any viewport (it's a modal, not part of D2 shell).
   ========================================================== */
.d2-lh-overlay {
  position: fixed;
  inset: 0;
  /* must sit above .bottom-nav (z-index 1000) and float-telegram (100) */
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(30, 20, 16, 0);
  transition: background .2s ease;
  padding: 0;
}
.d2-lh-overlay[hidden] { display: none; }
.d2-lh-overlay.is-open { background: rgba(30, 20, 16, 0.55); }
.d2-lh-card {
  position: relative;
  background: var(--bg-card);
  width: 100%;
  max-width: 480px;
  border-radius: 22px 22px 0 0;
  padding: 22px 22px 26px;
  box-shadow: 0 -10px 40px rgba(30,20,16,0.18);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22,.9,.36,1);
}
.d2-lh-overlay.is-open .d2-lh-card { transform: translateY(0); }
@media (min-width: 480px) {
  .d2-lh-overlay { align-items: center; padding: 24px; }
  .d2-lh-card { border-radius: 22px; }
}
.d2-lh-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.d2-lh-close:active { background: var(--bg-soft); }
.d2-lh-cat {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.d2-lh-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 14px;
  padding-right: 32px;
}
.d2-lh-core {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 10px;
}
.d2-lh-hint {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
  margin: 0 0 18px;
}
.d2-lh-hint[hidden] { display: none; }
.d2-lh-after {
  margin: 6px 0 18px;
}
.d2-lh-after[hidden] { display: none; }
.d2-lh-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: rgba(143,175,157,0.15);
  border-radius: var(--radius-pill);
  color: var(--secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.d2-lh-soft {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 14px 16px;
}
.d2-lh-soft[hidden] { display: none; }
.d2-lh-soft-q {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.d2-lh-soft-text {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-soft);
  margin: 0 0 10px;
}
.d2-lh-soft-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.d2-lh-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}
.d2-lh-actions[hidden] { display: none; }
.d2-lh-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, transform .15s;
}
.d2-lh-btn:active { transform: translateY(1px); }
.d2-lh-btn--ghost {
  background: transparent;
  color: var(--text-soft);
  padding: 12px 14px;
}
.d2-lh-btn--ghost:active { background: var(--bg-soft); }
.d2-lh-btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(201,106,74,0.18);
}
.d2-lh-btn--primary:active { background: #b05a3d; }
@media (prefers-reduced-motion: reduce) {
  .d2-lh-card { transition: none; }
}

@media (max-width: 767px) {

  /* ----- Hide legacy desktop chrome on mobile ----------------- */
  .top-header { display: none !important; }
  /* Hide legacy hero / sections on mobile (D2 replaces them) */
  #pg-home > section.hero-full,
  #pg-home > section.hp-mood,
  #pg-home > section.hp-self,
  #pg-home > section.hp-streak,
  #pg-home > section.hp-leadmag,
  #pg-home > section.hp-support-micro,
  #pg-home > section.hp-articles,
  #pg-home > section.hp-channels { display: none !important; }
  /* hp-house stays in DOM (provides task data via hp-plan-tasks)
     but is invisible — same trick app.js relied on. */
  #pg-home > section.hp-house {
    visibility: hidden;
    height: 0; min-height: 0;
    overflow: hidden;
    margin: 0; padding: 0;
    pointer-events: none;
  }

  /* Push body content above bottom-nav + safe area */
  body { padding-bottom: 84px; }

  /* ----- D2 Shell --------------------------------------------- */
  .app-shell.d2 {
    display: block;
    padding: 0;
    background: var(--bg);
  }

  .d2-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
  }

  /* Sprite SVGs use fill="none" stroke="currentColor" — set it on
     all D2 svgs so icons render as outlines, not filled black squares. */
  .d2 svg,
  .d2 svg use,
  .d2-calm svg,
  .d2-calm svg use { fill: none; stroke: currentColor; }
  /* Streak bolt is a filled glyph — keep it filled */
  .d2-plan-streak svg { fill: currentColor; stroke: none; }

  /* ----- Header ---------------------------------------------- */
  .d2-hdr {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 14px;
    background: rgba(246, 242, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .d2-hdr-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    color: inherit;
    gap: 3px;
  }
  .d2-hdr-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 19px;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  .d2-hdr-tag {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--text-soft);
    font-weight: 400;
  }
  .d2-hdr-actions { display: flex; gap: 4px; }
  .d2-hdr-icon {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none;
    background: transparent;
    color: var(--text);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .d2-hdr-icon:active { background: var(--border); }
  .d2-hdr-icon svg { width: 20px; height: 20px; }

  /* ----- Hero ------------------------------------------------- */
  .d2-hero {
    position: relative;
    margin: 0;
    min-height: 540px;
    overflow: hidden;
    isolation: isolate;
  }
  .d2-hero-img {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-mobile.jpg'),
                      url('/images/hero-photo1.jpg');
    background-size: cover;
    /* Anchor lower so the countertop with sink + plants is in view,
       not just the cabinets above. */
    background-position: center 55%;
    background-color: var(--bg-soft);
    z-index: -2;
  }
  .d2-hero-veil {
    position: absolute;
    inset: 0;
    /* Light wash on the photo + cream fade only at the very bottom so the
       kitchen stays visible. */
    background:
      linear-gradient(
        180deg,
        rgba(246,242,238,0.0)  0%,
        rgba(246,242,238,0.0)  55%,
        rgba(246,242,238,0.7)  82%,
        rgba(246,242,238,0.96) 95%,
        var(--bg) 100%
      ),
      linear-gradient(
        180deg,
        rgba(246,242,238,0.18) 0%,
        rgba(246,242,238,0.05) 30%
      );
    z-index: -1;
  }
  .d2-hero-body {
    padding: 300px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .d2-hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin: 0 0 -2px;
    opacity: 0.85;
  }
  .d2-hero-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
    max-width: 18ch;
  }
  .d2-hero-title em {
    font-style: normal;
    color: var(--accent);
  }
  .d2-hero-sub {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.45;
    max-width: 28ch;
  }
  .d2-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }
  .d2-hero-cta {
    padding: 13px 22px;
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(201,106,74,0.22);
    transition: transform .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .d2-hero-cta:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(201,106,74,0.18);
  }
  .d2-hero-cta--calm {
    background: rgba(143,175,157,0.14);
    color: var(--secondary);
    box-shadow: none;
    border: 1px solid rgba(143,175,157,0.45);
  }
  .d2-hero-cta--calm:active {
    transform: translateY(1px);
    background: rgba(143,175,157,0.22);
  }
  .d2-hero-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }
  .d2-av-row { display: inline-flex; }
  .d2-av {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    display: inline-block;
    background: #d8a384 center/cover no-repeat;
  }
  .d2-av + .d2-av { margin-left: -8px; }
  .d2-av--1 { background-image: url('/images/avatar-1.jpg'); }
  .d2-av--2 { background-image: url('/images/avatar-2.jpg'); }
  .d2-av--3 { background-image: url('/images/avatar-3.jpg'); }
  .d2-hero-proof-text {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-soft);
  }

  /* ----- Plan ------------------------------------------------- */
  .d2-plan {
    margin: 18px 14px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px 18px 0;
    box-shadow: 0 2px 14px rgba(36,30,26,0.04);
    overflow: hidden;
    /* Sticky D2 header is 54px — leave breathing room when CTA scrolls here */
    scroll-margin-top: 64px;
    transition: box-shadow .25s, border-color .25s;
  }
  /* Pulse glow when motivator nudges the user back to plan */
  .d2-plan--pulse {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(201,106,74,0.15),
                0 8px 24px rgba(201,106,74,0.18) !important;
    animation: d2PlanPulse 1.8s ease-out;
  }
  @keyframes d2PlanPulse {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.012); }
    100% { transform: scale(1); }
  }
  .d2-task-check--nudge {
    animation: d2ChkNudge 1.4s ease-out;
  }
  @keyframes d2ChkNudge {
    0%, 100% { transform: scale(1); border-color: var(--border); }
    25%      { transform: scale(1.18); border-color: var(--accent); }
    50%      { transform: scale(1);    border-color: var(--accent); }
    75%      { transform: scale(1.10); border-color: var(--accent); }
  }
  @media (prefers-reduced-motion: reduce) {
    .d2-plan--pulse, .d2-task-check--nudge { animation: none; }
  }
  .d2-plan-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .d2-plan-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .d2-plan-title-ic {
    width: 18px; height: 18px;
    color: var(--accent);
  }
  .d2-plan-streak {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-soft);
    padding: 4px 10px 4px 7px;
    border-radius: var(--radius-pill);
  }
  .d2-plan-streak svg { width: 13px; height: 13px; }

  /* Week strip */
  .d2-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
  }
  .d2-week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--text-soft);
    font-weight: 500;
  }
  .d2-week-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #f0ebe4;
    display: inline-block;
    position: relative;
    transition: background .25s;
  }
  .d2-week-day.is-done .d2-week-dot {
    background: var(--secondary);
  }
  .d2-week-day.is-done .d2-week-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>") center/14px no-repeat;
  }
  .d2-week-day.is-today .d2-week-dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,106,74,0.18);
  }
  .d2-week-day.is-today.is-done .d2-week-dot {
    background: var(--accent);
  }
  .d2-week-day.is-today .d2-week-dow {
    color: var(--accent);
    font-weight: 700;
  }

  /* Tasks */
  .d2-tasks {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    border-top: 1px solid var(--border);
  }
  .d2-task {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-sans);
  }
  .d2-task:last-child { border-bottom: none; }
  .d2-task-check {
    width: 24px; height: 24px;
    border-radius: 8px;
    border: 1.6px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, color .2s;
    color: transparent;
    -webkit-tap-highlight-color: transparent;
  }
  .d2-task-check svg { width: 16px; height: 16px; }
  .d2-task.is-done .d2-task-check {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
  }
  .d2-task-title {
    font-size: 14px;
    color: var(--text);
    line-height: 1.35;
    transition: color .2s, text-decoration-color .2s;
  }
  .d2-task.is-done .d2-task-title {
    color: var(--text-soft);
    text-decoration: line-through;
    text-decoration-color: rgba(106,95,87,0.45);
  }
  .d2-task-time {
    font-size: 11px;
    color: var(--text-soft);
    white-space: nowrap;
  }
  .d2-task--placeholder {
    grid-template-columns: 1fr;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.45;
    padding: 14px 0;
  }
  /* Plan hint row — weekly zone + monthly progress */
  .d2-plan-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0 0;
    padding: 10px 0 14px;
    border-top: 1px solid var(--border);
  }
  .d2-plan-hint-zone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 600;
    min-width: 0;
  }
  .d2-plan-hint-ic { font-size: 16px; line-height: 1; flex-shrink: 0; }
  .d2-plan-hint-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .d2-plan-hint-month {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .d2-plan-hint-month:active { opacity: .7; }

  .d2-plan-foot {
    display: block;
    margin: 0 -18px;
    padding: 14px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
  }
  .d2-plan-foot:active { background: #b05a3d; }

  /* ----- Articles strip --------------------------------------- */
  .d2-articles { margin: 22px 0; }
  .d2-sec-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 14px;
    margin-bottom: 12px;
  }
  .d2-sec-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
  }
  .d2-sec-all {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
  }
  .d2-art-rail {
    display: flex;
    gap: 10px;
    padding: 0 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .d2-art-rail::-webkit-scrollbar { display: none; }

  .d2-art {
    flex: 0 0 162px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
  }
  .d2-art-img {
    display: block;
    width: 100%;
    height: 104px;
    background: #ece4d8 center/cover no-repeat;
    position: relative;
  }
  .d2-art-tag {
    position: absolute;
    bottom: 7px; left: 7px;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.92);
    color: var(--text);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
  }
  .d2-art-title {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    padding: 9px 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .d2-art-time {
    font-family: var(--font-sans);
    font-size: 10px;
    color: var(--text-soft);
    padding: 4px 10px 11px;
  }

  /* ----- Emotion link ----------------------------------------- */
  .d2-emotion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 0 14px;
    /* button defaults to content-width — force full bleed minus 14px gutters */
    width: calc(100% - 28px);
    padding: 22px 24px;
    min-height: 150px;
    border: none;
    border-radius: 18px;
    text-align: left;
    color: #fff;
    cursor: pointer;
    background:
      linear-gradient(135deg, rgba(30,20,16,0.62), rgba(30,20,16,0.36)),
      url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=800&q=80') center/cover,
      url('/images/hero-photo.jpg') center/cover;
    background-color: #d4c4b4;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 22px rgba(30,20,16,0.16);
    position: relative;
    overflow: hidden;
  }
  .d2-emotion-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.25;
    color: #fff;
  }
  .d2-emotion-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
  }

  /* ----- Lifehack -------------------------------------------- */
  .d2-tip-wrap { margin: 18px 14px; width: calc(100% - 28px); }
  .d2-tip {
    display: grid;
    grid-template-columns: 1fr 110px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .2s, transform .15s ease;
  }
  .d2-tip-cta {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    background: var(--bg-soft);
    color: var(--accent);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .18s, color .18s;
  }
  .d2-tip-cta:active { background: var(--border); }
  .d2-tip-cta.is-done {
    background: #6FAE8A;
    color: #fff;
    border-color: #6FAE8A;
    cursor: default;
  }
  .d2-tip:active { transform: translateY(1px); border-color: var(--accent); }
  .d2-tip-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    justify-content: center;
  }
  .d2-tip-img {
    display: block;
    background-image: url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?w=400&q=70');
    background-size: cover;
    background-position: center;
    background-color: #d4c4b4;
  }
  .d2-tip-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    line-height: 1.35;
    margin: 0;
  }
  .d2-tip-desc {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: var(--text-soft);
    line-height: 1.4;
    margin: 0;
  }
  .d2-tip-glyph {
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--accent);
    font-size: 24px;
  }

  /* ----- Email ----------------------------------------------- */
  .d2-email {
    margin: 18px 14px;
    padding: 20px;
    background: #f5ede6;
    border-radius: 18px;
  }
  .d2-email-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .d2-email-ic {
    flex-shrink: 0;
    width: 28px; height: 28px;
    color: var(--accent);
    margin-top: 2px;
  }
  .d2-email-text { display: flex; flex-direction: column; gap: 4px; }
  .d2-email-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
  }
  .d2-email-sub {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.4;
  }
  .d2-email-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    background: #fff;
    padding: 4px;
    border-radius: var(--radius-pill);
  }
  .d2-email-form input {
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text);
    min-width: 0;
    outline: none;
  }
  .d2-email-form button {
    border: none;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s;
  }
  .d2-email-form button:active { background: #b05a3d; }
  .d2-email-status {
    margin: 8px 0 0;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--text-soft);
  }
  .d2-email-status.is-ok  { color: var(--secondary); }
  .d2-email-status.is-err { color: #b65a4a; }

  /* ----- Lime card ------------------------------------------- */
  .d2-lime {
    display: grid;
    grid-template-columns: 1fr 96px;
    align-items: center;
    gap: 14px;
    margin: 18px 14px;
    padding: 16px 16px 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .d2-lime-body { display: flex; flex-direction: column; gap: 6px; }
  .d2-lime-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    color: var(--text);
  }
  .d2-lime-link {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
  }
  .d2-lime-pic {
    width: 96px; height: 96px;
    border-radius: 12px;
    background: url('/images/LIME%20Cleaning%20master.jpeg') center/cover, var(--secondary);
    display: inline-block;
    overflow: hidden;
  }

  /* ----- Channels (Telegram + Viber) ------------------------- */
  .d2-channels {
    margin: 22px 14px 18px;
    padding: 18px 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
  }
  .d2-channels-hd { margin-bottom: 12px; }
  .d2-channels-sub {
    margin: 6px 0 0;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.4;
  }
  .d2-channels-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .d2-ch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    text-decoration: none;
    transition: transform .15s ease, border-color .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .d2-ch:active { transform: translateY(1px); border-color: var(--accent); color: var(--accent); }
  /* Subtle accent dot left of text for brand recognition without colour clash */
  .d2-ch--tg .d2-ch-ic,
  .d2-ch--vb .d2-ch-ic { color: var(--text-soft); }
  .d2-ch-ic { width: 18px; height: 18px; }
  /* Sprite tg/viber are outlined (fill:none, stroke:currentColor) — keep that */

  /* ----- Motivator ------------------------------------------- */
  .d2-motiv {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    margin: 18px 14px 26px;
    padding: 18px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(201,106,74,0.22);
    text-align: left;
    cursor: pointer;
    width: calc(100% - 28px);
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .d2-motiv:active {
    transform: translateY(1px);
    box-shadow: 0 4px 14px rgba(201,106,74,0.18);
  }
  /* Pulse when user taps after completing today (acknowledgment) */
  .d2-motiv--pulse {
    animation: d2MotivPulse .6s cubic-bezier(.22,.9,.36,1);
  }
  @keyframes d2MotivPulse {
    0%   { transform: scale(1); box-shadow: 0 8px 22px rgba(201,106,74,0.22); }
    40%  { transform: scale(1.02); box-shadow: 0 14px 34px rgba(201,106,74,0.32); }
    100% { transform: scale(1); box-shadow: 0 8px 22px rgba(201,106,74,0.22); }
  }
  @media (prefers-reduced-motion: reduce) {
    .d2-motiv--pulse { animation: none; }
  }
  .d2-motiv-text { display: flex; flex-direction: column; gap: 4px; }
  .d2-motiv-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #fff;
    margin: 0;
  }
  .d2-motiv-sub {
    font-family: var(--font-sans);
    font-size: 11px;
    color: rgba(255,255,255,0.78);
    margin: 0;
    line-height: 1.4;
  }
  .d2-motiv-arr { width: 24px; height: 24px; flex-shrink: 0; }

  /* ----- Quick-calm fixed button ----------------------------- */
  .d2-calm-wrap {
    position: fixed;
    bottom: 84px;
    right: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .d2-calm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--secondary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(143,175,157,0.45);
    -webkit-tap-highlight-color: transparent;
    animation: d2CalmPulse 3.4s ease-in-out infinite;
  }
  .d2-calm svg { width: 22px; height: 22px; }
  @keyframes d2CalmPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(143,175,157,0.45), 0 0 0 0 rgba(143,175,157,0.35); }
    50%      { box-shadow: 0 6px 18px rgba(143,175,157,0.55), 0 0 0 12px rgba(143,175,157,0.0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .d2-calm { animation: none; }
  }
  .d2-calm-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 8px 14px;
    background: var(--text);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.2;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    animation: d2CalmTipIn .35s ease both;
    max-width: 60vw;
  }
  .d2-calm-tip[hidden] { display: none; }
  .d2-calm-tip::after {
    content: '';
    position: absolute;
    transform: translate(calc(100% + 8px), 0);
    /* arrow handled by background below */
  }
  .d2-calm-tip-text { white-space: nowrap; }
  .d2-calm-tip-x {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .d2-calm-tip-x:active { background: rgba(255,255,255,0.3); }
  @keyframes d2CalmTipIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .d2-calm-tip { animation: none; }
  }

  /* Floating CTA strategy (option B):
     One green calm-button is the only floating element on mobile, on every page
     except chat (Maria). Telegram + Viber live in the home tg/viber section,
     in the footer, and in the mobile drawer — never as floating buttons.
     This keeps the single FAB a stable brand anchor instead of swapping context. */
  .float-telegram { display: none !important; }
  body:has(.pg.active:not(#pg-home)) .d2-calm-wrap { display: flex; }

  /* ----- Compact /pg-self practice cards on mobile ----------- */
  /* Override app.css default breakpoints — keep 2-col grid even at ≤460,
     and trim card padding so tiles aren't 200px tall. */
  #pg-self .self-practices-grid,
  #pg-self .self-practices-grid--6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
  }
  #pg-self .practice-card--icon {
    padding: 16px 10px !important;
    border-radius: 14px;
    gap: 4px;
  }
  #pg-self .practice-card--icon .practice-icon {
    width: 26px; height: 26px;
    margin-bottom: 4px;
  }
  #pg-self .practice-card--icon h3 {
    font-size: 14px;
    line-height: 1.2;
  }
  #pg-self .practice-card--icon p {
    font-size: 11px;
  }
  /* Mood grid on /pg-self — match compact rhythm */
  #pg-self .self-mood-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  #pg-self .self-mood-grid .mood-card {
    padding: 14px 10px;
    min-height: 0;
  }
  #pg-self .self-mood-grid .mood-icon {
    width: 24px; height: 24px;
    margin-bottom: 4px;
  }

  /* ----- /pg-lime hero — trim density ------------------------ */
  #pg-lime .lm-hero {
    padding: 18px 16px 14px;
    min-height: 0;
  }
  #pg-lime .lm-hero-title {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  #pg-lime .lm-hero-sub {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 14px;
  }
  #pg-lime .lm-hero-cta {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  #pg-lime .lm-hero-cta .btn { width: 100%; }

  /* "Чому Lime" reasons — compact row list with icon + title + 2-line desc.
     Replaces the 1-col stack of huge cards on mobile. */
  #pg-lime .lm-section { padding: 22px 14px; }
  #pg-lime .lm-section-title { font-size: 18px; line-height: 1.25; margin-bottom: 14px; text-align: left; }
  #pg-lime .lm-reasons {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #pg-lime .lm-reason-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "ic   title"
      "ic   desc";
    column-gap: 14px;
    row-gap: 2px;
    padding: 14px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: left;
  }
  #pg-lime .lm-reason-ic {
    grid-area: ic;
    align-self: center;
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 12px;
    color: var(--accent);
    margin: 0;
  }
  #pg-lime .lm-reason-ic svg {
    width: 22px; height: 22px;
    fill: none; stroke: currentColor;
  }
  #pg-lime .lm-reason-card h3 {
    grid-area: title;
    align-self: end;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
  }
  #pg-lime .lm-reason-card p {
    grid-area: desc;
    align-self: start;
    font-size: 11.5px;
    line-height: 1.35;
    margin: 0;
    color: var(--text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ----- Compact mobile footer ------------------------------- */
  .site-footer {
    margin-top: 28px;
    padding: 24px 16px 24px;
  }
  .foot-inner.foot-inner--cols {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
  }
  .foot-col { gap: 8px; min-width: 0; width: 100%; }
  .foot-col--brand { gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
  .foot-logo { font-size: 17px; letter-spacing: 0.06em; }
  .foot-tagline { font-size: 11px; }

  .foot-col-title {
    font-size: 10px;
    margin-bottom: 2px;
    color: var(--text-soft);
    letter-spacing: 0.16em;
  }

  /* Rubrics: inline pill row, wraps gracefully */
  .foot-col--rubrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .foot-col--rubrics .foot-col-title { grid-column: 1 / -1; }
  .foot-col--rubrics > button,
  .foot-col--rubrics > a {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    font-size: 12px;
    color: var(--text);
    width: fit-content;
    margin-right: 4px;
  }
  .foot-col--rubrics {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .foot-col--rubrics .foot-col-title { flex-basis: 100%; margin-bottom: 4px; }

  /* Menu: 2-column grid of compact links */
  .foot-col--menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
  .foot-col--menu .foot-col-title { grid-column: 1 / -1; }
  .foot-col--menu > button,
  .foot-col--menu > a {
    font-size: 12.5px;
    padding: 0;
  }

  .foot-copy {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 11px;
  }
}
