body #sante-dashboard #s-measurements{--mens-color-0:#88bdf2;--mens-color-1:#73d4c3;--mens-color-2:#c7a3e6;--mens-color-3:#edc779;--mens-color-4:#e8a3a8;--mens-color-5:#b0d28d;--mens-color-6:#a9a9f6;--mens-color-7:#dba979;--ma-skin:var(--app-bg);--ma-skin-line:var(--accent);--ma-skin-shadow:var(--surface);--ma-hair:var(--secondary);--ma-shorts:var(--surface-raised);--ma-torso:var(--accent);--ma-arms:var(--accent);--ma-legs:var(--accent);--ma-line:var(--line)}
:root[data-theme=light] body #sante-dashboard #s-measurements{--mens-color-0:#3478ac;--mens-color-1:#168778;--mens-color-2:#8950b5;--mens-color-3:#a67617;--mens-color-4:#ba5360;--mens-color-5:#607e25;--mens-color-6:#6860ba;--mens-color-7:#aa642a}
body #sante-dashboard .measurements-dates{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 24px;margin:2px 0 14px}
body #sante-dashboard .measurements-dates label{display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap}
body #sante-dashboard .measurements-dates select{max-width:100%;min-height:42px;padding:8px 10px;font:inherit;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--text)}
body #sante-dashboard .measurements-map{position:relative;width:100%;max-width:500px;aspect-ratio:400/510;margin:auto}
body #sante-dashboard .measurements-map .ma-anatomy{position:absolute;left:50%;transform:translateX(-50%);top:0;width:51%;height:98%;overflow:visible}
body #sante-dashboard .measurements-map .ma-skin{fill:var(--ma-skin);stroke:var(--ma-skin-line);stroke-width:1.3;stroke-linejoin:round}
body #sante-dashboard .measurements-map .ma-shade,body #sante-dashboard .measurements-map .ma-zone-fill{display:none}
body #sante-dashboard .measurements-map .ma-muscle{fill:none;stroke:var(--ma-skin-line);stroke-width:1.1;stroke-linecap:round;opacity:.35}
body #sante-dashboard .measurements-map .ma-inkline{fill:var(--ma-hair);stroke:none;opacity:.65}
body #sante-dashboard .measurements-map .ma-shorts{fill:var(--ma-shorts);stroke:var(--ma-skin-line);stroke-width:1.2}
body #sante-dashboard .measurements-connections{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
body #sante-dashboard .measurements-connector{fill:none;stroke-width:1.7;opacity:1}
body #sante-dashboard .measurements-connector.is-selected{stroke-width:1.7;opacity:1}
body #sante-dashboard button.measurements-body-tag{position:absolute;display:flex;align-items:center;gap:6px;width:28%;min-height:54px;padding:6px 5px;border:0;border-radius:8px;background:var(--app-bg);color:var(--text);text-align:left;line-height:1.25;white-space:normal;font:inherit}
body #sante-dashboard button.measurements-body-tag[aria-pressed=true]{background:var(--surface)}
body #sante-dashboard .measurements-number{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--marker-color);color:var(--marker-color);border-radius:50%;font-size:12px}
body #sante-dashboard .measurements-info{display:flex;flex-direction:column;gap:2px;min-width:0}
body #sante-dashboard .measurements-label{font-size:12px;color:var(--secondary)}
body #sante-dashboard .measurements-info strong{font-size:15px;font-weight:600;white-space:nowrap}
body #sante-dashboard .measurements-change{font-size:12px;color:var(--secondary);overflow-wrap:anywhere}
body #sante-dashboard .measurements-map-status{text-align:center;margin:10px 0 0}
body #sante-dashboard .measurements-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 12px}
body #sante-dashboard button.measurements-series-toggle{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:13px;min-height:38px;padding:0}
body #sante-dashboard button.measurements-series-toggle[aria-pressed=false]{opacity:.45;text-decoration:line-through}
body #sante-dashboard .measurements-swatch{display:inline-block;width:15px;height:3px;flex-shrink:0;border-radius:2px}
body #sante-dashboard .measurements-chart-host{position:relative;min-width:0}
body #sante-dashboard .measurements-chart{display:block;width:100%;height:auto;min-height:230px}
body #sante-dashboard .measurements-chart text{fill:var(--secondary);font:12px 'IBM Plex Sans',system-ui,sans-serif}
body #sante-dashboard .measurements-chart .measurements-axis-title{font-size:12px}
body #sante-dashboard .measurements-grid-line{stroke:var(--line);stroke-width:1;opacity:.6}
body #sante-dashboard .measurements-date-guide{stroke:var(--secondary);stroke-width:1;stroke-dasharray:3 5;opacity:.4}
body #sante-dashboard .measurements-tooltip{position:absolute;padding:5px 8px;border-radius:6px;background:var(--surface-raised);color:var(--text);font-size:12px;pointer-events:none;max-width:calc(100% - 8px);z-index:3}
@media(max-width:500px){body #sante-dashboard .measurements-info strong{font-size:13px}body #sante-dashboard .measurements-body-tag{gap:4px!important;padding:4px 2px!important}body #sante-dashboard .measurements-number{width:21px;height:21px;font-size:11px}body #sante-dashboard .measurements-label,body #sante-dashboard .measurements-change{font-size:11px}body #sante-dashboard .measurements-dates{justify-content:flex-start;gap:10px}body #sante-dashboard .measurements-dates label{justify-content:space-between;width:100%}}
body #sante-dashboard .measurements-map .ma-anatomy{z-index:1}
body #sante-dashboard .measurements-connections{z-index:2}
body #sante-dashboard button.measurements-body-tag{z-index:3}
body #sante-dashboard .measurements-map{background-image:repeating-linear-gradient(0deg,transparent 0,transparent 31px,color-mix(in srgb,var(--line) 20%,transparent) 32px)}
/* All anatomical callouts keep the same colored surface, before and after selection. */
body #sante-dashboard #s-measurements button.measurements-body-tag[aria-pressed]{background:color-mix(in srgb,var(--marker-color) 8%,var(--surface))!important;color:var(--text)!important;border:1px solid color-mix(in srgb,var(--marker-color) 35%,transparent)!important}
body #sante-dashboard #s-measurements button.measurements-series-toggle[aria-pressed]{background:transparent!important;color:var(--text)!important;border:0!important}
@media(max-width:500px){body #sante-dashboard .measurements-label{white-space:nowrap}body #sante-dashboard .measurements-dates select{font-size:16px}}
@media(max-width:380px){body #sante-dashboard button.measurements-body-tag{min-height:0}body #sante-dashboard .measurements-body-tag .measurements-label{grid-column:1 / -1}body #sante-dashboard .measurements-number{width:19px;height:19px}}

@media(max-width:380px){body #sante-dashboard button.measurements-body-tag{display:block;padding:2px 4px!important}body #sante-dashboard .measurements-body-tag .measurements-number{position:absolute;left:-18px;top:9px}body #sante-dashboard .measurements-info{display:grid;grid-template-columns:1fr auto;gap:0 2px}body #sante-dashboard .measurements-change{align-self:center}body #sante-dashboard .measurements-delta-unit{display:none}}

/* Touching a data point must not draw the browser's rectangular SVG focus ring. */
body #sante-dashboard #s-measurements circle[data-chart-hit]{-webkit-tap-highlight-color:transparent}
body #sante-dashboard #s-measurements circle[data-chart-hit]:focus,
body #sante-dashboard #s-measurements circle[data-chart-hit]:focus-visible{outline:none!important;box-shadow:none!important}
/* Preserve a circular focus cue for keyboard navigation. */
body #sante-dashboard #s-measurements .measurements-chart circle:has(+circle[data-chart-hit]:focus-visible){r:5;stroke:var(--text);stroke-width:1.5}

/* More room above the waist callout on phones; the arrow still targets the arm. */
@media(max-width:500px){
 body #sante-dashboard #s-measurements .measurements-body-tag[data-marker-column="5"]{top:20%!important}
 body #sante-dashboard #s-measurements .measurements-connector[data-marker-column="5"]{d:path("M108 128 L118 147.9 H144")}
}
