/* ==========================================================================
   RPE TRAINING - DESIGN SYSTEM
   Color palette: Blood Red (Iron) + Chalk White
   Redesigned March 2026 — domain-native color world
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */

.rpe-app {
    /* === BRAND === */
    --rpe-brand:          #C41230;   /* Blood Red — maximum effort, primary CTA */
    --rpe-brand-deep:     #9E0F26;   /* Hover / pressed state */
    --rpe-brand-wash:     rgba(196, 18, 48, 0.08);  /* Tinted surfaces */
    --rpe-brand-rim:      rgba(196, 18, 48, 0.20);  /* Borders on brand-washed surfaces */

    /* Legacy alias — keep backward compat for calculator templates */
    --rpe-primary: #C41230;
    --rpe-primary-hover: #9E0F26;
    --rpe-primary-active: #8a0a1c;
    --rpe-primary-light: rgba(196, 18, 48, 0.08);
    --rpe-primary-soft: rgba(196, 18, 48, 0.12);

    /* === CHART COLORS === */
    --rpe-chart-indigo: #4f46e5;
    --rpe-chart-indigo-light: #6366f1;
    --rpe-chart-tooltip-bg: #1e1b4b;

    --rpe-gold:           #D4860A;   /* Platform Amber — achievement, PR, elite badge */
    --rpe-gold-wash:      rgba(212, 134, 10, 0.10);

    --rpe-teal:           #1A8A7A;   /* Recovery — deload, readiness, rest */
    --rpe-teal-wash:      rgba(26, 138, 122, 0.10);

    /* === SURFACE (elevation model) === */
    --rpe-bg:             #FFFFFF;   /* White — page background (level 0) */
    --rpe-surface-1:      #FFFFFF;   /* Cards, inputs (level 1) */
    --rpe-surface-2:      #EDE9E2;   /* Chalk Dust — nested surfaces, table alt rows (level 2) */
    --rpe-surface-3:      #E2DDD5;   /* Deep nested, hover state (level 3) */

    /* Legacy surface aliases */
    --rpe-surface: #FFFFFF;

    /* === FOREGROUND === */
    --rpe-fg-1:           #1A1A1F;   /* Iron Black — headings, primary text */
    --rpe-fg-2:           #3D4148;   /* Body text */
    --rpe-fg-3:           #6B7080;   /* Platform Steel — secondary, meta, labels */
    --rpe-fg-4:           #9CA3AF;   /* Placeholder, muted — decorative use only */

    /* Legacy text aliases */
    --rpe-navy: #1A1A1F;
    --rpe-navy-light: #3D4148;
    --rpe-electric: #3B72C8;
    --rpe-electric-light: #5B8FE0;
    --rpe-text-primary: var(--rpe-fg-1);
    --rpe-text-secondary: var(--rpe-fg-2);
    --rpe-text-muted: var(--rpe-fg-3);

    /* === BORDER === */
    --rpe-border-1:       #DDD8CF;   /* Default card borders */
    --rpe-border-2:       #C8C2B8;   /* Strong borders, dividers */
    --rpe-border-focus:   #C41230;   /* Focus ring (brand red) */

    /* Legacy border aliases */
    --rpe-border: var(--rpe-border-1);
    --rpe-border-strong: var(--rpe-border-2);

    /* === EFFORT SPECTRUM (semantic — load-bearing meaning) === */
    --rpe-zone-6:         #2D9B4E;   /* RPE 6 — Recovery */
    --rpe-zone-7:         #2D9B4E;   /* RPE 7 — Comfortable */
    --rpe-zone-75:        #E8A020;   /* RPE 7.5 — Working */
    --rpe-zone-8:         #E8A020;   /* RPE 8 — Productive */
    --rpe-zone-85:        #D4580A;   /* RPE 8.5 — Hard */
    --rpe-zone-9:         #D4580A;   /* RPE 9 — Accumulating */
    --rpe-zone-95:        #C41230;   /* RPE 9.5 — Near-Max */
    --rpe-zone-10:        #C41230;   /* RPE 10 — Maximum */

    /* Zone wash variants for backgrounds */
    --rpe-zone-easy-wash:    rgba(45, 155, 78, 0.12);
    --rpe-zone-work-wash:    rgba(232, 160, 32, 0.12);
    --rpe-zone-hard-wash:    rgba(212, 88, 10, 0.12);
    --rpe-zone-max-wash:     rgba(196, 18, 48, 0.12);

    /* Legacy zone aliases */
    --rpe-zone-easy: #2D9B4E;
    --rpe-zone-moderate: #E8A020;
    --rpe-zone-hard: #D4580A;
    --rpe-zone-max: #C41230;

    /* === LEVEL BADGES (strength level classification) === */
    --rpe-level-beginner:    #9CA3AF;
    --rpe-level-novice:      #2D9B4E;
    --rpe-level-intermediate:#3B72C8;
    --rpe-level-proficient:  #7C3AED;
    --rpe-level-advanced:    #C41230;
    --rpe-level-exceptional: #B45309;
    --rpe-level-elite:       #D4860A;

    /* === STATUS === */
    --rpe-success: #2D9B4E;
    --rpe-success-light: rgba(45, 155, 78, 0.10);
    --rpe-warning: #E8A020;
    --rpe-warning-light: rgba(232, 160, 32, 0.10);
    --rpe-error: #C41230;
    --rpe-error-light: rgba(196, 18, 48, 0.08);
    --rpe-info: #3B72C8;

    /* === LEGACY COLOR ALIASES (keep calculator templates working) === */
    --rpe-accent: #D4860A;
    --rpe-accent-hover: #B5720A;
    --rpe-accent-light: rgba(212, 134, 10, 0.08);
    --rpe-accent-soft: rgba(212, 134, 10, 0.12);
    --rpe-danger: #C41230;
    --rpe-green: #2D9B4E;
    --rpe-green-soft: rgba(45, 155, 78, 0.10);
    --rpe-green-400: #4ade80;
    --rpe-green-500: #2D9B4E;
    --rpe-green-600: #2D9B4E;
    --rpe-green-700: #15803D;
    --rpe-cta: var(--rpe-brand);
    --rpe-cta-hover: var(--rpe-brand-deep);
    --rpe-cta-light: var(--rpe-brand-wash);

    /* === GRAY SCALE (warm-toned to match chalk world) === */
    --rpe-gray-50:  #F5F2ED;
    --rpe-gray-100: #EDE9E2;
    --rpe-gray-200: #DDD8CF;
    --rpe-gray-300: #C8C2B8;
    --rpe-gray-400: #9CA3AF;
    --rpe-gray-500: #6B7080;
    --rpe-gray-600: #4A5060;
    --rpe-gray-700: #3D4148;
    --rpe-gray-800: #2A2D35;
    --rpe-gray-900: #1A1A1F;

    /* --- Typography --- */
    --rpe-font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rpe-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --rpe-font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

    /* --- Font Sizes --- */
    --rpe-fs-2xs: 0.6875rem;
    --rpe-fs-xs: 0.75rem;
    --rpe-fs-sm: 0.875rem;
    --rpe-fs-15: 0.9375rem;
    --rpe-fs-base: 1rem;
    --rpe-fs-md: 1.125rem;
    --rpe-fs-lg: 1.25rem;
    --rpe-fs-xl: 1.5rem;
    --rpe-fs-2xl: 1.875rem;
    --rpe-fs-3xl: 2.25rem;

    /* --- Font Weights --- */
    --rpe-weight-normal: 400;
    --rpe-weight-medium: 500;
    --rpe-weight-semibold: 600;
    --rpe-weight-bold: 700;
    --rpe-weight-extrabold: 800;

    /* --- Spacing (4px base) --- */
    --rpe-space-px:   1px;
    --rpe-space-0-5:  0.125rem;  /* 2px */
    --rpe-space-1: 0.25rem;      /* 4px */
    --rpe-space-1-5: 0.375rem;   /* 6px */
    --rpe-space-2: 0.5rem;       /* 8px */
    --rpe-space-3: 0.75rem;      /* 12px */
    --rpe-space-4: 1rem;         /* 16px */
    --rpe-space-5: 1.25rem;      /* 20px */
    --rpe-space-6: 1.5rem;       /* 24px */
    --rpe-space-8: 2rem;         /* 32px */
    --rpe-space-10: 2.5rem;      /* 40px */
    --rpe-space-12: 3rem;        /* 48px */
    --rpe-space-16: 4rem;        /* 64px */
    --rpe-space-20: 5rem;        /* 80px */
    --rpe-space-24: 6rem;        /* 96px */

    /* --- Border Radius (restrained geometry — max 12px for cards) --- */
    --rpe-radius-sm: 4px;    /* Badges, tags, chips */
    --rpe-radius: 8px;       /* Inputs, buttons, small cards */
    --rpe-radius-md: 12px;   /* Standard cards */
    --rpe-radius-lg: 12px;   /* Large cards (capped at 12px per design) */
    --rpe-radius-xl: 16px;   /* Modal, overlay panels */
    --rpe-radius-2xl: 20px;  /* Largest panels */
    --rpe-radius-full: 9999px; /* Pills, toggles */

    /* --- Shadows --- */
    --rpe-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --rpe-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --rpe-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --rpe-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);

    /* --- Transitions --- */
    --rpe-transition-fast: 150ms;
    --rpe-transition: 150ms ease;
    --rpe-transition-normal: 200ms;
    --rpe-transition-slow: 300ms ease;
    --rpe-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --rpe-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --rpe-stagger: 60ms;

    /* --- Focus --- */
    --rpe-focus-ring-color: var(--rpe-brand);
    --rpe-focus-ring-width: 2px;
    --rpe-focus-ring-offset: 2px;

    /* --- Container --- */
    --rpe-container: 1200px;

    /* --- Shadows (floating elements only — no decorative card shadows) --- */
    /* Note: --rpe-shadow-sm/md/lg defined above; float/overlay for modals/dropdowns */
    --rpe-shadow-float: 0 4px 16px rgba(26, 26, 31, 0.10);
    --rpe-shadow-overlay: 0 16px 64px rgba(26, 26, 31, 0.18);

    /* --- Base styles --- */
    font-family: var(--rpe-font-body) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--rpe-fg-1) !important;
    background-color: #FFFFFF !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Isolate from theme padding/margins */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force white background regardless of WordPress theme container */
.entry-content .rpe-app,
.post-content .rpe-app,
article .rpe-app,
.wp-block-post-content .rpe-app,
.site-content .rpe-app,
.s-ct .rpe-app,
.page-content .rpe-app,
.entry-content.rbct .rpe-app {
    background-color: #FFFFFF !important;
    min-height: 100vh;
}

/* Force Foxiz theme page containers to white when RPE plugin is active */
body.page-template-page-app-fullwidth-breadcrumb .s-ct,
body.page-template-page-app-fullwidth-breadcrumb .page-content,
body.page-template-page-app-fullwidth-breadcrumb .entry-content.rbct,
body.page-template-page-app-fullwidth-breadcrumb .site-outer {
    background-color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   1b. BASE RESETS (inside .rpe-app scope)
   -------------------------------------------------------------------------- */

.rpe-app *,
.rpe-app *::before,
.rpe-app *::after {
    box-sizing: border-box;
}

.rpe-app img,
.rpe-app video {
    max-width: 100%;
    height: auto;
}

/* Anchor reset - override WordPress theme link styles */
.rpe-app a,
.rpe-app a:hover,
.rpe-app a:focus,
.rpe-app a:visited,
.entry-content .rpe-app a {
    text-decoration: none !important;
}
.rpe-app a {
    color: var(--rpe-primary);
    transition: color var(--rpe-transition);
}
.rpe-app a:hover {
    color: var(--rpe-primary-hover);
}

/* Typography system - override WordPress theme, establish hierarchy */
.rpe-app h1,
.rpe-app h2,
.rpe-app h3,
.rpe-app h4,
.rpe-app h5,
.rpe-app h6,
.entry-content .rpe-app h1,
.entry-content .rpe-app h2,
.entry-content .rpe-app h3,
.entry-content .rpe-app h4,
.entry-content .rpe-app h5,
.entry-content .rpe-app h6,
article .rpe-app h1,
article .rpe-app h2,
article .rpe-app h3 {
    font-family: var(--rpe-font-heading) !important;
    color: var(--rpe-text-primary) !important;
    margin: 0 0 var(--rpe-space-2) !important;
    padding: 0 !important;
    letter-spacing: -0.02em;
    border: none !important;
    background: none !important;
    text-transform: none !important;
}
.rpe-app h1 { font-size: var(--rpe-fs-2xl) !important; font-weight: 800 !important; line-height: 1.15 !important; letter-spacing: -0.03em; }
.rpe-app h2 { font-size: var(--rpe-fs-xl) !important; font-weight: 700 !important; line-height: 1.2 !important; }
.rpe-app h3 { font-size: var(--rpe-fs-lg) !important; font-weight: 700 !important; line-height: 1.3 !important; }
.rpe-app h4 { font-size: var(--rpe-fs-md) !important; font-weight: 600 !important; line-height: 1.35 !important; }

.rpe-app p,
.entry-content .rpe-app p,
article .rpe-app p {
    margin: 0 0 var(--rpe-space-3) !important;
    padding: 0 !important;
    line-height: 1.6 !important;
}
.rpe-app ul, .rpe-app ol,
.entry-content .rpe-app ul,
.entry-content .rpe-app ol,
article .rpe-app ul,
article .rpe-app ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Restore list styles for prose content */
.rpe-seo-content ul,
.rpe-seo-content ol,
.rpe-faq-answer ul,
.rpe-faq-answer ol {
    list-style: disc;
    padding-left: var(--rpe-space-5);
    margin-bottom: var(--rpe-space-4);
}
.rpe-seo-content p,
.rpe-faq-answer p {
    margin-bottom: var(--rpe-space-3);
}

/* Button reset - prevent WordPress theme button interference.
   Use :not() to exclude styled button classes from the generic reset. */
.rpe-app button:not(.rpe-btn):not(.rpe-btn-primary):not(.rpe-btn-secondary):not(.rpe-btn-cta):not(.rpe-btn-outline):not(.rpe-btn-calculate):not(.rpe-pill):not(.rpe-tab-btn):not(.rpe-unit-btn):not([type="submit"]) {
    font-family: var(--rpe-font-body);
    background: transparent;
    color: inherit;
    cursor: pointer;
    margin: 0;
    line-height: inherit;
    text-transform: none;
    letter-spacing: normal;
    border: none;
    outline: none;
    text-decoration: none;
}
/* Theme-specific overrides for FitnessVolt (same :not() pattern) */
.entry-content .rpe-app button:not(.rpe-btn):not(.rpe-btn-primary):not(.rpe-btn-secondary):not(.rpe-btn-cta):not(.rpe-btn-outline):not(.rpe-btn-calculate):not(.rpe-pill):not(.rpe-tab-btn):not(.rpe-unit-btn):not([type="submit"]),
.post-content .rpe-app button:not(.rpe-btn):not(.rpe-btn-calculate):not(.rpe-pill):not(.rpe-tab-btn):not(.rpe-unit-btn):not([type="submit"]),
article .rpe-app button:not(.rpe-btn):not(.rpe-btn-calculate):not(.rpe-pill):not(.rpe-tab-btn):not(.rpe-unit-btn):not([type="submit"]) {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    text-transform: none !important;
    border: none !important;
    text-decoration: none !important;
}

/* Catch-all: style ALL inputs/selects/textareas inside .rpe-app even without explicit classes */
.rpe-app input[type="text"],
.rpe-app input[type="number"],
.rpe-app input[type="email"],
.rpe-app input[type="password"],
.rpe-app input[type="search"],
.rpe-app input[type="tel"],
.rpe-app input[type="url"],
.rpe-app input[type="date"],
.rpe-app select,
.rpe-app textarea,
.entry-content .rpe-app input[type="text"],
.entry-content .rpe-app input[type="number"],
.entry-content .rpe-app input[type="email"],
.entry-content .rpe-app input[type="password"],
.entry-content .rpe-app select,
.entry-content .rpe-app textarea {
    width: 100% !important;
    padding: var(--rpe-space-3) var(--rpe-space-4) !important;
    font-family: var(--rpe-font-body) !important;
    font-size: var(--rpe-fs-15) !important;
    color: var(--rpe-text-primary) !important;
    background: var(--rpe-surface) !important;
    border: 1px solid var(--rpe-border-1) !important;
    border-radius: var(--rpe-radius-sm) !important;
    transition: all var(--rpe-transition);
    min-height: 44px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    outline: none;
    line-height: 1.5 !important;
    -webkit-appearance: none;
    margin: 0 !important;
}
.rpe-app input[type="text"]:focus,
.rpe-app input[type="number"]:focus,
.rpe-app input[type="email"]:focus,
.rpe-app input[type="password"]:focus,
.rpe-app input[type="search"]:focus,
.rpe-app input[type="date"]:focus,
.rpe-app select:focus,
.rpe-app textarea:focus {
    outline: none !important;
    border-color: var(--rpe-primary) !important;
    box-shadow: 0 0 0 3px var(--rpe-primary-light) !important;
}
.rpe-app select,
.entry-content .rpe-app select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b7585' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-color: var(--rpe-surface) !important;
    padding-right: 40px !important;
    cursor: pointer;
}
.rpe-app input::placeholder {
    color: var(--rpe-text-muted);
}

/* Catch-all: style ALL submit/action buttons inside .rpe-app */
.rpe-app input[type="submit"],
.rpe-app button[type="submit"],
.entry-content .rpe-app input[type="submit"],
.entry-content .rpe-app button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-3) var(--rpe-space-6) !important;
    font-family: var(--rpe-font-body) !important;
    font-size: var(--rpe-fs-sm) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    border: none !important;
    border-radius: var(--rpe-radius) !important;
    cursor: pointer;
    transition: all var(--rpe-transition);
    white-space: nowrap;
    min-height: 44px !important;
    background: var(--rpe-primary) !important;
    color: var(--rpe-surface-1) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    width: auto !important;
}
.rpe-app input[type="submit"]:hover,
.rpe-app button[type="submit"]:hover {
    background: var(--rpe-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.25) !important;
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }


/* Screen reader only */
.rpe-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ARIA live region */
.rpe-live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --------------------------------------------------------------------------
   2. LAYOUT
   -------------------------------------------------------------------------- */

.rpe-container {
    max-width: var(--rpe-container);
    margin: 0 auto;
    padding: 0 var(--rpe-space-4);
}
@media (max-width: 480px) {
    .rpe-container { padding: 0 var(--rpe-space-2); }
}
@media (min-width: 640px) {
    .rpe-container { padding: 0 var(--rpe-space-6); }
}

.rpe-main {
    min-height: calc(100vh - 200px);
    padding-top: var(--rpe-space-6);
    padding-bottom: var(--rpe-space-16);
    background: var(--rpe-bg);
}
@media (max-width: 768px) {
    .rpe-main { padding-top: var(--rpe-space-4); }
}

/* --------------------------------------------------------------------------
   3. NAVIGATION
   -------------------------------------------------------------------------- */

.rpe-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rpe-border) !important;
    border-top: none !important;
    padding: 0 var(--rpe-space-4) !important;
    margin: 0 !important;
}

.rpe-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: var(--rpe-space-4);
}

/* Logo */
.rpe-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-2);
    text-decoration: none;
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-lg);
    font-weight: 800;
    color: var(--rpe-navy);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.rpe-nav-logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rpe-brand-accent {
    color: var(--rpe-primary);
}

/* Desktop nav links */
.rpe-nav-links {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-1);
}
@media (max-width: 768px) {
    .rpe-nav-links { display: none; }
}

.rpe-nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-1);
    padding: var(--rpe-space-2) var(--rpe-space-3);
    font-size: var(--rpe-fs-sm);
    font-weight: 500;
    color: var(--rpe-text-secondary);
    text-decoration: none;
    border-radius: var(--rpe-radius);
    transition: all var(--rpe-transition);
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}
.rpe-nav-link:hover {
    color: var(--rpe-text-primary);
    background: var(--rpe-gray-50);
}
.rpe-nav-link-active {
    color: var(--rpe-primary);
    font-weight: 600;
}
.rpe-nav-group-active {
    color: var(--rpe-primary);
    font-weight: 600;
}
.rpe-nav-dropdown-item.rpe-nav-link-active {
    color: var(--rpe-primary);
    font-weight: 600;
    background: var(--rpe-gray-50);
}

.rpe-nav-dropdown-trigger svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Dropdown */
.rpe-nav-dropdown { position: relative; }
.rpe-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    box-shadow: var(--rpe-shadow-lg);
    padding: var(--rpe-space-2);
    z-index: 50;
}
.rpe-nav-dropdown-item {
    display: block;
    padding: var(--rpe-space-2) var(--rpe-space-3);
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-secondary);
    text-decoration: none;
    border-radius: var(--rpe-radius-sm);
    transition: all var(--rpe-transition);
}
.rpe-nav-dropdown-item:hover {
    background: var(--rpe-gray-50);
    color: var(--rpe-text-primary);
}

/* Nav actions (right side) */
.rpe-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-2);
    flex-shrink: 0;
}

/* Unit toggle in nav */
.rpe-unit-toggle {
    display: flex;
    background: var(--rpe-gray-100);
    border-radius: var(--rpe-radius-full);
    padding: 2px;
}
.rpe-unit-btn {
    padding: var(--rpe-space-1) var(--rpe-space-3);
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    border: none;
    border-radius: var(--rpe-radius-full);
    cursor: pointer;
    transition: all var(--rpe-transition);
    font-family: inherit;
    background: transparent;
    color: var(--rpe-text-muted);
}
.rpe-unit-btn-active {
    background: var(--rpe-surface);
    color: var(--rpe-text-primary);
    box-shadow: var(--rpe-shadow-sm);
}

