/* Gaia Healers — UI v2 with full light / dark theme support */

body.gaia-v2 {
  --gh-font: "Plus Jakarta Sans", Inter, -apple-system, system-ui, sans-serif;
  --gh-radius-xl: 28px;
  --gh-radius-lg: 20px;
  --gh-radius-md: 14px;
  --gh-accent: #5cb82e;
  --gh-accent-deep: #449422;
  --gh-accent-bright: #7dd956;
  /* Light defaults — overridden when data-theme="dark" */
  --gh-bg: #e4ebe0;
  --gh-bg-elevated: #ffffff;
  --gh-bg-card: #ffffff;
  --gh-border: rgba(68, 148, 34, 0.28);
  --gh-border-soft: rgba(28, 42, 30, 0.12);
  --gh-glow: rgba(92, 184, 46, 0.18);
  --gh-text: #152018;
  --gh-text-soft: rgba(21, 32, 24, 0.64);
  --gh-text-faint: rgba(21, 32, 24, 0.42);
  --gh-header-bg: rgba(255, 255, 255, 0.96);
  --gh-tabbar-bg: rgba(255, 255, 255, 0.98);
  --gh-tabbar-link: rgba(21, 32, 24, 0.48);
  --gh-tabbar-link-active: #449422;
  --gh-tabbar-ring: rgba(255, 255, 255, 1);
  --gh-assist-bg: #ffffff;
  --gh-assist-surface: rgba(21, 32, 24, 0.045);
  --gh-backdrop: rgba(16, 24, 18, 0.36);
  --gh-dash-hero-bg:
    radial-gradient(circle at 18% 0%, rgba(125, 217, 86, 0.32), transparent 44%),
    linear-gradient(155deg, #1a3022 0%, #2a5528 52%, #18301f 100%);
  --gh-dash-hero-text: #ffffff;
  --gh-dash-hero-sub: rgba(255, 255, 255, 0.74);
  --gh-bento-shadow: 0 8px 24px rgba(21, 32, 24, 0.07);
  --gh-chip-bg: rgba(92, 184, 46, 0.12);
  --gh-chip-text: #449422;
  --gh-placeholder: rgba(21, 32, 24, 0.36);
  --gh-handle: rgba(21, 32, 24, 0.14);
  --gh-settings-bg: #ffffff;
  --gh-sync-bg: rgba(255, 255, 255, 0.92);
  --gh-sync-text: rgba(21, 32, 24, 0.72);
  --ink: var(--gh-text);
  --ink-secondary: var(--gh-text-soft);
  --ink-tertiary: var(--gh-text-faint);
  --surface: var(--gh-bg-elevated);
  --surface-subtle: var(--gh-bg);
  --surface-muted: #dce6d8;
  --border: var(--gh-border-soft);
  --gaia-wash: #eef6e9;
  --gaia-muted: #e8f3e2;
}

/* —— Light theme —— */
body.gaia-v2[data-theme="light"] {
  --gh-bg: #e4ebe0;
  --gh-bg-elevated: #ffffff;
  --gh-bg-card: #ffffff;
  --gh-border: rgba(68, 148, 34, 0.28);
  --gh-border-soft: rgba(28, 42, 30, 0.12);
  --gh-glow: rgba(92, 184, 46, 0.18);
  --gh-text: #152018;
  --gh-text-soft: rgba(21, 32, 24, 0.64);
  --gh-text-faint: rgba(21, 32, 24, 0.42);
  --gh-header-bg: rgba(255, 255, 255, 0.96);
  --gh-tabbar-bg: rgba(255, 255, 255, 0.98);
  --gh-tabbar-link: rgba(21, 32, 24, 0.48);
  --gh-tabbar-link-active: #449422;
  --gh-tabbar-ring: rgba(255, 255, 255, 1);
  --gh-assist-bg: #ffffff;
  --gh-assist-surface: rgba(21, 32, 24, 0.045);
  --gh-backdrop: rgba(16, 24, 18, 0.36);
  --gh-dash-hero-bg:
    radial-gradient(circle at 18% 0%, rgba(125, 217, 86, 0.32), transparent 44%),
    linear-gradient(155deg, #1a3022 0%, #2a5528 52%, #18301f 100%);
  --gh-dash-hero-text: #ffffff;
  --gh-dash-hero-sub: rgba(255, 255, 255, 0.74);
  --gh-bento-shadow: 0 8px 24px rgba(21, 32, 24, 0.07);
  --gh-chip-bg: rgba(92, 184, 46, 0.12);
  --gh-chip-text: #449422;
  --gh-placeholder: rgba(21, 32, 24, 0.36);
  --gh-handle: rgba(21, 32, 24, 0.14);
  --gh-settings-bg: #ffffff;
  --gh-sync-bg: rgba(255, 255, 255, 0.92);
  --gh-sync-text: rgba(21, 32, 24, 0.72);

  --ink: var(--gh-text);
  --ink-secondary: var(--gh-text-soft);
  --ink-tertiary: var(--gh-text-faint);
  --surface: var(--gh-bg-elevated);
  --surface-subtle: var(--gh-bg);
  --surface-muted: #dce6d8;
  --border: var(--gh-border-soft);
  --gaia-wash: #eef6e9;
  --gaia-muted: #e8f3e2;
}

/* —— Dark theme —— */
body.gaia-v2[data-theme="dark"] {
  --gh-bg: #050807;
  --gh-bg-elevated: #101512;
  --gh-bg-card: #141a16;
  --gh-border: rgba(125, 217, 86, 0.2);
  --gh-border-soft: rgba(255, 255, 255, 0.09);
  --gh-glow: rgba(92, 184, 46, 0.28);
  --gh-text: #eef4eb;
  --gh-text-soft: rgba(238, 244, 235, 0.66);
  --gh-text-faint: rgba(238, 244, 235, 0.4);
  --gh-header-bg: rgba(5, 8, 7, 0.94);
  --gh-tabbar-bg: rgba(10, 14, 12, 0.94);
  --gh-tabbar-link: rgba(238, 244, 235, 0.46);
  --gh-tabbar-link-active: #7dd956;
  --gh-tabbar-ring: rgba(5, 8, 7, 0.98);
  --gh-assist-bg: #0c100e;
  --gh-assist-surface: rgba(255, 255, 255, 0.055);
  --gh-backdrop: rgba(0, 0, 0, 0.62);
  --gh-dash-hero-bg:
    radial-gradient(circle at 20% 0%, rgba(125, 217, 86, 0.18), transparent 44%),
    linear-gradient(155deg, #121f17 0%, #0a0f0c 100%);
  --gh-dash-hero-text: #eef4eb;
  --gh-dash-hero-sub: rgba(238, 244, 235, 0.64);
  --gh-bento-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  --gh-chip-bg: rgba(125, 217, 86, 0.12);
  --gh-chip-text: #7dd956;
  --gh-placeholder: rgba(238, 244, 235, 0.34);
  --gh-handle: rgba(255, 255, 255, 0.14);
  --gh-settings-bg: #101512;
  --gh-sync-bg: rgba(20, 26, 22, 0.92);
  --gh-sync-text: rgba(238, 244, 235, 0.72);

  --ink: var(--gh-text);
  --ink-secondary: var(--gh-text-soft);
  --ink-tertiary: var(--gh-text-faint);
  --surface: var(--gh-bg-elevated);
  --surface-subtle: var(--gh-bg);
  --surface-muted: rgba(255, 255, 255, 0.07);
  --border: var(--gh-border-soft);
  --gaia-wash: #0e1611;
  --gaia-muted: #152019;
}

/* —— App shell —— */
body.gaia-v2.gaia-app,
body.gaia-v2.gaia-page {
  font-family: var(--gh-font);
  background: var(--gh-bg) !important;
  color: var(--gh-text);
}

body.gaia-v2.gaia-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 140% 80% at 50% -14%, rgba(92, 184, 46, 0.16), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(68, 148, 34, 0.08), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(125, 217, 86, 0.06), transparent 45%);
}

body.gaia-v2[data-theme="dark"].gaia-app::before {
  background:
    radial-gradient(ellipse 140% 80% at 50% -14%, rgba(92, 184, 46, 0.11), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(68, 148, 34, 0.06), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(125, 217, 86, 0.04), transparent 45%);
}

body.gaia-v2 .gaia-shell,
body.gaia-v2 .gaia-screen {
  position: relative;
  z-index: 1;
  background: transparent;
}

body.gaia-v2 .gaia-header {
  background: var(--gh-header-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--gh-border-soft);
  padding-top: max(0.65rem, env(safe-area-inset-top));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.gaia-v2[data-theme="light"] .gaia-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.gaia-v2 .gaia-header .gaia-eyebrow,
body.gaia-v2 .gaia-header h1 {
  text-shadow: none !important;
}

body.gaia-v2 .gaia-header-actions {
  gap: 0.35rem;
}

body.gaia-v2 .gaia-header h1,
body.gaia-v2 .gaia-page-title,
body.gaia-v2 .text-title {
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--gh-text) !important;
  text-shadow: none !important;
}

body.gaia-v2 .gaia-header .gaia-eyebrow {
  color: var(--gh-accent-deep);
  text-shadow: none;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
}

body.gaia-v2[data-theme="dark"] .gaia-header .gaia-eyebrow {
  color: var(--gh-accent-bright);
}

body.gaia-v2 .gaia-header-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #5cb82e, #449422);
  border: 1px solid rgba(68, 148, 34, 0.4);
  box-shadow: var(--gh-bento-shadow);
  overflow: hidden;
}

