:root {
  --green-950: #1a2a22;
  --green-900: #243830;
  --green-850: #2c463c;
  --green-800: #355649;
  --green-700: #456e5c;
  --green-600: #5a8a72;
  --green-500: #7aa890;
  --green-400: #9fc4b0;
  --green-300: #c5dccf;
  --green-200: #dceae3;
  --green-100: #ebf3ee;
  --green-50: #f5f9f6;
  --cream: #faf8f4;
  --cream-mid: #f3efe7;
  --cream-dark: #eae4d8;
  --paper: #fffefb;
  --ink: #1f2a24;
  --ink-soft: #5a655e;
  --ink-muted: #8a938c;
  --line: rgba(36, 61, 51, 0.10);
  --line-soft: rgba(36, 61, 51, 0.06);
  --white: #ffffff;
  --gold: #b08a5e;
  --gold-soft: #d4bc98;
  --gold-deep: #8a6b45;
  --warn-bg: #fff9ee;
  --warn-border: #f0dfb8;
  --warn-ink: #5c4a1e;
  --warn-strong: #463914;
  --danger: #9a4545;
  --danger-bg: #faf0f0;
  --danger-border: #e8c8c8;
  --shadow-xs: 0 1px 2px rgba(26, 42, 34, 0.04);
  --shadow-sm: 0 2px 10px rgba(26, 42, 34, 0.05), 0 1px 2px rgba(26, 42, 34, 0.03);
  --shadow: 0 10px 28px rgba(26, 42, 34, 0.07), 0 2px 8px rgba(26, 42, 34, 0.04);
  --shadow-lg: 0 18px 44px rgba(26, 42, 34, 0.10), 0 4px 14px rgba(26, 42, 34, 0.05);
  --radius: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --nav-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(176, 138, 94, 0.10), transparent 50%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(122, 168, 144, 0.14), transparent 55%),
    linear-gradient(180deg, #eef4f0 0%, var(--cream) 40%, var(--cream-mid) 100%);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--green-800); } a:hover { color: var(--gold-deep); }
img { max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
::selection { background: rgba(176, 138, 94, 0.22); color: var(--green-950); }

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(53, 86, 73, 0.07),
    var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(14px + var(--safe-t)) 20px 14px;
  background: rgba(255, 254, 251, 0.88);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(145deg, var(--green-700) 0%, var(--green-950) 100%);
  color: #f4faf6;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  display: grid; place-items: center;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 14px rgba(26, 42, 34, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(176, 138, 94, 0.25);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--green-900);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ——— Content ——— */
.content {
  flex: 1;
  padding: 12px 18px calc(var(--nav-h) + var(--safe-b) + 28px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen {
  animation: screenIn 0.38s var(--ease-out);
}
.screen[hidden] { display: none !important; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.screen-head { margin: 10px 0 20px; }
.screen-head h1,
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.85rem;
  margin: 0 0 8px;
  color: var(--green-950);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.screen-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(212, 188, 152, 0.28), transparent 48%),
    radial-gradient(ellipse 60% 55% at 0% 100%, rgba(26, 42, 34, 0.45), transparent 55%),
    linear-gradient(155deg, var(--green-950) 0%, var(--green-800) 52%, #4a7360 100%);
  color: #f4faf6;
  border-radius: 26px;
  padding: 28px 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.hero::after {
  content: "";
  position: absolute;
  right: -20px; top: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.hero h1 { color: #fff; font-size: 1.9rem; position: relative; }
.tagline {
  margin: 0 0 18px;
  color: rgba(244, 250, 246, 0.88);
  font-size: 1rem;
  line-height: 1.45;
  position: relative;
  max-width: 28ch;
}
.price-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
  position: relative;
}
.price-main { font-weight: 700; letter-spacing: -0.01em; }
.price-sep { opacity: 0.5; }
.price-note { opacity: 0.9; }

/* ——— Cards ——— */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.card.soft {
  background: linear-gradient(180deg, var(--green-50), var(--white) 70%);
  border-color: var(--green-200);
}
.card-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--green-900);
  letter-spacing: -0.02em;
}
.card-title.tight { margin-bottom: 10px; }
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.card-title-row .card-title { margin: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green-900);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.feature-list p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }
.feature-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  font-size: 13px;
  margin-top: 1px;
  box-shadow: inset 0 0 0 1px rgba(99, 168, 130, 0.15);
}

/* ——— Quick nav ——— */
.quick-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 0 18px;
}
.quick-btn {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.quick-btn::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  border-radius: 0 2px 2px 0;
}
.quick-btn:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-sm);
}
.quick-btn:hover::before { opacity: 1; }
.quick-btn:active { transform: scale(0.985); }
.qn-icon {
  display: block;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--green-50);
  color: var(--green-700);
  display: grid; place-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}