/* Hidden radio input - visually hidden but functionally present for accessibility */
.rpe-radio-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Unit toggle row - compact, right-aligned inside form card */
.rpe-unit-toggle-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--rpe-space-2);
    margin-top: var(--rpe-space-2);
}

/* Hamburger */
.rpe-nav-hamburger {
    display: none;
    padding: var(--rpe-space-2);
    background: none;
    border: none;
    cursor: pointer;
}
@media (max-width: 768px) {
    .rpe-nav-hamburger { display: flex; }
}
.rpe-nav-hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}
.rpe-nav-hamburger-icon span {
    display: block;
    height: 2px;
    background: var(--rpe-text-primary);
    border-radius: 1px;
    transition: all var(--rpe-transition);
}

/* Mobile menu */
.rpe-nav-mobile {
    border-top: 1px solid var(--rpe-border);
    padding: var(--rpe-space-4);
    background: var(--rpe-surface);
    max-height: 80vh;
    overflow-y: auto;
}
.rpe-nav-mobile-group {
    margin-bottom: var(--rpe-space-4);
}
.rpe-nav-mobile-group-label {
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    color: var(--rpe-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--rpe-space-2);
}
.rpe-nav-mobile-link {
    display: block;
    padding: var(--rpe-space-2) var(--rpe-space-3);
    font-size: var(--rpe-fs-15);
    color: var(--rpe-text-secondary);
    text-decoration: none;
    border-radius: var(--rpe-radius-sm);
}
.rpe-nav-mobile-link:hover,
.rpe-nav-mobile-link.rpe-nav-link-active {
    background: var(--rpe-gray-50);
    color: var(--rpe-primary);
}

/* --------------------------------------------------------------------------
   4. FOOTER
   -------------------------------------------------------------------------- */

.rpe-footer {
    background: var(--rpe-navy) !important;
    padding: var(--rpe-space-4) 0 !important;
    margin: 0 !important;
    border: none !important;
}
.rpe-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--rpe-space-4);
}
.rpe-footer-brand {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-sm);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.rpe-footer-links {
    display: flex;
    gap: var(--rpe-space-4);
    flex-wrap: wrap;
}
.rpe-footer-links a {
    font-size: var(--rpe-fs-xs);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--rpe-transition);
}
.rpe-footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.rpe-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-3) var(--rpe-space-6) !important;
    font-family: var(--rpe-font-body) !important;
    font-size: var(--rpe-fs-sm) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    border: none !important;
    border-radius: var(--rpe-radius) !important;
    cursor: pointer;
    transition: all var(--rpe-transition);
    text-decoration: none !important;
    white-space: nowrap;
    min-height: 44px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.rpe-btn:focus-visible {
    outline: var(--rpe-focus-ring-width) solid var(--rpe-focus-ring-color);
    outline-offset: var(--rpe-focus-ring-offset);
}

.rpe-btn-primary {
    background: var(--rpe-primary) !important;
    color: var(--rpe-surface-1) !important;
    box-shadow: none;
}
.rpe-btn-primary:hover {
    background: var(--rpe-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.25) !important;
}

.rpe-btn-cta {
    background: var(--rpe-accent) !important;
    color: var(--rpe-surface-1) !important;
}
.rpe-btn-cta:hover {
    background: var(--rpe-accent-hover) !important;
    transform: translateY(-1px);
}

.rpe-btn-secondary {
    background: var(--rpe-gray-100) !important;
    color: var(--rpe-text-primary) !important;
}
.rpe-btn-secondary:hover {
    background: var(--rpe-gray-200) !important;
}

.rpe-btn-outline {
    background: transparent !important;
    border: 1.5px solid var(--rpe-border-strong) !important;
    color: var(--rpe-text-secondary) !important;
}
.rpe-btn-outline:hover {
    border-color: var(--rpe-primary) !important;
    color: var(--rpe-primary) !important;
    background: var(--rpe-primary-light) !important;
}

.rpe-btn-ghost {
    background: transparent !important;
    color: var(--rpe-text-secondary) !important;
    padding: var(--rpe-space-2) var(--rpe-space-3) !important;
}
.rpe-btn-ghost:hover {
    background: var(--rpe-gray-50) !important;
    color: var(--rpe-text-primary) !important;
}

.rpe-btn-sm { padding: var(--rpe-space-1-5) var(--rpe-space-4) !important; font-size: var(--rpe-fs-xs) !important; min-height: 34px !important; }
.rpe-btn-lg { padding: var(--rpe-space-4) var(--rpe-space-8) !important; font-size: var(--rpe-fs-base) !important; min-height: 50px !important; }
.rpe-w-full { width: 100% !important; }

.rpe-btn:disabled, .rpe-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Unit toggle active state override */
.rpe-unit-btn-active {
    background: var(--rpe-surface) !important;
    color: var(--rpe-text-primary) !important;
    box-shadow: var(--rpe-shadow-sm) !important;
}

/* Loading spinner in button */
.rpe-btn .rpe-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--rpe-surface-1);
    border-radius: var(--rpe-radius-full);
    animation: rpe-spin 0.6s linear infinite;
}
@keyframes rpe-spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   6. FORMS
   -------------------------------------------------------------------------- */

.rpe-input, .rpe-select, .rpe-textarea {
    width: 100%;
    padding: var(--rpe-space-3) var(--rpe-space-4);
    font-family: var(--rpe-font-body);
    font-size: var(--rpe-fs-15);
    color: var(--rpe-text-primary);
    background: var(--rpe-surface);
    border: 1.5px solid var(--rpe-border);
    border-radius: var(--rpe-radius);
    transition: border-color var(--rpe-transition), box-shadow var(--rpe-transition);
    min-height: 46px;
}
.rpe-input:focus, .rpe-select:focus, .rpe-textarea:focus {
    outline: none;
    border-color: var(--rpe-primary);
    box-shadow: 0 0 0 3px var(--rpe-primary-light);
}
.rpe-input::placeholder {
    color: var(--rpe-text-muted);
}

/* Select - custom dropdown arrow */
.rpe-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%236b7585' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}

/* Textarea */
.rpe-textarea {
    resize: vertical;
    min-height: 80px;
}

@media (max-width: 768px) {
    .rpe-input, .rpe-select { font-size: 16px; } /* prevent iOS zoom */
}

/* Form row - horizontal label + input pairs */
.rpe-form-row {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-5);
}
@media (min-width: 640px) {
    .rpe-form-row {
        flex-direction: row;
        align-items: flex-end;
    }
    .rpe-form-row > * { flex: 1; }
}

.rpe-label,
.rpe-app label {
    display: block !important;
    font-size: var(--rpe-fs-sm) !important;
    font-weight: 600 !important;
    color: var(--rpe-fg-1) !important;
    margin: 0 0 var(--rpe-space-2) 0 !important;
    padding: 0 !important;
    font-family: var(--rpe-font-body) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em;
}

.rpe-input-group {
    position: relative;
}
.rpe-input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
    color: var(--rpe-text-muted);
    pointer-events: none;
}
.rpe-input-group .rpe-input {
    padding-right: 48px;
}

/* Radio pill group (Male/Female, lb/kg toggles) */
.rpe-pill-group {
    display: inline-flex !important;
    background: var(--rpe-gray-100) !important;
    border-radius: var(--rpe-radius) !important;
    padding: 3px !important;
    gap: 2px !important;
}
.rpe-pill {
    flex: 1;
    padding: 10px 18px !important;
    font-size: var(--rpe-fs-sm) !important;
    font-weight: 500 !important;
    text-align: center;
    border: none !important;
    border-radius: calc(var(--rpe-radius) - 2px) !important;
    cursor: pointer;
    transition: all var(--rpe-transition);
    font-family: var(--rpe-font-body) !important;
    background: transparent !important;
    color: var(--rpe-text-muted) !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    box-shadow: none !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}
.rpe-pill-active {
    background: var(--rpe-surface) !important;
    color: var(--rpe-text-primary) !important;
    font-weight: 600 !important;
    box-shadow: var(--rpe-shadow-sm) !important;
}

/* Pill row - horizontal tab-like layout for filter buttons */
.rpe-pill-row {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 2px;
    background: var(--rpe-gray-100);
    border-radius: var(--rpe-radius);
    padding: 3px;
    margin-bottom: var(--rpe-space-4);
}
.rpe-pill--compact {
    padding: 8px 16px !important;
    font-size: var(--rpe-fs-sm) !important;
    min-height: 36px !important;
}

/* Card header row - title + action button side by side */
.rpe-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rpe-space-3);
    flex-wrap: wrap;
    margin-bottom: var(--rpe-space-3);
}
.rpe-section-heading--flush {
    margin-bottom: 0;
}

/* Tab bar */
.rpe-tab-bar {
    display: flex;
    border-bottom: 1px solid var(--rpe-gray-200);
    margin-bottom: var(--rpe-space-6);
    overflow-x: auto;
    gap: 0;
}
.rpe-tab-btn {
    padding: var(--rpe-space-3) var(--rpe-space-4) !important;
    font-size: var(--rpe-fs-sm);
    font-weight: 500;
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: var(--rpe-gray-500) !important;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--rpe-transition), border-color var(--rpe-transition);
}
.rpe-tab-btn:hover {
    color: var(--rpe-text-primary) !important;
}
.rpe-tab-btn-active {
    border-bottom-color: var(--rpe-primary) !important;
    color: var(--rpe-primary) !important;
}
.entry-content .rpe-app .rpe-tab-btn {
    background: none !important;
    color: var(--rpe-gray-500) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    box-shadow: none !important;
}
.entry-content .rpe-app .rpe-tab-btn-active {
    border-bottom-color: var(--rpe-primary) !important;
    color: var(--rpe-primary) !important;
}

/* RPE Slider */
.rpe-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--rpe-radius-sm);
    background: var(--rpe-gray-200);
    outline: none;
}
.rpe-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: var(--rpe-radius-full);
    background: var(--rpe-surface-1);
    border: 3px solid var(--rpe-primary);
    cursor: pointer;
    box-shadow: var(--rpe-shadow-md);
}
.rpe-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: var(--rpe-radius-full);
    background: var(--rpe-surface-1);
    border: 3px solid var(--rpe-primary);
    cursor: pointer;
    box-shadow: var(--rpe-shadow-md);
}

/* --------------------------------------------------------------------------
   7. CARDS
   -------------------------------------------------------------------------- */

.rpe-card {
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    padding: var(--rpe-space-6) var(--rpe-space-8);
    box-shadow: var(--rpe-shadow);
    transition: border-color var(--rpe-transition), box-shadow var(--rpe-transition);
}
.rpe-card:hover {
    border-color: var(--rpe-border-strong);
}

/* Card with explicit sections - remove card-level padding */
.rpe-card:has(.rpe-card-header),
.rpe-card:has(.rpe-card-body) {
    padding: 0;
}
.rpe-card-header {
    padding: var(--rpe-space-5) var(--rpe-space-8);
    border-bottom: 1px solid var(--rpe-border);
}
.rpe-card-body {
    padding: var(--rpe-space-6) var(--rpe-space-8);
}
.rpe-card-footer {
    padding: var(--rpe-space-5) var(--rpe-space-8);
    border-top: 1px solid var(--rpe-border);
    background: var(--rpe-gray-50);
    border-radius: 0 0 var(--rpe-radius-lg) var(--rpe-radius-lg);
}

/* Link card (hover effect) */
.rpe-card--link {
    cursor: pointer;
    transition: all var(--rpe-transition-slow);
}
.rpe-card--link:hover {
    border-color: var(--rpe-primary);
    box-shadow: var(--rpe-shadow-md);
    transform: translateY(-2px);
}

/* Calculator card (hub page) */
.rpe-calc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--rpe-space-6) var(--rpe-space-4);
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    text-decoration: none;
    transition: all var(--rpe-transition-slow);
    cursor: pointer;
}
.rpe-calc-card:hover {
    border-color: var(--rpe-primary);
    box-shadow: var(--rpe-shadow-md);
    transform: translateY(-3px);
}
.rpe-calc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rpe-primary-light);
    border-radius: var(--rpe-radius);
    margin-bottom: var(--rpe-space-3);
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.15);
    transition: all var(--rpe-transition);
}
.rpe-calc-icon svg {
    width: 22px;
    height: 22px;
    color: var(--rpe-primary);
}
.rpe-calc-card:hover .rpe-calc-icon {
    background: var(--rpe-primary);
    box-shadow: 0 6px 16px rgba(190, 18, 60, 0.3);
}
.rpe-calc-card:hover .rpe-calc-icon svg {
    color: var(--rpe-surface-1);
}
.rpe-calc-name {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-15);
    font-weight: 600;
    color: var(--rpe-text-primary);
    margin-bottom: var(--rpe-space-1);
}
.rpe-calc-desc {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    line-height: 1.5;
}

/* Related card */
.rpe-related-card {
    display: flex;
    align-items: flex-start;
    gap: var(--rpe-space-3);
    padding: var(--rpe-space-4);
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    text-decoration: none;
    transition: all var(--rpe-transition);
}
.rpe-related-card:hover {
    border-color: var(--rpe-primary);
    background: var(--rpe-primary-light);
}
.rpe-related-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rpe-gray-100);
    border-radius: var(--rpe-radius);
}
.rpe-related-icon svg {
    width: 20px;
    height: 20px;
    color: var(--rpe-gray-500);
}
.rpe-related-name {
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
    color: var(--rpe-text-primary);
}
.rpe-related-desc {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
}

/* Result card (hero display for calculator output) */
.rpe-result-card {
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    padding: var(--rpe-space-10);
    text-align: center;
    animation: rpe-resultReveal 0.5s var(--rpe-ease-out);
}
@keyframes rpe-resultReveal {
    0% { opacity: 0; transform: scale(0.95); }
    60% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}
.rpe-result-label {
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    color: var(--rpe-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--rpe-space-1);
}
.rpe-result-value {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-3xl);
    font-weight: 800;
    color: var(--rpe-primary);
    letter-spacing: -0.02em;
}
.rpe-result-unit {
    font-size: var(--rpe-fs-lg);
    font-weight: 600;
    color: var(--rpe-text-muted);
    margin-left: var(--rpe-space-1);
}

/* --------------------------------------------------------------------------
   8. TABLES
   -------------------------------------------------------------------------- */

.rpe-table-container {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.rpe-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rpe-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--rpe-fs-sm);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius);
    overflow: hidden;
}
.rpe-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}
.rpe-table th {
    padding: var(--rpe-space-3) var(--rpe-space-4);
    font-size: var(--rpe-fs-xs);
    font-weight: var(--rpe-weight-semibold);
    color: var(--rpe-surface-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    background: var(--rpe-navy);
    border-bottom: 2px solid var(--rpe-primary);
    white-space: nowrap;
}
.rpe-table td {
    padding: var(--rpe-space-3) var(--rpe-space-4);
    color: var(--rpe-text-primary);
    border-bottom: 1px solid var(--rpe-border);
    vertical-align: middle;
}
.rpe-table tbody tr:nth-child(even) td {
    background: var(--rpe-gray-50);
}
.rpe-table tbody tr:hover td {
    background: var(--rpe-primary-light);
}
.rpe-table tbody tr:last-child td {
    border-bottom: none;
}
.rpe-col-numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: var(--rpe-font-mono);
}

/* Highlighted row (e.g., current age in age-curve table) */
.rpe-table-highlight td {
    background: var(--rpe-primary-light);
    font-weight: 600;
}
.rpe-table-highlight td:first-child {
    border-left: 3px solid var(--rpe-primary);
}

/* Sortable columns */
.rpe-sortable { cursor: pointer; user-select: none; }
.rpe-sortable:hover { color: var(--rpe-primary); }
.rpe-sort-asc::after { content: ' \2191'; }
.rpe-sort-desc::after { content: ' \2193'; }

/* Responsive table -> card on mobile */
@media (max-width: 768px) {
    .rpe-table--responsive thead { display: none; }
    .rpe-table--responsive tbody tr {
        display: block;
        margin-bottom: var(--rpe-space-3);
        border: 1px solid var(--rpe-border);
        border-radius: var(--rpe-radius-md);
        padding: var(--rpe-space-3);
    }
    .rpe-table--responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--rpe-space-2) 0;
        border-bottom: 1px solid var(--rpe-gray-100);
    }
    .rpe-table--responsive td:last-child { border-bottom: none; }
    .rpe-table--responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: var(--rpe-fs-xs);
        color: var(--rpe-text-muted);
        text-transform: uppercase;
    }
}

/* --------------------------------------------------------------------------
   9. PAGE HEADERS
   -------------------------------------------------------------------------- */

.rpe-page-header {
    padding: var(--rpe-space-6) 0;
    border-bottom: 1px solid var(--rpe-border);
    margin-bottom: var(--rpe-space-8);
}

.rpe-page-header-dark {
    background: var(--rpe-surface-1);
    border-bottom: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    padding: var(--rpe-space-6) var(--rpe-space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--rpe-space-6);
}
/* Decorative accent line */
.rpe-page-header-dark::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rpe-primary);
    pointer-events: none;
}

.rpe-hero-text { position: relative; z-index: 1; }

.rpe-page-title {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-2xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}
.rpe-page-header-dark .rpe-page-title,
.rpe-app .rpe-page-header-dark h1 {
    color: var(--rpe-fg-1) !important;
}

.rpe-page-subtitle {
    font-size: var(--rpe-fs-15);
    margin: var(--rpe-space-2) 0 0 !important;
}
.rpe-page-header-dark .rpe-page-subtitle,
.rpe-app .rpe-page-header-dark p {
    color: var(--rpe-fg-3) !important;
}

/* Breadcrumbs - above nav bar, matching strongman theme-level style */
.rpe-app .rpe-breadcrumbs {
    padding: var(--rpe-space-2) var(--rpe-space-4);
    margin: 0 !important;
    display: block !important;
    background: none !important;
    border: none !important;
}
.rpe-app .rpe-breadcrumbs ol {
    max-width: var(--rpe-container);
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
.rpe-app .rpe-breadcrumbs li {
    display: inline !important;
    font-size: 13px !important;
    color: var(--rpe-gray-500);
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    line-height: 1.5;
}
.rpe-app .rpe-breadcrumbs li::before {
    content: none !important;
}
.rpe-app .rpe-breadcrumbs li + li::before {
    content: '>' !important;
    margin: 0 6px !important;
    color: var(--rpe-gray-400);
    font-size: 12px;
    display: inline !important;
}
.rpe-app .rpe-breadcrumbs a {
    color: var(--rpe-gray-500) !important;
    font-weight: 400;
    transition: color var(--rpe-transition);
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}
.rpe-app .rpe-breadcrumbs a:hover {
    color: var(--rpe-primary) !important;
    text-decoration: underline !important;
}
.rpe-app .rpe-breadcrumbs [aria-current="page"] {
    color: var(--rpe-gray-500);
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   10. STATS STRIP
   -------------------------------------------------------------------------- */

.rpe-stats-strip {
    display: flex;
    align-items: stretch;
    gap: 1px;
    background: var(--rpe-border);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    overflow: hidden;
    margin-bottom: var(--rpe-space-6);
}
.rpe-stat-item {
    flex: 1;
    background: var(--rpe-surface);
    padding: var(--rpe-space-4) var(--rpe-space-5);
    text-align: center;
}
.rpe-stat-number {
    display: block;
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-xl);
    font-weight: 700;
    color: var(--rpe-text-primary);
}
.rpe-stat-label {
    display: block;
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    margin-top: var(--rpe-space-1);
}
@media (max-width: 768px) {
    .rpe-stats-strip { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   11. BADGES & TAGS
   -------------------------------------------------------------------------- */

.rpe-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: var(--rpe-fs-2xs);
    font-weight: 600;
    border-radius: var(--rpe-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rpe-badge-primary {
    background: var(--rpe-primary-soft);
    color: var(--rpe-primary);
}
.rpe-badge-success {
    background: var(--rpe-success-light);
    color: var(--rpe-green-700);
}
.rpe-badge-warning {
    background: var(--rpe-warning-light);
    color: var(--rpe-accent);
}
.rpe-badge-danger {
    background: var(--rpe-error-light);
    color: var(--rpe-error);
}

/* Category badges for hub cards */
.rpe-badge-calculate { background: var(--rpe-brand-wash); color: var(--rpe-primary); }
.rpe-badge-compete   { background: var(--rpe-gold-wash); color: var(--rpe-gold); }
.rpe-badge-analyze   { background: rgba(59,114,200,0.10); color: var(--rpe-electric); }
.rpe-badge-train     { background: var(--rpe-teal-wash); color: var(--rpe-teal); }

/* Tier badges for weight class / strength level */
.rpe-badge-tier-beginner     { background: var(--rpe-gray-100); color: var(--rpe-gray-700); }
.rpe-badge-tier-novice       { background: rgba(45,155,78,0.1); color: var(--rpe-level-novice); }
.rpe-badge-tier-intermediate { background: rgba(59,114,200,0.1); color: var(--rpe-level-intermediate); }
.rpe-badge-tier-proficient   { background: rgba(124,58,237,0.1); color: var(--rpe-level-proficient); }
.rpe-badge-tier-advanced     { background: rgba(196,18,48,0.1); color: var(--rpe-level-advanced); }
.rpe-badge-tier-exceptional  { background: rgba(180,83,9,0.1); color: var(--rpe-level-exceptional); }
.rpe-badge-tier-elite        { background: rgba(212,134,10,0.1); color: var(--rpe-level-elite); }
.rpe-badge-tier-worldclass   { background: rgba(212,134,10,0.15); color: var(--rpe-level-elite); }
.rpe-badge-tier-unknown      { background: var(--rpe-gray-100); color: var(--rpe-gray-500); }

/* RPE Zone badges */
.rpe-zone-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--rpe-space-0-5) var(--rpe-space-3);
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    border-radius: var(--rpe-radius-full);
}
.rpe-zone-easy { background: var(--rpe-zone-easy-wash); color: var(--rpe-zone-easy); }
.rpe-zone-moderate { background: var(--rpe-zone-work-wash); color: var(--rpe-zone-moderate); }
.rpe-zone-hard { background: var(--rpe-zone-hard-wash); color: var(--rpe-zone-hard); }
.rpe-zone-max { background: var(--rpe-zone-max-wash); color: var(--rpe-zone-max); }

/* --------------------------------------------------------------------------
   12. SECTION HEADINGS
   -------------------------------------------------------------------------- */

.rpe-section-heading {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-lg);
    font-weight: 700;
    color: var(--rpe-fg-1);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 var(--rpe-space-3);
}

/* --------------------------------------------------------------------------
   13. FAQ ACCORDION
   -------------------------------------------------------------------------- */

.rpe-faq-section {
    margin-top: var(--rpe-space-12);
}
.rpe-faq-list {
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    overflow: hidden;
}
.rpe-faq-item {
    border-bottom: 1px solid var(--rpe-border);
}
.rpe-faq-item:last-child { border-bottom: none; }
.rpe-faq-question {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: var(--rpe-space-4) var(--rpe-space-5) !important;
    font-family: var(--rpe-font-heading) !important;
    font-size: var(--rpe-fs-15) !important;
    font-weight: 600 !important;
    color: var(--rpe-text-primary) !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    text-align: left;
    transition: all var(--rpe-transition);
    min-height: 48px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.rpe-faq-question:hover { color: var(--rpe-primary); }
.rpe-faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform var(--rpe-transition-slow);
    color: var(--rpe-text-muted);
}
.rpe-faq-icon-open { transform: rotate(180deg); }
.rpe-faq-answer {
    padding: 0 var(--rpe-space-5) var(--rpe-space-5);
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. LOADING & SKELETONS
   -------------------------------------------------------------------------- */

.rpe-loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--rpe-space-12);
    gap: var(--rpe-space-3);
    color: var(--rpe-text-muted);
}
.rpe-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--rpe-gray-200);
    border-top-color: var(--rpe-primary);
    border-radius: 50%;
    animation: rpe-spin 0.6s linear infinite;
}

