/* Body shape figure (measurements page) */
.body-figure-card .card-body { padding: 0.5rem 0.75rem 0.75rem; }
.body-figure-wrap { max-width: 420px; margin: 0 auto; }
.body-figure { width: 100%; height: auto; display: block; }

.body-figure {
    --bf-accent: var(--bs-primary);
    /* opaque, so overlapping parts (arm over torso) don't show seams */
    --bf-fill-edge: #c9dcfd;
    --bf-fill-mid: #eef4ff;
}
[data-bs-theme="dark"] .body-figure {
    --bf-accent: #6ea8fe;
    --bf-fill-edge: #2c4366;
    --bf-fill-mid: #1f2a3a;
}
.body-figure .bf-stop-edge { stop-color: var(--bf-fill-edge); }
.body-figure .bf-stop-mid { stop-color: var(--bf-fill-mid); }

/* Today's outline: thick stroke under the fill, so only the outer edge of the union shows */
.body-figure .bf-line path { fill: none; stroke: var(--bf-accent); stroke-width: 4; stroke-linejoin: round; }
.body-figure .bf-fill path { fill: url(#bfFill); }
/* Comparison outline, on top of today's figure. Masked to its outer half, so 3px shows as ~1.5px. */
.body-figure .bf-then path {
    fill: none; stroke: var(--bs-body-color); stroke-width: 3; stroke-dasharray: 5 4; opacity: 0.75;
}

.body-figure .bf-guide { stroke: var(--bf-accent); stroke-opacity: 0.4; stroke-width: 1; stroke-dasharray: 2 2; }
.body-figure .bf-guide.faint { stroke: var(--app-muted-text); stroke-opacity: 0.35; }
.body-figure .bf-leader { fill: none; stroke: var(--app-muted-text); stroke-opacity: 0.45; stroke-width: 1; }
.body-figure .bf-bracket { fill: none; stroke: var(--app-muted-text); stroke-opacity: 0.6; stroke-width: 1; }
.body-figure .bf-label { font-size: 10.5px; fill: var(--app-muted-text); }
.body-figure .bf-value { font-size: 12.5px; font-weight: 700; fill: var(--bs-body-color); }
.body-figure .bf-value.estimated { fill: var(--app-muted-text); font-weight: 600; }
.body-figure .bf-delta { font-size: 10.5px; font-weight: 600; fill: var(--app-muted-text); }
.body-figure .bf-delta.good { fill: var(--bs-success); }
.body-figure .bf-delta.bad { fill: var(--bs-danger); }

.body-figure-legend { display: flex; justify-content: center; gap: 1rem; font-size: 0.75rem; color: var(--app-muted-text); }
.body-figure-legend i { display: inline-block; width: 16px; vertical-align: middle; margin-right: 0.3rem; border-top: 3px solid var(--bs-primary); }
.body-figure-legend i.then { border-top: 2px dashed var(--app-muted-text); }
#bodyViewTabs .btn { font-size: 0.75rem; padding: 0.15rem 0.55rem; }
#bodyCompare { width: auto; font-size: 0.75rem; padding-top: 0.15rem; padding-bottom: 0.15rem; }