.qn-label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--green-900);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.qn-hint { font-size: 0.78rem; color: var(--ink-muted); }

.footnote {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* ——— Warm-up / week tabs ——— */
.warmup-card {
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.warmup-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--white);
  color: var(--green-700);
  display: grid; place-items: center;
  box-shadow: var(--shadow-xs);
  font-size: 15px;
}
.warmup-card h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--green-900);
  letter-spacing: -0.01em;
}
.warmup-card p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }

.week-tabs, .meal-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding: 4px;
  background: var(--cream-dark);
  border-radius: 999px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.week-tabs::-webkit-scrollbar,
.meal-tabs::-webkit-scrollbar { display: none; }
.week-tab, .meal-tab {
  flex: 1;
  min-width: max-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.week-tab:hover, .meal-tab:hover { color: var(--green-800); }
.week-tab.active, .meal-tab.active {
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 92, 71, 0.28);
}
.week-panel, .meal-panel {
  animation: panelIn 0.32s var(--ease-out);
}
.week-panel[hidden], .meal-panel[hidden] { display: none !important; }
.progress-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 14px;
  line-height: 1.4;
}

/* ——— Day cards / exercises ——— */
.day-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}
.day-card.optional {
  border-style: dashed;
  border-color: var(--green-300);
  background: linear-gradient(180deg, var(--green-50), var(--white));
}
.day-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  text-align: left;
  transition: background 0.15s;
}
.day-header:hover { background: var(--green-50); }
.day-header h3 {
  margin: 5px 0 0;
  font-size: 1.12rem;
  font-family: var(--display);
  font-weight: 600;
  color: var(--green-950);
  letter-spacing: -0.02em;
}
.day-header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.day-chevron {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  display: grid; place-items: center;
  transition: transform 0.28s var(--ease), background 0.15s;
  font-size: 11px;
  line-height: 1;
}
.day-header:hover .day-chevron { background: var(--green-100); }
.day-header[aria-expanded="true"] .day-chevron { transform: rotate(180deg); }
.day-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 4px 9px;
  border-radius: 7px;
}
.soft-badge { background: var(--cream-dark); color: var(--ink-muted); }
.day-progress {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.day-progress.is-done {
  background: var(--green-800);
  color: #fff;
}
.exercise-list {
  list-style: none;
  margin: 0;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line-soft);
  animation: panelIn 0.28s var(--ease-out);
}
.exercise-list.collapsed { display: none; }
.exercise-list li { border-bottom: 1px solid var(--line-soft); }
.exercise-list li:last-child { border-bottom: none; }
.exercise-list label,
.check-list label,
.habit-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 6px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}
.exercise-list label:hover,
.check-list label:hover,
.habit-list label:hover {
  background: var(--green-50);
}
.exercise-list span { flex: 1; font-size: 0.94rem; line-height: 1.4; }
.exercise-list em {
  font-style: normal;
  color: var(--ink-muted);
  font-size: 0.82rem;
  margin-left: 5px;
  font-weight: 500;
}
.new-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-800);
  background: #d5efe3;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 5px;
  vertical-align: middle;
}
.is-progress {
  background: rgba(232, 243, 237, 0.55);
  border-radius: var(--radius-xs);
  margin: 2px 0;
}

