/* Salud · vista resumida (lámina E). Colours from :root, so dark and light follow the app's theme. */
.health-overview { margin:0 0 12px; }
.ho-visual { display:flex; flex-direction:column; gap:4px; margin-top:auto; min-width:0; font-size:13px; line-height:1.25; overflow-wrap:anywhere; }
.ho-visual .hs-phases { height:14px; margin-top:0; }
.ho-visual svg { flex:none; display:block; max-width:100%; }
.ho-visual.ho-overall { flex-direction:row; align-items:center; gap:10px; margin:auto 0; }
.ho-overall > span { display:flex; flex-direction:column; gap:4px; }
.ho-visual small { font-size:12px; }
.ho-sentence { font-size:13px; line-height:1.25; }
.ho-ring-track { stroke:var(--sep); } .ho-ring { stroke:var(--accent); }
.ho-ring-value { fill:var(--text); font-size:30px; font-weight:600; } .ho-ring-label { fill:var(--muted); font-size:13px; }
.ho-icon { display:inline-flex; flex:none; width:18px; height:18px; }
.ho-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ho-label { display:inline-flex; align-items:center; gap:6px; }
.ho-out { color:var(--orange); font-weight:600; }
.ho-track { fill:var(--sep); } .ho-band { fill:color-mix(in srgb, var(--green) 35%, transparent); }
.ho-dot { fill:var(--green); } .ho-dot.out { fill:var(--orange); }
.ho-stats { display:flex; flex-wrap:wrap; gap:4px 12px; }
.ho-stats > span { display:flex; flex:1 1 55px; flex-direction:column; min-width:0; }
.ho-stats strong { font-size:16px; }
.ho-sleep-chart { display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px; }
.ho-sleep-labels { display:grid; grid-template-rows:repeat(4,1fr); font-size:10px; line-height:1; color:var(--muted); }
.ho-axis { fill:var(--muted); font-size:9px; }
.ho-stage.awake { fill:var(--orange); } .ho-stage.rem { fill:var(--purple, var(--indigo)); } .ho-stage.light { fill:var(--cyan); } .ho-stage.deep { fill:var(--indigo); }
.ho-fill { fill:var(--accent); }
.ho-bar { fill:var(--teal); } .ho-bar.high { fill:var(--orange); }
.ho-line { stroke:var(--hs-weight, var(--yellow)); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.ho-more { min-height:44px; }
/* «Origen de datos» sheet: one row per source, its status on the right. */
.ho-origin { display:flex; flex-direction:column; gap:10px; }
.ho-sources { display:flex; flex-direction:column; gap:8px; }
.ho-source { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--sep); border-radius:12px; background:var(--card); }
.ho-source > span:last-child { font-size:12px; font-weight:600; text-align:right; }
.ho-ok { color:var(--green); }
.ho-origin .actions { display:flex; flex-wrap:wrap; gap:8px; }
/* Rendimiento · vista resumida (lámina F). */
.po-today-head { display:flex; align-items:center; gap:8px; }
.po-today-head > span { display:flex; flex-direction:column; gap:2px; min-width:0; }
.po-verdict { font-size:16px; }
.po-warn { color:var(--orange); }
.po-state svg { height:48px; }
.ho-visual.po-predictions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:auto 0; }
.po-band { fill:color-mix(in srgb, var(--accent) 18%, transparent); }
.po-load { fill:var(--accent); } .po-load.high { fill:var(--orange); }
.health-overview .po-form .performance-form-plot { height:65px; touch-action:auto; }
.po-form-bands { display:flex; flex-wrap:wrap; gap:2px 10px; color:var(--muted); font-size:11px; }
.po-form-bands > span::before { content:''; display:inline-block; width:7px; height:7px; margin-inline-end:4px; border-radius:2px; background:var(--series-color); }
/* The detail page's title with its icon (metric-detail.js, options.icon). */
.metric-detail-title { display:flex; align-items:center; justify-content:center; gap:8px; }
/* Rows that lead to their information (Pablo, 18 Nov: «que me dé acceso a la información filtrada»). Gap ≥ 6 px and
   data-reviewed keep the layout guard and the ⋯ review from folding them; the global button look is undone. */
.health-cause-list.health-cause-links { gap:6px; }
#app button.health-cause-link { all:unset; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; min-height:46px; padding:6px 12px; border-bottom:1px solid var(--sep); color:var(--text); font:inherit; text-align:left; cursor:pointer; }
#app button.health-cause-link:last-child { border-bottom:0; }
#app button.health-cause-link:hover { background:var(--fill); }
#app button.health-cause-link:focus-visible { outline:3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset:-3px; }
/* Más cifras de las lámina resumida: 7 días bajo el valor y la fila «Activa más datos». */
.ho-spark path { stroke:var(--compact-color, var(--accent)); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ho-activate { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 12px; }
.ho-activate-btn { display:inline-flex; align-items:center; gap:6px; min-height:44px; }
.ho-activate-btn svg { width:18px; height:18px; flex:none; fill:none; stroke:var(--compact-color, currentColor); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
