/* MyHealth: brand-grounded pastels and original Figma UI. 3 Nov 2026. */
@font-face { font-family:MHPreviewManrope; src:url('/assets/fonts/myhealth-manrope.woff2') format('woff2'),url('/assets/fonts/myhealth-manrope.ttf') format('truetype'); font-style:normal; font-weight:200 800; font-display:swap; }
#myhealth.mh-pastel { --mh-gap:24px; --mh-card:calc((100% - 48px)/3); --mh-device-w:280px; --mh-card-height:584px; background:var(--void); color:var(--star); }
#myhealth.mh-pastel .mh-head { display:block; text-align:center; }
#myhealth.mh-pastel .mh-head > div { max-width:760px; margin-inline:auto; }
#myhealth.mh-pastel .mh-lead { max-width:610px; margin-inline:auto; }
#myhealth.mh-pastel .mh-rail { position:relative; display:flex; flex-direction:column; margin-inline:0; }
#myhealth.mh-pastel .mh-track { position:relative; display:flex; order:0; gap:var(--mh-gap); margin:0; padding:0; scroll-padding:0; overflow-x:auto; scroll-behavior:auto; scroll-snap-type:x mandatory; scrollbar-width:none; touch-action:pan-x pan-y; cursor:grab; }
#myhealth.mh-pastel .mh-track::-webkit-scrollbar { display:none; }
#myhealth.mh-pastel .mh-track.is-dragging { cursor:grabbing; user-select:none; }
#myhealth.mh-pastel .mh-track:is(.is-dragging,.is-animating) { scroll-snap-type:none; }
#myhealth.mh-pastel .mh-card { position:relative; display:flex; flex-direction:column; flex:0 0 var(--mh-card); min-width:0; height:var(--mh-card-height); margin:0; overflow:hidden; isolation:isolate; border-radius:28px; color:#1c1f1a; background:#f4f2ed; background:linear-gradient(155deg,#f4f2ed 8%,color-mix(in srgb,#9da28b 14%,#f4f2ed) 58%,color-mix(in srgb,#b59f70 17%,#f4f2ed)); scroll-snap-align:start; }
#myhealth.mh-pastel .mh-card-copy { position:relative; z-index:2; flex:0 0 174px; padding:30px 28px 0; }
#myhealth.mh-pastel .mh-ct { margin:0; color:#1c1f1a; font:500 30px/1.15 var(--f-display); letter-spacing:-.035em; opacity:1; }
#myhealth.mh-pastel .mh-cd { margin:12px 0 0; color:#65655f; font:400 16px/1.5 var(--f-text); max-width:32em; opacity:1; text-wrap:pretty; }
#myhealth.mh-pastel .mh-media { position:relative; flex:1; width:100%; height:auto; min-height:0; margin:0; aspect-ratio:auto; overflow:visible; background:transparent; border-radius:0; }
#myhealth.mh-pastel .mh-media::after { display:none; }
/* Pro Max proportions, a blue-black metal edge and a separate glass display. */
#myhealth.mh-pastel .mh-phone { position:absolute; left:50%; top:8px; bottom:auto; width:min(var(--mh-device-w),calc(100% - 76px)); height:auto; aspect-ratio:78/163.4; max-height:none; min-height:0; border:1px solid #586376; border-radius:40px; overflow:visible; background:linear-gradient(105deg,#090d15 1%,#748194 3%,#25334b 5%,#080c14 10%,#111a2a 89%,#52647e 96%,#101827 99%); box-shadow:inset 0 0 0 2px #ffffff18,inset 0 0 0 4px #03060d,0 22px 38px #25304730; opacity:1; transform:translateX(-50%) translateY(var(--mh-device-y,0px)); pointer-events:none; }
#myhealth.mh-pastel .mh-phone > .mh-display { position:absolute; inset:5px; overflow:hidden; border-radius:34px; background:#f3f2f0; box-shadow:0 0 0 1px #000; }
#myhealth.mh-pastel .mh-phone .mha { position:absolute; top:35px; left:0; }
#myhealth.mh-pastel .mh-statusbar { position:absolute; top:12px; left:22px; right:17px; height:16px; display:flex; align-items:center; justify-content:space-between; color:#171b24; font:600 10px/1 system-ui,sans-serif; }
#myhealth.mh-pastel .mh-status-icons { display:flex; align-items:center; gap:4px; }
#myhealth.mh-pastel .mh-status-icons svg { width:24px; height:9px; }
#myhealth.mh-pastel .mh-battery { position:relative; width:14px; height:7px; border:1px solid #878b91; border-radius:2px; background:#171b24; box-shadow:inset -3px 0 #f3f2f0; }
#myhealth.mh-pastel .mh-battery::after { content:''; position:absolute; right:-3px; top:1px; width:1px; height:3px; border-radius:1px; background:#878b91; }
#myhealth.mh-pastel .mh-island { position:absolute; z-index:3; top:9px; left:50%; width:65px; height:19px; transform:translateX(-50%); border-radius:20px; background:#050609; box-shadow:inset 0 0 0 1px #000; }
#myhealth.mh-pastel .mh-island::after { content:''; position:absolute; right:8px; top:6px; width:7px; height:7px; border-radius:50%; background:radial-gradient(circle at 40% 30%,#1f3556,#080f1c 50%,#03050a 70%); box-shadow:0 0 0 1px #121820; }
#myhealth.mh-pastel .mh-device-key { position:absolute; left:-3px; width:2px; height:25px; top:74px; border-radius:2px; background:linear-gradient(90deg,#101824,#65758a); box-shadow:0 1px 1px #0008; }
#myhealth.mh-pastel .mh-device-key-volume { top:115px; height:56px; }
#myhealth.mh-pastel .mh-device-key-power { left:auto; right:-3px; top:123px; height:43px; }
/* A compact, faithful app component floats over a small part of the display. */
#myhealth.mh-pastel .mh-float { position:absolute; z-index:4; left:auto; right:18px; bottom:40px; width:var(--mh-float-width); max-width:calc(100% - 32px); height:var(--mh-float-height); overflow:hidden; border:1px solid #ffffffbf; border-radius:18px; background:rgba(244,242,237,.72); color:#1c1f1a; box-shadow:0 10px 28px rgba(28,31,26,.12),inset 0 1px 0 #ffffff80; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); transform:translateY(var(--mh-float-y,0px)) scale(var(--mh-float-scale,1)); transform-origin:center; text-align:left; pointer-events:none; }
#myhealth.mh-pastel .mh-fragment { position:absolute; top:12px; left:12px; width:var(--mh-fragment-width); transform:scale(var(--mh-fragment-scale)); transform-origin:top left; }
/* Native HTML/CSS translated from the original Figma nodes. */
#myhealth.mh-pastel .mh-figma { position:absolute; top:0; left:0; width:440px; transform:scale(var(--app-scale,.6)); transform-origin:top left; }
#myhealth.mh-pastel :is(.mh-figma,.mh-fragment) { font:400 16px/normal MHPreviewText,sans-serif; color:#1c1f1a; text-align:left; letter-spacing:normal; }
#myhealth.mh-pastel :is(.mh-figma,.mh-fragment) :where(*,::before,::after) { box-sizing:border-box; border-width:0; border-style:solid; }
#myhealth.mh-pastel :is(.mh-figma,.mh-fragment) :where(p,div,span,button) { margin:0; }
#myhealth.mh-pastel :is(.mh-figma,.mh-fragment) button { padding:0; font:inherit; color:inherit; background:transparent; }
#myhealth.mh-pastel :is(.mh-figma,.mh-fragment) img { display:block; height:auto; max-width:100%; vertical-align:middle; }
/* Original Figma report counter motion; pause while this section is away. */
#myhealth.mh-pastel .mh-figma [data-node-id="6716:19235"] { animation:kf_6716_19235_translate_0 4.5s linear infinite; animation-play-state:paused; }
#myhealth.mh-pastel[data-motion-active] .mh-figma [data-node-id="6716:19235"] { animation-play-state:running; }
@keyframes kf_6716_19235_translate_0 { 0% { translate:0px 0px; } 21.009% { animation-timing-function:ease-in-out; translate:0px 0px; } 32.92% { translate:0px -34.364px; } 66.689% { animation-timing-function:ease-in-out; translate:0px -34.364px; } 80.578% { translate:0px -69.273px; } 100% { translate:0px -69.273px; } }
#myhealth.mh-pastel[data-motion-active] :is(.mh-phone,.mh-float) { will-change:transform; }
#myhealth.mh-pastel .mh-nav:not([hidden]) { position:static; order:1; display:flex; justify-content:flex-end; align-items:center; gap:12px; width:100%; height:auto; margin-top:24px; pointer-events:auto; }
#myhealth.mh-pastel .mh-counter { margin-right:auto; font:400 14px/1 var(--f-text); color:#a8aaa8; font-variant-numeric:tabular-nums; }
#myhealth.mh-pastel .mh-counter b { font-weight:400; color:var(--star); }
#myhealth.mh-pastel .mh-btn { position:static; display:grid; place-items:center; width:48px; height:48px; margin:0; border-radius:50%; background:transparent; color:var(--star); box-shadow:inset 0 0 0 1px #e9e4da4d; pointer-events:auto; cursor:pointer; transition:background .2s,color .2s; }
#myhealth.mh-pastel .mh-btn:hover:not(:disabled) { background:var(--gold); color:var(--void); transform:none; }
#myhealth.mh-pastel .mh-btn:disabled { opacity:.3; cursor:default; }
#myhealth.mh-pastel :is(.mh-track,.mh-btn):focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
#myhealth.mh-pastel .mh-status { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
#myhealth.mh-pastel .mh-connected { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; margin-top:40px; padding-top:32px; border-top:1px solid #e9e4da29; }
#myhealth.mh-pastel .mh-connected article { padding:0; }
#myhealth.mh-pastel .mh-connected h3 { margin:0; color:var(--star); font:400 23px/1.2 var(--f-display); letter-spacing:-.025em; }
#myhealth.mh-pastel .mh-connected p { margin:12px 0 0; color:var(--finish-dark-muted); font:400 16px/1.65 var(--f-text); }
@media(max-width:1099px) {
  #myhealth.mh-pastel { --mh-card:calc((100% - 24px)/2); }
  #myhealth.mh-pastel .mh-connected { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:599px) {
  #myhealth.mh-pastel { --mh-card:min(380px,calc(100% - 20px)); --mh-gap:16px; --mh-card-height:548px; --mh-device-w:260px; }
  #myhealth.mh-pastel .mh-card { border-radius:24px; }
  #myhealth.mh-pastel .mh-card-copy { flex-basis:172px; padding:26px 24px 0; }
  #myhealth.mh-pastel .mh-ct { font-size:28px; }
  #myhealth.mh-pastel .mh-cd { margin-top:10px; font-size:16px; }
  #myhealth.mh-pastel .mh-phone { width:min(var(--mh-device-w),calc(100% - 54px)); border-radius:35px; }
  #myhealth.mh-pastel .mh-phone > .mh-display { border-radius:29px; }
  #myhealth.mh-pastel .mh-float { right:14px; bottom:32px; }
  #myhealth.mh-pastel .mh-connected { grid-template-columns:1fr; gap:28px; margin-top:32px; }
  #myhealth.mh-pastel .mh-connected h3 { font-size:23px; }
  #myhealth.mh-pastel .mh-statusbar { left:17px; right:12px; }
  #myhealth.mh-pastel .mh-status-icons svg { width:21px; }
}
@media(max-width:389px) {
  #myhealth.mh-pastel { --mh-card:100%; }
  #myhealth.mh-pastel .mh-card-copy { padding-inline:22px; flex-basis:182px; }
  #myhealth.mh-pastel .mh-connected { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  #myhealth.mh-pastel .mh-phone { transform:translateX(-50%) !important; transition:none !important; }
  #myhealth.mh-pastel .mh-float { transform:none; }
  #myhealth.mh-pastel .mh-figma [data-node-id="6716:19235"] { animation:none; }
  #myhealth.mh-pastel .mh-btn { transition:none; }
}
