/* Native app shell — dashboard cards & page layout (website unchanged) */

:root {
  --app-safe-top: env(safe-area-inset-top, 0px);
}

/* Tab-root top bar (fixes content cut off under status bar) */
.capacitor-native .app-top-bar--root {
  display: flex !important;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 9000;
  min-height: calc(48px + var(--app-safe-top));
  padding: calc(10px + var(--app-safe-top)) 16px 10px;
  background: #f2f2f2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.capacitor-native .app-top-bar--root .app-top-bar__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cacao);
  margin: 0;
  flex: 1;
}

.capacitor-native .app-top-bar__spacer {
  display: none;
}

.capacitor-native .app-top-bar__action {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: var(--white);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.capacitor-native .app-top-bar__action svg {
  width: 20px;
  height: 20px;
}

.app-dashboard {
  display: none;
}

.capacitor-native .app-dashboard {
  display: block;
  padding: 0 16px calc(80px + env(safe-area-inset-bottom, 0px));
  background: #f2f2f2;
  min-height: 100vh;
}

/* Home food carousel banner */
.app-home-banner {
  display: none;
  position: relative;
  margin: 0 -16px 14px;
  height: 168px;
  overflow: hidden;
  background: #1a3a2a;
}

.capacitor-native .app-home-banner {
  display: block;
}

.app-home-banner__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.app-home-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.app-home-banner__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.app-home-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-home-banner__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 28, 16, 0.88) 0%, rgba(10, 28, 16, 0.15) 60%);
}

.app-home-banner__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
}

.app-home-banner__caption strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.app-home-banner__caption span {
  font-size: 0.75rem;
  opacity: 0.9;
}

.app-home-banner__dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.app-home-banner__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.app-home-banner__dot.active {
  background: var(--honey);
  width: 18px;
  border-radius: 999px;
}

.app-promo-banner {
  display: none;
  background: linear-gradient(135deg, var(--forest), #3d7a52);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: #fff;
}

.capacitor-native .app-promo-banner {
  display: block;
}

.app-promo-banner__badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(241, 196, 15, 0.25);
  color: var(--honey);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.app-promo-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.app-dash-header {
  padding-top: 12px;
}

.capacitor-native .web-home-section {
  display: none !important;
}

.capacitor-native body[data-app-page="home"] {
  background: #f2f2f2;
}

.capacitor-native body[data-app-page="recipes"],
.capacitor-native body[data-app-page="calculator"] {
  background: #f2f2f2;
}

.app-dash-header {
  margin-bottom: 16px;
}

.app-dash-header__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cacao);
  margin: 0;
}

.app-dash-header__sub {
  font-size: 0.85rem;
  color: var(--cacao-light);
  margin: 4px 0 0;
}

.app-card {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.app-card--action {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-card--action:active {
  transform: scale(0.98);
}

.app-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.app-card__icon--scan {
  background: rgba(44, 94, 59, 0.12);
  color: var(--forest);
}

.app-card__icon--scan svg {
  width: 26px;
  height: 26px;
}

.app-card--scan {
  border-color: rgba(44, 94, 59, 0.14);
  background: linear-gradient(135deg, #fff 0%, rgba(44, 94, 59, 0.04) 100%);
}

.app-shortcut--scan {
  border-color: rgba(44, 94, 59, 0.16);
  background: rgba(44, 94, 59, 0.06);
}

.app-card__thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}

.app-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card__icon--green { background: rgba(44, 94, 59, 0.12); }
.app-card__icon--honey { background: rgba(241, 196, 15, 0.2); }
.app-card__icon--blue { background: rgba(52, 152, 219, 0.12); }
.app-card__icon--matcha { background: rgba(126, 159, 61, 0.15); }

.app-card__body { flex: 1; min-width: 0; }

.app-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cacao);
  margin: 0 0 2px;
}

.app-card__desc {
  font-size: 0.8rem;
  color: var(--cacao-light);
  margin: 0;
  line-height: 1.4;
}

.app-card__arrow {
  color: var(--cacao-light);
  flex-shrink: 0;
}

.app-card__arrow svg {
  width: 20px;
  height: 20px;
}

.app-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cacao-light);
  margin: 8px 0 10px 4px;
}

.capacitor-native .app-section-label {
  overflow: visible;
  white-space: normal;
  width: 100%;
  box-sizing: border-box;
}

.app-quick-picks {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.app-quick-picks::-webkit-scrollbar { display: none; }

.app-quick-pick {
  flex: 0 0 132px;
  background: var(--white);
  border-radius: 14px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-quick-pick:active {
  transform: scale(0.97);
}

.app-quick-pick__img {
  width: 100%;
  height: 88px;
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.app-quick-pick__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-quick-pick__name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cacao);
  line-height: 1.3;
  padding: 8px 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-quick-pick__cals {
  font-size: 0.65rem;
  color: var(--cacao-light);
  padding: 2px 10px 8px;
}

.app-quick-picks__empty {
  font-size: 0.8rem;
  color: var(--cacao-light);
  margin: 0;
}

.app-card--quick {
  padding-bottom: 12px;
}

.app-quick-picks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  padding: 2px 0;
}

.app-quick-picks-head:active {
  opacity: 0.75;
}

.app-quick-picks-head__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--forest);
}

.app-quick-picks-head__link svg {
  width: 14px;
  height: 14px;
}

.app-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-shortcut {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--cacao);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.app-shortcut__icon {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.app-shortcut__label {
  font-size: 0.78rem;
  font-weight: 600;
}

.app-tip-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--cacao);
  margin: 0;
}

/* Recipes page — category grid */
.app-recipe-categories {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.capacitor-native .app-recipe-categories {
  display: grid;
}

.capacitor-native .recipes-page {
  background: #f2f2f2;
}

.capacitor-native .recipes-page .container {
  padding-left: 0;
  padding-right: 0;
}

.capacitor-native .recipes-page .category-intro-banner,
.capacitor-native .recipes-page .interstitial-tips,
.capacitor-native .recipes-page .interstitial-superfood,
.capacitor-native .recipes-page .interstitial-stats {
  display: none !important;
}

.capacitor-native .recipes-page .carousel-group {
  margin-bottom: 8px;
}

.capacitor-native .recipes-page .carousel-group__header {
  padding: 0 4px;
  margin-bottom: 8px;
}

.capacitor-native .recipes-page .meal-card {
  min-width: 148px;
}

.recipes-search-wrap {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.capacitor-native .recipes-search-wrap {
  display: flex;
}

.recipes-search-bar__field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 14px;
  min-height: 46px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 14px;
  background: var(--white);
  box-sizing: border-box;
}

.recipes-search-bar__field i,
.recipes-search-bar__field svg {
  width: 18px;
  height: 18px;
  color: #7a5a48;
  flex-shrink: 0;
}

.recipes-search-bar__field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
}

.recipes-search-wrap__browse {
  width: 100%;
  justify-content: center;
}

.app-section-label--inset {
  margin-left: 4px;
}

.app-recipes-featured {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.capacitor-native .app-recipes-featured {
  display: grid;
}

.app-recipe-tile {
  background: var(--white);
  border: none;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  cursor: pointer;
}

.app-recipe-tile:active {
  transform: scale(0.98);
}

.app-recipe-tile__img {
  height: 96px;
  overflow: hidden;
}

.app-recipe-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-recipe-tile__body {
  padding: 8px 10px 10px;
}

.app-recipe-tile__name {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cacao);
  line-height: 1.3;
}

.app-recipe-tile__meta {
  display: block;
  font-size: 0.68rem;
  color: var(--cacao-light);
  margin-top: 2px;
}

.recipe-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: none;
  border-radius: 14px;
  padding: 0;
  min-height: 108px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease;
}

.recipe-cat-card:active {
  transform: scale(0.97);
}

.recipe-cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-cat-card__label,
.recipe-cat-card__count {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  padding: 0 10px;
}

.recipe-cat-card__label {
  font-size: 0.88rem;
  font-weight: 700;
  padding-top: 0;
}

.recipe-cat-card__count {
  font-size: 0.68rem;
  opacity: 0.9;
  padding-bottom: 10px;
}

.recipe-cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 18, 0.88) 0%, rgba(10, 30, 18, 0.2) 65%);
  z-index: 0;
}

/* Calculator & recipes native page shell */
.capacitor-native .app-page-shell {
  padding: 0 16px calc(80px + env(safe-area-inset-bottom, 0px));
}

.capacitor-native body[data-app-page="health"] main,
.capacitor-native .dash-layout > main {
  padding-top: 0;
}

.capacitor-native .app-page-shell .section__header {
  display: none;
}

.capacitor-native .app-calc-intro {
  display: block;
  margin: 12px 0 10px;
  padding: 10px 12px;
  background: var(--white);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--cacao-light);
  line-height: 1.45;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-calc-intro {
  display: none;
}

.capacitor-native .app-page-shell .calc-hint-banner {
  display: none !important;
}

