/* Withings — sdílí CSS proměnné z .llgm-dashboard */

.withings-dashboard {
    /* Dědí vše z .llgm-dashboard */
}

.withings-bp-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 4px 0 6px;
    flex-wrap: wrap;
}

/* Barvy systoly/diastoly */
.withings-systolic  { color: var(--high, #ef4444); }
.withings-diastolic { color: var(--accent, #3b82f6); }

/* Badge kategorie */
.withings-cat-badge { transition: background .3s, color .3s; }
.withings-cat-badge.ok   { background: rgba(16,185,129,.12); color: #065f46; }
.withings-cat-badge.warn { background: rgba(245,158,11,.12); color: #92400e; }
.withings-cat-badge.high { background: rgba(239,68,68,.12);  color: #991b1b; }

@media (prefers-color-scheme: dark) {
    .withings-cat-badge.ok   { color: #6ee7b7; }
    .withings-cat-badge.warn { color: #fcd34d; }
    .withings-cat-badge.high { color: #fca5a5; }
}

/* Seznam měření */
.withings-reading-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--brd, rgba(0,0,0,.06));
    font-size: 13px;
}
.withings-reading-row:last-child { border-bottom: none; }

.withings-reading-time {
    font-size: 11px;
    color: var(--muted, #6b7280);
    width: 90px;
    flex-shrink: 0;
}

.withings-reading-bp {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    flex: 1;
}

.withings-reading-sys  { color: var(--high, #ef4444); }
.withings-reading-dia  { color: var(--accent, #3b82f6); }
.withings-reading-sep  { color: var(--muted, #6b7280); margin: 0 2px; }

.withings-reading-pulse {
    font-size: 12px;
    color: var(--muted, #6b7280);
    font-variant-numeric: tabular-nums;
    width: 60px;
    text-align: right;
}

.withings-reading-cat {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    flex-shrink: 0;
}
.withings-reading-cat.ok   { background: rgba(16,185,129,.1);  color: #065f46; }
.withings-reading-cat.warn { background: rgba(245,158,11,.1);  color: #92400e; }
.withings-reading-cat.high { background: rgba(239,68,68,.1);   color: #991b1b; }

@media (prefers-color-scheme: dark) {
    .withings-reading-cat.ok   { color: #6ee7b7; }
    .withings-reading-cat.warn { color: #fcd34d; }
    .withings-reading-cat.high { color: #fca5a5; }
}

/* Referenční pásma v grafu */
.withings-no-data {
    font-size: 13px;
    color: var(--muted, #6b7280);
    padding: 20px 0;
    text-align: center;
}

/* Dvě oddělené karty 35/65 */
.withings-row {
    display: grid;
    grid-template-columns: 35fr 65fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 600px) {
    .withings-row { grid-template-columns: 1fr; }
}

/* Withings body composition — responzivní grid */
.withings-body-row {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}
.withings-body-row--3 { grid-template-columns: repeat(3, 1fr); }
.withings-body-row--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 600px) {
    .withings-body-row--3 { grid-template-columns: 1fr; }
    .withings-body-row--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
    .withings-body-row--4 { grid-template-columns: 1fr; }
}