/* Prominent full-page loading state for auth-gated pages */
.rpe-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--rpe-space-16) var(--rpe-space-8);
    gap: var(--rpe-space-4);
    min-height: 240px;
}
.rpe-loading-state .rpe-loading-spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
}
.rpe-loading-state__text {
    font-size: var(--rpe-fs-base);
    color: var(--rpe-text-secondary);
    font-weight: 500;
    animation: rpe-pulse 1.8s ease-in-out infinite;
}
@keyframes rpe-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

.rpe-skeleton {
    background: var(--rpe-gray-100);
    border-radius: var(--rpe-radius-sm);
    animation: rpe-shimmer 1.5s infinite;
}
.rpe-skeleton-title { height: 24px; width: 60%; margin-bottom: var(--rpe-space-3); }
.rpe-skeleton-text { height: 16px; width: 80%; margin-bottom: var(--rpe-space-2); }
.rpe-skeleton-text-short { width: 40%; }
.rpe-skeleton-row { height: 48px; width: 100%; margin-bottom: var(--rpe-space-2); }

@keyframes rpe-shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   15. SEO CONTENT SECTION
   -------------------------------------------------------------------------- */

.rpe-seo-section {
    margin-top: var(--rpe-space-12);
    padding-top: var(--rpe-space-8);
    border-top: 1px solid var(--rpe-border);
}
.rpe-seo-heading {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-lg);
    font-weight: 700;
    color: var(--rpe-text-primary);
    margin: 0 0 var(--rpe-space-4);
}
.rpe-seo-content {
    font-size: var(--rpe-fs-15);
    color: var(--rpe-text-secondary);
    line-height: 1.7;
}
.rpe-seo-content h3 {
    font-size: var(--rpe-fs-md);
    font-weight: 700;
    color: var(--rpe-text-primary);
    margin: var(--rpe-space-6) 0 var(--rpe-space-3);
}
.rpe-seo-content p { margin: 0 0 var(--rpe-space-4); }
.rpe-seo-content ul { padding-left: var(--rpe-space-5); margin: 0 0 var(--rpe-space-4); }
.rpe-seo-content li { margin-bottom: var(--rpe-space-2); }

/* --------------------------------------------------------------------------
   16. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */

.rpe-toast {
    position: fixed;
    bottom: var(--rpe-space-6);
    right: var(--rpe-space-6);
    z-index: 10000;
    padding: var(--rpe-space-3) var(--rpe-space-5);
    border-radius: var(--rpe-radius);
    font-size: var(--rpe-fs-sm);
    font-weight: 500;
    color: var(--rpe-surface-1);
    box-shadow: var(--rpe-shadow-lg);
    animation: rpe-toastIn 0.25s ease;
}
.rpe-toast-success { background: var(--rpe-green-600); }
.rpe-toast-error { background: var(--rpe-error); }
.rpe-toast-info { background: var(--rpe-navy); }

@keyframes rpe-toastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   17. ANIMATIONS & UTILITIES
   -------------------------------------------------------------------------- */

/* Confidence bar */
.rpe-confidence-bar {
    height: 8px;
    background: var(--rpe-gray-100);
    border-radius: var(--rpe-radius-full);
    overflow: hidden;
}
.rpe-confidence-fill {
    height: 100%;
    border-radius: var(--rpe-radius-full);
    transition: width 0.5s var(--rpe-ease-out);
}
.rpe-confidence-high { background: var(--rpe-zone-easy); }
.rpe-confidence-medium { background: var(--rpe-zone-moderate); }
.rpe-confidence-low { background: var(--rpe-zone-max); }

/* Heat map cells */
.rpe-heat-1 { background: var(--rpe-zone-easy-wash); }
.rpe-heat-2 { background: rgba(45,155,78,0.20); }
.rpe-heat-3 { background: var(--rpe-zone-work-wash); }
.rpe-heat-4 { background: var(--rpe-zone-hard-wash); }
.rpe-heat-5 { background: var(--rpe-zone-max-wash); }

/* Highlight row/col/cell for RPE chart */
.rpe-highlight-row { background: var(--rpe-primary-light) !important; }
.rpe-highlight-col { background: var(--rpe-primary-light) !important; }
.rpe-highlight-cell {
    background: var(--rpe-primary) !important;
    color: white !important;
    font-weight: 700;
    border-radius: var(--rpe-radius-sm);
}

/* Set ladder */
.rpe-set-ladder {
    display: flex;
    align-items: flex-end;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-4);
}
.rpe-set-bar {
    flex: 1;
    background: var(--rpe-primary);
    border-radius: var(--rpe-radius-sm) var(--rpe-radius-sm) 0 0;
    min-width: 32px;
    position: relative;
    transition: height 0.3s var(--rpe-ease-out);
}
.rpe-set-bar-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    color: var(--rpe-text-primary);
    white-space: nowrap;
}

/* Plate visualization */
.rpe-plate-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: var(--rpe-space-4);
}
.rpe-bar-sleeve {
    display: flex;
    align-items: center;
    gap: 2px;
}
.rpe-bar-center {
    width: 120px;
    height: 12px;
    background: var(--rpe-gray-300);
    border-radius: 2px;
}
.rpe-plate-block {
    border-radius: 3px;
    min-width: 12px;
    width: 18px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.1);
}
/* Plate height by data-plate weight (lb) */
.rpe-plate-block[data-plate="45"]    { height: 76px; width: 22px; }
.rpe-plate-block[data-plate="35"]    { height: 64px; width: 20px; }
.rpe-plate-block[data-plate="25"]    { height: 52px; width: 18px; }
.rpe-plate-block[data-plate="10"]    { height: 40px; width: 16px; }
.rpe-plate-block[data-plate="5"]     { height: 32px; width: 14px; }
.rpe-plate-block[data-plate="2.5"]   { height: 24px; width: 12px; }
/* Plate height by data-plate weight (kg) */
.rpe-plate-block[data-plate="25kg"]  { height: 76px; width: 22px; }
.rpe-plate-block[data-plate="20kg"]  { height: 64px; width: 20px; }
.rpe-plate-block[data-plate="15kg"]  { height: 52px; width: 18px; }
.rpe-plate-block[data-plate="10kg"]  { height: 40px; width: 16px; }
.rpe-plate-block[data-plate="5kg"]   { height: 32px; width: 14px; }
.rpe-plate-block[data-plate="2.5kg"] { height: 24px; width: 12px; }
.rpe-plate-block[data-plate="1.25kg"]{ height: 20px; width: 10px; }

/* Grids */
.rpe-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--rpe-space-5); }
.rpe-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rpe-space-5); }
.rpe-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rpe-space-5); }
@media (max-width: 1024px) {
    .rpe-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .rpe-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .rpe-grid-2, .rpe-grid-3, .rpe-grid-4 { grid-template-columns: 1fr; }
}

/* QA filter grid: 4-column on desktop, single column on mobile */
.rpe-qa-filter-grid { display: grid; grid-template-columns: 1fr auto auto auto; gap: var(--rpe-space-3); align-items: end; }
@media (max-width: 640px) {
    .rpe-qa-filter-grid { grid-template-columns: 1fr; gap: var(--rpe-space-4); }
}

/* Stat cards (results grid) */
.rpe-stat-card {
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    padding: var(--rpe-space-6);
    text-align: center;
    transition: box-shadow var(--rpe-transition);
}
.rpe-stat-card:hover {
    box-shadow: var(--rpe-shadow-md);
}
.rpe-stat-card--primary {
    border-top: 3px solid var(--rpe-primary);
}
.rpe-stat-value {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-2xl);
    font-weight: 700;
    color: var(--rpe-text-primary);
}
.rpe-stat-card-label {
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    color: var(--rpe-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: var(--rpe-space-2);
}

/* Back link */
.rpe-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-2);
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    text-decoration: none;
    margin-bottom: var(--rpe-space-4);
    transition: color var(--rpe-transition);
}
.rpe-back-link:hover { color: var(--rpe-primary); }

/* --------------------------------------------------------------------------
   17b. TEMPLATE UTILITIES
   -------------------------------------------------------------------------- */

.rpe-form-help,
.rpe-app .rpe-form-help {
    margin: var(--rpe-space-1) 0 0 0 !important;
    padding: 0 !important;
    font-size: var(--rpe-fs-xs) !important;
    color: var(--rpe-text-muted) !important;
    line-height: 1.4;
}

.rpe-required { color: var(--rpe-error); }

/* Consistent form field spacing within cards */
.rpe-app .rpe-card > div + div,
.rpe-app .rpe-card-body > div + div {
    margin-top: var(--rpe-space-5);
}

.rpe-hero-result {
    padding: var(--rpe-space-10);
    text-align: center;
}

.rpe-hero-number {
    font-size: 3.5rem;
    font-weight: var(--rpe-weight-extrabold);
    line-height: 1;
    color: var(--rpe-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.rpe-hero-unit {
    font-size: var(--rpe-fs-xl);
    font-weight: var(--rpe-weight-medium);
    color: var(--rpe-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* =========================================================================
   Lift Ratio Analyzer
   ========================================================================= */

.lr-split-pct {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rpe-primary);
}

.lr-split-label {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    font-weight: 500;
    margin-top: var(--rpe-space-1);
}

.lr-diagnosis-card {
    padding: var(--rpe-space-4);
    border-radius: var(--rpe-radius);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-2);
}

.lr-diagnosis-lift {
    font-size: var(--rpe-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rpe-text-muted);
}

.lr-diagnosis-your {
    line-height: 1;
}

.lr-diagnosis-cohort {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
}

.lr-diagnosis-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--rpe-space-0-5) var(--rpe-space-3);
    border-radius: var(--rpe-radius-full);
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    width: fit-content;
}

.lr-diagnosis-detail {
    font-size: var(--rpe-fs-xs);
    line-height: 1.5;
    color: var(--rpe-text-secondary);
}

/* Card color variants */
.lr-card-neutral {
    background: var(--rpe-gray-50);
    border-color: var(--rpe-border-1);
}

.lr-card-warning {
    background: var(--rpe-zone-work-wash);
    border-color: rgba(232, 160, 32, 0.35);
}

.lr-card-danger {
    background: var(--rpe-zone-max-wash);
    border-color: rgba(196, 18, 48, 0.35);
}

.lr-card-good {
    background: rgba(59, 114, 200, 0.06);
    border-color: rgba(59, 114, 200, 0.30);
}

.lr-card-strong {
    background: var(--rpe-zone-easy-wash);
    border-color: rgba(45, 155, 78, 0.35);
}

.rpe-disclaimer {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    text-align: center;
    line-height: 1.6;
}

.rpe-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--rpe-space-3);
    padding: var(--rpe-space-4);
    border-radius: var(--rpe-radius-lg);
    font-size: var(--rpe-fs-sm);
}

.rpe-notice-warning {
    background: var(--rpe-zone-work-wash);
    border: 1px solid rgba(232, 160, 32, 0.30);
    color: var(--rpe-fg-2);
}

.rpe-notice-info {
    background: var(--rpe-primary-light);
    border: 1px solid rgba(190,18,60,0.2);
    color: var(--rpe-navy);
}

.rpe-notice svg { flex-shrink: 0; margin-top: 2px; }

.rpe-text-center { text-align: center; }
.rpe-text-mono { font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace; }

.rpe-space-y > * + * { margin-top: var(--rpe-space-8); }
.rpe-space-y-sm > * + * { margin-top: var(--rpe-space-5); }

.rpe-mb-0 { margin-bottom: 0; }
.rpe-mb-4 { margin-bottom: var(--rpe-space-4); }
.rpe-mb-6 { margin-bottom: var(--rpe-space-6); }
.rpe-mt-2 { margin-top: var(--rpe-space-2); }
.rpe-mt-4 { margin-top: var(--rpe-space-4); }

.rpe-fw-600 { font-weight: 600; }
.rpe-text-success { color: var(--rpe-success); }
.rpe-text-error { color: var(--rpe-error); }
.rpe-text-accent { color: var(--rpe-primary); }
.rpe-label-hint { font-size: var(--rpe-fs-xs); color: var(--rpe-gray-500); margin-top: 2px; }
.rpe-pill-group--inline { display: inline-flex; gap: var(--rpe-space-1); flex-wrap: wrap; }
.rpe-row-highlight { background: rgba(var(--rpe-primary-rgb, 37, 99, 235), 0.04); }
.rpe-result-item { padding: var(--rpe-space-3) 0; border-bottom: 1px solid var(--rpe-gray-100); }
.rpe-result-item:last-child { border-bottom: none; }

.rpe-flex { display: flex; }
.rpe-flex-center { display: flex; align-items: center; justify-content: center; }
.rpe-flex-between { display: flex; align-items: center; justify-content: space-between; }
.rpe-flex-wrap { flex-wrap: wrap; }
.rpe-gap-2 { gap: var(--rpe-space-2); }
.rpe-gap-4 { gap: var(--rpe-space-4); }
.rpe-gap-6 { gap: var(--rpe-space-6); }

.rpe-hidden { display: none; }
.rpe-divider {
    width: 1px;
    align-self: stretch;
    background: var(--rpe-border);
}
.rpe-divider-h {
    height: 1px;
    width: 100%;
    background: var(--rpe-border);
}

/* RIR Converter 3-column grid: [column] [divider] [column] on desktop, stacked on mobile */
.rpe-rir-converter-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .rpe-rir-converter-grid {
        grid-template-columns: 1fr auto 1fr;
    }
    .rpe-rir-converter-grid .rpe-divider-desktop { display: flex !important; }
    .rpe-rir-converter-grid .rpe-divider-mobile { display: none !important; }
}
@media (max-width: 767px) {
    .rpe-rir-converter-grid .rpe-divider-desktop { display: none !important; }
    .rpe-rir-converter-grid .rpe-divider-mobile { display: block !important; }
}

/* Collapsible toggle button (Compare Formulas, etc.) */
.rpe-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.rpe-toggle-icon {
    width: 20px;
    height: 20px;
    color: var(--rpe-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* RPE slider ticks row */
.rpe-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    margin-top: var(--rpe-space-1);
    padding: 0 2px;
}

/* Switch toggle */
.rpe-switch {
    position: relative;
    display: inline-flex;
    height: 24px;
    width: 44px;
    align-items: center;
    border-radius: var(--rpe-radius-full);
    cursor: pointer;
    border: none;
    transition: background var(--rpe-transition);
    background: var(--rpe-gray-200);
}
.rpe-switch[aria-checked="true"],
.rpe-switch.rpe-switch-on { background: var(--rpe-primary); }
.rpe-switch-knob {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: var(--rpe-radius-full);
    background: var(--rpe-surface-1);
    transition: transform var(--rpe-transition);
    transform: translateX(4px);
}
.rpe-switch[aria-checked="true"] .rpe-switch-knob,
.rpe-switch.rpe-switch-on .rpe-switch-knob { transform: translateX(24px); }

/* =========================================================================
   DELOAD CALCULATOR
   ========================================================================= */

.rpe-deload-info-banner {
    border-left: 4px solid var(--rpe-primary);
    background: var(--rpe-brand-wash);
}

/* Overall fatigue status badge */
.rpe-deload-status-badge {
    display: inline-block;
    font-size: var(--rpe-fs-lg);
    font-weight: 700;
    padding: var(--rpe-space-3) var(--rpe-space-6);
    border-radius: var(--rpe-radius-lg);
    margin: var(--rpe-space-3) 0;
}
.rpe-deload-status-red    { background: var(--rpe-zone-max-wash); color: var(--rpe-danger); }
.rpe-deload-status-yellow { background: var(--rpe-zone-work-wash); color: var(--rpe-warning); }
.rpe-deload-status-green  { background: var(--rpe-zone-easy-wash); color: var(--rpe-success); }

/* Per-lift fatigue indicator pill */
.rpe-deload-fatigue-indicator {
    display: inline-block;
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
    padding: var(--rpe-space-1) var(--rpe-space-3);
    border-radius: var(--rpe-radius-full);
    margin: var(--rpe-space-2) 0;
}
.rpe-deload-fatigue-red    { background: var(--rpe-zone-max-wash); color: var(--rpe-danger); }
.rpe-deload-fatigue-yellow { background: var(--rpe-zone-work-wash); color: var(--rpe-warning); }
.rpe-deload-fatigue-green  { background: var(--rpe-zone-easy-wash); color: var(--rpe-success); }
.rpe-deload-fatigue-gray   { background: var(--rpe-gray-100); color: var(--rpe-text-muted); }

/* Tool link cards in related tools section */
.rpe-tool-link-card {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-3);
    padding: var(--rpe-space-3) var(--rpe-space-4);
    background: var(--rpe-gray-50);
    border-radius: var(--rpe-radius);
    border: 1px solid var(--rpe-border);
    text-decoration: none;
    color: inherit;
    transition: background var(--rpe-transition), border-color var(--rpe-transition);
}
.rpe-tool-link-card:hover {
    background: var(--rpe-brand-wash);
    border-color: var(--rpe-primary);
    text-decoration: none;
}
.rpe-tool-link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .rpe-page-header-dark { padding: var(--rpe-space-5) var(--rpe-space-4); }
    .rpe-page-title { font-size: var(--rpe-fs-xl); }
    .rpe-result-value { font-size: var(--rpe-fs-2xl); }
    .rpe-card { padding: var(--rpe-space-5); }
    .rpe-card-body { padding: var(--rpe-space-5); }
    .rpe-hero-result { padding: var(--rpe-space-8); }
}

/* --------------------------------------------------------------------------
   19. PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
    .rpe-nav, .rpe-footer, .rpe-btn, .rpe-toast,
    .rpe-nav-mobile, [x-cloak] { display: none !important; }
    .rpe-card { box-shadow: none; border: 1px solid var(--rpe-border-1); }
    .rpe-app { background: var(--rpe-surface-1) !important; }
    .rpe-table { font-size: 10pt; }
    .rpe-table th, .rpe-table td { padding: var(--rpe-space-1) var(--rpe-space-2); border: 1px solid var(--rpe-border-1); }
}

/* --------------------------------------------------------------------------
   20. ACCESSIBILITY
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .rpe-app *, .rpe-app *::before, .rpe-app *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .rpe-btn, .rpe-input, .rpe-select {
        border: 2px solid ButtonText !important;
    }
    .rpe-btn:focus-visible, .rpe-input:focus, .rpe-select:focus {
        outline: 3px solid CanvasText !important;
        outline-offset: 2px !important;
    }
}

@media (hover: none) {
    .rpe-calc-card:hover, .rpe-related-card:hover, .rpe-card--link:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   21. WCAG TOUCH TARGETS (48px min)
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .rpe-app button,
    .rpe-app a[role="button"],
    .rpe-app input[type="submit"],
    .rpe-app .rpe-btn {
        min-height: 48px;
    }
    .rpe-app input, .rpe-app select, .rpe-app textarea {
        min-height: 48px;
    }
}

/* --------------------------------------------------------------------------
   22. SAFE AREA (notched devices)
   -------------------------------------------------------------------------- */