.capacitor-native .app-page-shell .panel__header {
  padding-top: 4px;
}

.capacitor-native .app-page-shell .section {
  padding: 0;
}

.capacitor-native .app-page-shell .calculator-layout {
  grid-template-columns: 1fr;
  gap: 12px;
}

.capacitor-native .app-page-shell .panel,
.capacitor-native .app-page-shell .results {
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.capacitor-native .app-bottom-nav .app-tab-btn span {
  font-size: 9px;
}

/* Health Hub — compact native hero (not full website banner) */
.capacitor-native body[data-app-page="health"] {
  background: #f2f2f2;
}

.capacitor-native .hh-hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 0;
}

.capacitor-native .hh-carousel {
  position: relative;
  inset: auto;
  height: 132px;
  flex-shrink: 0;
}

.capacitor-native .hh-slide__quote,
.capacitor-native .hh-carousel-controls,
.capacitor-native .hh-tip-strip {
  display: none !important;
}

.capacitor-native .hh-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(15, 35, 20, 0.92) 0%,
    rgba(15, 35, 20, 0.35) 100%
  );
}

.capacitor-native .hh-hero__content {
  padding: 14px 16px 16px;
  max-width: none;
}

.capacitor-native .hh-hero__eyebrow {
  font-size: 0.65rem;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.capacitor-native .hh-hero__title {
  font-size: 1.35rem;
  margin-bottom: 6px;
  line-height: 1.2;
}

.capacitor-native .hh-hero__sub {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 12px;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.capacitor-native .hh-hero__ctas {
  gap: 8px;
}

.capacitor-native .hh-hero__ctas .btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  min-height: 0;
}

.capacitor-native .hh-hero__ctas .btn--lg {
  padding: 8px 14px;
}

.capacitor-native .hh-stats {
  margin: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.capacitor-native .hh-stats--animated {
  opacity: 1;
  transform: translateY(0);
}

.capacitor-native .hh-stats__tagline {
  margin: 0;
  padding: 10px 14px 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--forest);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.capacitor-native .hh-stats__tagline--visible {
  opacity: 1;
  transform: translateY(0);
}

.capacitor-native .hh-stat__num {
  transition: color 0.3s ease;
}

.capacitor-native .hh-stats--animated .hh-stat__num {
  color: var(--forest);
}

.capacitor-native .hh-stats__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 4px 0;
}

.capacitor-native .hh-stat {
  padding: 12px 10px;
  text-align: center;
}

.capacitor-native .hh-stat__divider {
  display: none;
}

.capacitor-native .hh-stat__num {
  font-size: 1.1rem;
}

.capacitor-native .hh-stat__label {
  font-size: 0.65rem;
  line-height: 1.3;
}

.capacitor-native .hh-section {
  padding-left: 16px;
  padding-right: 16px;
}

.capacitor-native .hh-section__inner {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Diet Plans — compact native hero */
.capacitor-native .diet-hero {
  min-height: 196px;
  max-height: 210px;
  align-items: flex-end;
  background: #1a3a2a;
}

/* Fitness Hub — full-bleed hero (escape app-native-page 16px padding) */
.capacitor-native body[data-app-page="fitness"] .fh-hero.diet-hero,
.capacitor-native .fh-hero.diet-hero {
  min-height: 300px;
  max-height: none;
  align-items: flex-end;
  background: #1a3a2a;
  width: calc(100% + 32px);
  max-width: none;
  margin-left: -16px;
  margin-right: -16px;
  margin-top: -12px;
  border-radius: 0;
}

.capacitor-native body[data-app-page="fitness"] .fh-hero .diet-hero__overlay,
.capacitor-native .fh-hero .diet-hero__overlay {
  background: linear-gradient(
    105deg,
    rgba(12, 28, 18, 0.93) 0%,
    rgba(26, 58, 42, 0.8) 50%,
    rgba(10, 20, 14, 0.55) 100%
  );
}

.capacitor-native body[data-app-page="fitness"] .fh-hero .diet-hero__content,
.capacitor-native .fh-hero .diet-hero__content {
  padding: 20px 20px 22px;
}

.capacitor-native body[data-app-page="fitness"] .fh-hero .diet-hero__title,
.capacitor-native .fh-hero .diet-hero__title {
  font-size: 1.75rem;
  color: #fff !important;
  -webkit-line-clamp: unset;
}

.capacitor-native body[data-app-page="fitness"] .fh-hero .diet-hero__sub,
.capacitor-native .fh-hero .diet-hero__sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95) !important;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.capacitor-native body[data-app-page="fitness"] .hh-stats__tagline,
.capacitor-native .fh-stats .hh-stats__tagline {
  opacity: 1 !important;
  color: var(--forest, #2C5E3B) !important;
  transform: none;
  padding: 12px 4px 4px;
  font-weight: 700;
}

/* Feature strip full-bleed under sticky top bar */
.capacitor-native body[data-app-page="fitness"] .fh-feature-strip {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: 0.5rem;
}

.capacitor-native body[data-app-page="fitness"] .fh-feature-chip {
  min-width: 0;
  flex: 1 1 0;
  padding: 0.55rem 0.3rem;
}

.capacitor-native body[data-app-page="fitness"] .fh-chip-full {
  display: none;
}

.capacitor-native body[data-app-page="fitness"] .fh-chip-short {
  display: inline;
}

.capacitor-native body[data-app-page="fitness"] .fh-feature-chip__sub {
  display: none;
}

.capacitor-native body[data-app-page="fitness"] .fh-sec-banner {
  min-height: 160px;
  margin-left: 0;
  margin-right: 0;
  border-radius: 14px;
  width: 100%;
}

.capacitor-native body[data-app-page="fitness"] .fh-sec-banner--sm {
  min-height: 120px;
}

/* Gym plan / fuel cards — full width, not slim columns */
.capacitor-native body[data-app-page="fitness"] .gym-plan-grid,
.capacitor-native body[data-app-page="fitness"] .hh-rich-meal-grid.gym-plan-grid,
.capacitor-native body[data-app-page="fitness"] .gf-card-grid {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: 100%;
}

.capacitor-native body[data-app-page="fitness"] .gym-plan-card,
.capacitor-native body[data-app-page="fitness"] .gf-card,
.capacitor-native body[data-app-page="fitness"] .hh-meal-card.gym-plan-card,
.capacitor-native body[data-app-page="fitness"] .hh-rich-meal-card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.capacitor-native body[data-app-page="fitness"] .gym-plan-card .gym-photo,
.capacitor-native body[data-app-page="fitness"] .gf-card__media {
  height: 200px;
}

.capacitor-native body[data-app-page="fitness"] #gym-plan-catalogue .hh-section__inner,
.capacitor-native body[data-app-page="fitness"] #gym-tips-library .hh-section__inner,
.capacitor-native body[data-app-page="fitness"] #gym-fuel-root .hh-section__inner {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.capacitor-native body[data-app-page="fitness"] .hh-section {
  padding-left: 0;
  padding-right: 0;
}

.capacitor-native body[data-app-page="fitness"] .hh-section__inner {
  padding-left: 0;
  padding-right: 0;
}

.capacitor-native .diet-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(30, 68, 41, 0.95) 0%,
    rgba(44, 94, 59, 0.4) 100%
  );
}

.capacitor-native .diet-hero__content {
  padding: 14px 16px 16px;
  max-width: none;
}

.capacitor-native .diet-hero__eyebrow {
  font-size: 0.65rem;
  margin-bottom: 6px;
}