/* ——— Checkboxes ——— */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  flex-shrink: 0;
  border: 2px solid var(--green-400);
  border-radius: 7px;
  background: var(--white);
  display: grid; place-items: center;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.12s var(--ease);
  box-shadow: var(--shadow-xs);
}
input[type="checkbox"]:hover {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(99, 168, 130, 0.15);
}
input[type="checkbox"]:checked {
  background: linear-gradient(145deg, var(--green-600), var(--green-800));
  border-color: var(--green-800);
  box-shadow: 0 2px 6px rgba(47, 92, 71, 0.25);
}
input[type="checkbox"]:checked::after {
  content: "";
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

/* ——— Meals ——— */
.chip-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip-list li {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}
.chip-list li:hover {
  background: var(--green-100);
  border-color: var(--green-300);
}
.meal-day .day-badge { margin-bottom: 10px; }
.meal-block {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.meal-block:last-child { margin-bottom: 0; padding-bottom: 0; border: none; }
.meal-block h3 {
  margin: 0 0 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
}
.meal-block p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.45; }
.meal-block.tip {
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--green-200);
  margin-top: 4px;
}

.meal-kicker { color: var(--green-700); }
.pdf-link {
  display: inline-flex;
  align-items: center;
  margin: -6px 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}
.pdf-link:hover { background: var(--green-100); }
.plan-kcal {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--green-800);
}
.meal-block .dish {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-950);
  line-height: 1.3;
}
.portion-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portion-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.portion-list .qty {
  flex: 0 0 4.6rem;
  font-weight: 650;
  color: var(--green-900);
  font-variant-numeric: tabular-nums;
}
.meal-block.shake {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.meal-block.shake h3 { margin-bottom: 4px; }

.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li {
  padding: 9px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.4;
}
.simple-list li:last-child { border-bottom: none; }
.simple-list strong { color: var(--green-900); font-weight: 650; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { border-bottom: 1px solid var(--line-soft); }
.check-list li:last-child { border-bottom: none; }
.check-list span { flex: 1; font-size: 0.92rem; }

/* ——— Trackers ——— */
.date-label {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
  background: var(--green-50);
  padding: 5px 10px;
  border-radius: 999px;
}
.habit-list { list-style: none; margin: 0; padding: 0; }
.habit-list li { border-bottom: 1px solid var(--line-soft); }
.habit-list li:last-child { border-bottom: none; }
.habit-list span { flex: 1; font-size: 0.94rem; }
.habit-score {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.water-card { text-align: center; }
.water-count {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 4px 0 16px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.water-count small {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.water-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.water-glasses {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 168px;
  justify-content: center;
  min-height: 26px;
}
.water-glass {
  width: 15px; height: 20px;
  border-radius: 3px 3px 5px 5px;
  border: 1.5px solid var(--green-400);
  background: transparent;
  transition: background 0.2s var(--ease), border-color 0.2s;
}
.water-glass.filled {
  background: linear-gradient(180deg, #8ecdb2, var(--green-600));
  border-color: var(--green-700);
  box-shadow: 0 2px 4px rgba(47, 92, 71, 0.15);
}
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--green-800);
  display: grid; place-items: center;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-xs);
}
.icon-btn:hover { background: var(--green-100); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.primary {
  background: linear-gradient(145deg, var(--green-700), var(--green-850));
  border-color: var(--green-800);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 92, 71, 0.28);
}
.icon-btn.primary:hover { background: linear-gradient(145deg, var(--green-600), var(--green-800)); }

.streak-num {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--green-900);
  margin: 4px 0 16px;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.03em;
}
.streak-num small {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.streak-dots {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 16px;
}
.streak-dot {
  flex: 1;
  text-align: center;
  padding: 10px 2px;
  border-radius: 12px;
  background: var(--green-50);
  border: 1px solid var(--line);
  font-size: 0.68rem;
  color: var(--ink-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.streak-dot.on {
  background: linear-gradient(160deg, var(--green-700), var(--green-850));
  border-color: var(--green-800);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 3px 8px rgba(47, 92, 71, 0.22);
}
.streak-dot .dow { display: block; margin-bottom: 3px; opacity: 0.85; font-weight: 600; }
.streak-dot .mark { font-size: 0.95rem; }

/* ——— Buttons ——— */
.primary-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--green-700), var(--green-850));
  color: #fff;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow:
    0 6px 16px rgba(47, 92, 71, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.15s var(--ease), box-shadow 0.15s, filter 0.15s;
}
.primary-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(47, 92, 71, 0.32);
}
.primary-btn:active {
  transform: scale(0.985);
  filter: brightness(0.97);
}
.primary-btn:focus-visible {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}
.text-btn {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(122, 138, 130, 0.4);
  transition: color 0.15s;
}
.text-btn:hover { color: var(--green-800); }
.text-btn.compact {
  width: auto;
  margin: 0;
  padding: 5px 8px;
  text-decoration: none;
  color: var(--green-700);
  font-weight: 650;
  border-radius: 8px;
}
.text-btn.compact:hover { background: var(--green-50); }

/* ——— Packages ——— */
.pkg-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pkg-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow);
}
.pkg-card.featured {
  border-color: var(--green-300);
  background: linear-gradient(180deg, #f6fbf8 0%, var(--white) 45%);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(99, 168, 130, 0.08);
}
.pkg-card.restore {
  border-color: var(--green-600);
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 40%);
}
.pkg-ribbon {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--green-100);
  padding: 5px 10px;
  border-radius: 7px;
  margin-bottom: 12px;
}
.pkg-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.pkg-top h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-950);
  letter-spacing: -0.02em;
}
.pkg-price { margin: 0; color: var(--ink-soft); font-size: 0.95rem; white-space: nowrap; }
.pkg-price strong {
  color: var(--green-900);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pkg-desc {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.pkg-bullets {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}
.pkg-bullets li { margin-bottom: 6px; }
.pkg-bullets li::marker { color: var(--green-500); }
.responder-note p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}


/* ——— Peptides ——— */
.disclaimer {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.84rem;
  margin-bottom: 16px;
  line-height: 1.45;
  box-shadow: var(--shadow-xs);
}
.disclaimer strong { color: var(--warn-strong); font-weight: 700; }
.stack-form { display: grid; gap: 14px; }
.field {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--green-900);
  letter-spacing: -0.01em;
}
.field em { font-style: normal; font-weight: 500; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); opacity: 0.75; }
.field input:hover, .field textarea:hover, .field select:hover {
  border-color: var(--green-300);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(99, 168, 130, 0.2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint {
  margin: -2px 0 14px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.entry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.entry-item {
  background: linear-gradient(180deg, var(--green-50), var(--white));
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-xs);
}
.entry-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.entry-item h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--green-950);
  letter-spacing: -0.01em;
}
.entry-meta { margin: 5px 0 0; font-size: 0.8rem; color: var(--ink-muted); line-height: 1.35; }
.entry-notes { margin: 10px 0 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }
.entry-delete {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink-muted);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.entry-delete:hover {
  color: var(--danger);
  border-color: var(--danger-border);
  background: var(--danger-bg);
}