@supports (padding: env(safe-area-inset-bottom)) {
    .rpe-app {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}

/* --------------------------------------------------------------------------
   23. GYM MODE TOOL
   -------------------------------------------------------------------------- */

/* Large gym-readable inputs */
.rpe-gym-input {
    font-size: var(--rpe-fs-lg) !important;
    font-weight: 500 !important;
    height: 56px !important;
    min-height: 56px !important;
}

/* Big CTA button */
.rpe-gym-btn {
    width: 100%;
    min-height: 56px !important;
    font-size: var(--rpe-fs-md) !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

/* Big recommended weight display */
.rpe-gym-weight {
    font-size: clamp(3rem, 10vw, 4.5rem) !important;
    line-height: 1 !important;
}

/* Hero card with stronger border */
.rpe-gym-hero {
    border: 2px solid var(--rpe-primary-soft) !important;
}

/* Stepper: +/- controls for reps/RPE */
.rpe-gym-stepper {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-3);
    background: var(--rpe-gray-50);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius);
    padding: var(--rpe-space-2) var(--rpe-space-3);
    min-height: 56px;
}
.rpe-gym-stepper-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--rpe-radius-full) !important;
    background: var(--rpe-surface) !important;
    border: 1px solid var(--rpe-border) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--rpe-text-primary) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--rpe-transition), border-color var(--rpe-transition);
    flex-shrink: 0;
    box-shadow: var(--rpe-shadow-sm);
}
.rpe-gym-stepper-btn:hover {
    background: var(--rpe-primary-light) !important;
    border-color: var(--rpe-primary) !important;
    color: var(--rpe-primary) !important;
}
.rpe-gym-stepper-btn:active {
    transform: scale(0.94);
}
.rpe-gym-stepper-value {
    flex: 1;
    text-align: center;
    font-size: var(--rpe-fs-2xl);
    font-weight: 700;
    color: var(--rpe-text-primary);
    line-height: 1;
}

/* Barbell visualization */
.rpe-gym-barbell {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 72px;
    margin: var(--rpe-space-4) 0;
    overflow: hidden;
}
.rpe-gym-bar-collar {
    width: 10px;
    height: 40px;
    background: var(--rpe-gray-400);
    border-radius: 2px;
    flex-shrink: 0;
}
.rpe-gym-bar-plates {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-direction: row-reverse;
}
.rpe-gym-plate {
    width: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    transition: height 0.3s ease;
}
.rpe-gym-bar-sleeve {
    flex: 1;
    height: 8px;
    background: var(--rpe-gray-300);
    border-radius: var(--rpe-radius-sm);
    min-width: 20px;
}

/* Plate list */
.rpe-gym-plates-list {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-2);
}
.rpe-gym-plate-row {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-3);
    padding: var(--rpe-space-2) var(--rpe-space-3);
    background: var(--rpe-gray-50);
    border-radius: var(--rpe-radius-sm);
    font-size: var(--rpe-fs-sm);
}
.rpe-gym-plate-row--total {
    background: var(--rpe-primary-light) !important;
    border-top: 1px solid var(--rpe-border);
    margin-top: var(--rpe-space-1);
}
.rpe-gym-plate-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}
.rpe-gym-plate-label {
    flex: 1;
    color: var(--rpe-text-primary);
}
.rpe-gym-plate-subtotal {
    color: var(--rpe-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Last session card */
.rpe-gym-last-session {
    background: var(--rpe-gray-50) !important;
    border: 1px solid var(--rpe-border) !important;
}
.rpe-gym-last-session-text {
    font-size: var(--rpe-fs-base);
    color: var(--rpe-text-secondary);
    font-weight: 500;
}

/* Rest timer */
.rpe-gym-timer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rpe-space-3);
}
.rpe-gym-timer {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rpe-gym-timer--active .rpe-gym-timer-ring {
    filter: drop-shadow(0 0 6px var(--rpe-primary));
}
.rpe-gym-timer--active .rpe-gym-timer-display {
    color: var(--rpe-primary);
}
.rpe-gym-timer-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    transition: filter 0.3s;
}
.rpe-gym-timer-display {
    position: relative;
    font-size: var(--rpe-fs-md);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--rpe-text-primary);
    z-index: 1;
}
.rpe-gym-timer-controls {
    display: flex;
    gap: var(--rpe-space-2);
}
.rpe-gym-timer-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--rpe-radius-full) !important;
    background: var(--rpe-primary) !important;
    color: var(--rpe-surface-1) !important;
    border: none !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--rpe-transition), transform 0.1s;
    box-shadow: var(--rpe-shadow-sm);
}
.rpe-gym-timer-btn:hover {
    background: var(--rpe-primary-hover) !important;
}
.rpe-gym-timer-btn:active { transform: scale(0.93); }
.rpe-gym-timer-btn--reset {
    background: var(--rpe-gray-200) !important;
    color: var(--rpe-text-secondary) !important;
}
.rpe-gym-timer-btn--reset:hover {
    background: var(--rpe-gray-300) !important;
}
.rpe-gym-timer-presets {
    display: flex;
    gap: var(--rpe-space-2);
}
.rpe-pill--active {
    background: var(--rpe-surface) !important;
    color: var(--rpe-primary) !important;
    box-shadow: var(--rpe-shadow-sm);
    font-weight: 600 !important;
}

/* Autocomplete dropdown */
.rpe-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-top: none;
    border-radius: 0 0 var(--rpe-radius) var(--rpe-radius);
    box-shadow: var(--rpe-shadow-md);
    margin: 0;
    padding: var(--rpe-space-1) 0;
    max-height: 240px;
    overflow-y: auto;
    list-style: none;
}
.rpe-autocomplete-item {
    padding: var(--rpe-space-3) var(--rpe-space-4);
    cursor: pointer;
    font-size: var(--rpe-fs-base);
    color: var(--rpe-text-primary);
    transition: background var(--rpe-transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.rpe-autocomplete-item:hover,
.rpe-autocomplete-item--active {
    background: var(--rpe-primary-light);
    color: var(--rpe-primary);
}

/* Gym card spacing */
.rpe-gym-card {
    padding: var(--rpe-space-6) !important;
}

@media (max-width: 640px) {
    .rpe-gym-weight {
        font-size: clamp(2.5rem, 14vw, 3.5rem) !important;
    }
    .rpe-gym-btn {
        min-height: 60px !important;
        font-size: var(--rpe-fs-lg) !important;
    }
    .rpe-gym-stepper-value {
        font-size: var(--rpe-fs-xl);
    }
}

/* ==========================================================================
   PROGRAM TRANSLATOR (Bridge Tool)
   ========================================================================== */

/* Readiness selector grid */
.bridge-readiness-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--rpe-space-2);
}

@media (max-width: 640px) {
    .bridge-readiness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bridge-readiness-grid .bridge-readiness-card:last-child {
        grid-column: span 2;
    }
}

/* Readiness card */
.bridge-readiness-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rpe-space-1);
    padding: var(--rpe-space-3) var(--rpe-space-2);
    border: 2px solid var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    background: var(--rpe-surface);
    cursor: pointer;
    transition: border-color var(--rpe-transition-fast), background var(--rpe-transition-fast), transform var(--rpe-transition-fast);
    text-align: center;
    min-height: 44px;
}

.bridge-readiness-card:hover {
    border-color: var(--rpe-gray-400);
    transform: translateY(-1px);
}

.bridge-readiness-active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.bridge-readiness-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.bridge-readiness-label {
    font-size: var(--rpe-fs-xs);
    font-weight: 700;
    color: var(--rpe-text-primary);
    line-height: 1.2;
}

.bridge-readiness-desc {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    line-height: 1.3;
}

.bridge-readiness-adj {
    font-size: var(--rpe-fs-sm);
    font-weight: 700;
    margin-top: var(--rpe-space-1);
}

/* Why adjustment card */
.bridge-why-card {
    display: flex;
    gap: var(--rpe-space-4);
    align-items: flex-start;
    background: var(--rpe-primary-light);
    border: 1px solid var(--rpe-primary-soft);
    border-radius: var(--rpe-radius-lg);
}

.bridge-why-icon {
    flex-shrink: 0;
    color: var(--rpe-primary);
    margin-top: 2px;
}

.bridge-why-title {
    font-size: var(--rpe-fs-base);
    font-weight: 700;
    color: var(--rpe-primary);
    margin: 0;
}

/* Info box */
.rpe-info-box {
    padding: var(--rpe-space-4);
    background: var(--rpe-gray-50);
    border: 1px solid var(--rpe-border);
    border-left: 3px solid var(--rpe-primary);
    border-radius: var(--rpe-radius-md);
}

/* --------------------------------------------------------------------------
   24. SKIP LINK (Accessibility)
   -------------------------------------------------------------------------- */

.rpe-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}
.rpe-skip-link:focus {
    position: fixed;
    top: var(--rpe-space-2);
    left: var(--rpe-space-2);
    width: auto;
    height: auto;
    padding: var(--rpe-space-2) var(--rpe-space-4);
    background: var(--rpe-brand);
    color: var(--rpe-surface-1);
    font-weight: 700;
    border-radius: var(--rpe-radius-sm);
    text-decoration: none;
    z-index: 100000;
}

/* --------------------------------------------------------------------------
   25. FOCUS VISIBLE (Accessibility)
   -------------------------------------------------------------------------- */

*:focus-visible {
    outline: 2px solid var(--rpe-brand);
    outline-offset: 2px;
}
.rpe-btn:focus-visible { box-shadow: 0 0 0 3px var(--rpe-brand-wash); }
.rpe-input:focus-visible, .rpe-select:focus-visible { border-color: var(--rpe-brand); box-shadow: 0 0 0 3px var(--rpe-brand-wash); }

/* --------------------------------------------------------------------------
   26. NAV OVERFLOW (small phones)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .rpe-nav-actions .rpe-btn-primary { display: none !important; }
    .rpe-nav-actions .rpe-unit-toggle { display: none !important; }
    /* Hide account name text on mobile, show icon only */
    .rpe-nav-account-btn { font-size: 0 !important; padding: 6px 10px !important; gap: 0 !important; }
    .rpe-nav-account-btn svg { font-size: initial; width: 18px; height: 18px; }
    /* Hide sign-in text on mobile, show icon only */
    .rpe-nav-signin-btn { font-size: 0 !important; padding: 6px 10px !important; gap: 0 !important; }
    .rpe-nav-signin-btn svg { font-size: initial; width: 18px; height: 18px; }

    /* Hero stats row - keep horizontal on mobile */
    .rpe-hero-stats-row {
        flex-direction: row !important;
        gap: var(--rpe-space-2) !important;
        flex-wrap: nowrap !important;
    }
    .rpe-hero-stats-row .rpe-hero-stat {
        flex: 1;
        min-width: 0;
    }
    .rpe-hero-stats-row .rpe-hero-stat-number {
        font-size: var(--rpe-fs-lg) !important;
    }
    .rpe-hero-stats-row .rpe-hero-stat-label {
        font-size: 9px !important;
    }

    /* Hero heading sizes on mobile */
    .rpe-heading-hero { font-size: 1.5rem !important; }
    .rpe-heading-hero-tagline { font-size: 0.85rem !important; }
    .rpe-heading-hero-sub { font-size: 1rem !important; }
    .rpe-hero-description { font-size: var(--rpe-fs-sm) !important; }

    /* RPE chart gauge compact on mobile */
    .rpe-chart-gauge__number { font-size: 11px !important; }
    .rpe-chart-gauge__rir { font-size: 7px !important; }
    .rpe-chart-gauge__segment { padding: 6px 1px !important; min-height: 40px !important; }

    /* Hub banner compact on mobile */
    .rpe-hub-banner { padding: var(--rpe-space-2-5) var(--rpe-space-3) !important; gap: var(--rpe-space-2) !important; }
    .rpe-hub-banner__icon { width: 32px !important; height: 32px !important; }
    .rpe-hub-banner__icon svg { width: 18px !important; height: 18px !important; }
    .rpe-hub-banner__desc { display: none !important; }

    /* Minimal padding on mobile - edge-to-edge feel */
    .rpe-card { padding: var(--rpe-space-3) !important; }
    .rpe-card-body { padding: var(--rpe-space-3) !important; }
    .rpe-nav .rpe-container { padding: 0 var(--rpe-space-2) !important; }
    .rpe-main { padding-top: var(--rpe-space-2) !important; }
    .rpe-page-header-dark { padding: var(--rpe-space-4) var(--rpe-space-3) !important; }
    .rpe-hero { padding: 20px 16px !important; margin-bottom: 16px !important; }
    .rpe-footer { padding: var(--rpe-space-4) var(--rpe-space-2) !important; }
    .rpe-calc-card { padding: var(--rpe-space-4) var(--rpe-space-3) !important; }
}

/* =========================================================================
   WARM-UP CALCULATOR (Redesigned - Bold Sports pattern)
   ========================================================================= */

/* --- Fix #1: Validation Alert --- */
.rpe-alert {
    border-left: 4px solid transparent;
    padding: var(--rpe-space-4) var(--rpe-space-5);
    border-radius: var(--rpe-radius-sm);
}
.rpe-alert--warning {
    border-left-color: var(--rpe-primary);
    background: var(--rpe-primary-light);
    box-shadow: none;
}
.rpe-alert-text {
    margin: 0;
    font-weight: 600;
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-primary);
}

/* --- Fix #2: Large Input Variant --- */
.rpe-input--lg {
    padding: 14px 52px 14px 16px;
    font-size: var(--rpe-fs-md);
    font-weight: 700;
    min-height: 52px;
    border-style: solid;
    border-width: 2px;
    border-color: var(--rpe-border-strong);
    border-radius: var(--rpe-radius-md);
    letter-spacing: -0.01em;
    color: var(--rpe-navy);
}
.rpe-input--lg:focus {
    border-color: var(--rpe-primary);
    box-shadow: 0 0 0 4px var(--rpe-primary-light);
}

/* --- Fix #3: Competition Mode Card --- */
.rpe-warmup-mode-card {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-4);
    padding: var(--rpe-space-4) var(--rpe-space-5);
    background: var(--rpe-gray-50);
    border: 1.5px solid var(--rpe-border);
    border-radius: var(--rpe-radius-md);
    transition: all var(--rpe-transition-slow);
    cursor: pointer;
}
.rpe-warmup-mode-card:hover {
    border-color: var(--rpe-border-strong);
}
.rpe-warmup-mode-card--active {
    background: var(--rpe-primary-light);
    border-color: rgba(190, 18, 60, 0.3);
}
.rpe-warmup-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--rpe-radius-full);
    background: var(--rpe-gray-100);
    color: var(--rpe-text-muted);
    flex-shrink: 0;
    transition: all var(--rpe-transition-slow);
}
.rpe-warmup-mode-card--active .rpe-warmup-mode-icon {
    background: rgba(190, 18, 60, 0.15);
    color: var(--rpe-primary);
}
.rpe-warmup-mode-text {
    flex: 1;
    min-width: 0;
}
.rpe-warmup-mode-label {
    display: block;
    font-weight: 600;
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-primary);
    transition: color var(--rpe-transition);
}
.rpe-warmup-mode-card--active .rpe-warmup-mode-label {
    color: var(--rpe-primary);
}
.rpe-warmup-mode-hint {
    display: block;
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    margin-top: 2px;
}
.rpe-warmup-mode-card .rpe-switch {
    width: 52px;
    height: 28px;
    border-radius: var(--rpe-radius-full);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.rpe-warmup-mode-card .rpe-switch-knob {
    width: 20px;
    height: 20px;
}
.rpe-warmup-mode-card .rpe-switch.rpe-switch-on .rpe-switch-knob,
.rpe-warmup-mode-card .rpe-switch[aria-checked="true"] .rpe-switch-knob {
    transform: translateX(28px);
}

/* --- Fix #4: Table Row Hierarchy + Percentage Zone Badges --- */
.rpe-warmup-opener-row {
    background: var(--rpe-primary-light);
    border-left: 3px solid var(--rpe-primary);
}
.rpe-warmup-opener-badge {
    display: inline-block;
    margin-left: var(--rpe-space-2);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rpe-surface-1);
    background: var(--rpe-primary);
    padding: 3px var(--rpe-space-2);
    border-radius: var(--rpe-radius-full);
    line-height: 1;
}
.rpe-warmup-pct-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--rpe-radius-full);
    font-size: var(--rpe-fs-xs);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}
.rpe-warmup-pct-badge[data-zone="bar"] {
    background: var(--rpe-gray-100);
    color: var(--rpe-text-muted);
}
.rpe-warmup-pct-badge[data-zone="light"] {
    background: var(--rpe-green-soft);
    color: var(--rpe-green-700);
}
.rpe-warmup-pct-badge[data-zone="moderate"] {
    background: var(--rpe-accent-light);
    color: var(--rpe-accent-hover);
}
.rpe-warmup-pct-badge[data-zone="heavy"] {
    background: var(--rpe-primary-light);
    color: var(--rpe-primary);
}

/* Subtitle under section heading */
.rpe-warmup-subtitle {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    margin-top: calc(-1 * var(--rpe-space-2));
    margin-bottom: var(--rpe-space-4);
}

/* Plate badges in table */
.rpe-warmup-plates {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.rpe-warmup-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 var(--rpe-space-1-5);
    border-radius: var(--rpe-radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--rpe-surface-1);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    line-height: 1;
}
.rpe-warmup-bar-only {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    font-style: italic;
}

/* Set number */
.rpe-warmup-set-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Weight display */
.rpe-warmup-weight-val {
    font-size: var(--rpe-fs-base);
    font-weight: 700;
}
.rpe-warmup-weight-unit {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    margin-left: 2px;
}

/* Reps and rest cells */
.rpe-warmup-reps {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.rpe-warmup-rest {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    white-space: nowrap;
}

/* --- Fix #5: Barbell Card Headings --- */
.rpe-warmup-barbell-title {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-sm);
    font-weight: 700;
    color: var(--rpe-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 2px;
}
.rpe-warmup-barbell-subtitle {
    display: block;
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    margin-bottom: var(--rpe-space-3);
    padding-bottom: var(--rpe-space-3);
    border-bottom: 1px solid var(--rpe-border);
}

/* --- Fix #6 + #12: Visual Barbell Diagram (upgraded) --- */
.rpe-warmup-barbell-card {
    text-align: center;
    padding-bottom: var(--rpe-space-4);
}
.rpe-warmup-barbell-container {
    background: var(--rpe-gray-50);
    border-radius: var(--rpe-radius);
    padding: var(--rpe-space-4) var(--rpe-space-3);
}
.rpe-warmup-barbell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    overflow-x: auto;
    max-width: 100%;
    flex-wrap: nowrap;
}
.rpe-warmup-barbell-plate {
    min-width: 18px;
    border-radius: var(--rpe-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--rpe-surface-1);
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
    background-image: none;
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.2), inset 0 -2px 3px rgba(0,0,0,0.2), 2px 0 4px rgba(0,0,0,0.15), -2px 0 4px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.15);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.02em;
}
.rpe-plate-size-xl { width: 36px; height: 72px; }
.rpe-plate-size-lg { width: 30px; height: 56px; }
.rpe-plate-size-md { width: 24px; height: 40px; }
.rpe-plate-size-sm { width: 20px; height: 28px; }
/* --- Fix #6: WCAG contrast fix for light plates --- */
.rpe-warmup-barbell-plate[data-light-plate="true"] { color: var(--rpe-navy); text-shadow: none; }
/* --- Plate calculator CSS-class sizing (replaces inline JS width/height) --- */
.rpe-plate-block.rpe-plate-size-xl { width: 20px; height: 80px; }
.rpe-plate-block.rpe-plate-size-lg { width: 20px; height: 68px; }
.rpe-plate-block.rpe-plate-size-md { width: 20px; height: 52px; }
.rpe-plate-block.rpe-plate-size-sm { width: 20px; height: 36px; }
.rpe-plate-block[data-light-plate="true"] { outline: 1px solid rgba(0,0,0,0.25); }
/* --- Stat card accent borders (Bold Sports design system) --- */
.rpe-stat-card--blue  { border-top: 3px solid var(--rpe-level-intermediate); }
.rpe-stat-card--green { border-top: 3px solid var(--rpe-success); }
.rpe-stat-card--red   { border-top: 3px solid var(--rpe-danger); }
.rpe-stat-card--gold  { border-top: 3px solid var(--rpe-gold); }
.rpe-stat-card--primary { border-top: 3px solid var(--rpe-primary); }
/* --- Empty state prompt --- */
.rpe-empty-state {
    text-align: center;
    padding: var(--rpe-space-6) var(--rpe-space-4);
    color: var(--rpe-text-muted);
    font-size: var(--rpe-fs-sm);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}