.capacitor-native .diet-hero__title {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.capacitor-native .diet-hero__sub {
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.capacitor-native .diet-select-grid,
.capacitor-native .diet-detail {
  padding-left: 16px;
  padding-right: 16px;
}

/* ── Shared native sub-page shell (dashboard, planner, diet, profile) ── */
.capacitor-native .app-native-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 16px calc(80px + env(safe-area-inset-bottom, 0px));
  background: #f2f2f2;
  box-sizing: border-box;
  overflow-x: hidden;
}

.capacitor-native body[data-app-page="profile"] {
  background: #f2f2f2;
}

.capacitor-native body[data-app-page="dashboard"],
.capacitor-native body[data-app-page="planner"],
.capacitor-native body[data-app-page="diet"] {
  background: #f2f2f2;
}

.capacitor-native .app-page-intro {
  display: block;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: 14px;
  font-size: 0.82rem;
  color: var(--cacao-light);
  line-height: 1.5;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.app-page-intro {
  display: none;
}

/* Profile — spacious hero & 2×2 stats */
.capacitor-native .profile-main.app-native-page {
  padding-top: 8px;
}

.capacitor-native .profile-hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px 18px;
  margin-bottom: 16px;
  gap: 14px;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.capacitor-native .profile-avatar {
  width: 72px;
  height: 72px;
  font-size: 1.65rem;
}

.capacitor-native .profile-avatar-badge {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.capacitor-native .profile-hero-info {
  width: 100%;
}

.capacitor-native .profile-hero-info h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.capacitor-native .profile-hero-info p {
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.capacitor-native .profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.capacitor-native .profile-stat {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

.capacitor-native .profile-stat__val {
  font-size: 1.05rem;
}

.capacitor-native .profile-stat__label {
  font-size: 0.62rem;
  margin-top: 2px;
}

.capacitor-native .profile-section {
  margin-bottom: 20px;
}

.capacitor-native .profile-section__header {
  padding: 0 0 8px 4px;
}

.capacitor-native .profile-section__body {
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.capacitor-native .profile-msg {
  margin-bottom: 12px;
  border-radius: 12px;
}

.capacitor-native .goals-preview {
  margin: 0 0 16px;
  border-radius: 14px;
}

.capacitor-native .danger-zone {
  margin-top: 8px;
}

/* Dashboard — single column, no horizontal bleed */
.capacitor-native body[data-app-page="dashboard"] {
  overflow-x: hidden;
}

.capacitor-native .dash-native-header {
  display: none !important;
}

.capacitor-native .dash-main.app-native-page {
  padding: 10px 14px calc(84px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  max-width: 100%;
}

.capacitor-native body[data-app-page="dashboard"] .dash-grid {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: unset;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.capacitor-native body[data-app-page="dashboard"] .dash-sidebar,
.capacitor-native body[data-app-page="dashboard"] .dash-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.capacitor-native body[data-app-page="dashboard"] .dash-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 0;
}

.capacitor-native body[data-app-page="dashboard"] .dash-card__header {
  flex-wrap: wrap;
  gap: 8px;
}

.capacitor-native body[data-app-page="dashboard"] .dash-card__title {
  font-size: 0.9rem;
}

.capacitor-native body[data-app-page="dashboard"] .progress-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
}

.capacitor-native body[data-app-page="dashboard"] .progress-ring {
  width: 76px;
  height: 76px;
}

.capacitor-native body[data-app-page="dashboard"] .grok-chat,
.capacitor-native body[data-app-page="dashboard"] .grok-chat__input,
.capacitor-native body[data-app-page="dashboard"] .grok-chat__messages {
  max-width: 100%;
  min-width: 0;
}

.capacitor-native body[data-app-page="dashboard"] .grok-chat__input .form-input,
.capacitor-native body[data-app-page="dashboard"] .grok-chat__field {
  min-width: 0;
  flex: 1;
  width: 100%;
  font-size: 16px;
}

.capacitor-native body[data-app-page="dashboard"] #recent-scroller-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.capacitor-native body[data-app-page="dashboard"] .recent-scroller {
  max-width: 100%;
}

.capacitor-native body[data-app-page="dashboard"] .debate-card,
.capacitor-native body[data-app-page="dashboard"] .debate-barchart,
.capacitor-native body[data-app-page="dashboard"] .community-widgets {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.capacitor-native body[data-app-page="dashboard"] .history-list,
.capacitor-native body[data-app-page="dashboard"] .history-item {
  max-width: 100%;
  min-width: 0;
}

/* Meal planner — balanced full-width rows, timetable first */
.capacitor-native body[data-app-page="planner"] {
  overflow-x: hidden;
}

.capacitor-native .planner-page.app-native-page {
  padding: 10px 14px calc(84px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  max-width: 100%;
}

.capacitor-native .planner-page-header > div:first-child {
  display: none;
}

.capacitor-native .planner-page-header {
  margin-bottom: 14px;
}

.capacitor-native .planner-header-actions {
  width: 100%;
  gap: 10px;
}

.capacitor-native .planner-header-actions .btn {
  flex: 1;
  justify-content: center;
  min-height: 44px;
}

.capacitor-native .planner-controls {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.capacitor-native .planner-toggles {
  width: 100%;
  justify-content: stretch;
}

.capacitor-native .planner-toggle-btn {
  flex: 1;
  justify-content: center;
  padding: 10px 14px;
}

.capacitor-native .planner-goal-input {
  width: 100%;
}

.capacitor-native .planner-tabs {
  width: 100%;
}

.capacitor-native .planner-tab {
  flex: 1;
  justify-content: center;
  padding: 10px 10px;
}

.capacitor-native .planner-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

/* Timetable on top, overview cards below */
.capacitor-native .planner-main-col {
  order: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.capacitor-native .planner-sidebar {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.capacitor-native .planner-sidebar-card {
  margin-bottom: 0;
  padding: 16px;
}

.capacitor-native .timetable-container {
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.capacitor-native .planner-day {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* One row per meal — fills card width without stacking actions */
.capacitor-native .planner-slot-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 12px 14px;
  padding: 16px;
}

.capacitor-native .planner-slot-row__time {
  flex-direction: column;
  gap: 4px;
}

.capacitor-native .planner-slot-row__meal {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.capacitor-native .planner-slot-row__img,
.capacitor-native .planner-slot-row__emoji-fb {
  width: 54px;
  height: 50px;
  flex-shrink: 0;
}

.capacitor-native .planner-slot-row__info {
  flex: 1;
  min-width: 0;
}

.capacitor-native .planner-slot-row__name {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  font-size: 0.88rem;
}

.capacitor-native .planner-slot-row__actions {
  grid-column: auto;
  opacity: 1;
  flex-direction: column;
  gap: 5px;
  padding-top: 0;
  border-top: none;
  flex-shrink: 0;
}

.capacitor-native .planner-shopping {
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.capacitor-native .planner-empty-state {
  padding: 3rem 1.5rem;
  max-width: 100%;
}

.capacitor-native .planner-health-notice {
  max-width: 100%;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.capacitor-native .planner-health-notice .phn-right {
  width: 100%;
  justify-content: flex-start;
  margin-top: 8px;
}

/* Diet — page padding & plan cards */
.capacitor-native body[data-app-page="diet"] .app-native-page {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

.capacitor-native body[data-app-page="diet"] .hh-stats {
  margin: 12px 16px;
}

.capacitor-native .diet-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 16px;
}

.capacitor-native .diet-select-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.capacitor-native .diet-select-card__img-wrap {
  height: 88px;
}

.capacitor-native .diet-detail {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* Diet — planner handoff CTA */
.diet-planner-cta {
  display: none;
}

.capacitor-native .diet-planner-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 16px 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(44, 94, 59, 0.08), rgba(241, 196, 15, 0.1));
  border: 1px solid rgba(44, 94, 59, 0.15);
  border-radius: 14px;
}

.capacitor-native .diet-planner-cta__text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--forest);
  margin-bottom: 4px;
}

.capacitor-native .diet-planner-cta__text span {
  display: block;
  font-size: 0.78rem;
  color: var(--cacao-light);
  line-height: 1.45;
}

.capacitor-native .diet-planner-cta .btn {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.capacitor-native #diet-plan-section .hh-plan-header {
  gap: 12px;
  padding: 0 16px 12px;
  margin-bottom: 8px;
}

.capacitor-native #diet-plan-section .hh-plan-body {
  padding: 0 16px;
}

.capacitor-native .diet-week-planner-link {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  padding: 0 16px 16px;
}

.capacitor-native .diet-week-planner-link .btn {
  width: 100%;
  justify-content: center;
}

/* Settings bottom sheet (home) */
.app-settings-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
}

.app-settings-sheet.open {
  display: block;
}

.app-settings-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 12, 0.45);
}

.app-settings-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78vh;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-settings-sheet.open .app-settings-sheet__panel {
  transform: translateY(0);
}

.app-settings-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--cream-dark);
  background: linear-gradient(90deg, var(--forest), var(--matcha));
  color: #fff;
}

.app-settings-sheet__header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.app-settings-sheet__close {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.app-settings-sheet .app-settings-list {
  max-height: calc(78vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Home — nutrition tips & help banner (native only) */
.app-native-tips,
.app-help-banner {
  display: none;
}

.capacitor-native .app-native-tips {
  display: grid;
  margin: 0 0 12px;
  padding: 16px;
}

.capacitor-native .app-native-tips.interstitial-tips {
  grid-template-columns: 1fr;
  gap: 10px;
}

.capacitor-native .app-native-tips .tip-card {
  padding: 12px;
}

.capacitor-native .app-native-tips .tip-card__body {
  font-size: 0.78rem;
}

.app-help-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 108px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #fff;
  display: block;
}

.capacitor-native .app-help-banner {
  display: block;
}

.app-help-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-help-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 35, 20, 0.92) 0%, rgba(15, 35, 20, 0.45) 100%);
}

.app-help-banner__content {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
}

.app-help-banner__chip {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(241, 196, 15, 0.25);
  color: var(--honey);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.app-help-banner__content strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.app-help-banner__content span:last-child {
  font-size: 0.75rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Settings page */
.app-settings-page {
  display: none;
  padding: 12px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  background: #f2f2f2;
}

.capacitor-native .app-settings-page {
  display: block;
}

.capacitor-native .app-top-bar--sub {
  display: flex !important;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 9000;
  min-height: calc(48px + var(--app-safe-top));
  padding: calc(10px + var(--app-safe-top)) 16px 10px;
  background: #f2f2f2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.capacitor-native .app-top-bar--sub .app-top-bar__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cacao);
  margin: 0;
  flex: 1;
}

.capacitor-native .app-top-bar__back {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--white);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.capacitor-native .app-top-bar__back svg {
  width: 20px;
  height: 20px;
}

.app-theme-switch {
  margin-left: auto;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--cream-dark);
  position: relative;
  flex-shrink: 0;
}

.app-theme-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.app-theme-switch.on {
  background: var(--forest);
}

.app-theme-switch.on::after {
  transform: translateX(18px);
}

.capacitor-native .app-settings-list__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--cacao);
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--cream-dark);
}

/* Add-food modal — must sit above bottom nav; footer must stay visible */
.capacitor-native #add-food-modal,
.capacitor-native .modal:not(.hidden) {
  z-index: 10050;
  align-items: flex-end;
  padding: 0;
}

.capacitor-native #add-food-modal .modal__content,
.capacitor-native .modal:not(.hidden) .modal__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 65px - env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.capacitor-native #add-food-modal .modal__body,
.capacitor-native .modal:not(.hidden) .modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-4) var(--sp-5);
}

