.health-sheet-backdrop,
.health-sheet {
  position: absolute;
  inset: 0;
}

.health-sheet {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  letter-spacing: 0em;
}

/* Shared Health sheets keep the product typography contract in every host. */
.health-sheet *,
.health-sheet *::before,
.health-sheet *::after {
  font-family: inherit !important;
  font-optical-sizing: auto;
  letter-spacing: 0em !important;
}

.health-sheet button,
.health-sheet input {
  font: inherit;
  color: inherit;
}

.health-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*  Account authorization sheets  */
.health-sheet-backdrop { z-index: 30; background: rgba(0,0,0,.18); animation: health-fade 220ms ease-out both; }
.health-sheet {
  top: 13.6cqw;
  overflow: hidden;
  border-radius: 10.5cqw 10.5cqw 0 0;
  background: #fff;
  box-shadow: 0 -1cqw 7cqw rgba(0,0,0,.055);
  animation: health-sheet-in 420ms cubic-bezier(.17,.86,.25,1) both;
}
@keyframes health-fade { from { opacity: 0; } }
@keyframes health-sheet-in { from { transform: translateY(14cqw); } to { transform: translateY(0); } }
.health-sheet-content { position: absolute; inset: 0; background: #fff; }

.health-sheet-nav {
  position: absolute;
  z-index: 6;
  top: 3.6cqw;
  display: grid;
  place-items: center;
  width: 9.8cqw;
  height: 9.8cqw;
  padding: 2.65cqw;
  border: 0;
  border-radius: 50%;
  background: rgba(253,253,253,.96) !important;
  box-shadow: 0 4cqw 10cqw rgba(0,0,0,.08);
}
.health-sheet-nav.is-back { left: 3.5cqw; }
.health-sheet-nav.is-close { right: 3.5cqw; }
.health-progress { position: absolute; z-index: 4; top: 7.6cqw; left: 50%; display: flex; gap: .9cqw; transform: translateX(-50%); }
.health-progress i { width: 1.8cqw; height: .85cqw; border-radius: 1cqw; background: #dadadc; transition: width 220ms ease, background 220ms ease; }
.health-progress i.is-active { width: 5.5cqw; background: #222; }

.health-sheet-content > header { text-align: center; }
.health-sheet-content > header h2 { margin: 0; color: #242424; font-size: 5.45cqw; font-weight: 760; line-height: 1.1; }
.health-sheet-content > header p { margin: 1.6cqw 0 0; color: #666668; font-size: 3.95cqw; font-weight: 520; line-height: 1.25; }

.health-logo { display: grid; place-items: center; width: 10cqw; height: 10cqw; overflow: hidden; border: .15cqw solid #ededee; border-radius: 50%; color: #171719; background: #fff; font-size: 2.1cqw; font-weight: 720; line-height: 1; }
.health-logo.is-apple { padding: 0; border-color: transparent; }
.health-logo.is-apple img { display: block; width: 100%; height: 100%; object-fit: cover; }
.health-logo.is-function { background: repeating-linear-gradient(31deg, #c97955 0 1.05cqw, #fff 1.05cqw 1.45cqw); }
.health-logo.is-one { position: relative; }
.health-logo.is-one i { position: absolute; left: 4.1cqw; top: 4.1cqw; width: 2cqw; height: 2cqw; border-radius: 50%; background: #00776f; }
.health-logo.is-one i:nth-child(2) { transform: translate(-3.4cqw,0); }
.health-logo.is-one i:nth-child(3) { transform: translate(3.4cqw,0); }
.health-logo.is-one i:nth-child(4) { transform: translate(0,-3.4cqw); }
.health-logo.is-one i:nth-child(5) { transform: translate(0,3.4cqw); }
.health-logo.is-sinai { color: transparent; font-size: 0; background: linear-gradient(122deg, transparent 25%, #00a8ef 26% 35%, transparent 36%), linear-gradient(58deg, transparent 25%, #eb008b 26% 35%, transparent 36%); }
.health-logo.is-nyu { color: #6a1b9a; font-size: 1.9cqw; }
.health-logo.is-nyp { color: #fff; background: #ff2b20; font-size: 3cqw; }
.health-logo.is-montefiore { color: #78134c; font-size: 1.25cqw; }
.health-logo.is-ucsf { color: #fff; background: #000063; font-size: 2.5cqw; }
.health-logo.is-stanford { grid-template-columns: 1fr 1fr; color: #fff; background: linear-gradient(90deg,#b4101c 50%,#8d0012 50%); }
.health-logo.is-stanford i { width: .16cqw; height: 8cqw; background: rgba(255,255,255,.65); }
.health-logo.is-stanford b { position: absolute; font-size: 2.4cqw; }
.health-logo.is-mass { color: #00a5a8; font-size: 2cqw; }
.health-logo.is-beth { color: #00a2d7; font-size: 5cqw; transform: rotate(-10deg); }

.health-bottom-action {
  position: absolute;
  z-index: 8;
  left: 8.2cqw;
  right: 8.2cqw;
  bottom: 8.3cqw;
  height: 13.2cqw;
  border: 0;
  border-radius: 6.8cqw;
  color: #fff !important;
  background: #111 !important;
  box-shadow: 0 3cqw 7cqw rgba(0,0,0,.09);
  font-size: 4.2cqw;
  font-weight: 720;
}

.health-account-connect > header,
.health-account-manage > header {
  display: grid;
  justify-items: center;
  padding: 15.4cqw 5.5cqw 0;
  text-align: center;
}
.health-account-connect > header .health-logo,
.health-account-manage > header .health-logo {
  width: 13.2cqw;
  height: 13.2cqw;
  margin-bottom: 3.4cqw;
  box-shadow: 0 2.3cqw 6.8cqw rgba(0,0,0,.075);
}
.health-account-connect > header h2,
.health-account-manage > header h2 {
  max-width: 78cqw;
  margin: 0;
  color: #242424;
  font-size: 5.15cqw;
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0em;
}
.health-account-connect > header p,
.health-account-manage > header p {
  max-width: 76cqw;
  margin: 2cqw 0 0;
  color: #666668;
  font-size: 3.7cqw;
  line-height: 1.34;
  font-weight: 450;
  letter-spacing: 0em;
}
.health-account-access-card {
  margin: 6.2cqw 5.5cqw 0;
  padding: 4.3cqw 4.5cqw;
  border: .16cqw solid #e5e5e7;
  border-radius: 6.5cqw;
  background: #fff;
}
.health-account-access-card h3 {
  margin: 0 0 3.4cqw;
  color: #616165;
  font-size: 3.35cqw;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0em;
}
.health-account-data-list {
  display: grid;
  gap: 3.25cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}
.health-account-data-list li {
  display: grid;
  grid-template-columns: 4.6cqw minmax(0,1fr);
  align-items: center;
  gap: 2.5cqw;
  color: #242426;
  font-size: 3.8cqw;
  line-height: 1.18;
  font-weight: 450;
  letter-spacing: 0em;
}
.health-account-data-list .health-icon {
  width: 4.2cqw;
  height: 4.2cqw;
  padding: .8cqw;
  border-radius: 50%;
  color: #0a84ff;
  background: #e7f4ff;
  stroke-width: 2.35;
}
.health-account-privacy-note {
  display: grid;
  grid-template-columns: 5cqw minmax(0,1fr);
  align-items: start;
  gap: 2.6cqw;
  margin: 4.5cqw 8cqw 0;
  color: #6b6b70;
  font-size: 3.25cqw;
  line-height: 1.34;
  font-weight: 430;
  letter-spacing: 0em;
}
.health-account-privacy-note .health-icon { width: 4.8cqw; height: 4.8cqw; color: #6b6b70; stroke-width: 1.85; }
.health-account-error {
  margin: 2.4cqw 8cqw 0;
  color: #ff3b30;
  font-size: 3.25cqw;
  line-height: 1.25;
  font-weight: 450;
}
.health-account-connect .health-bottom-action,
.health-account-manage .health-bottom-action { bottom: 7.2cqw; }
.health-bottom-action.is-destructive { color: #fff !important; background: #ff3b30 !important; }

.health-linking-center { position: absolute; top: 70.5cqw; left: 0; right: 0; display: grid; justify-items: center; }
.health-linking-center > div { display: flex; align-items: center; gap: 2.7cqw; }
.health-linking-center .health-logo { width: 10.7cqw; height: 10.7cqw; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.07); }
.health-linking-center > div > span { display: flex; gap: 1.1cqw; }
.health-linking-center > div > span i { width: 1.55cqw; height: 1.55cqw; border-radius: 50%; background: #999; animation: health-link-dot 720ms ease-in-out infinite alternate; }
.health-linking-center > div > span i:nth-child(2) { animation-delay: 150ms; }
.health-linking-center > div > span i:nth-child(3) { animation-delay: 300ms; }
.health-gpt-logo { display: grid; place-items: center; width: 10.7cqw; height: 10.7cqw; border: .15cqw solid #eee; border-radius: 50%; background: #fff; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.07); font-size: 6.2cqw; }
.health-linking-center h2 { margin: 6.5cqw 0 0; font-size: 5.35cqw; font-weight: 760; }
.health-linking-center > p { margin: 1.8cqw 0 0; color: #77777b; font-size: 3.45cqw; font-weight: 450; }
@keyframes health-link-dot { to { opacity: .35; transform: translateY(-.7cqw); } }

.health-sheet button:active { transform: scale(.965); }

@media (prefers-reduced-motion: reduce) {
  .health-sheet *, .health-sheet *::before, .health-sheet *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .health-sheet-nav { background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
