
        /* =====================================================
           TOOL PAGE — scoped page styles
           ===================================================== */

        .tool-page {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .tool-main {
            flex: 1;
            padding: 80px 0 80px;
        }

        /* Header */
        .tool-header {
            text-align: center;
            margin-bottom: 44px;
            max-width: 640px;
            margin-left: auto;
            margin-right: auto;
        }

        .tool-badge {
            display: inline-block;
            padding: 5px 14px;
            border-radius: var(--radius-full);
            font-size: 0.8rem;
            font-weight: 600;
            background: var(--color-text);
            color: var(--color-bg);
            margin-bottom: 16px;
            letter-spacing: 0.01em;
        }

        .tool-header h1 {
            font-family: var(--font-display);
            font-size: 3rem;
            font-weight: 900;
            letter-spacing: -0.035em;
            line-height: 1.06;
            color: var(--color-text);
            margin-bottom: 14px;
        }

        .tool-header p {
            font-size: 1.1rem;
            color: var(--color-text-secondary);
            max-width: 560px;
            margin: 0 auto;
            line-height: 1.65;
        }

        /* Shell */
        .tool-shell {
            max-width: 900px;
            margin: 0 auto 72px;
        }

        /* =====================================================
           BF VISUALIZER — "Instrument"
           A photorealistic reference widget styled like the
           readout on a premium body-composition scanner.
           ===================================================== */

        .bfv {
            --bfv-bg:        #0A0A0B;
            --bfv-chamber:   #121215;
            --bfv-rail:      #1C1C21;
            --bfv-hairline:  rgba(255, 255, 255, 0.08);
            --bfv-hairline-strong: rgba(255, 255, 255, 0.14);
            --bfv-ink:       #F4F4F5;
            --bfv-ink-dim:   rgba(244, 244, 245, 0.78);
            --bfv-ink-faint: rgba(244, 244, 245, 0.58);
            --bfv-accent:    #E84C3D;
            --bfv-sage:      #8FB095;
            --bfv-warn:      #E8954C;
            --bfv-danger:    #B83A2D;
            --bfv-studio:    #E8E8E6;

            font-family: var(--font-body);
            color: var(--bfv-ink);

            position: relative;
            padding: 28px;
            background: var(--bfv-bg);
            border-radius: 24px;
            border: 1px solid var(--bfv-hairline);
            box-shadow:
                0 30px 60px -20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            overflow: hidden;
            isolation: isolate;
        }

        @media (min-width: 720px) {
            .bfv {
                padding: 36px;
            }
        }

        /* Ambient — faint radial glow + fine grid overlay */
        .bfv::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(1200px 420px at 50% -80px, rgba(232, 76, 61, 0.08), transparent 70%),
                radial-gradient(900px 500px at 50% 110%, rgba(143, 176, 149, 0.06), transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .bfv::after {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
            background-size: 48px 48px;
            pointer-events: none;
            z-index: 0;
            mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
            -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
        }

        /* Top bar — model tag / live chip */
        .bfv__bar {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 22px;
            padding-bottom: 18px;
            border-bottom: 1px solid var(--bfv-hairline);
        }

        .bfv__tag {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-family: var(--font-display);
            font-size: 0.82rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            color: var(--bfv-ink);
        }

        .bfv__dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--bfv-accent);
            box-shadow: 0 0 0 3px rgba(232, 76, 61, 0.18);
            animation: bfv-pulse 2.4s ease-in-out infinite;
        }

        @keyframes bfv-pulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(232, 76, 61, 0.18); }
            50%      { opacity: 0.55; box-shadow: 0 0 0 6px rgba(232, 76, 61, 0.06); }
        }

        .bfv__tag-meta {
            color: var(--bfv-ink);
            letter-spacing: 0.12em;
        }

        /* Gender segmented toggle */
        .bfv__gender {
            display: inline-flex;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--bfv-hairline-strong);
            border-radius: 999px;
            padding: 4px;
            margin-left: 8px;
        }

        .bfv__gender-btn {
            appearance: none;
            -webkit-appearance: none;
            background: transparent;
            border: 0;
            cursor: pointer;
            padding: 8px 18px;
            min-height: 36px;
            font-family: var(--font-display);
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--bfv-ink-dim);
            border-radius: 999px;
            transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
        }

        .bfv__gender-btn:hover {
            color: var(--bfv-ink);
        }

        .bfv__gender-btn[data-active="true"] {
            color: #0B0B0D;
            background: var(--bfv-ink);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
        }

        .bfv__gender-btn:focus-visible {
            outline: 2px solid var(--bfv-accent);
            outline-offset: 2px;
        }

        .bfv__serial {
            font-family: var(--font-display);
            font-feature-settings: "tnum" 1;
            font-variant-numeric: tabular-nums;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.16em;
            color: var(--bfv-ink-faint);
            text-transform: uppercase;
        }

        /* Grid: image pod + readout */
        .bfv__grid {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
        }

        @media (min-width: 720px) {
            .bfv__grid {
                grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.05fr);
                gap: 36px;
                align-items: stretch;
            }
        }

        /* Image pod — viewfinder */
        .bfv__pod {
            position: relative;
            aspect-ratio: 3 / 4;
            border-radius: 18px;
            overflow: hidden;
            background:
                linear-gradient(180deg, #F2F2F0 0%, var(--bfv-studio) 60%, #D9D9D5 100%);
            border: 1px solid var(--bfv-hairline-strong);
            box-shadow:
                inset 0 0 0 1px rgba(0, 0, 0, 0.02),
                inset 0 -80px 80px -60px rgba(0, 0, 0, 0.16);
        }

        /* Measurement grid behind physique */
        .bfv__pod::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
            background-size: 10% 7.5%;
            pointer-events: none;
            z-index: 1;
        }

        /* Center axis line */
        .bfv__pod::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 1px;
            background: linear-gradient(to bottom,
                transparent 0%,
                rgba(0, 0, 0, 0.08) 8%,
                rgba(0, 0, 0, 0.08) 92%,
                transparent 100%);
            pointer-events: none;
            z-index: 1;
        }

        .bfv__img-stack {
            position: absolute;
            inset: 0;
            z-index: 2;
        }

        .bfv__img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            opacity: 0;
            transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
            will-change: opacity;
            -webkit-user-drag: none;
            user-select: none;
        }

        .bfv__img[data-active="true"] { opacity: 1; }

        /* Corner marks — viewfinder */
        .bfv__corners {
            position: absolute;
            inset: 10px;
            z-index: 3;
            pointer-events: none;
        }

        .bfv__corner {
            position: absolute;
            width: 14px;
            height: 14px;
            border-color: rgba(20, 20, 22, 0.45);
            border-style: solid;
            border-width: 0;
        }
        .bfv__corner--tl { top: 0;    left: 0;    border-top-width: 1.5px;    border-left-width: 1.5px;   border-top-left-radius: 4px; }
        .bfv__corner--tr { top: 0;    right: 0;   border-top-width: 1.5px;    border-right-width: 1.5px;  border-top-right-radius: 4px; }
        .bfv__corner--bl { bottom: 0; left: 0;    border-bottom-width: 1.5px; border-left-width: 1.5px;   border-bottom-left-radius: 4px; }
        .bfv__corner--br { bottom: 0; right: 0;   border-bottom-width: 1.5px; border-right-width: 1.5px;  border-bottom-right-radius: 4px; }

        /* Side ruler */
        .bfv__scale {
            position: absolute;
            top: 14px;
            bottom: 14px;
            right: 8px;
            width: 14px;
            z-index: 3;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            pointer-events: none;
        }

        .bfv__scale span {
            display: block;
            height: 1px;
            width: 10px;
            margin-left: auto;
            background: rgba(20, 20, 22, 0.28);
        }

        .bfv__scale span:nth-child(5n + 1) {
            width: 14px;
            background: rgba(20, 20, 22, 0.52);
        }

        /* Age chip on pod */
        .bfv__agechip {
            position: absolute;
            top: 14px;
            left: 14px;
            z-index: 4;
            padding: 8px 14px 9px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1;
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid rgba(20, 20, 22, 0.14);
            border-radius: 12px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(20, 20, 22, 0.08);
            font-family: var(--font-display);
            font-feature-settings: "tnum" 1;
            font-variant-numeric: tabular-nums;
        }

        .bfv__agechip-label {
            font-size: 0.58rem;
            font-weight: 700;
            letter-spacing: 0.24em;
            text-transform: uppercase;
            color: rgba(20, 20, 22, 0.55);
            margin-bottom: 3px;
        }

        .bfv__agechip-value {
            display: inline-flex;
            align-items: baseline;
            color: rgba(20, 20, 22, 0.96);
        }

        .bfv__agechip-num {
            font-size: 1.35rem;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .bfv__agechip-suffix {
            font-size: 0.72rem;
            font-weight: 700;
            color: rgba(20, 20, 22, 0.62);
            margin-left: 1px;
        }

        /* Readout */
        .bfv__readout {
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 0;
        }

        .bfv__display {
            padding: 18px 20px 22px;
            background: linear-gradient(180deg, var(--bfv-chamber), rgba(18, 18, 21, 0.6));
            border: 1px solid var(--bfv-hairline);
            border-radius: 14px;
            position: relative;
            overflow: hidden;
        }

        .bfv__display::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(to right,
                transparent 0%,
                var(--bfv-hairline-strong) 20%,
                var(--bfv-hairline-strong) 80%,
                transparent 100%);
        }

        .bfv__display-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-family: var(--font-display);
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--bfv-ink);
            margin-bottom: 4px;
        }

        .bfv__display-label-r {
            color: var(--bfv-ink-faint);
            font-weight: 600;
            letter-spacing: 0.14em;
            font-size: 0.7rem;
        }

        .bfv__pct {
            display: flex;
            align-items: baseline;
            gap: 6px;
            font-family: var(--font-display);
            font-weight: 900;
            font-size: clamp(3.4rem, 9vw, 5rem);
            line-height: 0.95;
            letter-spacing: -0.04em;
            color: var(--bfv-ink);
            font-feature-settings: "tnum" 1;
            font-variant-numeric: tabular-nums;
            margin-top: 6px;
        }

        .bfv__pct-num {
            display: inline-block;
            transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
                        opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
        }

        .bfv__pct-sign {
            font-size: 0.38em;
            font-weight: 700;
            color: var(--bfv-ink-dim);
            transform: translateY(-0.22em);
            margin-left: 2px;
        }

        .bfv__category {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px dashed var(--bfv-hairline);
            flex-wrap: wrap;
        }

        .bfv__swatch {
            width: 10px;
            height: 10px;
            border-radius: 2px;
            background: var(--bfv-sage);
            box-shadow: 0 0 0 3px rgba(143, 176, 149, 0.14);
            transition: background 240ms ease, box-shadow 240ms ease;
            flex-shrink: 0;
        }

        .bfv__category-name {
            font-family: var(--font-display);
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            color: var(--bfv-ink);
            transition: color 240ms ease;
        }

        .bfv__category-sub {
            font-family: var(--font-display);
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--bfv-ink-dim);
            margin-left: auto;
        }

        /* Controls */
        .bfv__ctrl {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .bfv__ctrl-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            font-family: var(--font-display);
        }

        .bfv__ctrl-title {
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--bfv-ink);
        }

        .bfv__ctrl-value {
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--bfv-ink);
            letter-spacing: 0.02em;
            font-feature-settings: "tnum" 1;
            font-variant-numeric: tabular-nums;
        }

        /* Slider — custom */
        .bfv__slider-wrap {
            position: relative;
        }

        .bfv__slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 44px;
            background: transparent;
            cursor: pointer;
            padding: 0;
            margin: 0;
            outline: none;
            position: relative;
            z-index: 2;
        }

        .bfv__slider:focus { outline: none; }

        .bfv__slider::-webkit-slider-runnable-track {
            height: 6px;
            background: var(--bfv-rail);
            border-radius: 999px;
            border: 1px solid var(--bfv-hairline-strong);
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .bfv__slider::-moz-range-track {
            height: 6px;
            background: var(--bfv-rail);
            border-radius: 999px;
            border: 1px solid var(--bfv-hairline-strong);
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .bfv__slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #FAFAFA;
            border: 3px solid var(--bfv-accent);
            box-shadow: 0 0 0 5px rgba(232, 76, 61, 0.18), 0 6px 16px rgba(0, 0, 0, 0.6);
            margin-top: -12px;
            cursor: grab;
            transition: transform 150ms ease, box-shadow 150ms ease;
        }

        .bfv__slider::-moz-range-thumb {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #FAFAFA;
            border: 3px solid var(--bfv-accent);
            box-shadow: 0 0 0 5px rgba(232, 76, 61, 0.18), 0 6px 16px rgba(0, 0, 0, 0.6);
            cursor: grab;
            transition: transform 150ms ease, box-shadow 150ms ease;
        }

        .bfv__slider:hover::-webkit-slider-thumb,
        .bfv__slider:focus-visible::-webkit-slider-thumb {
            transform: scale(1.08);
            box-shadow: 0 0 0 8px rgba(232, 76, 61, 0.26), 0 6px 18px rgba(0, 0, 0, 0.65);
        }
        .bfv__slider:hover::-moz-range-thumb,
        .bfv__slider:focus-visible::-moz-range-thumb {
            transform: scale(1.08);
            box-shadow: 0 0 0 8px rgba(232, 76, 61, 0.26), 0 6px 18px rgba(0, 0, 0, 0.65);
        }
        .bfv__slider:active::-webkit-slider-thumb { cursor: grabbing; }
        .bfv__slider:active::-moz-range-thumb     { cursor: grabbing; }

        /* Live-fill overlay for the track */
        .bfv__rail-fill {
            position: absolute;
            top: 50%;
            left: 14px;
            transform: translateY(-50%);
            height: 6px;
            border-radius: 999px;
            background: linear-gradient(to right, var(--bfv-accent), rgba(232, 76, 61, 0.55));
            transition: width 160ms cubic-bezier(0.22, 1, 0.36, 1), background 240ms ease;
            box-shadow: 0 0 16px rgba(232, 76, 61, 0.35);
            pointer-events: none;
            z-index: 1;
        }

        /* Ticks */
        .bfv__ticks {
            display: flex;
            justify-content: space-between;
            margin-top: 2px;
            padding: 0 12px;
            pointer-events: auto;
        }

        .bfv__tick {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            padding: 2px 4px;
        }

        .bfv__tick-mark {
            width: 1px;
            height: 8px;
            background: rgba(255, 255, 255, 0.22);
        }

        .bfv__tick-label {
            font-family: var(--font-display);
            font-size: 0.86rem;
            font-weight: 700;
            color: var(--bfv-ink-dim);
            letter-spacing: 0.02em;
            font-feature-settings: "tnum" 1;
            font-variant-numeric: tabular-nums;
            transition: color 160ms ease, transform 160ms ease;
            transform-origin: top center;
            cursor: pointer;
        }

        .bfv__tick-label:hover {
            color: var(--bfv-ink);
        }

        .bfv__tick-label[data-active="true"] {
            color: var(--bfv-ink);
            transform: scale(1.14);
        }

        /* Foot */
        .bfv__foot {
            position: relative;
            z-index: 2;
            margin-top: 22px;
            padding-top: 16px;
            border-top: 1px solid var(--bfv-hairline);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            font-family: var(--font-display);
            font-size: 0.7rem;
            font-weight: 500;
            letter-spacing: 0.12em;
            color: var(--bfv-ink-faint);
            text-transform: uppercase;
        }

        .bfv__foot-note {
            color: var(--bfv-ink-faint);
            text-transform: none;
            letter-spacing: 0.02em;
            font-size: 0.78rem;
            font-weight: 400;
            font-family: var(--font-body);
        }

        .bfv__share {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: transparent;
            border: 1px solid var(--bfv-hairline-strong);
            color: var(--bfv-ink-dim);
            font-family: var(--font-display);
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            padding: 8px 14px;
            border-radius: 999px;
            cursor: pointer;
            transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
        }

        .bfv__share:hover {
            color: var(--bfv-ink);
            border-color: var(--bfv-ink-dim);
            background: rgba(255, 255, 255, 0.02);
        }

        .bfv__share svg { width: 12px; height: 12px; }

        /* Category variants — driven by data-category on .bfv */
        .bfv[data-category="shredded"] { --bfv-active: var(--bfv-accent); }
        .bfv[data-category="athletic"] { --bfv-active: var(--bfv-sage); }
        .bfv[data-category="fit"]      { --bfv-active: #A9C6AE; }
        .bfv[data-category="average"]  { --bfv-active: #C4A574; }
        .bfv[data-category="above"]    { --bfv-active: var(--bfv-warn); }
        .bfv[data-category="obese"]    { --bfv-active: var(--bfv-danger); }
        .bfv[data-category="danger"]   { --bfv-active: #7A1F15; }

        .bfv[data-category] .bfv__swatch {
            background: var(--bfv-active);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06),
                        0 0 12px color-mix(in srgb, var(--bfv-active) 50%, transparent);
        }
        .bfv[data-category] .bfv__rail-fill {
            background: linear-gradient(to right,
                var(--bfv-active),
                color-mix(in srgb, var(--bfv-active) 55%, transparent));
            box-shadow: 0 0 16px color-mix(in srgb, var(--bfv-active) 32%, transparent);
        }
        .bfv[data-category] .bfv__slider::-webkit-slider-thumb {
            border-color: var(--bfv-active);
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--bfv-active) 18%, transparent),
                        0 4px 12px rgba(0, 0, 0, 0.5);
        }
        .bfv[data-category] .bfv__slider::-moz-range-thumb {
            border-color: var(--bfv-active);
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--bfv-active) 18%, transparent),
                        0 4px 12px rgba(0, 0, 0, 0.5);
        }
        .bfv[data-category] .bfv__dot {
            background: var(--bfv-active);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--bfv-active) 22%, transparent);
        }

        /* Scan sweep when first visible */
        .bfv__sweep {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            height: 40%;
            background: linear-gradient(to bottom,
                transparent 0%,
                rgba(232, 76, 61, 0) 50%,
                rgba(232, 76, 61, 0.12) 85%,
                rgba(232, 76, 61, 0) 100%);
            pointer-events: none;
            z-index: 3;
            transform: translateY(-100%);
            opacity: 0;
        }

        .bfv[data-revealed="true"] .bfv__sweep {
            animation: bfv-sweep 1400ms cubic-bezier(0.4, 0, 0.2, 1) 120ms 1 both;
        }

        @keyframes bfv-sweep {
            0%   { transform: translateY(-100%); opacity: 0; }
            15%  { opacity: 1; }
            85%  { opacity: 1; }
            100% { transform: translateY(280%); opacity: 0; }
        }

        @media (max-width: 519px) {
            .bfv {
                padding: 22px 18px;
                border-radius: 20px;
            }
            .bfv__bar {
                margin-bottom: 16px;
                padding-bottom: 14px;
                flex-wrap: wrap;
            }
            .bfv__serial { display: none; }
            .bfv__tag { font-size: 0.76rem; gap: 8px; }
            .bfv__gender-btn { padding: 7px 14px; font-size: 0.76rem; min-height: 34px; }
            .bfv__display { padding: 14px 16px 18px; }
            .bfv__tick-label { font-size: 0.78rem; }
            .bfv__ctrl-title { font-size: 0.76rem; }
            .bfv__ctrl-value { font-size: 1rem; }
            .bfv__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
            .bfv__category-sub { margin-left: 0; }
        }

        @media (prefers-reduced-motion: reduce) {
            .bfv__img,
            .bfv__pct-num,
            .bfv__rail-fill,
            .bfv__tick-label,
            .bfv__slider::-webkit-slider-thumb,
            .bfv__slider::-moz-range-thumb { transition: none !important; }
            .bfv__dot, .bfv__sweep { animation: none !important; }
        }

        /* =====================================================
           Inline caption beneath the widget
           ===================================================== */

        .tool-caption {
            max-width: 640px;
            margin: 20px auto 0;
            text-align: center;
            font-size: 0.92rem;
            line-height: 1.65;
            color: var(--color-text-tertiary);
        }

        /* =====================================================
           REFERENCE CHART
           ===================================================== */

        .tool-reference {
            max-width: 900px;
            margin: 72px auto 64px;
        }

        .tool-reference-head {
            text-align: center;
            margin-bottom: 36px;
        }

        .tool-reference-head h2 {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 800;
            letter-spacing: -0.025em;
            color: var(--color-text);
            margin-bottom: 8px;
            line-height: 1.1;
        }

        .tool-reference-head p {
            color: var(--color-text-secondary);
            font-size: 1rem;
            max-width: 520px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .tool-ref-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 10px;
        }

        @media (max-width: 900px) {
            .tool-ref-grid { grid-template-columns: repeat(3, 1fr); }
        }

        @media (max-width: 520px) {
            .tool-ref-grid { grid-template-columns: repeat(2, 1fr); }
        }

        .tool-ref-card {
            padding: 16px 14px;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            text-align: left;
            font: inherit;
            color: inherit;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
        }

        .tool-ref-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-card);
            border-color: rgba(0, 0, 0, 0.14);
        }

        .tool-ref-card[data-active="true"] {
            border-color: var(--color-text);
            box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
        }

        .tool-ref-pct {
            display: flex;
            align-items: baseline;
            gap: 2px;
            font-family: var(--font-display);
            font-size: 1.8rem;
            font-weight: 900;
            letter-spacing: -0.03em;
            line-height: 1;
            color: var(--color-text);
            font-feature-settings: "tnum" 1;
            font-variant-numeric: tabular-nums;
        }

        .tool-ref-pct sup {
            font-size: 0.6rem;
            font-weight: 700;
            color: var(--color-text-tertiary);
            transform: translateY(-0.3em);
        }

        .tool-ref-name {
            font-family: var(--font-display);
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--color-text);
        }

        .tool-ref-desc {
            font-size: 0.82rem;
            line-height: 1.5;
            color: var(--color-text-secondary);
        }

        .tool-ref-bar {
            height: 3px;
            border-radius: 999px;
            background: currentColor;
            margin-top: auto;
        }

        /* Ref card accent — keyed by category (works for both genders) */
        .tool-ref-card[data-key="shredded"] { color: #E84C3D; }
        .tool-ref-card[data-key="athletic"] { color: #6B8F71; }
        .tool-ref-card[data-key="fit"]      { color: #8FB095; }
        .tool-ref-card[data-key="average"]  { color: #C4A574; }
        .tool-ref-card[data-key="above"]    { color: #E8954C; }
        .tool-ref-card[data-key="obese"]    { color: #B83A2D; }
        .tool-ref-card[data-key="danger"]   { color: #7A1F15; }

        .tool-ref-card .tool-ref-pct,
        .tool-ref-card .tool-ref-name,
        .tool-ref-card .tool-ref-desc {
            color: inherit;
        }

        .tool-ref-card .tool-ref-name { color: currentColor; }
        .tool-ref-card .tool-ref-pct,
        .tool-ref-card .tool-ref-desc { color: var(--color-text); }
        .tool-ref-card .tool-ref-desc { color: var(--color-text-secondary); }

        /* =====================================================
           USAGE + METHOD
           ===================================================== */

        .tool-usage {
            max-width: 900px;
            margin: 0 auto 64px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        @media (max-width: 720px) {
            .tool-usage { grid-template-columns: 1fr; }
        }

        .tool-usage-card {
            padding: 28px;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-lg);
        }

        .tool-usage-card h3 {
            font-family: var(--font-display);
            font-size: 1.05rem;
            font-weight: 800;
            letter-spacing: -0.005em;
            color: var(--color-text);
            margin-bottom: 10px;
        }

        .tool-usage-card p,
        .tool-usage-card li {
            font-size: 0.95rem;
            line-height: 1.7;
            color: var(--color-text-secondary);
        }

        .tool-usage-card ul {
            padding-left: 18px;
            margin: 0;
        }

        .tool-usage-card li { margin-bottom: 4px; }

        .tool-usage-card strong { color: var(--color-text); font-weight: 600; }

        /* =====================================================
           CTA
           ===================================================== */

        .tool-cta-section {
            max-width: 620px;
            margin: 0 auto 40px;
            text-align: center;
            padding: 48px 40px;
            background: var(--color-surface);
            border-radius: var(--radius-lg);
            border: 1px solid var(--color-border);
        }

        .tool-cta-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 20px;
            border-radius: var(--radius-sm);
            background: var(--color-text);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .tool-cta-icon svg { width: 26px; height: 26px; color: #fff; }

        .tool-cta-section h2 {
            font-family: var(--font-display);
            font-size: 1.7rem;
            font-weight: 800;
            letter-spacing: -0.025em;
            color: var(--color-text);
            margin-bottom: 12px;
        }

        .tool-cta-section p {
            font-size: 1rem;
            color: var(--color-text-secondary);
            line-height: 1.7;
            max-width: 460px;
            margin: 0 auto 24px;
        }

        .tool-cta-list {
            list-style: none;
            display: inline-flex;
            flex-direction: column;
            gap: 6px;
            text-align: left;
            margin: 0 auto 28px;
            padding: 0;
        }

        .tool-cta-list li {
            font-size: 0.92rem;
            color: var(--color-text-secondary);
            padding-left: 24px;
            position: relative;
        }

        .tool-cta-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            font-weight: 700;
            color: var(--color-text);
        }

        /* Method note */
        .tool-method-note {
            max-width: 560px;
            margin: 0 auto;
            padding: 24px;
            background: transparent;
            border: 1px dashed var(--color-border);
            border-radius: var(--radius-md);
            text-align: center;
        }

        .tool-method-note h3 {
            font-family: var(--font-display);
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--color-text);
            margin-bottom: 6px;
            letter-spacing: 0.02em;
        }

        .tool-method-note p {
            font-size: 0.82rem;
            color: var(--color-text-tertiary);
            line-height: 1.6;
        }

        /* Responsive */
        @media (max-width: 640px) {
            .tool-main { padding: 60px 0 80px; }
            .tool-header { margin-bottom: 32px; }
            .tool-header h1 { font-size: 2rem; }
            .tool-header p { font-size: 0.95rem; }
            .tool-reference { margin: 56px auto 48px; }
            .tool-reference-head h2 { font-size: 1.5rem; }
            .tool-cta-section { padding: 32px 22px; }
            .tool-cta-section h2 { font-size: 1.3rem; }
        }
    