/* 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: calc(0.9rem + env(safe-area-inset-bottom));
  margin: 0 auto;
  /* v2 centers via left/right/margin; cancel the base rule's translateX(-50%)
     (gaia-shared.css) so the panel isn't double-shifted off-center on desktop. */
  transform: none;
  width: min(100% - 1.6rem, 26rem);
  max-height: min(56vh, 27rem); max-height: min(56dvh, 27rem);
  padding: 0;
  border-radius: var(--gh-radius-xl);
  border: 1px solid var(--gh-border-soft);
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(125, 217, 86, 0.16), transparent 62%),
    var(--gh-assist-bg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 24px 70px -12px rgba(20, 46, 12, 0.42),
    0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  animation: gh-sheet-up 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  color: var(--gh-text);
}

body.gaia-v2 .gaia-assist__minimize {
  position: absolute;
  z-index: 3;
  top: 0.7rem;
  right: 3.1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gh-border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gh-text);
  font: 700 1rem/1 system-ui, sans-serif;
  cursor: pointer;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__panel {
  left: auto;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: calc(5.7rem + env(safe-area-inset-bottom));
  width: min(16rem, calc(100% - 1.5rem));
  max-width: 16rem;
  max-height: none;
  border-radius: 1.15rem;
  animation: gh-fade-in 0.2s ease;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__sheet {
  min-height: 4.8rem;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  overflow: visible;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__aura {
  grid-column: 1;
  padding: 0;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__orb-visual {
  width: 3rem;
  height: 3rem;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__orb-icon {
  width: 1.65rem;
  height: 1.65rem;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__headline {
  grid-column: 2;
  min-width: 0;
  text-align: left;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__headline h2 {
  font-size: 0.95rem;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__status {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__minimize {
  position: static;
  grid-column: 3;
  grid-row: 1;
  width: 2rem;
  height: 2rem;
}

body.gaia-v2 .gaia-assist--minimized .gaia-assist__handle,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__settings,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__close,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__wave,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__transcript,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__route,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__chips,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__form,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__toolbar,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__error,
body.gaia-v2 .gaia-assist--minimized .gaia-assist__voice {
  display: none !important;
}

body.gaia-v2 .gaia-assist__sheet {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem 0.9rem;
  max-height: inherit;
  overflow: hidden;
}

body.gaia-v2 .gaia-assist__handle {
  width: 2.25rem;
  height: 0.25rem;
  margin: 0.1rem auto 0.15rem;
  background: var(--gh-handle);
}

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

/* The orb is now a button — the primary tap target to start voice. */
body.gaia-v2 .gaia-assist__orb-visual {
  position: relative;
  width: 3.5rem;
  height: 3.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: 1.95rem;
  height: 1.95rem;
  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;
}

/* Hold-to-talk. The orb looks different on purpose: the gesture has changed,
   and a member who has been told to hold should be able to see that the thing
   they are holding knows it. A dashed ring reads as "waiting on you" where the
   solid one reads as "already listening". */
body.gaia-v2 .gaia-assist--pipeline .gaia-assist__orb-ring {
  border-style: dashed;
  border-color: rgba(125, 217, 86, 0.55);
  animation-duration: 3.2s;
}

body.gaia-v2 .gaia-assist--pipeline .gaia-assist__orb-visual {
  box-shadow:
    0 0 0 2px rgba(125, 217, 86, 0.22),
    0 8px 24px rgba(92, 184, 46, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

/* Held right now: press it in, and light it the way live listening is lit, so
   the two modes feel like the same assistant rather than two products. */
body.gaia-v2 .gaia-assist--holding-orb .gaia-assist__orb-visual {
  transform: scale(0.94);
  box-shadow:
    0 0 0 3px rgba(125, 217, 86, 0.5),
    0 0 28px rgba(125, 217, 86, 0.55),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

body.gaia-v2 .gaia-assist--holding-orb .gaia-assist__orb-ring {
  border-style: solid;
  border-color: var(--gh-accent-bright);
  animation-duration: 1.2s;
}

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

/* The orb is held down, so nothing underneath it should be selected or
   long-press a context menu into the middle of a sentence. */
body.gaia-v2 .gaia-assist--pipeline [data-gaia-tab-assist] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  body.gaia-v2 .gaia-assist--holding-orb .gaia-assist__orb-visual { transform: none; }
  body.gaia-v2 .gaia-assist--pipeline .gaia-assist__orb-ring,
  body.gaia-v2 .gaia-assist--holding-orb .gaia-assist__orb-ring { animation: none; }
  body.gaia-v2 .gaia-assist--holding-orb .gaia-assist__wave span { animation: none; }
}

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.05rem;
}

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.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gh-text);
}

body.gaia-v2 .gaia-assist__status {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  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: 1.75rem;
  max-height: 5.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.05rem;
}

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.4rem 0.6rem;
  border-radius: 0.65rem;
  background: rgba(198, 40, 40, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

body.gaia-v2 .gaia-assist__error[hidden] {
  display: none;
}

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

body.gaia-v2 .gaia-assist__error-retry {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c62828;
  background: #ffffff;
  border: 1px solid rgba(198, 40, 40, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.gaia-v2 .gaia-assist__error-retry:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.gaia-v2 .gaia-assist__error-retry:active {
  transform: scale(0.96);
}

body.gaia-v2[data-theme="dark"] .gaia-assist__error-retry {
  color: #ff8a8a;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 138, 138, 0.35);
}

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);
  -webkit-backdrop-filter: blur(12px);
  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); min-height: clamp(480px, 74dvh, 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; min-height: 68dvh;
  }
}

/* —— 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: min(100% - 1.4rem, 25rem);
    max-width: 25rem;
    border-radius: var(--gh-radius-xl);
  }

  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;
  }

  /* This used to pull the tab strips edge-to-edge by a hard-coded 1rem. Two
     things were wrong with it. #community-tabs no longer exists, so the only
     live target is #wellness-tabs — a rounded, bordered pill card, which is
     not something that should bleed off the screen edges. And the 1rem never
     matched the page gutter (12px on phones this narrow), while max-width:100%
     stopped the element widening to absorb the pull: the bar ended up shifted
     3px off the left edge and stopping 29px short of the right. The switcher
     lines up with the rest of the page instead. */
  body.gaia-v2 #wellness-tabs {
    margin-inline: 0;
    padding-inline: 6px;
  }
}

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

/* —— Phase 1: My Access grid (signed-in member memberships) —— */
.gaia-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}
.gaia-access-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid var(--gh-border-soft, rgba(28, 42, 30, 0.12));
  background: var(--gh-assist-surface, rgba(21, 32, 24, 0.045));
  min-height: 6.5rem;
}
.gaia-access-card--unlocked {
  border-color: rgba(125, 217, 86, 0.55);
  background: rgba(92, 184, 46, 0.10);
}
.gaia-access-card--locked,
.gaia-access-card--unknown { opacity: 0.7; }
.gaia-access-card__badge {
  align-self: flex-start;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--gh-chip-bg, rgba(0, 0, 0, 0.06));
  color: var(--gh-text-soft, #636366);
}
.gaia-access-card__badge--on { background: var(--gh-accent, #5cb82e); color: #fff; }
.gaia-access-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gh-text, #1c1c1e);
}
.gaia-access-card__note {
  font-size: 0.75rem;
  color: var(--gh-text-soft, #636366);
  margin-top: auto;
}
.gaia-access-card__cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gh-accent-deep, #449422);
  text-decoration: none;
}
.gaia-access-card__cta::after { content: " \2192"; }
.gaia-access-empty { font-size: 0.8125rem; color: var(--gh-text-soft, #636366); }

/* —— Phase 5: Home member dashboard —— */
.gaia-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}
.gaia-member-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 7rem;
}
.gaia-member-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gh-accent-deep, #449422);
}
.gaia-member-card__value {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gh-text, #1c1c1e);
  line-height: 1.2;
}
.gaia-member-card__meta {
  font-size: 0.75rem;
  color: var(--gh-text-soft, #636366);
  line-height: 1.35;
}
.gaia-member-card__cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gh-accent-deep, #449422);
  text-decoration: none;
}
.gaia-member-grid[hidden] { display: none; }

/* —— Phase 5c: Me hub —— */
.gaia-me-stack { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.9rem; }
.gaia-me-card { display: flex; flex-direction: column; gap: 0.5rem; }
.gaia-me-card__label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gh-accent-deep, #449422);
}
.gaia-me-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  font-size: 0.9rem; font-weight: 600; color: var(--gh-text, #1c1c1e);
}
.gaia-me-row + .gaia-me-row { border-top: 1px solid var(--gh-border-soft, rgba(28,42,30,0.1)); padding-top: 0.5rem; }
.gaia-me-row__meta { font-size: 0.78rem; font-weight: 500; color: var(--gh-text-soft, #636366); }
.gaia-me-row--link { text-decoration: none; }
.gaia-me-empty { font-size: 0.85rem; color: var(--gh-text-soft, #636366); }

/* —— Phase 5: full responsive shell (mobile-first; desktop centered, not stretched) —— */
html, body { overflow-x: hidden; }
body.gaia-v2 .gaia-main > *, body.gaia-v2 .gaia-member-grid, body.gaia-v2 .gaia-me-stack { max-width: 100%; }

@media (min-width: 700px) {
  body.gaia-v2 {
    background-image: radial-gradient(1100px 520px at 50% -6%, rgba(92, 184, 46, 0.12), transparent 62%);
    background-attachment: fixed;
  }
  body.gaia-v2 .gaia-shell { max-width: 30rem; margin-left: auto; margin-right: auto; }
  /* keep the fixed bottom nav aligned to the app column, not the full viewport */
  body.gaia-v2 .gaia-tabbar__inner {
    max-width: 30rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---- Public Home features: next event, birth-date chakra, chakra explorer ---- */
body.gaia-v2 .gaia-me-hint { font-size: 0.72rem; color: var(--gh-text-faint, rgba(120,140,120,.8)); margin: 0.5rem 0 0; }
body.gaia-v2 .gaia-dob-input {
  width: 100%; margin: 0.15rem 0 0.75rem; padding: 0.65rem 0.75rem;
  border-radius: 0.75rem; border: 1px solid var(--gh-border-soft, rgba(255,255,255,.12));
  background: rgba(0,0,0,.18); color: var(--gh-text, #eef4ec);
  font: inherit; font-size: 0.95rem; color-scheme: dark;
}
body.gaia-v2 .gaia-dob-input:focus { outline: 2px solid var(--gh-accent, #5cb82e); outline-offset: 1px; border-color: transparent; }
body.gaia-v2 .gaia-chakra-dot {
  width: 0.85rem; height: 0.85rem; border-radius: 50%; flex: none; display: inline-block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset;
}
body.gaia-v2 .gaia-chakra-read {
  display: flex; align-items: center; gap: 0.7rem; min-height: 2.4rem;
  padding: 0.6rem 0.7rem; border-radius: 0.75rem; background: rgba(0,0,0,.16);
  border: 1px solid var(--gh-border-soft, rgba(255,255,255,.1));
}
body.gaia-v2 .gaia-chakra-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
body.gaia-v2 .gaia-chakra-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  padding: 0.4rem 0.7rem; border-radius: 999px; font-size: 0.82rem;
  color: var(--gh-text, #eef4ec); background: rgba(255,255,255,.05);
  border: 1px solid var(--gh-border-soft, rgba(255,255,255,.12));
  transition: background .15s, border-color .15s;
}
body.gaia-v2 .gaia-chakra-chip:hover { background: rgba(255,255,255,.09); }
body.gaia-v2 .gaia-chakra-chip.is-active { border-color: var(--gh-accent, #5cb82e); background: rgba(92,184,46,.14); }

/* ---- Live Shopify shop (Store screen): categorized horizontal product rows ---- */
body.gaia-v2 .gaia-shop-cat { margin-bottom: 1.25rem; }
body.gaia-v2 .gaia-shop-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.55rem; }
body.gaia-v2 .gaia-shop-cat__all { font-size: 0.8rem; font-weight: 600; color: var(--gh-accent, #5cb82e); text-decoration: none; white-space: nowrap; }
body.gaia-v2 .gaia-shop-row {
  display: flex; gap: 0.6rem; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 0.4rem; scrollbar-width: thin;
}
body.gaia-v2 .gaia-shop-card {
  flex: 0 0 8.5rem; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.35rem;
  text-decoration: none; color: inherit;
}
body.gaia-v2 .gaia-shop-card__imgwrap {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 0.85rem; overflow: hidden;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--gh-border-soft, rgba(255, 255, 255, 0.1));
  display: grid; place-items: center;
}
body.gaia-v2 .gaia-shop-card__imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.gaia-v2 .gaia-shop-card__title {
  font-size: 0.8rem; line-height: 1.25; color: var(--gh-text, #eef4ec);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.gaia-v2 .gaia-shop-card__price { font-size: 0.85rem; font-weight: 700; color: var(--gh-accent, #5cb82e); }

/* ---- Membership tier cards (ability unlocks, not pricing tiers) ---- */
body.gaia-v2 .gaia-tier--active { border-color: var(--gh-accent, #5cb82e); box-shadow: 0 0 0 1px var(--gh-accent, #5cb82e) inset; }
body.gaia-v2 .gaia-tier__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
body.gaia-v2 .gaia-tier__badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap;
  color: var(--gh-text-muted, #9db09a); border: 1px solid var(--gh-border-soft, rgba(255,255,255,.14));
}
body.gaia-v2 .gaia-tier__badge.is-active { color: #052b0a; background: var(--gh-accent, #5cb82e); border-color: transparent; }
body.gaia-v2 .gaia-tier__list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
body.gaia-v2 .gaia-tier__list li {
  position: relative; padding-left: 1.35rem; font-size: 0.86rem; line-height: 1.4;
  color: var(--gh-text, #eef4ec);
}
body.gaia-v2 .gaia-tier__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--gh-accent, #5cb82e); font-weight: 700;
}

/* ---- Gaia Assist router: one-tap "go there" action from intent detection ---- */
body.gaia-v2 .gaia-assist__route { margin: 0.4rem 0 0.2rem; }
body.gaia-v2 .gaia-assist__route[hidden] { display: none; }
body.gaia-v2 .gaia-assist__route-btn {
  width: 100%; text-align: center; cursor: pointer;
  padding: 0.6rem 0.9rem; border-radius: 0.85rem;
  font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em;
  color: #052b0a; background: var(--gh-accent, #5cb82e);
  border: 1px solid transparent;
}
body.gaia-v2 .gaia-assist__route-btn:hover { filter: brightness(1.05); }

/* ============================================================
   iOS / tablet polish (2026-07-21) — gaia-ui-v2.css layer
   - Assist panel: 44px tap targets on close/settings/submit buttons
   - Real-pointer-only hover (no sticky hover on iOS touch)
   - color-scheme: dark on assist inputs (match the dark UI)
   ============================================================ */
body.gaia-v2 .gaia-assist__close,
body.gaia-v2 .gaia-assist__settings summary,
body.gaia-v2 .gaia-assist__input-row button[type="submit"],
body.gaia-v2 .gaia-assist__error-retry,
body.gaia-v2 .gaia-assist__route-btn {
  min-width: 44px; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

body.gaia-v2 .gaia-assist__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.gaia-v2 .gaia-assist__hint-line {
  flex: 1 1 100%;
  margin: 0;
  color: var(--gh-text-muted, #9db09a);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: center;
}

body.gaia-v2 .gaia-assist__listen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--gh-line, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  background: var(--gh-surface-raised, rgba(255, 255, 255, 0.06));
  color: var(--gh-text-muted, #9db09a);
  font-size: 0.72rem;
  font-weight: 700;
}

body.gaia-v2 .gaia-assist__listen-toggle.is-paused {
  border-color: rgba(125, 217, 86, 0.45);
  color: var(--gh-accent-bright);
}
body.gaia-v2 .gaia-assist__input-row input,
body.gaia-v2 .gaia-assist__settings-grid select,
body.gaia-v2 .gaia-dob-input { font-size: 16px; color-scheme: dark; }
body.gaia-v2 .gaia-portal-workspace__chip,
body.gaia-v2 .gaia-portal-workspace__external,
body.gaia-v2 .gaia-chakra-chip { -webkit-tap-highlight-color: transparent; }

@media (hover: hover) {
  .gaia-stat-link--hero:hover,
  .gaia-chakra-teaser:hover,
  .gaia-bento__tile:hover,
  .gaia-assist__chips button:hover,
  .gaia-assist__close:hover,
  .gaia-assist__settings summary:hover,
  .gaia-assist__error-retry:hover,
  .gaia-portal-workspace__chip:hover,
  .gaia-portal-workspace__external:hover,
  .gaia-chakra-chip:hover,
  .gaia-assist__route-btn:hover { /* keep the existing hover effects from above */ }
}
/* On touch pointers, neutralize the "stuck" lifted state. */
@media (hover: none) {
  .gaia-chakra-teaser:hover,
  .gaia-bento__tile:hover,
  .gaia-assist__chips button:hover { transform: none !important; filter: none !important; }
}