body.gaia-v2 .gaia-header-profile.is-active,
body.gaia-v2 .gaia-header-profile[aria-current="page"] {
  background: var(--gh-chip-bg);
  border-color: var(--gh-border);
  color: var(--gh-chip-text);
}

body.gaia-v2 .gaia-coach {
  margin: 0 0 1rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-border);
  box-shadow: var(--gh-bento-shadow);
  animation: gaia-coach-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.gaia-v2[data-theme="light"] .gaia-coach {
  background:
    radial-gradient(circle at 0% 0%, rgba(125, 217, 86, 0.14), transparent 55%),
    linear-gradient(155deg, #ffffff 0%, #f0f7ec 100%);
}

body.gaia-v2[data-theme="dark"] .gaia-coach {
  background:
    radial-gradient(circle at 0% 0%, rgba(125, 217, 86, 0.12), transparent 55%),
    linear-gradient(155deg, rgba(18, 28, 22, 0.98) 0%, rgba(10, 14, 12, 0.96) 100%);
}

body.gaia-v2 .gaia-coach__eyebrow {
  color: var(--gh-accent-deep) !important;
  text-shadow: none !important;
}

body.gaia-v2[data-theme="dark"] .gaia-coach__eyebrow {
  color: var(--gh-accent-bright) !important;
}

body.gaia-v2 .gaia-coach__body {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--gh-text) !important;
}

body.gaia-v2 .gaia-coach__sub {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gh-text-soft) !important;
}

body.gaia-v2 .gaia-coach__btn {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gh-accent-deep) !important;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

body.gaia-v2[data-theme="dark"] .gaia-coach__btn {
  color: var(--gh-accent-bright) !important;
}

body.gaia-v2 .gaia-login-pill {
  background: var(--gh-bg-elevated);
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-chip-text);
  font-weight: 600;
  border-radius: 999px;
}

body.gaia-v2 .gaia-theme-toggle {
  background: var(--gh-assist-surface);
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-text);
}

body.gaia-v2 .gaia-main {
  padding: 0.75rem 1rem 1.5rem;
  gap: 0.85rem;
}

body.gaia-v2 .text-ink,
body.gaia-v2 .text-headline {
  color: var(--gh-text) !important;
}

body.gaia-v2 .text-ink-secondary,
body.gaia-v2 .gaia-caption {
  color: var(--gh-text-soft) !important;
}

body.gaia-v2 .text-ink-tertiary {
  color: var(--gh-text-faint) !important;
}

body.gaia-v2 .text-gaia-dark {
  color: var(--gh-accent-deep) !important;
}

body.gaia-v2[data-theme="dark"] .text-gaia-dark {
  color: var(--gh-accent-bright) !important;
}

