/* Painel Saúde (docs/health-checkin.md). A casca (module-*) vem do CSS do host; aqui só o próprio. */

.health-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 2fr;
    gap: 16px;
}

@media (max-width: 760px) {
    .health-grid {
        grid-template-columns: 1fr;
    }
}

.health-last {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.health-last-bpm {
    font-size: 40px;
    line-height: 1.1;
}

.health-last-details,
.health-last-baseline {
    color: var(--ink-muted);
    font-size: 13px;
}

.health-ranges {
    display: flex;
    gap: 6px;
}

.health-ranges .is-current {
    border-color: var(--green);
    color: var(--accent-ink);
}

.health-sports {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.health-sports .is-current {
    border-color: var(--green);
    color: var(--accent-ink);
}

.health-connect {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.health-connect-button {
    background: #fc5200;
    border-color: #fc5200;
    color: #fff;
}

.health-weeks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 560px) {
    .health-weeks {
        grid-template-columns: 1fr;
    }
}

.health-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.health-week-label,
.health-week-details {
    color: var(--ink-muted);
    font-size: 13px;
}

.health-week-value {
    font-size: 24px;
    line-height: 1.2;
}

.health-week-previous .health-week-value {
    font-size: 18px;
}

.health-powered {
    color: var(--ink-muted);
    font-size: 12px;
    margin: 10px 0 0;
}

.health-activity-link {
    color: inherit;
}

.health-chart-wrap {
    overflow-x: auto;
}

.health-chart {
    width: 100%;
    min-width: 420px;
    height: auto;
}

.health-chart-axis {
    fill: var(--ink-muted);
    font-size: 11px;
}

.health-chart-band {
    fill: var(--green-soft);
    opacity: 0.7;
}

.health-chart-baseline {
    stroke: var(--ink-muted);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.health-chart-line {
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.health-chart-dot {
    fill: var(--green);
}

.health-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.health-reminders {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.health-page-disclaimer {
    width: 100%;
    margin: 0;
    color: var(--ink-muted);
    font-size: 12px;
}