/* Empty states */
.empty-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 28px 16px;
  background: var(--green-50);
  border: 1px dashed var(--green-200);
  border-radius: var(--radius-md);
  line-height: 1.45;
}
.empty-hint::before {
  content: "✦";
  display: block;
  font-size: 1.1rem;
  color: var(--green-400);
  margin-bottom: 8px;
  opacity: 0.8;
}
.empty-hint[hidden] { display: none !important; }

.sched-done label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0 !important;
}
.sched-done label:hover { background: transparent !important; }
.ref-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 280px;
}
.ref-table th, .ref-table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.ref-table th {
  color: var(--green-800);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--green-50);
}
.ref-table tr:last-child td { border-bottom: none; }
.ref-table .col-actions { width: 44px; }
.ref-table .empty-row td {
  color: var(--ink-muted);
  text-align: center;
  padding: 28px 12px;
  background: var(--green-50);
}

/* ——— Bottom nav ——— */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 8px 6px var(--safe-b);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid rgba(226, 235, 229, 0.9);
  z-index: 30;
  box-shadow: 0 -8px 28px rgba(21, 41, 32, 0.06);
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px 6px;
  color: var(--ink-muted);
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: 14px;
  min-width: 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
}
.nav-btn svg {
  opacity: 0.65;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.nav-btn:hover { color: var(--green-700); }
.nav-btn:hover svg { opacity: 0.9; }
.nav-btn.active {
  color: var(--green-800);
  background: var(--green-50);
}
.nav-btn.active svg {
  opacity: 1;
  transform: translateY(-1px);
}
.nav-btn.active::before {
  content: "";
  position: absolute;
  top: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green-600);
}
.nav-btn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (min-width: 480px) {
  body { padding: 28px 0; }
  .app {
    min-height: calc(100dvh - 56px);
    border-radius: 28px;
    overflow: hidden;
  }
  .bottom-nav { border-radius: 0 0 28px 28px; }
}