/* —— Today —— */
body.gaia-v2 .gaia-dash-hero {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: var(--gh-radius-xl);
  border: 1px solid var(--gh-border);
  background: var(--gh-dash-hero-bg);
  box-shadow: var(--gh-bento-shadow);
}

body.gaia-v2 .gaia-dash-hero__greeting {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-accent-bright);
}

body.gaia-v2 .gaia-dash-hero__title {
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--gh-dash-hero-text);
}

body.gaia-v2 .gaia-dash-hero__title em {
  font-style: normal;
  color: var(--gh-accent-bright);
}

body.gaia-v2 .gaia-dash-hero__sub {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gh-dash-hero-sub);
}

body.gaia-v2 .gaia-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

body.gaia-v2 .gaia-bento__tile {
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: 5.5rem;
  padding: 1rem;
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-border-soft);
  background: var(--gh-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--gh-bento-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.gaia-v2 .gaia-bento__tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(92, 184, 46, 0.16);
  border-color: rgba(125, 217, 86, 0.45);
}

body.gaia-v2 .gaia-bento__tile:active {
  transform: scale(0.98) translateY(0);
}

body.gaia-v2 .gaia-bento__tile--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 6.25rem;
  border-color: var(--gh-border);
  background:
    radial-gradient(circle at 0% 50%, rgba(125, 217, 86, 0.12), transparent 55%),
    var(--gh-bg-card);
}

body.gaia-v2 .gaia-bento__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-bento__title {
  margin-top: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gh-text);
}

body.gaia-v2 .gaia-bento__meta {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-bento__tile--wide .gaia-score-ring__value {
  color: var(--gh-accent-deep) !important;
}

body.gaia-v2[data-theme="dark"] .gaia-bento__tile--wide .gaia-score-ring__value {
  color: var(--gh-accent-bright) !important;
}

/* —— Shared cards —— */
body.gaia-v2 .gaia-card,
body.gaia-v2 .gaia-journey-card,
body.gaia-v2 .gaia-chakra-teaser {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-border-soft);
  background: var(--gh-bg-card) !important;
  box-shadow: var(--gh-bento-shadow);
}

body.gaia-v2 .gaia-badge {
  border-radius: 999px;
  background: var(--gh-chip-bg);
  color: var(--gh-chip-text);
  border: 1px solid var(--gh-border);
}

body.gaia-v2 .gaia-badge--live {
  background: rgba(92, 184, 46, 0.16);
  color: var(--gh-chip-text);
  border-color: var(--gh-border);
}

body.gaia-v2 .gaia-badge--subtle {
  background: var(--gh-assist-surface);
  color: var(--gh-text-soft);
  border-color: var(--gh-border-soft);
}

/* Newsletter segment toggle (community > newsletter panel). */
body.gaia-v2 .gaia-newsletter-toggle {
  flex-shrink: 0;
  min-width: 5.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--gh-border);
  background: var(--gh-assist-surface);
  color: var(--gh-text-soft);
  font-size: var(--gh-text-micro, 0.75rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body.gaia-v2 .gaia-newsletter-toggle--on {
  background: rgba(92, 184, 46, 0.16);
  color: var(--gh-chip-text);
  border-color: var(--gh-border);
}
body.gaia-v2 .gaia-newsletter-toggle:active {
  transform: scale(0.97);
}

body.gaia-v2 .gaia-row {
  border-radius: var(--gh-radius-md);
  border: 1px solid var(--gh-border-soft);
  background: var(--gh-bg-card);
}

/* —— Wellness —— */
body.gaia-v2 .gaia-score-hero {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-border-soft);
  background: var(--gh-bg-card) !important;
  box-shadow: var(--gh-bento-shadow);
}

body.gaia-v2 .gaia-score-ring__value {
  color: var(--gh-accent-deep) !important;
}

body.gaia-v2[data-theme="dark"] .gaia-score-ring__value {
  color: var(--gh-accent-bright) !important;
}

body.gaia-v2 .gaia-segment {
  background: var(--gh-assist-surface);
  border: 1px solid var(--gh-border-soft);
  border-radius: 999px;
}

body.gaia-v2 .gaia-segment__item {
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-segment__item--active {
  background: var(--gh-chip-bg);
  color: var(--gh-accent-deep);
}

body.gaia-v2 .gaia-chart__bar {
  background: var(--gh-assist-surface);
}

body.gaia-v2 .gaia-chart__bar--active,
body.gaia-v2 .gaia-chart__bar.gaia-chart__bar--active {
  background: linear-gradient(180deg, var(--gh-accent-bright), var(--gh-accent-deep));
}

body.gaia-v2 .gaia-metric {
  background: var(--gh-assist-surface);
  border: 1px solid var(--gh-border-soft);
  border-radius: var(--gh-radius-md);
}

body.gaia-v2 #wellness-tabs button,
body.gaia-v2 #community-tabs button {
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

body.gaia-v2 #wellness-tabs button.bg-surface-muted,
body.gaia-v2 #community-tabs button.bg-surface-muted {
  background: var(--gh-assist-surface) !important;
  color: var(--gh-text-soft) !important;
  border-color: var(--gh-border-soft);
}

body.gaia-v2 #wellness-tabs button.bg-gaia,
body.gaia-v2 #community-tabs button.bg-gaia {
  background: var(--gh-chip-bg) !important;
  color: var(--gh-accent-deep) !important;
  border-color: var(--gh-border) !important;
}

body.gaia-v2[data-theme="dark"] #wellness-tabs button.bg-gaia,
body.gaia-v2[data-theme="dark"] #community-tabs button.bg-gaia {
  color: var(--gh-accent-bright) !important;
}

body.gaia-v2 .gaia-chakra-map--screen .gaia-chakra-map__list-item {
  background: var(--gh-assist-surface);
  border-color: var(--gh-border-soft);
}

/* —— Academy —— */
body.gaia-v2 .gaia-card-dark {
  border-radius: var(--gh-radius-xl);
  border: 1px solid var(--gh-border);
}

body.gaia-v2 .gaia-card-accent {
  background:
    radial-gradient(circle at 0% 0%, rgba(125, 217, 86, 0.1), transparent 50%),
    var(--gh-bg-card) !important;
  border-color: var(--gh-border);
}

body.gaia-v2 .gaia-course-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

