/* Two linked automatic heart-rate examples, preserving the original split. */
#heart.heart-story{padding-block:clamp(80px,10vw,144px);gap:clamp(32px,5vw,72px);align-items:center}
#heart .heart-gallery{min-width:0}
#heart .heart-shot{margin:0;background:rgba(255,255,255,.66);border:1px solid rgba(255,255,255,.85);border-radius:28px;overflow:hidden;box-shadow:0 14px 44px rgba(91,64,35,.06);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
#heart .heart-slides{display:grid;grid-template-areas:'image';aspect-ratio:16/9;background:#efe8de;overflow:hidden}
#heart .heart-slide{grid-area:image;display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:contain;opacity:0;transition:opacity .75s ease;pointer-events:none}
#heart .heart-slide.is-active{opacity:1}
#heart .heart-shot figcaption{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:19px 23px;color:#6e6257;font-size:14px;line-height:1.45}
#heart #heart-shot-label{font-weight:500;color:#2a2019}
#heart .heart-caption-note{font-size:12px;white-space:nowrap}
#heart .heart-image-note{margin:17px 0 0;text-align:center;color:#6e6257;font-size:15px;line-height:1.5}
#heart .heart-copy{display:flex;flex-direction:column;gap:24px;min-width:0}
#heart .heart-copy h2{margin:0;font-size:clamp(32px,4vw,56px);line-height:1;font-weight:700;letter-spacing:-.03em}
#heart .heart-description{margin:0;color:#6e6257;font-size:17px;line-height:1.65}
#heart .heart-reading{display:flex;align-items:center;gap:15px;color:#2a2019}
#heart .heart-reading .heart{color:#ff8c00;flex:none;animation-duration:var(--heart-beat,455ms)}
#heart .heart-bpm{display:flex;align-items:baseline;gap:7px;white-space:nowrap}
#heart .heart-bpm strong{font-size:34px;line-height:1;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
#heart .heart-bpm>span{font-size:14px;font-weight:500;color:#6e6257}
#heart .heart-reading-label{display:flex;flex-direction:column;gap:2px;padding-left:17px;border-left:1px solid #ded3c5;line-height:1.45}
#heart .heart-reading-label strong{font-size:14px;font-weight:500}
#heart .heart-reading-label span{font-size:13px;color:#6e6257}
#heart .heart-chart-card{position:relative;background:linear-gradient(135deg,rgba(255,255,255,.79),rgba(255,250,243,.62));border:1px solid rgba(255,255,255,.94);border-radius:28px;padding:25px 27px;display:flex;flex-direction:column;gap:18px;box-shadow:0 10px 40px #5b402309;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
#heart .heart-chart-head{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:48px}
#heart .heart-chart-head h3{font-size:17px;font-weight:500;line-height:1.4;margin:0;letter-spacing:0}
#heart .heart-chart-head>span{font-size:14px;color:#6e6257;white-space:nowrap}
#heart .heart-chart-stack{display:grid;grid-template-areas:'chart';height:180px}
#heart .heart-chart-view{grid-area:chart;display:flex;flex-direction:column;justify-content:center;gap:12px;min-width:0;opacity:0;transition:opacity .75s ease;pointer-events:none}
#heart .heart-chart-view.is-active{opacity:1}
#heart .heart-zone-row{display:grid;grid-template-columns:54px minmax(0,1fr) 50px;align-items:center;gap:10px;font-size:14px;line-height:20px;color:#6e6257}
#heart .heart-zone-row>span:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#heart .heart-zone-track{height:12px;background:rgba(228,219,206,.38);border-radius:99px;overflow:hidden}
#heart .heart-zone-track i{display:block;height:100%;border-radius:99px}
#heart .heart-example-label{margin:0;font-size:12px;line-height:1.5;color:#6e6257}
#heart .heart-trend{display:block;width:100%;height:180px;overflow:visible}
#heart .heart-grid path{fill:none;stroke:#ded4c6;stroke-opacity:.7;stroke-width:1}
#heart .heart-axis{font-family:inherit;font-size:12px;fill:#86796a;font-variant-numeric:tabular-nums}
#heart[data-heart-running=false] .heart-reading .heart{animation-play-state:paused}
@media(max-width:1100px) and (min-width:901px){#heart .heart-chart-card{padding:23px}#heart .heart-reading-label strong{max-width:150px}#heart .heart-caption-note{display:none}}
@media(max-width:900px){#heart.heart-story{grid-template-columns:minmax(0,1fr)}#heart .heart-gallery,#heart .heart-copy{max-width:740px;width:100%;margin-inline:auto}}
@media(max-width:540px){#heart .heart-shot{border-radius:22px}#heart .heart-shot figcaption{padding:16px 18px;font-size:13px}#heart .heart-caption-note{font-size:11px}#heart .heart-copy{gap:22px}#heart .heart-chart-card{padding:23px 21px;border-radius:24px}#heart .heart-reading{gap:12px}#heart .heart-reading .heart{width:29px}#heart .heart-bpm strong{font-size:30px}#heart .heart-reading-label{padding-left:12px}#heart .heart-reading-label strong{font-size:13px}#heart .heart-reading-label span{font-size:12px}#heart .heart-chart-head h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){#heart .heart-slide,#heart .heart-chart-view{transition:none}#heart .heart-reading .heart{animation:none}}
