@media (max-width: 820px) and (pointer: coarse) {
  :root {
    --rcm-bg: #05070f;
    --rcm-surface: #0b1020;
    --rcm-surface-raised: #11172b;
    --rcm-border: rgba(255, 255, 255, 0.08);
    --rcm-text: #ffffff;
    --rcm-muted: #9aa3b5;
    --rcm-purple: #7c4dff;
    --rcm-purple-deep: #6d3df0;
    --rcm-cyan: #12b6ff;
    --rcm-mint: #3de8c0;
    --rcm-green: #22c55e;
    --rcm-red: #ef4444;
    --rcm-gutter: 16px;
    --rcm-gap: 14px;
    --rcm-radius-card: 20px;
    --rcm-nav-height: 62px;
  }

  html.rec-mobile-nav-eligible,
  html.rec-mobile-onboarding {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html.rec-mobile-nav-authenticated body,
  html.rec-mobile-onboarding body {
    overflow-x: hidden;
    color: var(--rcm-text);
    background: var(--rcm-bg);
    font-size: 14px;
    line-height: 1.45;
  }

  html.rec-mobile-nav-authenticated body {
    padding-bottom: calc(var(--rcm-nav-height) + env(safe-area-inset-bottom, 0px) + 16px) !important;
  }

  html.rec-mobile-nav-eligible .masthead-nav,
  html.rec-mobile-nav-eligible .mobile-bottom-nav {
    display: none !important;
  }

  html.rec-mobile-nav-eligible .masthead {
    position: relative;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 10px var(--rcm-gutter) 12px;
    background: var(--rcm-bg);
    border-bottom: 1px solid var(--rcm-border);
  }

  html.rec-mobile-nav-eligible .masthead-inner {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  html.rec-mobile-nav-eligible .institutional-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    cursor: default;
  }

  html.rec-mobile-nav-eligible .brand-nav-logo {
    width: 32px;
    height: 32px;
    max-width: 32px;
    flex: 0 0 auto;
  }

  html.rec-mobile-nav-eligible .brand-inst-name,
  html.rec-mobile-nav-eligible .session-user-badge,
  html.rec-mobile-nav-eligible .btn-signout-icon {
    display: none !important;
  }

  html.rec-mobile-nav-eligible .brand-titles {
    display: flex !important;
    min-width: max-content;
    flex: 0 0 auto;
    overflow: visible;
    white-space: nowrap;
  }

  html.rec-mobile-nav-eligible .brand-platform-title {
    color: var(--rcm-text);
    display: block;
    overflow: visible;
    font: 600 18px/1.2 Outfit, sans-serif;
    text-overflow: clip;
    white-space: nowrap;
  }

  html.rec-mobile-nav-eligible .masthead-user-slot { margin-left: auto; }
  html.rec-mobile-nav-eligible .notif-dropdown-wrap { position: relative; }
  html.rec-mobile-nav-eligible .notif-bell-btn {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #dce3f2;
    background: transparent;
    border: 0;
    border-radius: 50%;
  }

  html.rec-mobile-nav-eligible .notif-bell-btn svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html.rec-mobile-nav-eligible #notifBadgeEl:not([style*="display: none"]) {
    position: absolute;
    top: 1px;
    right: 0;
    display: grid !important;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    color: #fff;
    background: var(--rcm-red);
    border: 2px solid var(--rcm-bg);
    border-radius: 999px;
    font: 600 11px/1 Outfit, sans-serif;
  }

  html.rec-mobile-nav-eligible .notif-dropdown-menu {
    position: fixed;
    z-index: 10002;
    top: 70px;
    right: max(12px, calc((100vw - 480px) / 2 + 12px));
    width: min(360px, calc(100vw - 24px));
    max-height: min(70dvh, 520px);
    overflow: auto;
    color: var(--rcm-text);
    background: #11172b;
    border: 1px solid rgba(168, 140, 255, 0.25);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.56);
  }

  html.rec-mobile-nav-eligible .ticker-rule {
    display: flex;
    width: min(calc(100% - 2 * var(--rcm-gutter)), 448px);
    min-height: 48px;
    margin: 12px auto 16px;
    padding: 5px 10px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    color: var(--rcm-text);
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
  }

  html.rec-mobile-nav-eligible .tr-label {
    display: flex;
    min-width: max-content;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    color: var(--rcm-cyan);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    font: 700 11px/1.2 Outfit, sans-serif;
    letter-spacing: 0.025em;
    text-transform: uppercase;
  }

  html.rec-mobile-nav-eligible .tr-label > span:not(.tr-dot) { display: none; }
  html.rec-mobile-nav-eligible .tr-label {
    min-width: 9px;
    min-height: 36px;
    padding: 0;
    border-right: 0;
  }

  html.rec-mobile-nav-eligible .tr-dot {
    width: 9px;
    height: 9px;
    background: var(--rcm-green);
    border-radius: 50%;
    box-shadow: 0 0 11px rgba(34, 197, 94, 0.55);
    animation: recMobileLiveDotPulse 2.2s ease-in-out infinite;
  }

  html.rec-mobile-nav-eligible .tr-marquee {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  html.rec-mobile-nav-eligible #headerNoticeTicker { display: none !important; }
  html.rec-mobile-nav-authenticated .rec-mobile-ticker-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #e5eaf4;
    font: 400 13px/1.45 Outfit, sans-serif;
    white-space: nowrap;
  }

  .rec-mobile-ticker-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
  }

  .rec-mobile-ticker-sequence {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    white-space: nowrap;
  }

  .rec-mobile-ticker-sequence > span { flex: none; }
  .rec-mobile-ticker-sequence .rec-mobile-ticker-separator { color: var(--rcm-green); }

  .rec-mobile-ticker-track:not([data-static="true"]) {
    animation: recMobileTickerScroll var(--mobile-ticker-duration, 28s) linear infinite;
  }

  .ticker-rule:active .rec-mobile-ticker-track { animation-play-state: paused; }

  @keyframes recMobileTickerScroll {
    to { transform: translateX(-50%); }
  }

  @keyframes recMobileLiveDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.72; transform: scale(0.88); }
  }

  @media (prefers-reduced-motion: reduce) {
    html.rec-mobile-nav-eligible .tr-dot { animation: none; }
    .rec-mobile-ticker-track { animation: none !important; transform: none !important; }
  }

  html.rec-mobile-nav-eligible #mainContent {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 0 var(--rcm-gutter);
    color: var(--rcm-text);
  }

  html.rec-mobile-nav-eligible .campus-stories-bar,
  html.rec-mobile-nav-eligible #section-hero { display: none !important; }

  html.rec-mobile-nav-eligible .rec-mobile-home:not([hidden]) {
    display: grid;
    gap: var(--rcm-gap);
    width: 100%;
    margin: 0 auto 28px;
  }

  html.rec-mobile-nav-eligible .rec-mobile-greeting {
    position: relative;
    display: flex;
    min-height: 0;
    align-items: center;
    gap: 12px;
    padding: 14px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(116deg, #0b1020 0%, #11132d 54%, #27205c 100%);
    border: 1px solid var(--rcm-border);
    border-radius: 18px;
  }

  html.rec-mobile-nav-eligible .rec-mobile-greeting::after {
    position: absolute;
    z-index: -1;
    right: -14px;
    bottom: -36px;
    width: 62%;
    height: 92px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.28));
    filter: blur(19px);
    transform: rotate(-14deg);
  }

  html.rec-mobile-nav-eligible .rec-mobile-greeting-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    overflow: hidden;
    background: #dbeafe;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
  }

  html.rec-mobile-nav-eligible .rec-mobile-greeting-avatar svg { width: 100%; height: 100%; }
  html.rec-mobile-nav-eligible .rec-mobile-greeting-copy { z-index: 1; min-width: 0; }
  html.rec-mobile-nav-eligible .rec-mobile-greeting-copy h1 {
    max-width: 100%;
    margin: 0 0 7px;
    overflow: hidden;
    color: #fff;
    font: 700 20px/1.2 Outfit, sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.rec-mobile-nav-eligible .rec-mobile-greeting-copy p {
    margin: 0;
    color: #aeb8cc;
    font: 400 13px/1.45 Outfit, sans-serif;
  }

  html.rec-mobile-nav-eligible .rec-mobile-campus-art { display: none; }
  html.rec-mobile-nav-eligible .rec-mobile-section-heading {
    display: flex;
    min-height: 26px;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 8px;
    gap: 8px;
  }

  html.rec-mobile-nav-eligible .rec-mobile-section-heading h2 {
    margin: 0;
    color: var(--rcm-text);
    font: 700 17px/1.2 Outfit, sans-serif;
  }

  html.rec-mobile-nav-eligible .rec-mobile-section-heading a {
    color: #b4bbca;
    font: 500 13px/1.4 Outfit, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }

  html.rec-mobile-nav-eligible .rec-mobile-section-heading a span { font-size: 18px; vertical-align: -1px; }
  html.rec-mobile-nav-eligible .rec-mobile-gathering-tile {
    display: flex;
    height: 76px;
    min-height: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #f5f7ff;
    background: linear-gradient(135deg, #101a29, #101625);
    border: 1px solid rgba(168, 140, 255, 0.2);
    border-radius: 18px;
    text-decoration: none;
  }

  html.rec-mobile-nav-eligible .rec-mobile-gathering-tile svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html.rec-mobile-nav-eligible .rec-mobile-gathering-tile span { font: 500 13px/1.4 Outfit, sans-serif; }
  html.rec-mobile-nav-eligible .rec-mobile-match-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #0e1427 0%, #090e19 75%);
    border: 1px solid var(--rcm-border);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-card[hidden] { display: none !important; }
  html.rec-mobile-nav-eligible .rec-mobile-match-card::before {
    position: absolute;
    top: -62px;
    right: -68px;
    width: 220px;
    height: 220px;
    content: "";
    border: 1px solid rgba(124, 77, 255, 0.23);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(124, 77, 255, 0.035), 0 0 0 50px rgba(124, 77, 255, 0.025);
    pointer-events: none;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-badge {
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    gap: 9px;
    padding: 5px 12px;
    color: var(--rcm-cyan);
    background: rgba(18, 182, 255, 0.1);
    border-radius: 999px;
    font: 700 11px/1.2 Outfit, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-badge svg {
    width: 22px;
    height: 22px;
    padding: 3px;
    color: #e7f5ff;
    background: rgba(125, 174, 223, 0.3);
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-card h2 {
    z-index: 1;
    margin: 4px 0 0;
    color: var(--rcm-text);
    font: 700 clamp(20px, 5.6vw, 24px)/1.2 Outfit, sans-serif;
    letter-spacing: -0.025em;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-card h2 span {
    color: #a78bfa;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-card > p {
    z-index: 1;
    margin: -3px 0 0;
    color: var(--rcm-muted);
    font: 400 13.5px/1.45 Outfit, sans-serif;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-primary,
  html.rec-mobile-nav-eligible .rec-mobile-match-secondary {
    z-index: 1;
    display: flex;
    width: 100%;
    height: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 12px;
    color: #fff;
    border-radius: 999px;
    font: 600 15px/1.4 Outfit, sans-serif;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-primary {
    background: linear-gradient(100deg, #9257f5, #713be9);
    border: 1px solid rgba(204, 183, 255, 0.35);
    box-shadow: 0 8px 22px rgba(109, 61, 240, 0.25);
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-secondary {
    height: 44px;
    min-height: 44px;
    background: rgba(6, 11, 20, 0.3);
    border: 1px solid rgba(160, 172, 196, 0.24);
    font-size: 14px;
    font-weight: 500;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-primary svg,
  html.rec-mobile-nav-eligible .rec-mobile-match-secondary svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  html.rec-mobile-nav-eligible .rec-mobile-match-primary svg:first-child { fill: currentColor; }
  html.rec-mobile-nav-eligible .rec-mobile-match-primary .rec-mobile-arrow { width: 25px; }

  #recMobileNav[hidden] { display: none !important; }
  #recMobileNav {
    position: fixed;
    z-index: 9990;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    display: grid;
    width: min(calc(100% - 24px), 456px);
    height: var(--rcm-nav-height);
    grid-template-columns: minmax(66px, 1.18fr) 54px minmax(58px, 1fr) minmax(54px, 1fr) 46px;
    align-items: center;
    margin-inline: auto;
    padding: 0 8px;
    isolation: isolate;
    background: rgba(10, 12, 24, 0.85);
    border: 1px solid rgba(168, 140, 255, 0.25);
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    #recMobileNav { background: rgba(10, 12, 24, 0.97); }
  }

  .rec-mobile-nav-item {
    position: relative;
    display: flex;
    min-width: 44px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 4px;
    padding: 4px 7px;
    color: #9aa3b5;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 500 10.5px/1.1 Outfit, sans-serif;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 160ms ease, color 160ms ease, transform 120ms ease;
  }

  .rec-mobile-nav-item:not(.rec-mobile-go-active):not(.rec-mobile-nav-avatar) { flex-direction: column; }
  .rec-mobile-nav-item svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .rec-mobile-nav-network[aria-current="page"] {
    color: #fff;
    background: rgba(124, 77, 255, 0.25);
    border-color: rgba(168, 140, 255, 0.3);
  }

  .rec-mobile-nav-messages,
  .rec-mobile-nav-twin,
  .rec-mobile-nav-avatar { border-left-color: rgba(255, 255, 255, 0.08); }
  .rec-mobile-nav-messages { border-left: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }
  .rec-mobile-nav-twin { border-left: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }
  .rec-mobile-nav-avatar { border-left: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }

  .rec-mobile-nav-avatar {
    width: 46px;
    height: 54px;
    padding-left: 8px;
  }

  .rec-mobile-nav-avatar svg,
  .rec-mobile-nav-avatar img {
    width: 36px;
    height: 36px;
    overflow: hidden;
    background: #cfe9f5;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
  }

  .rec-mobile-go-active {
    z-index: 2;
    width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    color: #a5f7e4;
    background: rgba(22, 52, 52, 0.86);
    border: 2px solid rgba(61, 232, 192, 0.48);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(61, 232, 192, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .rec-mobile-go-active[aria-pressed="true"] {
    color: #063c32;
    background: linear-gradient(145deg, #3de8c0, #19d3a8);
    border-color: rgba(215, 255, 247, 0.88);
    box-shadow: 0 0 0 4px rgba(61, 232, 192, 0.2), 0 0 25px rgba(61, 232, 192, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.75);
    animation: recMobileActivePulse 2.8s ease-in-out infinite;
  }

  .rec-mobile-go-active i {
    position: absolute;
    top: 0;
    left: 1px;
    width: 9px;
    height: 9px;
    background: #fff;
    border: 2px solid rgba(10, 12, 24, 0.9);
    border-radius: 50%;
  }

  .rec-mobile-go-active:disabled { opacity: 0.6; cursor: not-allowed; animation: none; }
  .rec-mobile-nav-item:active { transform: scale(0.95); }
  .rec-mobile-nav-item:focus-visible,
  .rec-mobile-match-primary:focus-visible,
  .rec-mobile-match-secondary:focus-visible,
  .rec-mobile-gathering-tile:focus-visible,
  .rec-mobile-section-heading a:focus-visible {
    outline: 2px solid var(--rcm-cyan);
    outline-offset: 3px;
  }

  .rec-mobile-route-tabs[hidden] { display: none !important; }
  .rec-mobile-route-tabs:not([hidden]) {
    display: flex;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 4px;
    padding: 0 12px;
    margin-inline: auto;
    background: var(--rcm-bg);
    border-bottom: 1px solid var(--rcm-border);
  }

  .rec-mobile-route-tab {
    position: relative;
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--rcm-muted);
    font: 600 14px/1.2 Outfit, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }

  .rec-mobile-route-tab[aria-current="page"] { color: var(--rcm-text); }
  .rec-mobile-route-tab[aria-current="page"]::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    content: "";
    background: var(--rcm-purple);
    border-radius: 2px 2px 0 0;
  }

  .rec-mobile-route-new {
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    padding: 0 10px;
    color: #d9ccff;
    background: transparent;
    border: 0;
    font: 600 13px/1.2 Outfit, sans-serif;
    white-space: nowrap;
  }

  .rec-mobile-route-tab:focus-visible,
  .rec-mobile-route-new:focus-visible { outline: 2px solid var(--rcm-cyan); outline-offset: -2px; }
  .rec-mobile-nav-status {
    position: fixed;
    z-index: 10001;
    bottom: calc(var(--rcm-nav-height) + 28px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    max-width: calc(100vw - 32px);
    padding: 10px 15px;
    color: #fff;
    background: rgba(17, 23, 43, 0.97);
    border: 1px solid rgba(168, 140, 255, 0.28);
    border-radius: 14px;
    font: 500 13px/1.4 Outfit, sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .rec-mobile-nav-status.is-visible { opacity: 1; transform: translate(-50%, 0); }
  html.rec-mobile-nav-eligible .toast-container,
  html.rec-mobile-nav-eligible #toastContainer,
  html.rec-mobile-nav-eligible .toast-message { bottom: calc(var(--rcm-nav-height) + 28px + env(safe-area-inset-bottom, 0px)) !important; }

  html.rec-mobile-nav-eligible #messagesLayout {
    height: calc(var(--messages-viewport-height, 100dvh) - var(--header-height, 56px) - env(safe-area-inset-top, 0px) - var(--rcm-nav-height) - 16px - env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: 0 !important;
  }

  html.rec-mobile-nav-eligible #messagesLayout { flex-direction: column; }
  html.rec-mobile-nav-eligible #messagesLayout > .rec-mobile-route-tabs { width: 100%; }
  html.rec-mobile-nav-eligible #messagesLayout > .conversations-pane,
  html.rec-mobile-nav-eligible #messagesLayout > .chat-pane { flex: 1 1 0; min-height: 0; }
  html.rec-mobile-nav-eligible #messagesLayout .pane-header { display: none !important; }
  html.rec-mobile-nav-eligible #messagesLayout .conversations-pane { height: auto; }

  html.rec-mobile-nav-eligible.messages-keyboard-open #recMobileNav { display: none !important; }
  html.rec-mobile-nav-eligible.messages-keyboard-open #messagesLayout {
    height: calc(var(--messages-viewport-height, 100dvh) - var(--header-height, 56px) - env(safe-area-inset-top, 0px)) !important;
  }

  html.rec-mobile-nav-eligible .app-header,
  html.rec-mobile-nav-eligible .onboarding-topbar {
    width: min(100%, 480px);
    margin-inline: auto;
    background: var(--rcm-bg);
  }

  html.rec-mobile-nav-eligible .messages-layout,
  html.rec-mobile-nav-eligible .gatherings-page-wrap,
  html.rec-mobile-nav-eligible .twin-page-wrap,
  html.rec-mobile-nav-eligible #settingsMain,
  html.rec-mobile-nav-eligible .onboarding-main {
    width: min(100%, 480px);
    max-width: 480px;
    margin-inline: auto;
    color: var(--rcm-text);
  }

  html.rec-mobile-nav-eligible .gatherings-page-wrap,
  html.rec-mobile-nav-eligible .twin-page-wrap,
  html.rec-mobile-nav-eligible #settingsMain,
  html.rec-mobile-nav-eligible .onboarding-main { padding-left: var(--rcm-gutter); padding-right: var(--rcm-gutter); }

  html.rec-mobile-nav-eligible .messages-layout { max-width: 480px; }
  html.rec-mobile-nav-authenticated .messages-layout,
  html.rec-mobile-nav-authenticated .conversations-pane,
  html.rec-mobile-nav-authenticated .chat-pane,
  html.rec-mobile-nav-authenticated .chat-header,
  html.rec-mobile-nav-authenticated .conversations-header,
  html.rec-mobile-nav-authenticated .chat-messages-scroll {
    color: var(--rcm-text);
    background-color: var(--rcm-bg);
    border-color: var(--rcm-border);
  }

  html.rec-mobile-nav-eligible .chat-messages-scroll { padding-bottom: 18px; }
  html.rec-mobile-nav-eligible .composer-container { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  html.rec-mobile-nav-eligible .composer-textarea,
  html.rec-mobile-nav-eligible input,
  html.rec-mobile-nav-eligible select,
  html.rec-mobile-nav-eligible textarea,
  html.rec-mobile-nav-eligible .form-input-impeccable,
  html.rec-mobile-nav-eligible .apple-input-field,
  html.rec-mobile-nav-eligible .gfb-search-input { font-size: 16px !important; }

  html.rec-mobile-nav-authenticated .form-input-impeccable,
  html.rec-mobile-nav-authenticated .apple-input-field,
  html.rec-mobile-nav-authenticated .gfb-search-input,
  html.rec-mobile-onboarding input,
  html.rec-mobile-onboarding select,
  html.rec-mobile-onboarding textarea {
    color: var(--rcm-text);
    background-color: #11172b;
    border-color: rgba(255, 255, 255, 0.14);
  }

  html.rec-mobile-onboarding .onboarding-card { background: var(--rcm-surface); }

  html.rec-mobile-nav-eligible #settingsMain,
  html.rec-mobile-nav-eligible .apple-settings-card,
  html.rec-mobile-nav-eligible .settings-id-card,
  html.rec-mobile-nav-eligible .psc-section,
  html.rec-mobile-nav-eligible .onboarding-card,
  html.rec-mobile-nav-eligible .gatherings-hero-card,
  html.rec-mobile-nav-eligible .twin-hero-box,
  html.rec-mobile-nav-eligible .twin-viewport-card {
    color: var(--rcm-text);
    background-color: var(--rcm-surface);
    border-color: var(--rcm-border);
    border-radius: var(--rcm-radius-card);
  }

  html.rec-mobile-nav-eligible #settingsMain { padding-top: 18px; padding-bottom: 24px; }
  html.rec-mobile-nav-eligible #settingsMain .profile-page-layout { gap: 16px; }
  html.rec-mobile-nav-eligible #settingsMain .pp-col-settings,
  html.rec-mobile-nav-eligible #settingsMain .pp-col-visual,
  html.rec-mobile-nav-eligible #settingsMain .psc-section,
  html.rec-mobile-nav-eligible #settingsMain .apple-settings-card { min-width: 0; max-width: 100%; }
  html.rec-mobile-nav-eligible #settingsMain .settings-save-bar {
    position: sticky;
    bottom: calc(var(--rcm-nav-height) + 16px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    gap: 8px;
    padding: 10px;
    background: rgba(11, 16, 32, 0.94);
    border: 1px solid var(--rcm-border);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  html.rec-mobile-nav-eligible .onboarding-topbar { padding: 10px var(--rcm-gutter); }
  html.rec-mobile-nav-eligible .onboarding-main { padding-top: 18px; padding-bottom: 24px; }
  html.rec-mobile-nav-eligible .onboarding-card { padding: 18px; }
  html.rec-mobile-nav-eligible .onboarding-footer { padding-bottom: 12px; }
  html.rec-mobile-nav-eligible .gatherings-page-wrap,
  html.rec-mobile-nav-eligible .twin-page-wrap { padding-top: 16px; padding-bottom: 24px; }
  html.rec-mobile-nav-eligible .twin-viewport-card { overflow: hidden; }

  @media (max-width: 360px) {
    :root { --rcm-gutter: 14px; }
    #recMobileNav { grid-template-columns: minmax(58px, 1.08fr) 52px minmax(50px, 1fr) minmax(48px, 0.95fr) 42px; padding-inline: 6px; }
    .rec-mobile-nav-avatar { width: 42px; padding-left: 4px; }
    .rec-mobile-nav-avatar svg, .rec-mobile-nav-avatar img { width: 34px; height: 34px; }
    html.rec-mobile-nav-eligible .rec-mobile-match-card { padding-inline: 15px; }
    html.rec-mobile-nav-eligible .rec-mobile-match-primary { gap: 6px; font-size: 14px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }

  @keyframes recMobileActivePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.035); opacity: 0.94; }
  }



  #recMobileNav {
    box-sizing: border-box;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-inline: 10px;
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
  }

  .rec-mobile-nav-item {
    width: 100%;
    min-width: 0;
    height: 54px;
    box-sizing: border-box;
    justify-self: stretch;
    padding-inline: 2px;
    overflow: visible;
    isolation: isolate;
  }

  .rec-mobile-nav-item:not(.rec-mobile-go-active):not(.rec-mobile-nav-avatar) {
    flex-direction: column;
  }

  .rec-mobile-nav-item svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .rec-mobile-nav-item:not(.rec-mobile-go-active):not(.rec-mobile-nav-avatar) span {
    max-width: 100%;
    overflow: visible;
    font: 500 10.5px/1.1 Outfit, sans-serif;
    white-space: nowrap;
  }

  .rec-mobile-nav-network[aria-current="page"] {
    position: relative;
    color: #fff;
    background: transparent;
    border-color: transparent;
  }

  .rec-mobile-nav-network[aria-current="page"]::after {
    position: absolute;
    z-index: -1;
    inset: 2px 1px;
    content: "";
    background: rgba(124, 77, 255, 0.25);
    border: 1px solid rgba(168, 140, 255, 0.3);
    border-radius: 999px;
    pointer-events: none;
  }

  .rec-mobile-nav-avatar {
    display: flex;
    width: 100%;
    height: 54px;
    min-height: 48px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font: 600 15px/1 Outfit, sans-serif;
  }

  .rec-mobile-nav-avatar .memoji-avatar-badge,
  .rec-mobile-nav-avatar .rec-mobile-avatar-placeholder,
  .rec-mobile-nav-avatar > img {
    display: block;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    max-width: 36px;
    flex: 0 0 36px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    background: #11172b;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
  }

  .rec-mobile-nav-avatar .memoji-avatar-badge img,
  .rec-mobile-nav-avatar > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
  }

  .rec-mobile-nav-avatar .rec-mobile-avatar-placeholder {
    display: grid;
    place-items: center;
    color: #f4efff;
    background: #242037;
    font: 600 15px/1 Outfit, sans-serif;
  }

  .rec-mobile-nav-avatar[aria-current="page"] .memoji-avatar-badge,
  .rec-mobile-nav-avatar[aria-current="page"] .rec-mobile-avatar-placeholder,
  .rec-mobile-nav-avatar[aria-current="page"] > img {
    border-color: #a78bfa;
    box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.34);
  }

  .rec-mobile-go-active {
    display: grid;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    justify-self: center;
    place-items: center;
    padding: 0;
    overflow: visible;
    box-shadow: 0 0 0 4px rgba(61, 232, 192, 0.09), 0 0 16px rgba(61, 232, 192, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .rec-mobile-go-active svg {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    transform: translate(0, 0);
  }

  .rec-mobile-go-active[aria-pressed="true"] {
    box-shadow: 0 0 0 4px rgba(61, 232, 192, 0.2), 0 0 24px rgba(61, 232, 192, 0.48), inset 0 1px 2px rgba(255, 255, 255, 0.75);
  }

  .rec-mobile-go-active[aria-pressed="true"] svg { fill: currentColor; stroke-width: 1.1; }
  .rec-mobile-go-active i { top: -2px; left: -2px; z-index: 2; }
  html.rec-mobile-document-hidden .rec-mobile-go-active { animation-play-state: paused !important; }

  .rec-mobile-admin-settings-link[hidden] { display: none !important; }
  .rec-mobile-admin-settings-link:not([hidden]) {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 14px;
    padding: 0 14px;
    color: var(--rcm-text);
    background: var(--rcm-surface-raised);
    border: 1px solid var(--rcm-border);
    border-radius: 14px;
    font: 600 14px/1.3 Outfit, sans-serif;
    text-decoration: none;
  }

  .rec-mobile-admin-settings-link:not([hidden])::after { content: "›"; color: var(--rcm-muted); font-size: 20px; }

  html.rec-mobile-nav-eligible .rec-mobile-reconnect {
    display: flex;
    min-height: 64px;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: var(--rcm-muted);
    background: var(--rcm-surface);
    border: 1px solid var(--rcm-border);
    border-radius: 16px;
    font: 500 13px/1.4 Outfit, sans-serif;
  }

  html.rec-mobile-nav-eligible .rec-mobile-reconnect button { min-height: 44px; touch-action: manipulation; white-space: nowrap; }
  html.rec-mobile-nav-eligible .rec-mobile-chat-reconnect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px;
    padding: 10px 12px;
    color: var(--rcm-muted);
    background: var(--rcm-surface);
    border: 1px solid var(--rcm-border);
    border-radius: 14px;
    font: 500 13px/1.4 Outfit, sans-serif;
  }
  html.rec-mobile-nav-eligible .rec-mobile-chat-reconnect button { min-height: 44px; padding: 0 12px; color: var(--rcm-text); background: transparent; border: 1px solid var(--rcm-border); border-radius: 999px; touch-action: manipulation; }



  html.rec-mobile-nav-eligible .institutional-footer {
    width: min(100%, 480px);
    box-sizing: border-box;
    margin: 24px auto 0;
    padding: 20px var(--rcm-gutter) calc(var(--rcm-nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
    color: var(--rcm-text);
    background: var(--rcm-surface);
    border: 1px solid var(--rcm-border);
    border-radius: var(--rcm-radius-card);
  }

  html.rec-mobile-nav-eligible .institutional-footer .if-inner { width: 100%; max-width: none; }
  html.rec-mobile-nav-eligible .institutional-footer .if-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
    width: 100%;
  }

  html.rec-mobile-nav-eligible .institutional-footer .if-col { min-width: 0; }
  html.rec-mobile-nav-eligible .institutional-footer .if-col-brand { grid-column: 1 / -1; }
  html.rec-mobile-nav-eligible .institutional-footer .if-col-platform-modules { display: none; }
  html.rec-mobile-nav-eligible .institutional-footer .if-col:not(.if-col-brand):has(.if-col-title:first-child) { min-width: 0; }
  html.rec-mobile-nav-eligible .institutional-footer .if-col:has(.if-col-title:first-child) .if-col-title { font: 700 11px/1.3 Outfit, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
  html.rec-mobile-nav-eligible .institutional-footer .if-col:has(.if-col-title:first-child) .if-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 4px 0;
    color: var(--rcm-muted);
    font: 400 13px/1.4 Outfit, sans-serif;
    overflow-wrap: anywhere;
  }

  html.rec-mobile-nav-eligible .institutional-footer .if-col:has(.if-col-title:first-child) .if-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  html.rec-mobile-nav-eligible .institutional-footer .if-col:has(.if-col-title:first-child) .if-col-title { color: var(--rcm-muted); }
  html.rec-mobile-nav-eligible .institutional-footer .if-col-brand ~ .if-col .if-links li:has(a[href="/"]),
  html.rec-mobile-nav-eligible .institutional-footer .if-col-brand ~ .if-col .if-links li:has(a[href="/messages"]),
  html.rec-mobile-nav-eligible .institutional-footer .if-col-brand ~ .if-col .if-links li:has(a[href="/chat"]),
  html.rec-mobile-nav-eligible .institutional-footer .if-col-brand ~ .if-col .if-links li:has(a[href="/3d-twin"]),
  html.rec-mobile-nav-eligible .institutional-footer .if-col-brand ~ .if-col .if-links li:has(a[href="/settings"]) { display: none !important; }
  html.rec-mobile-nav-eligible .institutional-footer .if-bottom-strip {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--rcm-border);
    text-align: center;
  }

  html.rec-mobile-nav-eligible .institutional-footer .if-copyright,
  html.rec-mobile-nav-eligible .institutional-footer .if-meta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 7px;
    min-width: 0;
    color: var(--rcm-muted);
    font: 400 11.5px/1.5 Outfit, sans-serif;
    overflow-wrap: anywhere;
  }

  html.rec-mobile-nav-eligible .institutional-footer a { max-width: 100%; overflow-wrap: anywhere; }
  html.rec-mobile-nav-eligible .institutional-footer .if-brand-row { align-items: center; }
  html.rec-mobile-nav-eligible .institutional-footer .if-brand-row img { width: 32px; height: 32px; aspect-ratio: 1 / 1; object-fit: contain; }
  html.rec-mobile-nav-eligible .institutional-footer .if-inst-title { font-size: 18px; }
  html.rec-mobile-nav-eligible .institutional-footer .if-inst-subtitle { color: var(--rcm-muted); font-size: 11px; }
  html.rec-mobile-nav-eligible .institutional-footer p,
  html.rec-mobile-nav-eligible .institutional-footer .if-col-brand > div:not(.if-brand-row) { max-width: 100%; overflow-wrap: anywhere; }

  html.rec-mobile-nav-eligible .rec-mobile-nav-item,
  html.rec-mobile-nav-eligible .rec-mobile-match-primary,
  html.rec-mobile-nav-eligible .rec-mobile-match-secondary { touch-action: manipulation; }
  html.rec-mobile-nav-eligible .institutional-footer a:focus-visible { outline: 2px solid var(--rcm-cyan); outline-offset: 2px; }
  html.rec-mobile-nav-eligible .institutional-footer .if-col-title { margin-bottom: 8px; }
  html.rec-mobile-nav-eligible .institutional-footer .if-status-badge { max-width: 100%; flex-wrap: wrap; }
  html.rec-mobile-nav-eligible .institutional-footer .if-col-brand > p { margin: 10px 0 10px !important; font: 400 12px/1.45 Outfit, sans-serif !important; color: var(--rcm-muted) !important; }

  @media (max-width: 360px) {
    #recMobileNav { padding-inline: 8px; }
    .rec-mobile-nav-item:not(.rec-mobile-go-active):not(.rec-mobile-nav-avatar) { padding-inline: 0; }
  }
}