body.gaia-v2 .gaia-course-card:active {
  transform: translateY(1px);
}

/* —— Community —— */
body.gaia-v2 .gaia-community-strip {
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-border-soft);
  background: var(--gh-bg-card);
}

body.gaia-v2 .gaia-community-strip__portal,
body.gaia-v2 .gaia-community-strip__stat {
  background: var(--gh-assist-surface);
  border-color: var(--gh-border-soft);
  color: var(--gh-text);
}

body.gaia-v2 .gaia-community-panel__title {
  color: var(--gh-text);
}

body.gaia-v2 .gaia-feed article,
body.gaia-v2 .gaia-stack article,
body.gaia-v2 .gaia-stack .gaia-card {
  border-color: var(--gh-border-soft);
}

/* —— Profile —— */
body.gaia-v2 .gaia-profile-hero {
  border-radius: var(--gh-radius-xl);
  border: 1px solid var(--gh-border-soft);
  background: var(--gh-bg-card);
}

body.gaia-v2 .gaia-profile-logo {
  border-color: var(--gh-border);
  background: var(--gh-assist-surface);
}

body.gaia-v2 .gaia-stat-tile,
body.gaia-v2 .gaia-settings-row {
  background: var(--gh-bg-card);
  border-color: var(--gh-border-soft);
}

/* —— Tab bar —— */
body.gaia-v2.gaia-has-tabbar {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

body.gaia-v2 .gaia-tabbar {
  padding-left: max(1rem, env(safe-area-inset-left)) !important;
  padding-right: max(1rem, env(safe-area-inset-right)) !important;
}

body.gaia-v2 .gaia-tabbar__inner {
  max-width: 100% !important;
  width: 100%;
  min-height: 3.65rem;
  padding: 0.35rem 0.25rem !important;
  border-radius: 999px !important;
  background: var(--gh-tabbar-bg) !important;
  border: 1px solid var(--gh-border-soft) !important;
  box-shadow: var(--gh-bento-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: visible;
}

body.gaia-v2 .gaia-tabbar__group {
  flex: 1 1 0;
  display: flex;
  align-items: end;
  gap: 0;
  min-width: 0;
  overflow: visible;
}

body.gaia-v2 .gaia-tabbar__group--left {
  justify-content: flex-end;
  padding-right: 0.05rem;
}

body.gaia-v2 .gaia-tabbar__group--right {
  justify-content: flex-start;
  padding-left: 0.05rem;
}

body.gaia-v2 .gaia-tabbar__link {
  flex: 1 1 0;
  min-width: 3rem;
  max-width: 4.5rem;
  padding: 0.35rem 0.05rem 0.28rem;
  color: var(--gh-tabbar-link) !important;
}

body.gaia-v2 .gaia-tabbar__icon {
  width: 1.25rem;
  height: 1.25rem;
}

body.gaia-v2 .gaia-tabbar__assist {
  flex-shrink: 0;
}

body.gaia-v2 .gaia-tabbar__inner {
  gap: 0.12rem !important;
}


body.gaia-v2 .gaia-tabbar__link.is-active {
  color: var(--gh-tabbar-link-active) !important;
}

body.gaia-v2 .gaia-tabbar__link.is-active::before {
  inset: 0.1rem 0.05rem;
  background: var(--gh-chip-bg);
  border: 1px solid var(--gh-border-soft);
  box-shadow: none;
}

body.gaia-v2 .gaia-tabbar__icon {
  color: inherit;
  filter: none;
}

body.gaia-v2 .gaia-tabbar__label {
  font-size: 0.52rem !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.gaia-v2 .gaia-tabbar__assist {
  width: 3.5rem;
  height: 3.5rem;
  margin: -0.85rem 0.08rem 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #8ee862 0%, #5cb82e 45%, #3d8a1f 100%);
  box-shadow:
    0 0 0 3px var(--gh-tabbar-ring),
    0 12px 36px rgba(92, 184, 46, 0.4);
}

body.gaia-v2 .gaia-tabbar__assist-pulse {
  inset: -0.25rem;
  border-color: rgba(125, 217, 86, 0.4);
}

/* —— Gaia Assist sheet —— */
body.gaia-v2 .gaia-assist__backdrop {
  position: fixed;
  inset: 0;
  z-index: 54;
  border: 0;
  background: var(--gh-backdrop);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  pointer-events: auto;
  animation: gh-fade-in 0.22s ease;
}

body.gaia-v2 .gaia-assist__panel {
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 55;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  max-height: min(65vh, 36rem);
  padding: 0;
  border-radius: var(--gh-radius-xl) var(--gh-radius-xl) 0 0;
  border: 1px solid var(--gh-border-soft);
  border-bottom: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(125, 217, 86, 0.14), transparent 65%),
    var(--gh-assist-bg);
  box-shadow: 0 -16px 64px rgba(0, 0, 0, 0.18);
  animation: gh-sheet-up 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  color: var(--gh-text);
}

body.gaia-v2 .gaia-assist__sheet {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.4rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  max-height: inherit;
  overflow: hidden;
}

body.gaia-v2 .gaia-assist__handle {
  width: 2.5rem;
  height: 0.28rem;
  margin: 0.15rem auto 0.35rem;
  background: var(--gh-handle);
}

body.gaia-v2 .gaia-assist__aura {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0 0.1rem;
}

/* The orb is now a button — the primary tap target to start voice. */
body.gaia-v2 .gaia-assist__orb-visual {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--gh-accent-bright), var(--gh-accent) 55%, var(--gh-accent-deep));
  box-shadow:
    0 0 0 1px rgba(125, 217, 86, 0.3),
    0 8px 32px rgba(92, 184, 46, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -8px 16px rgba(68, 148, 34, 0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: gh-orb-breathe 3.5s ease-in-out infinite;
}

body.gaia-v2 .gaia-assist__orb-visual:active {
  transform: scale(0.93);
}

/* Concentric ripple rings that radiate outward while idle/awaiting tap. */
body.gaia-v2 .gaia-assist__orb-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--gh-accent-bright);
  pointer-events: none;
  opacity: 0;
}

