/* Mobile app layer: loaded after the current design and scoped to phones only. */
.mobile-app-nav {
  display: none;
}

.mobile-app-inbox-strip {
  display: none;
}

@media (max-width: 820px) {
  :root {
    --app-blue: #0e5ba8;
    --app-blue-dark: #073f7d;
    --app-primary: #0e5ba8;
    --app-primary-strong: #073f7d;
    --app-bg: #eef5fb;
    --app-card: #ffffff;
    --app-border: rgba(14, 91, 168, 0.14);
    --app-shadow: 0 18px 40px rgba(9, 47, 88, 0.12);
  }

  html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: var(--app-bg);
    scroll-padding-top: 72px;
  }

  body:not(.admin-body) {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
    background: var(--app-bg);
    -webkit-tap-highlight-color: transparent;
  }

  body:not(.admin-body) * {
    max-inline-size: 100%;
  }

  body:not(.admin-body) .site-header {
    position: sticky !important;
    inset-block-start: 0 !important;
    z-index: 900 !important;
    min-height: calc(58px + env(safe-area-inset-top, 0px)) !important;
    padding-block-start: env(safe-area-inset-top, 0px);
    border: 0 !important;
    background: linear-gradient(180deg, #1568be, var(--app-blue-dark)) !important;
    box-shadow: 0 10px 26px rgba(3, 32, 67, 0.22);
  }

  body:not(.admin-body) .site-header-inner {
    width: auto !important;
    max-width: 430px !important;
    min-height: 58px !important;
    margin-inline: 4px !important;
    padding-inline: 2px !important;
    gap: 3px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  body:not(.admin-body) .brand,
  body:not(.admin-body) .mobile-nav-toggle,
  body:not(.admin-body) .member-mini-card,
  body:not(.admin-body) .member-notify-chip,
  body:not(.admin-body) .online-now-link {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.13) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  body:not(.admin-body) .brand {
    display: none !important;
  }

  body:not(.admin-body) .member-mini-card {
    display: none !important;
  }

  body:not(.admin-body) .brand img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 10px;
    background: #fff;
  }

  body:not(.admin-body) .brand span,
  body:not(.admin-body) .member-mini-card strong,
  body:not(.admin-body) .online-now-link strong {
    display: none !important;
  }

  body:not(.admin-body) .mobile-nav-toggle {
    order: 2 !important;
    gap: 4px !important;
  }

  body:not(.admin-body) .mobile-nav-toggle span {
    width: 20px !important;
    height: 2px !important;
    background: currentColor !important;
  }

  body:not(.admin-body) .header-actions {
    order: 3 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 3px !important;
  }

  body:not(.admin-body) .online-now-link span {
    min-width: 26px !important;
    height: 26px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #17c485 !important;
    color: #fff !important;
    font-weight: 900 !important;
  }

  body:not(.admin-body) .flag-switcher {
    display: flex !important;
    gap: 3px !important;
  }

  body:not(.admin-body) .flag-switcher a {
    min-width: 32px !important;
    width: 32px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.13) !important;
  }

  body:not(.admin-body) .member-mini-card img {
    width: 30px !important;
    height: 30px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
  }

  body:not(.admin-body) .member-notify-chip {
    position: relative !important;
    text-decoration: none !important;
  }

  body:not(.admin-body) .member-notify-chip b,
  .mobile-app-nav-item b {
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ec4899;
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
  }

  body:not(.admin-body) .member-notify-chip b {
    position: absolute;
    inset-block-start: -5px;
    inset-inline-start: -5px;
  }

  body:not(.admin-body) .compact-auth {
    width: auto !important;
    min-width: 44px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding-inline: 8px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.13) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 900 !important;
  }

  body:not(.admin-body) .main-nav {
    position: fixed !important;
    z-index: 930 !important;
    inset-block-start: calc(64px + env(safe-area-inset-top, 0px)) !important;
    inset-inline: 10px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-height: calc(100dvh - 92px) !important;
    padding: 12px !important;
    overflow-y: auto !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 24px 55px rgba(5, 28, 57, 0.28) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(0.98) !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease !important;
  }

  body.mobile-nav-open:not(.admin-body) .main-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  body:not(.admin-body) .main-nav a {
    min-height: 48px !important;
    padding: 11px 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 14px !important;
    color: #123c66 !important;
    background: #f3f8fc !important;
    font-weight: 900 !important;
    text-decoration: none !important;
  }

  body:not(.admin-body) .mobile-nav-backdrop {
    position: fixed !important;
    z-index: 920 !important;
    inset: 0 !important;
    display: none;
    background: rgba(5, 22, 42, 0.42) !important;
    backdrop-filter: blur(4px);
  }

  body.mobile-nav-open:not(.admin-body) .mobile-nav-backdrop {
    display: block !important;
  }

  .mobile-app-inbox-strip {
    width: min(334px, calc(100vw - 56px)) !important;
    max-width: calc(100vw - 56px) !important;
    min-height: 58px;
    margin: 10px auto 0 !important;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(7, 34, 63, 0.11);
  }

  .mobile-app-inbox-strip a {
    min-width: 0;
    min-height: 48px;
    position: relative;
    padding: 7px 6px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    justify-content: center;
    color: #123c66;
    text-decoration: none;
    border-radius: 15px;
    background: #f3f8fc;
    font-weight: 900;
  }

  .mobile-app-inbox-strip a:active,
  .mobile-app-inbox-strip a:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, #1d77d4, #0d4f99);
  }

  .mobile-app-inbox-strip span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(14, 91, 168, 0.1);
    line-height: 1;
  }

  .mobile-app-inbox-strip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
  }

  .mobile-app-inbox-strip b {
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    position: absolute;
    inset-block-start: -4px;
    inset-inline-start: 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #ec4899;
    font-size: 0.7rem;
    line-height: 1;
  }

  .mobile-app-nav {
    position: fixed;
    z-index: 880;
    inset-inline: auto !important;
    left: 50% !important;
    right: auto !important;
    width: min(334px, calc(100vw - 56px)) !important;
    max-width: calc(100vw - 56px) !important;
    margin-inline: 0 !important;
    transform: translateX(-50%) !important;
    inset-block-end: max(8px, env(safe-area-inset-bottom, 0px));
    min-height: 66px;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(14, 91, 168, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(7, 34, 63, 0.24);
    backdrop-filter: blur(16px);
  }

  .mobile-app-nav-item {
    min-width: 0;
    min-height: 52px;
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    color: #48647f;
    text-decoration: none;
    border-radius: 17px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-app-nav-item span {
    font-size: 1.12rem;
    line-height: 1;
  }

  .mobile-app-nav-item strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
  }

  .mobile-app-nav-item.is-active {
    color: #fff;
    background: linear-gradient(180deg, #1d77d4, #0d4f99);
    box-shadow: 0 10px 24px rgba(14, 91, 168, 0.24);
  }

  .mobile-app-nav-item b {
    position: absolute;
    inset-block-start: 2px;
    inset-inline-start: 50%;
    transform: translateX(-16px);
  }

  .mobile-app-nav-item:nth-child(3),
  .mobile-app-nav-item:nth-child(4) {
    color: #123c66;
  }

  .mobile-app-nav-item:nth-child(3):not(.is-active),
  .mobile-app-nav-item:nth-child(4):not(.is-active) {
    background: #eef6ff;
  }

  body:not(.admin-body) main,
  body:not(.admin-body) .page-shell,
  body:not(.admin-body) .classic-container,
  body:not(.admin-body) .section-band,
  body:not(.admin-body) .cta-band,
  body:not(.admin-body) .public-profile-shell,
  body:not(.admin-body) .profile-shell {
    width: min(100% - 18px, 820px) !important;
    max-width: 100% !important;
  }

  body.classic-home-page:not(.admin-body) .member-home-dashboard.classic-container {
    width: min(calc(100vw - 12px), 460px) !important;
    max-width: calc(100vw - 12px) !important;
    margin-inline: auto !important;
  }

  body:not(.admin-body) main {
    margin-inline: auto;
  }

  body:not(.admin-body) .classic-logo-band {
    display: none !important;
  }

  body:not(.admin-body) .serious-hero,
  body:not(.admin-body) .classic-online-section,
  body:not(.admin-body) .classic-panel,
  body:not(.admin-body) .form-panel,
  body:not(.admin-body) .public-profile-card,
  body:not(.admin-body) .profile-side-menu,
  body:not(.admin-body) .relation-panel,
  body:not(.admin-body) .message-compose,
  body:not(.admin-body) .suggestion-card,
  body:not(.admin-body) .seo-page-card,
  body:not(.admin-body) .blog-card,
  body:not(.admin-body) .video-card {
    border: 1px solid var(--app-border) !important;
    border-radius: 22px !important;
    background: var(--app-card) !important;
    box-shadow: var(--app-shadow) !important;
  }

  body:not(.admin-body) .serious-hero {
    width: min(100% - 18px, 820px);
    margin: 12px auto !important;
    padding: 0 !important;
    overflow: hidden;
  }

  body:not(.admin-body) .serious-hero-grid,
  body:not(.admin-body) .classic-main-grid,
  body:not(.admin-body) .public-profile-grid,
  body:not(.admin-body) .messages-layout,
  body:not(.admin-body) .profile-workspace,
  body:not(.admin-body) .register-hero-card,
  body:not(.admin-body) .support-layout,
  body:not(.admin-body) .blog-grid,
  body:not(.admin-body) .video-grid,
  body:not(.admin-body) .seo-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body:not(.admin-body) .serious-hero-copy {
    padding: 20px !important;
    border-radius: 22px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.96)),
      url("../images/monaya-hero.png") center bottom / cover no-repeat !important;
  }

  body:not(.admin-body) h1,
  body:not(.admin-body) .serious-hero-copy h1 {
    font-size: clamp(1.6rem, 7vw, 2.15rem) !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }

  body:not(.admin-body) h2 {
    font-size: clamp(1.2rem, 5vw, 1.55rem) !important;
    line-height: 1.35 !important;
  }

  body:not(.admin-body) p,
  body:not(.admin-body) li,
  body:not(.admin-body) label,
  body:not(.admin-body) input,
  body:not(.admin-body) textarea,
  body:not(.admin-body) select {
    font-size: 0.95rem !important;
  }

  body:not(.admin-body) .primary-button,
  body:not(.admin-body) .secondary-button,
  body:not(.admin-body) .ghost-button,
  body:not(.admin-body) .danger-button,
  body:not(.admin-body) button {
    min-height: 44px;
    border-radius: 14px;
  }

  body:not(.admin-body) .serious-hero-actions,
  body:not(.admin-body) .hero-actions,
  body:not(.admin-body) .form-actions,
  body:not(.admin-body) .register-actions,
  body:not(.admin-body) .search-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body:not(.admin-body) .classic-online-section {
    margin-block: 12px !important;
    padding: 12px !important;
    overflow: hidden;
  }

  body:not(.admin-body) .classic-online-section .classic-section-title {
    min-height: auto !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
  }

  body:not(.admin-body) .classic-online-section .classic-section-title h1 {
    font-size: 1.05rem !important;
  }

  body:not(.admin-body) .classic-online-section .classic-section-title p {
    font-size: 0.82rem !important;
  }

  body:not(.admin-body) .classic-online-row {
    min-height: 120px !important;
    padding: 10px !important;
    border-radius: 18px !important;
    background: #f4f9ff !important;
  }

  body:not(.admin-body) .classic-online-row .classic-member-thumb {
    width: 92px !important;
    min-width: 92px !important;
    height: 108px !important;
  }

  body:not(.admin-body) .classic-online-row .classic-member-thumb img {
    height: 108px !important;
    object-fit: cover !important;
  }

  body:not(.admin-body) .classic-menu-grid,
  body:not(.admin-body) .classic-action-tiles,
  body:not(.admin-body) .classic-service-cards,
  body:not(.admin-body) .classic-steps,
  body:not(.admin-body) .serious-flow-grid,
  body:not(.admin-body) .serious-feature-section,
  body:not(.admin-body) .feature-grid,
  body:not(.admin-body) .checkbox-grid,
  body:not(.admin-body) .form-section,
  body:not(.admin-body) .relation-grid,
  body:not(.admin-body) .photo-member-grid,
  body:not(.admin-body) .suggestions-grid {
    grid-template-columns: 1fr !important;
  }

  body:not(.admin-body) .profile-shell {
    padding-block: 12px 96px !important;
  }

  body:not(.admin-body) .profile-side-menu {
    position: static !important;
    padding: 12px !important;
    display: grid !important;
    gap: 10px !important;
  }

  body:not(.admin-body) .profile-side-card {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }

  body:not(.admin-body) .side-avatar {
    width: 54px !important;
    height: 54px !important;
  }

  body:not(.admin-body) .side-completion {
    grid-column: 1 / -1;
  }

  body:not(.admin-body) .mobile-account-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:not(.admin-body) .mobile-account-shortcuts a {
    min-height: 48px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    border: 1px solid rgba(17, 93, 169, 0.14);
    border-radius: 15px;
    color: var(--app-primary);
    background: linear-gradient(180deg, #ffffff, #f3f8ff);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(8, 37, 68, 0.07);
  }

  body:not(.admin-body) .mobile-account-shortcuts span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(180deg, var(--app-primary), var(--app-primary-strong));
    font-size: 0.82rem;
    font-weight: 900;
  }

  body:not(.admin-body) .mobile-account-shortcuts strong {
    min-width: 0;
    color: var(--app-text);
    font-size: 0.82rem;
    line-height: 1.35;
  }

  body:not(.admin-body) .profile-side-scroll {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  body:not(.admin-body) .profile-tabs {
    display: none !important;
  }

  body:not(.admin-body) .profile-side-scroll a {
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 8px 9px !important;
    justify-content: center !important;
    border-radius: 14px !important;
    white-space: normal !important;
    text-align: center;
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }

  body:not(.admin-body) .profile-side-scroll a span {
    display: none !important;
  }

  body:not(.admin-body) .profile-side-scroll a em {
    flex: 0 1 auto !important;
  }

  body:not(.admin-body) .profile-content-area {
    min-width: 0 !important;
  }

  body:not(.admin-body) .profile-top-ad {
    min-height: 64px !important;
    margin-block: 8px !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  body:not(.admin-body) .conversation-list-panel,
  body:not(.admin-body) .chat-window {
    max-height: none !important;
  }

  body:not(.admin-body) .chat-window {
    min-height: 300px !important;
    max-height: 52dvh !important;
    border-radius: 18px !important;
  }

  body:not(.admin-body) .chat-reply-form {
    position: sticky;
    inset-block-end: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    grid-template-columns: 1fr !important;
    padding: 10px;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(8, 37, 68, 0.14);
  }

  body:not(.admin-body) .chat-bubble {
    width: min(88%, 560px) !important;
    padding: 8px 12px 18px !important;
    border-radius: 18px !important;
  }

  body:not(.admin-body) .chat-bubble p {
    line-height: 1.5 !important;
  }

  body:not(.admin-body) .chat-bubble small {
    inset-block-end: 4px !important;
    inset-inline-end: 12px !important;
    font-size: 0.62rem !important;
    opacity: 0.78 !important;
  }

  body.profile-tab-messages:not(.admin-body) {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.profile-tab-messages:not(.admin-body) .mobile-app-inbox-strip {
    position: sticky;
    inset-block-start: calc(58px + env(safe-area-inset-top, 0px));
    z-index: 840;
    min-height: 50px;
    margin-block-start: 6px;
    border-radius: 18px;
  }

  body.profile-tab-messages:not(.admin-body) .mobile-app-inbox-strip a {
    min-height: 42px;
  }

  body.profile-tab-messages:not(.admin-body) .mobile-app-inbox-strip span {
    width: 26px;
    height: 26px;
  }

  body.profile-tab-messages:not(.admin-body) .profile-shell {
    width: 100% !important;
    padding: 6px 0 calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.profile-tab-messages:not(.admin-body) .profile-workspace {
    width: 100% !important;
    display: block !important;
  }

  body.profile-tab-messages:not(.admin-body) .profile-side-menu {
    position: sticky !important;
    inset-block-start: calc(118px + env(safe-area-inset-top, 0px)) !important;
    z-index: 820;
    width: min(100% - 14px, 820px) !important;
    margin: 6px auto 8px !important;
    padding: 7px !important;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 28px rgba(7, 34, 63, 0.1);
  }

  body.profile-tab-messages:not(.admin-body) .profile-side-card,
  body.profile-tab-messages:not(.admin-body) .profile-top-ad,
  body.profile-tab-messages:not(.admin-body) .profile-tabs,
  body.profile-tab-messages:not(.admin-body) .relation-panel > .section-head.compact-head {
    display: none !important;
  }

  body.profile-tab-messages:not(.admin-body) .profile-side-scroll {
    padding: 0 !important;
    gap: 6px !important;
  }

  body.profile-tab-messages:not(.admin-body) .profile-side-scroll a {
    min-height: 36px !important;
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 999px !important;
  }

  body.profile-tab-messages:not(.admin-body) .profile-side-scroll a span {
    display: none !important;
  }

  body.profile-tab-messages:not(.admin-body) .profile-content-area {
    width: min(100% - 12px, 820px) !important;
    margin-inline: auto !important;
  }

  body.profile-tab-messages:not(.admin-body) .relation-panel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.profile-tab-messages:not(.admin-body) .messages-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    min-height: calc(100dvh - 230px);
  }

  body.profile-tab-messages:not(.admin-body) .conversation-list-panel,
  body.profile-tab-messages:not(.admin-body) .message-compose {
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(7, 34, 63, 0.1) !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-list-panel {
    max-height: calc(100dvh - 238px) !important;
    padding: 8px !important;
    overflow: hidden !important;
  }

  body.profile-chat-active:not(.admin-body) .conversation-list-panel {
    max-height: 23dvh !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-list-head {
    gap: 8px !important;
    margin-block-end: 6px !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-list-head small {
    display: none !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-search {
    margin-block: 4px 6px !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-search input {
    min-height: 38px !important;
    border-radius: 14px !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-list {
    max-height: calc(100dvh - 340px) !important;
    overflow-y: auto !important;
    padding-inline-end: 2px !important;
    -webkit-overflow-scrolling: touch;
  }

  body.profile-chat-active:not(.admin-body) .conversation-list {
    max-height: calc(23dvh - 86px) !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-card {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 58px !important;
    padding: 8px !important;
    border-radius: 14px !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-avatar {
    width: 38px !important;
    height: 38px !important;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-body small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.profile-tab-messages:not(.admin-body) .conversation-meta small {
    display: none !important;
  }

  body.profile-tab-messages:not(.admin-body) .message-compose {
    min-height: 188px !important;
    padding: 9px !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  body.profile-chat-active:not(.admin-body) .message-compose {
    min-height: calc(77dvh - 112px) !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-panel-head {
    gap: 8px !important;
    margin-block-end: 8px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-block-form .danger-button {
    min-height: 36px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    font-size: 0.78rem !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-window {
    height: calc(100dvh - 390px) !important;
    min-height: 300px !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 10px !important;
    -webkit-overflow-scrolling: touch;
  }

  body.profile-tab-messages:not(.admin-body) .chat-reply-form {
    position: sticky !important;
    inset-block-end: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    margin-block-start: 8px !important;
    border-radius: 18px !important;
  }

  body.profile-tab-messages:not(.admin-body) .emoji-bar,
  body.profile-tab-messages:not(.admin-body) .chat-media-tools {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto !important;
    padding-block-end: 2px !important;
    -webkit-overflow-scrolling: touch;
  }

  body.profile-tab-messages:not(.admin-body) .emoji-bar button,
  body.profile-tab-messages:not(.admin-body) .chat-file-button,
  body.profile-tab-messages:not(.admin-body) .chat-voice-button,
  body.profile-tab-messages:not(.admin-body) .chat-voice-clear {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    white-space: nowrap !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-reply-form textarea {
    min-height: 46px !important;
    max-height: 96px !important;
    border-radius: 14px !important;
  }

  body:not(.admin-body) .message-toast-stack {
    inset-block-start: 50% !important;
    inset-inline: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 300px !important;
    max-width: calc(100vw - 44px) !important;
    margin-inline: auto !important;
    z-index: 2147483000 !important;
    transform: translateY(-50%) !important;
  }

  body:not(.admin-body) .message-toast {
    min-height: 78px !important;
    border: 2px solid rgba(229, 62, 62, 0.24) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 54px rgba(127, 29, 29, 0.24) !important;
  }

  body:not(.admin-body) .monaya-assistant {
    right: 12px !important;
    left: auto !important;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body:not(.admin-body) .monaya-assistant.member-assistant {
    display: none !important;
  }

  body:not(.admin-body) .assistant-toggle {
    min-height: 48px !important;
    border-radius: 999px !important;
  }

  body:not(.admin-body) .assistant-panel {
    width: min(360px, calc(100vw - 24px)) !important;
    max-height: min(620px, calc(100dvh - 170px)) !important;
  }

  body:not(.admin-body) .site-footer {
    padding: 18px 0 calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    margin-block-start: 10px !important;
  }

  body:not(.admin-body) .site-footer-inner,
  body:not(.admin-body) .footer-popular-pages,
  body:not(.admin-body) .footer-start-cta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    text-align: center !important;
    justify-items: center !important;
  }

  body:not(.admin-body) .site-footer-inner {
    width: min(100% - 18px, 430px) !important;
  }

  body:not(.admin-body) .footer-brand {
    gap: 8px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  body:not(.admin-body) .footer-brand img {
    width: 42px !important;
    height: 42px !important;
  }

  body:not(.admin-body) .footer-brand p,
  body:not(.admin-body) .footer-popular-pages p,
  body:not(.admin-body) .footer-start-cta p {
    display: none !important;
  }

  body:not(.admin-body) .footer-link-groups {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    text-align: center !important;
  }

  body:not(.admin-body) .footer-link-group {
    width: 100%;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
  }

  body:not(.admin-body) .footer-link-group strong {
    margin-bottom: 5px !important;
    font-size: 0.82rem !important;
  }

  body:not(.admin-body) .footer-link-group a,
  body:not(.admin-body) .footer-popular-pages a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }

  body:not(.admin-body) .footer-popular-pages,
  body:not(.admin-body) .footer-start-cta {
    width: 100% !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  body:not(.admin-body) .footer-popular-pages nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    max-height: 78px !important;
    overflow: auto !important;
  }

  body:not(.admin-body) .footer-popular-pages nav a {
    padding: 5px 8px !important;
    border-radius: 999px !important;
  }

  body:not(.admin-body) .footer-cta-button {
    width: auto !important;
    min-height: 36px !important;
    padding: 8px 18px !important;
    font-size: 0.86rem !important;
  }

  body:not(.admin-body) .ad-slot {
    max-width: 100% !important;
    max-height: 56px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
  }

  body:not(.admin-body) .monayaa-placement,
  body:not(.admin-body) .monayaa-ad-placement,
  body:not(.admin-body) .fixed-adsense-top {
    max-height: 56px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body:not(.admin-body) .classic-logo-ad-space,
  body:not(.admin-body) .monayaa-placement-site-top,
  body:not(.admin-body) .monayaa-ad-site-top,
  body:not(.admin-body) .fixed-adsense-top {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }

  body:not(.admin-body) .monayaa-placement-content,
  body:not(.admin-body) .monayaa-placement-site-bottom,
  body:not(.admin-body) .monayaa-placement-responsive,
  body:not(.admin-body) .monayaa-placement-leaderboard,
  body:not(.admin-body) .monayaa-ad-content,
  body:not(.admin-body) .monayaa-ad-site-bottom,
  body:not(.admin-body) .ad-slot-responsive,
  body:not(.admin-body) .ad-slot-leaderboard {
    min-height: 48px !important;
    max-height: 54px !important;
    margin-block: 8px !important;
  }

  body.profile-tab-messages:not(.admin-body) {
    overflow: hidden;
  }

  body.profile-tab-messages:not(.admin-body) .profile-side-menu {
    display: none !important;
  }

  body.profile-tab-messages:not(.admin-body) .profile-shell {
    padding-block: 6px calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.profile-tab-messages:not(.admin-body) .mobile-app-inbox-strip {
    inset-block-start: calc(58px + env(safe-area-inset-top, 0px)) !important;
    z-index: 850 !important;
  }

  body.profile-tab-messages:not(.admin-body) .messages-layout {
    min-height: calc(100dvh - 178px) !important;
  }

  body.profile-chat-active:not(.admin-body) .conversation-list-panel {
    display: none !important;
  }

  body.profile-chat-active:not(.admin-body) .message-compose {
    position: fixed !important;
    inset-block-start: calc(146px + env(safe-area-inset-top, 0px)) !important;
    inset-inline: 8px !important;
    inset-block-end: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 760 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  body.profile-chat-active:not(.admin-body) .chat-window {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overscroll-behavior: contain;
  }

  body.profile-chat-active:not(.admin-body) .chat-reply-form {
    position: static !important;
    inset-block-end: auto !important;
    margin-block-start: 8px !important;
    box-shadow: 0 10px 24px rgba(8, 37, 68, 0.11) !important;
  }

  body.profile-chat-active:not(.admin-body) .chat-window .chat-bubble:last-of-type {
    margin-block-end: 4px !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-reply-form {
    gap: 7px !important;
    padding: 8px !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-composer-menu {
    gap: 7px !important;
    padding: 8px !important;
    border-radius: 16px !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-composer-menu[hidden] {
    display: none !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-composer-row {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px 58px !important;
    gap: 6px !important;
    align-items: end !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-composer-details {
    width: 40px !important;
    height: 40px !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-composer-details .chat-composer-menu {
    inset-block-end: calc(100% + 8px) !important;
    inset-inline-start: 0 !important;
    width: min(350px, calc(100vw - 28px)) !important;
    max-height: 190px !important;
    overflow-y: auto !important;
    z-index: 900 !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-plus-button,
  body.profile-tab-messages:not(.admin-body) .chat-icon-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 1.05rem !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-media-tools [data-voice-status] {
    display: none !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-file-button,
  body.profile-tab-messages:not(.admin-body) .chat-voice-button,
  body.profile-tab-messages:not(.admin-body) .chat-voice-clear {
    padding: 7px 10px !important;
    font-size: 0.78rem !important;
  }

  body.profile-tab-messages:not(.admin-body) .chat-reply-form .primary-button {
    min-height: 44px !important;
    border-radius: 14px !important;
    padding-inline: 8px !important;
    font-size: 0.88rem !important;
  }

  body.profile-chat-active:not(.admin-body) .monaya-assistant {
    display: none !important;
  }

  body.profile-chat-active:not(.admin-body) .site-footer {
    display: none !important;
  }

  body.profile-chat-active:not(.admin-body) .profile-shell,
  body.profile-chat-active:not(.admin-body) .messages-layout,
  body.profile-chat-active:not(.admin-body) .profile-content-area,
  body.profile-chat-active:not(.admin-body) .relation-panel {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
}

@media (max-width: 380px) {
  .mobile-app-nav {
    inset-inline: 6px;
    gap: 2px;
    padding: 6px;
  }

  .mobile-app-nav-item strong {
    font-size: 0.64rem;
  }

  body:not(.admin-body) .flag-switcher a {
    display: none !important;
  }

  body:not(.admin-body) .flag-switcher a:first-child {
    display: inline-grid !important;
  }

  body:not(.admin-body) .compact-auth {
    min-width: 44px !important;
    font-size: 0.7rem !important;
  }
}

@media (max-width: 768px) {
  body:not(.admin-body) .classic-logo-band {
    display: block !important;
    min-height: 0 !important;
    padding: 7px 10px !important;
    background: #f4f8fc !important;
  }

  body:not(.admin-body) .classic-logo-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  body:not(.admin-body) .classic-logo,
  body:not(.admin-body) .classic-socials {
    display: none !important;
  }

  body:not(.admin-body) .classic-logo-ad-space {
    display: block !important;
    width: 100% !important;
    min-height: 58px !important;
    order: 1 !important;
  }

  body:not(.admin-body) .global-brand-ad-band,
  body:not(.admin-body) .classic-logo-ad-space,
  body:not(.admin-body) .classic-logo-ad-space .monayaa-placement,
  body:not(.admin-body) .classic-logo-ad-space .monayaa-ad-placement,
  body:not(.admin-body) .monayaa-placement-site-top,
  body:not(.admin-body) .monayaa-ad-site-top {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