.rpe-empty-state svg {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--rpe-space-3);
    opacity: 0.25;
}
/* --- Inline-style extractions --- */
.rpe-set-row {
    align-items: flex-end;
    padding: var(--rpe-space-3);
    background: var(--rpe-gray-50);
    border-radius: var(--rpe-radius);
}
.rpe-set-row-num {
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
    color: var(--rpe-text-muted);
    width: 2rem;
    flex-shrink: 0;
    padding-bottom: 0.625rem;
}
.rpe-set-col-weight { flex: 1; min-width: 100px; }
.rpe-set-col-reps   { width: 5rem; }
.rpe-set-col-rpe    { width: 6rem; }
.rpe-set-label      { font-size: var(--rpe-fs-xs); }
.rpe-chart-container { position: relative; height: 300px; }
.rpe-chart-help      { margin-bottom: var(--rpe-space-4); }
.rpe-fatigue-drop-note { font-size: var(--rpe-fs-sm); color: var(--rpe-text-muted); margin-top: var(--rpe-space-3); }
.rpe-recommendations-card {
    background: var(--rpe-gray-50);
    border-left: 4px solid var(--rpe-primary);
}
.rpe-rec-list {
    font-size: var(--rpe-fs-sm);
    line-height: 1.6;
    list-style: none;
    padding: 0;
    margin: 0;
}
.rpe-rec-item {
    align-items: flex-start;
}
.rpe-rec-bullet {
    color: var(--rpe-primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}
.rpe-align-bottom   { display: flex; align-items: flex-end; }
.rpe-w-full-btn     { width: 100%; }
.rpe-mode-indicator { display: flex; align-items: center; justify-content: center; }
.rpe-converter-result-box {
    background: var(--rpe-gray-50);
    border-radius: var(--rpe-radius);
    padding: var(--rpe-space-5);
    text-align: center;
}
.rpe-divider-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rpe-text-muted);
    font-weight: 500;
    font-size: var(--rpe-fs-lg);
}
.rpe-plate-hero {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--rpe-space-2);
}
.rpe-plate-disclaimer { margin-top: var(--rpe-space-1); }
.rpe-plate-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}
.rpe-plate-name { font-weight: 500; }
.rpe-tfoot-total { font-weight: 600; }
.rpe-plate-card-mb { margin-bottom: var(--rpe-space-6); }
.rpe-center-flex { display: flex; align-items: baseline; justify-content: center; gap: var(--rpe-space-2); }
.rpe-total-display { font-size: var(--rpe-fs-4xl); }
.rpe-scoring-used-by-col { text-align: center; }
.rpe-scoring-number { font-size: var(--rpe-fs-lg); font-weight: 700; color: var(--rpe-primary); }
.rpe-scoring-bw-unit { font-size: var(--rpe-fs-sm); }
.rpe-input-group--short { max-width: 20rem; }
.rpe-collar { width: 8px; height: 24px; background: var(--rpe-gray-500); }
.rpe-collar--left  { border-radius: 2px 0 0 2px; }
.rpe-collar--right { border-radius: 0 2px 2px 0; }
.rpe-lift-card {
    text-align: center;
    padding: var(--rpe-space-5);
}
.rpe-lift-card-label {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--rpe-space-2);
}
.rpe-lift-card-values {
    display: flex;
    justify-content: center;
    gap: var(--rpe-space-4);
    align-items: baseline;
    margin-bottom: var(--rpe-space-3);
}
.rpe-lift-raw-val { font-size: var(--rpe-fs-lg); font-weight: 700; }
.rpe-lift-raw-sub { font-size: var(--rpe-fs-xs); color: var(--rpe-text-muted); }
.rpe-lift-arrow   { color: var(--rpe-text-muted); }
.rpe-lift-eq-val  { font-size: var(--rpe-fs-xl); font-weight: 800; color: var(--rpe-primary); }
.rpe-lift-eq-sub  { font-size: var(--rpe-fs-xs); color: var(--rpe-text-muted); }
.rpe-lift-card-note { font-size: var(--rpe-fs-xs); color: var(--rpe-text-muted); margin-top: var(--rpe-space-2); }
.rpe-hero-raw-note { margin-top: var(--rpe-space-2); }
.rpe-hero-raw-val  { font-weight: 600; }
.rpe-deload-status-banner { display: flex; align-items: center; gap: var(--rpe-space-3); flex-wrap: wrap; }
.rpe-deload-status-icon   { font-size: 2rem; }
.rpe-deload-fatigue-label { margin: 0; font-size: 1.1rem; }
.rpe-deload-fatigue-note  { margin: 0; font-size: 0.85rem; }
.rpe-deload-lift-card     { text-align: center; }
.rpe-deload-lift-pct      { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.rpe-deload-lift-note     { font-size: 0.8rem; margin: var(--rpe-space-1) 0 0; }
.rpe-deload-lift-e1rm     { font-size: 0.85rem; margin: var(--rpe-space-1) 0 0; }
.rpe-deload-chart-wrap    { position: relative; height: 280px; }
.rpe-deload-plan-card     { border-top: 3px solid var(--rpe-primary); }
.rpe-deload-lift-header   { display: flex; align-items: center; gap: var(--rpe-space-2); margin-bottom: var(--rpe-space-3); }
.rpe-deload-lift-title    { margin: 0; font-size: 1.05rem; }
.rpe-deload-fatigue-auto  { margin-left: auto; font-size: 0.85rem; }
.rpe-deload-tips-list     { margin: 0; padding-left: var(--rpe-space-4); }
.rpe-deload-science-p     { font-size: 0.9rem; line-height: 1.6; margin-bottom: var(--rpe-space-3); }
.rpe-deload-science-p-last { font-size: 0.9rem; line-height: 1.6; margin: 0; }
.rpe-unit-btns { display: flex; gap: var(--rpe-space-2); }
.rpe-select--short { max-width: 180px; }
.rpe-generate-btn-wrap { text-align: center; margin: var(--rpe-space-4) 0; }
.rpe-rpe-chart-help     { margin-bottom: var(--rpe-space-4); }
.rpe-chart-mode-indicator { display: flex; align-items: center; justify-content: center; }
.rpe-chart-apply-btn    { width: 100%; }
.rpe-cell-cursor        { cursor: pointer; }
.rpe-warmup-barbell-bar {
    width: 100px;
    height: 14px;
    background: var(--rpe-gray-300);
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.rpe-warmup-barbell-collar {
    width: 10px;
    height: 24px;
    background: var(--rpe-gray-400);
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.1);
}
.rpe-warmup-barbell-weight {
    font-size: var(--rpe-fs-2xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--rpe-navy);
    margin-top: var(--rpe-space-3);
}
.rpe-warmup-bar-only-label {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    font-style: italic;
    margin-top: var(--rpe-space-1);
}

/* --- Fix #7: Stat Cards with Accent Borders + Icons --- */
.rpe-warmup-stat--sets {
    border-top: 4px solid var(--rpe-primary);
}
.rpe-warmup-stat--reps {
    border-top: 4px solid var(--rpe-accent);
}
.rpe-warmup-stat--time {
    border-top: 4px solid var(--rpe-electric-light);
}
.rpe-warmup-stat--sets .rpe-stat-value,
.rpe-warmup-stat--reps .rpe-stat-value,
.rpe-warmup-stat--time .rpe-stat-value {
    font-size: var(--rpe-fs-2xl);
    font-weight: 800;
}
.rpe-warmup-stat--sets .rpe-stat-card-label,
.rpe-warmup-stat--reps .rpe-stat-card-label,
.rpe-warmup-stat--time .rpe-stat-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.rpe-warmup-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--rpe-radius-full);
    margin: 0 auto var(--rpe-space-3);
}
.rpe-warmup-stat-icon--sets {
    background: var(--rpe-primary-light);
    color: var(--rpe-primary);
}
.rpe-warmup-stat-icon--reps {
    background: var(--rpe-accent-light);
    color: var(--rpe-accent);
}
.rpe-warmup-stat-icon--time {
    background: rgba(37, 99, 235, 0.08);
    color: var(--rpe-electric-light);
}

/* --- Fix #8: Form Card Header --- */
.rpe-warmup-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--rpe-space-4);
    padding-bottom: var(--rpe-space-5);
    border-bottom: 1px solid var(--rpe-border);
    margin-bottom: var(--rpe-space-2);
}
.rpe-warmup-card-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--rpe-radius-md);
    background: var(--rpe-primary-light);
    color: var(--rpe-primary);
    flex-shrink: 0;
}
.rpe-warmup-card-header .rpe-section-heading {
    margin-bottom: 4px;
}
.rpe-warmup-card-header-hint {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    margin: 0;
}

/* --- Fix #9: Empty/Zero State --- */
.rpe-warmup-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--rpe-space-12) var(--rpe-space-6);
    border: 2px dashed var(--rpe-border);
    border-radius: var(--rpe-radius-lg);
    text-align: center;
}
.rpe-warmup-empty-icon {
    color: var(--rpe-gray-300);
    margin-bottom: var(--rpe-space-4);
}
.rpe-warmup-empty-title {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-md);
    font-weight: 700;
    color: var(--rpe-text-primary);
    margin: 0 0 var(--rpe-space-2);
}
.rpe-warmup-empty-hint {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    margin: 0;
}

/* --- Fix #10: Plate Color Legend --- */
.rpe-warmup-plate-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--rpe-space-4);
    padding: var(--rpe-space-4) var(--rpe-space-5);
    margin-top: var(--rpe-space-4);
    background: var(--rpe-gray-50);
    border-top: 1px solid var(--rpe-border);
    border-radius: 0 0 var(--rpe-radius-lg) var(--rpe-radius-lg);
}
.rpe-warmup-legend-item {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-2);
}
.rpe-warmup-legend-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}
.rpe-warmup-legend-label {
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    color: var(--rpe-text-secondary);
}

/* --- Fix #12: Tablet responsive - hide notes column --- */
@media (max-width: 768px) {
    .rpe-warmup-table-wrap .rpe-table th:nth-child(5),
    .rpe-warmup-table-wrap .rpe-table td:nth-child(5) { display: none; }
}

/* --- Fix #11: Mobile Table Card Mode --- */
@media (max-width: 640px) {
    .rpe-warmup-table-wrap thead { display: none; }
    .rpe-warmup-table-wrap tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--rpe-space-2);
        padding: var(--rpe-space-4);
        border-bottom: 1px solid var(--rpe-border);
    }
    .rpe-warmup-table-wrap tbody tr:last-child {
        border-bottom: none;
    }
    .rpe-warmup-table-wrap tbody td {
        display: flex;
        flex-direction: column;
        padding: 0;
        border: none;
        text-align: left !important;
    }
    .rpe-warmup-table-wrap tbody td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--rpe-text-muted);
        margin-bottom: 2px;
    }
    .rpe-warmup-table-wrap tbody td[data-label="Plates"] {
        grid-column: 1 / -1;
    }
    .rpe-warmup-opener-row {
        border-left: 3px solid var(--rpe-primary);
        border-radius: var(--rpe-radius-sm);
    }
    .rpe-warmup-barbell-bar { width: 60px; }
    .rpe-warmup-barbell-plate { font-size: 8px; min-width: 14px; writing-mode: horizontal-tb; }
    .rpe-warmup-card-header-icon { width: 40px; height: 40px; }
    .rpe-warmup-mode-card { padding: var(--rpe-space-3) var(--rpe-space-4); }
    .rpe-warmup-plate-legend { gap: var(--rpe-space-3); padding: var(--rpe-space-3) var(--rpe-space-4); }
}

/* --- Fix #13: Related Cards Hover Polish --- */
.rpe-related-card {
    position: relative;
}
.rpe-related-card::after {
    content: '\2192';
    position: absolute;
    right: var(--rpe-space-5);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--rpe-fs-lg);
    color: var(--rpe-text-muted);
    opacity: 0;
    transition: all var(--rpe-transition-slow);
}
.rpe-related-card:hover::after {
    opacity: 1;
    right: var(--rpe-space-4);
    color: var(--rpe-primary);
}
.rpe-related-card:hover .rpe-related-icon {
    background: var(--rpe-primary-light);
    color: var(--rpe-primary);
}
.rpe-related-card:hover .rpe-related-name {
    color: var(--rpe-primary);
}

/* --- Fix #14: SEO Tips Checklist --- */
.rpe-warmup-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-5);
}
.rpe-warmup-tip {
    display: flex;
    align-items: flex-start;
    gap: var(--rpe-space-4);
}
.rpe-warmup-tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--rpe-radius-full);
    background: var(--rpe-green-soft);
    color: var(--rpe-green-600);
    flex-shrink: 0;
    margin-top: 2px;
}
.rpe-warmup-tip strong {
    display: block;
    font-size: var(--rpe-fs-15);
    color: var(--rpe-text-primary);
    margin-bottom: var(--rpe-space-1);
}
.rpe-warmup-tip p {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* --- Fix #15: FAQ Open-State Polish --- */
.rpe-faq-item--open {
    border-color: rgba(190, 18, 60, 0.25);
}
.rpe-faq-item--open .rpe-faq-question {
    color: var(--rpe-primary) !important;
}
.rpe-faq-item--open .rpe-faq-icon {
    transform: rotate(180deg);
    color: var(--rpe-primary);
}
.rpe-faq-item--open .rpe-faq-answer {
    border-top: 1px solid var(--rpe-border);
}

/* --- Fix #17: Results Inner Spacing --- */
.rpe-warmup-results-inner {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-8);
}

/* --- Fix #24: Table row hover --- */
.rpe-warmup-table-wrap tbody tr:hover:not(.rpe-warmup-opener-row) { background: var(--rpe-gray-50); }

/* --- Fix #20: Extracted inline styles from base.php --- */
.rpe-btn-nav { font-size: var(--rpe-fs-xs); padding: 6px 14px; text-decoration: none; }
.rpe-nav-start-link { color: var(--rpe-primary); font-weight: 700; }

/* --- Fix #11b: Opener rounding note --- */
.rpe-warmup-rounding-note { margin-top: var(--rpe-space-2); color: var(--rpe-text-muted); }

/* --- Fix #9b: SEO Intro section styling --- */
.rpe-warmup-seo-intro { margin-top: var(--rpe-space-6); }
.rpe-warmup-seo-intro h2 { margin-bottom: var(--rpe-space-3); }
.rpe-warmup-seo-intro h3 { margin-top: var(--rpe-space-5); margin-bottom: var(--rpe-space-2); }
.rpe-warmup-seo-intro p { color: var(--rpe-text-secondary); line-height: 1.7; margin-bottom: var(--rpe-space-3); }

/* --- Fix #23: Print styles --- */
@media print {
    .rpe-nav, .rpe-footer, .rpe-warmup-mode-card, .rpe-warmup-empty-state,
    .rpe-related-section, .rpe-seo-section, .rpe-faq-section, .rpe-disclaimer, .rpe-warmup-seo-intro { display: none; }
    .rpe-warmup-results-inner { gap: 12px; }
    .rpe-warmup-barbell-container { break-inside: avoid; }
}

/* ============================================================
   FLAT DESIGN ENHANCEMENTS - Design Token Based
   ============================================================ */

/* --- 1. Hub Hero Section (premium, matches Strongman) --- */
.rpe-hero {
    background: linear-gradient(135deg, var(--rpe-navy) 0%, var(--rpe-electric-light, #3B72C8) 100%);
    border-radius: var(--rpe-radius-xl, 16px);
    padding: 40px 48px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.rpe-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: rpeHeroFloat 20s ease-in-out infinite;
    pointer-events: none;
}
.rpe-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rpeHeroFloat 15s ease-in-out infinite reverse;
    pointer-events: none;
}
@keyframes rpeHeroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.rpe-hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Hero Illustration */
.rpe-hero-illustration {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.rpe-hero-illustration svg {
    width: 100%;
    max-width: 380px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 8px 32px rgba(239, 68, 68, 0.2));
}
@media (max-width: 960px) {
    .rpe-hero { flex-direction: column; padding: 28px 24px; }
    .rpe-hero-content { max-width: 100%; }
    .rpe-hero-illustration { display: none; }
}

/* Trust Badge */
.rpe-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-2) var(--rpe-space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    margin-bottom: var(--rpe-space-6);
}
.rpe-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: rpePulse 2s ease-in-out infinite;
}
@keyframes rpePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}
.rpe-hero-badge-text {
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
    color: white;
}

/* Hero Headlines */
.rpe-app .rpe-hero .rpe-heading-hero {
    font-family: var(--rpe-font-heading);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff !important;
    letter-spacing: -0.03em;
    margin: 0 0 var(--rpe-space-3) !important;
}
.rpe-app .rpe-hero .rpe-heading-hero-tagline {
    font-family: var(--rpe-font-heading);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff !important;
    letter-spacing: -0.03em;
    margin: 0 0 var(--rpe-space-3);
}
.rpe-heading-hero-sub {
    font-family: var(--rpe-font-heading);
    font-size: clamp(var(--rpe-fs-lg, 1.125rem), 4vw, var(--rpe-fs-3xl, 1.875rem));
    font-weight: 600;
    line-height: 1.2;
    color: var(--rpe-primary);
    margin: 0 0 var(--rpe-space-6);
}
.rpe-hero-description {
    max-width: 550px;
    margin: 0 0 var(--rpe-space-8, 2rem);
    font-size: var(--rpe-fs-lg, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}
@media (max-width: 768px) {
    .rpe-heading-hero,
    .rpe-heading-hero-tagline { font-size: 1.5rem; }
    .rpe-heading-hero-sub { font-size: var(--rpe-fs-lg, 1.125rem); }
    .rpe-hero-description { font-size: var(--rpe-fs-sm); }
}

/* CTA Buttons */
.rpe-cta-row {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-3);
    flex-wrap: wrap;
    margin-bottom: var(--rpe-space-8, 2rem);
}
.rpe-hero .rpe-btn-primary {
    background: var(--rpe-primary);
    color: white !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-3) var(--rpe-space-6);
    font-weight: 700;
    font-size: var(--rpe-fs-base);
    border-radius: var(--rpe-radius-lg, 12px);
    text-decoration: none;
    transition: all 0.2s ease;
}
.rpe-hero .rpe-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.45);
}
.rpe-hero .rpe-btn-primary:active {
    transform: translateY(0) scale(0.98);
}
.rpe-hero .rpe-btn-primary svg {
    transition: transform 0.2s ease;
}
.rpe-hero .rpe-btn-primary:hover svg {
    transform: translateX(4px);
}
.rpe-btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-3) var(--rpe-space-6);
    font-weight: 600;
    font-size: var(--rpe-fs-base);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--rpe-radius-lg, 12px);
    text-decoration: none;
    transition: all 0.2s ease;
}
.rpe-btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* Hero Stats Row (inside hero) */
.rpe-hero-stats-row {
    display: flex;
    align-items: stretch;
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--rpe-radius-lg, 12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.rpe-hero-stat {
    flex: 1;
    text-align: center;
    padding: var(--rpe-space-3) var(--rpe-space-4);
    background: rgba(255, 255, 255, 0.04);
}
.rpe-hero-stat:first-child { border-radius: var(--rpe-radius-lg, 12px) 0 0 var(--rpe-radius-lg, 12px); }
.rpe-hero-stat:last-child { border-radius: 0 var(--rpe-radius-lg, 12px) var(--rpe-radius-lg, 12px) 0; }
.rpe-hero-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}
.rpe-hero-stat-number.rpe-hero-stat-highlight {
    color: var(--rpe-primary);
}
.rpe-hero-stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
@media (max-width: 768px) {
    .rpe-hero-stats-row { flex-direction: column; gap: 0; }
    .rpe-hero-stat { border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .rpe-hero-stat:first-child { border-radius: var(--rpe-radius-lg, 12px) var(--rpe-radius-lg, 12px) 0 0; }
    .rpe-hero-stat:last-child { border-radius: 0 0 var(--rpe-radius-lg, 12px) var(--rpe-radius-lg, 12px); border-bottom: none; }
}

/* Mobile stats strip (visible when hero illustration is hidden) */
.rpe-stats-strip-mobile { display: none; }
@media (max-width: 960px) {
    .rpe-stats-strip-mobile { display: flex; }
}

/* --- 2. Category-Colored Card Accents (flat) --- */
.rpe-calc-card[data-category="calculate"] { border-left: 3px solid var(--rpe-primary); }
.rpe-calc-card[data-category="compete"]   { border-left: 3px solid var(--rpe-accent); }
.rpe-calc-card[data-category="analyze"]   { border-left: 3px solid var(--rpe-electric-light); }
.rpe-calc-card[data-category="train"]     { border-left: 3px solid var(--rpe-green-500); }

/* Category icon backgrounds (flat tints) */
.rpe-calc-card[data-category="calculate"] .rpe-calc-icon { background: var(--rpe-primary-light); }
.rpe-calc-card[data-category="calculate"] .rpe-calc-icon svg { color: var(--rpe-primary); }
.rpe-calc-card[data-category="compete"]   .rpe-calc-icon { background: var(--rpe-accent-light); }
.rpe-calc-card[data-category="compete"]   .rpe-calc-icon svg { color: var(--rpe-accent); }
.rpe-calc-card[data-category="analyze"]   .rpe-calc-icon { background: rgba(37, 99, 235, 0.08); }
.rpe-calc-card[data-category="analyze"]   .rpe-calc-icon svg { color: var(--rpe-electric-light); }
.rpe-calc-card[data-category="train"]     .rpe-calc-icon { background: var(--rpe-green-soft); }
.rpe-calc-card[data-category="train"]     .rpe-calc-icon svg { color: var(--rpe-green-500); }

/* Category hover (flat elevation) */
.rpe-calc-card[data-category="calculate"]:hover { border-color: var(--rpe-primary);       box-shadow: var(--rpe-shadow-md); }
.rpe-calc-card[data-category="compete"]:hover   { border-color: var(--rpe-accent);         box-shadow: var(--rpe-shadow-md); }
.rpe-calc-card[data-category="analyze"]:hover   { border-color: var(--rpe-electric-light); box-shadow: var(--rpe-shadow-md); }
.rpe-calc-card[data-category="train"]:hover     { border-color: var(--rpe-green-500);      box-shadow: var(--rpe-shadow-md); }

/* Category hover icon fills (flat solid) */
.rpe-calc-card[data-category="compete"]:hover .rpe-calc-icon  { background: var(--rpe-accent); color: var(--rpe-surface-1); }
.rpe-calc-card[data-category="compete"]:hover .rpe-calc-icon svg { color: var(--rpe-surface-1); }
.rpe-calc-card[data-category="analyze"]:hover .rpe-calc-icon  { background: var(--rpe-electric-light); color: var(--rpe-surface-1); }
.rpe-calc-card[data-category="analyze"]:hover .rpe-calc-icon svg { color: var(--rpe-surface-1); }
.rpe-calc-card[data-category="train"]:hover .rpe-calc-icon    { background: var(--rpe-green-500); color: var(--rpe-surface-1); }
.rpe-calc-card[data-category="train"]:hover .rpe-calc-icon svg { color: var(--rpe-surface-1); }

/* --- 3. Stats Strip (flat) --- */
#fv-rpe-hub .rpe-stats-strip {
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    box-shadow: var(--rpe-shadow);
}
#fv-rpe-hub .rpe-stat-item {
    position: relative;
}
#fv-rpe-hub .rpe-stat-number {
    font-size: 1.75rem;
    color: var(--rpe-navy);
    font-weight: var(--rpe-weight-bold);
}