body.gaia-v2 .gaia-assist__orb-ring--1 {
  animation: gh-orb-ripple 2.8s ease-out infinite;
}
body.gaia-v2 .gaia-assist__orb-ring--2 {
  animation: gh-orb-ripple 2.8s ease-out infinite 1.4s;
}

body.gaia-v2 .gaia-assist__orb-icon {
  position: relative;
  z-index: 1;
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(68, 148, 34, 0.45));
  pointer-events: none;
}

/* State-driven orb transformations. */
body.gaia-v2 .gaia-assist--connecting .gaia-assist__orb-visual {
  animation: gh-connect 1.2s ease-in-out infinite;
}

body.gaia-v2 .gaia-assist--listening .gaia-assist__orb-visual,
body.gaia-v2 .gaia-assist--holding .gaia-assist__orb-visual,
body.gaia-v2 .gaia-assist--ready .gaia-assist__orb-visual {
  box-shadow:
    0 0 0 2px rgba(125, 217, 86, 0.4),
    0 0 24px rgba(125, 217, 86, 0.5),
    0 8px 32px rgba(92, 184, 46, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

body.gaia-v2 .gaia-assist--listening .gaia-assist__orb-ring,
body.gaia-v2 .gaia-assist--holding .gaia-assist__orb-ring,
body.gaia-v2 .gaia-assist--ready .gaia-assist__orb-ring {
  border-color: var(--gh-accent-bright);
  animation-duration: 1.6s;
}

body.gaia-v2 .gaia-assist--thinking .gaia-assist__orb-visual {
  animation: gh-orb-think 1.5s ease-in-out infinite;
}

body.gaia-v2 .gaia-assist--speaking .gaia-assist__orb-visual {
  animation: gh-orb-speak 0.8s ease-in-out infinite;
  box-shadow:
    0 0 0 2px rgba(125, 217, 86, 0.5),
    0 0 40px rgba(125, 217, 86, 0.6),
    0 8px 32px rgba(92, 184, 46, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

body.gaia-v2 .gaia-assist__wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  height: 1.6rem;
}

body.gaia-v2 .gaia-assist__wave span {
  width: 0.26rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(92, 184, 46, 0.3);
  transition: background 0.3s ease;
}

body.gaia-v2 .gaia-assist--holding .gaia-assist__wave span,
body.gaia-v2 .gaia-assist--listening .gaia-assist__wave span,
body.gaia-v2 .gaia-voice-holding .gaia-assist__wave span,
body.gaia-v2 .gaia-assist--thinking .gaia-assist__wave span,
body.gaia-v2 .gaia-assist--speaking .gaia-assist__wave span {
  animation: gh-wave 0.75s ease-in-out infinite;
  background: var(--gh-accent);
}

body.gaia-v2 .gaia-assist__wave span:nth-child(2) { animation-delay: 0.08s; }
body.gaia-v2 .gaia-assist__wave span:nth-child(3) { animation-delay: 0.16s; }
body.gaia-v2 .gaia-assist__wave span:nth-child(4) { animation-delay: 0.24s; }
body.gaia-v2 .gaia-assist__wave span:nth-child(5) { animation-delay: 0.32s; }

body.gaia-v2 .gaia-assist__headline {
  text-align: center;
}

body.gaia-v2 .gaia-assist__headline h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gh-text);
}

body.gaia-v2 .gaia-assist__status {
  margin-top: 0.3rem;
  font-size: 0.8375rem;
  font-weight: 600;
  color: var(--gh-text-soft);
  text-align: center;
  transition: color 0.3s ease;
}

body.gaia-v2 .gaia-assist__status[data-assist-state="holding"],
body.gaia-v2 .gaia-assist__status[data-assist-state="connecting"],
body.gaia-v2 .gaia-assist__status[data-assist-state="listening"],
body.gaia-v2 .gaia-assist__status[data-assist-state="ready"] {
  color: var(--gh-accent-deep);
}

body.gaia-v2[data-theme="dark"] .gaia-assist__status[data-assist-state="holding"],
body.gaia-v2[data-theme="dark"] .gaia-assist__status[data-assist-state="connecting"],
body.gaia-v2[data-theme="dark"] .gaia-assist__status[data-assist-state="listening"],
body.gaia-v2[data-theme="dark"] .gaia-assist__status[data-assist-state="ready"] {
  color: var(--gh-accent-bright);
}

body.gaia-v2 .gaia-assist__transcript {
  flex: 1;
  min-height: 2.5rem;
  max-height: 7rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.1rem 0.1rem;
}

body.gaia-v2 .gaia-assist__bubble {
  max-width: 88%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  word-break: break-word;
}

body.gaia-v2 .gaia-assist__bubble--live {
  align-self: flex-end;
  max-width: 88%;
  border: 1px dashed var(--gh-border);
  background: transparent;
  color: var(--gh-text-soft);
  font-style: italic;
}

body.gaia-v2 .gaia-assist__bubble--user {
  align-self: flex-end;
  background: var(--gh-chip-bg);
  border: 1px solid var(--gh-border);
  color: var(--gh-text);
}

body.gaia-v2 .gaia-assist__bubble--bot {
  align-self: flex-start;
  background: var(--gh-assist-surface);
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-assist__chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

body.gaia-v2 .gaia-assist__chips::-webkit-scrollbar {
  display: none;
}

body.gaia-v2 .gaia-assist__chips button {
  flex-shrink: 0;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: var(--gh-chip-bg);
  color: var(--gh-accent-deep);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

body.gaia-v2 .gaia-assist__chips button:hover {
  transform: translateY(-1px);
  background: rgba(92, 184, 46, 0.18);
  border-color: rgba(125, 217, 86, 0.55);
}

body.gaia-v2 .gaia-assist__chips button:active {
  transform: scale(0.97) translateY(0);
}

body.gaia-v2[data-theme="dark"] .gaia-assist__chips button {
  color: var(--gh-accent-bright);
}

body.gaia-v2 .gaia-assist__input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--gh-border-soft);
  background: var(--gh-assist-surface);
}

body.gaia-v2 .gaia-assist__input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--gh-text);
  font-size: 0.9375rem;
  outline: none;
}

body.gaia-v2 .gaia-assist__input-row input::placeholder {
  color: var(--gh-placeholder);
}

