:root {
  --bg: #f4f2ec;
  --card: #ffffff;
  --ink: #14161a;
  --muted: #8a8f98;
  --border: #e9e6dd;
  --mint: #86e3c4;
  --mint-strong: #5fd3a8;
  --black-panel: #14161a;
  --danger: #e05a4e;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(20, 22, 26, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  height: 100%;
}

#app {
  max-width: none;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}
.screen {
  display: none;
  flex: 1;
  padding: 20px 18px 100px;
  overflow-y: auto;
}
.screen.active { display: block; }
.intro-screen {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  overscroll-behavior: none;
  touch-action: none;
  background: #080e10;
}
.intro-image-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.intro-image-fallback { overflow: hidden; background: #080e10; }
.intro-image-fallback img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.3) saturate(.58) blur(4px);
  transform-origin: center;
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1);
}
.intro-logo { transition: opacity .35s ease; }
.intro-screen--leaving { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.intro-atmosphere {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 43%, transparent 27%, rgba(4, 9, 10, .16) 66%, rgba(3, 6, 8, .68) 120%),
    linear-gradient(180deg, rgba(4, 8, 9, .28), transparent 25%, transparent 67%, rgba(4, 7, 8, .6));
  transition: opacity .9s ease;
}
.intro-atmosphere::before,
.intro-atmosphere::after {
  content: "";
  position: absolute;
  inset: -16%;
}
.intro-atmosphere::before {
  background: radial-gradient(ellipse at 31% 58%, rgba(50, 215, 163, .14), transparent 42%),
    radial-gradient(ellipse at 77% 35%, rgba(109, 190, 163, .1), transparent 36%);
  animation: intro-ambient-drift 16s ease-in-out infinite alternate;
}
.intro-atmosphere::after {
  background: linear-gradient(112deg, transparent 28%, rgba(220, 255, 241, .045) 48%, transparent 63%);
  transform: translateX(-42%);
  animation: intro-light-sweep 13s ease-in-out infinite;
}
.intro-logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: clamp(176px, 22vw, 246px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .4), 0 0 60px rgba(38, 211, 160, .16);
  filter: drop-shadow(0 0 18px rgba(49, 223, 167, .18));
  animation: intro-logo-float 7s cubic-bezier(.42, 0, .58, 1) infinite;
  pointer-events: none;
}
@keyframes intro-logo-float {
  0%, 100% { transform: rotateX(1deg) rotateY(-2deg) rotateZ(-.4deg) translateY(0); }
  50% { transform: rotateX(-1deg) rotateY(2deg) rotateZ(.4deg) translateY(-5px); }
}
@keyframes intro-ambient-drift {
  from { transform: translate3d(-2%, 1%, 0) scale(1); opacity: .72; }
  to { transform: translate3d(2%, -1%, 0) scale(1.06); opacity: 1; }
}
@keyframes intro-light-sweep {
  0%, 18% { transform: translateX(-46%); opacity: 0; }
  35% { opacity: .85; }
  70%, 100% { transform: translateX(46%); opacity: 0; }
}
@media (max-width: 680px) {
  .intro-logo { width: clamp(156px, 42vw, 198px); top: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-logo,
  .intro-atmosphere::before,
  .intro-atmosphere::after { animation: none; }
}
[hidden] { display: none !important; }
#main-app { width: 100%; max-width: 430px; margin: 0 auto; }
#screen-auth, #screen-verify-email, #screen-login-otp, #screen-forgot-password, #screen-reset-password { padding: 0; }

/* ---------- Header ---------- */
.header { margin-bottom: 18px; }
.header h1 { font-size: 26px; margin: 0 0 4px; font-weight: 800; letter-spacing: -0.02em; }
.header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.grow-impact-card { margin-top: 12px; overflow: hidden; background: linear-gradient(145deg, #fff 12%, #f2fbf6 100%); }
.grow-impact-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.grow-impact-heading h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.04em; }
.grow-impact-heading h2 span { color: #617068; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.grow-impact-month { border-radius: 999px; padding: 6px 9px; color: #256b4c; background: #e0f5e8; font-size: 11px; font-weight: 700; }
.grow-impact-progress,.grow-impact-stage-track { height: 9px; border-radius: 999px; overflow: hidden; background: #e6eee9; }
.grow-impact-progress { margin: 15px 0 8px; }
.grow-impact-progress span,.grow-impact-stage-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #11966c, #74c93b); transition: width .45s ease; }
.grow-impact-encouragement { margin: 0 0 4px; color: #174d3b; font-weight: 700; font-size: 14px; }
.grow-impact-rest-note,.grow-impact-virtual-label,.grow-impact-partner-note { margin: 4px 0 0; color: #69766e; font-size: 11px; line-height: 1.5; }
.grow-impact-feedback { margin: 6px 0 0; color: #a13c32; font-size: 12px; }
.grow-impact-feedback:empty { display: none; }
.grow-impact-unlocked { margin: 16px 0 9px; color: #18583e; font-size: 13px; font-weight: 700; }
.grow-impact-options { display: grid; gap: 8px; margin-top: 12px; }
.grow-impact-option { display: flex; align-items: center; width: 100%; min-height: 68px; gap: 11px; padding: 8px; text-align: left; color: var(--ink); border: 1px solid #e5ece7; border-radius: 15px; background: rgba(255,255,255,.8); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.grow-impact-option:hover,.grow-impact-option.is-selected { border-color: #55b783; background: #f1fbf4; }
.grow-impact-option:hover { transform: translateY(-1px); }
.grow-impact-option img,.grow-impact-choice-preview img,.grow-impact-tree-card img { width: 52px; height: 52px; flex: 0 0 52px; object-fit: cover; border-radius: 12px; background: #eaf4ea; }
.grow-impact-option strong,.grow-impact-option small,.grow-impact-tree-copy strong,.grow-impact-tree-copy span,.grow-impact-tree-copy small,.grow-impact-choice-preview strong,.grow-impact-choice-preview span,.grow-impact-choice-preview small { display: block; }
.grow-impact-option strong,.grow-impact-tree-copy strong,.grow-impact-choice-preview strong { font-size: 13px; }
.grow-impact-option small,.grow-impact-tree-copy span,.grow-impact-choice-preview span { margin-top: 3px; color: #68756d; font-size: 11px; }
.grow-impact-option-check { display: grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: 50%; color: #347854; background: #e6f4e9; font-size: 15px; }
.grow-impact-choice-preview,.grow-impact-tree-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; border-radius: 15px; background: #f4faf5; }
.grow-impact-choice-preview img,.grow-impact-tree-card img { width: 68px; height: 68px; flex-basis: 68px; }
.grow-impact-choice-preview small,.grow-impact-tree-copy small { margin-top: 5px; color: #58655d; font-size: 11px; line-height: 1.4; }
.grow-impact-confirm { width: 100%; margin-top: 12px; }
.grow-impact-stage { margin-top: 14px; }
.grow-impact-stage-line { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #286244; font-size: 11px; font-weight: 700; }
.grow-impact-stage-line span:last-child { color: #758078; font-weight: 500; }
.grow-impact-stage-track { height: 6px; }
.grow-impact-photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.grow-impact-photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.grow-impact-month-label input { width: 142px; min-height: 34px; padding: 5px 8px; border: 1px solid #dce9df; border-radius: 10px; color: #256b4c; background: #f7fcf8; font: inherit; font-size: 12px; font-weight: 700; }
.grow-impact-calendar-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.grow-impact-calendar-stats span { padding: 8px; border: 1px solid #e8f0ea; border-radius: 11px; color: #68756d; background: rgba(255,255,255,.72); font-size: 10px; }
.grow-impact-calendar-stats strong { display: block; margin-bottom: 2px; color: #174d3b; font-size: 15px; }
.grow-impact-location-line { margin: 6px 0 0; color: #69766e; font-size: 11px; }
.grow-impact-calendar-warning { margin: 8px 0; padding: 9px 11px; border-radius: 10px; color: #76551a; background: #fff7df; font-size: 11px; line-height: 1.45; }
.grow-impact-growth { display: flex; align-items: center; gap: 12px; margin: 13px 0; padding: 8px; border: 1px solid #e5eee7; border-radius: 16px; background: rgba(255,255,255,.68); }
.grow-impact-plant-art { display: block; width: min(48%, 190px); min-width: 125px; height: 134px; flex: 0 0 auto; overflow: visible; }
.impact-roots path { animation: impact-root-in .35s ease both; }
.impact-stem { stroke-width: 7; animation: impact-sprout-in .45s cubic-bezier(.2,.8,.2,1) both; }
.impact-branch { stroke-width: 3; }
.impact-leaf { transform-box: fill-box; transform-origin: center; animation: impact-leaf-in .45s cubic-bezier(.2,.8,.2,1) both; }
.impact-seed { fill: #b8dc67; stroke: #5c8e45; stroke-width: 1.5; }
.impact-canopy-glow { animation: impact-canopy-glow 2.8s ease-in-out infinite alternate; }
.grow-impact-growth.is-complete .grow-impact-plant-art { animation: impact-mature-tree .8s cubic-bezier(.2,.8,.2,1) both; }
.grow-impact-growth-copy { display: grid; gap: 5px; color: #22583d; font-size: 12px; }
.grow-impact-growth-copy span { color: #718078; font-size: 11px; }
.grow-impact-celebration { display: grid; gap: 4px; margin: 10px 0; padding: 12px; border: 1px solid #c7e9cf; border-radius: 14px; color: #175638; background: linear-gradient(115deg, #edfaef, #fbfff1); font-size: 12px; animation: impact-celebrate-in .6s ease both; }
.grow-impact-celebration span { color: #586a5e; line-height: 1.45; }
.grow-impact-calendar-settings { margin-top: 13px; border-top: 1px solid #e7efe9; padding-top: 9px; color: #506057; font-size: 12px; }
.grow-impact-calendar-settings summary { color: #286244; font-weight: 700; cursor: pointer; }
.grow-impact-calendar-settings > p { color: #738078; font-size: 11px; line-height: 1.45; }
.grow-impact-setting-label { display: grid; gap: 5px; margin-top: 9px; color: #52645a; font-weight: 600; }
.grow-impact-setting-label select,.grow-impact-setting-label input { min-height: 36px; padding: 7px 9px; border: 1px solid #dce8de; border-radius: 10px; color: #19251e; background: #fff; font: inherit; }
.grow-impact-holiday-list { display: grid; gap: 5px; max-height: 180px; overflow-y: auto; margin-top: 8px; }
.grow-impact-holiday { display: flex; align-items: flex-start; gap: 8px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.65); line-height: 1.35; }
.grow-impact-holiday input { flex: 0 0 auto; margin-top: 2px; accent-color: #228a5d; }
.grow-impact-closure-list { display: grid; gap: 5px; margin: 8px 0; padding: 0; list-style: none; }
.grow-impact-closure-list li { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: #f4f8f4; }
.grow-impact-closure-list button { border: 0; color: #8b4038; background: transparent; cursor: pointer; }
.grow-impact-add-closure,.grow-impact-save-settings { width: 100%; margin-top: 8px; }
@keyframes impact-root-in { from { opacity: 0; stroke-dasharray: 0 50; } to { opacity: 1; stroke-dasharray: 50 0; } }
@keyframes impact-sprout-in { from { transform: scaleY(.15); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
@keyframes impact-leaf-in { from { opacity: .2; scale: .45; } to { opacity: 1; scale: 1; } }
@keyframes impact-canopy-glow { from { opacity: .08; } to { opacity: .3; } }
@keyframes impact-mature-tree { 45% { transform: scale(1.055); } to { transform: scale(1); } }
@keyframes impact-celebrate-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .grow-impact-plant-art,.impact-roots path,.impact-stem,.impact-leaf,.impact-canopy-glow,.grow-impact-celebration { animation: none !important; } }
@media (max-width: 520px) { .grow-impact-heading h2 { font-size: 22px; } .grow-impact-heading h2 span { font-size: 12px; } }
.card-value { font-size: 24px; font-weight: 800; }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- Segmented control ---------- */
.segment {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.segment button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.segment button.active {
  background: var(--mint);
  border-color: var(--mint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}
.btn-primary { background: var(--black-panel); color: #fff; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-danger { background: #fde7e4; color: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { width: auto; flex: 1; }

/* ---------- Camera panel (Vision screen) ---------- */
.camera-panel {
  position: relative;
  background: var(--black-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.camera-panel video, .camera-panel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* contain, not cover: the pose model sees the whole frame, so the user must
     see the whole frame too (cover cropped the sides of landscape webcams). */
  object-fit: contain;
}
.camera-panel canvas { pointer-events: none; }
.camera-placeholder-text {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  padding: 0 30px;
  z-index: 2;
}
.camera-feedback {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(20, 22, 26, 0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  z-index: 2;
}

/* ---------- Form comparison (Vision screen) ---------- */
#form-comparison-card { margin-top: 14px; }
#form-comparison-status { color: var(--muted); font-size: 13px; line-height: 1.5; }
#form-comparison-status:empty { display: none; }
#form-comparison-results { margin-top: 10px; }
.comparison-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.comparison-score-value { font-size: 30px; font-weight: 800; color: var(--ink); }
.comparison-score-label { color: var(--muted); font-size: 12px; }
.comparison-caveat {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.comparison-summary { margin: 0 0 10px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.comparison-block { margin-top: 12px; }
.comparison-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comparison-list li {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 13px;
  line-height: 1.5;
}
.comparison-difference { display: flex; flex-direction: column; gap: 2px; }
.comparison-difference span { color: var(--muted); font-size: 12px; }
#form-comparison-retry-btn { margin-top: 12px; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 4px 14px;
  max-width: 430px;
  margin: 0 auto;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}
.nav-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.nav-item.active { color: var(--ink); }
.nav-item.active .nav-icon { background: var(--mint); }

/* ---------- Lists ---------- */
.exercise-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.exercise-row:last-child { border-bottom: none; }
.exercise-name { font-weight: 700; font-size: 14px; }
.exercise-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mint);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}
.pill-muted { background: var(--bg); border: 1px solid var(--border); color: var(--muted); }

.meal-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.meal-row:last-child { border-bottom: none; }
.meal-slot { text-transform: uppercase; font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: 0.04em; }
.meal-name { font-weight: 800; font-size: 15px; margin: 3px 0; }
.meal-macros { color: var(--muted); font-size: 12px; }

.restaurant-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.restaurant-row:last-child { border-bottom: none; }
.restaurant-name { font-weight: 700; font-size: 14px; }
.restaurant-meta { color: var(--muted); font-size: 12px; }

/* ---------- Auth screen ---------- */
.auth-wrap { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 480px; min-height: 100svh; margin: 0 auto; padding: 36px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  color: var(--ink);
}
@media (max-width: 520px) { .auth-wrap { padding: 24px; } }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chip.active { background: var(--mint); border-color: var(--mint); }
.chip.active::before { content: "✓"; display: inline-block; margin-right: 6px; font-weight: 900; }
.equipment-picker-card { margin-top: 12px; }
.equipment-picker-options { margin: 14px 0 10px; }
.equipment-picker-options .chip { min-height: 38px; }
.equipment-selection-summary { margin-bottom: 10px; }
.equipment-picker-card > .btn { width: 100%; }

.link-btn { background: none; border: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 8px; }

.banner {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.banner-error { background: #fde7e4; color: var(--danger); }
.banner-info { background: #eef6fe; color: #2874c9; }
.banner-success { background: #e8f9f1; color: #1f9d6d; }

.empty-state { text-align: center; padding: 30px 10px; color: var(--muted); font-size: 13px; }

.meal-plan-loader { padding: 20px 0 8px; text-align: center; animation: fade-up .35s ease both; }
.floating-food { color: var(--muted); letter-spacing: 8px; font-size: 20px; animation: float-food 3s ease-in-out infinite; }
.loader-orbit { width: 70px; height: 70px; margin: 18px auto; display: grid; place-items: center; border: 5px solid var(--border); border-top-color: var(--mint-strong); border-radius: 50%; font-size: 28px; animation: spin 1.2s linear infinite; }
.loader-progress-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.loader-progress { height: 9px; border-radius: 9px; background: var(--border); overflow: hidden; }
.loader-progress span { display: block; width: 10%; height: 100%; border-radius: inherit; background: var(--mint-strong); transition: width .7s ease; }
.loader-stage, .meal-fact { display: flex; flex-direction: column; gap: 5px; margin: 18px 0; padding: 14px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--border); text-align: left; }
.loader-stage span, .meal-fact span { color: var(--muted); font-size: 12px; }
.meal-fact { background: #fff9e7; border-color: #f0dfaa; }
.meal-skeletons { display: grid; gap: 10px; text-align: left; }
.meal-skeleton { padding: 14px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--border); }
.meal-skeleton i { display: block; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; margin-bottom: 10px; }
.meal-skeleton b { display: block; height: 12px; width: 75%; margin: 7px 0; border-radius: 6px; background: linear-gradient(90deg, #eeeae1 25%, #faf8f2 50%, #eeeae1 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.meal-skeleton b:nth-child(3) { width: 45%; }
.meal-skeleton small { color: var(--muted); font-size: 11px; }
.meal-plan-success { font-weight: 800; margin-bottom: 10px; animation: fade-up .45s ease both; }
.meal-plan-error { display: flex; flex-direction: column; gap: 10px; padding: 20px 8px; text-align: center; color: var(--muted); animation: fade-up .35s ease both; }
.meal-plan-error strong { color: var(--ink); }
.food-finder-empty { text-align: center; padding: 42px 12px; animation: fade-up .35s ease both; }
.food-finder-empty h2, .food-results-head h2 { margin: 10px 0 6px; font-size: 21px; }
.food-finder-empty p, .food-results-head p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.food-orbit { width: 78px; height: 78px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font-size: 38px; animation: float-food 3s ease-in-out infinite; }
.food-results-head { margin-bottom: 14px; }
.food-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.food-filters::-webkit-scrollbar { display: none; }
.food-filters .filter { flex: 0 0 auto; border: 1px solid var(--border); cursor: pointer; }
.food-filters .filter.active { background: var(--mint-strong); border-color: var(--mint-strong); }
.healthy-dish-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); animation: fade-up .42s ease both; }
.healthy-dish-card:nth-child(2) { animation-delay: .08s; } .healthy-dish-card:nth-child(3) { animation-delay: .16s; }
.healthy-dish-card h3 { margin: 7px 0 4px; font-size: 18px; }
.healthy-dish-card > strong { font-size: 13px; color: var(--muted); }
.dish-rank { color: var(--mint-strong); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.dish-score { margin: 12px 0 8px; font-weight: 800; }
.dish-nutrition { font-size: 13px; font-weight: 700; line-height: 1.7; }
.dish-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.dish-reasons span { padding: 5px 8px; border-radius: 999px; background: #e8f9f1; color: #1f9d6d; font-size: 11px; font-weight: 700; }
.healthy-dish-card p { color: var(--muted); font-size: 11px; margin: 10px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes float-food { 50% { transform: translateY(-7px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- Cycle progress tracker ---------- */
.cycle-progress { margin: 10px 0 14px; padding: 14px; border-radius: var(--radius-md); background: #fafaf5; border: 1px solid var(--border); }
.cycle-track { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 0; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cycle-unit { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; position: relative; min-width: 72px; padding: 0 4px; }
.cycle-marker { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--card); color: var(--muted); border: 2px solid var(--border); z-index: 2; transition: all .2s ease; }
.cycle-unit.cycle-done .cycle-marker { background: var(--mint-strong); border-color: var(--mint-strong); color: #fff; }
.cycle-unit.cycle-next .cycle-marker { background: #fff; border-color: #2874c9; color: #2874c9; box-shadow: 0 0 0 4px rgba(40,116,201,.12); }
.cycle-label { margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; }
.cycle-unit.cycle-done .cycle-label { color: #1f9d6d; }
.cycle-unit.cycle-next .cycle-label { color: #2874c9; }
.cycle-connector { position: absolute; top: 13px; left: calc(50% + 16px); width: calc(100% - 24px); height: 2px; background: var(--border); z-index: 1; }
.cycle-unit.cycle-done + .cycle-unit .cycle-connector,
.cycle-unit:has(+ .cycle-unit.cycle-done) .cycle-connector { background: var(--mint-strong); }

.pill-success { background: #e8f9f1; color: #1f9d6d; border: 1px solid #c9ecd9; }
.pill-muted { background: #f2efe6; color: var(--muted); border: 1px solid var(--border); }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.15); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Circular Progress Indicator ---------- */
.circular-progress { position: relative; width: 100px; height: 100px; margin: 0 auto 16px; }
.circular-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.circular-progress-bg { fill: none; stroke: #e8e8e8; stroke-width: 8; }
.circular-progress-fill { fill: none; stroke: var(--mint-strong); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 0.5s ease; }
.circular-progress-current { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; }
.circular-progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.circular-progress-done { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.circular-progress-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.circular-progress-legend { display: flex; justify-content: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.circular-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.circular-legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.circular-legend-dot.done { background: var(--mint-strong); }
.circular-legend-dot.current { background: var(--accent); }
.circular-legend-dot.remaining { background: var(--border); }

/* ---------- Guided workout session ---------- */
.workout-plan-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0 2px 10px; color: var(--muted); font-size: 12px; }
.workout-plan-line > span:first-child, .workout-eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.workout-plan-line strong { color: var(--ink); }
.workout-session-card { padding: 19px; margin-bottom: 12px; border-radius: var(--radius-lg); background: var(--black-panel); color: #fff; box-shadow: var(--shadow); }
.workout-session-top, .workout-next-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workout-session-top > span:last-child { color: #c9d0d6; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.workout-session-card .workout-eyebrow { color: #a6b0b8; }
.workout-session-card h2 { margin: 14px 0 6px; font-size: 23px; letter-spacing: -.02em; }
.workout-session-meta { color: #c9d0d6; font-size: 12px; }
.workout-session-meta span { padding: 0 4px; color: #68727a; }
.workout-progress-track { height: 6px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: #373a3f; }
.workout-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--mint-strong); transition: width .25s ease; }
.workout-next-card { padding: 18px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.workout-next-top > span:last-child, .workout-list-heading > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.workout-next-card > h2 { margin: 12px 0 8px; font-size: 21px; line-height: 1.2; }
.workout-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.workout-tags span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; background: #faf9f5; color: #5d6570; font-size: 11px; font-weight: 700; }
.workout-target { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; padding: 12px; border-radius: var(--radius-sm); background: #f4f2ec; font-size: 12px; }
.workout-target strong { color: var(--ink); font-size: 14px; }
.workout-target span { color: #606975; }
.workout-instructions { margin: 14px 0 0; color: #68707a; font-size: 13px; line-height: 1.5; }
.workout-set-log { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border); }
.workout-set-log .workout-eyebrow { color: #399c7b; }
.workout-set-log p { margin: 5px 0 12px; color: var(--muted); font-size: 12px; }
.workout-set-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.workout-set-inputs label { color: #68707a; font-size: 11px; font-weight: 700; }
.workout-set-inputs input { display: block; width: 100%; margin-top: 5px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; }
.workout-set-log .btn { min-height: 46px; }
.workout-exercise-list { margin-bottom: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.workout-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; }
.workout-list-heading h3 { margin: 4px 0 0; font-size: 17px; }
.workout-exercise-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.workout-exercise-number { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: 12px; font-weight: 800; }
.workout-drag-handle { display: grid; width: 28px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; }
.workout-drag-handle:active { cursor: grabbing; color: var(--ink); }
.workout-drag-handle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.workout-exercise-row.is-dragging { opacity: .45; }
.workout-exercise-row.is-drop-target { background: color-mix(in srgb, var(--mint) 42%, transparent); }
.workout-exercise-row.active .workout-exercise-number, .workout-exercise-row.done .workout-exercise-number { border-color: var(--mint-strong); background: var(--mint); color: var(--ink); }
.workout-exercise-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.workout-exercise-copy strong { overflow-wrap: anywhere; font-size: 13px; }
.workout-exercise-copy span { color: var(--muted); font-size: 11px; }
.workout-exercise-state { white-space: nowrap; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.workout-exercise-row.active .workout-exercise-state { color: #238964; }
.workout-exercise-row.done .workout-exercise-state { color: #238964; }
.workout-swap-btn { grid-column: 2 / 4; justify-self: start; width: auto; padding: 7px 11px; font-size: 11px; }
.workout-exercise-actions { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; }
.workout-exercise-actions .btn { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.workout-exercise-actions .btn:disabled { opacity: .45; }
.workout-exercise-support { grid-column: 2 / 4; display: grid; justify-items: start; gap: 9px; width: min(100%, 520px); padding: 4px 0 2px; }
.exercise-demonstration { grid-column: 2 / 4; display: grid; justify-items: start; gap: 7px; width: min(100%, 380px); padding: 2px 0; }
.exercise-demonstration-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.exercise-demo-unavailable-note { margin: 0; color: var(--muted); font-size: 11px; }
.exercise-demo { width: 100%; min-width: 0; }
.exercise-demo-preview { position: relative; display: block; width: min(100%, 380px); aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 1px solid var(--border); border-radius: 11px; background: #19231f; cursor: pointer; }
.exercise-demo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.exercise-demo-thumbnail-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #d9e7de; font-size: 12px; }
.exercise-demo-play { position: absolute; top: 50%; left: 50%; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(17,25,21,.82); color: #fff; font-size: 19px; transform: translate(-50%, -50%); }
.exercise-demo-preview:focus-visible, .exercise-chat-toggle:focus-visible { outline: 3px solid var(--mint-strong); outline-offset: 3px; }
.exercise-demo-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.exercise-captions { color: #238964; font-weight: 700; }
.exercise-demo-fallback { display: grid; gap: 6px; width: min(100%, 380px); padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.exercise-demo-fallback strong { color: var(--ink); font-size: 12px; }
.exercise-demo-fallback p { margin: 0; color: #56645b; font-size: 12px; line-height: 1.5; }
.exercise-demo-fallback-hint { color: var(--muted); font-size: 10px; line-height: 1.4; }
.exercise-demo-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; background: #101613; }
.exercise-demo-player[data-loading="true"]::before { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: #fff; content: "Loading demonstration…"; font-size: 12px; }
.exercise-demo-player[hidden] { display: none; }
.exercise-demo-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.exercise-demo-player .exercise-demo-unavailable { width: 100%; height: 100%; align-content: center; border: 0; border-radius: 0; background: #101613; }
.exercise-demo-player .exercise-demo-unavailable strong { color: #fff; }
.exercise-demo-player .exercise-demo-unavailable p { color: #d6e2da; }
.exercise-chat-form { display: grid; gap: 8px; width: min(100%, 520px); padding: 11px; border: 1px solid var(--border); border-radius: 11px; background: #f8fbf9; }
.exercise-chat-form[hidden] { display: none; }
.exercise-chat-form label { display: grid; gap: 5px; color: #68707a; font-size: 11px; font-weight: 700; }
.exercise-chat-form textarea { width: 100%; min-height: 60px; resize: vertical; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.exercise-chat-form .btn { justify-self: start; min-height: 36px; padding: 7px 12px; font-size: 11px; }
.exercise-chat-answer { white-space: pre-wrap; color: #424b54; font-size: 12px; line-height: 1.55; }
.exercise-chat-answer[hidden] { display: none; }
.workout-edit-form { grid-column: 2 / 4; display: grid; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #f8fbf9; }
.workout-edit-form[hidden] { display: none; }
.workout-edit-form label { display: grid; gap: 5px; color: #68707a; font-size: 11px; font-weight: 700; }
.workout-edit-form input, .workout-edit-form select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; }
.workout-edit-form small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.workout-edit-suggestions { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; }
.workout-edit-suggestions[hidden] { display: none; }
.workout-edit-suggestions select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); }
.workout-finish-note { margin: 12px 4px 8px; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.workout-complete-card { padding: 25px 18px; margin-bottom: 14px; border: 1px solid #c9ecd9; border-radius: var(--radius-lg); background: #e8f9f1; text-align: center; }
.workout-complete-mark { display: grid; width: 48px; height: 48px; margin: 0 auto 11px; place-items: center; border-radius: 50%; background: var(--mint-strong); font-size: 24px; font-weight: 900; }
.workout-complete-card h2 { margin: 0 0 6px; font-size: 21px; }
.workout-complete-card p { margin: 0; color: #5b7168; font-size: 12px; }
.workout-next-hint { margin-top: 14px; padding-top: 12px; border-top: 1px solid #c9ecd9; color: #5b7168; font-size: 12px; }

/* ---------- Public FitOS landing page ---------- */
:root { --landing-ink: #edf6f1; --landing-muted: #9daea6; --landing-bg: #101613; --landing-panel: #17201b; --landing-mint: #83e3b4; --landing-line: rgba(221, 241, 230, .12); }
.private-route #screen-landing { display: none !important; }
.landing-page { padding: 0; overflow: visible; background: var(--landing-bg); color: var(--landing-ink); }
.landing-page a { color: inherit; text-decoration: none; }
.landing-page a:focus-visible, .landing-page button:focus-visible, .faq-list summary:focus-visible { outline: 3px solid #83e3b4; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px 16px; border-radius: 8px; background: #e7f1eb; color: #17221b !important; font-size: 14px; font-weight: 800; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 8; display: flex; align-items: center; justify-content: space-between; width: min(100% - 72px, 1320px); height: 86px; margin: 0 auto; border-bottom: 1px solid var(--landing-line); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: #f5fbf7; font-size: 20px; font-weight: 850; letter-spacing: -.045em; }
.site-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.site-navigation { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 32px); }
.site-navigation > a:not(.button) { color: #b7c4bd; font-size: 12px; font-weight: 650; transition: color .18s ease; }
.site-navigation > a:not(.button):hover, .site-footer nav a:hover { color: var(--landing-mint); }
.site-navigation .site-login { margin-left: 5px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: -.01em; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 18px; line-height: 1; }
.button-mint { background: var(--landing-mint); color: #122019 !important; box-shadow: 0 9px 28px rgba(131, 227, 180, .14); }
.button-mint:hover { background: #a2efc9; box-shadow: 0 12px 34px rgba(131, 227, 180, .22); }
.button-dark { background: #e7f1eb; color: #17221b !important; }
.button-dark:hover { background: #fff; }
.button-glass { border-color: rgba(232, 247, 238, .19); background: rgba(255,255,255,.035); color: #e6f0e9 !important; }
.button-glass:hover { border-color: rgba(232, 247, 238, .38); background: rgba(255,255,255,.08); }
.button-nav { min-height: 42px; padding: 0 15px; font-size: 11px; border-radius: 8px; }
.site-menu-toggle { display: none; }
.landing-hero { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 5.5%; width: min(100% - 72px, 1320px); min-height: min(720px, calc(100svh - 86px)); margin: 0 auto; padding: 82px 0 96px; isolation: isolate; }
.hero-glow { position: absolute; z-index: -1; top: 4%; left: 25%; width: 55vw; height: 70%; pointer-events: none; background: radial-gradient(ellipse, rgba(42, 122, 77, .18), transparent 68%); filter: blur(12px); }
.hero-copy { position: relative; z-index: 2; max-width: 590px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #539875; font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-dot, .scene-caption-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--landing-mint); box-shadow: 0 0 13px rgba(131, 227, 180, .8); }
.landing-hero h1 { margin: 0; color: #f3f7f2; font-size: clamp(46px, 5vw, 64px); font-weight: 760; letter-spacing: -.072em; line-height: .98; }
.landing-hero h1 span { color: #a3e6bd; }
.hero-slogan { max-width: 470px; margin: 17px 0 0; color: #b9d3c2; font-size: clamp(15px, 1.6vw, 19px); font-weight: 720; letter-spacing: -.025em; line-height: 1.35; }
.hero-slogan span { color: var(--landing-mint); }
.hero-intro { max-width: 470px; margin: 27px 0 0; color: #abbab1; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 35px; color: #788c80; font-size: 11px; line-height: 1.5; }
.hero-note-mark { color: var(--landing-mint); font-size: 19px; }
.hero-visual { position: relative; min-width: 0; height: clamp(440px, 46vw, 585px); }
.hero-scene { position: absolute; inset: 0 6% 5% 8%; overflow: hidden; border: 1px solid rgba(229, 244, 234, .17); border-radius: 24px; background: #17221c; box-shadow: 0 35px 90px rgba(0,0,0,.34); transform: rotate(1deg); }
.hero-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,13,10,.02) 35%, rgba(8,13,10,.73) 100%), linear-gradient(90deg, rgba(7,12,9,.16), transparent 70%); }
.scene-caption { position: absolute; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 9px; color: #eff8f1; font-size: 11px; font-weight: 700; }
.scene-caption-dot { width: 6px; height: 6px; }
.preview-card { position: absolute; z-index: 2; right: 0; bottom: 5%; width: min(310px, 73%); padding: 19px 18px 15px; border: 1px solid rgba(231, 245, 235, .16); border-radius: 15px; background: rgba(17, 25, 21, .93); box-shadow: 0 24px 65px rgba(0,0,0,.42); backdrop-filter: blur(18px); animation: landing-lift 7s ease-in-out infinite; }
.preview-card-head { display: flex; align-items: center; gap: 8px; }
.preview-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: #244c38; color: var(--landing-mint); font-size: 14px; }
.preview-overline, .preview-live, .preview-equipment > span { color: #93a69a; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.preview-live { margin-left: auto; padding: 5px 7px; border-radius: 999px; background: rgba(131,227,180,.11); color: #a6ebc4; font-size: 9px; }
.preview-card h2 { margin: 15px 0 3px; font-size: 21px; letter-spacing: -.04em; }
.preview-card > p { margin: 0 0 12px; color: #91a198; font-size: 10px; }
.preview-exercise { display: grid; grid-template-columns: 27px 1fr 15px; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid rgba(225, 242, 232, .1); }
.exercise-number { color: #72907d; font-size: 9px; font-weight: 800; }
.preview-exercise strong, .preview-exercise small { display: block; }
.preview-exercise strong { color: #eaf2ec; font-size: 10px; }
.preview-exercise small { margin-top: 4px; color: #9aaa9f; font-size: 9px; }
.exercise-arrow { color: #7dd3a4; font-size: 12px; }
.preview-equipment { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 5px; padding-top: 11px; border-top: 1px solid rgba(225, 242, 232, .1); }
.preview-equipment > span { width: 100%; margin-bottom: 2px; }
.preview-equipment b { padding: 5px 7px; border: 1px solid rgba(221,241,230,.1); border-radius: 5px; color: #bbcbc0; font-size: 8px; }
.preview-float { position: absolute; z-index: 3; top: 14%; left: 0; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgba(230,244,234,.16); border-radius: 12px; background: rgba(17,25,21,.88); box-shadow: 0 15px 35px rgba(0,0,0,.25); animation: landing-lift 6s ease-in-out infinite reverse; }
.preview-float-check { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #b5e6c7; color: #15261a; font-size: 13px; font-weight: 900; }
.preview-float b, .preview-float small { display: block; }
.preview-float b { font-size: 9px; }
.preview-float small { margin-top: 4px; color: #a1b0a6; font-size: 9px; }
.visual-disclaimer { position: absolute; bottom: 0; left: 10%; margin: 0; color: #84958b; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.hero-scroll { position: absolute; bottom: 24px; left: 0; display: flex; align-items: center; gap: 13px; color: #84958b !important; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-scroll span:last-child { color: var(--landing-mint); font-size: 16px; }
@keyframes landing-lift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.value-strip { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 54px); padding: 20px 24px; border-top: 1px solid var(--landing-line); border-bottom: 1px solid var(--landing-line); background: #131b16; color: #a5b5aa; font-size: 10px; font-weight: 750; letter-spacing: .035em; }
.value-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--landing-mint); box-shadow: 0 0 8px rgba(131,227,180,.6); }
.section { width: min(100% - 72px, 1240px); margin: 0 auto; padding: 112px 0; }
.features-section { width: 100%; max-width: none; padding-right: max(36px, calc((100% - 1240px) / 2)); padding-left: max(36px, calc((100% - 1240px) / 2)); background: #f3f3eb; color: #172019; }
.section-heading { max-width: 710px; margin: 0 auto 53px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2, .how-copy h2, .faq-intro h2, .closing-cta h2 { margin: 0; color: #18231c; font-size: clamp(37px, 5vw, 57px); font-weight: 750; letter-spacing: -.065em; line-height: 1.02; }
.section-heading h2 span, .how-copy h2 span { color: #408460; }
.section-heading > p:last-child { max-width: 550px; margin: 17px auto 0; color: #5d6c61; font-size: 14px; line-height: 1.75; }
.eyebrow-light { color: #91dbad; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1240px; margin: 0 auto; }
.feature-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); min-height: 278px; overflow: hidden; border: 1px solid #e3e5dc; border-radius: 17px; background: #fbfcf8; box-shadow: 0 12px 32px rgba(21,35,24,.035); }
.feature-art { position: relative; display: grid; min-height: 100%; place-items: center; overflow: hidden; background: #dfeae0; }
.feature-art::before { position: absolute; inset: 13%; border: 1px solid rgba(40,89,57,.15); border-radius: 50%; content: ""; }
.feature-copy { align-self: center; padding: 27px 24px; }
.feature-kicker { margin: 0 0 12px; color: #477653; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.feature-copy h3 { margin: 0; color: #17221a; font-size: 21px; letter-spacing: -.045em; line-height: 1.14; }
.feature-copy > p:not(.feature-kicker) { margin: 12px 0 16px; color: #69776d; font-size: 11px; line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: #31734e !important; font-size: 10px; font-weight: 850; }
.text-link span { font-size: 14px; transition: transform .2s ease; }
.text-link:hover span { transform: translate(2px,-2px); }
.equipment-art { background: radial-gradient(circle at 48% 48%, #edf7e9, #c7dfcd); }
.art-rack { position: absolute; top: 22%; left: 34%; width: 36%; height: 55%; border: 6px solid #425c4b; border-bottom: 0; border-radius: 9px 9px 0 0; transform: perspective(180px) rotateY(-8deg); }
.art-rack::before, .art-rack::after { position: absolute; bottom: 0; width: 6px; height: 65%; background: #425c4b; content: ""; }
.art-rack::before { left: -6px; }.art-rack::after { right: -6px; }
.art-bench { position: absolute; left: 29%; bottom: 24%; width: 43%; height: 10px; border-radius: 4px; background: #47785a; transform: rotate(-7deg); }
.art-bench::before { position: absolute; top: 7px; left: 15%; width: 6px; height: 35px; background: #536b59; content: ""; }
.art-dumbbell { position: absolute; z-index: 1; right: 18%; bottom: 24%; width: 35px; height: 6px; border-radius: 6px; background: #24352a; transform: rotate(28deg); }
.art-dumbbell::before, .art-dumbbell::after { position: absolute; top: -6px; width: 9px; height: 18px; border-radius: 3px; background: #24352a; content: ""; }
.art-dumbbell::before { left: 0; }.art-dumbbell::after { right: 0; }
.art-glow { position: absolute; bottom: 13%; width: 80%; height: 18%; border-radius: 50%; background: rgba(35,97,56,.15); filter: blur(12px); }
.art-scan { position: absolute; top: 18%; right: 11%; color: #43805a; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.swap-art { background: radial-gradient(circle at center, #e6efe4, #d8e6db); }
.swap-node { z-index: 1; display: grid; width: 76px; height: 58px; place-items: center; border: 1px solid #90b99b; border-radius: 13px; background: #f7fbf5; color: #315841; font-size: 9px; font-weight: 800; line-height: 1.4; text-align: center; box-shadow: 0 8px 20px rgba(28,71,41,.1); }
.swap-node-next { position: absolute; right: 13%; bottom: 20%; background: #eff9ee; }
.swap-path { position: absolute; top: 29%; left: 58%; color: #4d9b69; font-size: 34px; }
.swap-caption { position: absolute; top: 18%; color: #528464; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.food-art { background: radial-gradient(circle at center, #f6edd8, #e6e3ce); }
.food-orbit { position: absolute; width: 126px; height: 126px; border: 1px solid rgba(102,124,67,.3); border-radius: 50%; }
.food-orbit-two { width: 172px; height: 172px; border-style: dashed; transform: rotate(31deg) scaleY(.42); }
.food-leaf { position: absolute; top: 25%; left: 31%; color: #5b9b61; font-size: 21px; }
.food-bowl { position: relative; z-index: 1; display: grid; width: 76px; height: 50px; place-items: center; border: 1px solid rgba(78,118,68,.45); border-radius: 8px 8px 30px 30px; background: linear-gradient(145deg,#fffdf5,#d7e7c9); color: #76a76b; font-size: 45px; line-height: .6; box-shadow: 0 9px 18px rgba(90,101,51,.13); }
.food-pin { position: absolute; top: 28%; right: 25%; color: #b3854e; font-size: 22px; }
.food-label { position: absolute; bottom: 20%; left: 22%; color: #9b7943; font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.adaptive-art { background: radial-gradient(circle at center, #d5ebda, #cbded0); }
.adaptive-ring { position: absolute; border: 1px solid rgba(39,105,61,.28); border-radius: 50%; transform: rotate(-26deg) scaleY(.53); }
.ring-one { width: 94px; height: 94px; }.ring-two { width: 140px; height: 140px; transform: rotate(34deg) scaleY(.53); }.ring-three { width: 185px; height: 185px; transform: rotate(-4deg) scaleY(.53); }
.adaptive-center { z-index: 1; display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; background: #335f41; color: white; font-size: 20px; font-weight: 800; box-shadow: 0 7px 20px rgba(28,74,41,.24); }
.adaptive-label { position: absolute; padding: 5px 7px; border: 1px solid rgba(56,107,66,.17); border-radius: 999px; background: rgba(250,255,248,.84); color: #4c7454; font-size: 6px; font-weight: 900; letter-spacing: .1em; }
.label-history { top: 21%; left: 22%; }.label-time { right: 12%; top: 48%; }.label-goal { bottom: 18%; left: 39%; }
.how-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: center; gap: 10%; }
.how-video { grid-column: 1 / -1; width: min(100%, 1040px); margin: 20px auto 0; }
.how-video-heading { max-width: 620px; margin: 0 auto 22px; text-align: center; }
.how-video-heading .eyebrow { margin: 0 0 10px; }
.how-video-heading h3 { margin: 0; color: #18231c; font-size: clamp(26px, 3.2vw, 38px); font-weight: 750; letter-spacing: -.055em; }
.how-video-heading > p:last-child { margin: 10px 0 0; color: #78847b; font-size: 13px; line-height: 1.7; }
.how-video-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #e0e6dd; border-radius: 20px; background: #101712; box-shadow: 0 24px 65px rgba(23,36,25,.12); }
.how-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.how-visual { position: relative; min-height: 480px; }
.how-image-frame { position: absolute; inset: 0 9% 6% 0; overflow: hidden; border-radius: 22px; background: #1e2b22; box-shadow: 0 30px 80px rgba(23,36,25,.2); transform: rotate(-1.5deg); }
.how-image-frame::after { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(8,15,10,.02),rgba(8,15,10,.28)); content: ""; }
.how-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.how-stamp { position: absolute; top: 9%; right: 0; display: flex; flex-direction: column; justify-content: center; width: 112px; height: 112px; border: 1px solid rgba(228,244,231,.25); border-radius: 50%; background: rgba(23,44,31,.92); color: #afd9bb; text-align: center; transform: rotate(9deg); }
.how-stamp span { font-size: 7px; font-weight: 800; letter-spacing: .16em; }.how-stamp b { margin: 2px 0; color: white; font-size: 24px; letter-spacing: -.06em; }
.how-callout { position: absolute; right: 2%; bottom: 1%; display: flex; align-items: center; gap: 11px; padding: 15px 18px; border: 1px solid #e3e8df; border-radius: 12px; background: #fff; box-shadow: 0 13px 35px rgba(23,36,25,.12); }
.callout-icon { color: #438d5c; font-size: 22px; }.how-callout b, .how-callout small { display: block; }.how-callout b { color: #223127; font-size: 11px; }.how-callout small { margin-top: 5px; color: #65746a; font-size: 10px; }
.how-copy .eyebrow { margin-bottom: 18px; }.how-copy h2 { font-size: clamp(43px,5vw,61px); }.how-lede { margin: 19px 0 27px; color: #78847b; font-size: 13px; line-height: 1.75; }
.steps-list { display: grid; gap: 22px; margin: 0 0 30px; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 36px 1fr; gap: 13px; align-items: start; }
.step-number { color: #478760; font-size: 10px; font-weight: 900; }.steps-list b, .steps-list small { display: block; }.steps-list b { color: #213027; font-size: 12px; }.steps-list small { max-width: 375px; margin-top: 5px; color: #84958b; font-size: 10px; line-height: 1.6; }
.nutrition-note { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 20px; width: min(100% - 72px, 1240px); margin: 0 auto 112px; padding: 28px 32px; border: 1px solid #d9e5d9; border-radius: 16px; background: #e8f0e5; }
.nutrition-symbol { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: #c8e4ca; color: #3f8053; font-size: 21px; }
.nutrition-note .feature-kicker { margin-bottom: 6px; }.nutrition-note h2 { margin: 0; color: #203027; font-size: 19px; letter-spacing: -.04em; }.nutrition-note p:not(.feature-kicker) { max-width: 780px; margin: 8px 0 0; color: #66776a; font-size: 10px; line-height: 1.7; }.nutrition-note > .text-link { margin-left: 10px; white-space: nowrap; }
.guide-section { padding-top: 5px; padding-bottom: 120px; }.guide-heading { margin-bottom: 40px; }.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }.guide-card { padding: 23px; border: 1px solid #e2e7df; border-radius: 13px; background: #f9faf6; }.guide-card > span { color: #4f7559; font-size: 9px; font-weight: 900; letter-spacing: .14em; }.guide-card h3 { margin: 16px 0 8px; color: #202b23; font-size: 17px; letter-spacing: -.04em; }.guide-card p { min-height: 97px; margin: 0 0 17px; color: #5d6b60; font-size: 11px; line-height: 1.7; }
.faq-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 11%; max-width: none; width: 100%; padding-right: max(36px, calc((100% - 1150px) / 2)); padding-left: max(36px, calc((100% - 1150px) / 2)); background: #19231c; }
.faq-intro h2 { color: #f3f7f2; }.faq-intro h2 span { color: #9ad6ae; }.faq-intro > p:last-child { color: #a2b0a6; font-size: 12px; line-height: 1.7; }
.faq-list { border-top: 1px solid rgba(229,242,232,.16); }.faq-list details { border-bottom: 1px solid rgba(229,242,232,.16); }.faq-list summary { position: relative; padding: 19px 35px 19px 0; color: #e6eee8; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary::after { position: absolute; top: 15px; right: 0; color: #a7dfb7; content: "+"; font-size: 20px; font-weight: 400; }.faq-list details[open] summary::after { content: "−"; }.faq-list details p { max-width: 620px; margin: -3px 24px 20px 0; color: #a2b0a6; font-size: 11px; line-height: 1.8; }
.closing-cta { position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: 100px 24px 106px; background: #101613; text-align: center; isolation: isolate; }.closing-glow { position: absolute; z-index: -1; top: 4%; left: 50%; width: min(850px,100vw); height: 120%; border-radius: 50%; background: radial-gradient(ellipse,rgba(47,122,71,.21),transparent 68%); transform: translateX(-50%); }.closing-cta > img { width: 58px; height: 58px; margin-bottom: 23px; border-radius: 50%; box-shadow: 0 0 35px rgba(98,206,139,.21); }.closing-cta .eyebrow { margin-bottom: 14px; }.closing-cta h2 { color: #f1f7f2; font-size: clamp(40px,5vw,62px); }.closing-cta h2 span { color: #9eddb1; }.closing-cta > p:not(.eyebrow) { margin: 15px 0 24px; color: #9daea3; font-size: 12px; }.closing-cta .button { min-width: 166px; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px 35px; width: min(100% - 72px, 1320px); margin: 0 auto; padding: 24px 0 31px; border-top: 1px solid var(--landing-line); color: #899a8f; }.footer-brand img { width: 34px; height: 34px; }.footer-brand { font-size: 16px; }.site-footer > p { margin: 0; font-size: 10px; }.site-footer nav { display: flex; gap: 19px; }.site-footer nav a { color: #a9b5ac; font-size: 10px; font-weight: 700; }.site-footer > small { grid-column: 1/-1; color: #84958b; font-size: 10px; }
@media (max-width: 980px) {
  .site-header,.landing-hero,.site-footer { width: min(100% - 44px, 760px); }
  .site-header { height: 74px; }.site-navigation { gap: 15px; }.site-navigation > a:not(.button) { font-size: 10px; }.site-brand { font-size: 18px; }.site-brand img { width: 37px; height: 37px; }
  .landing-hero { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 3%; min-height: 600px; padding-top: 58px; }.landing-hero h1 { font-size: clamp(45px,6.4vw,66px); }.hero-intro { font-size: 13px; }.hero-visual { height: 470px; }.preview-card { width: min(280px,82%); }.section { width: min(100% - 44px,760px); padding-top: 88px; padding-bottom: 88px; }.features-section { width: 100%; padding-right: 22px; padding-left: 22px; }.feature-card { grid-template-columns: 1fr; }.feature-art { min-height: 190px; }.feature-copy { padding: 21px; }.how-section { gap: 7%; }.how-visual { min-height: 420px; }.nutrition-note { width: min(100% - 44px,760px); margin-bottom: 80px; }.guide-grid { grid-template-columns: 1fr; }.guide-card p { min-height: auto; }.faq-section { width: 100%; grid-template-columns: .8fr 1.2fr; padding-right: 30px; padding-left: 30px; }
}
@media (max-width: 700px) {
  .site-header { width: calc(100% - 36px); height: 68px; }.site-brand { gap: 8px; font-size: 17px; }.site-brand img { width: 35px; height: 35px; }.site-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 10px; border: 1px solid rgba(229,242,232,.16); border-radius: 9px; background: rgba(255,255,255,.04); }.site-menu-toggle span { display: block; height: 1.5px; width: 100%; border-radius: 2px; background: #d8e8dd; }.site-navigation { position: absolute; top: 59px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 14px 14px; border: 1px solid rgba(229,242,232,.13); border-radius: 12px; background: #17201a; box-shadow: 0 18px 40px rgba(0,0,0,.35); }.site-navigation.is-open { display: flex; flex-direction: column; }.site-navigation > a:not(.button) { padding: 13px 2px; border-bottom: 1px solid rgba(229,242,232,.09); color: #c8d4cc; font-size: 12px; }.site-navigation .site-login { margin-left: 0; }.site-navigation .button-nav { margin-top: 12px; }
  .landing-hero { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: calc(100% - 36px); min-height: auto; padding: 59px 0 64px; }.hero-glow { top: 0; left: 0; width: 100%; height: 54%; }.hero-copy { max-width: none; }.eyebrow { margin-bottom: 16px; font-size: 9px; }.landing-hero h1 { font-size: clamp(38px,10.4vw,53px); }.hero-slogan { margin-top: 14px; font-size: 16px; }.hero-intro { margin-top: 16px; font-size: 13px; line-height: 1.7; }.hero-actions { gap: 9px; margin-top: 22px; }.button { min-height: 48px; gap: 12px; padding: 0 16px; font-size: 11px; }.hero-note { margin-top: 22px; font-size: 9px; }.hero-visual { height: min(440px,112vw); margin-top: 28px; }.hero-scene { inset: 0 3% 6% 4%; border-radius: 17px; }.hero-scene img { object-position: 48% center; }.scene-caption { left: 14px; bottom: 14px; font-size: 9px; }.preview-card { right: 0; bottom: 6%; width: min(260px,78%); padding: 14px 13px 12px; border-radius: 12px; }.preview-card h2 { margin-top: 10px; font-size: 18px; }.preview-exercise { padding: 8px 0; }.preview-float { top: 13%; left: 0; padding: 9px 10px; }.visual-disclaimer { left: 5%; font-size: 7px; }.hero-scroll { bottom: 16px; font-size: 8px; }
  .value-strip { justify-content: flex-start; gap: 12px; overflow-x: auto; padding: 15px 18px; white-space: nowrap; font-size: 8px; scrollbar-width: none; }.value-strip::-webkit-scrollbar { display: none; }.value-strip i { flex: 0 0 4px; }
  .section { width: calc(100% - 36px); padding: 69px 0; }.features-section { width: 100%; padding: 70px 18px; }.section-heading { margin-bottom: 31px; }.section-heading h2,.how-copy h2,.faq-intro h2 { font-size: clamp(36px,10vw,48px); }.section-heading > p:last-child { font-size: 12px; }.feature-grid { grid-template-columns: 1fr; gap: 12px; }.feature-card { grid-template-columns: 125px minmax(0,1fr); min-height: 0; }.feature-art { min-height: 100%; }.feature-art::before { inset: 10%; }.feature-copy { padding: 17px 14px; }.feature-kicker { margin-bottom: 8px; font-size: 7px; }.feature-copy h3 { font-size: 16px; }.feature-copy > p:not(.feature-kicker) { margin: 8px 0 11px; font-size: 9px; line-height: 1.55; }.text-link { gap: 5px; font-size: 8px; }.text-link span { font-size: 11px; }.art-rack { border-width: 4px; }.art-rack::before,.art-rack::after { width: 4px; }.art-rack::before { left:-4px; }.art-rack::after { right:-4px; }.art-dumbbell { width: 25px; height: 4px; }.art-dumbbell::before,.art-dumbbell::after { top:-4px; width:7px; height:12px; }.swap-node { width: 59px; height: 45px; font-size: 8px; }.swap-path { left:56%; font-size: 25px; }.swap-node-next { right: 5%; }.food-orbit { width: 90px; height: 90px; }.food-orbit-two { width: 130px; height: 130px; }.food-bowl { width: 60px; height: 39px; font-size: 35px; }.adaptive-ring.ring-one { width: 70px; height:70px; }.adaptive-ring.ring-two { width: 103px; height:103px; }.adaptive-ring.ring-three { width: 135px; height:135px; }.adaptive-center { width: 36px; height:36px; font-size:16px; }.adaptive-label { padding:4px 5px; font-size:5px; }
  .how-section { display:flex; flex-direction:column; align-items:stretch; gap:36px; }.how-visual { min-height: min(80vw,370px); }
  .how-video { width: 100%; margin-top: 2px; }.how-video-heading { margin-bottom: 16px; text-align: left; }.how-video-heading h3 { font-size: 28px; }.how-video-heading > p:last-child { font-size: 11px; }.how-video-frame { border-radius: 13px; }.how-image-frame { right:7%; }.how-stamp { width:88px; height:88px; }.how-stamp b { font-size:19px; }.how-callout { right:0; padding:11px 12px; }.how-copy .eyebrow { margin-bottom:14px; }.how-copy h2 { font-size: 47px; }.how-lede { font-size: 12px; }.steps-list { gap:18px; }.steps-list small { font-size:10px; }
  .nutrition-note { grid-template-columns: 34px 1fr; gap: 13px; width: calc(100% - 36px); margin-bottom: 68px; padding: 19px 17px; }.nutrition-symbol { width: 34px; height: 34px; font-size: 17px; }.nutrition-note h2 { font-size: 16px; }.nutrition-note p:not(.feature-kicker) { font-size: 9px; }.nutrition-note > .text-link { grid-column: 2; margin: 0; }.guide-section { padding-top: 0; padding-bottom: 70px; }.guide-heading { margin-bottom: 25px; }.guide-card { padding: 18px; }.guide-card h3 { margin-top: 11px; font-size: 16px; }.guide-card p { font-size: 9px; }
  .faq-section { display:flex; flex-direction:column; gap: 20px; padding: 68px 20px; }.faq-intro h2 { font-size: 44px; }.faq-intro > p:last-child { font-size: 10px; }.faq-list summary { padding-top:16px; padding-bottom:16px; font-size:10px; }.faq-list summary::after { top: 12px; }.faq-list details p { margin-bottom:15px; font-size:9px; }
  .closing-cta { padding: 72px 18px 78px; }.closing-cta > img { width: 50px; height:50px; margin-bottom:18px; }.closing-cta h2 { font-size: 43px; }.closing-cta > p:not(.eyebrow) { max-width: 260px; font-size:10px; line-height:1.6; }.site-footer { grid-template-columns: 1fr auto; gap: 10px; width: calc(100% - 36px); padding: 20px 0 25px; }.site-footer > p { grid-row: 2; font-size:8px; }.site-footer nav { grid-column:1/-1; grid-row:3; flex-wrap:wrap; gap: 12px; }.site-footer nav a { font-size:8px; }.site-footer > small { grid-column:1/-1; grid-row:4; }
}
@media (prefers-reduced-motion: reduce) { .landing-page *, .landing-page *::before, .landing-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 700px) {
  .feature-kicker { font-size: 8px; }
  .feature-copy > p:not(.feature-kicker) { font-size: 10px; }
  .text-link { font-size: 10px; }
  .visual-disclaimer { font-size: 9px; }
  .hero-scroll { font-size: 10px; }
  .guide-card p { font-size: 10px; }
  .faq-list details p { font-size: 10px; }
  .site-footer > p, .site-footer nav a, .site-footer > small { font-size: 10px; }
}

/* ---------- Today dashboard ---------- */
#screen-today {
  --bg: #f5f7f5;
  --card: #ffffff;
  --ink: #202a24;
  --muted: #66736b;
  --border: #e2e9e3;
  --mint: #e3eee6;
  --mint-strong: #4b8061;
  --shadow: 0 2px 8px rgba(32, 42, 36, 0.045);
  overflow-x: hidden;
  padding: 16px 16px 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", sans-serif;
}
#screen-today .today-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 16px;
  padding: 0;
}
#screen-today .today-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
#screen-today .today-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.today-profile-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.today-profile-button:hover { background: #f0f5f1; }
.today-profile-button:focus-visible,
.today-month-select:focus-within,
.today-grow-details summary:focus-visible,
.today-grow-calendar-settings summary:focus-visible,
.nav-item:focus-visible {
  outline: 2px solid var(--mint-strong);
  outline-offset: 2px;
}
#today-content {
  display: grid;
  width: 100%;
  max-width: 960px;
  gap: 12px;
  margin: 0 auto;
}
#today-content > .empty-state { grid-column: 1 / -1; }
.today-workout-card,
.today-grow-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.today-section-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.today-workout-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
}
.today-workout-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.today-workout-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52725c;
  font-size: 11px;
  font-weight: 600;
}
.today-workout-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b9872;
}
.today-workout-split {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.today-workout-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.today-workout-context > div:first-child { display: grid; gap: 3px; }
.today-workout-context > div:first-child > span,
.today-plan-lock small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.today-workout-context > div:first-child strong,
.today-plan-lock strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.today-plan-lock {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e9ece4;
  border-radius: 8px;
  background: #fafbf9;
  color: #66736b;
}
.today-plan-lock > span { display: grid; gap: 2px; min-width: 0; }
.today-icon { display: block; flex: 0 0 auto; }
.today-workout-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  color: #6c654b;
  font-size: 11px;
  line-height: 1.45;
}
.today-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.today-stat-card {
  display: grid;
  min-width: 0;
  min-height: 98px;
  align-content: start;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.today-stat-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
}
.today-stat-heading .today-icon { color: #58675e; }
.today-stat-value {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.today-stat-value small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.today-stat-sub {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.today-grow-card.grow-impact-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
}
.today-grow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.today-grow-card-heading h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}
.today-month-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #456c53;
  background: #f8faf8;
}
.today-month-select input {
  width: 128px;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 11px;
}
.today-grow-progress-copy {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
}
.today-grow-progress-copy strong {
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
}
.today-grow-progress-copy span { color: var(--muted); font-size: 11px; }
.today-grow-stage-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
}
.today-grow-stage-progress .grow-impact-plant-art {
  display: block;
  width: 112px;
  height: 70px;
  min-width: 0;
  flex: 0 0 112px;
  overflow: visible;
}
.today-grow-attendance-unavailable {
  display: grid;
  width: 112px;
  min-height: 40px;
  flex: 0 0 112px;
  align-content: center;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}
.today-grow-stage-progress-main { flex: 1 1 auto; min-width: 0; }
.today-grow-stage-progress .today-grow-progress-copy { flex-wrap: wrap; gap: 2px 6px; margin-top: 0; }
.today-grow-progress {
  height: 6px;
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ed;
}
.today-grow-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-strong);
  transition: width .25s ease;
}
.today-grow-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.today-grow-metrics > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 56px;
  padding: 8px;
  border-radius: 8px;
  background: #f5f7f5;
}
.today-grow-metrics span { color: var(--muted); font-size: 9px; line-height: 1.3; }
.today-grow-metrics strong { color: var(--ink); font-size: 15px; font-weight: 650; }
.today-grow-complete {
  margin: 10px 0 0;
  color: #456c53;
  font-size: 11px;
  font-weight: 600;
}
.today-grow-feedback:empty { display: none; }
.today-grow-feedback { margin: 8px 0 0; color: #a13c32; font-size: 11px; }
.today-grow-details { margin-top: 10px; border-top: 1px solid var(--border); }
.today-grow-details > summary,
.today-grow-calendar-settings > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  list-style: none;
}
.today-grow-details > summary::-webkit-details-marker,
.today-grow-calendar-settings > summary::-webkit-details-marker { display: none; }
.today-grow-details > summary::after,
.today-grow-calendar-settings > summary::after { content: "+"; color: var(--muted); font-size: 18px; font-weight: 400; }
.today-grow-details[open] > summary::after,
.today-grow-calendar-settings[open] > summary::after { content: "−"; }
.today-grow-details-content { padding-top: 4px; }
.today-grow-calendar-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.today-grow-calendar-summary span { color: var(--muted); font-size: 10px; }
.today-grow-calendar-summary strong { color: var(--ink); }
.today-grow-calendar-settings { margin-top: 8px; border-top: 1px solid var(--border); }
.today-grow-details-content > p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.today-grow-details-content .grow-impact-virtual-label { font-size: 10px; }
.today-grow-details-content .grow-impact-feedback { display: none; }
.today-grow-details-content .grow-impact-feedback:not(:empty) { display: block; }
.today-grow-details-content .grow-impact-option { min-width: 0; border-radius: 8px; }
.today-grow-details-content .grow-impact-option img { border-radius: 6px; }
.today-grow-details-content .grow-impact-tree-card { min-width: 0; border-radius: 8px; }
.today-grow-details-content .grow-impact-tree-copy { min-width: 0; overflow-wrap: anywhere; }
.today-grow-details-content .grow-impact-add-closure,
.today-grow-details-content .grow-impact-save-settings { min-height: 44px; }
.today-grow-message { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.today-retry-button {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.bottom-nav {
  z-index: 5;
  width: 100%;
  max-width: 430px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  border-top-color: #e5eae5;
  background: rgba(255, 255, 255, .97);
}
.nav-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  justify-content: center;
  gap: 3px;
  padding: 3px 1px;
  color: #68756d;
  font-size: 9px;
  font-weight: 600;
}
.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: currentColor;
}
.nav-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active { color: #315c40; }
.nav-item.active .nav-icon { background: #e6f0e8; }

@media (min-width: 760px) {
  #main-app { max-width: 1040px; }
  #main-app > .screen:not(#screen-today) { width: 100%; max-width: 430px; margin-inline: auto; }
  #screen-today { padding: 24px 32px 32px; }
  #today-content { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 16px; align-items: start; }
  #today-content > .today-workout-card { grid-column: 1; grid-row: 1; }
  #today-content > .today-stats-grid { grid-column: 2; grid-row: 1; }
  #today-content > .today-grow-card { grid-column: 1; grid-row: 2; }
}

/* Vision Coach: demonstration + live camera. Stacked on phones, side by side when wide. */
.vision-stage { display: grid; gap: 12px; margin-bottom: 14px; }
.vision-stage .exercise-demonstration { grid-column: auto; width: 100%; }
.vision-stage .camera-panel { margin-bottom: 0; }
@media (min-width: 820px) {
  .vision-stage { grid-template-columns: 1fr 1fr; align-items: start; }
}


/* Landing-page community price guess */
.price-guess-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}
.price-guess-copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.price-guess-copy h2 span { color: #4c8e71; }
.price-guess-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.price-guess-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: #68756d;
  font-size: 12px;
  line-height: 1.6;
}
.price-guess-note > span:first-child { color: #4c8e71; font-size: 18px; }
.price-guess-card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(20, 22, 26, .07);
}
.price-guess-card label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}
.price-guess-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid #dfe5df;
  border-radius: 14px;
  background: #fbfcfa;
}
.price-guess-input-wrap:focus-within {
  border-color: #68c9a6;
  box-shadow: 0 0 0 3px rgba(104, 201, 166, .15);
}
.price-guess-input-wrap > span { color: #4c8e71; font-size: 22px; font-weight: 700; }
.price-guess-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
}
.price-guess-help { margin: 8px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.price-guess-submit { width: 100%; justify-content: center; min-height: 52px; }
.price-guess-feedback { min-height: 18px; margin: 10px 0 0; color: #4c8e71; font-size: 12px; line-height: 1.5; }
.price-guess-feedback.is-error { color: var(--danger); }
.price-guess-average {
  display: grid;
  gap: 5px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: #f2f8f4;
}
.price-guess-average-label { color: #5d7566; font-size: 11px; font-weight: 650; }
.price-guess-average strong { color: #234d38; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.04em; }
.price-guess-count { color: #6d7c72; font-size: 11px; }
@media (max-width: 760px) {
  .price-guess-section { grid-template-columns: 1fr; gap: 24px; }
  .price-guess-copy h2 { font-size: clamp(34px, 10vw, 46px); }
}


/* Production accessibility baseline */
:focus-visible {
  outline: 3px solid #267b5c;
  outline-offset: 3px;
}
a, button, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}
button:disabled, [aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .62;
}
.skip-link {
  position: absolute;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.not-found-screen {
  display: none;
  min-height: 75vh;
  padding: clamp(36px, 8vw, 96px) 24px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.not-found-screen.active { display: flex; }
.not-found-mark { margin-bottom: 24px; }
.not-found-screen h1 {
  margin: 10px 0 16px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}
.not-found-screen h1 span { color: #4c8e71; }
.not-found-screen > p:not(.eyebrow) {
  max-width: 510px;
  color: var(--muted);
  line-height: 1.7;
}
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Optional analytics consent: compact, accessible and mobile-friendly. */
.fitos-consent-banner {
  position: fixed;
  z-index: 1200;
  inset: auto 16px 88px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 980px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid #d9e2dc;
  border-radius: 16px;
  background: #fff;
  color: #202a24;
  box-shadow: 0 12px 40px rgb(20 35 27 / 18%);
}
.fitos-consent-banner[hidden] { display: none; }
.fitos-consent-copy { max-width: 600px; }
.fitos-consent-copy strong { display: block; font-size: 16px; }
.fitos-consent-copy p { margin: 6px 0; color: #68736d; font-size: 13px; line-height: 1.5; }
.fitos-consent-copy a { color: #27684d; font-size: 13px; text-underline-offset: 3px; }
.fitos-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fitos-consent-actions button, .fitos-cookie-settings {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #d7e0d9;
  border-radius: 8px;
  background: #fff;
  color: #26362d;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.fitos-consent-actions .fitos-consent-accept { background: #27684d; border-color: #27684d; color: #fff; }
.fitos-cookie-settings { position: fixed; z-index: 1100; right: 12px; bottom: 12px; min-height: 36px; padding: 7px 10px; font-size: 11px; opacity: .94; }
@media (max-width: 640px) {
  .fitos-consent-banner { inset: auto 10px 74px; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .fitos-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .fitos-consent-actions button { padding-inline: 8px; }
}


/* FitOS app-shell refresh: modern typography, clear hierarchy and less dated dashboard chrome */
:root { --fitos-green:#286448; --fitos-green-dark:#183d2b; --fitos-surface:#fbfcfa; --fitos-line:#e3e9e3; }
#main-app { background:var(--bg,#f4f2ec); }
.screen .header { margin-bottom:22px; }
.screen .header h1 { font-size:clamp(28px,4vw,40px); line-height:1.08; letter-spacing:-.045em; color:#17231c; }
.screen .header p { max-width:64ch; color:#68746b; line-height:1.65; }
#main-app .card,#main-app .food-tool-card { border-color:var(--fitos-line); box-shadow:0 5px 20px rgba(22,37,27,.045); }
#main-app .btn { min-height:42px; border-radius:11px; font-weight:700; transition:transform .16s ease,background .16s ease,box-shadow .16s ease; }
#main-app .btn:hover { transform:translateY(-1px); }
#main-app .btn-mint { background:#286448; border-color:#286448; color:#fff; box-shadow:0 5px 13px rgba(40,100,72,.13); }
#main-app .btn-mint:hover { background:#1f5038; }
#bottom-nav { backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-top:1px solid rgba(219,227,219,.9); box-shadow:0 -8px 28px rgba(23,36,27,.06); }
#bottom-nav .nav-item { transition:color .16s ease,background .16s ease; }
#bottom-nav .nav-item.active { color:#286448; }
#bottom-nav .nav-item.active .nav-icon { background:#e6f3ea; border-radius:12px; }
#screen-diet .food-tracker { border-color:#e1e8e1; border-radius:24px; box-shadow:0 12px 35px rgba(22,37,27,.055); }
#screen-diet .food-tool-card { border-radius:17px; }
#screen-diet .food-tracker-heading h2 { color:#17231c; letter-spacing:-.045em; }
#screen-diet .food-tracker-tabs button { min-height:42px; border-radius:12px; font-weight:700; }
#screen-diet .food-tracker-tabs button.active { background:#1d3829; border-color:#1d3829; box-shadow:0 5px 14px rgba(29,56,41,.13); }
@media(max-width:600px) { .screen .header { margin-bottom:16px; } #main-app .btn:hover { transform:none; } }


/* Daily gym check-in modal */
body.gym-choice-open { overflow: hidden; }
.gym-choice-overlay {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(13, 24, 18, .58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: gymChoiceFadeIn .2s ease both;
}
.gym-choice-modal {
  width: min(100%, 440px);
  padding: 30px;
  border: 1px solid rgba(224, 234, 226, .9);
  border-radius: 25px;
  background: #fff;
  color: #17231c;
  box-shadow: 0 28px 90px rgba(5, 18, 10, .28);
  animation: gymChoiceRise .28s cubic-bezier(.2,.8,.2,1) both;
}
.gym-choice-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 17px;
  background: #e8f5ed;
  color: #286448;
}
.gym-choice-icon svg { width: 27px; height: 27px; }
.gym-choice-eyebrow {
  margin: 0 0 9px;
  color: #438363;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.gym-choice-modal h2 {
  margin: 0;
  color: #17231c;
  font-size: clamp(27px, 6vw, 34px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.gym-choice-modal > p:not(.gym-choice-eyebrow) {
  margin: 12px 0 19px;
  color: #68746b;
  font-size: 15px;
  line-height: 1.6;
}
.gym-choice-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #f2f8f3;
  color: #466451;
  font-size: 12px;
  line-height: 1.5;
}
.gym-choice-summary-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #48a879;
}
.gym-choice-actions { display: grid; gap: 10px; }
.gym-choice-actions button {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #dce6de;
  border-radius: 13px;
  background: #fff;
  color: #26372c;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, border-color .16s ease;
}
.gym-choice-actions button:active { transform: scale(.985); }
.gym-choice-actions .gym-choice-yes {
  border-color: #286448;
  background: #286448;
  color: #fff;
  box-shadow: 0 7px 16px rgba(40, 100, 72, .16);
}
.gym-choice-actions .gym-choice-yes:hover { background: #1f5038; }
.gym-choice-actions .gym-choice-no:hover { border-color: #9db9a5; background: #f7faf7; }
.gym-choice-overlay.is-closing { animation: gymChoiceFadeOut .16s ease both; }
@keyframes gymChoiceFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gymChoiceFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes gymChoiceRise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) {
  .gym-choice-overlay { padding: 16px; }
  .gym-choice-modal { padding: 25px 21px 21px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .gym-choice-overlay, .gym-choice-modal { animation: none; }
}


/* FitOS mobile app visual refresh — presentation only; existing markup and behavior stay intact. */
:root {
  --fitos-app-bg: #f5f6f2;
  --fitos-card: #ffffff;
  --fitos-ink: #17231c;
  --fitos-muted: #778078;
  --fitos-border: #e7ebe5;
  --fitos-green: #286b50;
  --fitos-green-dark: #174b37;
  --fitos-mint: #e5f4eb;
}
#main-app {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin-inline: auto;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
  background: var(--fitos-app-bg);
  color: var(--fitos-ink);
}
#main-app > .screen {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 74px);
  padding: 22px 18px 28px;
  background: var(--fitos-app-bg);
}
#main-app .screen .header {
  margin: 0 0 18px;
}
#main-app .screen .header h1,
#main-app .screen > .header h1 {
  margin: 0 0 5px;
  color: var(--fitos-ink);
  font-size: 28px;
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -.045em;
}
#main-app .screen .header p {
  margin: 0;
  color: var(--fitos-muted);
  font-size: 12px;
  line-height: 1.5;
}
#main-app .card,
#main-app .food-tool-card,
#main-app .workout-next-card,
#main-app .workout-session-card,
#main-app .workout-active-card,
#main-app .gym-history-card,
#main-app .gym-attendance-card,
#main-app .equipment-card {
  border: 1px solid var(--fitos-border);
  border-radius: 17px;
  background: var(--fitos-card);
  box-shadow: 0 4px 15px rgba(25, 45, 32, .035);
}
#main-app .card { padding: 16px; margin-bottom: 12px; }
#main-app .card-label,
#main-app .food-tool-card h3 {
  color: var(--fitos-ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.02em;
}
#main-app .card-sub,
#main-app .muted,
#main-app .empty-state { color: var(--fitos-muted); }
#main-app .btn,
#main-app button.btn {
  min-height: 42px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}
#main-app .btn-mint,
#main-app .btn-primary {
  border-color: var(--fitos-green);
  background: var(--fitos-green);
  color: #fff;
}
#main-app .btn-mint:hover,
#main-app .btn-primary:hover { background: var(--fitos-green-dark); }
#main-app .btn-outline {
  border: 1px solid var(--fitos-border);
  background: #fff;
  color: var(--fitos-ink);
}
#main-app .chip,
#main-app .chip-group button,
#main-app .equipment-chip,
#main-app .equipment-option,
#main-app .choice-chip {
  border: 1px solid var(--fitos-border);
  border-radius: 999px;
  background: #f8f9f6;
  color: #47544b;
}
#main-app .chip.selected,
#main-app .chip.active,
#main-app .equipment-chip.selected,
#main-app .equipment-option.selected,
#main-app .choice-chip.selected {
  border-color: #c8e8d6;
  background: var(--fitos-mint);
  color: var(--fitos-green-dark);
}
#screen-workout #workout-scan-area { margin-bottom: 12px; }
#screen-workout #workout-content > * { margin-bottom: 12px; }
#screen-workout .workout-session-card,
#screen-workout .workout-session,
#screen-workout .workout-summary,
#screen-workout .workout-next-card {
  padding: 17px;
  border: 1px solid var(--fitos-border);
  border-radius: 17px;
  background: #fff;
  color: var(--fitos-ink);
  box-shadow: 0 4px 15px rgba(25,45,32,.035);
}
#screen-workout .workout-session-top,
#screen-workout .workout-session-meta,
#screen-workout .workout-next-top { color: var(--fitos-muted); }
#screen-workout .workout-session h2,
#screen-workout .workout-session-card h2,
#screen-workout .workout-next-card h2 {
  color: var(--fitos-ink);
  font-size: 18px;
  letter-spacing: -.03em;
}
#screen-workout .workout-progress-track {
  height: 8px;
  border-radius: 99px;
  background: #edf0ec;
}
#screen-workout .workout-progress-track span {
  border-radius: inherit;
  background: linear-gradient(90deg, #36a879, #16845c);
}
#screen-gym #gym-content > *,
#screen-gym-scan #gym-scan-content > * { margin-bottom: 12px; }
#screen-gym .card,
#screen-gym-scan .card,
#screen-gym-scan .food-tool-card {
  padding: 16px;
  border-radius: 17px;
  border: 1px solid var(--fitos-border);
  background: #fff;
  box-shadow: 0 4px 15px rgba(25,45,32,.035);
}
#screen-gym .card-value,
#screen-gym-scan .card-value { color: var(--fitos-green-dark); }
#screen-gym .card-grid-2,
#screen-gym-scan .card-grid-2 { gap: 10px; }
#screen-gym-scan .chip-group,
#screen-gym-scan .equipment-grid,
#screen-gym-scan .equipment-list { gap: 7px; }
#screen-gym-scan button,
#screen-gym button { max-width: 100%; }
#screen-diet .food-tracker {
  margin-top: 8px;
  padding: 16px;
  border: 1px solid var(--fitos-border);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(25,45,32,.04);
}
#screen-diet .food-tracker-heading .eyebrow {
  color: #4b9b75;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}
#screen-diet .food-tracker-heading h2 {
  margin: 7px 0 8px;
  color: var(--fitos-ink);
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: -.04em;
}
#screen-diet .food-tracker-heading > p:last-child {
  color: var(--fitos-muted);
  font-size: 11px;
  line-height: 1.55;
}
#screen-diet .food-tracker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}
#screen-diet .food-tracker-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--fitos-border);
  border-radius: 10px;
  background: #f8f9f6;
  color: #344239;
  font-size: 11px;
}
#screen-diet .food-tracker-tabs button.active {
  border-color: var(--fitos-green-dark);
  background: var(--fitos-green-dark);
  color: #fff;
}
#screen-diet .food-tool-card {
  margin: 0 0 11px;
  padding: 14px;
  border: 1px solid var(--fitos-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
}
#screen-diet .food-tool-card h3 { margin: 0 0 7px; font-size: 13px; }
#screen-diet .food-tool-card p,
#screen-diet .food-data-note {
  color: var(--fitos-muted);
  font-size: 10px;
  line-height: 1.5;
}
#screen-diet .food-actions { gap: 8px; }
#screen-diet .food-input-row { gap: 7px; }
#screen-diet input,
#screen-diet select,
#screen-diet textarea {
  min-height: 40px;
  border: 1px solid #e1e6df;
  border-radius: 9px;
  background: #fbfcfa;
  color: var(--fitos-ink);
  font-size: 12px;
}
#bottom-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid #e6ebe5;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -5px 20px rgba(24,42,30,.045);
  backdrop-filter: blur(16px);
}
#bottom-nav .nav-item {
  min-height: 49px;
  gap: 2px;
  color: #7b857d;
  font-size: 9px;
  font-weight: 650;
}
#bottom-nav .nav-icon {
  width: 29px;
  height: 28px;
  border-radius: 9px;
}
#bottom-nav .nav-item.active { color: var(--fitos-green); }
#bottom-nav .nav-item.active .nav-icon { background: var(--fitos-mint); }
@media (min-width: 760px) {
  #main-app { min-height: 100vh; }
  #main-app > .screen:not(#screen-today) { width: 100%; max-width: 430px; margin-inline: auto; }
}
@media (max-width: 600px) {
  #main-app > .screen { padding: 22px 18px 24px; }
  #main-app .screen .header { margin-bottom: 16px; }
  #screen-diet .food-tracker { padding: 14px; }
  #bottom-nav .nav-item { min-height: 48px; }
}


/* Use the full available width on touch devices, including browsers with page zoom enabled. */
@media (pointer: coarse) {
  #main-app { width: 100%; max-width: none; }
  #bottom-nav { width: 100%; max-width: none; }
}


/* Workout tab: match the supplied FitOS reference screen. */
#app { width:100%; max-width:none; }
#screen-workout {
  width:100%;
  max-width:none;
  padding:24px 24px calc(104px + env(safe-area-inset-bottom));
  background:#f7f8f4;
}
#screen-workout .header {
  display:block;
  margin:0 0 28px;
}
#screen-workout .header h1 {
  margin:0 0 7px;
  color:#17231c;
  font-size:36px;
  line-height:1.08;
  font-weight:800;
  letter-spacing:-.045em;
}
#screen-workout .header p {
  color:#778078;
  font-size:15px;
  line-height:1.4;
}
#screen-workout #workout-scan-area { margin:0 0 22px; }
#screen-workout #workout-scan-btn {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  width:100%;
  min-height:88px;
  margin:0 !important;
  padding:14px 22px 14px 92px;
  border:2px solid #b9ead5;
  border-radius:17px;
  background:#f0faf5;
  color:#17231c;
  font-size:19px;
  font-weight:750;
  text-align:left;
  box-shadow:none;
}
#screen-workout #workout-scan-btn::before {
  content:"◎";
  position:absolute;
  left:16px;
  top:50%;
  display:grid;
  width:54px;
  height:54px;
  place-items:center;
  transform:translateY(-50%);
  border-radius:13px;
  background:#ddf3e8;
  color:#087653;
  font-size:34px;
  font-weight:700;
  line-height:1;
}
#screen-workout #workout-scan-btn::after {
  content:"›";
  position:absolute;
  right:19px;
  top:50%;
  transform:translateY(-55%);
  color:#87928a;
  font-size:30px;
  font-weight:400;
}
#screen-workout #workout-content > * { margin-bottom:20px; }
#screen-workout .workout-plan-card,
#screen-workout .workout-next-plan-card,
#screen-workout .workout-day-complete-card {
  width:100%;
  margin:0 0 20px;
  padding:19px;
  border:1px solid #e8ece6;
  border-radius:20px;
  background:#fff;
  box-shadow:0 5px 18px rgba(25,45,32,.045);
}
#screen-workout .workout-plan-card .card-label {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin:0 0 8px;
  color:#17231c;
  font-size:17px;
  line-height:1.35;
  font-weight:780;
}
#screen-workout .workout-plan-card .pill {
  flex:0 0 auto;
  margin:0 !important;
  padding:6px 9px;
  border-radius:999px;
  background:#fff5df;
  color:#b88628;
  font-size:10px;
  font-weight:700;
}
#screen-workout .workout-cycle-line {
  margin:0 0 14px;
  color:#8a928c;
  font-size:13px;
}
#screen-workout .workout-plan-card .circular-progress-container {
  margin:18px 0 22px !important;
  text-align:center;
}
#screen-workout .workout-plan-card .circular-progress {
  width:180px;
  height:180px;
  margin:0 auto 19px;
}
#screen-workout .workout-plan-card .circular-progress-bg,
#screen-workout .workout-plan-card .circular-progress-fill,
#screen-workout .workout-plan-card .circular-progress-current {
  stroke-width:6.5;
}
#screen-workout .workout-plan-card .circular-progress-bg { stroke:#e9ece9; }
#screen-workout .workout-plan-card .circular-progress-fill { stroke:#18a77a; }
#screen-workout .workout-plan-card .circular-progress-current { stroke:#18a77a; }
#screen-workout .workout-plan-card .circular-progress-done {
  color:#111b16;
  font-size:37px;
  font-weight:800;
}
#screen-workout .workout-plan-card .circular-progress-label {
  margin-top:4px;
  color:#89928b;
  font-size:13px;
  letter-spacing:.02em;
}
#screen-workout .workout-plan-card .circular-progress-legend {
  gap:22px;
  margin-top:0;
}
#screen-workout .workout-plan-card .circular-legend-item {
  gap:7px;
  color:#858e87;
  font-size:13px;
}
#screen-workout .workout-plan-card .circular-legend-dot {
  width:11px;
  height:11px;
  border-radius:50%;
}
#screen-workout .workout-plan-card .card-sub:not(.workout-cycle-line) {
  margin-top:5px;
  color:#858e87;
  font-size:13px;
  line-height:1.5;
}
#screen-workout .workout-next-plan-card {
  padding:20px;
}
#screen-workout .workout-next-plan-title {
  margin:0 0 9px;
  color:#17231c;
  font-size:20px;
  line-height:1.3;
  font-weight:780;
}
#screen-workout .workout-next-plan-title strong { color:#087653; }
#screen-workout .workout-next-plan-card .card-sub {
  color:#89928b;
  font-size:13px;
  line-height:1.5;
}
#screen-workout .workout-next-plan-card .workout-plan-lock-line { margin-top:12px; }
#screen-workout .workout-next-plan-card .workout-recent-line { margin-top:10px; }
#screen-workout .workout-day-complete-card {
  padding:22px 20px 25px;
  border:2px solid #c2ead7;
  background:linear-gradient(145deg,#effbf5 0%,#e8f8f0 100%);
  text-align:center;
}
#screen-workout .workout-day-complete-mark {
  display:grid;
  width:52px;
  height:52px;
  margin:0 auto 16px;
  place-items:center;
  border-radius:50%;
  background:#17a77a;
  color:white;
  font-size:30px;
  font-weight:700;
}
#screen-workout .workout-day-complete-card .card-label {
  display:block;
  margin:0 0 8px;
  color:#17231c;
  font-size:18px;
  font-weight:750;
}
#screen-workout .workout-day-complete-card .card-label span {
  color:#159c6d;
  font-size:22px;
}
#screen-workout .workout-day-complete-card h2 {
  margin:0 0 10px;
  color:#087653;
  font-size:34px;
  line-height:1.15;
  letter-spacing:-.04em;
}
#screen-workout .workout-day-complete-card .card-sub {
  margin:0;
  color:#64786e;
  font-size:15px;
  line-height:1.55;
}
@media (max-width:520px) {
  #screen-workout { padding:22px 20px calc(100px + env(safe-area-inset-bottom)); }
  #screen-workout .header { margin-bottom:25px; }
  #screen-workout .header h1 { font-size:34px; }
  #screen-workout #workout-scan-btn { min-height:82px; padding-left:86px; font-size:18px; }
  #screen-workout .workout-plan-card,
  #screen-workout .workout-next-plan-card,
  #screen-workout .workout-day-complete-card { padding:17px; border-radius:19px; }
  #screen-workout .workout-plan-card .circular-progress { width:170px; height:170px; }
  #screen-workout .workout-plan-card .circular-progress-legend { gap:14px; }
  #screen-workout .workout-plan-card .circular-legend-item { font-size:11px; }
  #screen-workout .workout-day-complete-card h2 { font-size:30px; }
}
@media (min-width:760px) {
  #screen-workout { max-width:560px; margin-inline:auto; }
}


/* Daily workout reminder: shown only after the 22-hour eligibility check. */
.workout-missing-card {
  border: 1px solid rgba(220, 53, 69, 0.28);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.09), rgba(255, 255, 255, 0.96));
}
.workout-missing-card .card-label,
.workout-missing-card h2 {
  color: #c62838;
}
.workout-missing-card h2 {
  margin: 8px 0;
}

.gym-intelligence-card .form-label { display:block; margin:12px 0 6px; font-size:12px; font-weight:700; }
.gym-intelligence-card .input { width:100%; min-height:42px; margin:5px 0; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#fff; color:var(--ink); font:inherit; }
.gym-intelligence-card .btn { margin-top:10px; }
.gym-intelligence-card details { margin-top:14px; color:var(--muted); font-size:13px; }
.gym-crowd-day { margin-top:16px; padding-top:12px; border-top:1px solid var(--border); }
.gym-crowd-day h3 { margin:0 0 10px; font-size:14px; }
.gym-crowd-hour { display:grid; grid-template-columns:44px minmax(40px,1fr) 38px 68px; align-items:center; gap:7px; margin:7px 0; font-size:11px; }
.gym-crowd-hour span,.gym-crowd-hour small { color:var(--muted); }
.gym-crowd-hour b { text-align:right; font-variant-numeric:tabular-nums; }
.gym-crowd-track { height:9px; overflow:hidden; border-radius:99px; background:#e9ece8; }
.gym-crowd-track i { display:block; height:100%; border-radius:inherit; background:#50b88b; }
.gym-crowd-track i.is-moderate { background:#e4ad4e; }
.gym-crowd-track i.is-busy { background:#df6b61; }
@media (max-width:380px) { .gym-crowd-hour { grid-template-columns:40px minmax(35px,1fr) 34px; } .gym-crowd-hour small { display:none; } }

/* FitOS gamification: compact card aligned with the existing cream, white and mint UI. */
.fitos-gamification-card{background:#fff;border:1px solid #e5e9e3;border-radius:20px;padding:18px;margin:16px 0;color:#202923;box-shadow:0 2px 10px rgba(25,50,35,.04)}
.fitos-gamification-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.fitos-gamification-eyebrow{font-size:11px;font-weight:800;letter-spacing:.09em;color:#68766e}
.fitos-gamification-xp{font-size:30px;line-height:1.15;font-weight:850;margin-top:5px;font-variant-numeric:tabular-nums}
.fitos-gamification-level{font-size:13px;color:#68766e;margin-top:3px}
.fitos-gamification-share{border:1px solid #bfe9d8;background:#effaf5;color:#176b50;border-radius:12px;padding:10px 13px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.fitos-gamification-track{height:8px;background:#edf1ed;border-radius:20px;overflow:hidden;margin-top:16px}
.fitos-gamification-track span{display:block;height:100%;width:0;background:#65cda5;border-radius:20px;transition:width .25s ease}
.fitos-gamification-next{font-size:12px;color:#68766e;margin-top:7px}
.fitos-gamification-recent{font-size:13px;font-weight:650;color:#286b52;margin-top:12px}
.fitos-gamification-rules{border-top:1px solid #edf0ec;margin-top:14px;padding-top:11px;font-size:13px;color:#536158}
.fitos-gamification-rules summary{font-weight:700;cursor:pointer;color:#27372e}
.fitos-gamification-rules ul{padding-left:19px;margin:10px 0 0;display:grid;gap:7px}
.fitos-gamification-rules li{padding-right:4px}
.fitos-gamification-rules li strong{float:right;color:#176b50;white-space:nowrap}
.fitos-gamification-note{font-size:11px;color:#8a948d;margin:12px 0 0}
@media(max-width:420px){.fitos-gamification-card{padding:15px}.fitos-gamification-xp{font-size:27px}.fitos-gamification-share{padding:9px 10px}}

.fitos-gamification-invite{display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:210px;text-align:right}
.fitos-gamification-invite-copy{font-size:11px;line-height:1.35;font-weight:750;color:#286b52}
.fitos-gamification-friends{height:23px;display:flex;align-items:flex-end;justify-content:flex-end;gap:5px;padding-right:5px}
.fitos-gamification-friends span{display:block;position:relative;width:12px;height:12px;border-radius:50%;background:#65cda5;animation:fitos-friend-bounce 1.15s ease-in-out infinite}
.fitos-gamification-friends span:after{content:"";position:absolute;left:1px;top:13px;width:10px;height:8px;border-radius:6px 6px 3px 3px;background:#bfe9d8}
.fitos-gamification-friends span:nth-child(2){background:#e8b77d;animation-delay:.16s}
.fitos-gamification-friends span:nth-child(2):after{background:#f3d9b8}
.fitos-gamification-friends span:nth-child(3){background:#8b9fd1;animation-delay:.32s}
.fitos-gamification-friends span:nth-child(3):after{background:#cbd4ee}
@keyframes fitos-friend-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){.fitos-gamification-friends span{animation:none}}


/* Friends leaderboard: structured, responsive member cards. */
.fitos-private-leaderboard{margin:22px 0 28px}
.fitos-private-leaderboard h3{margin:0 0 14px;font-size:clamp(20px,5vw,25px);line-height:1.2;font-weight:800;color:#202923}
.fitos-friend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.fitos-friend-card{min-width:0;background:#fff;border:1px solid #e3e9e3;border-radius:18px;padding:14px;box-shadow:0 3px 12px rgba(25,50,35,.045)}
.fitos-friend-card.is-you{border-color:#b9dfce;background:linear-gradient(145deg,#fff 0%,#f3faf6 100%)}
.fitos-friend-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.fitos-friend-rank{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 8px;border-radius:9px;background:#edf5f0;color:#286b52;font-size:12px;font-weight:850}
.fitos-friend-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e1f2e9;color:#286b52;font-size:16px;font-weight:850}
.fitos-friend-name{font-size:14px;line-height:1.35;font-weight:800;color:#202923;overflow-wrap:anywhere;min-height:38px}
.fitos-friend-stats{display:flex;flex-direction:column;gap:5px;margin-top:10px;padding-top:10px;border-top:1px solid #edf0ec;color:#748078;font-size:12px}
.fitos-friend-stats strong{color:#286b52;font-size:16px;font-weight:850;font-variant-numeric:tabular-nums}
.fitos-friends-empty{grid-column:1/-1;padding:18px;border:1px dashed #cbd8cf;border-radius:16px;background:#fff;color:#68766e;font-size:14px;line-height:1.5}
@media(max-width:360px){.fitos-friend-grid{grid-template-columns:1fr}.fitos-friend-card{padding:16px}}

/* Saved profile fields stay visibly read-only until Edit profile is selected. */
#screen-onboarding .card input:disabled,
#screen-onboarding .card select:disabled {
  background: #f4f5f1;
  color: #59645d;
  border-color: #e3e7e1;
  opacity: 1;
  cursor: default;
}
#screen-onboarding #onboarding-submit[hidden],
#screen-onboarding #onboarding-edit[hidden],
#screen-onboarding #onboarding-cancel[hidden] {
  display: none !important;
}


/* OpenStreetMap / Leaflet location cards */
.fitos-osm-map {
  width: 100%;
  min-height: 280px;
  height: 320px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--border, #dedbd2);
  border-radius: 16px;
  background: var(--surface, #f4f2ec);
  z-index: 0;
}
.fitos-osm-map .leaflet-container { width: 100%; height: 100%; min-height: 280px; font: inherit; }
.fitos-osm-map .leaflet-popup-content button { margin-top: 8px; white-space: normal; }
.fitos-osm-map .leaflet-control-attribution { font-size: 10px; }


/* ---------- Accessible light / dark theme ---------- */
:root {
  color-scheme: light;
  --surface: #f4f2ec;
  --surface-raised: #ffffff;
  --surface-soft: #f7f8f5;
  --text-primary: #14161a;
  --text-secondary: #68716d;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101512;
  --card: #1a211d;
  --ink: #edf3ee;
  --muted: #a0aaa3;
  --border: #303b34;
  --black-panel: #090e0b;
  --surface: #101512;
  --surface-raised: #1a211d;
  --surface-soft: #202923;
  --text-primary: #edf3ee;
  --text-secondary: #a0aaa3;
  --shadow: 0 2px 14px rgba(0,0,0,.22);
}
html[data-theme="dark"] body,
html[data-theme="dark"] #app { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .screen { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .food-tool-card,
html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .faq-list details,
html[data-theme="dark"] .friends-empty,
html[data-theme="dark"] .fitos-friend-card,
html[data-theme="dark"] .fitos-friends-empty {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
}
html[data-theme="dark"] .card-label,
html[data-theme="dark"] .header h1,
html[data-theme="dark"] .today-header h1,
html[data-theme="dark"] .guide-card h3,
html[data-theme="dark"] .faq-list summary,
html[data-theme="dark"] .fitos-private-leaderboard h3 { color: var(--ink); }
html[data-theme="dark"] .card-sub,
html[data-theme="dark"] .header p,
html[data-theme="dark"] .today-header p,
html[data-theme="dark"] .guide-card p,
html[data-theme="dark"] .faq-list p { color: var(--muted); }
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color: var(--ink);
  background: #151c18;
  border-color: var(--border);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #849088; }
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .button-glass {
  color: var(--ink);
  background: #202923;
  border-color: var(--border);
}
html[data-theme="dark"] .bottom-nav {
  background: rgba(24,31,27,.96);
  border-color: var(--border);
}
html[data-theme="dark"] .nav-item { color: #aab5ad; }
html[data-theme="dark"] .nav-item.active { color: #86e3c4; }
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .banner:not(.banner-error):not(.banner-success) {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--border);
}
html[data-theme="dark"] .site-header { background: rgba(16,21,18,.92); border-color: var(--border); }
html[data-theme="dark"] .site-navigation a:not(.button),
html[data-theme="dark"] .site-brand { color: var(--ink); }
html[data-theme="dark"] .landing-page { background: #101512; color: #edf3ee; }
html[data-theme="dark"] .landing-page .how-section,
html[data-theme="dark"] .landing-page .guide-section { background: #151c18; }
html[data-theme="dark"] .landing-page .how-copy,
html[data-theme="dark"] .landing-page .guide-card { color: #edf3ee; }
html[data-theme="dark"] .landing-page .how-video-heading h3 { color: #edf3ee; }
html[data-theme="dark"] .landing-page .how-video-heading > p:last-child { color: #a0aaa3; }
html[data-theme="dark"] .landing-page .how-video-frame { border-color: #303b34; }
html[data-theme="dark"] .landing-page .guide-card { background: #1a211d; border-color: #303b34; }
html[data-theme="dark"] .landing-page .guide-card p { color: #a0aaa3; }
html[data-theme="dark"] .landing-page .nutrition-note { background: #202923; color: #edf3ee; }
html[data-theme="dark"] .landing-page .nutrition-note p { color: #a0aaa3; }
.theme-toggle {
  position: fixed;
  z-index: 120;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(120,130,122,.28);
  border-radius: 999px;
  color: #202923;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 14px rgba(20,30,24,.12);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle-icon { font-size: 17px; line-height: 1; }
html[data-theme="dark"] .theme-toggle {
  color: #edf3ee;
  background: rgba(32,41,35,.96);
  border-color: #465349;
}
@media(max-width:680px) {
  .theme-toggle { min-height: 38px; padding: 7px 11px; }
  .theme-toggle-label { display: none; }
}


/* ---------- Dark theme completeness: app screens and gym check-in ---------- */
/* Keep page-level component rules from reintroducing light surfaces in dark mode. */
html[data-theme="dark"] #main-app,
html[data-theme="dark"] .screen,
html[data-theme="dark"] .screen.active {
  background-color: var(--bg);
  color: var(--ink);
}
html[data-theme="dark"] #screen-gym .card,
html[data-theme="dark"] #screen-gym-scan .card,
html[data-theme="dark"] #screen-gym-scan .food-tool-card {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] #screen-gym .card-label,
html[data-theme="dark"] #screen-gym .form-label,
html[data-theme="dark"] #screen-gym strong,
html[data-theme="dark"] #screen-gym .exercise-name,
html[data-theme="dark"] #screen-gym h2,
html[data-theme="dark"] #screen-gym h3,
html[data-theme="dark"] #screen-gym summary {
  color: var(--ink);
}
html[data-theme="dark"] #screen-gym .card-sub,
html[data-theme="dark"] #screen-gym p,
html[data-theme="dark"] #screen-gym details,
html[data-theme="dark"] #screen-gym .exercise-meta {
  color: var(--muted);
}
html[data-theme="dark"] #screen-gym .input,
html[data-theme="dark"] #screen-gym input,
html[data-theme="dark"] #screen-gym select,
html[data-theme="dark"] #screen-gym textarea {
  color: var(--ink);
  background-color: #151c18;
  border-color: var(--border);
}
html[data-theme="dark"] #screen-gym .input::placeholder,
html[data-theme="dark"] #screen-gym input::placeholder {
  color: #9aa79e;
  opacity: 1;
}
html[data-theme="dark"] #screen-gym .exercise-row {
  border-color: var(--border);
  color: var(--ink);
}
html[data-theme="dark"] #screen-gym .pill-muted {
  color: #c2ccc4;
  background: #263129;
  border-color: #465349;
}
html[data-theme="dark"] #screen-gym .empty-state,
html[data-theme="dark"] #screen-gym .gym-crowd-day,
html[data-theme="dark"] #screen-gym .gym-intelligence-card details {
  color: var(--muted);
  border-color: var(--border);
}
html[data-theme="dark"] #screen-gym .gym-crowd-track {
  background: #303b34;
}
html[data-theme="dark"] #screen-gym .fitos-osm-map {
  background: #17211b;
  border-color: var(--border);
}
html[data-theme="dark"] #screen-gym .leaflet-container {
  background: #17211b;
}
html[data-theme="dark"] #screen-gym .leaflet-control,
html[data-theme="dark"] #screen-gym .leaflet-popup-content-wrapper,
html[data-theme="dark"] #screen-gym .leaflet-popup-tip {
  color: #edf3ee;
  background: #1a211d;
}
html[data-theme="dark"] #screen-gym .leaflet-bar a {
  color: #edf3ee;
  background: #202923;
  border-color: #465349;
}
html[data-theme="dark"] #screen-gym .leaflet-control-attribution {
  color: #a0aaa3;
  background: rgba(26,33,29,.88);
}
html[data-theme="dark"] #screen-gym .leaflet-control-attribution a {
  color: #9bd8bd;
}
/* Theme-aware cards generated by the gym and workout screens. */
html[data-theme="dark"] #screen-gym-scan [style*="background:#fff"],
html[data-theme="dark"] #screen-gym-scan [style*="background: #fff"],
html[data-theme="dark"] #screen-gym-scan [style*="background:#f8f9fa"],
html[data-theme="dark"] #screen-gym-scan [style*="background: #f8f9fa"] {
  background: var(--card) !important;
  color: var(--ink) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] #screen-gym-scan [style*="color:#666"],
html[data-theme="dark"] #screen-gym-scan [style*="color: #666"] {
  color: var(--muted) !important;
}

/* Gym form labels must remain readable in both themes. */
#screen-gym .gym-intelligence-card .form-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}


/* ---------- FitOS global theme parity (all app routes) ---------- */
/* Theme tokens are applied at the document root so dynamically rendered screens
   inherit the same palette as the shell and navigation. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2ec;
  --card: #ffffff;
  --ink: #17211b;
  --muted: #68756d;
  --border: #e2e7e1;
  --black-panel: #141a16;
  --surface: #f4f2ec;
  --surface-raised: #ffffff;
  --surface-soft: #f7f9f6;
  --text-primary: #17211b;
  --text-secondary: #68756d;
  --shadow: 0 2px 10px rgba(20, 35, 25, .06);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101512;
  --card: #1a211d;
  --ink: #edf3ee;
  --muted: #a0aaa3;
  --border: #303b34;
  --black-panel: #090e0b;
  --surface: #101512;
  --surface-raised: #1a211d;
  --surface-soft: #202923;
  --text-primary: #edf3ee;
  --text-secondary: #a0aaa3;
  --shadow: 0 2px 14px rgba(0, 0, 0, .22);
}

html[data-theme] body,
html[data-theme] #app,
html[data-theme] #main-app,
html[data-theme] .screen,
html[data-theme] .screen.active {
  background-color: var(--bg);
  color: var(--ink);
}
html[data-theme] .header h1,
html[data-theme] .header h2,
html[data-theme] .header h3,
html[data-theme] .card-label,
html[data-theme] .form-label,
html[data-theme] label,
html[data-theme] .exercise-name,
html[data-theme] .section-title,
html[data-theme] .gym-intelligence-card strong,
html[data-theme] .gym-intelligence-card summary {
  color: var(--ink);
}
html[data-theme] .header p,
html[data-theme] .card-sub,
html[data-theme] .muted,
html[data-theme] .exercise-meta,
html[data-theme] .gym-intelligence-card details,
html[data-theme] .gym-crowd-hour span,
html[data-theme] .gym-crowd-hour small {
  color: var(--muted);
}
html[data-theme] .card,
html[data-theme] .gym-intelligence-card,
html[data-theme] .food-tool-card,
html[data-theme] .guide-card,
html[data-theme] .exercise-card,
html[data-theme] .workout-card,
html[data-theme] .friends-empty,
html[data-theme] .fitos-friend-card,
html[data-theme] .fitos-friends-empty {
  background: var(--card);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
html[data-theme] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme] select,
html[data-theme] textarea,
html[data-theme] .input,
html[data-theme] .gym-intelligence-card .input {
  color: var(--ink);
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
}
html[data-theme] input::placeholder,
html[data-theme] textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
html[data-theme] .btn-outline,
html[data-theme] .button-glass {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--border);
}
html[data-theme] .bottom-nav {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--border);
}
html[data-theme] .nav-item { color: var(--muted); }
html[data-theme] .nav-item.active { color: #237653; }
html[data-theme] .empty-state {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--border);
}
html[data-theme] .gym-intelligence-card .form-label {
  color: var(--ink);
  opacity: 1;
}
html[data-theme] .gym-intelligence-card .input {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: var(--surface-raised);
}
html[data-theme] .gym-crowd-day { border-color: var(--border); }
html[data-theme] .gym-crowd-track { background: var(--border); }
html[data-theme] .fitos-osm-map {
  background: var(--surface-soft);
  border-color: var(--border);
}
html[data-theme] .leaflet-container { background: var(--surface-soft); }
html[data-theme] .leaflet-control,
html[data-theme] .leaflet-popup-content-wrapper,
html[data-theme] .leaflet-popup-tip {
  color: var(--ink);
  background: var(--surface-raised);
}
html[data-theme] .leaflet-bar a {
  color: var(--ink);
  background: var(--surface-raised);
  border-color: var(--border);
}
html[data-theme] .leaflet-control-attribution {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
}
html[data-theme] .leaflet-control-attribution a { color: #23815a; }

html[data-theme="dark"] .bottom-nav { background: rgba(24, 31, 27, .98); }
html[data-theme="dark"] .nav-item.active { color: #86e3c4; }
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .button-glass { background: #202923; }
html[data-theme="dark"] .gym-intelligence-card .input,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color: #edf3ee;
  background-color: #151c18;
  border-color: #3b493f;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #a0aaa3; }
html[data-theme="dark"] .leaflet-control-attribution a { color: #9bd8bd; }

/* Keep the floating theme control legible regardless of page background. */
html[data-theme="light"] .theme-toggle {
  color: #17211b;
  background: rgba(255, 255, 255, .96);
  border-color: #cbd5cd;
}
html[data-theme="dark"] .theme-toggle {
  color: #edf3ee;
  background: rgba(32, 41, 35, .97);
  border-color: #465349;
}


/* ---------- Final component-level theme coverage ---------- */
/* Scoped overrides win over legacy screen-specific colors without changing layout. */
html[data-theme="light"] #screen-gym .card,
html[data-theme="light"] #screen-gym-scan .card,
html[data-theme="light"] #screen-gym-scan .food-tool-card,
html[data-theme="light"] #screen-gym .gym-intelligence-card {
  background:#fff !important; color:#17211b !important; border-color:#e2e7e1 !important;
}
html[data-theme="dark"] #screen-gym .card,
html[data-theme="dark"] #screen-gym-scan .card,
html[data-theme="dark"] #screen-gym-scan .food-tool-card,
html[data-theme="dark"] #screen-gym .gym-intelligence-card {
  background:#1a211d !important; color:#edf3ee !important; border-color:#303b34 !important;
  box-shadow:0 2px 14px rgba(0,0,0,.22) !important;
}
html[data-theme="dark"] #screen-gym .card-label,
html[data-theme="dark"] #screen-gym .form-label,
html[data-theme="dark"] #screen-gym strong,
html[data-theme="dark"] #screen-gym h2,
html[data-theme="dark"] #screen-gym h3,
html[data-theme="dark"] #screen-gym summary,
html[data-theme="dark"] #screen-gym-scan h1,
html[data-theme="dark"] #screen-gym-scan h2,
html[data-theme="dark"] #screen-gym-scan h3,
html[data-theme="dark"] #screen-gym-scan label { color:#edf3ee !important; }
html[data-theme="dark"] #screen-gym .card-sub,
html[data-theme="dark"] #screen-gym p,
html[data-theme="dark"] #screen-gym details,
html[data-theme="dark"] #screen-gym-scan .card-sub,
html[data-theme="dark"] #screen-gym-scan p { color:#a0aaa3; }
html[data-theme="dark"] #screen-gym .input,
html[data-theme="dark"] #screen-gym input,
html[data-theme="dark"] #screen-gym select,
html[data-theme="dark"] #screen-gym-scan .input,
html[data-theme="dark"] #screen-gym-scan input,
html[data-theme="dark"] #screen-gym-scan select,
html[data-theme="dark"] #screen-gym-scan textarea {
  color:#edf3ee !important; background:#151c18 !important; border-color:#3b493f !important;
}
html[data-theme="dark"] #screen-gym input::placeholder,
html[data-theme="dark"] #screen-gym-scan input::placeholder { color:#a0aaa3 !important; opacity:1; }

/* Rewards and friends leaderboard */
html[data-theme="light"] .fitos-private-leaderboard h3,
html[data-theme="light"] .fitos-friend-name { color:#202923 !important; }
html[data-theme="dark"] .fitos-private-leaderboard h3,
html[data-theme="dark"] .fitos-friend-name { color:#edf3ee !important; }
html[data-theme="dark"] .fitos-gamification-card,
html[data-theme="dark"] .fitos-friend-card,
html[data-theme="dark"] .fitos-friends-empty {
  background:#1a211d !important; color:#edf3ee !important; border-color:#303b34 !important;
}
html[data-theme="dark"] .fitos-friend-card.is-you {
  background:linear-gradient(145deg,#202923 0%,#17221c 100%) !important; border-color:#42634f !important;
}
html[data-theme="dark"] .fitos-friend-stats { color:#a0aaa3 !important; border-color:#303b34 !important; }
html[data-theme="dark"] .fitos-gamification-eyebrow,
html[data-theme="dark"] .fitos-gamification-level,
html[data-theme="dark"] .fitos-gamification-next,
html[data-theme="dark"] .fitos-gamification-rules,
html[data-theme="dark"] .fitos-gamification-note { color:#a0aaa3 !important; }
html[data-theme="dark"] .fitos-gamification-rules summary { color:#edf3ee !important; }
html[data-theme="dark"] .fitos-gamification-track { background:#303b34 !important; }

/* Diet scanner and nutrition forms */
html[data-theme="dark"] #screen-diet .food-tracker,
html[data-theme="dark"] #screen-diet .food-tool-card {
  background:#1a211d !important; color:#edf3ee !important; border-color:#303b34 !important;
}
html[data-theme="dark"] #screen-diet .food-tracker-heading h2,
html[data-theme="dark"] #screen-diet .food-tool-card h3,
html[data-theme="dark"] #screen-diet label,
html[data-theme="dark"] #screen-diet .form-label { color:#edf3ee !important; }
html[data-theme="dark"] #screen-diet .food-tracker-heading > p:last-child,
html[data-theme="dark"] #screen-diet .food-tool-card p,
html[data-theme="dark"] #screen-diet .food-data-note { color:#a0aaa3 !important; }
html[data-theme="dark"] #screen-diet .food-tracker-tabs button:not(.active) {
  background:#202923 !important; color:#edf3ee !important; border-color:#303b34 !important;
}
html[data-theme="dark"] #screen-diet input,
html[data-theme="dark"] #screen-diet select,
html[data-theme="dark"] #screen-diet textarea {
  background:#151c18 !important; color:#edf3ee !important; border-color:#3b493f !important;
}
html[data-theme="dark"] #screen-diet input::placeholder,
html[data-theme="dark"] #screen-diet textarea::placeholder { color:#a0aaa3 !important; opacity:1; }

/* Loading/empty states and navigation use the same theme tokens. */
html[data-theme="light"] .empty-state { color:#68756d; background:transparent; }
html[data-theme="dark"] .empty-state { color:#a0aaa3; background:transparent; }
html[data-theme="dark"] .banner:not(.banner-error):not(.banner-success) {
  color:#cbd8cf; background:#202923; border-color:#303b34;
}
html[data-theme="light"] #bottom-nav { background:rgba(255,255,255,.97); border-color:#e2e7e1; }
html[data-theme="dark"] #bottom-nav { background:rgba(24,31,27,.98); border-color:#303b34; }
html[data-theme="dark"] #bottom-nav .nav-item { color:#a0aaa3; }
html[data-theme="dark"] #bottom-nav .nav-item.active { color:#86e3c4; }
html[data-theme="dark"] #bottom-nav .nav-item.active .nav-icon { background:#20392d; }
html[data-theme="dark"] button:disabled,
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled {
  color:#849088; background-color:#202923; border-color:#303b34; opacity:1;
}


/* ======================================================================
   THEME ROOT-CAUSE FIX
   The in-app shell (#main-app, .screen, .card, workout/gym/diet cards) was
   styled with a separate, hard-coded --fitos-* palette. Those rules use an
   #id selector, so they beat every `html[data-theme] ...` override and kept
   the page LIGHT while text/cards switched to DARK-theme colours.
   Fix: make the --fitos-* palette itself theme-aware, then re-colour the few
   components that still hard-code light surfaces.
   ====================================================================== */
html[data-theme="light"] {
  --fitos-app-bg: #f5f6f2;
  --fitos-card: #ffffff;
  --fitos-ink: #17231c;
  --fitos-muted: #778078;
  --fitos-border: #e7ebe5;
  --fitos-line: #e3e9e3;
  --fitos-surface: #fbfcfa;
  --fitos-mint: #e5f4eb;
}
html[data-theme="dark"] {
  --fitos-app-bg: #101512;
  --fitos-card: #1a211d;
  --fitos-ink: #edf3ee;
  --fitos-muted: #a0aaa3;
  --fitos-border: #303b34;
  --fitos-line: #303b34;
  --fitos-surface: #1a211d;
  --fitos-mint: #20392d;
}

/* ---------- Dark: shell, headings, shared components ---------- */
html[data-theme="dark"] #main-app,
html[data-theme="dark"] #main-app > .screen,
html[data-theme="dark"] #screen-workout { background: var(--fitos-app-bg); color: var(--fitos-ink); }
html[data-theme="dark"] .screen .header h1,
html[data-theme="dark"] #screen-workout .header h1,
html[data-theme="dark"] #screen-diet .food-tracker-heading h2 { color: var(--fitos-ink); }
html[data-theme="dark"] #screen-workout .header p,
html[data-theme="dark"] #screen-workout .workout-cycle-line { color: var(--fitos-muted); }
html[data-theme="dark"] #screen-gym .card-value,
html[data-theme="dark"] #screen-gym-scan .card-value { color: #86e3c4; }

html[data-theme="dark"] #main-app .btn-outline {
  background: #202923; color: var(--fitos-ink); border-color: var(--fitos-border);
}
html[data-theme="dark"] #main-app .chip,
html[data-theme="dark"] #main-app .chip-group button,
html[data-theme="dark"] #main-app .equipment-chip,
html[data-theme="dark"] #main-app .equipment-option,
html[data-theme="dark"] #main-app .choice-chip {
  background: #202923; color: #cbd8cf; border-color: var(--fitos-border);
}
html[data-theme="dark"] #main-app .chip.selected,
html[data-theme="dark"] #main-app .chip.active,
html[data-theme="dark"] #main-app .equipment-chip.selected,
html[data-theme="dark"] #main-app .equipment-option.selected,
html[data-theme="dark"] #main-app .choice-chip.selected {
  background: #20392d; color: #9bd8bd; border-color: #2f5b45;
}

/* ---------- Dark: workout screen ---------- */
html[data-theme="dark"] #screen-workout .workout-session-card,
html[data-theme="dark"] #screen-workout .workout-session,
html[data-theme="dark"] #screen-workout .workout-summary,
html[data-theme="dark"] #screen-workout .workout-next-card,
html[data-theme="dark"] #screen-workout .workout-plan-card,
html[data-theme="dark"] #screen-workout .workout-next-plan-card {
  background: var(--fitos-card); color: var(--fitos-ink); border-color: var(--fitos-border);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] #screen-workout .workout-day-complete-card {
  background: linear-gradient(145deg, #1d3027 0%, #17261e 100%);
  border-color: #2f5b45; color: var(--fitos-ink);
}
html[data-theme="dark"] #screen-workout .workout-day-complete-card h2 { color: #86e3c4; }
html[data-theme="dark"] #screen-workout .workout-day-complete-card .card-label span { color: #86e3c4; }
html[data-theme="dark"] #screen-workout .workout-plan-card .card-label,
html[data-theme="dark"] #screen-workout .workout-day-complete-card .card-label,
html[data-theme="dark"] #screen-workout .workout-session h2,
html[data-theme="dark"] #screen-workout .workout-session-card h2,
html[data-theme="dark"] #screen-workout .workout-next-card h2 { color: var(--fitos-ink); }
html[data-theme="dark"] #screen-workout .workout-session-top,
html[data-theme="dark"] #screen-workout .workout-session-meta,
html[data-theme="dark"] #screen-workout .workout-next-top { color: var(--fitos-muted); }
html[data-theme="dark"] #screen-workout .workout-progress-track { background: #303b34; }
html[data-theme="dark"] #screen-workout #workout-scan-btn {
  background: #17261e; border-color: #2f5b45; color: var(--fitos-ink);
}
html[data-theme="dark"] #screen-workout .workout-plan-card .pill {
  background: #3a2f17; color: #e8b862;
}
html[data-theme="dark"] .workout-missing-card {
  background: linear-gradient(135deg, rgba(224,90,78,.16), #1a211d);
  border-color: rgba(224,90,78,.35);
}

/* ---------- Dark: gym "choose your gym" modal ---------- */
html[data-theme="dark"] .gym-choice-modal {
  background: var(--fitos-card); color: var(--fitos-ink); border-color: var(--fitos-border);
}
html[data-theme="dark"] .gym-choice-modal h2 { color: var(--fitos-ink); }
html[data-theme="dark"] .gym-choice-icon { background: #20392d; color: #86e3c4; }
html[data-theme="dark"] .gym-choice-eyebrow { color: #86e3c4; }
html[data-theme="dark"] .gym-choice-summary { background: #202923; color: var(--fitos-ink); }
html[data-theme="dark"] .gym-choice-actions button {
  background: #202923; color: var(--fitos-ink); border-color: var(--fitos-border);
}
html[data-theme="dark"] .gym-choice-actions .gym-choice-no:hover { background: #2a352d; }

/* ---------- Dark: rewards / friends leftovers ---------- */
html[data-theme="dark"] .fitos-friend-rank,
html[data-theme="dark"] .fitos-friend-avatar { background: #20392d; color: #86e3c4; }
html[data-theme="dark"] .fitos-gamification-share {
  background: #20392d; color: #9bd8bd; border-color: #2f5b45;
}
html[data-theme="dark"] .fitos-gamification-rules li strong { color: #9bd8bd; }

/* ---------- Dark: inline styles written by app.js template strings ---------- */
html[data-theme="dark"] #main-app [style*="background:#fff8e1"] {
  background: #33290f !important; border-color: #5b4a1c !important; color: #f1e3b5 !important;
}
html[data-theme="dark"] #main-app [style*="background:#f8f9fa"] {
  background: #202923 !important; color: var(--fitos-ink) !important;
}
html[data-theme="dark"] #main-app [style*="background:#fee2e2"] {
  background: #4a1f1f !important; color: #fca5a5 !important;
}


   AUTO-GENERATED DARK OVERRIDES
   Every rule above that hard-codes a light surface, dark text or light border
   gets a matching dark-theme override here, so no component can stay light.
   ====================================================================== */
/* from styles.css */
html[data-theme="dark"] .grow-impact-card { background:linear-gradient(145deg, #1a211d 12%, #1c3b2a 100%) }
html[data-theme="dark"] .grow-impact-heading h2 span { color:#a0aaa3 }
html[data-theme="dark"] .grow-impact-month { color:#95dabc; background:#1c3b28 }
html[data-theme="dark"] .grow-impact-progress,
html[data-theme="dark"] .grow-impact-stage-track { background:#303b34 }
html[data-theme="dark"] .grow-impact-encouragement { color:#91dec4 }
html[data-theme="dark"] .grow-impact-rest-note,
html[data-theme="dark"] .grow-impact-virtual-label,
html[data-theme="dark"] .grow-impact-partner-note { color:#a0aaa3 }
html[data-theme="dark"] .grow-impact-feedback { color:#dd9992 }
html[data-theme="dark"] .grow-impact-unlocked { color:#90dfbf }
html[data-theme="dark"] .grow-impact-option { border:1px solid #303b34; background:rgba(26,33,29,0.80) }
html[data-theme="dark"] .grow-impact-option:hover,
html[data-theme="dark"] .grow-impact-option.is-selected { background:#1c3b25 }
html[data-theme="dark"] .grow-impact-option img,
html[data-theme="dark"] .grow-impact-choice-preview img,
html[data-theme="dark"] .grow-impact-tree-card img { background:#1e391e }
html[data-theme="dark"] .grow-impact-option small,
html[data-theme="dark"] .grow-impact-tree-copy span,
html[data-theme="dark"] .grow-impact-choice-preview span { color:#a0aaa3 }
html[data-theme="dark"] .grow-impact-option-check { color:#9bd4b6; background:#1c3b23 }
html[data-theme="dark"] .grow-impact-choice-preview,
html[data-theme="dark"] .grow-impact-tree-card { background:#202923 }
html[data-theme="dark"] .grow-impact-choice-preview small,
html[data-theme="dark"] .grow-impact-tree-copy small { color:#a0aaa3 }
html[data-theme="dark"] .grow-impact-stage-line { color:#9ad6b7 }
html[data-theme="dark"] .grow-impact-stage-line span:last-child { color:#a0aaa3 }
html[data-theme="dark"] .grow-impact-month-label input { border:1px solid #37583f; color:#95dabc; background:#202923 }
html[data-theme="dark"] .grow-impact-calendar-stats span { border:1px solid #303b34; color:#a0aaa3; background:rgba(26,33,29,0.72) }
html[data-theme="dark"] .grow-impact-calendar-stats strong { color:#91dec4 }
html[data-theme="dark"] .grow-impact-location-line { color:#a0aaa3 }
html[data-theme="dark"] .grow-impact-calendar-warning { color:#dfc390; background:#3b331c }
html[data-theme="dark"] .grow-impact-growth { border:1px solid #38563f; background:rgba(26,33,29,0.68) }
html[data-theme="dark"] .grow-impact-growth-copy { color:#98d7b8 }
html[data-theme="dark"] .grow-impact-growth-copy span { color:#a0aaa3 }
html[data-theme="dark"] .grow-impact-celebration { border:1px solid #2b6438; color:#90dfb9; background:linear-gradient(115deg, #1c3b21, #323b1c) }
html[data-theme="dark"] .grow-impact-celebration span { color:#b1beb5 }
html[data-theme="dark"] .grow-impact-calendar-settings { border-top:1px solid #303b34; color:#b1beb7 }
html[data-theme="dark"] .grow-impact-calendar-settings summary { color:#9ad6b7 }
html[data-theme="dark"] .grow-impact-calendar-settings > p { color:#a0aaa3 }
html[data-theme="dark"] .grow-impact-setting-label { color:#b1bfb7 }
html[data-theme="dark"] .grow-impact-setting-label select,
html[data-theme="dark"] .grow-impact-setting-label input { border:1px solid #39563e; color:#edf3ee; background:#1a211d }
html[data-theme="dark"] .grow-impact-holiday { background:rgba(26,33,29,0.65) }
html[data-theme="dark"] .grow-impact-closure-list li { background:#202923 }
html[data-theme="dark"] .grow-impact-closure-list button { color:#d69f99 }
html[data-theme="dark"] .btn-outline { background:#1a211d }
html[data-theme="dark"] .btn-danger { background:#3b201c }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select { background:#1a211d }
html[data-theme="dark"] .chip { background:#1a211d }
html[data-theme="dark"] .banner-error { background:#3b201c }
html[data-theme="dark"] .banner-info { background:#1c2b3b; color:#90b5df }
html[data-theme="dark"] .banner-success { background:#1c3b2c; color:#90dfc1 }
html[data-theme="dark"] .meal-fact { background:#3b331c; border-color:#64562b }
html[data-theme="dark"] .meal-skeleton b { background:linear-gradient(90deg, #37301f 25%, #202923 50%, #37301f 75%) }
html[data-theme="dark"] .dish-reasons span { background:#1c3b2c; color:#90dfc1 }
html[data-theme="dark"] .cycle-progress { background:#202923 }
html[data-theme="dark"] .cycle-unit.cycle-next .cycle-marker { background:#1a211d; color:#90b5df }
html[data-theme="dark"] .cycle-unit.cycle-done .cycle-label { color:#90dfc1 }
html[data-theme="dark"] .cycle-unit.cycle-next .cycle-label { color:#90b5df }
html[data-theme="dark"] .pill-success { background:#1c3b2c; color:#90dfc1; border:1px solid #2b6445 }
html[data-theme="dark"] .pill-muted { background:#39321e }
html[data-theme="dark"] .workout-session-meta span { color:#b2b8bd }
html[data-theme="dark"] .workout-next-card { background:#1a211d }
html[data-theme="dark"] .workout-tags span { background:#202923; color:#b1b7be }
html[data-theme="dark"] .workout-target { background:#303b34 }
html[data-theme="dark"] .workout-target span { color:#b1b7bf }
html[data-theme="dark"] .workout-instructions { color:#b2b7bd }
html[data-theme="dark"] .workout-set-log .workout-eyebrow { color:#96d9c3 }
html[data-theme="dark"] .workout-set-inputs label { color:#b2b7bd }
html[data-theme="dark"] .workout-set-inputs input { background:#1a211d }
html[data-theme="dark"] .workout-exercise-list { background:#1a211d }
html[data-theme="dark"] .workout-exercise-row.active .workout-exercise-state { color:#90dfc2 }
html[data-theme="dark"] .workout-exercise-row.done .workout-exercise-state { color:#90dfc2 }
html[data-theme="dark"] .exercise-demo-play { border:1px solid rgba(48,59,52,0.65) }
html[data-theme="dark"] .exercise-captions { color:#90dfc2 }
html[data-theme="dark"] .exercise-demo-fallback { background:#1a211d }
html[data-theme="dark"] .exercise-demo-fallback p { color:#a0aaa3 }
html[data-theme="dark"] .exercise-chat-form { background:#202923 }
html[data-theme="dark"] .exercise-chat-form label { color:#b2b7bd }
html[data-theme="dark"] .exercise-chat-form textarea { background:#1a211d }
html[data-theme="dark"] .exercise-chat-answer { color:#afb8c0 }
html[data-theme="dark"] .workout-edit-form { background:#202923 }
html[data-theme="dark"] .workout-edit-form label { color:#b2b7bd }
html[data-theme="dark"] .workout-edit-form input,
html[data-theme="dark"] .workout-edit-form select { background:#1a211d }
html[data-theme="dark"] .workout-edit-suggestions { background:#1a211d }
html[data-theme="dark"] .workout-edit-suggestions select { background:#1a211d }
html[data-theme="dark"] .workout-complete-card { border:1px solid #2b6445; background:#1c3b2c }
html[data-theme="dark"] .workout-complete-card p { color:#b0bfb9 }
html[data-theme="dark"] .workout-next-hint { border-top:1px solid #2b6445; color:#b0bfb9 }
html[data-theme="dark"] .skip-link { background:#203729; color:#edf3ee !important }
html[data-theme="dark"] .button-mint { color:#edf3ee !important }
html[data-theme="dark"] .button-dark { background:#203729; color:#edf3ee !important }
html[data-theme="dark"] .button-dark:hover { background:#1a211d }
html[data-theme="dark"] .button-glass { border-color:rgba(43,100,66,0.19) }
html[data-theme="dark"] .button-glass:hover { border-color:rgba(43,100,66,0.38) }
html[data-theme="dark"] .eyebrow { color:#a3cdb7 }
html[data-theme="dark"] .hero-scene { border:1px solid rgba(43,100,62,0.17) }
html[data-theme="dark"] .preview-card { border:1px solid rgba(43,100,59,0.16) }
html[data-theme="dark"] .preview-exercise { border-top:1px solid rgba(43,100,66,0.10) }
html[data-theme="dark"] .preview-equipment { border-top:1px solid rgba(43,100,66,0.10) }
html[data-theme="dark"] .preview-equipment b { border:1px solid rgba(43,100,69,0.10) }
html[data-theme="dark"] .preview-float { border:1px solid rgba(44,99,59,0.16) }
html[data-theme="dark"] .preview-float-check { background:#1c3b27; color:#a3ccaf }
html[data-theme="dark"] .features-section { background:#303b34; color:#edf3ee }
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .how-copy h2,
html[data-theme="dark"] .closing-cta h2 { color:#edf3ee }
html[data-theme="dark"] .section-heading h2 span,
html[data-theme="dark"] .how-copy h2 span { color:#9fd0b6 }
html[data-theme="dark"] .section-heading > p:last-child { color:#a0aaa3 }
html[data-theme="dark"] .feature-card { border:1px solid #4d523d; background:#202923 }
html[data-theme="dark"] .feature-art { background:#223424 }
html[data-theme="dark"] .feature-kicker { color:#a6c9af }
html[data-theme="dark"] .feature-copy h3 { color:#edf3ee }
html[data-theme="dark"] .feature-copy > p:not(.feature-kicker) { color:#a0aaa3 }
html[data-theme="dark"] .text-link { color:#9bd4b4 !important }
html[data-theme="dark"] .equipment-art { background:radial-gradient(circle at 48% 48%, #253b1c, #203725) }
html[data-theme="dark"] .art-scan { color:#a1ceb2 }
html[data-theme="dark"] .swap-art { background:radial-gradient(circle at center, #243620, #223526) }
html[data-theme="dark"] .swap-node { background:#202923; color:#a3ccb4 }
html[data-theme="dark"] .swap-node-next { background:#1f3b1c }
html[data-theme="dark"] .swap-path { color:#a0d0b1 }
html[data-theme="dark"] .swap-caption { color:#a7c8b3 }
html[data-theme="dark"] .food-art { background:radial-gradient(circle at center, #3b311c, #39361d) }
html[data-theme="dark"] .food-leaf { color:#a5caa9 }
html[data-theme="dark"] .food-bowl { background:linear-gradient(145deg,#3b341c,#2a3b1c) }
html[data-theme="dark"] .food-label { color:#d4be9b }
html[data-theme="dark"] .adaptive-art { background:radial-gradient(circle at center, #1c3b23, #223527) }
html[data-theme="dark"] .adaptive-label { background:rgba(32,41,35,0.84); color:#a9c6af }
html[data-theme="dark"] .how-stamp { border:1px solid rgba(43,100,54,0.25) }
html[data-theme="dark"] .how-callout { border:1px solid #46533c; background:#1a211d }
html[data-theme="dark"] .callout-icon { color:#9ed1af }
html[data-theme="dark"] .how-callout b { color:#edf3ee }
html[data-theme="dark"] .how-callout small { color:#a0aaa3 }
html[data-theme="dark"] .how-lede { color:#a0aaa3 }
html[data-theme="dark"] .step-number { color:#a1ceb3 }
html[data-theme="dark"] .steps-list b { color:#edf3ee }
html[data-theme="dark"] .nutrition-note { border:1px solid #3a553a; background:#263720 }
html[data-theme="dark"] .nutrition-symbol { background:#1d3a1f; color:#9fd0ae }
html[data-theme="dark"] .nutrition-note h2 { color:#a9c6b6 }
html[data-theme="dark"] .nutrition-note p:not(.feature-kicker) { color:#b2bdb5 }
html[data-theme="dark"] .guide-card { border:1px solid #303b34; background:#202923 }
html[data-theme="dark"] .guide-card > span { color:#aac5b1 }
html[data-theme="dark"] .guide-card h3 { color:#edf3ee }
html[data-theme="dark"] .guide-card p { color:#a0aaa3 }
html[data-theme="dark"] .faq-list { border-top:1px solid rgba(48,95,59,0.16) }
html[data-theme="dark"] .faq-list details { border-bottom:1px solid rgba(48,95,59,0.16) }
html[data-theme="dark"] .today-profile-button { background:#1a211d }
html[data-theme="dark"] .today-profile-button:hover { background:#202923 }
html[data-theme="dark"] .today-workout-status { color:#acc3b3 }
html[data-theme="dark"] .today-plan-lock { border:1px solid #303b34; background:#202923; color:#a0aaa3 }
html[data-theme="dark"] .today-workout-warning { color:#c4bfab }
html[data-theme="dark"] .today-stat-card { background:#1a211d }
html[data-theme="dark"] .today-stat-heading .today-icon { color:#a0aaa3 }
html[data-theme="dark"] .today-grow-card.grow-impact-card { background:#1a211d }
html[data-theme="dark"] .today-month-select { color:#a8c7b3; background:#202923 }
html[data-theme="dark"] .today-grow-progress { background:#303b34 }
html[data-theme="dark"] .today-grow-metrics > div { background:#202923 }
html[data-theme="dark"] .today-grow-complete { color:#a8c7b3 }
html[data-theme="dark"] .today-grow-feedback { color:#dd9992 }
html[data-theme="dark"] .today-retry-button { background:#1a211d }
html[data-theme="dark"] .bottom-nav { border-top-color:#303b34; background:rgba(26,33,29,0.97) }
html[data-theme="dark"] .nav-item { color:#a0aaa3 }
html[data-theme="dark"] .nav-item.active { color:#a2cdb1 }
html[data-theme="dark"] .nav-item.active .nav-icon { background:#213625 }
html[data-theme="dark"] .price-guess-copy h2 span { color:#a2cdba }
html[data-theme="dark"] .price-guess-note { color:#a0aaa3 }
html[data-theme="dark"] .price-guess-note > span:first-child { color:#a2cdba }
html[data-theme="dark"] .price-guess-input-wrap { border:1px solid #303b34; background:#202923 }
html[data-theme="dark"] .price-guess-input-wrap > span { color:#a2cdba }
html[data-theme="dark"] .price-guess-feedback { color:#a2cdba }
html[data-theme="dark"] .price-guess-average { background:#202923 }
html[data-theme="dark"] .price-guess-average-label { color:#afc0b6 }
html[data-theme="dark"] .price-guess-average strong { color:#9dd2b8 }
html[data-theme="dark"] .price-guess-count { color:#a0aaa3 }
html[data-theme="dark"] .not-found-screen h1 span { color:#a2cdba }
html[data-theme="dark"] .fitos-consent-banner { border:1px solid #3e5144; background:#1a211d; color:#edf3ee }
html[data-theme="dark"] .fitos-consent-copy p { color:#a0aaa3 }
html[data-theme="dark"] .fitos-consent-copy a { color:#97d8bd }
html[data-theme="dark"] .fitos-consent-actions button,
html[data-theme="dark"] .fitos-cookie-settings { border:1px solid #3e5042; background:#1a211d; color:#abc4b6 }
html[data-theme="dark"] #main-app { background:var(--bg,#303b34) }
html[data-theme="dark"] .screen .header h1 { color:#edf3ee }
html[data-theme="dark"] .screen .header p { color:#a0aaa3 }
html[data-theme="dark"] #bottom-nav { border-top:1px solid rgba(48,59,52,0.90) }
html[data-theme="dark"] #bottom-nav .nav-item.active { color:#99d6ba }
html[data-theme="dark"] #bottom-nav .nav-item.active .nav-icon { background:#1c3b26 }
html[data-theme="dark"] #screen-diet .food-tracker { border-color:#303b34 }
html[data-theme="dark"] #screen-diet .food-tracker-heading h2 { color:#edf3ee }
html[data-theme="dark"] .gym-choice-modal { border:1px solid rgba(58,85,63,0.90); background:#1a211d; color:#edf3ee }
html[data-theme="dark"] .gym-choice-icon { background:#1c3b28; color:#99d6ba }
html[data-theme="dark"] .gym-choice-eyebrow { color:#a1cfb8 }
html[data-theme="dark"] .gym-choice-modal h2 { color:#edf3ee }
html[data-theme="dark"] .gym-choice-modal > p:not(.gym-choice-eyebrow) { color:#a0aaa3 }
html[data-theme="dark"] .gym-choice-summary { background:#202923; color:#abc4b4 }
html[data-theme="dark"] .gym-choice-actions button { border:1px solid #3c5340; background:#1a211d; color:#abc5b4 }
html[data-theme="dark"] .gym-choice-actions .gym-choice-no:hover { background:#202923 }
html[data-theme="dark"] #main-app .btn-outline { background:#1a211d }
html[data-theme="dark"] #main-app .chip,
html[data-theme="dark"] #main-app .chip-group button,
html[data-theme="dark"] #main-app .equipment-chip,
html[data-theme="dark"] #main-app .equipment-option,
html[data-theme="dark"] #main-app .choice-chip { background:#202923; color:#a0aaa3 }
html[data-theme="dark"] #main-app .chip.selected,
html[data-theme="dark"] #main-app .chip.active,
html[data-theme="dark"] #main-app .equipment-chip.selected,
html[data-theme="dark"] #main-app .equipment-option.selected,
html[data-theme="dark"] #main-app .choice-chip.selected { border-color:#2b6444 }
html[data-theme="dark"] #screen-workout .workout-session-card,
html[data-theme="dark"] #screen-workout .workout-session,
html[data-theme="dark"] #screen-workout .workout-summary,
html[data-theme="dark"] #screen-workout .workout-next-card { background:#1a211d }
html[data-theme="dark"] #screen-workout .workout-progress-track { background:#303b34 }
html[data-theme="dark"] #screen-gym .card,
html[data-theme="dark"] #screen-gym-scan .card,
html[data-theme="dark"] #screen-gym-scan .food-tool-card { background:#1a211d }
html[data-theme="dark"] #screen-diet .food-tracker { background:#1a211d }
html[data-theme="dark"] #screen-diet .food-tracker-heading .eyebrow { color:#9fd0b9 }
html[data-theme="dark"] #screen-diet .food-tracker-tabs button { background:#202923; color:#edf3ee }
html[data-theme="dark"] #screen-diet .food-tool-card { background:#1a211d }
html[data-theme="dark"] #screen-diet input,
html[data-theme="dark"] #screen-diet select,
html[data-theme="dark"] #screen-diet textarea { border:1px solid #303b34; background:#202923 }
html[data-theme="dark"] #bottom-nav { border-top:1px solid #303b34; background:rgba(26,33,29,0.97) }
html[data-theme="dark"] #screen-workout { background:#202923 }
html[data-theme="dark"] #screen-workout .header h1 { color:#edf3ee }
html[data-theme="dark"] #screen-workout .header p { color:#a0aaa3 }
html[data-theme="dark"] #screen-workout #workout-scan-btn { border:2px solid #2b644b; background:#1c3b2b; color:#edf3ee }
html[data-theme="dark"] #screen-workout #workout-scan-btn::before { background:#1c3b2b; color:#90dfc6 }
html[data-theme="dark"] #screen-workout .workout-plan-card,
html[data-theme="dark"] #screen-workout .workout-next-plan-card,
html[data-theme="dark"] #screen-workout .workout-day-complete-card { border:1px solid #303b34; background:#1a211d }
html[data-theme="dark"] #screen-workout .workout-plan-card .card-label { color:#edf3ee }
html[data-theme="dark"] #screen-workout .workout-plan-card .pill { background:#3b311c; color:#dfc490 }
html[data-theme="dark"] #screen-workout .workout-plan-card .circular-progress-done { color:#edf3ee }
html[data-theme="dark"] #screen-workout .workout-next-plan-title { color:#edf3ee }
html[data-theme="dark"] #screen-workout .workout-next-plan-title strong { color:#90dfc6 }
html[data-theme="dark"] #screen-workout .workout-day-complete-card { border:2px solid #2b6449; background:linear-gradient(145deg,#1c3b2b 0%,#1c3b2b 100%) }
html[data-theme="dark"] #screen-workout .workout-day-complete-card .card-label { color:#edf3ee }
html[data-theme="dark"] #screen-workout .workout-day-complete-card .card-label span { color:#90dfc4 }
html[data-theme="dark"] #screen-workout .workout-day-complete-card h2 { color:#90dfc6 }
html[data-theme="dark"] #screen-workout .workout-day-complete-card .card-sub { color:#b1beb8 }
html[data-theme="dark"] .workout-missing-card { background:linear-gradient(135deg, rgba(220, 53, 69, 0.09), rgba(26,33,29,0.96)) }
html[data-theme="dark"] .workout-missing-card .card-label,
html[data-theme="dark"] .workout-missing-card h2 { color:#df9098 }
html[data-theme="dark"] .gym-intelligence-card .input { background:#1a211d }
html[data-theme="dark"] .gym-crowd-track { background:#303b34 }
html[data-theme="dark"] .fitos-gamification-card { background:#1a211d; border:1px solid #303b34; color:#edf3ee }
html[data-theme="dark"] .fitos-gamification-eyebrow { color:#a0aaa3 }
html[data-theme="dark"] .fitos-gamification-level { color:#a0aaa3 }
html[data-theme="dark"] .fitos-gamification-share { border:1px solid #2b644d; background:#1c3b2d; color:#90dfc6 }
html[data-theme="dark"] .fitos-gamification-track { background:#303b34 }
html[data-theme="dark"] .fitos-gamification-next { color:#a0aaa3 }
html[data-theme="dark"] .fitos-gamification-recent { color:#97d8c0 }
html[data-theme="dark"] .fitos-gamification-rules { border-top:1px solid #303b34; color:#a0aaa3 }
html[data-theme="dark"] .fitos-gamification-rules summary { color:#abc4b6 }
html[data-theme="dark"] .fitos-gamification-rules li strong { color:#90dfc6 }
html[data-theme="dark"] .fitos-gamification-invite-copy { color:#97d8c0 }
html[data-theme="dark"] .fitos-gamification-friends span:after { background:#1c3b2e }
html[data-theme="dark"] .fitos-gamification-friends span:nth-child(2):after { background:#3b2d1c }
html[data-theme="dark"] .fitos-gamification-friends span:nth-child(3):after { background:#1c243b }
html[data-theme="dark"] .fitos-private-leaderboard h3 { color:#edf3ee }
html[data-theme="dark"] .fitos-friend-card { background:#1a211d; border:1px solid #303b34 }
html[data-theme="dark"] .fitos-friend-card.is-you { border-color:#2d624a; background:linear-gradient(145deg,#1a211d 0%,#202923 100%) }
html[data-theme="dark"] .fitos-friend-rank { background:#303b34; color:#97d8c0 }
html[data-theme="dark"] .fitos-friend-avatar { background:#1c3b2a; color:#97d8c0 }
html[data-theme="dark"] .fitos-friend-name { color:#edf3ee }
html[data-theme="dark"] .fitos-friend-stats { border-top:1px solid #303b34; color:#a0aaa3 }
html[data-theme="dark"] .fitos-friend-stats strong { color:#97d8c0 }
html[data-theme="dark"] .fitos-friends-empty { border:1px dashed #3d5243; background:#1a211d; color:#a0aaa3 }
html[data-theme="dark"] #screen-onboarding .card input:disabled,
html[data-theme="dark"] #screen-onboarding .card select:disabled { background:#202923; color:#a0aaa3; border-color:#303b34 }
html[data-theme="dark"] .fitos-osm-map { border:1px solid var(--border, #524d3c); background:var(--surface, #303b34) }
html[data-theme="dark"] .theme-toggle { color:#edf3ee; background:rgba(26,33,29,0.94) }

/* from food-tracker.css */
html[data-theme="dark"] .food-tracker { border:1px solid var(--border,#574f38); background:var(--card,#1a211d); color:var(--ink,#edf3ee) }
html[data-theme="dark"] .food-tracker-heading p:last-child,
html[data-theme="dark"] .food-tool-card>p { color:var(--muted,#a0aaa3) }
html[data-theme="dark"] .food-tracker-tabs button { border:1px solid var(--border,#303b34) }
html[data-theme="dark"] .food-tool-card { border:1px solid var(--border,#574f38); background:#1a211d }
html[data-theme="dark"] .food-tracker input { border:1px solid #303b34; background:#1a211d; color:#edf3ee }
html[data-theme="dark"] .food-status { color:#a0aaa3 }
html[data-theme="dark"] .food-data-note { color:var(--muted,#a0aaa3) }
html[data-theme="dark"] .food-product-result,
html[data-theme="dark"] .food-log-entry,
html[data-theme="dark"] .food-nearby-entry { border-bottom:1px solid #303b34 }
html[data-theme="dark"] .food-product-result img { background:#202923 }
html[data-theme="dark"] .food-result-main small { color:#a0aaa3 }
html[data-theme="dark"] .food-nutrient-chip { background:#202923 }
html[data-theme="dark"] .food-nutrient-chip small { color:#a0aaa3 }
html[data-theme="dark"] .food-summary-tile { background:#202923 }
html[data-theme="dark"] .food-summary-tile small { color:#a0aaa3 }
html[data-theme="dark"] .food-log-actions button { border:1px solid #303b34; background:#1a211d }
html[data-theme="dark"] .food-empty { color:#a0aaa3 }
html[data-theme="dark"] #screen-diet .food-nearby-card { border:1px solid #303b34; background:linear-gradient(160deg,#1a211d 0%,#202923 100%) }
html[data-theme="dark"] #screen-diet .food-nearby-card:hover { border-color:#345a44 }
html[data-theme="dark"] .food-rank { color:#b2bdb7 }
html[data-theme="dark"] .food-health-score { background:#1c3b29; color:#96d9b8 }
html[data-theme="dark"] .food-nearby-card h3 { color:#edf3ee }
html[data-theme="dark"] .food-nearby-restaurant { color:#b0bfb6 }
html[data-theme="dark"] .food-nearby-meta span { border:1px solid #303b34; background:#1a211d; color:#a0aaa3 }
html[data-theme="dark"] .food-nearby-nutrition > div { background:#303b34 }
html[data-theme="dark"] .food-nearby-nutrition small { color:#a0aaa3 }
html[data-theme="dark"] .food-nearby-nutrition strong { color:#a7c8b5 }
html[data-theme="dark"] .food-nearby-locality { color:#a0aaa3 }
html[data-theme="dark"] .food-nearby-reasons { border-top:1px solid #303b34; color:#a0aaa3 }
html[data-theme="dark"] .food-nearby-card-footer > span { color:#a0aaa3 }
html[data-theme="dark"] #screen-diet .food-search-suggestions { border:1px solid #303b34; background:#1a211d }
html[data-theme="dark"] #screen-diet .food-search-suggestion { border-bottom:1px solid #303b34; background:#1a211d; color:#edf3ee }
html[data-theme="dark"] #screen-diet .food-search-suggestion:hover,
html[data-theme="dark"] #screen-diet .food-search-suggestion:focus-visible { background:#202923 }
html[data-theme="dark"] #screen-diet .food-search-suggestion small { color:#a0aaa3 }
html[data-theme="dark"] #screen-diet .food-search-suggestion-empty { color:#a0aaa3 }
html[data-theme="dark"] #screen-diet .food-smart-correction { color:#afc1b4 }
html[data-theme="dark"] #screen-diet .food-smart-keep-query { color:#96d9b8 }
html[data-theme="dark"] #screen-diet .food-smart-recommendation-heading { color:#a0aaa3 }
html[data-theme="dark"] #screen-diet .food-smart-nutrients { color:#a9c7b4 }
html[data-theme="dark"] #screen-diet .food-smart-score { color:#94dbb8 }
html[data-theme="dark"] #screen-diet .food-smart-limited { color:#ccbea3 }


/* ======================================================================

/* ---------- Today screen redefines the theme variables locally; re-point them per theme ---------- */
html[data-theme="light"] #screen-today {
  --bg: #f5f7f5; --card: #ffffff; --ink: #202a24; --muted: #66736b; --border: #e2e9e3;
  --mint: #e3eee6; --mint-strong: #4b8061; --shadow: 0 2px 8px rgba(32, 42, 36, 0.045);
}
html[data-theme="dark"] #screen-today {
  --bg: #101512; --card: #1a211d; --ink: #edf3ee; --muted: #a0aaa3; --border: #303b34;
  --mint: #20392d; --mint-strong: #86e3c4; --shadow: 0 2px 14px rgba(0, 0, 0, .22);
}
html[data-theme="dark"] #screen-today .today-workout-status { color: #9bd8bd; }
html[data-theme="dark"] #screen-today .today-workout-status > span { background: #86e3c4; }
html[data-theme="dark"] #screen-today .today-plan-lock { background: #202923; border-color: #303b34; color: var(--muted); }
html[data-theme="dark"] #screen-today .today-workout-warning { color: #e3cf94; }
html[data-theme="dark"] #screen-today .today-stat-heading .today-icon { color: #9bd8bd; }

/* ---------- Workout: exercise-number badge + session labels (readable in BOTH themes) ---------- */
html[data-theme="dark"] .workout-exercise-row.active .workout-exercise-number,
html[data-theme="dark"] .workout-exercise-row.done .workout-exercise-number {
  color: #0b1a12; background: #86e3c4; border-color: #86e3c4;
}
html[data-theme] #screen-workout .workout-session-card .workout-eyebrow,
html[data-theme] #screen-workout .workout-session-top > span {
  color: var(--fitos-muted);
}

/* ---------- Today: "Next workout" label/value were rendered inline ---------- */
.today-workout-context > div:not(.today-plan-lock) { display: grid; gap: 3px; }
.today-workout-context > div:not(.today-plan-lock) > span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.today-workout-context > div:not(.today-plan-lock) > strong { color: var(--ink); font-size: 12px; font-weight: 600; }

/* ---------- Today screen: never use the 2-column desktop grid inside the 430px app shell ---------- */
#today-content { grid-template-columns: minmax(0, 1fr) !important; }
#today-content > .today-workout-card,
#today-content > .today-stats-grid,
#today-content > .today-grow-card { grid-column: 1 !important; grid-row: auto !important; }


/* Movable theme switch: supports mouse, touch and pen without leaving the viewport. */
.theme-toggle {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.theme-toggle.is-dragging {
  cursor: grabbing;
  transition: none !important;
  transform: none !important;
  opacity: .92;
}
.theme-toggle.is-positioned {
  right: auto;
}


/* ---------- Public landing page: restore readable contrast in light mode ---------- */
html[data-theme="light"] .landing-page {
  --landing-bg: #f4f2ec;
  --landing-ink: #17211b;
  --landing-muted: #5f6d63;
  --landing-panel: #ffffff;
  --landing-mint: #238653;
  --landing-line: rgba(32, 53, 40, .12);
  background: var(--landing-bg);
  color: var(--landing-ink);
}
html[data-theme="light"] .site-header {
  border-bottom-color: rgba(32, 53, 40, .12);
}
html[data-theme="light"] .site-brand { color: #17211b; }
html[data-theme="light"] .site-navigation > a:not(.button) {
  color: #526258;
}
html[data-theme="light"] .site-navigation > a:not(.button):hover,
html[data-theme="light"] .site-footer nav a:hover {
  color: #187447;
}
html[data-theme="light"] .site-menu-toggle {
  border-color: #d4ddd5;
  background: rgba(255,255,255,.82);
}
html[data-theme="light"] .site-menu-toggle span { background: #26372c; }
html[data-theme="light"] .site-navigation.is-open {
  border-color: #dce4dc;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(28, 46, 34, .14);
}
html[data-theme="light"] .site-navigation.is-open > a:not(.button) {
  border-bottom-color: #e8ede8;
  color: #34483a;
}
html[data-theme="light"] .landing-hero h1 { color: #17211b; }
html[data-theme="light"] .landing-hero h1 span { color: #238653; }
html[data-theme="light"] .hero-slogan { color: #45584b; }
html[data-theme="light"] .hero-slogan span { color: #238653; }
html[data-theme="light"] .hero-intro { color: #5e6d63; }
html[data-theme="light"] .hero-note { color: #637268; }
html[data-theme="light"] .hero-note-mark,
html[data-theme="light"] .hero-scroll span:last-child { color: #238653; }
html[data-theme="light"] .hero-scroll { color: #526258 !important; }
html[data-theme="light"] .button-glass {
  border-color: #d5ded6;
  background: rgba(255,255,255,.78);
  color: #304438 !important;
}
html[data-theme="light"] .button-glass:hover {
  border-color: #9bbba5;
  background: #ffffff;
}
html[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse, rgba(91, 178, 124, .15), transparent 68%);
}
html[data-theme="light"] .eyebrow { color: #397d58; }
html[data-theme="light"] .site-footer { color: #637268; }
html[data-theme="light"] .site-footer nav a { color: #526258; }
html[data-theme="light"] .site-footer > small { color: #68766c; }

/* Gym crowd forecast and weekly operating hours */
#screen-gym .gym-crowd-meta { display:grid; gap:5px; margin:12px 0 16px; }
#screen-gym .gym-crowd-meta p { margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
#screen-gym .gym-crowd-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:16px 0 9px; }
#screen-gym .gym-crowd-section-heading strong { color:var(--ink); font-size:14px; }
#screen-gym .gym-crowd-section-heading > span { color:var(--muted); font-size:10px; text-align:right; }
#screen-gym .gym-opening-hours { margin:14px 0 18px; }
#screen-gym .gym-opening-hours-grid { display:grid; grid-template-columns:1fr; gap:0; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
#screen-gym .gym-opening-day { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 11px; border-bottom:1px solid var(--border); }
#screen-gym .gym-opening-day:last-child { border-bottom:0; }
#screen-gym .gym-opening-day > span { color:var(--muted); font-size:12px; min-width:82px; }
#screen-gym .gym-opening-day > strong { color:var(--ink); font-size:12px; font-weight:600; text-align:right; }
#screen-gym .gym-hours-empty { padding:11px; border:1px dashed var(--border); border-radius:10px; color:var(--muted); font-size:12px; line-height:1.55; }
#screen-gym .gym-crowd-recommendations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:10px 0 18px; }
#screen-gym .gym-crowd-recommendations > div { min-width:0; padding:12px; border:1px solid var(--border); border-radius:12px; background:var(--surface,var(--card)); display:grid; gap:4px; }
#screen-gym .gym-crowd-recommendations span { color:var(--muted); font-size:10px; }
#screen-gym .gym-crowd-recommendations strong { color:var(--ink); font-size:20px; }
#screen-gym .gym-crowd-recommendations small { color:var(--muted); font-size:10px; line-height:1.45; }
#screen-gym .gym-crowd-days { display:grid; gap:8px; }
#screen-gym .gym-crowd-day { border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--card); }
#screen-gym .gym-crowd-day > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; cursor:pointer; list-style:none; }
#screen-gym .gym-crowd-day > summary::-webkit-details-marker { display:none; }
#screen-gym .gym-crowd-day > summary > span:first-child { display:grid; gap:3px; }
#screen-gym .gym-crowd-day > summary strong { color:var(--ink); font-size:12px; }
#screen-gym .gym-crowd-day > summary small { color:var(--muted); font-size:10px; }
#screen-gym .gym-crowd-day-count { color:var(--muted); font-size:10px; text-align:right; }
#screen-gym .gym-crowd-day-content { padding:0 10px 10px; }
#screen-gym .gym-crowd-day-content .gym-crowd-hour { display:grid; grid-template-columns:55px minmax(35px,1fr) 34px 72px; align-items:center; gap:7px; padding:7px 0; border-top:1px solid var(--border); }
#screen-gym .gym-crowd-day-content .gym-crowd-hour > span,
#screen-gym .gym-crowd-day-content .gym-crowd-hour b { color:var(--ink); font-size:10px; }
#screen-gym .gym-crowd-day-content .gym-crowd-hour b { text-align:right; }
#screen-gym .gym-crowd-day-content .gym-crowd-hour small { color:var(--muted); font-size:9px; text-transform:capitalize; }
#screen-gym .gym-crowd-track { height:7px; overflow:hidden; border-radius:99px; background:var(--border); }
#screen-gym .gym-crowd-track i { display:block; height:100%; border-radius:inherit; background:#6eae83; }
#screen-gym .gym-crowd-track i.is-moderate { background:#c5a65d; }
#screen-gym .gym-crowd-track i.is-busy { background:#c8786e; }
#screen-gym .gym-crowd-disclaimer { margin:12px 0 2px; color:var(--muted); font-size:10px; line-height:1.55; }
html[data-theme="dark"] #screen-gym .gym-opening-hours-grid,
html[data-theme="dark"] #screen-gym .gym-crowd-day,
html[data-theme="dark"] #screen-gym .gym-crowd-recommendations > div { background:#1a211d; border-color:#303b34; }
html[data-theme="dark"] #screen-gym .gym-crowd-day-content .gym-crowd-hour { border-top-color:#303b34; }
@media (max-width:360px) {
  #screen-gym .gym-crowd-day-content .gym-crowd-hour { grid-template-columns:48px minmax(25px,1fr) 30px 62px; gap:5px; }
  #screen-gym .gym-opening-day { padding:8px; }
}


/* Gym intelligence current opening status */
.gym-crowd-current-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;margin:12px 0;border:1px solid var(--border-color,rgba(128,128,128,.25));border-radius:12px}
.gym-crowd-current-status>strong{font-size:.92rem}
.gym-crowd-current-status>small{flex-basis:100%;color:var(--text-secondary, #777);font-size:.78rem}
.gym-crowd-status-pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:.72rem;font-weight:700;letter-spacing:.04em}
.gym-crowd-status-pill.is-open{background:rgba(34,160,105,.14);color:#168653}
.gym-crowd-status-pill.is-closed{background:rgba(220,70,70,.13);color:#c44343}
.gym-crowd-status-pill.is-unknown{background:rgba(140,140,140,.14);color:var(--text-secondary, #777)}

/* Today's gym crowd forecast */
#screen-gym .gym-crowd-today-chart { display:grid; gap:0; margin:10px 0 16px; }
#screen-gym .gym-crowd-today-chart > p { margin:0 0 8px; color:var(--muted); font-size:12px; }
#screen-gym .gym-crowd-today-chart .gym-crowd-hour { display:grid; grid-template-columns:55px minmax(35px,1fr) 34px 72px; align-items:center; gap:7px; padding:8px 0; border-top:1px solid var(--border); }
#screen-gym .gym-crowd-today-chart .gym-crowd-hour > span,
#screen-gym .gym-crowd-today-chart .gym-crowd-hour b { color:var(--ink); font-size:10px; }
#screen-gym .gym-crowd-today-chart .gym-crowd-hour b { text-align:right; }
#screen-gym .gym-crowd-today-chart .gym-crowd-hour small { color:var(--muted); font-size:9px; text-transform:capitalize; }

/* ---------------- Public help center ---------------- */
.help-screen{min-height:100vh;background:var(--page,#f4f2ec);color:var(--ink,#20251f);overflow:auto}
.help-header,.help-footer{width:min(1160px,calc(100% - 48px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.help-header{padding:24px 0}
.help-header nav,.help-footer nav{display:flex;align-items:center;gap:22px}
.help-header nav a,.help-footer nav a{color:inherit;text-decoration:none;font-size:.9rem}
.help-header .site-brand,.help-footer .site-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-weight:800;letter-spacing:.08em}
.help-hero{padding:76px 24px 54px;text-align:center;background:radial-gradient(ellipse at 50% 0%,rgba(113,190,135,.17),transparent 60%)}
.help-hero h1{font-size:clamp(2.5rem,6vw,5rem);line-height:1.02;letter-spacing:-.055em;margin:14px 0}
.help-hero h1 span{color:#438b5b}
.help-hero>p:not(.eyebrow):not(.help-search-count){max-width:620px;margin:0 auto;color:var(--muted,#68716a);line-height:1.7}
.help-search{display:flex;align-items:center;gap:12px;width:min(620px,100%);margin:30px auto 8px;padding:0 17px;height:58px;border:1px solid rgba(60,80,65,.18);border-radius:15px;background:var(--surface,#fff);box-shadow:0 12px 35px rgba(31,48,35,.07);text-align:left}
.help-search>span{font-size:1.6rem;color:#438b5b}
.help-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:inherit;font:inherit}
.help-search kbd{padding:4px 8px;border:1px solid var(--border,rgba(60,80,65,.18));border-radius:6px;color:var(--muted,#68716a)}
.help-search-count{font-size:.82rem;color:var(--muted,#68716a)}
.help-content{width:min(1080px,calc(100% - 48px));margin:0 auto 76px}
.help-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:58px}
.help-category{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;align-items:center;text-align:left;gap:2px 12px;padding:17px;border:1px solid var(--border,rgba(60,80,65,.15));border-radius:14px;background:var(--surface,#fff);color:inherit;cursor:pointer;transition:border-color .2s,transform .2s,background .2s}
.help-category:hover{transform:translateY(-2px);border-color:#6aa77b}
.help-category.active{border-color:#438b5b;background:rgba(93,163,111,.09)}
.help-category>span{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(93,163,111,.14);color:#438b5b;font-size:1.35rem}
.help-category b{font-size:.95rem}.help-category small{color:var(--muted,#68716a);font-size:.78rem}
.help-group{margin:0 0 44px;scroll-margin-top:20px}
.help-group-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:15px}
.help-group-heading .eyebrow{margin:0 0 7px;color:#438b5b;font-size:.7rem;letter-spacing:.13em}
.help-group-heading h2{margin:0;font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.035em}
.help-group-heading>span{font-size:.68rem;letter-spacing:.12em;color:var(--muted,#68716a)}
.help-article{border-bottom:1px solid var(--border,rgba(60,80,65,.14));padding:0 3px}
.help-article:first-of-type{border-top:1px solid var(--border,rgba(60,80,65,.14))}
.help-article summary{position:relative;list-style:none;padding:20px 42px 20px 0;font-weight:650;cursor:pointer}
.help-article summary::-webkit-details-marker{display:none}
.help-article summary:after{content:"+";position:absolute;right:6px;top:14px;font-size:1.5rem;font-weight:400;color:#438b5b}
.help-article[open] summary:after{content:"−"}
.help-article p{max-width:850px;margin:0;padding:0 34px 20px 0;color:var(--muted,#68716a);line-height:1.75;font-size:.94rem}
.help-empty{text-align:center;padding:48px 20px;border:1px dashed var(--border,rgba(60,80,65,.2));border-radius:18px}
.help-empty>span{font-size:2rem;color:#438b5b}.help-empty h3{margin:8px 0}.help-empty p{color:var(--muted,#68716a)}
.help-contact{display:grid;grid-template-columns:1fr minmax(300px,.9fr);gap:44px;align-items:center;padding:64px max(24px,calc((100% - 1080px)/2));background:#17251d;color:#f5f8f4}
.help-contact .eyebrow{color:#9dd9aa;letter-spacing:.14em;font-size:.72rem}
.help-contact h2{font-size:clamp(2rem,4vw,3rem);letter-spacing:-.04em;margin:8px 0}
.help-contact>div>p:last-child{color:#c3d0c6;line-height:1.7;max-width:520px}
.help-report-card{padding:22px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.06)}
.help-report-card label{display:block;margin-bottom:9px;font-size:.9rem;font-weight:650}
.help-report-card textarea{display:block;width:100%;resize:vertical;min-height:112px;padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(0,0,0,.16);color:#fff;font:inherit}
.help-report-card textarea::placeholder{color:#b5c1b8}
.help-report-card .button{margin-top:13px;background:#a6e1b3;color:#17251d;border:0}
.help-report-card>p{font-size:.78rem;line-height:1.5;color:#c3d0c6}
.help-footer{padding:25px 0 34px;color:var(--ink,#20251f);flex-wrap:wrap}
.help-footer>span{font-size:.8rem;color:var(--muted,#68716a)}
@media(max-width:700px){.help-header,.help-footer{width:calc(100% - 32px)}.help-header{padding:16px 0}.help-header nav{gap:12px}.help-header nav a{font-size:.8rem}.help-header nav .button{padding:10px 12px}.help-hero{padding:55px 18px 38px}.help-content{width:calc(100% - 32px)}.help-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:42px}.help-category{padding:12px;grid-template-columns:34px 1fr;gap:2px 9px}.help-category>span{width:33px;height:33px}.help-category small{font-size:.7rem}.help-group-heading>span{display:none}.help-contact{grid-template-columns:1fr;gap:20px;padding:46px 20px}.help-footer{justify-content:center;text-align:center}.help-footer>span{width:100%;order:3}.help-footer nav{gap:15px;flex-wrap:wrap;justify-content:center}}
@media(prefers-reduced-motion:reduce){.help-category{transition:none}}


/* Hourly activity demo on the public landing page */
.hourly-active-section {
  padding: clamp(34px, 5vw, 64px) max(22px, calc((100vw - 1180px) / 2));
  background: var(--bg);
}
.hourly-active-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.hourly-active-copy .eyebrow { margin: 0 0 12px; }
.hourly-active-copy h2 {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.hourly-active-copy > p:last-child {
  max-width: 490px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.hourly-active-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  border-radius: 18px;
  background: var(--black-panel);
  color: #fff;
  text-align: center;
}
.hourly-active-indicator {
  width: 9px;
  height: 9px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #86e3c4;
  box-shadow: 0 0 0 5px rgba(134, 227, 196, .13);
}
.hourly-active-metric-label {
  color: #c5d2cd;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .13em;
}
.hourly-active-metric strong {
  display: block;
  margin: 7px 0 0;
  color: #86e3c4;
  font-size: clamp(2.7rem, 6vw, 4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  line-height: 1.1;
}
.hourly-active-caption { margin-top: 5px; color: #e1e9e5; font-size: .88rem; }
.hourly-active-updated { margin-top: 12px; color: #9eaaa5; font-size: .72rem; }
.hourly-active-disclosure {
  max-width: 1180px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.55;
  text-align: center;
}
html[data-theme="dark"] .hourly-active-inner {
  border-color: rgba(255,255,255,.1);
  background: var(--card);
}
@media (max-width: 680px) {
  .hourly-active-section { padding: 28px 16px; }
  .hourly-active-inner { grid-template-columns: 1fr; gap: 22px; padding: 22px 18px; border-radius: 18px; }
  .hourly-active-copy h2 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .hourly-active-metric { padding: 22px 14px; }
  .hourly-active-disclosure { padding: 0 8px; text-align: left; }
}