/* --- 4. Staggered Card Entrance Animation --- */
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
#fv-rpe-hub .rpe-calc-card {
    animation: cardEntrance 0.35s ease-out both;
}
#fv-rpe-hub .rpe-calc-card:nth-child(1)     { animation-delay: 0ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(2)     { animation-delay: 50ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(3)     { animation-delay: 100ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(4)     { animation-delay: 150ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(5)     { animation-delay: 200ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(6)     { animation-delay: 250ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(7)     { animation-delay: 300ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(8)     { animation-delay: 350ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(9)     { animation-delay: 400ms; }
#fv-rpe-hub .rpe-calc-card:nth-child(n+10)  { animation-delay: 420ms; }

/* --- 5. Hub Background --- */
#fv-rpe-hub {
    background-color: #fff;
}

/* --- 6. Calculator Page Header (flat) --- */
.rpe-app .rpe-page-header-dark:not(#fv-rpe-hub .rpe-page-header-dark) {
    background: var(--rpe-surface-1);
}

/* --- 7. Category Badge Styling (flat) --- */
.rpe-badge-calculate { background: var(--rpe-brand-wash);    color: var(--rpe-primary);        border: 1px solid var(--rpe-brand-rim); }
.rpe-badge-compete   { background: var(--rpe-gold-wash);     color: var(--rpe-gold);            border: 1px solid rgba(212,134,10,0.20); }
.rpe-badge-analyze   { background: rgba(59,114,200,0.08);    color: var(--rpe-electric);        border: 1px solid rgba(59,114,200,0.20); }
.rpe-badge-train     { background: var(--rpe-teal-wash);     color: var(--rpe-teal);            border: 1px solid rgba(26,138,122,0.20); }

/* --- 8. Icon Pulse on Hover --- */
@keyframes iconPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.rpe-calc-card:hover .rpe-calc-icon {
    animation: iconPulse 0.35s ease;
}

/* --- 9. Card Hover (flat) --- */
.rpe-calc-card:hover {
    background: var(--rpe-gray-50);
}

/* --- 10. Results Card (flat) --- */
.rpe-hero-result {
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    position: relative;
    overflow: hidden;
}
.rpe-hero-result::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--rpe-primary);
}

/* --- 11. RPE Zone Badge --- */
.rpe-zone-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-1);
    padding: var(--rpe-space-1) var(--rpe-space-3);
    border-radius: var(--rpe-radius-full);
    font-size: var(--rpe-fs-xs);
    font-weight: var(--rpe-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.rpe-zone-badge--easy     { background: var(--rpe-zone-easy-wash);  color: var(--rpe-zone-easy); }
.rpe-zone-badge--moderate { background: var(--rpe-zone-work-wash);  color: var(--rpe-zone-moderate); }
.rpe-zone-badge--hard     { background: var(--rpe-zone-hard-wash);  color: var(--rpe-zone-hard); }
.rpe-zone-badge--max      { background: var(--rpe-zone-max-wash);   color: var(--rpe-zone-max); }

/* --- 12. Strength Level Badge --- */
.rpe-level-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-1);
    padding: var(--rpe-space-1) var(--rpe-space-3);
    border-radius: var(--rpe-radius-full);
    font-size: var(--rpe-fs-xs);
    font-weight: var(--rpe-weight-semibold);
}
.rpe-level-badge--beginner     { background: rgba(139,149,165,0.12); color: var(--rpe-level-beginner); }
.rpe-level-badge--novice       { background: rgba(46,204,113,0.10);  color: var(--rpe-level-novice); }
.rpe-level-badge--intermediate { background: rgba(30,64,175,0.10);   color: var(--rpe-level-intermediate); }
.rpe-level-badge--advanced     { background: rgba(190,18,60,0.10);   color: var(--rpe-level-advanced); }
.rpe-level-badge--elite        { background: rgba(217,119,6,0.10);   color: var(--rpe-level-elite); }

/* --- 13. Calculate Button (prominent CTA) --- */
.rpe-btn-calculate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rpe-space-2);
    width: 100%;
    padding: var(--rpe-space-4) var(--rpe-space-6);
    background: var(--rpe-primary);
    color: var(--rpe-surface-1);
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-md);
    font-weight: var(--rpe-weight-semibold);
    border: none;
    border-radius: var(--rpe-radius);
    cursor: pointer;
    transition: background var(--rpe-transition), box-shadow var(--rpe-transition);
    box-shadow: var(--rpe-shadow-sm);
    margin-top: var(--rpe-space-5);
    min-height: 44px;
}
.rpe-btn-calculate:hover {
    background: var(--rpe-primary-hover);
    box-shadow: var(--rpe-shadow-md);
}
.rpe-btn-calculate:active {
    transform: translateY(1px);
}
.rpe-btn-calculate svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.rpe-btn-calculate:disabled,
.rpe-btn-calculate[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.rpe-btn-calculate.is-calculated {
    background: var(--rpe-brand-deep);
    box-shadow: none;
}
.rpe-btn-calculate.is-calculated::before {
    content: '✓ ';
    font-weight: var(--rpe-weight-bold);
}
.rpe-btn-calculate.is-calculated:hover {
    background: var(--rpe-primary-active);
}

/* --- Result highlight (primary result numbers) --- */
.rpe-result-highlight {
    color: var(--rpe-primary);
    font-weight: var(--rpe-weight-bold);
    font-size: 1.15em;
}

/* --- 14. Chart Container --- */
.rpe-chart-container {
    position: relative;
    width: 100%;
    padding: var(--rpe-space-4);
    background: var(--rpe-surface);
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius);
}
.rpe-chart-container canvas {
    max-height: 320px;
}

/* --- 15. Modern Table Styling --- */
.rpe-modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--rpe-border);
    border-radius: var(--rpe-radius);
    overflow: hidden;
    font-size: var(--rpe-fs-sm);
}
.rpe-modern-table thead th {
    background: var(--rpe-navy);
    color: var(--rpe-surface-1);
    font-weight: var(--rpe-weight-semibold);
    padding: var(--rpe-space-3) var(--rpe-space-4);
    text-align: left;
    font-size: var(--rpe-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--rpe-primary);
}
.rpe-modern-table tbody td {
    padding: var(--rpe-space-3) var(--rpe-space-4);
    border-bottom: 1px solid var(--rpe-border);
    color: var(--rpe-text-primary);
}
.rpe-modern-table tbody tr:nth-child(even) td {
    background: var(--rpe-gray-50);
}
.rpe-modern-table tbody tr:hover td {
    background: var(--rpe-primary-light);
}
.rpe-modern-table tbody tr:last-child td {
    border-bottom: none;
}
.rpe-modern-table .rpe-cell-highlight {
    background: var(--rpe-primary-light);
    font-weight: var(--rpe-weight-semibold);
}
.rpe-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--rpe-radius);
}

/* --- Mobile guard --- */
@media (max-width: 768px) {
    .rpe-calc-card:hover .rpe-calc-icon { animation: none; }
    .rpe-calc-card:hover { background: var(--rpe-surface); box-shadow: none; }
    .rpe-calc-card[data-category="calculate"]:hover,
    .rpe-calc-card[data-category="compete"]:hover,
    .rpe-calc-card[data-category="analyze"]:hover,
    .rpe-calc-card[data-category="train"]:hover { box-shadow: none; }
}

/* --- Reduced-motion guard --- */
@media (prefers-reduced-motion: reduce) {
    #fv-rpe-hub .rpe-calc-card { animation: none; }
    .rpe-calc-card:hover .rpe-calc-icon { animation: none; }
}

/* Utility: muted text color */
.rpe-text-muted {
    color: var(--rpe-text-muted);
}

/* ============================================================
   SIGN IN / ACCOUNT BUTTON (NAV)
   ============================================================ */
.rpe-nav-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--rpe-border-1);
    color: var(--rpe-fg-1);
    font-weight: 600;
    border-radius: var(--rpe-radius-sm);
    padding: 6px 14px;
    font-size: var(--rpe-fs-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.rpe-nav-signin-btn:hover {
    background: var(--rpe-primary);
    border-color: var(--rpe-primary);
    color: #fff;
}
.rpe-nav-signin-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.rpe-nav-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rpe-primary);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--rpe-radius-sm);
    padding: 6px 14px;
    font-size: var(--rpe-fs-sm);
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.rpe-nav-account-btn:hover {
    background: var(--rpe-primary-hover);
}
.rpe-nav-account-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.rpe-account-dropdown {
    min-width: 200px;
}
.rpe-account-dropdown-header {
    padding: 8px 16px 4px;
    font-size: var(--rpe-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rpe-text-muted);
}
.rpe-account-dropdown-divider {
    height: 1px;
    background: var(--rpe-border-1);
    margin: 6px 0;
}
.rpe-nav-signout {
    color: var(--rpe-error) !important;
}
.rpe-nav-signout:hover {
    background: var(--rpe-error-light) !important;
}

/* ============================================================
   IMAGE INTEGRATION - GENERATED VISUALS
   ============================================================ */

/* Category section images on hub */
.rpe-category-img {
    width: 48px;
    height: 48px;
    border-radius: var(--rpe-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Login gate hero image */
.rpe-login-gate__hero-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto var(--rpe-space-4);
    display: block;
    border-radius: var(--rpe-radius-lg);
}

/* Get-started onboarding hero */
.rpe-onboarding-hero {
    margin-bottom: var(--rpe-space-4);
    border-radius: var(--rpe-radius-lg);
    overflow: hidden;
    box-shadow: var(--rpe-shadow-md);
}
.rpe-onboarding-hero__img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

/* Calculator page header hero image - subtle banner */
.rpe-app .rpe-page-header-hero-img {
    width: 100% !important;
    height: 120px !important;
    max-height: 120px !important;
    object-fit: cover !important;
    object-position: center 30%;
    display: block;
    border-radius: var(--rpe-radius-lg);
    margin-bottom: var(--rpe-space-4);
    box-shadow: var(--rpe-shadow-sm);
    opacity: 0.85;
}

@media (max-width: 600px) {
    .rpe-category-img {
        width: 36px;
        height: 36px;
    }
    .rpe-login-gate__hero-img {
        width: 120px;
        height: 120px;
    }
    .rpe-onboarding-hero__img {
        max-height: 160px;
    }
    .rpe-page-header-hero-img {
        max-height: 140px;
    }
}

/* ============================================================
   RPE CHART - REDESIGNED (heat-map, gauge, scale cards)
   ============================================================ */

/* --- Visual RPE Gauge Bar --- */
.rpe-chart-gauge-card {
    padding: var(--rpe-space-4) var(--rpe-space-5);
    background: var(--rpe-surface-1);
}
.rpe-chart-gauge {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    border-radius: var(--rpe-radius-md);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.rpe-chart-gauge__segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    color: #fff;
    min-height: 56px;
    transition: transform 0.15s ease;
}
.rpe-chart-gauge__segment:hover {
    transform: scaleY(1.08);
    z-index: 1;
}
/* WCAG AA: lighter backgrounds (RPE 8 and below) need dark text */
.rpe-chart-gauge__segment--light {
    color: #1A1A1F;
}
.rpe-chart-gauge__number {
    font-size: var(--rpe-fs-lg);
    font-weight: 800;
    line-height: 1;
    font-family: var(--rpe-font-heading);
}
.rpe-chart-gauge__rir {
    font-size: 10px;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 2px;
}
.rpe-chart-gauge__labels {
    display: flex;
    justify-content: space-between;
    padding: var(--rpe-space-2) var(--rpe-space-1) 0;
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    font-weight: 500;
}
.rpe-chart-gauge__label-center {
    font-weight: 700;
    color: var(--rpe-fg-1);
}

/* --- Heat-map Table --- */
.rpe-chart-heatmap th,
.rpe-chart-heatmap td {
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.rpe-chart-th-reps {
    background: var(--rpe-surface-2) !important;
    color: var(--rpe-fg-1) !important;
    font-weight: 700;
    width: 60px;
}
/* Sticky first column (RPE label) on mobile */
.rpe-chart-heatmap th[scope="row"],
.rpe-chart-heatmap .rpe-chart-th-rpe {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--rpe-surface-2);
}
.rpe-chart-th-rpe {
    font-weight: 700 !important;
    font-size: var(--rpe-fs-xs) !important;
    padding: 10px 6px !important;
    border: none !important;
    letter-spacing: 0.02em;
}
.rpe-chart-th-value {
    display: block;
    font-size: var(--rpe-fs-sm);
}
.rpe-chart-td-reps {
    background: #1a1a2e !important;
    color: #fff !important;
    font-weight: 800;
    font-size: var(--rpe-fs-sm);
    text-align: center;
}
.rpe-chart-heatmap tbody td {
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: var(--rpe-fs-sm);
    padding: 8px 6px;
    border: 1px solid rgba(0,0,0,0.04);
}
.rpe-chart-heatmap tbody td:hover {
    background: rgba(196, 18, 48, 0.28) !important;
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(196, 18, 48, 0.2);
    font-weight: 700;
}

/* --- RPE Scale Cards Grid --- */
.rpe-chart-scale-grid {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-2);
}
.rpe-chart-scale-item {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-3);
    padding: var(--rpe-space-2-5) var(--rpe-space-3);
    border-radius: var(--rpe-radius-sm);
    transition: background 0.15s ease;
    border: 1px solid transparent;
}
.rpe-chart-scale-item:hover {
    background: var(--rpe-surface-2);
    border-color: var(--rpe-border-1);
}
.rpe-chart-scale-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--rpe-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.rpe-chart-scale-rpe {
    color: #fff;
    font-size: var(--rpe-fs-base);
    font-weight: 800;
    font-family: var(--rpe-font-heading);
}
.rpe-chart-scale-info {
    flex: 1;
    min-width: 0;
}
.rpe-chart-scale-header {
    display: flex;
    align-items: baseline;
    gap: var(--rpe-space-2);
    font-size: var(--rpe-fs-sm);
}
.rpe-chart-scale-header strong {
    color: var(--rpe-fg-1);
}
.rpe-chart-scale-rir {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    background: var(--rpe-surface-2);
    padding: 1px 6px;
    border-radius: var(--rpe-radius-xs);
    font-weight: 600;
}
.rpe-chart-scale-desc {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-secondary);
    margin: 2px 0 0;
    line-height: 1.4;
}

/* --- RPE Chart responsive --- */
@media (max-width: 600px) {
    .rpe-chart-gauge__segment {
        padding: 8px 2px;
        min-height: 44px;
    }
    .rpe-chart-gauge__number {
        font-size: var(--rpe-fs-sm);
    }
    .rpe-chart-gauge__rir {
        font-size: 8px;
    }
    .rpe-chart-scale-badge {
        width: 36px;
        height: 36px;
    }
    .rpe-chart-scale-rpe {
        font-size: var(--rpe-fs-sm);
    }
    .rpe-chart-heatmap tbody td {
        padding: 6px 3px;
        font-size: 11px;
    }
    .rpe-chart-th-rpe {
        padding: 8px 3px !important;
    }
}

/* ============================================================
   GUIDES, COMPARISONS, LIFT-RPE PAGES
   ============================================================ */

/* --- Content breadcrumb --- */
.rpe-content-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-2);
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    margin-bottom: var(--rpe-space-4);
    flex-wrap: wrap;
}
.rpe-content-breadcrumb a {
    color: var(--rpe-primary);
    text-decoration: none;
    font-weight: 500;
}
.rpe-content-breadcrumb a:hover {
    text-decoration: underline;
}
.rpe-content-breadcrumb__sep {
    color: var(--rpe-gray-300);
    font-size: var(--rpe-fs-xs);
}
.rpe-content-breadcrumb__current {
    color: var(--rpe-text-primary);
    font-weight: 600;
}

/* --- Content hero image --- */
.rpe-content-hero {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center 40%;
    border-radius: var(--rpe-radius-lg);
    margin-bottom: var(--rpe-space-5);
    box-shadow: var(--rpe-shadow-md);
}
@media (max-width: 768px) {
    .rpe-content-hero {
        height: 140px;
        border-radius: var(--rpe-radius);
    }
}

/* --- SEO page layout (guides + comparisons) --- */
.rpe-seo-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--rpe-space-6) 0;
}
.rpe-seo-container {
    background: var(--rpe-surface-1);
    border-radius: var(--rpe-radius-lg);
    padding: var(--rpe-space-6) var(--rpe-space-8);
    box-shadow: var(--rpe-shadow-sm);
}
.rpe-seo-title {
    font-family: var(--rpe-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--rpe-fg-1);
    line-height: 1.2;
    margin: 0 0 var(--rpe-space-2);
}
.rpe-seo-subtitle {
    font-size: var(--rpe-fs-base);
    color: var(--rpe-text-secondary);
    margin: 0 0 var(--rpe-space-5);
    line-height: 1.5;
}

/* --- Guide Table of Contents --- */
.rpe-guide-toc {
    background: var(--rpe-gray-50);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius);
    padding: var(--rpe-space-4) var(--rpe-space-5);
    margin-bottom: var(--rpe-space-6);
}
.rpe-guide-toc__title {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-base);
    font-weight: 700;
    color: var(--rpe-fg-1);
    margin: 0 0 var(--rpe-space-3);
}
.rpe-guide-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-1);
}
.rpe-guide-toc__item {
    line-height: 1.5;
}
.rpe-guide-toc__item a {
    color: var(--rpe-primary);
    text-decoration: none;
    font-size: var(--rpe-fs-sm);
    font-weight: 500;
}
.rpe-guide-toc__item a:hover {
    text-decoration: underline;
}
.rpe-guide-toc__item--h2 {
    font-weight: 600;
}
.rpe-guide-toc__item--h3 {
    padding-left: var(--rpe-space-4);
    font-size: var(--rpe-fs-xs);
}

/* --- Guide content body --- */
.rpe-guide-content {
    font-size: var(--rpe-fs-base);
    line-height: 1.75;
    color: var(--rpe-text-primary);
}
.rpe-guide-content h2 {
    font-family: var(--rpe-font-heading) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--rpe-fg-1) !important;
    margin: var(--rpe-space-8) 0 var(--rpe-space-3) !important;
    padding-bottom: var(--rpe-space-2) !important;
    border-bottom: 2px solid var(--rpe-primary) !important;
    line-height: 1.3 !important;
}
.rpe-guide-content h3 {
    font-family: var(--rpe-font-heading) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--rpe-fg-1) !important;
    margin: var(--rpe-space-6) 0 var(--rpe-space-2) !important;
}
.rpe-guide-content h4 {
    font-family: var(--rpe-font-heading) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: var(--rpe-fg-1) !important;
    margin: var(--rpe-space-4) 0 var(--rpe-space-2) !important;
}
.rpe-guide-content p {
    margin: 0 0 var(--rpe-space-4) !important;
    line-height: 1.75 !important;
}
.rpe-guide-content ul, .rpe-guide-content ol {
    margin: 0 0 var(--rpe-space-4) !important;
    padding-left: var(--rpe-space-6) !important;
}
.rpe-guide-content ul {
    list-style-type: disc !important;
}
.rpe-guide-content ol {
    list-style-type: decimal !important;
}
.rpe-guide-content li {
    margin-bottom: var(--rpe-space-2) !important;
    line-height: 1.6 !important;
}
.rpe-guide-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--rpe-space-4) 0;
    font-size: var(--rpe-fs-sm);
}
.rpe-guide-content th,
.rpe-guide-content td {
    padding: var(--rpe-space-2) var(--rpe-space-3);
    border: 1px solid var(--rpe-border-1);
    text-align: left;
}
.rpe-guide-content th {
    background: #1a1a2e !important;
    color: #fff !important;
    font-weight: 700 !important;
}
.rpe-guide-content blockquote {
    border-left: 4px solid var(--rpe-primary);
    padding: var(--rpe-space-3) var(--rpe-space-4);
    margin: var(--rpe-space-4) 0;
    background: var(--rpe-gray-50);
    color: var(--rpe-text-secondary);
    font-style: italic;
}
.rpe-guide-content code {
    background: var(--rpe-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.rpe-guide-content strong {
    font-weight: 700;
    color: var(--rpe-fg-1);
}

/* --- Related tools / related content sections --- */
.rpe-related-tools,
.rpe-related-content {
    margin-top: var(--rpe-space-8);
    padding-top: var(--rpe-space-6);
    border-top: 1px solid var(--rpe-border-1);
}
.rpe-related-tools__title {
    font-family: var(--rpe-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rpe-fg-1);
    margin: 0 0 var(--rpe-space-4);
}
.rpe-related-tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--rpe-space-4);
}
.rpe-related-tools__card {
    display: block;
    padding: var(--rpe-space-4);
    background: var(--rpe-surface-1);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.rpe-related-tools__card:hover {
    border-color: var(--rpe-brand);
    box-shadow: 0 2px 8px var(--rpe-brand-wash);
}
.rpe-related-tools__card-title {
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-base);
    font-weight: 600;
    color: var(--rpe-fg-1);
    margin: 0 0 var(--rpe-space-2);
}
.rpe-related-tools__card-description {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-fg-3);
    margin: 0;
    line-height: 1.5;
}

