
        /* =====================================================
           STRENGTH STANDARDS CALCULATOR — scoped styles
           Matches ffmi / one-rep-max / calories-burned pattern
           ===================================================== */

        :root {
            --ssc-accent: #2563eb;
            --ssc-accent-soft: #eff6ff;
        }

        .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: 40px;
        }

        .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.08;
            color: var(--color-text);
            margin-bottom: 12px;
        }

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

        /* Calculator Card */
        .tool-calc-card {
            max-width: 560px;
            margin: 0 auto 40px;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-lg);
            padding: 36px;
            box-shadow: var(--shadow-elevated);
        }

        /* Exercise pill picker */
        .section-label {
            font-family: var(--font-body);
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--color-text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 10px;
        }

        .exercise-scroll {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            padding: 4px 2px 8px;
            margin: 0 -4px 22px;
            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
        }

        .exercise-scroll::-webkit-scrollbar {
            height: 4px;
        }

        .exercise-scroll::-webkit-scrollbar-thumb {
            background: var(--color-border);
            border-radius: 4px;
        }

        .exercise-pill {
            padding: 8px 16px;
            font-family: var(--font-body);
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-text-secondary);
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .exercise-pill:hover {
            color: var(--color-text);
            border-color: var(--color-text-secondary);
        }

        .exercise-pill.active {
            background: var(--color-text);
            color: var(--color-bg);
            border-color: var(--color-text);
        }

        /* Gender toggle */
        .tool-gender-toggle {
            display: flex;
            background: var(--color-surface);
            border-radius: var(--radius-full);
            padding: 4px;
            margin-bottom: 20px;
            border: 1px solid var(--color-border);
        }

        .tool-gender-btn {
            flex: 1;
            padding: 10px 0;
            text-align: center;
            font-family: var(--font-body);
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--color-text-secondary);
            background: transparent;
            border: none;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .tool-gender-btn.active {
            background: var(--color-text);
            color: var(--color-bg);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        }

        /* Input group */
        .tool-input-group {
            margin-bottom: 20px;
        }

        .tool-input-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-text);
            margin-bottom: 6px;
            letter-spacing: 0.01em;
        }

        .tool-input-hint {
            font-weight: 400;
            color: var(--color-text-tertiary);
            font-size: 0.8rem;
        }

        .tool-input-field {
            width: 100%;
            padding: 12px 16px;
            font-family: var(--font-body);
            font-size: 1rem;
            font-weight: 500;
            color: var(--color-text);
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-sm);
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            -moz-appearance: textfield;
            appearance: textfield;
        }

        .tool-input-field::-webkit-outer-spin-button,
        .tool-input-field::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .tool-input-field::placeholder {
            color: var(--color-text-tertiary);
            font-weight: 400;
        }

        .tool-input-field:focus {
            border-color: var(--color-text);
            box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
        }

        .tool-input-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        /* Unit toggle (inline) */
        .tool-unit-toggle {
            display: inline-flex;
            background: var(--color-surface);
            border-radius: var(--radius-full);
            padding: 2px;
            border: 1px solid var(--color-border);
        }

        .tool-unit-btn {
            padding: 3px 10px;
            font-family: var(--font-body);
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--color-text-tertiary);
            background: transparent;
            border: none;
            border-radius: var(--radius-full);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .tool-unit-btn.active {
            background: var(--color-bg);
            color: var(--color-text);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        }

        /* Input mode tabs */
        .mode-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            margin-bottom: 18px;
            border-bottom: 1px solid var(--color-border);
        }

        .mode-tab {
            padding: 12px 6px;
            font-family: var(--font-body);
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--color-text-tertiary);
            background: transparent;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: -1px;
        }

        .mode-tab:hover {
            color: var(--color-text-secondary);
        }

        .mode-tab.active {
            color: var(--color-text);
            border-bottom-color: var(--color-text);
        }

        /* Calculate button */
        .tool-calc-btn {
            width: 100%;
            padding: 14px 0;
            font-family: var(--font-display);
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--color-bg);
            background: var(--color-text);
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
            margin-top: 12px;
        }

        .tool-calc-btn:hover {
            transform: translateY(-1px);
            opacity: 0.9;
        }

        .tool-calc-btn:active {
            transform: translateY(0);
        }

        /* Cross-link note */
        .orm-hint {
            display: block;
            text-align: center;
            font-size: 0.78rem;
            color: var(--color-text-tertiary);
            margin-top: 10px;
        }

        .orm-hint a {
            color: var(--color-text-secondary);
            text-decoration: underline;
            text-underline-offset: 2px;
            font-weight: 500;
        }

        .orm-hint a:hover {
            color: var(--color-text);
        }

        .tool-error-msg {
            color: #ef4444;
            font-size: 0.85rem;
            font-weight: 500;
            margin-top: 10px;
            display: none;
            text-align: center;
        }

        .tool-error-msg.show {
            display: block;
        }

        /* =====================================================
           RESULT — tier-as-hero
           ===================================================== */

        .tool-result {
            display: none;
            max-width: 720px;
            margin: 0 auto 48px;
            animation: toolFadeIn 0.5s ease;
        }

        .tool-result.show {
            display: block;
        }

        @keyframes toolFadeIn {
            from { opacity: 0; transform: translateY(12px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .tool-result-hero {
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-lg);
            padding: 36px 36px 32px;
            box-shadow: var(--shadow-elevated);
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .tool-result-hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at top, var(--ssc-accent-soft) 0%, transparent 70%);
            opacity: 0.6;
            pointer-events: none;
        }

        .tool-result-hero > * {
            position: relative;
        }

        .result-exercise-label {
            font-family: var(--font-body);
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--color-text-tertiary);
            margin-bottom: 10px;
        }

        /* Giant tier headline */
        .result-tier-label {
            font-family: var(--font-display);
            font-size: 4rem;
            font-weight: 900;
            letter-spacing: -0.04em;
            line-height: 1;
            margin-bottom: 10px;
            color: var(--color-text);
        }

        .result-tier-label.tier-untrained    { color: #6b7280; }
        .result-tier-label.tier-novice       { color: #2563eb; }
        .result-tier-label.tier-intermediate { color: #059669; }
        .result-tier-label.tier-advanced     { color: #d97706; }
        .result-tier-label.tier-elite        { color: #dc2626; }

        .result-ratio-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            background: var(--ssc-accent-soft);
            color: #1e40af;
            border-radius: var(--radius-full);
            font-family: var(--font-display);
            font-weight: 800;
            font-size: 0.95rem;
            letter-spacing: -0.01em;
            margin-bottom: 6px;
        }

        .result-1rm-secondary {
            font-size: 0.9rem;
            color: var(--color-text-secondary);
            margin-bottom: 20px;
            font-weight: 500;
        }

        .result-1rm-secondary strong {
            color: var(--color-text);
            font-family: var(--font-display);
            font-weight: 800;
            letter-spacing: -0.01em;
            font-size: 0.98rem;
        }

        /* Gauge */
        .tool-gauge {
            position: relative;
            height: 12px;
            background: var(--color-surface);
            border-radius: var(--radius-full);
            overflow: visible;
            margin-bottom: 6px;
        }

        .tool-gauge-fill {
            height: 100%;
            border-radius: var(--radius-full);
            transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
            background: linear-gradient(90deg, #9ca3af, #60a5fa, #10b981, #f59e0b, #ef4444);
        }

        .tool-gauge-labels {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            font-size: 0.68rem;
            color: var(--color-text-tertiary);
            font-weight: 600;
            margin-top: 10px;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .tool-gauge-labels span { text-align: center; }
        .tool-gauge-labels span:first-child { text-align: left; }
        .tool-gauge-labels span:last-child  { text-align: right; }

        /* Percentile + progression strip */
        .result-insights {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            padding-top: 20px;
            border-top: 1px solid var(--color-border);
        }

        .insight-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: 16px 18px;
            text-align: left;
        }

        .insight-label {
            font-family: var(--font-body);
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--color-text-tertiary);
            margin-bottom: 6px;
        }

        .insight-value {
            font-family: var(--font-display);
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--color-text);
            letter-spacing: -0.01em;
            line-height: 1.25;
        }

        .insight-sub {
            font-size: 0.8rem;
            color: var(--color-text-secondary);
            margin-top: 4px;
            font-weight: 500;
            line-height: 1.4;
        }

        /* =====================================================
           EXERCISE COMPARISON TABLE
           ===================================================== */

        .comparison-card {
            max-width: 920px;
            margin: 0 auto 48px;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-lg);
            padding: 28px 32px 32px;
            box-shadow: var(--shadow-card);
        }

        .comparison-card h3 {
            font-family: var(--font-display);
            font-size: 1.3rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--color-text);
            margin-bottom: 4px;
        }

        .comparison-card .subtitle {
            font-size: 0.9rem;
            color: var(--color-text-secondary);
            margin-bottom: 20px;
        }

        .comparison-scroll {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 0 -8px;
            padding: 0 8px;
        }

        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            font-family: var(--font-body);
            min-width: 640px;
        }

        .comparison-table thead th {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--color-text-tertiary);
            padding: 12px 10px;
            text-align: right;
            border-bottom: 1px solid var(--color-border);
            white-space: nowrap;
        }

        .comparison-table thead th:first-child {
            text-align: left;
        }

        .comparison-table tbody td {
            padding: 12px 10px;
            border-bottom: 1px solid var(--color-border);
            font-size: 0.9rem;
            color: var(--color-text);
            text-align: right;
            font-family: var(--font-display);
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        .comparison-table tbody td:first-child {
            text-align: left;
            font-family: var(--font-body);
            font-weight: 600;
            color: var(--color-text-secondary);
        }

        .comparison-table tbody tr:last-child td {
            border-bottom: none;
        }

        .comparison-table tbody tr.current-exercise {
            background: var(--ssc-accent-soft);
        }

        .comparison-table tbody tr.current-exercise td:first-child {
            color: var(--color-text);
            font-weight: 700;
        }

        .comparison-table td.your-tier {
            position: relative;
        }

        .comparison-table td.your-tier::after {
            content: "you";
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            font-family: var(--font-body);
            font-size: 0.6rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 2px 6px;
            background: var(--color-text);
            color: var(--color-bg);
            border-radius: var(--radius-full);
        }

        .comparison-table td.your-tier {
            padding-right: 40px;
        }

        .comparison-unit-hint {
            font-size: 0.75rem;
            color: var(--color-text-tertiary);
            margin-top: 14px;
            text-align: right;
        }

        /* =====================================================
           REFERENCE GRID (per exercise)
           ===================================================== */

        .tool-reference {
            max-width: 720px;
            margin: 0 auto 48px;
        }

        .tool-reference h2 {
            font-family: var(--font-display);
            font-size: 1.8rem;
            font-weight: 800;
            letter-spacing: -0.025em;
            color: var(--color-text);
            text-align: center;
            margin-bottom: 8px;
        }

        .tool-reference > p {
            text-align: center;
            color: var(--color-text-secondary);
            font-size: 0.95rem;
            margin-bottom: 24px;
            max-width: 540px;
            margin-left: auto;
            margin-right: auto;
        }

        .ref-current-filter {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .ref-current-filter .filter-chip {
            padding: 6px 14px;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-full);
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--color-text-secondary);
        }

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

        .tool-ref-card {
            padding: 20px 12px 18px;
            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            text-align: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
        }

        .tool-ref-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-card);
        }

        .tool-ref-card.highlight {
            border-color: var(--color-text);
            background: #fafafa;
        }

        .tool-ref-card.highlight::before {
            content: "your tier";
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--color-text);
            color: var(--color-bg);
            font-family: var(--font-body);
            font-size: 0.6rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 3px 10px;
            border-radius: var(--radius-full);
            white-space: nowrap;
        }

        .tool-ref-dot {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            margin: 0 auto 10px;
        }

        .dot-untrained    { background: #9ca3af; }
        .dot-novice       { background: #60a5fa; }
        .dot-intermediate { background: #10b981; }
        .dot-advanced     { background: #f59e0b; }
        .dot-elite        { background: #ef4444; }

        .tool-ref-card h4 {
            font-family: var(--font-display);
            font-size: 0.95rem;
            font-weight: 800;
            color: var(--color-text);
            margin-bottom: 2px;
            letter-spacing: -0.01em;
        }

        .tool-ref-range {
            font-family: var(--font-display);
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--color-text);
            letter-spacing: -0.015em;
            margin-top: 4px;
        }

        .tool-ref-range-unit {
            font-family: var(--font-body);
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--color-text-tertiary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-top: 2px;
        }

        .tool-ref-weight {
            font-family: var(--font-display);
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--color-text-secondary);
            margin-top: 8px;
            letter-spacing: -0.005em;
        }

        /* =====================================================
           METHOD / FORMULA CARD
           ===================================================== */

        .tool-formula {
            max-width: 720px;
            margin: 0 auto 48px;
            padding: 32px 36px;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-lg);
        }

        .tool-formula h2 {
            font-family: var(--font-display);
            font-size: 1.4rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--color-text);
            margin-bottom: 16px;
            text-align: center;
        }

        .tool-formula p {
            font-size: 0.92rem;
            color: var(--color-text-secondary);
            line-height: 1.7;
            margin-bottom: 10px;
        }

        .tool-formula p strong {
            color: var(--color-text);
        }

        /* =====================================================
           OTHER TOOLS + CTA
           ===================================================== */

        .tool-other {
            max-width: 620px;
            margin: 0 auto 24px;
            text-align: center;
        }

        .tool-other h3 {
            font-family: var(--font-display);
            font-weight: 700;
            font-size: 1.05rem;
            margin-bottom: 14px;
            color: var(--color-text);
        }

        .tool-other-links {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .tool-other-links a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 18px;
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-text);
            text-decoration: none;
            transition: background 0.2s ease, transform 0.2s ease;
        }

        .tool-other-links a:hover {
            background: #ececec;
            transform: translateY(-1px);
        }

        .tool-cta-section {
            max-width: 620px;
            margin: 0 auto 48px;
            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-bottom: 28px;
        }

        .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);
        }

        /* =====================================================
           RESPONSIVE
           ===================================================== */

        @media (max-width: 640px) {
            .tool-main {
                padding: 56px 0 80px;
            }

            .tool-header {
                margin-bottom: 28px;
            }

            .tool-header h1 {
                font-size: 1.95rem;
            }

            .tool-header p {
                font-size: 0.95rem;
            }

            .tool-calc-card {
                padding: 22px 18px;
            }

            .tool-result-hero {
                padding: 28px 22px;
            }

            .result-tier-label {
                font-size: 2.8rem;
            }

            .comparison-card,
            .tool-formula {
                padding: 24px 20px;
            }

            .tool-ref-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .result-insights {
                grid-template-columns: 1fr;
            }

            .tool-cta-section {
                padding: 32px 22px;
            }

            .tool-cta-section h2 {
                font-size: 1.35rem;
            }
        }

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