body.gaia-v2 .gaia-assist__input-row button[type="submit"] {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--gh-accent-bright), var(--gh-accent-deep));
  color: #061008;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(92, 184, 46, 0.28);
}

body.gaia-v2 .gaia-assist__hint-line {
  font-size: 0.6875rem;
  color: var(--gh-text-faint);
}

body.gaia-v2 .gaia-assist__close,
body.gaia-v2 .gaia-assist__settings summary {
  position: absolute;
  top: 0.85rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gh-assist-surface);
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-text-soft);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.gaia-v2 .gaia-assist__close:hover,
body.gaia-v2 .gaia-assist__settings summary:hover {
  transform: translateY(-1px);
  background: rgba(92, 184, 46, 0.12);
  border-color: rgba(125, 217, 86, 0.45);
  color: var(--gh-accent-deep);
}

body.gaia-v2 .gaia-assist__close:active,
body.gaia-v2 .gaia-assist__settings summary:active {
  transform: scale(0.95) translateY(0);
}

body.gaia-v2 .gaia-assist__close {
  right: 0.85rem;
  font-size: 1.1rem;
  line-height: 1;
}

body.gaia-v2 .gaia-assist__settings {
  display: none;
}

body.gaia-v2 .gaia-assist__settings summary {
  position: static;
  list-style: none;
  font-size: 0.875rem;
}

body.gaia-v2 .gaia-assist__settings summary::-webkit-details-marker {
  display: none;
}

body.gaia-v2 .gaia-assist__settings-grid {
  position: absolute;
  top: 2.5rem;
  left: 0;
  z-index: 2;
  min-width: 12rem;
  padding: 0.75rem;
  border-radius: var(--gh-radius-md);
  border: 1px solid var(--gh-border-soft);
  background: var(--gh-settings-bg);
  box-shadow: var(--gh-bento-shadow);
  color: var(--gh-text);
}

body.gaia-v2 .gaia-assist__settings-grid label {
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-assist__settings-grid select {
  background: var(--gh-assist-surface);
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-text);
  border-radius: 0.65rem;
}

body.gaia-v2 .gaia-assist__error {
  font-size: 0.75rem;
  color: #c62828;
  text-align: center;
  padding: 0.35rem 0.5rem;
  border-radius: 0.65rem;
  background: rgba(198, 40, 40, 0.1);
}

body.gaia-v2[data-theme="dark"] .gaia-assist__error {
  color: #ff8a8a;
  background: rgba(255, 90, 90, 0.1);
}

body.gaia-v2 .gaia-assist__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body.gaia-v2 .gaia-assist__top,
body.gaia-v2 .gaia-assist__mini {
  display: none;
}

body.gaia-v2 .gaia-assist__orb {
  display: none !important;
}

body.gaia-v2 .gaia-btn-primary {
  background: linear-gradient(145deg, var(--gh-accent-bright), var(--gh-accent-deep));
  color: #061008;
}

body.gaia-v2 .gaia-progress {
  background: var(--gh-assist-surface);
}

body.gaia-v2 .gaia-progress__fill {
  background: linear-gradient(90deg, var(--gh-accent-bright), var(--gh-accent-deep));
}

body.gaia-v2 .journey-step.current .journey-dot {
  border-color: var(--gh-accent-deep);
  background: var(--gh-chip-bg);
}

body.gaia-v2 .journey-step.done .journey-dot {
  border-color: var(--gh-accent-deep);
  background: var(--gh-accent-deep);
}

