/* Coordinated Home loading, trust status, and calm section transitions. */
html body .app-shell .map-stage.home-focus .home-sync-confidence,
html body main.app-shell section.map-stage.home-focus .home-sync-confidence {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: calc(100% - 24px) !important;
  min-height: 28px !important;
  margin: 4px auto 0 !important;
  padding: 6px 11px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 1px solid rgba(18, 111, 99, 0.08) !important;
  border-radius: 999px !important;
  color: rgba(29, 84, 88, 0.78) !important;
  background: rgba(249, 255, 252, 0.46) !important;
  box-shadow: 0 5px 16px rgba(7, 65, 71, 0.035) !important;
  font-size: 0.69rem !important;
  font-weight: 720 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

html body .app-shell .map-stage.home-focus .home-sync-confidence > i,
html body main.app-shell section.map-stage.home-focus .home-sync-confidence > i {
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  flex: 0 0 7px !important;
  border-radius: 50% !important;
  background: #20aa7d !important;
  box-shadow: 0 0 0 3px rgba(32, 170, 125, 0.1) !important;
}

html body .app-shell .map-stage.home-focus .home-sync-confidence.is-loading > i,
html body .app-shell .map-stage.home-focus .home-sync-confidence.is-syncing > i {
  border: 1.5px solid rgba(11, 111, 121, 0.18) !important;
  border-top-color: #0b7f87 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: mymappiHomeSyncSpin 850ms linear infinite !important;
}

html body .app-shell .map-stage.home-focus .home-sync-confidence.is-attention {
  color: #8a5a30 !important;
  border-color: rgba(197, 128, 48, 0.12) !important;
  background: rgba(255, 249, 235, 0.64) !important;
}

html body .app-shell .map-stage.home-focus .home-sync-confidence.is-attention > i {
  background: #d38a34 !important;
  box-shadow: 0 0 0 3px rgba(211, 138, 52, 0.11) !important;
}

@keyframes mymappiHomeSyncSpin {
  to { transform: rotate(360deg); }
}

html body .app-shell .map-stage.home-focus .home-dashboard.is-revealing > .home-section,
html body .app-shell .map-stage.home-focus .home-dashboard.is-revealing > .home-mappi-bottom-note,
html body .app-shell .map-stage.home-focus .home-dashboard.is-entering > .home-section,
html body .app-shell .map-stage.home-focus .home-dashboard.is-entering > .home-mappi-bottom-note {
  animation: mymappiHomeSectionReveal 620ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard.is-revealing > :nth-child(2),
html body .app-shell .map-stage.home-focus .home-dashboard.is-entering > :nth-child(2) { animation-delay: 45ms !important; }
html body .app-shell .map-stage.home-focus .home-dashboard.is-revealing > :nth-child(3),
html body .app-shell .map-stage.home-focus .home-dashboard.is-entering > :nth-child(3) { animation-delay: 90ms !important; }
html body .app-shell .map-stage.home-focus .home-dashboard.is-revealing > :nth-child(4),
html body .app-shell .map-stage.home-focus .home-dashboard.is-entering > :nth-child(4) { animation-delay: 135ms !important; }
html body .app-shell .map-stage.home-focus .home-dashboard.is-revealing > :nth-child(5),
html body .app-shell .map-stage.home-focus .home-dashboard.is-entering > :nth-child(5) { animation-delay: 180ms !important; }

@keyframes mymappiHomeSectionReveal {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.995); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

html body .app-shell .map-stage.home-focus.home-content-revealing .home-memory-pulse,
html body main.app-shell section.map-stage.home-focus.home-content-revealing .home-memory-pulse,
html body .app-shell .map-stage.home-focus.home-content-revealing .home-sync-confidence,
html body main.app-shell section.map-stage.home-focus.home-content-revealing .home-sync-confidence {
  animation: mymappiHomeSummaryReveal 560ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes mymappiHomeSummaryReveal {
  from { opacity: 0; transform: translate3d(0, 7px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

html body .app-shell .map-stage.home-focus .home-dashboard.is-empty-home #homeOnThisDay,
html body .app-shell .map-stage.home-focus .home-dashboard.is-empty-home #homeJourney,
html body .app-shell .map-stage.home-focus .home-dashboard.is-empty-home #homeTimelineStrip {
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 13px 34px rgba(7, 70, 78, 0.045) !important;
}

html body .app-shell .map-stage.home-focus .home-dashboard.is-empty-home #homeOnThisDay .home-section-heading > strong,
html body .app-shell .map-stage.home-focus .home-dashboard.is-empty-home #homeJourney .home-section-heading > strong,
html body .app-shell .map-stage.home-focus .home-dashboard.is-empty-home #homeTimelineStrip .home-section-heading > strong {
  color: rgba(24, 71, 79, 0.66) !important;
  font-weight: 710 !important;
}

html body .app-shell .map-stage.home-focus img[data-home-photo-position],
html body main.app-shell section.map-stage.home-focus img[data-home-photo-position] {
  object-position: var(--home-photo-position, center center) !important;
}

@media (max-width: 720px) {
  html body .app-shell .map-stage.home-focus .home-sync-confidence {
    min-height: 26px !important;
    margin-top: 2px !important;
    padding: 5px 10px !important;
    font-size: 0.65rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.home-focus .home-sync-confidence.is-loading > i,
  html body .app-shell .map-stage.home-focus .home-sync-confidence.is-syncing > i,
  html body .app-shell .map-stage.home-focus .home-dashboard.is-revealing > *,
  html body .app-shell .map-stage.home-focus .home-dashboard.is-entering > *,
  html body .app-shell .map-stage.home-focus.home-content-revealing .home-memory-pulse,
  html body .app-shell .map-stage.home-focus.home-content-revealing .home-sync-confidence {
    animation: none !important;
  }
}
