/* Battito (heart-rate): stili della pagina. Categoria "health" (benessere). */
:root {
    --health: #be185d;
    --health-tint: #fdecf3;
}
.cat-health { --accent: var(--health); --tint: var(--health-tint); }

.hr-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
    background: var(--health-tint); color: #4a1030; font-size: 14px; margin: 0 0 16px; }
.hr-note svg { flex: none; color: var(--health); }

.hr-app { display: flex; flex-direction: column; gap: 16px; }
.hr-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px;
    display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hr-panel h2, .hr-info h2 { margin: 0; font-size: 18px; }
.hr-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.hr-steps li strong { display: block; }
.hr-steps li span { color: #52525b; font-size: 14px; }

.hr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hr-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid #d4d4d8; background: #fff;
    color: #18181b; font: inherit; font-weight: 600; cursor: pointer; user-select: none; }
.hr-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hr-btn.hr-primary { background: var(--health); border-color: var(--health); color: #fff; }
.hr-btn:focus-within, .hr-btn:focus-visible { outline: 3px solid var(--health); outline-offset: 2px; }
.hr-app.hr-busy .hr-btn { opacity: .5; pointer-events: none; }

.hr-status { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #52525b; }
.hr-bar { height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
.hr-bar i { display: block; height: 100%; width: 0; background: var(--health); transition: width .2s linear; }
.hr-error { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid #b45309; background: #fffbeb; font-size: 14px; }

.hr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hr-tile { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hr-lab { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #52525b; }
.hr-val { display: flex; align-items: baseline; gap: 6px; }
.hr-val b { font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.hr-val i { font-style: normal; font-size: 14px; color: #52525b; }
.hr-ref { font-size: 12px; color: #71717a; }

.hr-quality { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hr-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.hr-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #71717a); }
.hr-pill.good { --c: #15803d; } .hr-pill.mid { --c: #b45309; } .hr-pill.low { --c: #b91c1c; }
.hr-detail { font-size: 12px; color: #52525b; }

.hr-trace { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hr-trace canvas { display: block; width: 100%; height: 170px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; }
.hr-trace figcaption { font-size: 12px; color: #52525b; }

.hr-disclaimer { margin: 0; font-size: 13px; color: #52525b; max-width: 66ch; }
.hr-info { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.hr-faq details { border-top: 1px solid #e5e7eb; padding: 12px 0; }
.hr-faq summary { cursor: pointer; font-weight: 600; }
.hr-faq p { margin: 8px 0 0; color: #52525b; max-width: 66ch; }