.capacitor-native #add-food-modal .modal__footer,
.capacitor-native .modal:not(.hidden) .modal__footer {
  flex-shrink: 0;
  padding: var(--sp-4) var(--sp-5);
  padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
}

.capacitor-native #add-food-modal .modal__footer .btn,
.capacitor-native .modal:not(.hidden) .modal__footer .btn {
  flex: 1;
  justify-content: center;
}

.capacitor-native #add-food-modal .modal__footer .btn--green,
.capacitor-native .modal:not(.hidden) .modal__footer .btn--green {
  flex: 1.4;
}

/* Collection modal — native full sheet, no cut-off */
.capacitor-native .collection-modal {
  align-items: flex-end;
  padding: 0;
  z-index: 10040;
}

.capacitor-native .collection-modal__panel {
  max-height: 90vh;
  max-width: none;
  width: 100%;
  border-radius: 18px 18px 0 0;
  padding-top: var(--app-safe-top);
}

.capacitor-native .collection-modal__header {
  padding: 14px 16px;
  flex-wrap: nowrap;
}

.capacitor-native .collection-modal__title {
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capacitor-native .collection-modal__filters {
  padding: 0 16px 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.capacitor-native .collection-modal__filters::-webkit-scrollbar {
  display: none;
}

.capacitor-native .collection-modal__search {
  max-width: none;
  min-width: 0;
  flex: 1;
}

.capacitor-native .recipes-page .quick-meals-catalogue {
  display: block !important;
}

/* Full Collection grid — single column so titles/descriptions are not squeezed */
.capacitor-native .collection-modal__grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.capacitor-native .collection-modal__grid .meal-card {
  min-width: 0;
}

.capacitor-native .collection-modal__grid .image-frame {
  height: 150px;
}

.capacitor-native .collection-modal__grid .meal-card__content {
  padding: 14px 16px 16px;
  gap: 6px;
}

.capacitor-native .collection-modal__grid .meal-card__name {
  font-size: 1.05rem;
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
}

.capacitor-native .collection-modal__grid .meal-card__tags {
  flex-wrap: wrap;
  gap: 4px;
}

.capacitor-native .collection-modal__grid .meal-card__tag {
  font-size: 0.68rem;
  padding: 2px 7px;
  white-space: nowrap;
}

.capacitor-native .collection-modal__grid .meal-card__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  -webkit-line-clamp: 4;
  min-height: auto;
  margin-bottom: 4px;
}

.capacitor-native .collection-modal__grid .meal-card__cal-value {
  font-size: 1.15rem;
}

.capacitor-native .collection-modal__grid .meal-card__btn {
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.capacitor-native .collection-modal__pill {
  flex-shrink: 0;
  white-space: nowrap;
}

.capacitor-native .collection-modal__body {
  padding: 12px 16px 20px;
}

.capacitor-native .recipes-page .carousel-group {
  background: var(--white);
  border-radius: 14px;
  padding: 10px 8px;
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — full-app forest-tinted theme (native only)
   Overrides design tokens so every page transforms together.
   ══════════════════════════════════════════════════════════════ */
html.capacitor-native.theme-dark {
  color-scheme: dark;

  /* Core palette — forest green + matcha + honey on deep green-black */
  --dm-bg: #0e1210;
  --dm-bg-elevated: #1a211c;
  --dm-bg-surface: #242d27;
  --dm-border: rgba(126, 159, 61, 0.18);
  --dm-text: #e8ebe6;
  --dm-text-muted: #9aab9e;

  --cream: var(--dm-bg);
  --cream-dark: var(--dm-border);
  --cream-darker: rgba(255, 255, 255, 0.07);
  --white: var(--dm-bg-elevated);
  /* Cards using var(--surface) / brand tokens stay dark */
  --surface: var(--dm-bg-elevated);
  --surface-2: var(--dm-bg-surface);
  --border: var(--dm-border);
  --border-light: var(--dm-border);

  --cacao: var(--dm-text);
  --cacao-light: var(--dm-text-muted);
  --cacao-dark: #c8d0ca;

  --forest: #6db87a;
  --forest-dark: #2C5E3B;
  --forest-light: #8ecf9a;
  --matcha: #8eb84a;
  --matcha-light: #a8cc62;

  --sh-xs: 0 1px 3px rgba(0, 0, 0, 0.35);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --sh: 0 4px 16px rgba(0, 0, 0, 0.45);
  --sh-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --sh-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
}

html.capacitor-native.theme-dark,
html.capacitor-native.theme-dark body {
  background: var(--dm-bg) !important;
  color: var(--dm-text);
}

/* Page shells — replace all hardcoded #f2f2f2 light greys */
html.capacitor-native.theme-dark .app-top-bar--root,
html.capacitor-native.theme-dark .app-top-bar--sub,
html.capacitor-native.theme-dark .app-dashboard,
html.capacitor-native.theme-dark .app-settings-page,
html.capacitor-native.theme-dark .app-native-page,
html.capacitor-native.theme-dark .recipes-page,
html.capacitor-native.theme-dark body[data-app-page="recipes"],
html.capacitor-native.theme-dark body[data-app-page="calculator"],
html.capacitor-native.theme-dark body[data-app-page="health"],
html.capacitor-native.theme-dark body[data-app-page="fitness"],
html.capacitor-native.theme-dark body[data-app-page="profile"],
html.capacitor-native.theme-dark body[data-app-page="dashboard"],
html.capacitor-native.theme-dark body[data-app-page="planner"],
html.capacitor-native.theme-dark body[data-app-page="diet"],
html.capacitor-native.theme-dark .profile-layout,
html.capacitor-native.theme-dark .dash-layout {
  background: var(--dm-bg) !important;
}

html.capacitor-native.theme-dark .app-top-bar--root,
html.capacitor-native.theme-dark .app-top-bar--sub {
  border-bottom-color: var(--dm-border);
}

html.capacitor-native.theme-dark .app-top-bar--root .app-top-bar__title,
html.capacitor-native.theme-dark .app-top-bar--sub .app-top-bar__title {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .app-top-bar__back,
html.capacitor-native.theme-dark .app-top-bar__action {
  background: var(--dm-bg-surface);
  color: var(--honey);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Cards & surfaces */
html.capacitor-native.theme-dark .app-card,
html.capacitor-native.theme-dark .app-quick-pick,
html.capacitor-native.theme-dark .app-shortcut,
html.capacitor-native.theme-dark .app-calc-intro,
html.capacitor-native.theme-dark .app-page-intro,
html.capacitor-native.theme-dark .app-page-shell .panel,
html.capacitor-native.theme-dark .app-page-shell .results,
html.capacitor-native.theme-dark .recipes-search-bar__field,
html.capacitor-native.theme-dark .hh-stats,
html.capacitor-native.theme-dark .recipes-page .carousel-group,
html.capacitor-native.theme-dark .app-recipe-tile,
html.capacitor-native.theme-dark .recipe-cat-card,
html.capacitor-native.theme-dark .meal-card,
html.capacitor-native.theme-dark .profile-section__body,
html.capacitor-native.theme-dark .profile-hero,
html.capacitor-native.theme-dark .dash-card,
html.capacitor-native.theme-dark .planner-controls,
html.capacitor-native.theme-dark .planner-day,
html.capacitor-native.theme-dark .planner-sidebar-card,
html.capacitor-native.theme-dark .planner-shopping,
html.capacitor-native.theme-dark .diet-select-card,
html.capacitor-native.theme-dark .diet-planner-cta,
html.capacitor-native.theme-dark .hh-profile-card,
html.capacitor-native.theme-dark .hh-nutrition-focus,
html.capacitor-native.theme-dark .hh-plan-sidebar__card,
html.capacitor-native.theme-dark .hh-rich-meal-card,
html.capacitor-native.theme-dark .debate-card,
html.capacitor-native.theme-dark .history-item,
html.capacitor-native.theme-dark .recent-card,
html.capacitor-native.theme-dark .planner-modal__panel,
html.capacitor-native.theme-dark .collection-modal__panel,
html.capacitor-native.theme-dark .app-settings-sheet__panel {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .profile-stat {
  background: var(--dm-bg-surface);
  border: 1px solid var(--dm-border);
}

html.capacitor-native.theme-dark .profile-hero-info h2,
html.capacitor-native.theme-dark .profile-hero-info p,
html.capacitor-native.theme-dark .profile-stat__val {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .profile-stat__val {
  color: var(--forest);
}

html.capacitor-native.theme-dark .profile-stat__label {
  color: var(--dm-text-muted);
}

/* Health hub sections */
html.capacitor-native.theme-dark .hh-section,
html.capacitor-native.theme-dark .hh-section--alt,
html.capacitor-native.theme-dark .hh-plan-section {
  background: var(--dm-bg) !important;
}

html.capacitor-native.theme-dark .hh-section-header__title,
html.capacitor-native.theme-dark .hh-profile-card__label,
html.capacitor-native.theme-dark .hh-plan-header__title {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .hh-section-header__sub,
html.capacitor-native.theme-dark .hh-profile-card__tagline {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .hh-profile-tab {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .hh-profile-tab.active {
  background: var(--forest-dark);
  border-color: var(--forest);
  color: #fff;
}

html.capacitor-native.theme-dark .hh-profile-card.active {
  background: rgba(44, 94, 59, 0.22);
  border-color: var(--forest);
}

/* ── Fitness Hub dark mode (feature strip, plans, Gym Fuel, cards) ── */
html.capacitor-native.theme-dark body[data-app-page="fitness"] .app-native-page,
html.capacitor-native.theme-dark #gym-tips-library,
html.capacitor-native.theme-dark #gym-plan-catalogue,
html.capacitor-native.theme-dark #gym-fuel-root,
html.capacitor-native.theme-dark #gym-fuel-root .gf-wrap {
  background: var(--dm-bg) !important;
  color: var(--dm-text) !important;
}

html.capacitor-native.theme-dark .fh-feature-strip,
html.capacitor-native.theme-dark .fh-feature-strip__scroll,
html.capacitor-native.theme-dark .fh-feature-chip {
  background: var(--dm-bg-elevated) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html.capacitor-native.theme-dark .fh-feature-chip {
  border-right-color: var(--dm-border) !important;
}

html.capacitor-native.theme-dark .fh-feature-chip__label,
html.capacitor-native.theme-dark .fh-feature-chip__sub {
  color: var(--dm-text-muted) !important;
}

html.capacitor-native.theme-dark .fh-feature-chip--active,
html.capacitor-native.theme-dark .fh-feature-chip--accent {
  background: rgba(109, 184, 122, 0.12) !important;
  color: var(--forest) !important;
}

html.capacitor-native.theme-dark .fh-feature-chip--active .fh-feature-chip__label,
html.capacitor-native.theme-dark .fh-feature-chip--active .fh-feature-chip__sub {
  color: var(--forest) !important;
}

html.capacitor-native.theme-dark .fh-feature-chip::after {
  background: var(--forest);
}

html.capacitor-native.theme-dark .fh-stats .hh-stats__tagline,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .hh-stats__tagline {
  color: var(--forest) !important;
}

html.capacitor-native.theme-dark .gym-plan-card,
html.capacitor-native.theme-dark .gym-lib-card,
html.capacitor-native.theme-dark .hh-meal-card.gym-plan-card,
html.capacitor-native.theme-dark .hh-rich-meal-card,
html.capacitor-native.theme-dark .gf-card,
html.capacitor-native.theme-dark .gf-weight-card,
html.capacitor-native.theme-dark .gf-week-day,
html.capacitor-native.theme-dark .gf-engage-card,
html.capacitor-native.theme-dark .gf-phase-btn:not(.active),
html.capacitor-native.theme-dark .gf-chip:not(.active),
html.capacitor-native.theme-dark .gf-alt,
html.capacitor-native.theme-dark .gf-targets,
html.capacitor-native.theme-dark .gym-plan-panel__desc,
html.capacitor-native.theme-dark .gym-plan-target,
html.capacitor-native.theme-dark .gym-cat-tile,
html.capacitor-native.theme-dark .fh-crosslink,
html.capacitor-native.theme-dark .fh-crosslinks-wrap {
  background: var(--dm-bg-elevated) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text) !important;
  box-shadow: none;
}

html.capacitor-native.theme-dark .gym-plan-card__name,
html.capacitor-native.theme-dark .gym-lib-card__name,
html.capacitor-native.theme-dark .gf-card__title,
html.capacitor-native.theme-dark .gf-slot__title,
html.capacitor-native.theme-dark .gf-block__title,
html.capacitor-native.theme-dark .gf-header__title,
html.capacitor-native.theme-dark .gf-phase-btn:not(.active) .gf-phase-btn__title,
html.capacitor-native.theme-dark .fh-crosslink strong,
html.capacitor-native.theme-dark .gym-plan-slot__name,
html.capacitor-native.theme-dark .gym-cat-tile .hh-profile-card__name {
  color: var(--forest) !important;
}

html.capacitor-native.theme-dark .gym-plan-card__body,
html.capacitor-native.theme-dark .gym-plan-card__why,
html.capacitor-native.theme-dark .gym-plan-card__block,
html.capacitor-native.theme-dark .gym-plan-card__block p,
html.capacitor-native.theme-dark .gym-plan-panel__desc p,
html.capacitor-native.theme-dark .gym-plan-panel__principle,
html.capacitor-native.theme-dark .gf-card__notes,
html.capacitor-native.theme-dark .gf-card__ing,
html.capacitor-native.theme-dark .gf-plan-intro,
html.capacitor-native.theme-dark .gf-phase-btn:not(.active) .gf-phase-btn__sub,
html.capacitor-native.theme-dark .gf-weight-card__label,
html.capacitor-native.theme-dark .gf-weight-card__hint,
html.capacitor-native.theme-dark .fh-crosslink span,
html.capacitor-native.theme-dark .gym-lib-card__notes,
html.capacitor-native.theme-dark .gym-lib-count,
html.capacitor-native.theme-dark .gym-plan-target strong,
html.capacitor-native.theme-dark .gym-plan-target small {
  color: var(--dm-text) !important;
  -webkit-text-fill-color: var(--dm-text);
}

html.capacitor-native.theme-dark .gym-plan-card__block--why {
  background: rgba(109, 184, 122, 0.1) !important;
  border-left-color: var(--forest) !important;
}

html.capacitor-native.theme-dark .gym-plan-card__block--sci {
  background: rgba(52, 152, 219, 0.12) !important;
  border-color: rgba(52, 152, 219, 0.25) !important;
}

html.capacitor-native.theme-dark .gym-plan-card__block--sci strong {
  color: #7ec8f0 !important;
}

html.capacitor-native.theme-dark .gym-plan-card__block--why strong {
  color: var(--forest) !important;
}

html.capacitor-native.theme-dark .gf-weight-input {
  background: var(--dm-bg-surface) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text) !important;
  -webkit-text-fill-color: var(--dm-text);
}

html.capacitor-native.theme-dark .gf-weight-input::placeholder {
  color: var(--dm-text-muted) !important;
  opacity: 1;
}

html.capacitor-native.theme-dark .gf-phase-btn.active,
html.capacitor-native.theme-dark .gf-chip.active {
  background: #2C5E3B !important;
  border-color: #2C5E3B !important;
  color: #ffffff !important;
}

html.capacitor-native.theme-dark .gf-phase-btn.active .gf-phase-btn__title,
html.capacitor-native.theme-dark .gf-phase-btn.active .gf-phase-btn__sub {
  color: #ffffff !important;
}

html.capacitor-native.theme-dark .gym-lib-filter-btn,
html.capacitor-native.theme-dark .hh-meal-filter {
  background: var(--dm-bg-surface) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text-muted) !important;
}

html.capacitor-native.theme-dark .gym-lib-filter-btn.active,
html.capacitor-native.theme-dark .hh-meal-filter.active {
  background: #2C5E3B !important;
  border-color: #2C5E3B !important;
  color: #fff !important;
}

html.capacitor-native.theme-dark .gym-plan-slot__timing,
html.capacitor-native.theme-dark .gym-plan-slot__cal,
html.capacitor-native.theme-dark .gf-card__tag {
  background: rgba(109, 184, 122, 0.12) !important;
  color: var(--dm-text) !important;
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .gym-photo,
html.capacitor-native.theme-dark .gf-card__media {
  background: var(--dm-bg-surface) !important;
}

html.capacitor-native.theme-dark .hh-stats.fh-stats {
  background: transparent !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .fh-hero .diet-hero__overlay {
  background: linear-gradient(
    105deg,
    rgba(8, 12, 10, 0.94) 0%,
    rgba(14, 22, 16, 0.82) 50%,
    rgba(8, 12, 10, 0.55) 100%
  ) !important;
}

/* Forms & inputs */
html.capacitor-native.theme-dark .form-input,
html.capacitor-native.theme-dark .form-select,
html.capacitor-native.theme-dark .recipes-search-bar__field input,
html.capacitor-native.theme-dark .planner-goal-field input {
  background: var(--dm-bg-surface) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text) !important;
}

html.capacitor-native.theme-dark .form-label,
html.capacitor-native.theme-dark .profile-section__title {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .form-group {
  border-bottom-color: var(--dm-border);
}

html.capacitor-native.theme-dark .app-settings-list__item a,
html.capacitor-native.theme-dark .app-settings-list__btn {
  color: var(--dm-text);
  border-bottom-color: var(--dm-border);
}

html.capacitor-native.theme-dark .app-settings-list__item a:active,
html.capacitor-native.theme-dark .app-settings-list__btn:active {
  background: var(--dm-bg-surface);
}

html.capacitor-native.theme-dark .app-settings-list__icon {
  background: var(--dm-bg-surface);
  color: var(--forest);
}

/* Meal planner slots */
html.capacitor-native.theme-dark .planner-slot-row {
  border-bottom-color: var(--dm-border);
}

html.capacitor-native.theme-dark .planner-slot-row:hover {
  background: rgba(109, 184, 122, 0.06);
}

html.capacitor-native.theme-dark .planner-day__header {
  background: rgba(44, 94, 59, 0.15);
  border-bottom-color: var(--dm-border);
}

html.capacitor-native.theme-dark .planner-toggle-btn,
html.capacitor-native.theme-dark .planner-tab {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .planner-toggle-btn.active,
html.capacitor-native.theme-dark .planner-tab.active {
  background: rgba(44, 94, 59, 0.25);
  color: var(--forest);
}

html.capacitor-native.theme-dark .planner-toggles,
html.capacitor-native.theme-dark .planner-goal-field {
  background: var(--dm-bg-surface);
}

/* Recipe carousel cards */
html.capacitor-native.theme-dark .meal-card__tag {
  background: var(--dm-bg-surface);
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .meal-card__name,
html.capacitor-native.theme-dark .collection-modal__title,
html.capacitor-native.theme-dark .app-card__title,
html.capacitor-native.theme-dark .app-dash-header__title,
html.capacitor-native.theme-dark .app-quick-pick__name,
html.capacitor-native.theme-dark .app-recipe-tile__name,
html.capacitor-native.theme-dark .dash-card__title {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .meal-card__desc,
html.capacitor-native.theme-dark .app-card__desc,
html.capacitor-native.theme-dark .app-dash-header__sub,
html.capacitor-native.theme-dark .app-quick-pick__cals,
html.capacitor-native.theme-dark .app-section-label,
html.capacitor-native.theme-dark .app-recipe-tile__meta,
html.capacitor-native.theme-dark .carousel-header__title {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .meal-card__cal-value {
  color: var(--forest);
}

/* Buttons */
html.capacitor-native.theme-dark .btn--outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

html.capacitor-native.theme-dark .btn--outline:hover {
  background: rgba(44, 94, 59, 0.2);
}

html.capacitor-native.theme-dark .btn--ghost {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .psr-btn {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
  color: var(--dm-text-muted);
}

/* Bottom nav */
html.capacitor-native.theme-dark .app-bottom-nav {
  background: var(--dm-bg-elevated);
  border-top-color: var(--dm-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
}

html.capacitor-native.theme-dark .app-tab-btn {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .app-tab-btn.active {
  color: var(--honey);
}

/* Dashboard extras */
html.capacitor-native.theme-dark .grok-chat__messages {
  background: var(--dm-bg-surface) !important;
}

html.capacitor-native.theme-dark .grok-chat__bubble--ai {
  background: rgba(126, 159, 61, 0.15);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .grok-chat__chip {
  border-color: rgba(126, 159, 61, 0.35);
  background: rgba(44, 94, 59, 0.2);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .debate-barchart__row {
  background: var(--dm-bg-surface);
}

html.capacitor-native.theme-dark .debate-barchart__label {
  color: var(--dm-text-muted);
}

/* Diet CTA */
html.capacitor-native.theme-dark .diet-planner-cta {
  background: linear-gradient(135deg, rgba(44, 94, 59, 0.25), rgba(241, 196, 15, 0.08));
  border-color: rgba(126, 159, 61, 0.25);
}

html.capacitor-native.theme-dark .diet-planner-cta__text strong {
  color: var(--honey);
}

/* Theme toggle switch */
html.capacitor-native.theme-dark .app-theme-switch {
  background: var(--dm-bg-surface);
}

html.capacitor-native.theme-dark .app-theme-switch.on {
  background: var(--forest-dark);
}

/* Preloader */
html.capacitor-native.theme-dark .yfc-preloader {
  background: var(--dm-bg);
}

html.capacitor-native.theme-dark .yfc-preloader__brand {
  background: linear-gradient(135deg, #6db87a 0%, #8eb84a 45%, #F1C40F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html.capacitor-native.theme-dark .yfc-preloader__tagline {
  color: var(--matcha);
}

html.capacitor-native.theme-dark .yfc-preloader__text {
  color: var(--dm-text-muted);
}

/* Hero banners keep imagery; deepen overlay in dark */
html.capacitor-native.theme-dark .hh-hero__overlay,
html.capacitor-native.theme-dark .diet-hero__overlay {
  background: linear-gradient(
    to top,
    rgba(8, 14, 10, 0.95) 0%,
    rgba(14, 18, 16, 0.55) 100%
  ) !important;
}

html.capacitor-native.theme-dark .app-home-banner__slide::after {
  background: linear-gradient(to top, rgba(8, 14, 10, 0.92) 0%, rgba(14, 18, 16, 0.35) 60%);
}

html.capacitor-native.theme-dark .app-help-banner__overlay {
  background: linear-gradient(90deg, rgba(8, 14, 10, 0.94) 0%, rgba(14, 18, 16, 0.5) 100%);
}

html.capacitor-native.theme-dark em {
  color: var(--forest);
}

html.capacitor-native.theme-dark .food-image {
  background: var(--dm-bg-surface);
}

html.capacitor-native.theme-dark .recipes-search-bar__field i,
html.capacitor-native.theme-dark .recipes-search-bar__field svg {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .progress-label,
html.capacitor-native.theme-dark .progress-sub,
html.capacitor-native.theme-dark .planner-sidebar-card__title,
html.capacitor-native.theme-dark .planner-slot-row__name,
html.capacitor-native.theme-dark .planner-slot-row__clock {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .planner-day__header-name,
html.capacitor-native.theme-dark .planner-day__cal-pill {
  color: var(--forest);
}

html.capacitor-native.theme-dark .planner-health-notice {
  background: var(--dm-bg-elevated);
  border: 1px solid var(--dm-border);
}

html.capacitor-native.theme-dark .hh-week-table th,
html.capacitor-native.theme-dark .hh-week-table td {
  border-color: var(--dm-border);
  color: var(--dm-text);
  background: var(--dm-bg-elevated);
}

html.capacitor-native.theme-dark .hh-week-table th {
  background: var(--dm-bg-surface);
}

html.capacitor-native.theme-dark .carousel-header__see-all {
  color: var(--forest);
}

html.capacitor-native.theme-dark .dash-card__header {
  border-bottom-color: var(--dm-border);
}

html.capacitor-native.theme-dark .app-native-tips .tip-card {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .tip-card__title {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .tip-card__body {
  color: var(--dm-text-muted);
}

/* Recipes — remove green-tinted section bands in dark mode */
html.capacitor-native.theme-dark .section,
html.capacitor-native.theme-dark .section--alt,
html.capacitor-native.theme-dark .recipes-page .section,
html.capacitor-native.theme-dark .recipes-page .section--alt {
  background: var(--dm-bg) !important;
}

/* Hydration tracker — full dark theme */
html.capacitor-native.theme-dark .hydration-tracker {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
  box-shadow: var(--sh-sm);
}

html.capacitor-native.theme-dark .hydration-header h3 {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .hydration-header p {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .hydration-bottle {
  background: linear-gradient(145deg, #2a332c 0%, #1e2620 40%, #161c18 100%);
  border-color: #3d4a40;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.35),
    inset 0 4px 12px rgba(255, 255, 255, 0.06),
    inset 0 -8px 20px rgba(0, 0, 0, 0.2);
}

html.capacitor-native.theme-dark .hydration-bottle::before {
  background: linear-gradient(#3d4a40, #2e3830);
  border-color: #3d4a40;
}

html.capacitor-native.theme-dark .hydration-text-overlay .amount,
html.capacitor-native.theme-dark .hydration-text-overlay .goal {
  color: #e0f2fe;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

html.capacitor-native.theme-dark .hydration-text-overlay .percent {
  background: rgba(14, 165, 233, 0.25);
  color: #bae6fd;
}

html.capacitor-native.theme-dark .hydration-btn {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .hydration-btn .label {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .hydration-btn .amount {
  color: var(--forest);
}

html.capacitor-native.theme-dark .hydration-actions .btn-secondary,
html.capacitor-native.theme-dark .hydration-tracker .btn-secondary {
  background: var(--dm-bg-surface);
  color: var(--dm-text);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .hydration-actions .btn-danger {
  background: rgba(185, 28, 28, 0.15);
  color: #fca5a5;
  border-color: rgba(185, 28, 28, 0.35);
}

html.capacitor-native.theme-dark .goal-editor label {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .goal-editor input {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .hydration-summary {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .hydration-summary .stat-value {
  color: var(--forest);
}

html.capacitor-native.theme-dark .hydration-weekly {
  border-top-color: var(--dm-border);
}

html.capacitor-native.theme-dark .hydration-weekly h4 {
  color: var(--dm-text-muted);
}

/* Fruit tracker — full dark theme */
html.capacitor-native.theme-dark .fruit-tracker {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
  box-shadow: var(--sh-sm);
}

html.capacitor-native.theme-dark .fruit-tracker__header h3,
html.capacitor-native.theme-dark .fruit-tracker__current {
  color: var(--forest);
}

html.capacitor-native.theme-dark .fruit-tracker__header p,
html.capacitor-native.theme-dark .fruit-tracker__goal,
html.capacitor-native.theme-dark .fruit-tracker__pct,
html.capacitor-native.theme-dark .fruit-tracker__breakdown,
html.capacitor-native.theme-dark .fruit-tracker__quick-label {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .fruit-tracker__bar {
  background: var(--dm-bg-surface);
}

html.capacitor-native.theme-dark .fruit-tracker__browse-btn {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .fruit-tracker__browse-btn:hover {
  border-color: var(--forest);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

html.capacitor-native.theme-dark .fruit-tracker__browse-icon {
  background: rgba(230, 126, 34, 0.18);
}

html.capacitor-native.theme-dark .fruit-tracker__browse-text strong {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .fruit-tracker__browse-text small,
html.capacitor-native.theme-dark .fruit-tracker__browse-arrow {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .fruit-tracker__chip {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
  color: var(--forest);
}

html.capacitor-native.theme-dark .fruit-tracker__chip:hover {
  border-color: #e67e22;
}

html.capacitor-native.theme-dark .fruit-tracker__actions .btn-secondary {
  background: var(--dm-bg-surface);
  color: var(--dm-text);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .fruit-tracker__goal-edit {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .fruit-tracker__goal-edit input {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .fruit-tracker__hint {
  color: var(--forest);
}

html.capacitor-native.theme-dark .fruit-thumb {
  background: var(--dm-bg-surface);
}

/* Fruit picker modal */
html.capacitor-native.theme-dark .fruit-picker-modal__overlay {
  background: rgba(0, 0, 0, 0.65);
}

html.capacitor-native.theme-dark .fruit-picker-modal__panel {
  background: var(--dm-bg-elevated);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

html.capacitor-native.theme-dark .fruit-picker-modal__head h3 {
  color: var(--forest);
}

html.capacitor-native.theme-dark .fruit-picker-modal__head p {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .fruit-picker-modal__close {
  background: var(--dm-bg-surface);
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .fruit-picker-modal__search-wrap input {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .fruit-picker-modal__search-wrap input::placeholder {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .fruit-picker-modal__search-wrap input:focus {
  border-color: var(--forest);
}

html.capacitor-native.theme-dark .fruit-picker-card {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .fruit-picker-card:hover {
  border-color: #e67e22;
}

html.capacitor-native.theme-dark .fruit-picker-card__name {
  color: var(--forest);
}

html.capacitor-native.theme-dark .fruit-picker-card__meta {
  color: var(--dm-text-muted);
}

/* Diet page fruit picker */
html.capacitor-native.theme-dark .diet-fruit-picker-overlay {
  background: rgba(0, 0, 0, 0.6);
}

html.capacitor-native.theme-dark .diet-fruit-picker-panel {
  background: var(--dm-bg-elevated);
}

html.capacitor-native.theme-dark .diet-fruit-picker-header h3 {
  color: var(--forest);
}

html.capacitor-native.theme-dark .diet-fruit-picker-sub,
html.capacitor-native.theme-dark .diet-fruit-picker-close {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .diet-fruit-pick-item {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .diet-fruit-pick-item__name,
html.capacitor-native.theme-dark .diet-fruit-pick-item__action {
  color: var(--forest);
}

html.capacitor-native.theme-dark .diet-fruit-pick-item__kcal {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .diet-fruit-pick-item__thumb {
  background: var(--dm-bg-elevated);
}

/* Native app — disable text selection (inputs still selectable) */
html.capacitor-native,
html.capacitor-native body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html.capacitor-native input,
html.capacitor-native textarea,
html.capacitor-native select,
html.capacitor-native [contenteditable="true"],
html.capacitor-native .cpoll__textarea,
html.capacitor-native .form-input,
html.capacitor-native .form-select {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Streak modal — dark mode */
html.capacitor-native.theme-dark .streak-modal {
  background: var(--dm-bg-elevated);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--dm-border) inset;
}

html.capacitor-native.theme-dark .streak-modal__title,
html.capacitor-native.theme-dark .streak-congrats {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .streak-modal__subtitle,
html.capacitor-native.theme-dark .streak-stat-label,
html.capacitor-native.theme-dark .streak-stat-text {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .streak-stat-value {
  color: var(--forest);
}

html.capacitor-native.theme-dark .streak-dashed-box {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .streak-avatar-wrapper {
  background: var(--dm-bg-elevated);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 0 6px var(--dm-bg-elevated);
}

html.capacitor-native.theme-dark .streak-modal__close {
  background: var(--forest-dark);
}

/* Community popup — dark mode */
html.capacitor-native.theme-dark .cpoll-modal {
  background: var(--dm-bg-elevated);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--dm-border) inset;
}

html.capacitor-native.theme-dark .cpoll-modal__close {
  background: var(--dm-bg-surface);
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .cpoll-modal__icon-wrap {
  background: var(--dm-bg-surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 5px var(--dm-bg-elevated);
}

html.capacitor-native.theme-dark .cpoll__title {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .cpoll__sub,
html.capacitor-native.theme-dark .cpoll__snooze-hint,
html.capacitor-native.theme-dark .cpoll__char,
html.capacitor-native.theme-dark .cpoll__auto-close {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .cpoll__opt {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .cpoll__opt-text {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .cpoll__opt-label {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .cpoll__textarea {
  background: var(--dm-bg-surface);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .cpoll__badge {
  background: rgba(241, 196, 15, 0.12);
  border-color: rgba(241, 196, 15, 0.28);
  color: var(--honey);
}

/* Tutorial & guest prompt — dark mode */
html.capacitor-native.theme-dark .tut-tooltip {
  background: var(--dm-bg-elevated);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

html.capacitor-native.theme-dark .tut-tooltip__title {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .tut-tooltip__desc,
html.capacitor-native.theme-dark .tut-step-badge,
html.capacitor-native.theme-dark .tut-skip-btn {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .tut-back-btn {
  border-color: var(--dm-border);
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .tut-welcome-card {
  background: var(--dm-bg-elevated);
}

html.capacitor-native.theme-dark .tut-welcome-card__body p {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark .guest-prompt-card {
  background: var(--dm-bg-elevated);
}

html.capacitor-native.theme-dark .guest-prompt-body h2 {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .guest-prompt-body p,
html.capacitor-native.theme-dark .guest-prompt-perks li {
  color: var(--dm-text-muted);
}

/* Small screens — tutorial sheet & community */
@media (max-height: 640px) {
  .capacitor-native .tut-tooltip--native-sheet {
    max-height: 38dvh;
  }

  .capacitor-native .cpoll-modal {
    max-height: min(88dvh, 520px);
  }

  .capacitor-native .cpoll-modal__body {
    max-height: min(42dvh, 320px);
  }
}

/* Settings notification hint */
.app-settings-hint {
  font-size: 0.72rem;
  color: var(--cacao-light);
  padding: 10px 16px 14px;
  line-height: 1.5;
  margin: 0;
}

html.capacitor-native.theme-dark .app-settings-hint {
  color: var(--dm-text-muted);
}

/* About page — native shell */
html.capacitor-native .about-page #site-header,
html.capacitor-native .about-page .footer {
  display: none !important;
}

html.capacitor-native.theme-dark .about-page {
  background: var(--dm-bg);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark .about-page .about-hero,
html.capacitor-native.theme-dark .about-page .about-section {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
}

html.capacitor-native.theme-dark .about-page h1,
html.capacitor-native.theme-dark .about-page h2,
html.capacitor-native.theme-dark .about-page h3 {
  color: var(--forest);
}

html.capacitor-native.theme-dark .about-page p,
html.capacitor-native.theme-dark .about-page li {
  color: var(--dm-text-muted);
}
/* ══════════════════════════════════════════════════════════════
   FITNESS / GYM FUEL — force dark on hard-coded white surfaces
   (diet.css uses #ffffff !important on many .gf-* rules)
   ══════════════════════════════════════════════════════════════ */
html.capacitor-native.theme-dark body[data-app-page="fitness"] #gym-fuel-root,
html.capacitor-native.theme-dark body[data-app-page="fitness"] #gym-fuel-root .gf-wrap,
html.capacitor-native.theme-dark body[data-app-page="fitness"] #gym-plan-catalogue,
html.capacitor-native.theme-dark body[data-app-page="fitness"] #gym-tips-library,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .hh-section,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .hh-section--alt {
  background: var(--dm-bg) !important;
  color: var(--dm-text) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card.gf-card--protein,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card.gf-card--shake,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card.gf-card--highlight,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__body,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-weight-card,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-phase-btn,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-phase-btn:not(.active),
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-chip,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-chip:not(.active),
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-engage-card,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets__stat,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-week-day,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-alt,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-plan-intro-card,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-panel,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-slot,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-card,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-card__body,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-lib-card,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .hh-meal-card,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .hh-rich-meal-card,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-cat-tile,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-cat-back-btn,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .fh-crosslink,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .fh-crosslinks-wrap,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-panel__desc,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-target {
  background: var(--dm-bg-elevated) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text) !important;
  box-shadow: none !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-weight-input {
  background: var(--dm-bg-surface) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text) !important;
  -webkit-text-fill-color: var(--dm-text) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-weight-input::placeholder {
  color: var(--dm-text-muted) !important;
  -webkit-text-fill-color: var(--dm-text-muted) !important;
  opacity: 1 !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__title,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-slot__title,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-block__title,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-header__title,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-weight-card__label,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets__eyebrow,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets__val,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-phase-btn:not(.active) .gf-phase-btn__title,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-card__name,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-lib-card__name,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__ing strong,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .hh-section-header__title {
  color: var(--forest) !important;
  -webkit-text-fill-color: var(--forest) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__notes,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__ing,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-plan-intro,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-weight-card__hint,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets__sub,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets__note,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets__prompt,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets__disc,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-targets__lab,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-phase-btn:not(.active) .gf-phase-btn__sub,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-phase-btn:not(.active),
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-chip:not(.active),
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-engage-card span,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-engage-card strong,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__ph-label,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-header__sub,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .hh-section-header__sub,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-card__body,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-card__block,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-card__block p,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-cat-back-btn,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-plan-macros-list,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-ing-list,
html.capacitor-native.theme-dark body[data-app-page="fitness"] li {
  color: var(--dm-text) !important;
  -webkit-text-fill-color: var(--dm-text) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-phase-btn.active,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-chip.active {
  background: #2C5E3B !important;
  border-color: #2C5E3B !important;
  color: #fff !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-phase-btn.active .gf-phase-btn__title,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-phase-btn.active .gf-phase-btn__sub {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-macro {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--dm-text) !important;
  -webkit-text-fill-color: var(--dm-text) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-macro--p {
  background: rgba(52, 152, 219, 0.22) !important;
  color: #8ecfff !important;
  -webkit-text-fill-color: #8ecfff !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-macro--cal {
  background: rgba(241, 196, 15, 0.2) !important;
  color: #f5d76e !important;
  -webkit-text-fill-color: #f5d76e !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-macro--c {
  background: rgba(241, 196, 15, 0.14) !important;
  color: #e8d48b !important;
  -webkit-text-fill-color: #e8d48b !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-macro--f {
  background: rgba(230, 126, 34, 0.2) !important;
  color: #f0b27a !important;
  -webkit-text-fill-color: #f0b27a !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__tag {
  background: rgba(109, 184, 122, 0.15) !important;
  color: var(--forest) !important;
  -webkit-text-fill-color: var(--forest) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__tag--hot {
  background: rgba(241, 196, 15, 0.22) !important;
  color: #f5d76e !important;
  -webkit-text-fill-color: #f5d76e !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__actions .btn,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-card__actions button {
  background: transparent !important;
  border-color: var(--forest) !important;
  color: var(--forest) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-block {
  border-top-color: var(--dm-border) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-slot__hdr {
  border-bottom-color: var(--dm-border) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-card__block--why {
  background: rgba(109, 184, 122, 0.1) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gym-plan-card__block--sci {
  background: rgba(52, 152, 219, 0.12) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-engage-card--link {
  background: rgba(241, 196, 15, 0.12) !important;
  border-color: rgba(241, 196, 15, 0.35) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-plan-intro-card__header {
  color: var(--forest) !important;
}

html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-header__eyebrow,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-header p,
html.capacitor-native.theme-dark body[data-app-page="fitness"] .gf-header span {
  color: var(--dm-text-muted) !important;
  -webkit-text-fill-color: var(--dm-text-muted) !important;
}

/* ── About + Contact (native app) ── */
.capacitor-native body[data-app-page="about"] {
  background: #f2f2f2 !important;
}

.capacitor-native body[data-app-page="about"] .header,
.capacitor-native body[data-app-page="about"] .footer {
  /* web chrome still in DOM; shell hides/handles via native-app patterns */
}

.capacitor-native body[data-app-page="about"] .about-contact {
  padding: 12px 0 24px;
  background: transparent;
  border-top: none;
}

.capacitor-native body[data-app-page="about"] .about-contact .container {
  padding-left: 12px;
  padding-right: 12px;
  max-width: none;
}

.capacitor-native body[data-app-page="about"] .about-contact__panel {
  grid-template-columns: 1fr;
  border-radius: 16px;
  max-width: none;
  margin: 0;
}

.capacitor-native body[data-app-page="about"] .about-contact__intro {
  padding: 22px 18px 18px;
  align-items: center;
  text-align: center;
}

.capacitor-native body[data-app-page="about"] .about-contact__avatar {
  width: 88px;
  height: 88px;
  margin-bottom: 0.85rem;
}

.capacitor-native body[data-app-page="about"] .about-contact__title {
  font-size: 1.55rem;
}

.capacitor-native body[data-app-page="about"] .about-contact__lead {
  font-size: 0.88rem;
  max-width: none;
}

.capacitor-native body[data-app-page="about"] .about-contact__direct {
  align-items: center;
  gap: 0.55rem;
}

.capacitor-native body[data-app-page="about"] .about-contact__direct a {
  font-size: 0.8rem;
}

.capacitor-native body[data-app-page="about"] .about-contact__form {
  padding: 18px 16px 20px;
  gap: 1rem;
}

.capacitor-native body[data-app-page="about"] .about-contact__fields {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.capacitor-native body[data-app-page="about"] .about-contact__submit {
  padding: 1rem;
  font-size: 0.8rem;
  border-radius: 12px;
  min-height: 48px; /* native tap target */
}

.capacitor-native body[data-app-page="about"] .about-hero {
  min-height: 220px;
  margin-top: 0;
}

.capacitor-native body[data-app-page="about"] .about-hero__content {
  padding: 1.25rem 16px 1.35rem;
}

.capacitor-native body[data-app-page="about"] .about-cta {
  padding: 1.5rem 0 5.5rem;
}

.capacitor-native body[data-app-page="about"] .about-cta .container {
  padding-left: 16px;
  padding-right: 16px;
}

.capacitor-native body[data-app-page="about"] .about-cta__actions {
  flex-direction: column;
  align-items: stretch;
}

.capacitor-native body[data-app-page="about"] .about-cta__actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

/* Dark mode — about contact */
html.capacitor-native.theme-dark body[data-app-page="about"] {
  background: var(--dm-bg) !important;
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__panel {
  background: var(--dm-bg-elevated);
  border-color: var(--dm-border);
  box-shadow: none;
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__intro {
  background: linear-gradient(165deg, #2a3d2c 0%, #1e2e22 100%);
  color: var(--dm-text);
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__title,
html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__lead {
  color: var(--dm-text);
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__direct a {
  color: var(--forest);
  border-bottom-color: rgba(109, 184, 122, 0.35);
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__form {
  background: var(--dm-bg-elevated);
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__field span {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__field input,
html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__field textarea {
  color: var(--dm-text);
  border-bottom-color: var(--dm-border);
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__field input::placeholder,
html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__field textarea::placeholder {
  color: var(--dm-text-muted);
}

html.capacitor-native.theme-dark body[data-app-page="about"] .about-contact__submit {
  background: #2C5E3B;
}