/* --- Hub category heading (from other agent) --- */
.rpe-hub-category-heading {
    font-family: var(--rpe-font-heading);
    font-weight: 700;
    font-size: var(--rpe-fs-base);
    color: var(--rpe-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .rpe-seo-container {
        padding: var(--rpe-space-4) var(--rpe-space-4);
    }
    .rpe-seo-title {
        font-size: 1.5rem;
    }
    .rpe-guide-content h2 {
        font-size: 1.25rem;
    }
}

/* ============================================================
   ONBOARDING / GET STARTED PAGE
   ============================================================ */

/* Stepper card */
.rpe-stepper-card {
    padding: var(--rpe-space-5) var(--rpe-space-6);
}

/* Stepper container */
.rpe-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

/* Each step item: dot+label stacked, connector between */
.rpe-stepper__item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.rpe-stepper__item:last-child {
    flex: 0 0 auto;
}

.rpe-stepper__dot-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rpe-space-1-5);
    flex-shrink: 0;
}

/* The connecting line between steps */
.rpe-stepper__connector {
    flex: 1;
    height: 2px;
    margin: 0 var(--rpe-space-2);
    margin-bottom: var(--rpe-space-5);
    border-radius: 2px;
    transition: background 0.3s ease;
}

/* Step dot base */
.rpe-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--rpe-fs-sm);
    font-weight: 700;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

/* Step states */
.rpe-step-active {
    background: var(--rpe-primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--rpe-primary-light);
}

.rpe-step-done {
    background: var(--rpe-primary);
    color: #fff;
    box-shadow: none;
}

.rpe-step-idle {
    background: var(--rpe-gray-200);
    color: var(--rpe-gray-500);
    box-shadow: none;
}

/* Step label */
.rpe-step-label {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    white-space: nowrap;
    font-weight: 500;
    text-align: center;
}

.rpe-step-label--active {
    color: var(--rpe-primary);
    font-weight: 700;
}

/* ---- Goal selector cards ---- */
.rpe-goal-list {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-3);
}

.rpe-goal-card {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-4);
    width: 100%;
    padding: var(--rpe-space-4) var(--rpe-space-5);
    background: var(--rpe-surface-1);
    border: 1.5px solid var(--rpe-gray-200);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
}

.rpe-goal-card:hover {
    border-color: var(--rpe-primary);
    box-shadow: var(--rpe-shadow-md);
}

.rpe-goal-card--selected {
    border-color: var(--rpe-primary) !important;
    box-shadow: var(--rpe-shadow-sm);
}

.rpe-goal-card__icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.rpe-goal-card__body {
    flex: 1;
    min-width: 0;
}

.rpe-goal-card__label {
    font-weight: 600;
    font-size: var(--rpe-fs-15);
    color: var(--rpe-fg-1, #1a1a1f);
    margin-bottom: 2px;
}

.rpe-goal-card__desc {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-muted);
    line-height: 1.4;
}

.rpe-goal-card__check-wrap {
    flex-shrink: 0;
    margin-left: var(--rpe-space-2);
}

.rpe-goal-card__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--rpe-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease;
}

/* ---- Section divider ---- */
.rpe-section-divider-top {
    padding-top: var(--rpe-space-5);
    border-top: 1px solid var(--rpe-gray-100);
    margin-top: var(--rpe-space-2);
}

/* ---- Lifts header ---- */
.rpe-lifts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rpe-space-3);
    margin-bottom: var(--rpe-space-4);
}

.rpe-lifts-header__title {
    font-weight: 600;
    font-size: var(--rpe-fs-15);
    color: var(--rpe-fg-1, #1a1a1f);
}

/* ---- Profile summary ---- */
.rpe-profile-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--rpe-space-3) var(--rpe-space-5);
    padding: var(--rpe-space-4);
    background: var(--rpe-gray-50);
    border-radius: 8px;
    font-size: var(--rpe-fs-sm);
}

/* ---- Strength rankings ---- */
.rpe-rankings-list {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-5);
}

.rpe-rank-row {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-1-5);
}

.rpe-rank-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rpe-space-2);
}

.rpe-rank-row__lift {
    font-weight: 600;
    font-size: var(--rpe-fs-15);
    color: var(--rpe-fg-1, #1a1a1f);
}

.rpe-rank-row__meta {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-2);
    flex-shrink: 0;
}

.rpe-rank-bar {
    width: 100%;
    height: 8px;
    background: var(--rpe-gray-100);
    border-radius: 100px;
    overflow: hidden;
}

.rpe-rank-bar__fill {
    height: 100%;
    background: var(--rpe-primary);
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 4px;
}

.rpe-rank-row__scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
}

.rpe-rank-row__scale-end {
    flex-shrink: 0;
}

.rpe-rank-row__pct {
    font-weight: 700;
    color: var(--rpe-primary);
    font-size: var(--rpe-fs-sm);
}

/* Overall score block */
.rpe-overall-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rpe-space-1);
    padding: var(--rpe-space-5);
    background: var(--rpe-primary-light);
    border-radius: 12px;
    text-align: center;
    margin-top: var(--rpe-space-2);
}

.rpe-overall-score__label {
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
    color: var(--rpe-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rpe-overall-score__value {
    font-size: var(--rpe-fs-3xl);
    font-weight: 800;
    color: var(--rpe-primary);
    line-height: 1;
}

/* ---- Training zone rows ---- */
.rpe-zones-list {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-2);
}

.rpe-zone-row {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-4);
    padding: var(--rpe-space-3) var(--rpe-space-4);
    border-left: 4px solid;
    background: var(--rpe-gray-50);
    border-radius: 0 8px 8px 0;
}

.rpe-zone-row__rpe {
    font-weight: 700;
    font-size: var(--rpe-fs-sm);
    white-space: nowrap;
    flex-shrink: 0;
    width: 52px;
    color: var(--rpe-fg-1, #1a1a1f);
}

.rpe-zone-row__body {
    flex: 1;
    min-width: 0;
}

.rpe-zone-row__label {
    font-weight: 600;
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-fg-1, #1a1a1f);
}

.rpe-zone-row__pct {
    flex-shrink: 0;
    font-size: var(--rpe-fs-sm);
    font-weight: 700;
    color: var(--rpe-text-muted);
    white-space: nowrap;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .rpe-stepper-card {
        padding: var(--rpe-space-4);
    }

    .rpe-step-label {
        display: none;
    }

    .rpe-goal-card {
        padding: var(--rpe-space-3) var(--rpe-space-4);
    }

    .rpe-goal-card__icon {
        font-size: 1.4rem;
        width: 32px;
    }

    .rpe-profile-summary {
        grid-template-columns: 1fr;
    }

    .rpe-zone-row {
        flex-wrap: wrap;
        gap: var(--rpe-space-2);
    }
}

/* Print Stylesheet - Hide non-essential UI for clean printing */
@media print {

    /* --- Page margins --- */
    @page { margin: 1.5cm; }

    /* --- Hide non-essential UI elements --- */
    .rpe-header,
    .rpe-mobile-nav,
    .rpe-footer,
    .rpe-related-tools,
    .rpe-faq-section,
    .rpe-breadcrumbs,
    .rpe-btn-calculate,
    .rpe-btn-download-pdf,
    .rpe-ecosystem-banner,
    #wpadminbar,
    .site-header,
    .site-footer,
    .sidebar {
        display: none !important;
    }

    /* --- App container --- */
    .rpe-app {
        max-width: 100%;
        margin: 0;
        padding: 0;
        font-size: 11pt;
        color: var(--rpe-fg-1);
        background: var(--rpe-surface-1);
    }

    /* --- Cards: solid borders, no shadows, no radius --- */
    .rpe-card {
        border: 1px solid var(--rpe-border-2) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* --- Tables: ensure borders print --- */
    table {
        border-collapse: collapse;
        border: 1px solid var(--rpe-border-2);
        width: 100%;
    }

    table th,
    table td {
        border: 1px solid var(--rpe-border-2);
    }

    /* --- Charts and images --- */
    img,
    .rpe-chart-container,
    canvas {
        max-width: 100%;
        page-break-inside: avoid;
    }

    /* --- Suppress URL display after links --- */
    a[href]::after {
        content: none !important;
    }

    /* --- Avoid page breaks inside key blocks --- */
    .rpe-result-hero,
    .rpe-table,
    .rpe-chart-container {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   HUB PAGE — rpe-hub__* BEM components
   Implements: HUB.md (designer-2), DESIGN.md (designer-1)
   ========================================================================== */

/* Hub wrapper */
.rpe-hub {
    background: var(--rpe-bg);
    min-height: 100vh;
}

/* ── Hero section ─────────────────────────────────────────────────────────── */
.rpe-hub__hero {
    padding: 64px var(--rpe-gap) 48px;
    max-width: var(--rpe-container);
    margin: 0 auto;
}

.rpe-hub__hero-heading {
    font-family: var(--rpe-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--rpe-fg-1);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 8px;
}

.rpe-hub__hero-subhead {
    font-size: 1.0625rem;
    color: var(--rpe-fg-2);
    margin: 0 0 40px;
    font-weight: 400;
}

/* Hero card row */
.rpe-hub__hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rpe-gap);
}

@media (max-width: 599px) {
    .rpe-hub__hero-row {
        grid-template-columns: 1fr;
    }
}

/* Individual hero card */
.rpe-hub__hero-card {
    background: var(--rpe-surface-1);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius-lg);
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    position: relative;
    overflow: hidden;
}

.rpe-hub__hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rpe-brand);
}

@media (hover: hover) {
    .rpe-hub__hero-card:hover {
        box-shadow: 0 4px 20px rgba(26, 26, 31, 0.10);
        border-color: var(--rpe-border-2);
        transform: translateY(-2px);
    }
}

.rpe-hub__hero-card:focus-visible {
    outline: 2px solid var(--rpe-brand);
    outline-offset: 2px;
    box-shadow: none;
}

.rpe-hub__hero-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rpe-brand);
}

.rpe-hub__hero-card-title {
    font-family: var(--rpe-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--rpe-fg-1);
    line-height: 1.2;
}

.rpe-hub__hero-card-desc {
    font-size: 0.9375rem;
    color: var(--rpe-fg-2);
    line-height: 1.5;
    flex: 1;
}

.rpe-hub__hero-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rpe-brand);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.rpe-hub__hero-card-cta::after {
    content: '→';
    transition: transform 0.18s ease;
}

@media (hover: hover) {
    .rpe-hub__hero-card:hover .rpe-hub__hero-card-cta::after {
        transform: translateX(4px);
    }
}

/* ── Category nav strip ───────────────────────────────────────────────────── */
.rpe-hub__cat-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--rpe-bg);
    border-bottom: 1px solid var(--rpe-border-1);
    padding: 0 var(--rpe-gap);
    /* Transition for scroll-state shadow */
    transition: box-shadow 0.2s ease;
}

.rpe-hub__cat-nav--scrolled {
    box-shadow: 0 2px 12px rgba(26, 26, 31, 0.08);
}

.rpe-hub__cat-nav-inner {
    max-width: var(--rpe-container);
    margin: 0 auto;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.rpe-hub__cat-nav-inner::-webkit-scrollbar {
    display: none;
}

.rpe-hub__cat-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--rpe-space-2) var(--rpe-space-5);
    border-radius: var(--rpe-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rpe-fg-2);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    min-height: 44px;
}

@media (hover: hover) {
    .rpe-hub__cat-pill:hover {
        background: var(--rpe-surface-2);
        color: var(--rpe-fg-1);
    }
}

.rpe-hub__cat-pill:focus-visible {
    outline: 2px solid var(--rpe-brand);
    outline-offset: 2px;
}

.rpe-hub__cat-pill--active {
    background: var(--rpe-fg-1);
    color: var(--rpe-bg);
    border-color: var(--rpe-fg-1);
}

/* Category-specific active states */
.rpe-hub__cat-pill--compete.rpe-hub__cat-pill--active {
    background: var(--rpe-gold);
    border-color: var(--rpe-gold);
    color: var(--rpe-surface-1);
}

.rpe-hub__cat-pill--analyze.rpe-hub__cat-pill--active {
    background: var(--rpe-level-intermediate);
    border-color: var(--rpe-level-intermediate);
    color: var(--rpe-surface-1);
}

.rpe-hub__cat-pill--train.rpe-hub__cat-pill--active {
    background: var(--rpe-teal);
    border-color: var(--rpe-teal);
    color: var(--rpe-surface-1);
}

/* ── Category sections ────────────────────────────────────────────────────── */
.rpe-hub__section {
    padding: 56px var(--rpe-gap) 48px;
    max-width: var(--rpe-container);
    margin: 0 auto;
    scroll-margin-top: calc(56px + 56px); /* sticky topbar + cat nav */
}

@media (max-width: 599px) {
    .rpe-hub__section {
        padding: 40px var(--rpe-gap) 32px;
    }
}

/* Section header with left border accent */
.rpe-hub__section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--rpe-border-2);
}

.rpe-hub__section-header--compete {
    border-left-color: var(--rpe-gold);
}

.rpe-hub__section-header--analyze {
    border-left-color: var(--rpe-level-intermediate);
}

.rpe-hub__section-header--train {
    border-left-color: var(--rpe-teal);
}

.rpe-hub__section-title {
    font-family: var(--rpe-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rpe-fg-1);
    letter-spacing: -0.01em;
    margin: 0;
}

.rpe-hub__section-count {
    font-size: 0.8125rem;
    color: var(--rpe-fg-3);
    font-weight: 500;
}

/* Tool card grid */
.rpe-hub__tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rpe-gap);
}

@media (max-width: 1023px) {
    .rpe-hub__tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .rpe-hub__tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Standard tool card */
.rpe-hub__tool-card {
    background: var(--rpe-surface-1);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    min-height: 44px;
}

@media (hover: hover) {
    .rpe-hub__tool-card:hover {
        box-shadow: 0 2px 12px rgba(26, 26, 31, 0.08);
        border-color: var(--rpe-border-2);
        transform: translateY(-1px);
    }
}

.rpe-hub__tool-card:focus-visible {
    outline: 2px solid var(--rpe-brand);
    outline-offset: 2px;
}

.rpe-hub__tool-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rpe-fg-1);
    line-height: 1.3;
}

.rpe-hub__tool-card-desc {
    font-size: 0.8125rem;
    color: var(--rpe-fg-3);
    line-height: 1.5;
    flex: 1;
}

/* Featured tool card (Gym Mode) */
.rpe-hub__tool-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-color: var(--rpe-teal);
    background: color-mix(in srgb, var(--rpe-teal) 5%, var(--rpe-surface-1));
}

@media (max-width: 599px) {
    .rpe-hub__tool-card--featured {
        flex-direction: column;
        align-items: flex-start;
    }
}

.rpe-hub__tool-card--featured .rpe-hub__tool-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--rpe-teal);
}

.rpe-hub__tool-card--featured .rpe-hub__tool-card-desc {
    font-size: 0.875rem;
    color: var(--rpe-fg-2);
}

.rpe-hub__tool-card-featured-badge {
    flex-shrink: 0;
    background: var(--rpe-teal);
    color: var(--rpe-surface-1);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--rpe-space-1) var(--rpe-space-3);
    border-radius: var(--rpe-radius-sm);
}

/* ── Depth separator ──────────────────────────────────────────────────────── */
.rpe-hub__depth-separator {
    max-width: var(--rpe-container);
    margin: 8px auto 32px;
    padding: 0 var(--rpe-gap);
}

.rpe-hub__depth-separator-inner {
    background: var(--rpe-surface-2);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rpe-hub__depth-separator-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rpe-border-1);
    border-radius: 50%;
    font-size: 1rem;
}

.rpe-hub__depth-separator-text {
    font-size: 0.875rem;
    color: var(--rpe-fg-3);
    line-height: 1.4;
}

.rpe-hub__depth-separator-text strong {
    color: var(--rpe-fg-1);
    font-weight: 600;
}

/* ── Compact stat card (for use inside hero cards) ────────────────────────── */
.rpe-hub__stat-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--rpe-surface-2);
    border-radius: var(--rpe-radius-sm);
    margin-top: auto;
}

.rpe-hub__stat-compact-value {
    font-family: var(--rpe-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rpe-fg-1);
    letter-spacing: -0.02em;
    line-height: 1;
}

.rpe-hub__stat-compact-label {
    font-size: 0.75rem;
    color: var(--rpe-fg-3);
    font-weight: 500;
    line-height: 1.3;
}

/* ── Mobile touch target improvements ────────────────────────────────────── */
@media (max-width: 599px) {
    .rpe-hub__tool-card {
        min-height: 64px;
        padding: 16px;
    }

    .rpe-hub__cat-pill {
        min-height: 44px;
        padding: 10px 16px;
    }

    .rpe-hub__hero-card {
        padding: 24px 20px 20px;
    }
}

/* ==========================================================================
   CATEGORY ICONS & VISUAL ASSETS
   ========================================================================== */

.rpe-category-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rpe-surface-2);
    border-radius: var(--rpe-radius-lg);
    flex-shrink: 0;
}

.rpe-category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Icon size variants */
.rpe-category-icon--sm {
    width: 48px;
    height: 48px;
}

.rpe-category-icon--lg {
    width: 80px;
    height: 80px;
}

/* Category icon backgrounds with brand colors */
.rpe-category-icon--calculate {
    background: rgba(196, 18, 48, 0.08);
    border: 1px solid rgba(196, 18, 48, 0.20);
}

.rpe-category-icon--compete {
    background: rgba(212, 134, 10, 0.08);
    border: 1px solid rgba(212, 134, 10, 0.20);
}

.rpe-category-icon--analyze {
    background: rgba(232, 160, 32, 0.08);
    border: 1px solid rgba(232, 160, 32, 0.20);
}

.rpe-category-icon--train {
    background: rgba(107, 112, 128, 0.08);
    border: 1px solid rgba(107, 112, 128, 0.20);
}

/* ==========================================================================
   DATA VISUALIZATION & CHARTS
   ========================================================================== */

.rpe-chart-container {
    background: var(--rpe-surface-1);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.rpe-chart-title {
    font-size: var(--rpe-fs-base);
    font-weight: 600;
    color: var(--rpe-fg-1);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* SVG/Canvas chart sizing */
.rpe-chart-svg,
.rpe-chart-canvas {
    width: 100%;
    height: auto;
    min-height: 240px;
}

/* Chart legend styling */
.rpe-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rpe-border-1);
    font-size: var(--rpe-fs-xs);
}

.rpe-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpe-chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Bar chart specific styling */
.rpe-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 240px;
    justify-content: space-around;
}

.rpe-bar {
    flex: 1;
    background: var(--rpe-brand);
    border-radius: var(--rpe-radius-sm) var(--rpe-radius-sm) 0 0;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.rpe-bar:hover {
    background: var(--rpe-brand-deep);
    transform: scaleY(1.05);
}

.rpe-bar-label {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-fg-3);
    text-align: center;
    margin-top: 8px;
}

/* Line chart wrapper */
.rpe-line-chart {
    position: relative;
    width: 100%;
    min-height: 240px;
}

/* Zone visualization (RPE color bands) */
.rpe-zone-band {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: var(--rpe-radius-sm);
    font-size: var(--rpe-fs-xs);
    font-weight: 500;
}

.rpe-zone-band--easy {
    background: var(--rpe-zone-easy-wash);
    border-left: 4px solid var(--rpe-zone-easy);
    color: var(--rpe-zone-easy);
}

.rpe-zone-band--moderate {
    background: var(--rpe-zone-work-wash);
    border-left: 4px solid var(--rpe-zone-moderate);
    color: var(--rpe-zone-moderate);
}

.rpe-zone-band--hard {
    background: var(--rpe-zone-hard-wash);
    border-left: 4px solid var(--rpe-zone-hard);
    color: var(--rpe-zone-hard);
}

.rpe-zone-band--max {
    background: var(--rpe-zone-max-wash);
    border-left: 4px solid var(--rpe-zone-max);
    color: var(--rpe-zone-max);
}

/* ==========================================================================
   BADGE & LEVEL INDICATORS
   ========================================================================== */

.rpe-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--rpe-space-1) var(--rpe-space-3);
    border-radius: var(--rpe-radius-full);
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    white-space: nowrap;
}

.rpe-badge--success {
    background: var(--rpe-success-light);
    color: var(--rpe-success);
}

.rpe-badge--warning {
    background: var(--rpe-warning-light);
    color: var(--rpe-warning);
}

.rpe-badge--error {
    background: var(--rpe-error-light);
    color: var(--rpe-error);
}

.rpe-badge--info {
    background: rgba(59, 114, 200, 0.10);
    color: var(--rpe-info);
}

/* Level classification badges */
.rpe-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--rpe-radius-sm);
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
}

.rpe-level-badge--beginner {
    background: rgba(156, 163, 175, 0.12);
    color: var(--rpe-level-beginner);
}

.rpe-level-badge--novice {
    background: rgba(45, 155, 78, 0.12);
    color: var(--rpe-level-novice);
}

.rpe-level-badge--intermediate {
    background: rgba(59, 114, 200, 0.12);
    color: var(--rpe-level-intermediate);
}

.rpe-level-badge--advanced {
    background: rgba(196, 18, 48, 0.12);
    color: var(--rpe-level-advanced);
}

.rpe-level-badge--elite {
    background: rgba(212, 134, 10, 0.12);
    color: var(--rpe-level-elite);
}

/* ==========================================================================
   MODERN VISUAL ENHANCEMENTS
   ========================================================================== */