@keyframes gh-sheet-up {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes gh-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gh-wave {
  0%, 100% { height: 0.35rem; opacity: 0.55; }
  50% { height: 1.25rem; opacity: 1; }
}

@keyframes gh-aura-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes gh-connect {
  0%, 100% { opacity: 0.65; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes gh-orb-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes gh-orb-ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes gh-orb-think {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.97) rotate(3deg); }
}

@keyframes gh-orb-speak {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes gaia-coach-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— Theme utility bridges (Tailwind + legacy classes) —— */
body.gaia-v2 .bg-surface,
body.gaia-v2 .bg-white {
  background-color: var(--gh-bg-elevated) !important;
}

body.gaia-v2 .bg-surface-muted,
body.gaia-v2 .bg-surface-subtle {
  background-color: var(--surface-muted) !important;
}

body.gaia-v2 .bg-gaia-wash {
  background-color: var(--gaia-wash) !important;
}

body.gaia-v2 .bg-gaia-muted {
  background-color: var(--gaia-muted) !important;
}

body.gaia-v2[data-theme="light"] .bg-indigo-50 {
  background-color: #eef2ff !important;
}

body.gaia-v2[data-theme="light"] .bg-teal-50 {
  background-color: #f0fdfa !important;
}

body.gaia-v2[data-theme="dark"] .bg-indigo-50 {
  background-color: rgba(99, 102, 241, 0.14) !important;
}

body.gaia-v2[data-theme="dark"] .bg-teal-50 {
  background-color: rgba(20, 184, 166, 0.12) !important;
}

body.gaia-v2[data-theme="light"] .text-indigo-600,
body.gaia-v2[data-theme="light"] .text-indigo-700 {
  color: #4338ca !important;
}

body.gaia-v2[data-theme="light"] .text-teal-600,
body.gaia-v2[data-theme="light"] .text-teal-700 {
  color: #0f766e !important;
}

body.gaia-v2[data-theme="dark"] .text-indigo-600,
body.gaia-v2[data-theme="dark"] .text-indigo-700 {
  color: #a5b4fc !important;
}

body.gaia-v2[data-theme="dark"] .text-teal-600,
body.gaia-v2[data-theme="dark"] .text-teal-700 {
  color: #5eead4 !important;
}

body.gaia-v2[data-theme="light"] .text-violet-600 {
  color: #7c3aed !important;
}

body.gaia-v2[data-theme="dark"] .text-violet-600 {
  color: #c4b5fd !important;
}

body.gaia-v2[data-theme="dark"] .border-gaia.bg-white {
  background-color: var(--gh-bg-elevated) !important;
  color: var(--gh-accent-bright) !important;
}

body.gaia-v2 .journey-step.locked .journey-dot {
  border-color: var(--gh-border-soft);
  background: var(--gh-assist-surface);
}

body.gaia-v2 .gaia-card-dark {
  background:
    radial-gradient(circle at 12% 0%, rgba(125, 217, 86, 0.16), transparent 48%),
    linear-gradient(155deg, #1b3224 0%, #122018 100%) !important;
  border: 1px solid var(--gh-border) !important;
  color: #eef4eb;
}

body.gaia-v2[data-theme="light"] .gaia-card-dark {
  background:
    radial-gradient(circle at 12% 0%, rgba(125, 217, 86, 0.22), transparent 48%),
    linear-gradient(155deg, #244c24 0%, #1b3224 100%) !important;
}

body.gaia-v2 .gaia-card-dark .text-white,
body.gaia-v2 .gaia-card-dark .text-title,
body.gaia-v2 .gaia-card-dark .text-headline {
  color: #ffffff !important;
}

body.gaia-v2 .gaia-card-dark .gaia-caption,
body.gaia-v2 .gaia-card-dark .text-caption {
  color: rgba(255, 255, 255, 0.62) !important;
}

body.gaia-v2 .gaia-live-sync {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: var(--gh-sync-bg) !important;
  color: var(--gh-sync-text) !important;
  border: 1px solid var(--gh-border-soft);
  box-shadow: var(--gh-bento-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

body.gaia-v2 .gaia-live-sync--hero {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
}

body.gaia-v2 .gaia-live-sync--header {
  order: -1;
  margin-right: 0.15rem;
}

body.gaia-v2 .gaia-live-sync strong {
  font-weight: 700;
  color: var(--gh-sync-text);
}

body.gaia-v2 .gaia-live-sync span {
  width: 0.4rem;
  height: 0.4rem;
  box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.16);
}

body.gaia-v2 .gaia-live-sync--live span {
  background: var(--gh-accent-bright);
  box-shadow: 0 0 0 3px rgba(125, 217, 86, 0.18);
}

body.gaia-v2 .gaia-live-sync--live strong {
  color: var(--gh-chip-text);
}

body.gaia-v2 .gaia-theme-toggle {
  width: 2.125rem;
  height: 2.125rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  flex-shrink: 0;
}

body.gaia-v2 .gaia-theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
}

body.gaia-v2[data-theme="light"] .gaia-tabbar__inner {
  box-shadow: var(--gh-bento-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

body.gaia-v2[data-theme="dark"] .gaia-tabbar__inner {
  box-shadow: var(--gh-bento-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.gaia-v2 #wellness-tabs button.text-white,
body.gaia-v2 #community-tabs button.text-white {
  color: var(--gh-accent-deep) !important;
}

body.gaia-v2[data-theme="dark"] #wellness-tabs button.text-white,
body.gaia-v2[data-theme="dark"] #community-tabs button.text-white {
  color: var(--gh-accent-bright) !important;
}

body.gaia-v2 .gaia-screen {
  background: transparent;
  color: var(--gh-text);
}

body.gaia-v2 .gaia-link {
  color: var(--gh-accent-deep);
}

body.gaia-v2[data-theme="dark"] .gaia-link {
  color: var(--gh-accent-bright);
}

/* —— Community, feed, misc —— */
body.gaia-v2 .gaia-section-label {
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-section-title,
body.gaia-v2 .gaia-body {
  color: var(--gh-text);
}

body.gaia-v2 .gaia-card-inset {
  background: var(--gh-assist-surface) !important;
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-text);
}

body.gaia-v2 .gaia-group-chip {
  background: var(--gh-bg-card);
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-text);
  box-shadow: var(--gh-bento-shadow);
}

body.gaia-v2 .gaia-group-chip.is-active {
  background: var(--gh-chip-bg);
  border-color: var(--gh-border);
  color: var(--gh-chip-text);
}

body.gaia-v2 .gaia-group-chip__meta,
body.gaia-v2 .gaia-group-chip__privacy {
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-feed-card,
body.gaia-v2 .gaia-feed article {
  background: var(--gh-bg-card) !important;
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-text);
  box-shadow: var(--gh-bento-shadow);
}

body.gaia-v2 .gaia-feed-card__title,
body.gaia-v2 .gaia-community-panel__title,
body.gaia-v2 .gaia-community-panel__eyebrow {
  color: var(--gh-text);
}

body.gaia-v2 .gaia-feed-card__meta,
body.gaia-v2 .gaia-feed-card__time,
body.gaia-v2 .gaia-community-panel__sub {
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-event-ticket,
body.gaia-v2 .gaia-event-metric {
  background: var(--gh-assist-surface);
  border: 1px solid var(--gh-border-soft);
  color: var(--gh-text);
}

body.gaia-v2 .gaia-timeline__dot {
  background: var(--gh-accent);
  box-shadow: 0 0 0 4px var(--gh-chip-bg);
}

body.gaia-v2 .gaia-score-ring__track {
  stroke: var(--gh-assist-surface);
}

body.gaia-v2 .gaia-score-ring__progress {
  stroke: url(#gaia-ring-gradient);
}

body.gaia-v2 .gaia-source-pill {
  background: var(--gh-chip-bg);
  color: var(--gh-chip-text);
  border: 1px solid var(--gh-border-soft);
}

body.gaia-v2 .gaia-tile-icon {
  border: 1px solid var(--gh-border-soft);
}

body.gaia-v2 .gaia-chart__label {
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-metric__label {
  color: var(--gh-text-soft);
}

body.gaia-v2 .gaia-metric__value {
  color: var(--gh-text);
}

body.gaia-v2 .gaia-card-dark .gaia-btn-primary,
body.gaia-v2 .rounded-xl.bg-gaia {
  color: #061008 !important;
}

body.gaia-v2 .gaia-portal-workspace {
  position: fixed;
  inset: 0;
  z-index: 80;
}

body.gaia-v2 .gaia-portal-workspace.hidden {
  display: none;
}

body.gaia-v2 .gaia-portal-workspace__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 10, 5, 0.68);
  backdrop-filter: blur(12px);
}

body.gaia-v2 .gaia-portal-workspace__sheet {
  position: absolute;
  inset: max(env(safe-area-inset-top, 0px), 18px) 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(103, 214, 59, 0.18);
  background: linear-gradient(180deg, rgba(8, 19, 11, 0.96), rgba(11, 24, 15, 0.98));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

body.gaia-v2[data-theme="light"] .gaia-portal-workspace__sheet {
  background: linear-gradient(180deg, rgba(244, 248, 242, 0.98), rgba(233, 240, 229, 0.98));
  border-color: rgba(87, 160, 55, 0.18);
}

body.gaia-v2 .gaia-portal-workspace__handle {
  width: 54px;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

body.gaia-v2[data-theme="light"] .gaia-portal-workspace__handle {
  background: rgba(21, 39, 25, 0.16);
}

body.gaia-v2 .gaia-portal-workspace__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.gaia-v2 .gaia-portal-workspace__title {
  margin: 4px 0 0;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--gh-text);
}

body.gaia-v2 .gaia-portal-workspace__note {
  margin: 6px 0 0;
  max-width: 52rem;
  color: var(--gh-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.gaia-v2 .gaia-portal-workspace__close,
body.gaia-v2 .gaia-portal-workspace__chip,
body.gaia-v2 .gaia-portal-workspace__external {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gh-text);
}

body.gaia-v2[data-theme="light"] .gaia-portal-workspace__close,
body.gaia-v2[data-theme="light"] .gaia-portal-workspace__chip,
body.gaia-v2[data-theme="light"] .gaia-portal-workspace__external {
  border-color: rgba(21, 39, 25, 0.1);
  background: rgba(21, 39, 25, 0.05);
}

body.gaia-v2 .gaia-portal-workspace__close {
  width: 44px;
  height: 44px;
  font-size: 1.55rem;
  line-height: 1;
}

body.gaia-v2 .gaia-portal-workspace__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.gaia-v2 .gaia-portal-workspace__chip,
body.gaia-v2 .gaia-portal-workspace__external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

body.gaia-v2 .gaia-portal-workspace__chip:hover,
body.gaia-v2 .gaia-portal-workspace__external:hover {
  border-color: rgba(103, 214, 59, 0.42);
  color: var(--gh-accent);
}

body.gaia-v2 .gaia-portal-workspace__frame-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(103, 214, 59, 0.12);
  background: rgba(4, 10, 6, 0.66);
}

body.gaia-v2[data-theme="light"] .gaia-portal-workspace__frame-wrap {
  background: rgba(255, 255, 255, 0.88);
}

body.gaia-v2 .gaia-portal-workspace__frame {
  width: 100%;
  height: 100%;
  min-height: clamp(480px, 74vh, 980px);
  border: 0;
  background: #fff;
}

@media (max-width: 720px) {
  body.gaia-v2 .gaia-portal-workspace__sheet {
    inset: max(env(safe-area-inset-top, 0px), 8px) 8px 8px;
    padding: 12px;
    border-radius: 24px;
  }

  body.gaia-v2 .gaia-portal-workspace__title {
    font-size: 1.05rem;
  }

  body.gaia-v2 .gaia-portal-workspace__note {
    font-size: 0.84rem;
  }

  body.gaia-v2 .gaia-portal-workspace__frame {
    min-height: 68vh;
  }
}

/* —— Mobile layout guard (overflow / safe areas) —— */
@media (max-width: 520px) {
  html,
  body.gaia-v2.gaia-app {
    overflow-x: clip;
    max-width: 100%;
  }

  body.gaia-v2 .gaia-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body.gaia-v2 .gaia-header,
  body.gaia-v2 .gaia-main {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    overflow-x: clip;
  }

  body.gaia-v2 .gaia-header .flex,
  body.gaia-v2 .gaia-row,
  body.gaia-v2 .gaia-card,
  body.gaia-v2 .gaia-bento,
  body.gaia-v2 .gaia-wellness-panel,
  body.gaia-v2 .gaia-community-panel,
  body.gaia-v2 .gaia-community-strip,
  body.gaia-v2 .gaia-dash-hero,
  body.gaia-v2 .gaia-score-hero,
  body.gaia-v2 .gaia-chakra-map,
  body.gaia-v2 .gaia-feed-card,
  body.gaia-v2 .gaia-event-ticket,
  body.gaia-v2 .gaia-group-rail,
  body.gaia-v2 .gaia-stack {
    max-width: 100%;
    min-width: 0;
  }

  body.gaia-v2 .gaia-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 58%;
  }

  body.gaia-v2 .gaia-page-title,
  body.gaia-v2 .text-title,
  body.gaia-v2 .gaia-section-title,
  body.gaia-v2 .text-headline {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.gaia-v2 .gaia-community-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  body.gaia-v2 .gaia-community-strip__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
  }

  body.gaia-v2 .gaia-community-strip__stat {
    min-width: 0;
    text-align: center;
  }

  body.gaia-v2 .gaia-bento {
    grid-template-columns: minmax(0, 1fr);
  }

  body.gaia-v2 .gaia-bento__tile--wide {
    grid-column: auto;
  }

  body.gaia-v2 .gaia-chakra-map__layout,
  body.gaia-v2 .gaia-chakra-map__figure,
  body.gaia-v2 .gaia-chakra-teaser__thumb {
    max-width: 100%;
    overflow: hidden;
  }

  body.gaia-v2 .gaia-chakra-map__photo,
  body.gaia-v2 .gaia-chakra-teaser__thumb img {
    max-width: 100%;
    height: auto;
  }

  body.gaia-v2 .gaia-chart {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.gaia-v2 .gaia-assist__panel {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--gh-radius-xl) var(--gh-radius-xl) 0 0;
  }

  body.gaia-v2 .gaia-assist__input-row {
    min-width: 0;
  }

  body.gaia-v2 .gaia-assist__input-row input {
    min-width: 0;
    width: 100%;
  }

  body.gaia-v2 .gaia-tabbar {
    overflow-x: clip;
  }

  body.gaia-v2 .gaia-login-pill,
  body.gaia-v2 .gaia-btn,
  body.gaia-v2 .gaia-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.gaia-v2 #community-tabs,
  body.gaia-v2 #wellness-tabs {
    margin-left: calc(-1 * max(1rem, env(safe-area-inset-left)));
    margin-right: calc(-1 * max(1rem, env(safe-area-inset-right)));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

body.gaia-v2 .gaia-assist__audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
