/* Mobile app shell. All rules are intentionally isolated to touch-sized screens. */
:root {
  --mobile-text-color: #3F4650;
}

/* Mobile-only My Events card compact final override. */
@media (max-width: 768px) {
  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-events-registered-list {
    gap: 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-registered-event {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 16px 10px !important;
    padding-bottom: 10px !important;
    gap: 5px !important;
    line-height: 1.32 !important;
    margin: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-registered-event strong {
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-registered-event span {
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-event-bib {
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    gap: 6px !important;
    width: fit-content !important;
    margin: 1px 0 !important;
    padding: 5px 11px !important;
    border-radius: 999px !important;
    background: rgba(242, 102, 36, 0.12) !important;
    border: 1px solid rgba(242, 102, 36, 0.28) !important;
    color: #f26624 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-event-bib strong {
    color: inherit !important;
    font-size: 13px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-registered-event em {
    margin: 1px 0 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-event-actions {
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    gap: 8px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-event-actions button {
    min-height: 38px !important;
    margin: 0 !important;
  }
}

/* Mobile-only Events page registered-card final sizing/actions. */
@media (max-width: 768px) {
  body.frc-mobile-dashboard-page .frc-mobile-events-registered-list {
    display: grid !important;
    gap: 14px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-registered-event {
    min-height: 158px !important;
    padding: 16px 18px 12px !important;
    align-content: start !important;
    gap: 7px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    margin-top: 4px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions button {
    min-height: 38px !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 0 12px !important;
    background: #f26624 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions button[data-mobile-event-share] {
    background: rgba(242, 102, 36, 0.12) !important;
    color: #f26624 !important;
    border: 1px solid rgba(242, 102, 36, 0.28) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-card {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}

/* Final mobile-only compact status badge lock. */
@media (max-width: 768px) {
  body.my-runs-mobile-page .status-badge,
  body.my-runs-mobile-page .registration-status,
  body.my-runs-mobile-page .mobile-status-badge,
  body.my-runs-mobile-page .activity-status-badge,
  body.my-runs-mobile-page .registration-card .status-badge,
  body.frc-mobile-dashboard-page .registration-status,
  body.frc-mobile-dashboard-page .mobile-status-badge,
  body.frc-mobile-dashboard-page .frc-mobile-registered-event em {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: max-content !important;
    align-self: flex-start !important;
    justify-self: start !important;
    flex: 0 0 auto !important;
    padding: 4px 10px !important;
  }
}

/* Mobile-only compact status badges. */
@media (max-width: 768px) {
  body.my-runs-mobile-page .status-badge,
  body.my-runs-mobile-page .registration-status,
  body.my-runs-mobile-page .mobile-status-badge,
  body.my-runs-mobile-page .activity-status-badge,
  body.my-runs-mobile-page .registration-card .status-badge,
  body.frc-mobile-dashboard-page .registration-status,
  body.frc-mobile-dashboard-page .mobile-status-badge,
  body.frc-mobile-dashboard-page .frc-mobile-registered-event em {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: max-content !important;
    align-self: flex-start !important;
    justify-self: start !important;
    flex: 0 0 auto !important;
    padding: 4px 10px !important;
  }
}

/* Mobile-only Events page registered-card actions. */
@media (max-width: 768px) {
  body.frc-mobile-dashboard-page .frc-mobile-events-registered-list {
    display: grid !important;
    gap: 14px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-registered-event {
    min-height: 158px !important;
    padding: 16px 18px 12px !important;
    align-content: start !important;
    gap: 7px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    margin-top: 4px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions button {
    min-height: 38px !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 0 12px !important;
    background: #f26624 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions button[data-mobile-event-share] {
    background: rgba(242, 102, 36, 0.12) !important;
    color: #f26624 !important;
    border: 1px solid rgba(242, 102, 36, 0.28) !important;
  }
}

@media (max-width: 1023px) {
  :root { --frc-mobile-nav-height: 76px; }
  .frc-announcement-bar { display: none !important; }
  body { padding-bottom: calc(var(--frc-mobile-nav-height) + env(safe-area-inset-bottom) + 18px) !important; }
  .page-content, .app-content { padding-bottom: calc(var(--frc-mobile-nav-height) + env(safe-area-inset-bottom) + 28px) !important; }
  .frc-mobile-bottom-nav {
    position: fixed; z-index: 5000; left: 10px; right: 10px; bottom: max(8px, env(safe-area-inset-bottom));
    height: var(--frc-mobile-nav-height); display: grid; grid-template-columns: repeat(6, 1fr); align-items: center;
    border: 1px solid rgba(255,255,255,.62); border-radius: 24px; background: rgba(255,255,255,.76);
    box-shadow: 0 12px 32px rgba(28,28,28,.18); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  }
  .frc-mobile-nav-item { min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #68686d; text-decoration: none; border: 0; background: transparent; font: 600 9.5px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor: pointer; }
  .frc-mobile-nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .frc-mobile-nav-item.is-active { color: #f26624; }
  .frc-mobile-nav-item:active { transform: scale(.92); }
  .frc-mobile-more-overlay { position: fixed; inset: 0; z-index: 4999; display: grid; align-items: end; padding: 0 14px calc(var(--frc-mobile-nav-height) + env(safe-area-inset-bottom) + 12px); background: rgba(20,20,20,0); opacity: 0; pointer-events: none; transition: opacity .22s ease, background-color .22s ease; }
  .frc-mobile-more-overlay.is-open { opacity: 1; pointer-events: auto; background: rgba(20,20,20,.18); }
  .frc-mobile-more-overlay[hidden] { display: none !important; }
  .frc-mobile-more-sheet { width: min(430px, 100%); margin: 0 auto; padding: 10px 12px 12px; border: 1px solid rgba(255,255,255,.54); border-radius: 28px 28px 22px 22px; background: rgba(255,255,255,.78); box-shadow: 0 18px 42px rgba(0,0,0,.22); backdrop-filter: blur(24px) saturate(145%); -webkit-backdrop-filter: blur(24px) saturate(145%); transform: translateY(24px); transition: transform .24s cubic-bezier(.2,.8,.2,1); }
  .frc-mobile-more-overlay.is-open .frc-mobile-more-sheet { transform: translateY(0); }
  .frc-mobile-more-handle { width: 42px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: rgba(63,70,80,.28); }
  .frc-mobile-more-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 10px; }
  .frc-mobile-more-head strong { color: #f26624; font-size: 17px; font-weight: 900; }
  .frc-mobile-more-head button { width: 34px; height: 34px; border: 0; border-radius: 999px; color: #f26624; background: rgba(242,102,36,.10); font-size: 24px; line-height: 1; }
  .frc-mobile-more-items { display: grid; gap: 8px; }
  .frc-mobile-more-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid rgba(63,70,80,.10); border-radius: 17px; color: #3f4650; background: rgba(255,255,255,.72); font: 800 14px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align: left; }
  .frc-mobile-more-item svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: #f26624; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .frc-mobile-more-item:active { transform: scale(.985); }
  .frc-mobile-home.mobile-home-stack { display: flex; flex-direction: column; gap: 22px; margin: -24px -16px 22px; }
  .frc-mobile-panel { border: 1px solid rgba(255,255,255,.62); border-radius: 22px; padding: 18px; background: rgba(255,255,255,.65); box-shadow: 0 10px 28px rgba(28,28,28,.10); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .frc-mobile-dashboard { color: #fff; background: linear-gradient(135deg, rgba(242,102,36,.96), rgba(207,72,20,.88)); }
  .frc-mobile-hero { min-height: 48vh; padding: 88px 16px 76px; color: #fff; background: #1a1a1a; background-size: cover; background-position: 35% center; background-repeat: no-repeat; }
  .frc-mobile-dashboard.mobile-welcome-card { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: translateY(10px); }
  .frc-mobile-dashboard.mobile-welcome-card h2 { font-size: 35px; }
  .frc-mobile-hero-kicker { margin: 7px 0 0; font-size: 20px; font-weight: 700; }
  .frc-mobile-hero-subtitle { max-width: 335px; margin: 10px 0 0; color: rgba(255,255,255,.92); font-size: 17px; line-height: 1.45; }
  .frc-mobile-hero-cta { margin-top: 18px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.38); border-radius: 14px; color: #fff; background: rgba(255,255,255,.18); font: 700 14px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .frc-mobile-training-summary { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; border: 0; border-radius: 0; color: #fff; background: transparent; font-size: 15px; line-height: 1.35; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .frc-mobile-training-summary[hidden] { display: none; }
  .frc-mobile-training-summary strong { font-size: 17px; }
  .frc-mobile-training-summary em { margin-top: 1px; color: #22c55e; font-style: normal; font-weight: 600; }
  .frc-mobile-dashboard h2, .frc-mobile-panel h3 { margin: 0; font-size: 20px; line-height: 1.2; }
  .frc-mobile-dashboard p { margin: 7px 0 15px; opacity: .92; font-size: 16px; }
  .frc-mobile-dashboard .frc-mobile-hero-kicker { margin: 7px 0 0; font-size: 20px; font-weight: 700; }
  .frc-mobile-dashboard .frc-mobile-hero-subtitle { margin: 10px 0 0; font-size: 17px; }
  .frc-mobile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .frc-mobile-stat { padding: 10px; border-radius: 14px; background: rgba(255,255,255,.16); font-size: 12px; }
  .frc-mobile-stat strong { display: block; margin-top: 3px; font-size: 16px; }
  .frc-mobile-actions, .frc-mobile-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .frc-mobile-dashboard .frc-mobile-actions { margin-top: 14px; grid-template-columns: repeat(3, 1fr); }
  .frc-mobile-action { min-height: 62px; display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 15px; border: 1px solid rgba(242,102,36,.18); color: #2b2b2f; background: rgba(255,255,255,.72); text-decoration: none; font: 700 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align: center; }
  .frc-mobile-dashboard .frc-mobile-action { color: #fff; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
  .frc-mobile-action:active { transform: scale(.97); }
  .frc-mobile-countdown { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; }
  .frc-mobile-countdown h3 { margin: 0; font-size: 20px; line-height: 1.2; }
  .frc-mobile-countdown p { margin: 5px 0 0; color: rgba(255,255,255,.88); font-size: 13px; }
  .frc-mobile-countdown strong { color: #fff; font-size: 24px; white-space: nowrap; }
  .frc-mobile-quick-board { position: relative; z-index: 2; margin: -54px 16px 0; background: rgba(255,255,255,.76); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
  .frc-mobile-quick-action { min-height: 92px; flex-direction: column; gap: 8px; background: rgba(255,255,255,.58); }
  .frc-mobile-quick-action svg, .frc-mobile-quick-action i, .frc-mobile-quick-action img { display: block; width: 32px; height: 32px; fill: none; stroke: #f26624; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .frc-mobile-future-title { margin: 4px 0 -4px; font-size: 17px; }
  .frc-mobile-future-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .frc-mobile-future { min-height: 92px; padding: 13px; text-align: left; color: #343438; background: rgba(255,255,255,.52); border: 1px solid rgba(255,255,255,.68); border-radius: 16px; font: 700 13px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
  .frc-mobile-future span { display: block; margin-top: 8px; color: #f26624; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
  .frc-mobile-only { display: block; }
  .mobile-home-stack > :not(.frc-mobile-hero) { margin-left: 16px; margin-right: 16px; }
  body.frc-mobile-dashboard-page .mobile-menu-bar { position: fixed !important; top: 0 !important; left: 0; right: 0; width: 100%; background: rgba(0,0,0,.14) !important; border-bottom: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transition: background-color .2s ease, backdrop-filter .2s ease; }
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar { background: rgba(255,255,255,.18) !important; border-bottom: 0 !important; backdrop-filter: blur(2px) saturate(110%) !important; -webkit-backdrop-filter: blur(2px) saturate(110%) !important; }
  body.frc-mobile-dashboard-page .mobile-menu-bar, body.frc-mobile-dashboard-page .mobile-menu-bar .mobile-app-title { color: #fff !important; }
  body.frc-mobile-dashboard-page .mobile-menu-bar .burger-btn { color: #fff !important; }
  body.frc-mobile-dashboard-page .mobile-menu-bar .burger-btn svg { stroke: #fff !important; }
  body.frc-mobile-dashboard-page .mobile-menu-bar .mobile-header-logo { filter: brightness(0) invert(1); }
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .mobile-app-title,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .burger-btn { color: #f26624 !important; }
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .burger-btn svg { stroke: #f26624 !important; }
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .mobile-header-logo { filter: brightness(0) saturate(100%) invert(56%) sepia(74%) saturate(2701%) hue-rotate(344deg) brightness(99%) contrast(92%); }
  body.frc-mobile-dashboard-page .mobile-menu-bar .frc-established-mark { display: none !important; }
  .frc-mobile-countdown-board { position: relative; display: flex; align-items: center; min-height: 96px; overflow: hidden; margin: 0; padding: 16px; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; color: #f26624; background: rgba(255,255,255,.88); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
  .frc-mobile-countdown-board > div:first-child { position: relative; z-index: 1; display: grid; gap: 1px; }
  .frc-mobile-countdown-board span { font-size: 13px; font-weight: 700; }
  .frc-mobile-countdown-board strong { font-size: 38px; line-height: .95; }
  .frc-mobile-countdown-image { position: absolute; inset: 0 0 0 44%; background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.86) 22%, rgba(255,255,255,0) 74%), url("assets/halool-5k-countdown.jpg"); background-position: center right; background-size: cover; background-repeat: no-repeat; }
  .frc-mobile-countdown-empty { position: relative; z-index: 1; color: #f26624; font-size: 16px; font-weight: 700; }
  .frc-mobile-upcoming, .frc-mobile-community { margin: 0; }
  .frc-mobile-upcoming,
  .mobile-upcoming-events-scroll,
  .mobile-events-scroll,
  .upcoming-events-scroll,
  .mobile-events-carousel,
  .events-carousel-wrapper,
  .upcoming-events-card-wrapper {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .frc-mobile-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .frc-mobile-section-head h3, .frc-mobile-community h3 { margin: 0; color: #242426; font-size: 20px; }
  .frc-mobile-section-head button { border: 0; color: #f26624; background: transparent; font: 700 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
  .frc-mobile-event-track { display: flex; gap: 12px; overflow-x: auto; padding: 1px 0 5px; border: none !important; background: transparent !important; box-shadow: none !important; outline: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .frc-mobile-event-track::-webkit-scrollbar { display: none; }
  .frc-mobile-event-card { position: relative; flex: 0 0 205px; min-height: 210px; overflow: hidden; padding: 0; border: 0; border-radius: 18px; color: #242426; text-align: left; scroll-snap-align: start; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
  .frc-mobile-event-card::after { display: none; }
  .frc-mobile-event-card img { display: block; width: 100%; height: 118px; object-fit: cover; }
  .frc-mobile-event-copy { position: static; display: grid; gap: 3px; max-width: none; padding: 11px 58px 12px 13px; }
  .frc-mobile-event-copy strong { font-size: 14px; }
  .frc-mobile-event-copy small { font-size: 11px; color: #6b6b70; }
  .frc-mobile-event-card em { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; border-radius: 9px; color: #fff; background: rgba(242,102,36,.92); font-size: 11px; font-style: normal; font-weight: 800; }
  .frc-mobile-community { display: grid; gap: 10px; }
  .frc-mobile-community h3 { margin-bottom: 2px; }
  .frc-mobile-feed-card { padding: 13px 15px; border: 1px solid rgba(255,255,255,.6); border-radius: 16px; background: rgba(255,255,255,.58); box-shadow: 0 10px 28px rgba(0,0,0,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .frc-mobile-feed-card span { color: #f26624; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
  .frc-mobile-feed-card p { margin: 6px 0 0; color: #363638; font-size: 14px; line-height: 1.35; }
  .frc-mobile-future { box-shadow: 0 10px 28px rgba(0,0,0,.18); }
  .events { display: none !important; }
  .events .img-row { margin-bottom: 18px; }
  .events .frc-mobile-hide-home-card { display: none !important; }
  /* Keep the established event cards, but give them phone-friendly proportions. */
  .img-box-sm, .img-box-lg { width: min(100%, 430px) !important; }
  .img-box-sm { height: 250px !important; }
  .img-box-lg { height: 230px !important; }
  .img-box-sm img { object-fit: cover !important; }
  .custom-modal-card, .schedule-modal-card, .training-registration-form { max-height: calc(100dvh - 32px) !important; }
  .frc-mobile-hero,
  .mobile-hero,
  .mobile-welcome-hero,
  .mobile-welcome-card {
    background-position: 25% center !important;
  }
  .mobile-hero img,
  .mobile-welcome-hero img {
    object-position: 25% center !important;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .mobile-board,
  .frc-mobile-future { opacity: 1; animation: none !important; }
}
@media (min-width: 1024px) { .frc-mobile-bottom-nav, .frc-mobile-home, .frc-mobile-only { display: none !important; } }

/* Mobile Home v2: guest/member app experiences. Desktop remains untouched. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page {
    background:
      radial-gradient(circle at 20% 0%, rgba(242,102,36,.32), transparent 30%),
      linear-gradient(180deg, #181818 0%, #252527 34%, #f4f2ef 72%) !important;
  }

  .frc-mobile-home.mobile-home-stack {
    gap: 18px;
    margin: 0 -16px 24px;
    padding-bottom: 18px;
  }

  .frc-mobile-top-area {
    min-height: 342px;
    padding: 92px 16px 132px;
    color: #fff;
    background:
      radial-gradient(circle at 82% 8%, rgba(242,102,36,.34), transparent 30%),
      linear-gradient(145deg, #111 0%, #232326 62%, #3a2b25 100%);
    box-shadow: inset 0 -38px 64px rgba(0,0,0,.20);
  }

  .mobile-home-stack > .frc-mobile-top-area {
    margin-left: 0;
    margin-right: 0;
  }

  .frc-mobile-hero {
    min-height: auto !important;
    padding: 0 !important;
    background: none !important;
  }

  .frc-mobile-dashboard,
  .frc-mobile-dashboard.mobile-welcome-card {
    position: relative;
    overflow: hidden;
    padding: 18px !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    border-radius: 28px !important;
    color: #fff;
    background: rgba(255,255,255,.13) !important;
    box-shadow: 0 22px 48px rgba(0,0,0,.24) !important;
    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
    transform: none !important;
  }

  .frc-mobile-dashboard::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 44%);
  }

  .frc-mobile-guest-card h2,
  .frc-mobile-member-card h2 {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: 24px !important;
    line-height: 1.1;
    letter-spacing: -.03em;
  }

  .frc-mobile-guest-card .frc-mobile-hero-kicker {
    position: relative;
    margin: 10px 0 0;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -.03em;
  }

  .frc-mobile-guest-card .frc-mobile-hero-subtitle {
    position: relative;
    max-width: 280px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 15px;
  }

  .frc-mobile-hero-actions {
    position: relative;
    display: flex;
    gap: 10px;
    margin-top: 18px;
  }

  .frc-mobile-hero-cta {
    margin-top: 0 !important;
    min-height: 43px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    color: #fff;
    background: rgba(242,102,36,.92);
    box-shadow: 0 12px 24px rgba(242,102,36,.24);
    transition: transform .16s ease, box-shadow .16s ease;
  }

  .frc-mobile-hero-cta.is-secondary {
    background: rgba(255,255,255,.14);
    box-shadow: none;
  }

  .frc-mobile-hero-cta:active,
  .frc-mobile-action:active,
  .frc-mobile-event-card:active {
    transform: scale(.96);
  }

  .frc-mobile-member-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .frc-mobile-member-head p {
    margin: 5px 0 0;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .frc-mobile-avatar {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f26624, #ffb36d);
    box-shadow: 0 12px 24px rgba(0,0,0,.20);
    font: 900 18px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    object-fit: cover;
  }

  img.frc-mobile-avatar { object-fit: cover; }

  .frc-mobile-member-lines {
    position: relative;
    display: grid;
    gap: 7px;
    margin-top: 16px;
    color: rgba(255,255,255,.92);
    font-size: 15px;
    line-height: 1.25;
  }

  .frc-mobile-member-lines strong {
    color: #fff;
    font-weight: 850;
  }

  .frc-mobile-stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .frc-mobile-stats-grid div {
    min-height: 74px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.10);
  }

  .frc-mobile-stats-grid span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    font-weight: 800;
  }

  .frc-mobile-stats-grid strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 17px;
    line-height: 1.15;
  }

  .frc-mobile-skeleton,
  .frc-mobile-skeleton-lines span,
  .frc-mobile-skeleton-card {
    background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.24), rgba(255,255,255,.10));
    background-size: 220% 100%;
    animation: frcMobileSkeleton 1.25s ease-in-out infinite;
  }

  .frc-mobile-skeleton-card {
    height: 164px;
    border-radius: 22px;
  }

  .frc-mobile-skeleton-lines {
    flex: 1;
    display: grid;
    gap: 9px;
  }

  .frc-mobile-skeleton-lines span {
    display: block;
    height: 13px;
    border-radius: 999px;
  }

  .frc-mobile-skeleton-lines span:first-child { width: 82%; }
  .frc-mobile-skeleton-lines span:nth-child(2) { width: 64%; }
  .frc-mobile-skeleton-lines span:nth-child(3) { width: 72%; }

  @keyframes frcMobileSkeleton {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
  }

  .frc-mobile-quick-board {
    margin: -150px 16px 0 !important;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 26px;
    background: rgba(22,22,24,.46);
    box-shadow: 0 20px 44px rgba(0,0,0,.26);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
  }

  .frc-mobile-actions,
  .frc-mobile-quick-grid {
    gap: 11px;
  }

  .frc-mobile-quick-action {
    min-height: 102px;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    background: rgba(255,255,255,.14);
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  }

  .frc-mobile-quick-action svg,
  .frc-mobile-quick-action i,
  .frc-mobile-quick-action img {
    width: 37px;
    height: 37px;
    stroke: #f26624;
    filter: drop-shadow(0 7px 12px rgba(0,0,0,.20));
  }

  .frc-mobile-countdown-board,
  .frc-mobile-upcoming,
  .frc-mobile-community,
  .frc-mobile-info-card,
  .frc-mobile-club-stats {
    margin-top: 0 !important;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 24px;
    background: rgba(26,26,28,.58) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
  }

  .frc-mobile-countdown-board {
    min-height: 96px;
    color: #fff;
    background: rgba(255,255,255,.86) !important;
  }

  .frc-mobile-countdown-board span,
  .frc-mobile-countdown-board strong,
  .frc-mobile-countdown-empty {
    color: #242426;
  }

  .frc-mobile-countdown-board span { color: #f26624; }

  .frc-mobile-countdown-image {
    background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.82) 28%, rgba(255,255,255,0) 78%), url("assets/halool-5k-countdown.jpg") !important;
  }

  .frc-mobile-upcoming,
  .frc-mobile-community,
  .frc-mobile-guest-extra {
    padding: 0;
    display: grid;
    gap: 12px;
  }

  .frc-mobile-section-head {
    padding: 0 2px;
    margin-bottom: 2px;
  }

  .frc-mobile-section-head h3,
  .frc-mobile-community h3,
  .frc-mobile-info-card h3 {
    color: #242426;
    font-size: 21px;
    letter-spacing: -.03em;
  }

  .frc-mobile-event-track {
    gap: 13px;
    padding: 2px 0 8px;
  }

  .frc-mobile-event-card {
    flex-basis: 236px;
    min-height: 286px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 22px;
    color: #fff;
    background: rgba(28,28,30,.72);
    box-shadow: 0 18px 36px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform .16s ease;
  }

  .frc-mobile-event-card img {
    height: 132px;
  }

  .frc-mobile-event-copy {
    gap: 5px;
    padding: 13px 14px 58px;
  }

  .frc-mobile-event-copy strong {
    color: #fff;
    font-size: 16px;
  }

  .frc-mobile-event-copy small {
    color: rgba(255,255,255,.78);
    font-size: 12px;
    line-height: 1.25;
  }

  .frc-mobile-event-card em {
    right: 13px;
    bottom: 13px;
    border-radius: 999px;
    color: #fff;
    background: #f26624;
  }

  .frc-mobile-community {
    background: transparent !important;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .frc-mobile-feed-card,
  .frc-mobile-info-card {
    padding: 15px;
    border-radius: 20px;
    color: #fff;
    background: rgba(28,28,30,.62);
  }

  .frc-mobile-feed-card span {
    color: #f26624;
  }

  .frc-mobile-feed-card p,
  .frc-mobile-info-card p,
  .frc-mobile-info-card li {
    color: rgba(255,255,255,.88);
    font-size: 14px;
  }

  .frc-mobile-info-card button {
    margin-top: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #f26624;
    font: 800 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  }

  .frc-mobile-info-card ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 19px;
  }

  .frc-mobile-gallery-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  .frc-mobile-gallery-strip img {
    width: 100%;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
  }

  .frc-mobile-club-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px;
  }

  .frc-mobile-club-stats div {
    text-align: center;
  }

  .frc-mobile-club-stats strong {
    display: block;
    color: #fff;
    font-size: 18px;
  }

  .frc-mobile-club-stats span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
  }

  .frc-mobile-pull-cue {
    position: fixed;
    z-index: 4998;
    top: calc(env(safe-area-inset-top) + 58px);
    left: 50%;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(22,22,24,.66);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px);
    transition: opacity .18s ease, transform .18s ease;
    font: 800 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.frc-mobile-pulling .frc-mobile-pull-cue {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .frc-mobile-nav-item {
    position: relative;
    color: rgba(36,36,38,.72);
  }

  .frc-mobile-nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: #f26624;
    transform: translateX(-50%);
    transition: width .18s ease;
  }

  .frc-mobile-nav-item.is-active::after {
    width: 18px;
  }

  body.frc-mobile-dashboard-page .mobile-menu-bar {
    background: rgba(0,0,0,.04) !important;
  }

  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar {
    background: rgba(255,255,255,.18) !important;
    border-bottom: 0 !important;
    backdrop-filter: blur(2px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(110%) !important;
  }

  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .mobile-app-title,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .burger-btn {
    color: #fff !important;
  }

  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .burger-btn svg {
    stroke: #fff !important;
  }

  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .mobile-header-logo {
    filter: brightness(0) invert(1) !important;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .frc-mobile-skeleton,
  .frc-mobile-skeleton-lines span,
  .frc-mobile-skeleton-card {
    animation: none !important;
  }
}

/* Mobile Home visual cleanup: one clean glass system, no hero decorations. */
@media (max-width: 1023px) {
  :root {
    --frc-mobile-glass-bg: rgba(255,255,255,.08);
    --frc-mobile-glass-border: 1px solid rgba(255,255,255,.15);
    --frc-mobile-glass-radius: 28px;
    --frc-mobile-glass-shadow: 0 8px 30px rgba(0,0,0,.25);
    --frc-mobile-glass-blur: blur(20px);
  }

  body.frc-mobile-dashboard-page {
    background-color: transparent !important;
    background-image: none !important;
  }

  .frc-mobile-home.mobile-home-stack {
    position: relative;
    gap: 16px;
    margin: 0 -16px 24px;
    padding: 0 0 18px;
    background: transparent;
  }

  .frc-mobile-home.mobile-home-stack::before,
  .frc-mobile-home.mobile-home-stack::after,
  .frc-mobile-top-area::before,
  .frc-mobile-top-area::after,
  .frc-mobile-dashboard::before,
  .frc-mobile-dashboard::after,
  .mobile-welcome-card::before,
  .mobile-welcome-card::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }

  .frc-mobile-top-area {
    min-height: 256px;
    padding: 86px 16px 86px;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  .frc-mobile-dashboard,
  .frc-mobile-dashboard.mobile-welcome-card,
  .frc-mobile-panel,
  .frc-mobile-quick-board,
  .frc-mobile-quick-action,
  .frc-mobile-countdown-board,
  .frc-mobile-upcoming,
  .frc-mobile-event-card,
  .frc-mobile-community,
  .frc-mobile-feed-card,
  .frc-mobile-info-card,
  .frc-mobile-club-stats,
  .frc-mobile-stats-grid div,
  .frc-mobile-pull-cue {
    border: var(--frc-mobile-glass-border) !important;
    border-radius: var(--frc-mobile-glass-radius) !important;
    color: #fff !important;
    background: var(--frc-mobile-glass-bg) !important;
    background-image: none !important;
    box-shadow: var(--frc-mobile-glass-shadow) !important;
    backdrop-filter: var(--frc-mobile-glass-blur) !important;
    -webkit-backdrop-filter: var(--frc-mobile-glass-blur) !important;
  }

  .frc-mobile-dashboard,
  .frc-mobile-dashboard.mobile-welcome-card {
    padding: 14px !important;
    overflow: hidden;
  }

  .frc-mobile-guest-card h2,
  .frc-mobile-member-card h2 {
    font-size: 21px !important;
  }

  .frc-mobile-guest-card .frc-mobile-hero-kicker {
    margin-top: 7px;
    font-size: 22px;
  }

  .frc-mobile-guest-card .frc-mobile-hero-subtitle {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.35;
  }

  .frc-mobile-hero-actions {
    margin-top: 13px;
  }

  .frc-mobile-member-head {
    gap: 11px;
  }

  .frc-mobile-avatar {
    width: 48px;
    height: 48px;
    background: #f26624 !important;
    background-image: none !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
  }

  .frc-mobile-member-head p {
    color: rgba(255,255,255,.70);
  }

  .frc-mobile-member-lines {
    gap: 5px;
    margin-top: 12px;
    font-size: 14px;
  }

  .frc-mobile-stats-grid {
    gap: 8px;
    margin-top: 12px;
  }

  .frc-mobile-stats-grid div {
    min-height: 62px;
    padding: 10px;
    border-radius: 18px !important;
  }

  .frc-mobile-stats-grid span,
  .frc-mobile-club-stats span,
  .frc-mobile-event-copy small,
  .frc-mobile-feed-card p,
  .frc-mobile-info-card p,
  .frc-mobile-info-card li {
    color: rgba(255,255,255,.78) !important;
  }

  .frc-mobile-stats-grid strong {
    color: #fff;
    font-size: 15px;
  }

  .frc-mobile-quick-board {
    margin: -88px 16px 0 !important;
    padding: 12px;
  }

  .frc-mobile-quick-action {
    min-height: 92px;
    border-radius: 22px !important;
  }

  .frc-mobile-quick-action svg,
  .frc-mobile-quick-action i,
  .frc-mobile-quick-action img {
    stroke: #f26624 !important;
    filter: none !important;
  }

  .frc-mobile-hero-cta {
    border: 1px solid #f26624 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #f26624 !important;
    box-shadow: 0 8px 22px rgba(242,102,36,.28) !important;
  }

  .frc-mobile-hero-cta.is-secondary {
    border: 1px solid rgba(255,255,255,.62) !important;
    background: rgba(255,255,255,.08) !important;
    box-shadow: none !important;
  }

  .frc-mobile-countdown-board {
    min-height: 86px;
  }

  .frc-mobile-countdown-board span,
  .frc-mobile-countdown-board strong,
  .frc-mobile-countdown-empty,
  .frc-mobile-section-head h3,
  .frc-mobile-community h3,
  .frc-mobile-info-card h3,
  .frc-mobile-event-copy strong,
  .frc-mobile-club-stats strong {
    color: #fff !important;
  }

  .frc-mobile-countdown-board span,
  .frc-mobile-feed-card span {
    color: #f26624 !important;
  }

  .frc-mobile-countdown-image {
    opacity: .36;
    background-image: url("assets/halool-5k-countdown.jpg") !important;
  }

  .frc-mobile-upcoming,
  .frc-mobile-community,
  .frc-mobile-guest-extra {
    padding: 14px;
  }

  .frc-mobile-event-card {
    border-radius: 24px !important;
  }

  .frc-mobile-event-card img {
    height: 126px;
  }

  .frc-mobile-event-card em,
  .frc-mobile-info-card button,
  .frc-mobile-nav-item.is-active::after {
    background: #f26624 !important;
  }

  .frc-mobile-event-card em {
    color: #fff !important;
  }

  .frc-mobile-club-stats {
    padding: 14px;
  }

}

/* Mobile-only fixes: remove grey page cast and use orange header controls. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page,
  body.frc-mobile-dashboard-page .app-container,
  body.frc-mobile-dashboard-page .page-content,
  .frc-mobile-home.mobile-home-stack,
  .frc-mobile-top-area {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
  }

  body.frc-mobile-dashboard-page .mobile-menu-bar,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar {
    color: #f26624 !important;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  body.frc-mobile-dashboard-page .mobile-menu-bar,
  body.frc-mobile-dashboard-page .mobile-menu-bar .mobile-app-title,
  body.frc-mobile-dashboard-page .mobile-menu-bar .burger-btn,
  body.frc-mobile-dashboard-page .mobile-menu-bar button,
  body.frc-mobile-dashboard-page .mobile-menu-bar a,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .mobile-app-title,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .burger-btn {
    color: #f26624 !important;
  }

  body.frc-mobile-dashboard-page .mobile-menu-bar svg,
  body.frc-mobile-dashboard-page .mobile-menu-bar .burger-btn svg,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar svg,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .burger-btn svg {
    stroke: #f26624 !important;
  }

  body.frc-mobile-dashboard-page .mobile-menu-bar .mobile-header-logo,
  body.frc-mobile-dashboard-page.frc-mobile-header-scrolled .mobile-menu-bar .mobile-header-logo {
    filter: brightness(0) saturate(100%) invert(56%) sepia(74%) saturate(2701%) hue-rotate(344deg) brightness(99%) contrast(92%) !important;
  }

  .frc-mobile-quick-action img {
    filter: brightness(0) saturate(100%) invert(56%) sepia(74%) saturate(2701%) hue-rotate(344deg) brightness(99%) contrast(92%) !important;
  }

  .frc-mobile-quick-action svg,
  .frc-mobile-quick-action i {
    color: #f26624 !important;
    stroke: #f26624 !important;
  }
}

/* Mobile-only typography system. */
@media (max-width: 768px) {
  .mobile-page .frc-mobile-home,
  .mobile-page .frc-mobile-home p,
  .mobile-page .frc-mobile-home span,
  .mobile-page .frc-mobile-home h1,
  .mobile-page .frc-mobile-home h2,
  .mobile-page .frc-mobile-home h3,
  .mobile-page .frc-mobile-home h4,
  .mobile-page .frc-mobile-home h5,
  .mobile-page .frc-mobile-home h6,
  .mobile-page .frc-mobile-home li,
  .mobile-page .frc-mobile-home label,
  .mobile-page .frc-mobile-home small,
  .mobile-page .frc-mobile-home strong,
  .mobile-page .frc-mobile-home em,
  .mobile-page .frc-mobile-home .card-title,
  .mobile-page .frc-mobile-home .card-text,
  .mobile-page .frc-mobile-home .section-title,
  .mobile-page .frc-mobile-home .section-subtitle,
  .mobile-page .page-content p,
  .mobile-page .page-content span,
  .mobile-page .page-content h1,
  .mobile-page .page-content h2,
  .mobile-page .page-content h3,
  .mobile-page .page-content h4,
  .mobile-page .page-content h5,
  .mobile-page .page-content h6,
  .mobile-page .page-content li,
  .mobile-page .page-content label,
  .mobile-page .page-content small,
  .mobile-page .page-content .card-title,
  .mobile-page .page-content .card-text,
  .mobile-page .page-content .section-title,
  .mobile-page .page-content .section-subtitle,
  .mobile-page .mobile-sidebar,
  .mobile-page .mobile-sidebar p,
  .mobile-page .mobile-sidebar span,
  .mobile-page .mobile-sidebar h1,
  .mobile-page .mobile-sidebar h2,
  .mobile-page .mobile-sidebar h3,
  .mobile-page .mobile-sidebar h4,
  .mobile-page .mobile-sidebar h5,
  .mobile-page .mobile-sidebar h6,
  .mobile-page .mobile-sidebar li,
  .mobile-page .mobile-sidebar label,
  .mobile-page .mobile-sidebar small,
  .mobile-page .profile-label,
  .mobile-page .profile-status,
  .mobile-page .registration-detail,
  .mobile-page .registration-detail span,
  .mobile-page .empty-state,
  .mobile-page .no-data {
    color: var(--mobile-text-color) !important;
  }

  .mobile-page .frc-mobile-nav-item.is-active,
  .mobile-page .mobile-menu-bar,
  .mobile-page .mobile-menu-bar .mobile-app-title,
  .mobile-page .mobile-menu-bar .burger-btn,
  .mobile-page .mobile-menu-bar button,
  .mobile-page .mobile-menu-bar a,
  .mobile-page .frc-mobile-section-head button,
  .mobile-page .frc-mobile-countdown-board span,
  .mobile-page .frc-mobile-feed-card span,
  .mobile-page .frc-mobile-future span,
  .mobile-page .mobile-sidebar a.is-active,
  .mobile-page .mobile-sidebar .active,
  .mobile-page .required-marker,
  .mobile-page a:not(.frc-mobile-hero-cta):not(.card-action-btn):not(.auth-submit-btn):not(.profile-save-btn) {
    color: #f26624 !important;
  }

  .mobile-page .frc-mobile-hero-cta,
  .mobile-page .frc-mobile-info-card button,
  .mobile-page .frc-mobile-event-card em,
  .mobile-page .card-action-btn,
  .mobile-page .auth-submit-btn,
  .mobile-page .profile-save-btn,
  .mobile-page .cancel-button,
  .mobile-page .signout-confirm-yes,
  .mobile-page .signout-confirm-no {
    color: #fff !important;
  }

  .mobile-page .frc-mobile-training-summary em,
  .mobile-page .status-approved,
  .mobile-page .status-pill:not(.cancelled),
  .mobile-page .success,
  .mobile-page .profile-status.success {
    color: #2E7D32 !important;
  }

  .mobile-page .status-cancelled,
  .mobile-page .status-pill.cancelled,
  .mobile-page .error,
  .mobile-page .profile-status.error,
  .mobile-page .cancel-button {
    color: #C62828 !important;
  }
}

/* Mobile-only bottom nav scroll behavior and targeted quick-action icon color. */
@media (max-width: 1023px) {
  .frc-mobile-bottom-nav {
    transform: translateY(0);
    transition: transform .22s ease;
    will-change: transform;
  }

  .frc-mobile-bottom-nav.frc-mobile-nav-hidden {
    transform: translateY(110%);
  }

  .frc-mobile-quick-action[data-home-action="training"] img,
  .frc-mobile-quick-action[data-home-action="events"] img {
    filter: brightness(0) saturate(100%) invert(56%) sepia(74%) saturate(2701%) hue-rotate(344deg) brightness(99%) contrast(92%) !important;
  }

  .frc-mobile-quick-icon {
    display: block;
    width: 37px;
    height: 37px;
    background-color: #f26624;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .frc-mobile-quick-icon--training {
    -webkit-mask: url("./assets/training.svg") center / contain no-repeat;
    mask: url("./assets/training.svg") center / contain no-repeat;
  }

  .frc-mobile-quick-icon--events {
    -webkit-mask: url("./assets/events.svg") center / contain no-repeat;
    mask: url("./assets/events.svg") center / contain no-repeat;
  }

  .frc-mobile-quick-action[data-home-action="training"],
  .frc-mobile-quick-action[data-home-action="events"],
  .frc-mobile-quick-action[data-home-action="runs"],
  .frc-mobile-quick-action[data-home-action="account"] {
    box-shadow: none !important;
  }

  .frc-mobile-upcoming {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .frc-mobile-upcoming::before,
  .frc-mobile-upcoming::after,
  .frc-mobile-event-track::before,
  .frc-mobile-event-track::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .frc-mobile-upcoming .frc-mobile-event-track {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .frc-mobile-upcoming .frc-mobile-section-head h3 {
    color: #242426 !important;
  }

  #frcMobileUpcomingEvents,
  #frcMobileUpcomingEvents.mobile-board,
  #frcMobileUpcomingEvents.mobile-board--upcoming {
    position: relative !important;
    isolation: isolate !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #frcMobileUpcomingEvents::before,
  #frcMobileUpcomingEvents::after,
  #frcMobileUpcomingEvents .frc-mobile-event-track::before,
  #frcMobileUpcomingEvents .frc-mobile-event-track::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #frcMobileUpcomingEvents .frc-mobile-event-track {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #frcMobileUpcomingEvents > .frc-mobile-section-head,
  #frcMobileUpcomingEvents > .frc-mobile-event-track {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #frcMobileUpcomingEvents,
  #frcMobileUpcomingEvents.frc-mobile-upcoming,
  #frcMobileUpcomingEvents.mobile-board,
  #frcMobileUpcomingEvents.mobile-board--upcoming,
  #frcMobileUpcomingEvents .frc-mobile-section-head,
  #frcMobileUpcomingEvents .frc-mobile-event-track {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .frc-mobile-quick-action[data-home-action="training"],
  .frc-mobile-quick-action[data-home-action="events"],
  .frc-mobile-quick-action[data-home-action="runs"],
  .frc-mobile-quick-action[data-home-action="account"] {
    border: 1px solid rgba(63, 70, 80, 0.14) !important;
    box-shadow: none !important;
  }

  .frc-mobile-quick-action[data-home-action="gallery"] {
    box-shadow: none !important;
  }

  #frcMobileUpcomingEvents,
  #frcMobileUpcomingEvents.frc-mobile-upcoming,
  #frcMobileUpcomingEvents.mobile-board,
  #frcMobileUpcomingEvents.mobile-board--upcoming,
  #frcMobileUpcomingEvents > .frc-mobile-section-head,
  #frcMobileUpcomingEvents > .frc-mobile-event-track,
  #frcMobileUpcomingEvents .frc-mobile-event-track {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #frcMobileUpcomingEvents::before,
  #frcMobileUpcomingEvents::after,
  #frcMobileUpcomingEvents > .frc-mobile-section-head::before,
  #frcMobileUpcomingEvents > .frc-mobile-section-head::after,
  #frcMobileUpcomingEvents > .frc-mobile-event-track::before,
  #frcMobileUpcomingEvents > .frc-mobile-event-track::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .frc-mobile-quick-action[data-home-action="gallery"] {
    border: 1px solid rgba(63, 70, 80, 0.14) !important;
    box-shadow: none !important;
  }

  body.frc-mobile-dashboard-page,
  body.frc-mobile-dashboard-page::before {
    background-attachment: scroll !important;
  }

  .frc-mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
  }

  .frc-mobile-home {
    min-height: 100dvh;
  }

  /* UPCOMING EVENTS BACKGROUND FIX */
  #frcMobileUpcomingEvents.mobile-upcoming-events-board,
  .mobile-upcoming-events-board {
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: none !important;
    border-radius: 28px !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: hidden !important;
  }

  #frcMobileUpcomingEvents.mobile-upcoming-events-board::before,
  #frcMobileUpcomingEvents.mobile-upcoming-events-board::after,
  .mobile-upcoming-events-board::before,
  .mobile-upcoming-events-board::after,
  .mobile-event-scroll::before,
  .mobile-event-scroll::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 2px !important;
    padding: 0 2px !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-section-header h2 {
    margin: 0 !important;
    color: #242426 !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
    letter-spacing: -.03em !important;
  }

  .mobile-section-header button {
    border: 0 !important;
    color: #f26624 !important;
    background: transparent !important;
    font: 700 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  }

  .mobile-event-scroll {
    display: flex !important;
    gap: 13px !important;
    overflow-x: auto !important;
    padding: 2px 0 8px !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: 0 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-event-scroll::-webkit-scrollbar {
    display: none !important;
  }

  .mobile-upcoming-events-board .frc-mobile-event-card {
    flex: 0 0 236px;
    min-height: 286px;
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {
  .mobile-upcoming-events-board,
  .mobile-upcoming-events-board *,
  .mobile-upcoming-events,
  .mobile-upcoming-events *,
  .upcoming-events,
  .upcoming-events *,
  .mobile-events-carousel,
  .mobile-events-carousel *,
  .mobile-event-scroll,
  .mobile-event-scroll *,
  .event-scroll,
  .event-scroll * {
    background-color: #FFFFFF !important;
    background-image: none !important;
  }

  .mobile-event-card,
  .mobile-event-card *,
  .event-card,
  .event-card * {
    background-color: initial;
  }

  .mobile-upcoming-events-board,
  .mobile-upcoming-events,
  .upcoming-events {
    background: #FFFFFF !important;
    overflow: hidden !important;
  }

  .mobile-event-scroll,
  .mobile-events-carousel,
  .event-scroll {
    background: #FFFFFF !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-upcoming-events-board::before,
  .mobile-upcoming-events-board::after,
  .mobile-upcoming-events::before,
  .mobile-upcoming-events::after,
  .upcoming-events::before,
  .upcoming-events::after,
  .mobile-event-scroll::before,
  .mobile-event-scroll::after,
  .mobile-events-carousel::before,
  .mobile-events-carousel::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-upcoming-events-board {
    overflow: visible !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
  }

  .mobile-event-scroll {
    margin-left: -14px !important;
    margin-right: -14px !important;
    padding: 2px 14px 18px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-upcoming-events-board .frc-mobile-event-card {
    background-color: #FFFFFF !important;
    background-image: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 1023px) {
  .frc-mobile-top-area {
    position: relative !important;
    min-height: 342px !important;
    padding: 92px 16px 132px !important;
    color: #fff !important;
    background-color: #111 !important;
    background-image:
      linear-gradient(rgba(0,0,0,.50), rgba(0,0,0,.58)),
      url("assets/mobile-hero.jpeg") !important;
    background-size: cover !important;
    background-position: 35% center !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .frc-mobile-top-area::before,
  .frc-mobile-top-area::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}

/* Mobile Home polish: tighter hero, no floating register button, premium motion. */
@media (max-width: 1023px) {
  .frc-mobile-top-area {
    min-height: 292px !important;
    padding: 72px 16px 94px !important;
    background-color: #070707 !important;
    background-image:
      linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.70)),
      url("assets/mobile-hero.jpeg") !important;
    animation: none !important;
  }

  .frc-mobile-dashboard,
  .frc-mobile-dashboard.mobile-welcome-card {
    padding: 15px !important;
  }

  .frc-mobile-member-head {
    gap: 11px !important;
  }

  .frc-mobile-avatar {
    width: 48px !important;
    height: 48px !important;
  }

  .frc-mobile-guest-card h2,
  .frc-mobile-member-card h2 {
    font-size: 22px !important;
  }

  .frc-mobile-member-head p {
    font-size: 11px !important;
  }

  .frc-mobile-member-lines {
    gap: 5px !important;
    margin-top: 12px !important;
    font-size: 14px !important;
  }

  .frc-mobile-stats-grid {
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .frc-mobile-stats-grid div {
    min-height: 62px !important;
    padding: 10px !important;
  }

  .frc-mobile-stats-grid span {
    font-size: 10px !important;
  }

  .frc-mobile-stats-grid strong {
    margin-top: 5px !important;
    font-size: 15px !important;
  }

  .frc-mobile-quick-board {
    margin: -96px 16px 0 !important;
  }

  .frc-mobile-hero-cta,
  .frc-mobile-action,
  .frc-mobile-event-card,
  .mobile-section-header button,
  .frc-mobile-info-card button {
    transition: transform .12s ease, box-shadow .16s ease, background .16s ease !important;
  }

  .frc-mobile-hero-cta:active,
  .frc-mobile-action:active,
  .frc-mobile-event-card:active,
  .mobile-section-header button:active,
  .frc-mobile-info-card button:active {
    transform: scale(.97) !important;
  }

}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .frc-mobile-top-area,
  .frc-mobile-quick-board,
  .frc-mobile-countdown-board,
  .mobile-upcoming-events-board,
  .frc-mobile-guest-extra,
  .frc-mobile-community,
  .frc-mobile-info-card,
  .frc-mobile-club-stats {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .frc-mobile-hero-cta,
  .frc-mobile-action,
  .frc-mobile-event-card,
  .mobile-section-header button,
  .frc-mobile-info-card button {
    transition: none !important;
  }
}

/* Mobile Home hero top-edge final winning override. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page .app-container,
  body.frc-mobile-dashboard-page .page-content,
  body.frc-mobile-dashboard-page #dashboard-tab,
  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack,
  body.frc-mobile-dashboard-page .frc-mobile-top-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area {
    padding: 0 16px 94px !important;
    background-position: 35% top !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-dashboard.mobile-welcome-card {
    margin-top: calc(env(safe-area-inset-top) + 72px) !important;
  }
}

/* Mobile Upcoming Events carousel background fix: keep scroll area inside white board. */
@media (max-width: 768px) {
  .mobile-upcoming-events-board,
  #frcMobileUpcomingEvents.mobile-upcoming-events-board {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    overflow: hidden !important;
  }

  .mobile-event-scroll,
  #frcMobileUpcomingEvents .mobile-event-scroll {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 16px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-upcoming-events-board::before,
  .mobile-upcoming-events-board::after,
  .mobile-event-scroll::before,
  .mobile-event-scroll::after {
    content: none !important;
    display: none !important;
  }

  .mobile-upcoming-events-wrapper,
  .mobile-upcoming-events-content,
  .mobile-events-carousel,
  .mobile-events-track {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Mobile Home top gap final fix: remove app shell padding above the hero image. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page .app-content {
    padding-top: 0 !important;
  }
}

/* Mobile Upcoming Events inner white fill: remove remaining grey between cards/corners. */
@media (max-width: 768px) {
  .mobile-upcoming-events-board,
  #frcMobileUpcomingEvents.mobile-upcoming-events-board {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border-radius: 28px !important;
    overflow: hidden !important;
  }

  .mobile-upcoming-events-board > *,
  #frcMobileUpcomingEvents.mobile-upcoming-events-board > * {
    background-color: #FFFFFF !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-upcoming-events-board .mobile-section-header,
  .mobile-upcoming-events-board .mobile-event-scroll,
  .mobile-upcoming-events-wrapper,
  .mobile-upcoming-events-content,
  .mobile-events-carousel,
  .mobile-events-track {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Mobile Upcoming Events card fill: keep only the event cards white, with a softer shadow. */
@media (max-width: 768px) {
  .mobile-upcoming-events-board .frc-mobile-event-card {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    overflow: hidden !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-upcoming-events-board .frc-mobile-event-copy {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
  }

  .mobile-upcoming-events-board .frc-mobile-event-card::before,
  .mobile-upcoming-events-board .frc-mobile-event-card::after,
  .mobile-upcoming-events-board .frc-mobile-event-copy::before,
  .mobile-upcoming-events-board .frc-mobile-event-copy::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
  }
}

/* Mobile Upcoming Events cards: remove shadow grey around/between cards. */
@media (max-width: 768px) {
  .mobile-upcoming-events-board .frc-mobile-event-card,
  .mobile-upcoming-events-board .mobile-event-card,
  .mobile-upcoming-events-board .mobile-event-card-inner,
  .mobile-upcoming-events-board .mobile-event-card-content {
    box-shadow: none !important;
    filter: none !important;
  }

  .mobile-upcoming-events-board .frc-mobile-event-card::before,
  .mobile-upcoming-events-board .frc-mobile-event-card::after,
  .mobile-upcoming-events-board .mobile-event-card::before,
  .mobile-upcoming-events-board .mobile-event-card::after {
    box-shadow: none !important;
    filter: none !important;
  }
}

/* Mobile Home final live overrides: loaded last in mobile-app.css. */
@media (max-width: 768px) {
  #frcMobileUpcomingEvents.mobile-upcoming-events-board {
    width: auto !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18) !important;
  }

  #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-event-scroll {
    align-items: stretch !important;
    color: #f26624 !important;
  }

  #frcMobileUpcomingEvents.mobile-upcoming-events-board .frc-mobile-event-card {
    border-left: 0 !important;
    box-shadow: none !important;
    filter: none !important;
  }

  #frcMobileUpcomingEvents.mobile-upcoming-events-board .frc-mobile-event-card + .frc-mobile-event-card {
    border-left: 0 !important;
  }

  #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-event-divider {
    width: 1px !important;
    min-width: 1px !important;
    flex: 0 0 1px !important;
    height: 86% !important;
    align-self: center !important;
    background: currentColor !important;
    opacity: 0.28 !important;
    border-radius: 999px !important;
    pointer-events: none !important;
  }

  #frcMobileUpcomingEvents.mobile-upcoming-events-board .frc-mobile-event-card::before,
  #frcMobileUpcomingEvents.mobile-upcoming-events-board .frc-mobile-event-card::after {
    box-shadow: none !important;
    filter: none !important;
  }

  #frcMobileUpcomingEvents.mobile-upcoming-events-board .frc-mobile-event-card em {
    left: 13px !important;
    right: auto !important;
    min-width: 78px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: center !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card h1,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card h2,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card h3,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card p,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card span,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card strong,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card small,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card li {
    color: #FFFFFF !important;
  }

  .frc-mobile-home.mobile-home-stack > .frc-mobile-guest-extra,
  .frc-mobile-home.mobile-home-stack > .frc-mobile-community {
    width: auto !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .frc-mobile-guest-extra .frc-mobile-info-card,
  .frc-mobile-guest-extra .frc-mobile-club-stats,
  .frc-mobile-community {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .frc-mobile-countdown-board .frc-mobile-countdown-image {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image:
      linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.94) 24%, rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0) 76%),
      url("assets/halool-5k-countdown.jpg") !important;
    background-position: center right !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}

/* Mobile Home container polish: spacing, feed, stats, countdown, and tap response. */
@media (max-width: 768px) {
  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack {
    gap: 20px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > .frc-mobile-guest-extra {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-quick-board {
    margin: -57px 16px 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-countdown-board,
  body.frc-mobile-dashboard-page #frcMobileHaloolCountdown.frc-mobile-countdown-board {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    overflow: hidden !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-countdown-board > div:first-child {
    background: transparent !important;
    background-image: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-countdown-board::before,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-countdown-board .frc-mobile-countdown-image {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image:
      linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 20%, rgba(255, 255, 255, 0.92) 34%, rgba(255, 255, 255, 0.38) 58%, rgba(255, 255, 255, 0) 78%),
      url("assets/halool-5k-countdown.jpg") !important;
    background-position: center right !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > .frc-mobile-community,
  body.frc-mobile-dashboard-page .frc-mobile-community {
    padding: 18px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    color: #242426 !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border-radius: 28px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-community h3 {
    margin: 0 0 4px !important;
    color: #242426 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-feed-item {
    padding: 10px 0 !important;
    color: #242426 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-feed-item span {
    display: block;
    color: #f26624 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-feed-item p {
    margin: 6px 0 0 !important;
    color: #3f4650 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-feed-divider {
    height: 1px !important;
    width: 100% !important;
    background: #f26624 !important;
    opacity: .22 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-feed-card {
    display: contents !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-club-stats {
    display: block !important;
    padding: 18px !important;
    color: #242426 !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border-radius: 28px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-club-stats h3 {
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-club-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-club-stats-grid div {
    text-align: center !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-club-stats-grid strong {
    display: block !important;
    color: #f26624 !important;
    font-size: 18px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-club-stats-grid span {
    display: block !important;
    margin-top: 4px !important;
    color: #3f4650 !important;
    font-size: 11px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-quick-board,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board,
  body.frc-mobile-dashboard-page .mobile-upcoming-events-board,
  body.frc-mobile-dashboard-page .frc-mobile-community,
  body.frc-mobile-dashboard-page .frc-mobile-info-card,
  body.frc-mobile-dashboard-page .frc-mobile-club-stats,
  body.frc-mobile-dashboard-page .frc-mobile-event-card {
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease !important;
    will-change: transform;
  }

  body.frc-mobile-dashboard-page .frc-mobile-quick-board:active,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board:active,
  body.frc-mobile-dashboard-page .mobile-upcoming-events-board:active,
  body.frc-mobile-dashboard-page .frc-mobile-community:active,
  body.frc-mobile-dashboard-page .frc-mobile-info-card:active,
  body.frc-mobile-dashboard-page .frc-mobile-club-stats:active,
  body.frc-mobile-dashboard-page .frc-mobile-event-card:active {
    transform: scale(0.992) !important;
  }
}

/* Mobile Home final spacing/nav/footer tuning. */
@media (max-width: 768px) {
  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack {
    gap: 20px !important;
    margin-bottom: 30px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > *,
  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > .frc-mobile-guest-extra > *,
  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > .frc-mobile-community {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > .frc-mobile-guest-extra {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-quick-board {
    margin-top: -57px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(63, 70, 80, 0.12) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > .frc-mobile-quick-board {
    margin-top: -57px !important;
  }

  body.frc-mobile-dashboard-page .site-footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 16px 0 !important;
    color: #f26624 !important;
  }

  body.frc-mobile-dashboard-page .app-content {
    padding-bottom: 0 !important;
  }

  body.frc-mobile-dashboard-page,
  body.frc-mobile-dashboard-page .page-content {
    padding-bottom: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-bottom-nav {
    left: 14px !important;
    right: 14px !important;
    width: calc(100% - 28px) !important;
    height: auto !important;
    min-height: 58px !important;
    padding-top: 7px !important;
    padding-bottom: calc(7px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    border-radius: 24px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-nav-item svg {
    width: 20px !important;
    height: 20px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-nav-item {
    gap: 3px !important;
  }
}

/* Shared mobile shell/nav fixes for every mobile nav page. */
@media (max-width: 1023px) {
  .frc-mobile-bottom-nav {
    left: 14px !important;
    right: 14px !important;
    width: calc(100% - 28px) !important;
    height: auto !important;
    min-height: 58px !important;
    padding-top: 7px !important;
    padding-bottom: calc(7px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    border-radius: 24px !important;
  }

  .frc-mobile-nav-item {
    gap: 3px !important;
  }

  .frc-mobile-nav-item svg {
    width: 20px !important;
    height: 20px !important;
  }

  .frc-mobile-nav-item.is-active::before,
  .frc-mobile-nav-item.is-active::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
}

@media (max-width: 768px) and (display-mode: standalone) {
  .mobile-bottom-nav,
  .frc-mobile-bottom-nav {
    bottom: calc(env(safe-area-inset-bottom) + 12px) !important;
    min-height: 60px !important;
    height: 60px !important;
  }
}

@media (max-width: 768px) {
  body.is-standalone .mobile-bottom-nav,
  body.is-standalone .frc-mobile-bottom-nav {
    bottom: calc(env(safe-area-inset-bottom) + 12px) !important;
    min-height: 60px !important;
    height: 60px !important;
  }
}

.mobile-shell-footer {
  display: none;
}

.mobile-account-toolbar,
.mobile-account-profile-header,
.mobile-profile-view {
  display: none;
}

/* Shared mobile header/footer shell consistency across bottom-nav pages. */
@media (max-width: 1023px) {
  .mobile-page .mobile-menu-bar,
  .mobile-page .mobile-topbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: calc(64px + env(safe-area-inset-top)) !important;
    height: calc(64px + env(safe-area-inset-top)) !important;
    padding: env(safe-area-inset-top) 16px 0 !important;
    box-sizing: border-box !important;
    color: #f26624 !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: blur(2px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(110%) !important;
    z-index: 500 !important;
  }

  .mobile-page .mobile-menu-bar {
    position: sticky !important;
    top: 0 !important;
  }

  .mobile-page .mobile-topbar {
    position: sticky !important;
    top: 0 !important;
    justify-content: space-between !important;
  }

  .mobile-page .burger-btn,
  .mobile-page .mobile-home {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: #f26624 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
  }

  .mobile-page .burger-btn svg,
  .mobile-page .mobile-home svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #f26624 !important;
    stroke-width: 2.4 !important;
  }

  .mobile-page .mobile-app-title,
  .mobile-page .mobile-brand b {
    margin: 0 !important;
    color: #f26624 !important;
    font-family: "FRCHeaderFont", sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 1.6px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-shadow: none !important;
  }

  .mobile-page .mobile-header-logo,
  .mobile-page .mobile-brand img {
    display: block !important;
    height: 40px !important;
    width: auto !important;
    max-width: 48px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    filter: none !important;
  }

  .mobile-page .mobile-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    color: #f26624 !important;
    text-decoration: none !important;
  }

  .mobile-page footer,
  .mobile-page .site-footer,
  .mobile-page .mobile-shell-footer {
    display: block !important;
    text-align: center !important;
    color: #f26624 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 30px 0 0 !important;
    padding: 0 16px !important;
  }

  body.mobile-page,
  .mobile-page .app-content,
  .mobile-page .page-content {
    padding-bottom: 0 !important;
  }

  body.mobile-page .gallery-main {
    padding-bottom: 0 !important;
  }

  .mobile-page.account-mobile-page .page-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-page .settings-card {
    width: calc(100vw - 32px) !important;
    max-width: 430px !important;
    margin: 92px auto 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-page.account-mobile-page .mobile-app-title .frc-established-mark,
  .mobile-page.my-runs-mobile-page .mobile-app-title .frc-established-mark,
  .mobile-page .mobile-app-title .est-badge,
  .mobile-page .mobile-app-title .header-est-badge,
  .mobile-page .mobile-app-title .frc-est {
    display: none !important;
  }

  .mobile-page .mobile-account-profile-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 0 20px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(63, 70, 80, 0.12) !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
  }

  .mobile-page .mobile-account-profile-header[hidden] {
    display: none !important;
  }

  .mobile-page .mobile-account-avatar {
    flex: 0 0 66px !important;
    width: 66px !important;
    height: 66px !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    border: 2px solid rgba(242, 102, 36, 0.28) !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: linear-gradient(135deg, #f26624, #ffad73) !important;
    box-shadow: 0 12px 24px rgba(242, 102, 36, 0.22) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
  }

  .mobile-page .mobile-account-avatar img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .mobile-page .mobile-account-profile-copy {
    display: grid !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  .mobile-page .mobile-account-profile-copy strong {
    color: #1d1c1b !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
  }

  .mobile-page .mobile-account-profile-copy span {
    color: #f26624 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
  }

  .mobile-page .mobile-account-profile-copy small {
    color: rgba(63, 70, 80, 0.72) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
  }

  .mobile-page .desktop-profile-title {
    display: none !important;
  }

  .mobile-page .mobile-account-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 0 18px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(63, 70, 80, 0.12) !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
  }

  .mobile-page .mobile-account-toolbar h1 {
    margin: 0 !important;
    color: #f26624 !important;
    font-size: 26px !important;
    line-height: 1.08 !important;
    letter-spacing: -.03em !important;
  }

  .mobile-page .mobile-account-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-page .mobile-account-action {
    min-height: 36px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(242, 102, 36, 0.18) !important;
    border-radius: 999px !important;
    color: #f26624 !important;
    background: rgba(242, 102, 36, 0.08) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  .mobile-page .mobile-account-action[hidden] {
    display: none !important;
  }

  .mobile-page .mobile-account-save {
    color: #fff !important;
    background: #f26624 !important;
    border-color: #f26624 !important;
  }

  .mobile-page .mobile-profile-view {
    display: grid !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 430px !important;
  }

  .mobile-page .mobile-profile-view[hidden] {
    display: none !important;
  }

  .mobile-page .mobile-profile-card,
  .mobile-page .profile-section {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(63, 70, 80, 0.12) !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
  }

  .mobile-page .mobile-profile-card h2,
  .mobile-page .profile-section-title {
    margin: 0 0 14px !important;
    color: #f26624 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
  }

  .mobile-page .mobile-profile-rows,
  .mobile-page .profile-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .mobile-page .mobile-profile-row {
    display: grid !important;
    gap: 4px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid rgba(242, 102, 36, 0.16) !important;
  }

  .mobile-page .mobile-profile-row:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  .mobile-page .mobile-profile-row span,
  .mobile-page .profile-label {
    color: rgba(63, 70, 80, 0.72) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
  }

  .mobile-page .mobile-profile-row strong {
    color: #1d1c1b !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
    overflow-wrap: anywhere !important;
  }

  .mobile-page #profileContent {
    gap: 20px !important;
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .mobile-page #profileContent[style*="block"] {
    display: grid !important;
  }

  .mobile-page .profile-field {
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
  }

  .mobile-page .profile-input,
  .mobile-page .profile-select {
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 13px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(63, 70, 80, 0.16) !important;
    border-radius: 16px !important;
    color: #1d1c1b !important;
    background: #fff !important;
    font-size: 15px !important;
    box-shadow: none !important;
  }

  .mobile-page .required-marker {
    color: #f26624 !important;
  }

  .mobile-page .profile-save-btn {
    display: none !important;
  }

  .mobile-page .profile-status {
    margin: 0 0 14px !important;
    color: #3f4650 !important;
    text-align: center !important;
  }
}

/* Final Home-matching shell override: must stay after the generic shared shell. */
@media (max-width: 1023px) {
  body.frc-mobile-home-shell .mobile-menu-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    color: #f26624 !important;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.frc-mobile-home-shell .mobile-menu-bar,
  body.frc-mobile-home-shell .mobile-menu-bar .mobile-app-title,
  body.frc-mobile-home-shell .mobile-menu-bar .burger-btn,
  body.frc-mobile-home-shell .mobile-menu-bar button,
  body.frc-mobile-home-shell .mobile-menu-bar a {
    color: #f26624 !important;
  }

  body.frc-mobile-home-shell .mobile-menu-bar svg,
  body.frc-mobile-home-shell .mobile-menu-bar .burger-btn svg {
    stroke: #f26624 !important;
  }

  body.frc-mobile-home-shell .mobile-menu-bar .mobile-header-logo {
    filter: brightness(0) saturate(100%) invert(56%) sepia(74%) saturate(2701%) hue-rotate(344deg) brightness(99%) contrast(92%) !important;
  }

  body.frc-mobile-home-shell.frc-mobile-header-scrolled .mobile-menu-bar,
  body.frc-mobile-home-shell.frc-mobile-shell-scrolled .mobile-menu-bar {
    background: rgba(255, 255, 255, 0.18) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: blur(2px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(110%) !important;
  }

  body.frc-mobile-home-shell .site-footer {
    margin: 0 !important;
    padding: 0 16px !important;
    color: #f26624 !important;
  }

  body.frc-mobile-dashboard-page.frc-mobile-training-page-active .frc-mobile-home:not(.frc-mobile-training-page) {
    display: none !important;
  }

  body.frc-mobile-dashboard-page.frc-mobile-events-page-active .frc-mobile-home:not(.frc-mobile-training-page) {
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-page[hidden] {
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page[hidden] {
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-page {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 30px !important;
    padding-top: calc(64px + env(safe-area-inset-top)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 92px 0 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    border-radius: 28px !important;
    padding: 18px !important;
    background: #fff !important;
    color: #1d1c1b !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
    overflow: hidden !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    border-radius: 28px !important;
    padding: 18px !important;
    background: #fff !important;
    color: #1d1c1b !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
    overflow: hidden !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-page-heading {
    display: grid !important;
    gap: 4px !important;
    margin: 0 0 14px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-page-heading p {
    margin: 0 !important;
    color: rgba(242, 102, 36, 0.78) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-page-heading h2,
  body.frc-mobile-dashboard-page .frc-mobile-events-card h2 {
    margin: 0 !important;
    color: #f26624 !important;
    font-size: 28px !important;
    line-height: 1.05 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin: 0 0 18px !important;
    padding: 4px !important;
    border: 1px solid rgba(63, 70, 80, 0.10) !important;
    border-radius: 18px !important;
    background: rgba(242, 102, 36, 0.06) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-tabs button {
    min-height: 38px !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #f26624 !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-tabs button.is-active {
    color: #fff !important;
    background: #f26624 !important;
    box-shadow: 0 8px 18px rgba(242, 102, 36, 0.24) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-tab-panel {
    display: grid !important;
    gap: 16px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-section {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-section h3 {
    margin: 0 !important;
    color: #f26624 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-event-card {
    display: grid !important;
    grid-template-columns: 108px 1fr !important;
    width: 100% !important;
    min-height: 128px !important;
    flex: none !important;
    border: 1px solid rgba(63, 70, 80, 0.10) !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-event-card img {
    width: 108px !important;
    height: 100% !important;
    min-height: 128px !important;
    object-fit: cover !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-event-copy {
    align-self: center !important;
    padding: 12px 54px 12px 12px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-page .frc-mobile-event-card em {
    right: 12px !important;
    bottom: 12px !important;
    min-width: 72px !important;
    text-align: center !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-empty,
  body.frc-mobile-dashboard-page .frc-mobile-past-event,
  body.frc-mobile-dashboard-page .frc-mobile-registered-event {
    display: grid !important;
    gap: 5px !important;
    padding: 14px !important;
    border: 1px solid rgba(63, 70, 80, 0.10) !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #3f4650 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-registered-event strong,
  body.frc-mobile-dashboard-page .frc-mobile-past-event strong {
    color: #1d1c1b !important;
    font-size: 15px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-registered-event em {
    justify-self: start !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #22c55e !important;
    font-style: normal !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-section p {
    margin: 0 !important;
    color: #3f4650 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-section button[data-home-action="gallery"] {
    justify-self: start !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #f26624 !important;
    font-weight: 800 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-card h2 {
    margin: 0 0 12px !important;
    color: #f26624 !important;
    font-size: 26px !important;
    line-height: 1.08 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-card .schedule-section {
    margin-top: 18px !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-card .schedule-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-card .schedule-day-card {
    border: 1px solid rgba(63, 70, 80, 0.12) !important;
    box-shadow: none !important;
    background: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-card .modal-close-x-btn {
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-card .schedule-actions,
  body.frc-mobile-dashboard-page .frc-mobile-training-card .join-training-btn {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-hero,
  body.frc-mobile-dashboard-page .frc-mobile-training-section {
    width: auto !important;
    max-width: none !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    box-sizing: border-box !important;
    border-radius: 28px !important;
    border: 1px solid rgba(63, 70, 80, 0.12) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
    color: #1d1c1b !important;
    overflow: hidden !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-hero {
    position: relative !important;
    display: grid !important;
    gap: 14px !important;
    padding: 20px !important;
    background:
      radial-gradient(circle at 90% 0%, rgba(242, 102, 36, 0.18), transparent 36%),
      rgba(255, 255, 255, 0.9) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-kicker {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #f26624 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-hero h2 {
    margin: 7px 0 4px !important;
    color: #1d1c1b !important;
    font-size: 30px !important;
    line-height: 1.02 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-hero p {
    margin: 0 !important;
    color: #3f4650 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-today {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #f26624 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-next,
  body.frc-mobile-dashboard-page .frc-mobile-training-joined {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 4px 12px !important;
    align-items: end !important;
    padding: 14px !important;
    border: 1px solid rgba(242, 102, 36, 0.18) !important;
    border-radius: 22px !important;
    background: rgba(242, 102, 36, 0.08) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-next span,
  body.frc-mobile-dashboard-page .frc-mobile-training-joined span {
    color: #3f4650 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-next strong,
  body.frc-mobile-dashboard-page .frc-mobile-training-joined strong,
  body.frc-mobile-dashboard-page .frc-mobile-training-joined b {
    color: #1d1c1b !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-next em,
  body.frc-mobile-dashboard-page .frc-mobile-training-joined em {
    grid-row: 1 / span 2 !important;
    grid-column: 2 !important;
    color: #f26624 !important;
    font-style: normal !important;
    font-size: 20px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-actions .join-training-btn,
  body.frc-mobile-dashboard-page .frc-mobile-training-secondary-btn,
  body.frc-mobile-dashboard-page .frc-mobile-attending-btn,
  body.frc-mobile-dashboard-page .frc-mobile-map-card a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 0 18px !important;
    color: #fff !important;
    background: #f26624 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-secondary-btn {
    color: #f26624 !important;
    background: rgba(242, 102, 36, 0.10) !important;
    border: 1px solid rgba(242, 102, 36, 0.18) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-section-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 0 18px !important;
    border: 0 !important;
    color: #1d1c1b !important;
    background: transparent !important;
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-section-toggle em {
    color: #f26624 !important;
    font-style: normal !important;
    transition: transform 180ms ease !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-section.is-open .frc-mobile-training-section-toggle em {
    transform: rotate(180deg) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-section-body {
    display: none !important;
    padding: 0 18px 18px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-section.is-open .frc-mobile-training-section-body {
    display: block !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-list {
    display: grid !important;
    gap: 12px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-card {
    position: relative !important;
    display: grid !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    padding: 15px 15px 15px 18px !important;
    border: 1px solid rgba(63, 70, 80, 0.10) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 5px !important;
    background: var(--session-accent, #d1d5db) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-card.is-easy { --session-accent: #93c5fd; }
  body.frc-mobile-dashboard-page .frc-mobile-session-card.is-speed { --session-accent: #f26624; }
  body.frc-mobile-dashboard-page .frc-mobile-session-card.is-strength { --session-accent: #22c55e; }
  body.frc-mobile-dashboard-page .frc-mobile-session-card.is-tempo { --session-accent: #a855f7; }
  body.frc-mobile-dashboard-page .frc-mobile-session-card.is-recovery { --session-accent: #cbd5e1; }
  body.frc-mobile-dashboard-page .frc-mobile-session-card.is-long { --session-accent: #c2410c; }
  body.frc-mobile-dashboard-page .frc-mobile-session-card.is-rest { --session-accent: #d1d5db; background: #f8fafc !important; }

  body.frc-mobile-dashboard-page .frc-mobile-session-card.is-today {
    border-color: rgba(242, 102, 36, 0.34) !important;
    background: linear-gradient(135deg, rgba(242, 102, 36, 0.08), #fff 44%) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-head strong {
    color: #1d1c1b !important;
    font-size: 16px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-head em {
    padding: 5px 9px !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #f26624 !important;
    font-style: normal !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-card h4 {
    margin: 0 !important;
    color: #f26624 !important;
    font-size: 19px !important;
    line-height: 1.1 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-start {
    color: #22c55e !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-meta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-meta span {
    color: #3f4650 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-session-meta strong {
    color: #1d1c1b !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-attending-btn {
    justify-self: start !important;
    min-height: 36px !important;
    margin-top: 2px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-checklist {
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-checklist li,
  body.frc-mobile-dashboard-page .frc-mobile-race-card,
  body.frc-mobile-dashboard-page .frc-mobile-map-card,
  body.frc-mobile-dashboard-page .frc-mobile-attendance-card {
    border: 1px solid rgba(63, 70, 80, 0.10) !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #3f4650 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-checklist li {
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-race-card,
  body.frc-mobile-dashboard-page .frc-mobile-attendance-card {
    display: grid !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-race-card span,
  body.frc-mobile-dashboard-page .frc-mobile-attendance-card span {
    color: #3f4650 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-race-card strong,
  body.frc-mobile-dashboard-page .frc-mobile-race-card b,
  body.frc-mobile-dashboard-page .frc-mobile-attendance-card strong {
    color: #1d1c1b !important;
    font-size: 18px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-race-card p,
  body.frc-mobile-dashboard-page .frc-mobile-attendance-card p {
    margin: 0 !important;
    color: #3f4650 !important;
    font-size: 14px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-progress {
    height: 9px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: rgba(63, 70, 80, 0.12) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-progress i {
    display: block !important;
    width: 0 !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: #f26624 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-map-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-map-card strong {
    color: #1d1c1b !important;
    font-size: 17px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area {
    background-color: #1f1f1f !important;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
      url("assets/mobile-hero.jpeg") !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    background-position: 35% top !important;
    background-repeat: no-repeat !important;
    filter: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card {
    max-height: calc(340px - env(safe-area-inset-top) - 118px) !important;
    margin-bottom: 40px !important;
    overflow: visible !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-member-card .frc-mobile-stats-grid {
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-member-card .frc-mobile-member-lines {
    gap: 4px !important;
    margin-top: 9px !important;
    font-size: 13px !important;
    line-height: 1.18 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-events-empty button[data-home-action="signin"],
  body.frc-mobile-dashboard-page .frc-mobile-events-section button[data-home-action="gallery"] {
    justify-self: start !important;
    min-height: 38px !important;
    margin-top: 6px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #f26624 !important;
    font-weight: 800 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-quick-board,
  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > .frc-mobile-quick-board {
    margin-top: -35px !important;
    position: relative !important;
    z-index: 2 !important;
  }

}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  body.frc-mobile-dashboard-page .frc-mobile-quick-board,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board,
  body.frc-mobile-dashboard-page .mobile-upcoming-events-board,
  body.frc-mobile-dashboard-page .frc-mobile-community,
  body.frc-mobile-dashboard-page .frc-mobile-info-card,
  body.frc-mobile-dashboard-page .frc-mobile-club-stats,
  body.frc-mobile-dashboard-page .frc-mobile-event-card {
    transition: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-quick-board:active,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board:active,
  body.frc-mobile-dashboard-page .mobile-upcoming-events-board:active,
  body.frc-mobile-dashboard-page .frc-mobile-community:active,
  body.frc-mobile-dashboard-page .frc-mobile-info-card:active,
  body.frc-mobile-dashboard-page .frc-mobile-club-stats:active,
  body.frc-mobile-dashboard-page .frc-mobile-event-card:active {
    transform: none !important;
  }
}

/* Mobile-only More menu refinement. */
@media (max-width: 1023px) {
  .mobile-page .burger-btn,
  .mobile-page #menuToggleBtn {
    display: none !important;
  }

  .frc-mobile-bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0;
  }

  .frc-mobile-more-overlay {
    padding: 0 12px calc(var(--frc-mobile-nav-height) + env(safe-area-inset-bottom) + 10px) !important;
  }

  .frc-mobile-more-sheet {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(env(safe-area-inset-bottom) + 72px) !important;
    width: calc(100% - 28px) !important;
    max-width: 430px !important;
    max-height: min(74vh, 620px);
    overflow-y: auto;
    padding: 9px 12px 12px !important;
    border-radius: 28px 28px 20px 20px !important;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    margin: 0 auto !important;
    transform: translateX(-50%) translateY(110%) !important;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
    scrollbar-width: none;
  }

  .frc-mobile-more-overlay.is-open .frc-mobile-more-sheet {
    transform: translateX(-50%) translateY(0) !important;
  }

  .frc-mobile-nav-training-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url("./assets/training.svg") center / contain no-repeat;
    mask: url("./assets/training.svg") center / contain no-repeat;
  }

  .frc-mobile-more-sheet::-webkit-scrollbar {
    display: none;
  }

  .frc-mobile-more-head {
    padding: 0 2px 8px !important;
  }

  .frc-mobile-more-head strong {
    color: #3F4650 !important;
    font-size: 17px;
  }

  .frc-mobile-more-head button {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px;
    min-height: 26px;
    font-size: 19px !important;
    line-height: 1 !important;
  }

  .frc-mobile-more-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 4px 10px;
  }

  .frc-mobile-more-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: #f26624;
    object-fit: cover;
    font: 900 14px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  }

  .frc-mobile-more-user strong {
    display: block;
    color: #3F4650 !important;
    font-size: 15px;
    line-height: 1.15;
  }

  .frc-mobile-more-user span {
    display: block;
    margin-top: 3px;
    color: rgba(63,70,80,.68) !important;
    font-size: 12px;
    line-height: 1.2;
  }

  .frc-mobile-more-divider {
    height: 1px;
    width: 100%;
    margin: 2px 0;
    background: rgba(242,102,36,.34);
  }

  .frc-mobile-more-items {
    gap: 4px !important;
  }

  .frc-mobile-more-item {
    min-height: 39px !important;
    gap: 10px !important;
    padding: 7px 10px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.56) !important;
  }

  .frc-mobile-more-item svg {
    width: 18px !important;
    height: 18px !important;
  }

  .frc-mobile-more-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .frc-mobile-more-copy strong {
    color: #3F4650 !important;
    font-size: 13px;
    line-height: 1.1;
  }

  .frc-mobile-more-copy small {
    color: rgba(63,70,80,.66) !important;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.15;
  }

  .frc-mobile-more-signout .frc-mobile-more-copy strong,
  .frc-mobile-more-signout svg {
    color: #C62828 !important;
    stroke: #C62828 !important;
  }

  .frc-mobile-more-app {
    display: grid;
    gap: 2px;
    padding: 8px 2px 2px;
    text-align: center;
  }

  .frc-mobile-more-app strong {
    color: rgba(63,70,80,.62) !important;
    font-size: 11px;
    font-weight: 800;
  }

  .frc-mobile-more-app span {
    color: rgba(63,70,80,.48) !important;
    font-size: 10px;
    font-weight: 700;
  }
}

/* Mobile-only More sheet width lock: identical on Home, Training, Events, My Runs, and Account. */
@media (max-width: 1023px) {
  .frc-mobile-more-overlay {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-items: initial !important;
  }

  .mobile-more-sheet,
  .frc-mobile-more-sheet {
    position: fixed !important;
    left: 50vw !important;
    right: auto !important;
    bottom: calc(env(safe-area-inset-bottom) + 72px) !important;
    width: calc(100vw - 28px) !important;
    max-width: 430px !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transform: translateX(-50%) translateY(110%) !important;
  }

  .mobile-more-sheet.is-open,
  .frc-mobile-more-sheet.is-open,
  .frc-mobile-more-overlay.is-open .mobile-more-sheet,
  .frc-mobile-more-overlay.is-open .frc-mobile-more-sheet {
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* Mobile-only signed-out Account safety: no editable actions without auth. */
@media (max-width: 1023px) {
  body.mobile-account-signed-out .mobile-account-actions,
  body.mobile-account-signed-out #mobileAccountEditBtn,
  body.mobile-account-signed-out #mobileAccountCancelBtn,
  body.mobile-account-signed-out #mobileAccountSaveBtn {
    display: none !important;
  }
}

.frc-mobile-signedout-empty .frc-mobile-empty-state-card {
  display: none;
}

/* Mobile-only final hero/menu/modal cleanup. */
@media (max-width: 1023px) {
  .mobile-page,
  .mobile-page body,
  .mobile-page .modal-content,
  .mobile-page .auth-modal-content,
  .mobile-page .sidebar,
  .mobile-page .mobile-sidebar,
  .mobile-page .schedule-modal,
  .mobile-page .schedule-modal-card,
  .mobile-page .training-modal,
  .mobile-page .training-registration-form,
  .mobile-page .training-agreement-popup,
  .mobile-page .training-agreement-scroll,
  .mobile-page .signout-confirm-dialog {
    touch-action: pan-y pinch-zoom !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area {
    min-height: 345px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: calc(env(safe-area-inset-top) + 92px) 20px 118px !important;
    color: #fff !important;
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.48), rgba(0,0,0,.34) 44%, rgba(0,0,0,.64)),
      url("assets/mobile-hero.jpeg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card {
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card::before,
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card::after {
    content: none !important;
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card h2 {
    max-width: 330px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 31px !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.42) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card .frc-mobile-hero-kicker {
    margin: 9px 0 0 !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.38) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-hero-actions {
    margin-top: 18px !important;
  }

  .frc-mobile-more-item {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .frc-mobile-more-item:active {
    background: rgba(242,102,36,.08) !important;
  }

  .mobile-page .signout-confirm-yes {
    border: 1px solid #f26624 !important;
    color: #fff !important;
    background: #f26624 !important;
  }

  .mobile-page .signout-confirm-no {
    border: 1px solid rgba(63,70,80,.18) !important;
    color: #3F4650 !important;
    background: rgba(63,70,80,.10) !important;
  }

  .mobile-page #authGatewayModal .custom-modal-card,
  .mobile-page #signInCard,
  .mobile-page #signUpCard {
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

/* Mobile-only signed-out empty states for My Runs and Account. */
@media (max-width: 1023px) {
  body.my-runs-mobile-page.mobile-runs-signed-out .page-content,
  body.account-mobile-page.mobile-account-signed-out .page-content {
    min-height: calc(100dvh - var(--frc-mobile-nav-height, 76px) - env(safe-area-inset-bottom) - 92px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: calc(env(safe-area-inset-top) + 76px) 16px calc(var(--frc-mobile-nav-height, 76px) + env(safe-area-inset-bottom) + 36px) !important;
    box-sizing: border-box !important;
  }

  body.my-runs-mobile-page.mobile-runs-signed-out .container,
  body.account-mobile-page.mobile-account-signed-out .settings-card {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.my-runs-mobile-page.mobile-runs-signed-out .container > h2,
  body.account-mobile-page.mobile-account-signed-out .mobile-account-toolbar,
  body.account-mobile-page.mobile-account-signed-out .desktop-profile-title,
  body.account-mobile-page.mobile-account-signed-out #profileStatus {
    display: none !important;
  }

  .frc-mobile-signedout-empty {
    width: 100% !important;
    margin: 0 auto !important;
    color: #3F4650 !important;
    text-align: center !important;
  }

  .frc-mobile-signedout-empty[hidden] {
    display: none !important;
  }

  .frc-mobile-empty-state-card {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 20px 22px !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.18) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  .frc-desktop-signedout-copy {
    display: none !important;
  }

  .frc-mobile-empty-illustration {
    width: 82px !important;
    height: 82px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 auto 14px !important;
    border-radius: 26px !important;
    color: #f26624 !important;
    background: rgba(242,102,36,.10) !important;
  }

  .frc-mobile-empty-illustration svg {
    width: 58px !important;
    height: 58px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 3 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .frc-mobile-empty-state-card h2 {
    margin: 0 !important;
    color: #3F4650 !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
    letter-spacing: -.03em !important;
  }

  .frc-mobile-empty-state-card p {
    margin: 10px 0 0 !important;
    color: #3F4650 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .frc-mobile-empty-state-card ul {
    display: grid !important;
    gap: 8px !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left !important;
  }

  .frc-mobile-empty-state-card li {
    color: #3F4650 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
  }

  .frc-mobile-empty-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }

  .frc-mobile-empty-btn {
    min-height: 46px !important;
    border-radius: 999px !important;
    font: 900 14px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
    transition: transform .14s ease, box-shadow .16s ease !important;
  }

  .frc-mobile-empty-btn:active {
    transform: scale(.97) !important;
  }

  .frc-mobile-empty-btn.is-primary {
    border: 1px solid #f26624 !important;
    color: #fff !important;
    background: #f26624 !important;
    box-shadow: 0 10px 22px rgba(242,102,36,.24) !important;
  }

  .frc-mobile-empty-btn.is-secondary {
    border: 1px solid rgba(242,102,36,.34) !important;
    color: #f26624 !important;
    background: rgba(255,255,255,.60) !important;
  }

  body.my-runs-mobile-page.mobile-runs-signed-out .site-footer,
  body.account-mobile-page.mobile-account-signed-out .site-footer {
    max-width: 430px !important;
    margin: 0 auto calc(var(--frc-mobile-nav-height, 76px) + env(safe-area-inset-bottom) + 16px) !important;
    padding: 0 16px !important;
    color: rgba(63,70,80,.72) !important;
    text-align: center !important;
    font-size: 12px !important;
  }
}

/* Mobile-only Admin spacing, footer consistency, and More overlay cleanup. */
@media (max-width: 1023px) {
  body.mobile-page .mobile-app-title .frc-established-mark,
  body.mobile-page .mobile-app-title .est-badge,
  body.mobile-page .mobile-app-title .header-est-badge,
  body.mobile-page .mobile-app-title .frc-est {
    display: none !important;
  }

  body.frc-mobile-admin-page main {
    padding-top: calc(env(safe-area-inset-top) + 88px) !important;
  }

  body.frc-mobile-admin-page .admin-shell,
  body.frc-mobile-admin-page .admin-loading,
  body.frc-mobile-admin-page .access-denied {
    scroll-margin-top: calc(env(safe-area-inset-top) + 88px) !important;
  }

  body.my-runs-mobile-page .site-footer,
  body.account-mobile-page .site-footer {
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 16px !important;
    color: #f26624 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  .frc-mobile-more-overlay:not(.is-open) {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Mobile-only hero image float: animate the background layer, not the content. */
@media (max-width: 1023px) {
  @keyframes mobileHeroFloat {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
    100% {
      transform: translateY(0);
    }
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background-color: #1f1f1f !important;
    background-image: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: -10px 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
      url("assets/mobile-hero.jpeg") !important;
    background-size: cover !important;
    background-position: 35% top !important;
    background-repeat: no-repeat !important;
    animation: mobileHeroFloat 10s ease-in-out infinite !important;
    will-change: transform !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.mobile-welcome-card {
    position: relative !important;
    z-index: 1 !important;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  body.frc-mobile-dashboard-page .frc-mobile-top-area::before {
    animation: none !important;
    will-change: auto !important;
  }
}

/* Mobile dialog safety: success/error dialogs must stay above all mobile layers. */
@media (max-width: 1023px) {
  .signout-confirm-overlay,
  .success-dialog-overlay,
  .app-dialog-overlay,
  .toast-overlay,
  .custom-modal-backdrop,
  .auth-gateway-modal,
  .modal.show,
  [role="dialog"][aria-modal="true"] {
    z-index: 999999 !important;
  }

  .signout-confirm-overlay,
  .success-dialog-overlay,
  .app-dialog-overlay,
  .toast-overlay {
    z-index: 1000001 !important;
  }

  .signout-confirm-overlay.active,
  .success-dialog-overlay.active,
  .app-dialog-overlay.active,
  .toast-overlay.active,
  .custom-modal-backdrop.show,
  .auth-gateway-modal.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .signout-confirm-overlay.active .signout-confirm-dialog,
  .success-dialog-overlay.active *,
  .app-dialog-overlay.active *,
  .toast-overlay.active * {
    visibility: visible !important;
    opacity: 1 !important;
  }

}

/* Mobile Home glass consistency: mirror the Why Join FRC card effect on main boards. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page .frc-mobile-quick-board,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board,
  body.frc-mobile-dashboard-page .mobile-upcoming-events-board,
  body.frc-mobile-dashboard-page .frc-mobile-community,
  body.frc-mobile-dashboard-page .frc-mobile-club-stats {
    background: var(--frc-mobile-glass-bg) !important;
    background-color: var(--frc-mobile-glass-bg) !important;
    background-image: none !important;
    border: var(--frc-mobile-glass-border) !important;
    border-radius: var(--frc-mobile-glass-radius) !important;
    box-shadow: var(--frc-mobile-glass-shadow) !important;
    backdrop-filter: var(--frc-mobile-glass-blur) !important;
    -webkit-backdrop-filter: var(--frc-mobile-glass-blur) !important;
  }

  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-section-header,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-event-scroll {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Mobile Home final visual split: Community mirrors Why Join FRC glass; Halool stays solid white. */
@media (max-width: 768px) {
  body.frc-mobile-dashboard-page #frcMobileCommunity.frc-mobile-community,
  body.frc-mobile-dashboard-page .frc-mobile-home.mobile-home-stack > #frcMobileCommunity.frc-mobile-community {
    padding: 18px !important;
    background: var(--frc-mobile-glass-bg) !important;
    background-color: var(--frc-mobile-glass-bg) !important;
    background-image: none !important;
    border: var(--frc-mobile-glass-border) !important;
    border-radius: var(--frc-mobile-glass-radius) !important;
    box-shadow: var(--frc-mobile-glass-shadow) !important;
    backdrop-filter: var(--frc-mobile-glass-blur) !important;
    -webkit-backdrop-filter: var(--frc-mobile-glass-blur) !important;
  }

  body.frc-mobile-dashboard-page #frcMobileHaloolCountdown.frc-mobile-countdown-board,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: 1px solid rgba(63, 70, 80, 0.10) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    overflow: hidden !important;
  }

  body.frc-mobile-dashboard-page #frcMobileHaloolCountdown.frc-mobile-countdown-board::before,
  body.frc-mobile-dashboard-page #frcMobileHaloolCountdown.frc-mobile-countdown-board::after,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board::before,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.frc-mobile-dashboard-page #frcMobileHaloolCountdown.frc-mobile-countdown-board > div:first-child {
    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }

  body.frc-mobile-dashboard-page #frcMobileHaloolCountdown.frc-mobile-countdown-board .frc-mobile-countdown-image,
  body.frc-mobile-dashboard-page .frc-mobile-countdown-board .frc-mobile-countdown-image {
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image:
      linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 22%, rgba(255, 255, 255, 0.94) 36%, rgba(255, 255, 255, 0.42) 60%, rgba(255, 255, 255, 0) 80%),
      url("assets/halool-5k-countdown.jpg") !important;
    background-position: center right !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}

/* Emergency mobile animation safety: content must never depend on reveal JS to show. */
@media (max-width: 768px) {
  .frc-mobile-reveal,
  .mobile-reveal,
  .reveal,
  .fade-up,
  .slide-up,
  [data-mobile-reveal] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .frc-mobile-soft-enter {
    animation: frcMobileSoftEnter 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes frcMobileSoftEnter {
    from {
      opacity: 0.15;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .frc-mobile-soft-enter {
    animation: none !important;
  }
}

/* Mobile My Runs/Account footer: keep copyright below all page cards. */
@media (max-width: 768px) {
  body.my-runs-mobile-page .frc-mobile-footer,
  body.account-mobile-page .frc-mobile-footer {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    flex-basis: 100% !important;
    margin: 30px 0 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  body.my-runs-mobile-page .frc-mobile-copyright,
  body.account-mobile-page .frc-mobile-copyright {
    display: block !important;
    width: 100% !important;
    color: #f26624 !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Mobile Upcoming Events header strip fix: title row inherits the glass board background. */
@media (max-width: 768px) {
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board > .mobile-section-header,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-section-header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board > .mobile-section-header::before,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board > .mobile-section-header::after,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-section-header::before,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-section-header::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
  }

  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board > .mobile-section-header h2,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-section-header h2 {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board > .mobile-section-header h2::before,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board > .mobile-section-header h2::after,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-section-header h2::before,
  body.frc-mobile-dashboard-page #frcMobileUpcomingEvents.mobile-upcoming-events-board .mobile-section-header h2::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
  }
}

/* Mobile-only Activities page activity status badge text fix. */
@media (max-width: 768px) {
  body.my-runs-mobile-page .activity-list-section .activity-card-top .activity-status-badge,
  body.my-runs-mobile-page .activity-list-section .activity-card-top .activity-status-badge * {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }

  body.my-runs-mobile-page .activity-list-section .activity-card-top .activity-status-badge::before,
  body.my-runs-mobile-page .activity-list-section .activity-card-top .activity-status-badge::after {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }

  body.my-runs-mobile-page #pastChallengeProgressCard .activity-card-top .activity-status-badge.is-admin-approved,
  body.my-runs-mobile-page #pastChallengeProgressCard .activity-card-top .activity-status-badge.is-admin-approved * {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }

  body.my-runs-mobile-page #pastChallengeProgressCard summary .activity-status-badge.is-completed,
  body.my-runs-mobile-page #pastChallengeProgressCard summary .activity-status-badge.is-completed * {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }
}

/* Mobile-only Events page registered-card final sizing/actions. */
@media (max-width: 768px) {
  body.frc-mobile-dashboard-page .frc-mobile-events-registered-list {
    display: grid !important;
    gap: 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-registered-event {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 16px 10px !important;
    padding-bottom: 10px !important;
    align-content: start !important;
    gap: 5px !important;
    line-height: 1.32 !important;
    margin-bottom: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-registered-event strong {
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-registered-event span {
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-registered-event em {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: max-content !important;
    align-self: flex-start !important;
    justify-self: start !important;
    flex: 0 0 auto !important;
    padding: 4px 10px !important;
    margin: 1px 0 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions button {
    min-height: 38px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 0 12px !important;
    background: #f26624 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions button:disabled,
  body.frc-mobile-dashboard-page .frc-mobile-event-actions button[aria-disabled="true"] {
    background: rgba(148, 163, 184, 0.35) !important;
    color: rgba(71, 85, 105, 0.75) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-event-actions button[data-mobile-event-share] {
    background: rgba(242, 102, 36, 0.12) !important;
    color: #f26624 !important;
    border: 1px solid rgba(242, 102, 36, 0.28) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-bib-preview {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 62px !important;
    height: 46px !important;
    display: grid !important;
    grid-template-columns: 1fr 8px !important;
    grid-template-rows: 11px 1fr 10px !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid rgba(242, 102, 36, 0.35) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-bib-preview-head {
    grid-column: 1 !important;
    color: #f26624 !important;
    font-size: 7px !important;
    font-weight: 900 !important;
    line-height: 11px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-bib-preview strong {
    grid-column: 1 !important;
    color: #111 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    margin: 0 !important;
    place-self: center !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-bib-preview small {
    grid-column: 1 !important;
    color: #f26624 !important;
    font-size: 7px !important;
    font-weight: 900 !important;
    line-height: 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-bib-preview i {
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
    display: grid !important;
    place-items: center !important;
    background: #f26624 !important;
    color: #fff !important;
    font-size: 5px !important;
    font-style: normal !important;
    font-weight: 900 !important;
    writing-mode: vertical-rl !important;
    transform: rotate(180deg) !important;
  }
}

/* Mobile Training final header/width fix. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page .frc-mobile-home.frc-mobile-training-page.mobile-home-stack {
    margin-top: 64px !important;
    padding-top: 0 !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-home.frc-mobile-training-page.mobile-home-stack > .frc-mobile-training-hero,
  body.frc-mobile-dashboard-page .frc-mobile-home.frc-mobile-training-page.mobile-home-stack > .frc-mobile-training-section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-home.frc-mobile-training-page.mobile-home-stack .frc-mobile-session-card,
  body.frc-mobile-dashboard-page .frc-mobile-home.frc-mobile-training-page.mobile-home-stack .frc-mobile-race-card,
  body.frc-mobile-dashboard-page .frc-mobile-home.frc-mobile-training-page.mobile-home-stack .frc-mobile-training-checklist li {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-shell {
    width: calc(100% - 32px) !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    border-radius: 28px !important;
    padding: 18px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(63, 70, 80, 0.12) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
    overflow: hidden !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-tab-panel[hidden] {
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-shell .frc-mobile-events-tabs,
  body.frc-mobile-dashboard-page .frc-mobile-training-shell .frc-mobile-training-tab-panel,
  body.frc-mobile-dashboard-page .frc-mobile-training-shell .frc-mobile-training-card,
  body.frc-mobile-dashboard-page .frc-mobile-training-shell .frc-mobile-session-card,
  body.frc-mobile-dashboard-page .frc-mobile-training-shell .frc-mobile-training-section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-tab-panel {
    display: grid !important;
    gap: 16px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-shell > .frc-mobile-training-tab-panel > .frc-mobile-training-card,
  body.frc-mobile-dashboard-page .frc-mobile-training-shell .frc-mobile-training-card {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    border-radius: 22px !important;
    padding: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(63, 70, 80, 0.10) !important;
    box-shadow: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-shell h3 {
    margin: 0 0 10px !important;
    color: #f26624 !important;
    font-size: 20px !important;
    line-height: 1.14 !important;
    font-weight: 950 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-shell h4 {
    margin: 12px 0 8px !important;
    color: #1d1c1b !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-shell p {
    margin: 0 0 8px !important;
    color: #3f4650 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-field {
    display: grid !important;
    gap: 6px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: rgba(242, 102, 36, 0.06) !important;
    border: 1px solid rgba(242, 102, 36, 0.10) !important;
    margin-bottom: 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-field span,
  body.frc-mobile-dashboard-page .frc-mobile-training-about-grid span {
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-field strong,
  body.frc-mobile-dashboard-page .frc-mobile-training-about-grid strong {
    color: #1d1c1b !important;
    font-size: 16px !important;
    font-weight: 950 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-days {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-days span,
  body.frc-mobile-dashboard-page .frc-mobile-training-registered-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    color: #16a34a !important;
    background: rgba(34, 197, 94, 0.12) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-week-row {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
    margin: 4px 0 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-week-row span {
    display: grid !important;
    place-items: center !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    color: #6b7280 !important;
    background: rgba(63, 70, 80, 0.06) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-week-row span.is-selected {
    color: #f26624 !important;
    background: rgba(242, 102, 36, 0.11) !important;
    border: 1px solid rgba(242, 102, 36, 0.16) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-week-row b {
    font-size: 14px !important;
    line-height: 1 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-legend {
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-about-grid {
    display: grid !important;
    gap: 10px !important;
    margin: 12px 0 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-training-about-grid div {
    display: grid !important;
    gap: 5px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: rgba(63, 70, 80, 0.04) !important;
    border: 1px solid rgba(63, 70, 80, 0.08) !important;
  }
}

/* Mobile-only final modal/dialog z-index ladder. */
@media (max-width: 1023px) {
  .mobile-page .mobile-header,
  .mobile-page .frc-mobile-bottom-nav,
  .mobile-page .mobile-bottom-nav {
    z-index: 5000 !important;
  }

  .mobile-page .frc-mobile-more-overlay {
    z-index: 8000 !important;
  }

  .mobile-page .frc-mobile-more-sheet {
    z-index: auto !important;
  }

  .mobile-page .custom-modal-backdrop,
  .mobile-page .auth-gateway-modal,
  .mobile-page .modal.show {
    z-index: 10000 !important;
  }

  .mobile-page #signOutConfirmDialog.signout-confirm-overlay,
  .mobile-page .success-dialog-overlay,
  .mobile-page .app-dialog-overlay,
  .mobile-page .toast-overlay {
    position: fixed !important;
    z-index: 999999 !important;
  }

  .mobile-page #signOutConfirmDialog.signout-confirm-overlay.active,
  .mobile-page .success-dialog-overlay.active,
  .mobile-page .app-dialog-overlay.active,
  .mobile-page .toast-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .mobile-page .frc-mobile-bib-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    background: rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  .mobile-page .frc-mobile-bib-modal-card {
    width: min(430px, 100%) !important;
    max-height: calc(100dvh - 36px) !important;
    overflow-y: auto !important;
    padding: 18px !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28) !important;
  }

  .mobile-page .frc-mobile-bib-modal-card h2 {
    margin: 0 0 12px !important;
    color: #f26624 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-align: center !important;
  }

  .mobile-page .frc-mobile-bib-modal-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .mobile-page .frc-mobile-bib-modal-actions button {
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f26624 !important;
    color: #fff !important;
    font-weight: 900 !important;
  }

  .mobile-page .frc-mobile-bib-modal-actions button[data-mobile-bib-close] {
    background: rgba(242, 102, 36, 0.12) !important;
    color: #f26624 !important;
    border: 1px solid rgba(242, 102, 36, 0.28) !important;
  }
}

/* Mobile Events details layer. */
@media (max-width: 1023px) {
  .mobile-page .frc-mobile-event-details-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9000 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 10px calc(env(safe-area-inset-bottom) + 8px) !important;
    pointer-events: none !important;
  }

  .mobile-page .frc-mobile-event-details-overlay[hidden] {
    display: none !important;
  }

  .mobile-page .frc-mobile-event-details-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.38) !important;
    opacity: 0 !important;
    transition: opacity 260ms ease !important;
    pointer-events: auto !important;
  }

  .mobile-page .frc-mobile-event-details-sheet {
    position: relative !important;
    z-index: 1 !important;
    width: min(430px, 100%) !important;
    max-height: calc(100dvh - 72px) !important;
    overflow: hidden !important;
    border-radius: 30px 30px 24px 24px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    transform: translateY(104%) !important;
    opacity: 0.92 !important;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 320ms ease !important;
    pointer-events: auto !important;
  }

  .mobile-page .frc-mobile-event-details-overlay.is-open .frc-mobile-event-details-backdrop {
    opacity: 1 !important;
  }

  .mobile-page .frc-mobile-event-details-overlay.is-open .frc-mobile-event-details-sheet {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  .mobile-page .frc-mobile-event-details-handle {
    width: 42px !important;
    height: 5px !important;
    margin: 10px auto 7px !important;
    border-radius: 999px !important;
    background: rgba(63, 70, 80, 0.22) !important;
  }

  .mobile-page .frc-mobile-event-details-body {
    max-height: calc(100dvh - 94px) !important;
    overflow-y: auto !important;
    padding: 0 14px 0 !important;
    color: #1f2933 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mobile-page .frc-mobile-event-details-header {
    padding: 6px 6px 12px !important;
    text-align: left !important;
    background: transparent !important;
  }

  .mobile-page .frc-mobile-event-details-header small {
    display: inline-flex !important;
    margin-bottom: 8px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: rgba(242, 102, 36, 0.12) !important;
    color: #f26624 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .mobile-page .frc-mobile-event-details-header h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 24px !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
  }

  .mobile-page .frc-mobile-event-details-grid,
  .mobile-page .frc-mobile-event-details-card {
    margin: 10px 0 0 !important;
    padding: 14px !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    border: 1px solid rgba(63, 70, 80, 0.1) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
  }

  .mobile-page .frc-mobile-event-details-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .mobile-page .frc-mobile-event-details-grid div,
  .mobile-page .frc-mobile-event-details-progress div {
    min-width: 0 !important;
  }

  .mobile-page .frc-mobile-event-details-grid span,
  .mobile-page .frc-mobile-event-details-progress span {
    display: block !important;
    color: #6b7280 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  .mobile-page .frc-mobile-event-details-grid strong,
  .mobile-page .frc-mobile-event-details-progress strong {
    display: block !important;
    margin-top: 3px !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .mobile-page .frc-mobile-event-details-card h3 {
    margin: 0 0 8px !important;
    color: #f26624 !important;
    font-size: 15px !important;
    font-weight: 950 !important;
  }

  .mobile-page .frc-mobile-event-details-card p {
    margin: 0 0 8px !important;
    color: #374151 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .mobile-page .frc-mobile-event-details-card p:last-child {
    margin-bottom: 0 !important;
  }

  .mobile-page .frc-mobile-event-details-card ul {
    margin: 0 !important;
    padding-left: 18px !important;
    color: #374151 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .mobile-page .frc-mobile-event-details-progress {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .mobile-page .frc-mobile-event-details-actions {
    position: sticky !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin: 12px -14px 0 !important;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom)) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #ffffff 28%) !important;
    border-top: 1px solid rgba(63, 70, 80, 0.08) !important;
  }

  .mobile-page .frc-mobile-event-details-actions button {
    min-height: 46px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f26624 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }

  .mobile-page .frc-mobile-event-details-actions button[data-event-details-close] {
    background: rgba(242, 102, 36, 0.12) !important;
    color: #f26624 !important;
    border: 1px solid rgba(242, 102, 36, 0.24) !important;
  }

  .mobile-page .frc-mobile-event-registered-note {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 34px !important;
    border-radius: 999px !important;
    background: rgba(34, 197, 94, 0.12) !important;
    color: #16a34a !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .mobile-page .frc-mobile-event-details-backdrop,
  .mobile-page .frc-mobile-event-details-sheet {
    transition: none !important;
  }
}

/* Mobile-only event poster preview. */
@media (max-width: 1023px) {
  .mobile-page .frc-mobile-event-details-poster {
    display: block !important;
    width: 100% !important;
    margin: 6px 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #111827 !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22) !important;
  }

  .mobile-page .frc-mobile-event-details-poster img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
    background: #111827 !important;
  }

  .mobile-page .frc-mobile-poster-preview {
    position: fixed !important;
    inset: 0 !important;
    z-index: 12000 !important;
    display: grid !important;
    place-items: center !important;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 220ms ease, visibility 220ms ease !important;
  }

  .mobile-page .frc-mobile-poster-preview[hidden] {
    display: none !important;
  }

  .mobile-page .frc-mobile-poster-preview.is-open {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mobile-page .frc-mobile-poster-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.88) !important;
  }

  .mobile-page .frc-mobile-poster-image {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: auto !important;
    max-width: min(100%, 430px) !important;
    max-height: 86dvh !important;
    object-fit: contain !important;
    border-radius: 18px !important;
    transform: scale(0.92) !important;
    opacity: 0.2 !important;
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease !important;
    touch-action: pan-x pan-y pinch-zoom !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .mobile-page .frc-mobile-poster-preview.is-open .frc-mobile-poster-image {
    transform: scale(1) !important;
    opacity: 1 !important;
  }

  .mobile-page .frc-mobile-poster-preview.is-zoomed .frc-mobile-poster-image {
    transform: scale(1.75) !important;
    cursor: zoom-out !important;
  }

  .mobile-page .frc-mobile-poster-close {
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    right: 14px !important;
    z-index: 2 !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    font-size: 28px !important;
    line-height: 1 !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .mobile-page .frc-mobile-poster-preview,
  .mobile-page .frc-mobile-poster-image {
    transition: none !important;
  }
}

/* Mobile-only FRC Gear page. Desktop remains untouched. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page .frc-mobile-gear-page[hidden] {
    display: none !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-page {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin: 0 -16px 24px !important;
    padding: 84px 0 calc(var(--frc-mobile-nav-height, 76px) + env(safe-area-inset-bottom) + 18px) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    border-radius: 28px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: #3F4650 !important;
    padding: 18px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-heading span,
  body.frc-mobile-dashboard-page .frc-mobile-gear-section-head span {
    color: #f26624 !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-heading h2,
  body.frc-mobile-dashboard-page .frc-mobile-gear-section-head h3 {
    margin: 0 !important;
    color: #3F4650 !important;
    line-height: 1.1 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-heading p {
    margin: 8px 0 0 !important;
    color: rgba(63, 70, 80, 0.72) !important;
    line-height: 1.45 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-section-head {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-feature-card {
    display: grid !important;
    grid-template-columns: 132px 1fr !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-placeholder {
    min-height: 150px !important;
    border-radius: 22px !important;
    display: grid !important;
    place-items: center !important;
    gap: 4px !important;
    padding: 14px !important;
    text-align: center !important;
    color: #fff !important;
    background: linear-gradient(145deg, #f26624, #111) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-placeholder span {
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-placeholder small {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-feature-copy {
    display: grid !important;
    align-content: center !important;
    gap: 8px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-feature-copy strong,
  body.frc-mobile-dashboard-page .frc-mobile-gear-product strong,
  body.frc-mobile-dashboard-page .frc-mobile-gear-membership strong {
    color: #3F4650 !important;
    font-size: 16px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-price {
    color: #f26624 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-member-price {
    color: #22c55e !important;
    font-size: 13px !important;
    font-weight: 850 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-feature-copy button,
  body.frc-mobile-dashboard-page .frc-mobile-gear-membership button,
  body.frc-mobile-dashboard-page .frc-mobile-gear-primary {
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f26624 !important;
    color: #fff !important;
    font-weight: 900 !important;
    padding: 0 16px !important;
    box-shadow: 0 10px 20px rgba(242, 102, 36, 0.24) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-list {
    display: grid !important;
    gap: 10px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-product,
  body.frc-mobile-dashboard-page .frc-mobile-gear-order {
    width: 100% !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    border: 1px solid rgba(63, 70, 80, 0.1) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    text-align: left !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-product:active,
  body.frc-mobile-dashboard-page .frc-mobile-gear-feature-copy button:active,
  body.frc-mobile-dashboard-page .frc-mobile-gear-membership button:active,
  body.frc-mobile-dashboard-page .frc-mobile-gear-primary:active {
    transform: scale(0.985) !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-product-icon {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    color: #fff !important;
    background: #f26624 !important;
    font-size: 18px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-product small,
  body.frc-mobile-dashboard-page .frc-mobile-gear-order span {
    display: block !important;
    margin-top: 3px !important;
    color: rgba(63, 70, 80, 0.64) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-membership ul {
    margin: 12px 0 14px !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid !important;
    gap: 7px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-membership li {
    color: #3F4650 !important;
    font-weight: 750 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-order-statuses {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 0 12px !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-order-statuses span {
    padding: 5px 9px !important;
    border-radius: 999px !important;
    color: #f26624 !important;
    background: rgba(242, 102, 36, 0.1) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
  }

  body.frc-mobile-dashboard-page .frc-mobile-gear-empty {
    padding: 16px !important;
    border-radius: 18px !important;
    color: rgba(63, 70, 80, 0.72) !important;
    background: rgba(255, 255, 255, 0.58) !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  .frc-mobile-gear-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9000 !important;
    display: grid !important;
    align-items: end !important;
    padding: calc(18px + env(safe-area-inset-top)) 14px calc(var(--frc-mobile-nav-height, 76px) + env(safe-area-inset-bottom) + 12px) !important;
    background: rgba(0, 0, 0, 0.42) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease !important;
  }

  .frc-mobile-gear-modal[hidden] {
    display: none !important;
  }

  .frc-mobile-gear-modal.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .frc-mobile-gear-modal-card {
    width: calc(100vw - 28px) !important;
    max-width: 430px !important;
    max-height: min(78vh, 680px) !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    padding: 18px !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28) !important;
    transform: translateY(22px) !important;
    transition: transform 0.22s ease !important;
  }

  .frc-mobile-gear-modal.is-open .frc-mobile-gear-modal-card {
    transform: translateY(0) !important;
  }

  .frc-mobile-gear-close {
    position: sticky !important;
    top: 0 !important;
    margin-left: auto !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #f26624 !important;
    background: rgba(242, 102, 36, 0.12) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    z-index: 1 !important;
  }

  .frc-mobile-gear-detail,
  .frc-mobile-gear-order-form {
    display: grid !important;
    gap: 14px !important;
    color: #3F4650 !important;
  }

  .frc-mobile-gear-detail h3,
  .frc-mobile-gear-order-form h3 {
    margin: 0 !important;
    color: #3F4650 !important;
    font-size: 22px !important;
  }

  .frc-mobile-gear-detail-prices {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .frc-mobile-gear-detail-prices span,
  .frc-mobile-gear-detail-group {
    padding: 12px !important;
    border-radius: 18px !important;
    background: rgba(242, 102, 36, 0.08) !important;
    color: #3F4650 !important;
  }

  .frc-mobile-gear-detail-prices strong {
    color: #f26624 !important;
    font-size: 18px !important;
  }

  .frc-mobile-gear-detail-group p {
    margin: 6px 0 0 !important;
    color: rgba(63, 70, 80, 0.72) !important;
    line-height: 1.45 !important;
  }

  .frc-mobile-gear-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 8px !important;
  }

  .frc-mobile-gear-pills span {
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #3F4650 !important;
    font-weight: 850 !important;
  }

  .frc-mobile-gear-order-form label {
    display: grid !important;
    gap: 6px !important;
    color: #3F4650 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  .frc-mobile-gear-order-form input,
  .frc-mobile-gear-order-form select,
  .frc-mobile-gear-order-form textarea {
    width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(63, 70, 80, 0.14) !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
    color: #3F4650 !important;
    background: rgba(255, 255, 255, 0.84) !important;
    font: inherit !important;
  }

  .frc-mobile-gear-order-form textarea {
    min-height: 76px !important;
    resize: vertical !important;
  }
}

@media (max-width: 380px) {
  body.frc-mobile-dashboard-page .frc-mobile-gear-feature-card {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile-only About/Contact page-state spacing. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page #about-tab.active,
  body.frc-mobile-dashboard-page #contact-tab.active {
    padding-top: calc(env(safe-area-inset-top) + 128px) !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
  }

  body.frc-mobile-dashboard-page #about-tab.active .about-us h1,
  body.frc-mobile-dashboard-page #contact-tab.active .contact-us h1 {
    margin-top: 0 !important;
  }

  body.frc-mobile-dashboard-page.frc-mobile-short-info-page {
    padding-bottom: 0 !important;
  }

}

/* Mobile-only UI consistency: reuse the Home mobile shell for Gear, Gallery, About and Contact. */
@media (max-width: 1023px) {
  body.gear-mobile-page.mobile-page {
    background-color: transparent !important;
    background-image: none !important;
    background-attachment: scroll !important;
  }

  body.gear-mobile-page.mobile-page::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: -2 !important;
    background-image: url("assets/desktop-bg-v2.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: scroll !important;
    pointer-events: none !important;
  }

  body.gear-mobile-page.mobile-page::after {
    display: none !important;
    content: none !important;
  }

  body.gear-mobile-page.mobile-page .gear-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: calc(env(safe-area-inset-top) + 84px) 16px calc(var(--frc-mobile-nav-height, 76px) + env(safe-area-inset-bottom) + 26px) !important;
    box-sizing: border-box !important;
  }

  body.gallery-page.mobile-page .gallery-main {
    padding-top: calc(env(safe-area-inset-top) + 84px) !important;
  }

}

/* Final shared mobile scrolled-header blur override. */
@media (max-width: 1023px) {
  body.frc-mobile-home-shell.frc-mobile-header-scrolled .mobile-menu-bar,
  body.frc-mobile-home-shell.frc-mobile-shell-scrolled .mobile-menu-bar {
    background: rgba(255, 255, 255, 0.18) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: blur(2px) saturate(110%) !important;
    -webkit-backdrop-filter: blur(2px) saturate(110%) !important;
  }
}

/* Signed-out mobile Home hero summary positioning only. */
@media (max-width: 1023px) {
  body.frc-mobile-dashboard-page .frc-mobile-top-area .frc-mobile-dashboard.frc-mobile-guest-card {
    margin-top: clamp(-26px, -4svh, -2px) !important;
  }
}

/* Mobile-only bottom nav height consistency for non-Home mobile pages. */
@media (max-width: 1023px) {
  body.my-runs-mobile-page .frc-mobile-bottom-nav,
  body.account-mobile-page .frc-mobile-bottom-nav,
  body.frc-mobile-admin-page .frc-mobile-bottom-nav,
  body.gear-mobile-page .frc-mobile-bottom-nav,
  body.gallery-page .frc-mobile-bottom-nav {
    height: auto !important;
    min-height: 58px !important;
    max-height: none !important;
    padding-top: 7px !important;
    padding-bottom: calc(7px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  body.my-runs-mobile-page .frc-mobile-bottom-nav.frc-mobile-nav-hidden,
  body.account-mobile-page .frc-mobile-bottom-nav.frc-mobile-nav-hidden,
  body.frc-mobile-admin-page .frc-mobile-bottom-nav.frc-mobile-nav-hidden,
  body.gear-mobile-page .frc-mobile-bottom-nav.frc-mobile-nav-hidden,
  body.gallery-page .frc-mobile-bottom-nav.frc-mobile-nav-hidden {
    transform: translateY(110%) !important;
  }
}