/* Card hover elevation effect */
.rpe-card-elevated {
    transition: all var(--rpe-transition);
}

.rpe-card-elevated:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Data stat display with prominent value */
.rpe-stat-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rpe-stat-display__value {
    font-family: var(--rpe-font-display);
    font-size: var(--rpe-fs-lg);
    font-weight: 800;
    color: var(--rpe-fg-1);
    letter-spacing: -0.02em;
    line-height: 1;
}

.rpe-stat-display__label {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-fg-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero stat grid */
.rpe-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--rpe-surface-2);
    border-radius: var(--rpe-radius-lg);
}

.rpe-stat-grid__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Progress visualization */
.rpe-progress-bar {
    height: 8px;
    background: var(--rpe-surface-2);
    border-radius: var(--rpe-radius-full);
    overflow: hidden;
}

.rpe-progress-bar__fill {
    height: 100%;
    background: var(--rpe-brand);
    border-radius: var(--rpe-radius-full);
    transition: width 0.3s ease;
}

/* Effort gauge / RPE arc styling */
.rpe-effort-arc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        from 135deg,
        var(--rpe-zone-easy) 0deg,
        var(--rpe-zone-moderate) 90deg,
        var(--rpe-zone-hard) 180deg,
        var(--rpe-zone-max) 240deg
    );
    padding: 8px;
}

.rpe-effort-arc__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rpe-surface-1);
}

.rpe-effort-arc__value {
    font-family: var(--rpe-font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--rpe-fg-1);
}

/* Responsive grid for results */
.rpe-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.rpe-results-grid__item {
    padding: 16px;
    background: var(--rpe-surface-2);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius-lg);
    text-align: center;
}

/* ==========================================================================
   FORM ENHANCEMENTS (already modernized, but adding extra polish)
   ========================================================================== */

/* Input group wrapper */
.rpe-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rpe-input-group__label {
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
    color: var(--rpe-fg-1);
    letter-spacing: -0.01em;
}

.rpe-input-group__help {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-fg-3);
    margin-top: -4px;
}

/* Input with icon */
.rpe-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.rpe-input-with-icon input {
    padding-left: 40px !important;
}

.rpe-input-with-icon__icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rpe-fg-3);
    pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS (modern polish)
   ========================================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.rpe-animate-slide-in {
    animation: slideInUp 0.3s ease-out;
}

.rpe-animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   EFFORT ARC — Signature Element
   Domain-native radial gauge for the RPE 6-10 scale.
   Replace the generic conic-gradient version above with this border-arc
   technique which supports stroke-dashoffset animation via JavaScript.
   ========================================================================== */

.rpe-effort-arc {
    position: relative;
    width: 120px;
    height: 60px;
    overflow: hidden;
}
.rpe-effort-arc__track {
    width: 120px;
    height: 120px;
    border-radius: var(--rpe-radius-full);
    border: 6px solid var(--rpe-border-1);
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
    box-sizing: border-box;
}
.rpe-effort-arc__fill {
    position: absolute;
    top: 0; left: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--rpe-radius-full);
    border: 6px solid transparent;
    border-top-color: var(--rpe-brand);
    border-right-color: var(--rpe-brand);
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(-45deg);
    box-sizing: border-box;
    transition: transform var(--rpe-transition-slow);
}
.rpe-effort-arc__label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-2xl);
    font-weight: var(--rpe-weight-bold);
    color: var(--rpe-fg-1);
}
/* Zone-colored arc fills */
.rpe-effort-arc--easy .rpe-effort-arc__fill  { border-top-color: var(--rpe-zone-6);  border-right-color: var(--rpe-zone-6); }
.rpe-effort-arc--work .rpe-effort-arc__fill  { border-top-color: var(--rpe-zone-75); border-right-color: var(--rpe-zone-75); }
.rpe-effort-arc--hard .rpe-effort-arc__fill  { border-top-color: var(--rpe-zone-85); border-right-color: var(--rpe-zone-85); }
.rpe-effort-arc--max  .rpe-effort-arc__fill  { border-top-color: var(--rpe-zone-10); border-right-color: var(--rpe-zone-10); }
/* RPE 10 max glow — qualitatively different from everything below */
.rpe-effort-arc--max .rpe-effort-arc__fill {
    filter: drop-shadow(0 0 6px var(--rpe-zone-10));
    animation: rpe-arc-pulse 1.8s ease-in-out infinite;
}
@keyframes rpe-arc-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px var(--rpe-zone-10)); }
    50%       { filter: drop-shadow(0 0 12px var(--rpe-zone-10)); }
}
/* Desktop / mobile sizing */
@media (min-width: 768px) {
    .rpe-effort-arc       { width: 200px; height: 100px; }
    .rpe-effort-arc__track,
    .rpe-effort-arc__fill { width: 200px; height: 200px; }
    .rpe-effort-arc__label { font-size: var(--rpe-fs-3xl); }
}
@media (prefers-reduced-motion: reduce) {
    .rpe-effort-arc--max .rpe-effort-arc__fill { animation: none; filter: none; }
    .rpe-effort-arc__fill { transition: none; }
}

/* ==========================================================================
   MEET COMMAND CENTER - BUTTONS
   ========================================================================== */
.meet-cmd-print-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-2) var(--rpe-space-3);
    background-color: var(--rpe-primary);
    color: var(--rpe-surface-1);
    border: none;
    border-radius: var(--rpe-radius-sm);
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}
.meet-cmd-print-btn:hover:not(:disabled) {
    background-color: var(--rpe-primary-hover);
    box-shadow: 0 2px 8px rgba(196, 18, 48, 0.3);
}
.meet-cmd-print-btn:active:not(:disabled) {
    background-color: var(--rpe-primary-active);
}
.meet-cmd-print-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.meet-cmd-print-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.meet-cmd-success-badge {
    display: inline-block;
    padding: var(--rpe-space-1) var(--rpe-space-2);
    border-radius: var(--rpe-radius-sm);
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.meet-cmd-success-high {
    background-color: rgba(34, 197, 94, 0.1);
    color: #15803d;
}
.meet-cmd-success-moderate {
    background-color: rgba(251, 146, 60, 0.1);
    color: #c2410c;
}
.meet-cmd-success-low {
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}
.meet-cmd-lift-tab {
    font-size: var(--rpe-fs-sm);
    font-weight: 500;
}

/* ==========================================================================
   COACHES DIRECTORY
   ========================================================================== */
.rpe-coaches-filter-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--rpe-space-3);
    align-items: end;
}
@media (max-width: 640px) {
    .rpe-coaches-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DAILY READINESS CHECK — COMPONENT STYLES
   ========================================================================== */

/* --- Score Hero --- */
.rpe-score-hero {
    text-align: center;
    padding: var(--rpe-space-6) var(--rpe-space-5);
}
.rpe-score-hero__number {
    font-family: var(--rpe-font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--rpe-space-2);
}
.rpe-score-hero__label {
    font-size: var(--rpe-fs-lg);
    font-weight: 700;
    color: var(--rpe-fg-1);
    margin-bottom: var(--rpe-space-2);
}
.rpe-score-hero__rec {
    max-width: 480px;
    margin: 0 auto var(--rpe-space-3);
    font-size: var(--rpe-fs-sm);
    line-height: 1.6;
}
.rpe-score-hero__adjust {
    display: inline-flex;
    align-items: center;
    gap: var(--rpe-space-2);
    background: var(--rpe-surface-2);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius-full);
    padding: var(--rpe-space-1) var(--rpe-space-4);
    font-size: var(--rpe-fs-sm);
    margin-top: var(--rpe-space-1);
}
.rpe-score-hero__adjust-label { color: var(--rpe-fg-3); }
.rpe-score-hero__adjust-value { font-weight: 700; font-size: var(--rpe-fs-base); }

/* --- Readiness question block --- */
.rpe-readiness-question {
    padding: var(--rpe-space-4) 0;
    border-bottom: 1px solid var(--rpe-border-1);
}
.rpe-readiness-question:last-of-type { border-bottom: none; }

/* Question header */
.rpe-q-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--rpe-space-3);
    gap: var(--rpe-space-2);
}
.rpe-q-label {
    font-size: var(--rpe-fs-base);
    font-weight: 600;
    color: var(--rpe-fg-1);
    margin: 0;
}
.rpe-q-value {
    font-size: var(--rpe-fs-sm);
    font-style: italic;
    white-space: nowrap;
}

/* --- Rating grid (1-5 buttons) --- */
.rpe-rating-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--rpe-space-2);
    margin-bottom: var(--rpe-space-2);
}
.rpe-btn-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--rpe-space-1);
    padding: var(--rpe-space-2) var(--rpe-space-1);
    min-height: 64px;
    border-radius: var(--rpe-radius);
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    transition: all var(--rpe-transition);
}
.rpe-rating-emoji {
    font-size: 1.5rem;
    line-height: 1;
    display: block;
}
.rpe-rating-num {
    font-size: var(--rpe-fs-xs);
    font-weight: 700;
    opacity: 0.7;
}
.rpe-rating-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-fg-3);
    padding: 0 var(--rpe-space-1);
}

/* --- 1RM optional section --- */
.rpe-readiness-1rm-section {
    padding-top: var(--rpe-space-4);
    border-top: 1px solid var(--rpe-border-1);
    margin-top: var(--rpe-space-2);
}

/* --- Submit row --- */
.rpe-submit-row {
    display: flex;
    justify-content: center;
    padding-top: var(--rpe-space-4);
}

/* --- Trend stats --- */
.rpe-trend-stats {
    display: flex;
    gap: var(--rpe-space-6);
    margin-bottom: var(--rpe-space-4);
    flex-wrap: wrap;
}
.rpe-trend-stat {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-1);
}
.rpe-trend-stat__label {
    font-size: var(--rpe-fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rpe-trend-stat__value {
    font-family: var(--rpe-font-display);
    font-size: var(--rpe-fs-xl);
    font-weight: 700;
    color: var(--rpe-fg-1);
    line-height: 1;
}

/* --- Chart actions --- */
.rpe-chart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--rpe-space-3);
}

/* --- Accent stat card (adjusted lift weights) --- */
.rpe-stat-card--accent {
    background: var(--rpe-teal-wash);
    border: 1px solid rgba(26, 138, 122, 0.25);
    border-top: 3px solid var(--rpe-teal);
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .rpe-rating-grid { gap: var(--rpe-space-1); }
    .rpe-btn-rating { min-height: 56px; padding: var(--rpe-space-1); }
    .rpe-rating-emoji { font-size: 1.25rem; }
    .rpe-score-hero__number { font-size: 2.75rem; }
    .rpe-trend-stats { gap: var(--rpe-space-4); }
    .rpe-q-header { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Login Gate
   ========================================================================== */

.rpe-login-gate {
    display: flex;
    justify-content: center;
    padding: var(--rpe-space-8) var(--rpe-space-4);
}

.rpe-login-gate__card {
    background: var(--rpe-surface-1);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius-lg);
    padding: var(--rpe-space-8);
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--rpe-shadow-md);
}

.rpe-login-gate__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--rpe-primary-light);
    color: var(--rpe-primary);
    border-radius: var(--rpe-radius-lg);
    margin-bottom: var(--rpe-space-4);
}

.rpe-login-gate__title {
    font-size: var(--rpe-fs-xl);
    font-weight: 800;
    color: var(--rpe-text-primary);
    margin: 0 0 var(--rpe-space-2) 0;
}

.rpe-login-gate__desc {
    font-size: var(--rpe-fs-sm);
    color: var(--rpe-text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--rpe-space-6) 0;
}

.rpe-login-gate__actions {
    display: flex;
    flex-direction: column;
    gap: var(--rpe-space-3);
    margin-bottom: var(--rpe-space-6);
}

.rpe-login-gate__cta,
.rpe-login-gate__register {
    width: 100%;
    justify-content: center;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-3) var(--rpe-space-5) !important;
    font-size: var(--rpe-fs-base) !important;
    font-weight: 700 !important;
    border-radius: var(--rpe-radius-md) !important;
    text-decoration: none !important;
}

.rpe-login-gate__features {
    border-top: 1px solid var(--rpe-border-1);
    padding-top: var(--rpe-space-5);
    text-align: left;
}

.rpe-login-gate__features-title {
    font-size: var(--rpe-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rpe-text-muted);
    margin: 0 0 var(--rpe-space-3) 0;
}

.rpe-login-gate__features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rpe-space-2);
}

.rpe-login-gate__feature-item {
    border-radius: var(--rpe-radius);
    border: 1px solid var(--rpe-border-1);
    transition: border-color 0.15s, background 0.15s;
}

.rpe-login-gate__feature-item--current {
    border-color: var(--rpe-primary);
    background: var(--rpe-primary-light);
}

.rpe-login-gate__feature-link {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-2) var(--rpe-space-3);
    text-decoration: none;
    color: var(--rpe-text-primary);
    font-size: var(--rpe-fs-sm);
    font-weight: 600;
}

.rpe-login-gate__feature-item:hover {
    border-color: var(--rpe-primary);
    background: var(--rpe-gray-50);
}

.rpe-login-gate__feature-icon {
    color: var(--rpe-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.rpe-login-gate__back {
    margin: var(--rpe-space-5) 0 0;
    font-size: var(--rpe-fs-sm);
}

.rpe-login-gate__back a {
    color: var(--rpe-text-muted);
    text-decoration: none;
}

.rpe-login-gate__back a:hover {
    color: var(--rpe-primary);
}

@media (max-width: 480px) {
    .rpe-login-gate__card {
        padding: var(--rpe-space-6) var(--rpe-space-5);
    }
    .rpe-login-gate__features-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Account Layout (sidebar + content)
   ========================================================================== */

.rpe-account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--rpe-space-6);
    align-items: start;
}

.rpe-account-sidebar {
    background: var(--rpe-surface-1);
    border: 1px solid var(--rpe-border-1);
    border-radius: var(--rpe-radius-lg);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.rpe-account-sidebar__user {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-3);
    padding: var(--rpe-space-4);
    border-bottom: 1px solid var(--rpe-border-1);
    background: var(--rpe-gray-50);
}

.rpe-account-sidebar__avatar-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: block;
}

.rpe-account-sidebar__user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rpe-account-sidebar__username {
    font-size: var(--rpe-fs-sm);
    font-weight: 700;
    color: var(--rpe-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpe-account-sidebar__label {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
}

.rpe-account-sidebar__nav {
    padding: var(--rpe-space-2) 0;
}

.rpe-account-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-3);
    padding: var(--rpe-space-2) var(--rpe-space-4);
    text-decoration: none;
    color: var(--rpe-text-secondary);
    font-size: var(--rpe-fs-sm);
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
    border-left: 3px solid transparent;
}

.rpe-account-sidebar__link:hover {
    background: var(--rpe-gray-50);
    color: var(--rpe-text-primary);
}

.rpe-account-sidebar__link--active {
    background: var(--rpe-primary-light);
    color: var(--rpe-primary) !important;
    font-weight: 700;
    border-left-color: var(--rpe-primary);
}

.rpe-account-sidebar__link--logout {
    color: var(--rpe-text-muted);
}

.rpe-account-sidebar__link--logout:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

.rpe-account-sidebar__nav-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: inherit;
}

.rpe-account-sidebar__nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpe-account-sidebar__divider {
    height: 1px;
    background: var(--rpe-border-1);
    margin: var(--rpe-space-2) var(--rpe-space-4);
}

.rpe-account-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .rpe-account-layout {
        grid-template-columns: 1fr;
    }
    .rpe-account-sidebar {
        position: static;
    }
    .rpe-account-sidebar__nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        padding: var(--rpe-space-3);
        gap: var(--rpe-space-2);
    }
    .rpe-account-sidebar__link {
        border-left: none;
        border-radius: var(--rpe-radius);
        border: 1px solid var(--rpe-border-1);
        padding: var(--rpe-space-2) var(--rpe-space-3);
    }
    .rpe-account-sidebar__link--active {
        border-color: var(--rpe-primary);
    }
    .rpe-account-sidebar__divider {
        display: none;
    }
}

/* ==========================================================================
   MISSING CLASSES — added to satisfy template references
   ========================================================================== */

/* --- Danger button (destructive actions) --- */
.rpe-btn--danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rpe-space-2);
    padding: var(--rpe-space-2) var(--rpe-space-4);
    background: var(--rpe-error);
    color: #fff;
    font-family: var(--rpe-font-heading);
    font-size: var(--rpe-fs-sm);
    font-weight: var(--rpe-weight-semibold);
    border: none;
    border-radius: var(--rpe-radius);
    cursor: pointer;
    transition: background var(--rpe-transition), box-shadow var(--rpe-transition);
    min-height: 36px;
}
.rpe-btn--danger:hover {
    background: #a30e22;
    box-shadow: var(--rpe-shadow-sm);
}
.rpe-btn--danger:active {
    transform: translateY(1px);
}

/* --- Progress dashboard colored stat cards --- */
.rpe-stat-card--workouts {
    border-top: 3px solid var(--rpe-level-intermediate);
}
.rpe-stat-card--streak {
    border-top: 3px solid var(--rpe-gold);
}
.rpe-stat-card--e1rm {
    border-top: 3px solid var(--rpe-brand);
}
.rpe-stat-card--week {
    border-top: 3px solid var(--rpe-teal);
}

/* --- Peaking calculator attempt cards --- */
.rpe-attempt-card--opener {
    border-left: 3px solid var(--rpe-zone-easy);
    background: var(--rpe-zone-easy-wash);
}
.rpe-attempt-card--second {
    border-left: 3px solid var(--rpe-zone-75);
    background: var(--rpe-zone-work-wash);
}
.rpe-attempt-card--third {
    border-left: 3px solid var(--rpe-brand);
    background: var(--rpe-zone-max-wash);
}

/* --- Workout log timer pulse animation --- */
@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
.timer-pulse {
    animation: timerPulse 1s ease-in-out infinite;
}

/* --- Premium PDF coach report banner --- */
.rpe-coach-report-banner {
    display: flex;
    align-items: center;
    gap: var(--rpe-space-4);
    padding: var(--rpe-space-4) var(--rpe-space-6);
    background: linear-gradient(135deg, var(--rpe-gold-wash) 0%, rgba(212,134,10,0.05) 100%);
    border: 1px solid rgba(212,134,10,0.25);
    border-radius: var(--rpe-radius-md);
    margin-bottom: var(--rpe-space-6);
}
.rpe-coach-report-banner__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rpe-gold-wash);
    border-radius: var(--rpe-radius);
    color: var(--rpe-gold);
}
.rpe-coach-report-banner__title {
    font-weight: var(--rpe-weight-semibold);
    color: var(--rpe-fg-1);
    font-size: var(--rpe-fs-sm);
    margin-bottom: 2px;
}
.rpe-coach-report-banner__desc {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-fg-3);
}
.rpe-coach-report-banner__cta {
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   ANALYZE PAGE COMPONENTS
   ========================================================================== */

/* --- Grade Circle (RPE Standards) --- */
.rpe-grade-circle {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--rpe-space-4);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
    animation: rpe-grade-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.rpe-grade-circle__letter {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--rpe-font-display, inherit);
    line-height: 1;
}
@keyframes rpe-grade-pop {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* --- Fatigue Badge (Drift Tracker) --- */
.rpe-fatigue-badge {
    display: inline-block;
    padding: var(--rpe-space-2) var(--rpe-space-5);
    border-radius: var(--rpe-radius-full, 9999px);
    font-size: var(--rpe-fs-base);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: var(--rpe-space-3) auto;
}
.rpe-fatigue-badge.rpe-badge-success { background: var(--rpe-success-light); color: var(--rpe-green-700); }
.rpe-fatigue-badge.rpe-badge-warning { background: var(--rpe-warning-light); color: var(--rpe-warning); }
.rpe-fatigue-badge.rpe-badge-danger  { background: var(--rpe-error-light);   color: var(--rpe-error);   }

/* --- Fatigue Drop Hero (Drift Tracker) --- */
.rpe-fatigue-drop-hero {
    margin-top: var(--rpe-space-4);
}
.rpe-fatigue-drop-pct {
    display: block;
    font-size: var(--rpe-fs-4xl, 3rem);
    font-weight: 800;
    line-height: 1;
    font-family: var(--rpe-font-display, inherit);
}
.rpe-fatigue-drop-label {
    font-size: var(--rpe-fs-xs);
    color: var(--rpe-text-muted);
    margin-top: var(--rpe-space-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Text color utilities --- */
.rpe-text-danger  { color: var(--rpe-error); }
.rpe-text-warning { color: var(--rpe-warning); }

/* --- Allometric Ratio Display --- */
.rpe-allo-ratio {
    margin: var(--rpe-space-3) 0 var(--rpe-space-2);
    padding: var(--rpe-space-2) var(--rpe-space-3);
    border-radius: var(--rpe-radius);
    text-align: center;
}
.rpe-allo-ratio--above { background: var(--rpe-success-light); color: var(--rpe-green-700); }
.rpe-allo-ratio--on    { background: var(--rpe-primary-light);  color: var(--rpe-primary);   }
.rpe-allo-ratio--below { background: var(--rpe-warning-light);  color: var(--rpe-warning);   }
.rpe-allo-ratio__value {
    display: block;
    font-size: var(--rpe-fs-2xl);
    font-weight: 800;
    line-height: 1;
}
.rpe-allo-ratio__label {
    display: block;
    font-size: var(--rpe-fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
    opacity: 0.8;
}

/* --- Equipment button icon alignment --- */
.rpe-btn-calculate svg + span,
.rpe-btn-calculate svg + * {
    margin-left: var(--rpe-space-2);
}