/* ——— Home dashboard (2026 patterns) ——— */
.today-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.today-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.today-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.today-date {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-950);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.streak-chip {
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--green-50), var(--cream-mid));
  border: 1px solid var(--green-200);
}
.streak-chip-num {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1;
  letter-spacing: -0.03em;
}
.streak-chip-label {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.stat-pill {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  font-size: 0.8rem;
  color: var(--ink-soft);
  min-height: 44px;
}
.stat-pill strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-900);
  letter-spacing: -0.02em;
}
.home-cta { margin-bottom: 10px; }
.ghost-btn {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--green-800);
  font-weight: 650;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}
.ghost-btn:hover {
  background: var(--green-50);
  border-color: var(--green-300);
}
.section-label {
  margin: 4px 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.quick-btn.wide {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.quick-btn.wide .qn-icon { margin-bottom: 0; }
.quick-btn.wide .qn-label { margin-bottom: 0; }
.value-banner {
  margin: 8px 0 14px;
  padding: 18px 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(176, 138, 94, 0.12), transparent 55%),
    linear-gradient(180deg, var(--cream-mid), var(--white));
  border: 1px solid rgba(176, 138, 94, 0.28);
  text-align: center;
}
.value-banner-title {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.value-banner-price {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--green-950);
  letter-spacing: -0.02em;
}
.value-banner-price strong { font-weight: 600; }
.value-banner-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Primary CTA gold edge */
.primary-btn {
  background: linear-gradient(160deg, var(--green-700), var(--green-900)) !important;
  box-shadow:
    0 6px 18px rgba(53, 86, 73, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(176, 138, 94, 0.2) !important;
}
.pkg-card.featured {
  border-color: rgba(176, 138, 94, 0.35);
}
.pkg-ribbon {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold)) !important;
  color: #fff !important;
}

/* Bottom nav modernized */
.bottom-nav {
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 6px 4px calc(6px + var(--safe-b));
  background: rgba(255, 254, 251, 0.94) !important;
  border-top: 1px solid var(--line) !important;
  box-shadow: 0 -10px 32px rgba(26, 42, 34, 0.06) !important;
}
.nav-btn {
  min-height: 56px;
  padding: 6px 2px 8px !important;
  font-size: 0.58rem !important;
  border-radius: 16px !important;
  gap: 4px !important;
}
.nav-btn.active {
  color: var(--green-900) !important;
  background: linear-gradient(180deg, var(--green-50), rgba(176, 138, 94, 0.10)) !important;
}
.nav-btn.active::before {
  background: var(--gold) !important;
  width: 16px !important;
  height: 3px !important;
  border-radius: 999px !important;
  top: 4px !important;
}
.nav-btn svg { width: 22px; height: 22px; }

.empty-hint {
  background: linear-gradient(180deg, var(--green-50), var(--cream)) !important;
  border-color: var(--green-200) !important;
}
.empty-hint::before {
  color: var(--gold) !important;
  content: "◇" !important;
}

/* Hide any legacy LFO crumb if present */
.family-crumb { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .screen, .week-panel, .meal-panel, .exercise-list { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
