.health-panel {--blue:#087ed7;--green:#23865a;--amber:#a26a17;--red:#c44456;--zone-orange:#c65a08; width:100%;container-type:inline-size;font:15px/1.45 var(--sans);color:var(--foreground);font-variant-numeric:tabular-nums}
@media(prefers-color-scheme:dark){.health-panel{--blue:#329cff;--green:#44b489;--amber:#dda542;--red:#e05c68;--zone-orange:#f39445}}
.health-panel h1,.health-panel h2,.health-panel h3{color:var(--foreground);font:400 20px/1.3 var(--reader);letter-spacing:-.015em;margin:0}
.health-panel h3{font-size:16px}.health-panel section+section{margin-top:36px}
.health-panel .snapshot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px clamp(10px,3cqw,28px);margin:17px 0 12px}
.snapshot dt{font-size:14px}.snapshot dd{margin:0}.snapshot .big{font-family:var(--reader);font-variant-numeric:lining-nums tabular-nums;font-size:clamp(21px,3.2cqw,29px);letter-spacing:-.02em;line-height:1.25;margin-bottom:3px}
.snapshot>div{display:flex;flex-direction:column}.snapshot .big{order:-1}
.snapshot .detail,.panel-caption,.health-panel .legend {color:var(--muted);font:12px/1.5 var(--sans)}
.snapshot .detail{margin-top:3px}.health-panel .panel-caption{margin:10px 0 0}
.health-panel .trend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
.health-panel .plot-card{min-width:0;border:1px solid var(--line);border-radius:12px;padding:clamp(12px,2cqw,19px);margin:0}
.health-panel .legend{display:flex;align-items:center;flex-wrap:wrap;column-gap:12px;row-gap:3px;min-height:28px;margin:6px 0 2px}
.legend span{display:inline-flex;align-items:center;gap:5px}.legend i{display:inline-block;flex:none;width:8px;height:8px;border-radius:2px;background:var(--key-color)}.legend i.dot{border-radius:50%}.legend i.line,.legend i.dash{width:16px;height:2px}.legend i.dash{border-radius:0;background:repeating-linear-gradient(to right,var(--key-color) 0 4px,transparent 4px 6px)}
.plot{position:relative;min-width:0;touch-action:pan-y}.plot svg{display:block;width:100%;overflow:visible}
.plot text{font:10px var(--sans);fill:var(--muted)}.plot .gridline{stroke:var(--line);stroke-width:.7}
.plot:focus-visible,.table-scroll:focus-visible{outline:1px solid currentColor;outline-offset:2px}
.plot-tip{position:absolute;top:4px;z-index:1;max-width:95%;background:var(--background);border:1px solid var(--line);border-radius:6px;padding:6px 9px;font:11px/1.55 var(--sans);pointer-events:none}
.plot-tip span,.plot-tip b{display:block}.plot-tip .average{color:var(--muted)}
.stages-card{grid-column:1 / -1}
.stages-card .plot{cursor:pointer}
.stage-detail{margin-top:12px}
.stage-detail-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.stage-detail-header span{color:var(--muted);font:12px/1.4 var(--sans)}
.stage-detail h4{margin:0 0 4px;font:500 14px/1.4 var(--sans)}
.health-panel .stage-detail table{white-space:normal}
.health-panel .stage-detail :is(th,td){padding:5px 4px;font:12px/1.4 var(--sans)}
.stage-detail tbody tr:last-child>*{border-bottom:0}
.stage-key{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:2px}
.health-panel .wide-chart{margin-top:14px}.table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;margin:14px 0}
.health-panel table{border-collapse:collapse;width:100%;white-space:nowrap;font:13px/1.45 var(--sans)}
.health-panel :is(th,td){padding:9px 8px;text-align:right;border-bottom:1px solid var(--line)}
.health-panel th{font-weight:500;color:var(--muted)}.health-panel :is(th,td):first-child{text-align:left;padding-left:0}
.health-panel .sport{text-align:left;text-transform:capitalize}.health-panel .green{color:var(--green)}.health-panel .amber{color:var(--amber)}.health-panel .red{color:var(--red)}
.health-panel .activity-more{border:0;border-bottom:1px solid currentColor;background:none;padding:2px 0;color:var(--foreground);font:inherit;cursor:pointer}
@container(max-width:575px){.health-panel .trend-grid{grid-template-columns:1fr}}
@media(max-width:768px){.health-main,.health-panel{width:100%}.health-panel .snapshot{gap:16px 9px}.health-panel .snapshot .detail{font-size:11px}.health-panel .trend-grid{grid-template-columns:1fr}.health-panel section+section{margin-top:28px}}

@media(max-width:359px){.health-panel .snapshot{grid-template-columns:repeat(2,minmax(0,1fr))}}
