/* SN Matrimony 2.5.234 — final safe mobile flow layer.
 * Loaded after the historical stylesheet so no earlier viewport experiment wins.
 */
@media (max-width: 760px) {
  html,
  body.snm-plugin-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.snm-plugin-page .snm-plugin-host {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-inline: 0 !important;
    transform: none !important;
    overflow-x: hidden !important;
  }

  body.snm-plugin-page :where(
    .snm-login-page-shell,
    .snm-search-page,
    .snm-user-dashboard,
    .snm-royal-directory,
    .snm-membership-plans,
    .snm-promotion-plans,
    .snm-my-promotions,
    .snm-epaper,
    .sn-matrimony-chat,
    .sn-matrimony-interests,
    .snm-ai-shell,
    .snm-local-ai-suite,
    .snm-help-section,
    .snm-blog-section,
    .snm-faq-section,
    .snm-instagram-section,
    .snm-member-royal,
    .snm-directory-instagram-standalone,
    .snm-gate-shell
  ) {
    position: static !important;
    inset: auto !important;
    width: calc(100% - 20px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 20px) !important;
    margin: 12px 10px !important;
    transform: none !important;
    overflow-x: hidden !important;
  }

  body.snm-plugin-page :where(
    .snm-user-dashboard,
    .snm-royal-directory,
    .snm-membership-plans,
    .snm-promotion-plans,
    .snm-my-promotions,
    .snm-epaper,
    .sn-matrimony-chat,
    .sn-matrimony-interests,
    .snm-ai-shell,
    .snm-local-ai-suite,
    .snm-member-royal,
    .snm-directory-instagram-standalone
  ) :where(
    .snm-search-page,
    .snm-membership-plans,
    .snm-promotion-plans,
    .snm-my-promotions,
    .snm-epaper,
    .sn-matrimony-chat,
    .sn-matrimony-interests,
    .snm-ai-shell,
    .snm-local-ai-suite,
    .snm-help-section,
    .snm-blog-section,
    .snm-faq-section,
    .snm-instagram-section,
    .snm-member-royal
  ) {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 !important;
    transform: none !important;
  }

  body.snm-plugin-page :where(
    .snm-login-page-shell,
    .snm-search-page,
    .snm-user-dashboard,
    .snm-royal-directory,
    .snm-membership-plans,
    .snm-promotion-plans,
    .snm-my-promotions,
    .snm-epaper,
    .sn-matrimony-chat,
    .sn-matrimony-interests,
    .snm-ai-shell,
    .snm-local-ai-suite,
    .snm-help-section,
    .snm-blog-section,
    .snm-faq-section,
    .snm-instagram-section,
    .snm-member-royal,
    .snm-directory-instagram-standalone,
    .snm-gate-shell
  ),
  body.snm-plugin-page :where(
    .snm-login-page-shell,
    .snm-search-page,
    .snm-user-dashboard,
    .snm-royal-directory,
    .snm-membership-plans,
    .snm-promotion-plans,
    .snm-my-promotions,
    .snm-epaper,
    .sn-matrimony-chat,
    .sn-matrimony-interests,
    .snm-ai-shell,
    .snm-local-ai-suite,
    .snm-help-section,
    .snm-blog-section,
    .snm-faq-section,
    .snm-instagram-section,
    .snm-member-royal,
    .snm-directory-instagram-standalone,
    .snm-gate-shell
  ) * {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100%;
    overflow-wrap: anywhere !important;
  }

  /* Registration is intentionally left visually unchanged. */
  body.snm-plugin-page .snm-registration-shell,
  body.snm-plugin-page .snm-registration-shell * {
    min-width: 0 !important;
    max-width: 100%;
    overflow-wrap: anywhere !important;
  }

  /* Login and gates: utility wrapper is invisible, one premium frame remains. */
  body.snm-plugin-page .snm-login-page-shell,
  body.snm-plugin-page .snm-gate-shell {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.snm-plugin-page .snm-login-page-shell > .snm-login,
  body.snm-plugin-page .snm-gate-shell > :where(.snm-login-gate, .snm-approval-gate, .snm-media-gated, .snm-contact-gate) {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 22px 15px !important;
    transform: none !important;
    border-width: 1px !important;
    overflow: hidden !important;
  }

  body.snm-plugin-page .snm-login-page-shell form,
  body.snm-plugin-page .snm-login-page-shell input:not([type="checkbox"]):not([type="radio"]),
  body.snm-plugin-page .snm-login-page-shell select,
  body.snm-plugin-page .snm-login-page-shell textarea {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  /* Directory: no card or filter may retain an old fixed mobile width. */
  body.snm-plugin-page .snm-royal-directory {
    padding: 12px !important;
  }

  body.snm-plugin-page .snm-royal-directory :where(.snm-rd-layout, .snm-rd-main, .snm-rd-grid, .snm-rd-side, .snm-rd-card) {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    transform: none !important;
  }

  /* Chat: the live-chat frame is the only enclosing border. */
  body.snm-plugin-page .sn-matrimony-chat {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.snm-plugin-page .sn-matrimony-chat > .snm-live-chat {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    border-width: 1px !important;
    overflow: hidden !important;
  }

  body.snm-plugin-page .sn-matrimony-chat :where(.snm-chat-conversation, .snm-chat-people) {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  body.snm-plugin-page .sn-matrimony-chat .snm-dashboard-empty {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Site-wide WhatsApp stays at the right edge, above the back-to-top button. */
  .snm-live-whatsapp:not(.snm-premium-support .snm-live-whatsapp):not(#snm-live-support .snm-live-whatsapp) {
    position: fixed !important;
    inset: auto 12px 188px auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* Crop dialog never creates horizontal scroll or compositing stripes. */
  .snm-crop-modal,
  .snm-crop-box,
  .snm-crop-stage {
    overflow-x: hidden !important;
  }

  .snm-crop-box {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    margin: 8px !important;
  }

  .snm-crop-stage .snm-crop-preview {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* SN Matrimony 2.5.235 — mobile-first core page geometry + premium login restoration.
 * This layer is intentionally narrow: no feature/data logic changes.
 */
@media (max-width: 760px) {
  /* Core pages keep a small, even breathing space from both viewport edges. */
  body.snm-plugin-page :where(
    .snm-login-page-shell,.snm-gate-shell,.snm-registration-page,.snm-registration-shell,
    .snm-user-dashboard,.snm-member-royal,.snm-profile-v5,.snm-profile-page,
    .snm-search-page,.snm-royal-directory,.snm-membership-plans,.snm-promotion-plans,
    .snm-my-promotions,.snm-epaper,.sn-matrimony-chat,.sn-matrimony-interests,
    .snm-ai-shell,.snm-local-ai-suite,.snm-help-section,.snm-blog-section,
    .snm-faq-section,.snm-instagram-section,.snm-directory-instagram-standalone,
    .snm-contact-page,.snm-verification-page,.snm-success-stories,.snm-success-story-submit,
    .snm-affiliate-register,.snm-video-help,.snm-latest-blogs,.snm-faq-wrap,.snm-member-stats
  ) {
    box-sizing: border-box !important;
    left: auto !important;
    right: auto !important;
    width: calc(100% - 16px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 16px) !important;
    margin: 10px 8px !important;
    transform: none !important;
  }

  /* Nested shortcodes must use the parent width, never create a second viewport gutter. */
  body.snm-plugin-page .snm-user-dashboard :where(
    .snm-shell,.snm-search-page,.snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,
    .snm-epaper,.sn-matrimony-chat,.sn-matrimony-interests,.snm-ai-shell,.snm-local-ai-suite,
    .snm-help-section,.snm-blog-section,.snm-faq-section,.snm-instagram-section,.snm-video-help,
    .snm-latest-blogs,.snm-faq-wrap,.snm-member-stats,.snm-security-center,.snm-referral-dashboard
  ) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  /* Full-profile: every royal block remains inside the card/viewport. */
  body.snm-plugin-page :where(.snm-member-royal,.snm-profile-v5,.snm-profile-page) :where(
    .snm-mr-shell,.snm-mr-hero,.snm-mr-layout,.snm-mr-content,.snm-mr-contact-aside,
    .snm-mr-card,.snm-mr-summary,.snm-mr-gallery,.snm-mr-details,.snm-mr-quick,
    .snm-pv5-wrap,.snm-pv5-grid,.snm-pv5-card,.snm-pv5-side-card,.snm-profile-layout,
    .snm-profile-info-card,.snm-profile-rightbar,.snm-side-card
  ) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.snm-plugin-page .snm-member-royal { overflow-x: hidden !important; }
  body.snm-plugin-page .snm-member-royal .snm-mr-layout { grid-template-columns: minmax(0,1fr) !important; padding: 8px !important; }
  body.snm-plugin-page .snm-member-royal .snm-mr-card { width: 100% !important; margin-inline: 0 !important; padding: 17px 15px !important; }
  body.snm-plugin-page .snm-member-royal :where(h1,h2,h3,p,strong,span,small,a,button,li,dd,dt) { overflow-wrap: anywhere !important; }

  /* Dashboard header/menu: buttons, names and notification badge cannot collapse into thin columns. */
  body.snm-plugin-page .snm-user-dashboard { padding: 12px !important; overflow-x: hidden !important; }
  body.snm-plugin-page .snm-user-dashboard :where(
    .snm-dashboard-premium-head,.snm-premium-brand,.snm-premium-head-actions,
    .snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets,
    .snm-dashboard-panel,.snm-dashboard-panel-head,.snm-dashboard-grid,.snm-overview-grid
  ) { width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
  body.snm-plugin-page .snm-dashboard-premium-head { display: block !important; padding: 16px 14px !important; }
  body.snm-plugin-page .snm-premium-brand { display: flex !important; align-items: center !important; gap: 11px !important; }
  body.snm-plugin-page .snm-premium-brand > div { flex: 1 1 auto !important; min-width: 0 !important; }
  body.snm-plugin-page .snm-premium-brand strong { display: block !important; font-size: clamp(21px,7vw,29px) !important; line-height: 1.1 !important; }
  body.snm-plugin-page .snm-premium-head-actions { display: grid !important; grid-template-columns: minmax(0,1fr) 52px 52px !important; gap: 8px !important; margin-top: 14px !important; }
  body.snm-plugin-page .snm-premium-upgrade { width: 100% !important; min-width: 0 !important; padding-inline: 10px !important; white-space: normal !important; }
  body.snm-plugin-page .snm-premium-icon { width: 52px !important; min-width: 52px !important; height: 52px !important; position: relative !important; }
  body.snm-plugin-page .snm-premium-icon b { position: absolute !important; top: -5px !important; right: -4px !important; min-width: 20px !important; width: auto !important; height: 20px !important; padding: 0 5px !important; border-radius: 999px !important; line-height: 20px !important; font-size: 11px !important; white-space: nowrap !important; overflow: visible !important; }
  body.snm-plugin-page .snm-dashboard-panel { padding: 16px 14px !important; overflow: hidden !important; }
  body.snm-plugin-page .snm-dashboard-panel :where(input:not([type=checkbox]):not([type=radio]),select,textarea,button,.snm-button) { max-width: 100% !important; }

  /* Cards opened from the dashboard should be useful full-width cards, not a card inside several shrinking frames. */
  body.snm-plugin-page .snm-user-dashboard :where(
    .snm-help-section,.snm-blog-section,.snm-faq-section,.snm-video-help,.snm-latest-blogs,.snm-faq-wrap,
    .snm-promotion-plans,.snm-my-promotions,.snm-epaper,.snm-security-center,.snm-referral-dashboard
  ) { padding: 15px !important; border-width: 1px !important; }
  body.snm-plugin-page .snm-user-dashboard :where(.snm-card,.snm-plan-card,.snm-help-video,.snm-stat-card,.snm-notification-item) {
    width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin-inline: 0 !important;
  }

  /* Login/gate: restore the approved royal single-frame look. */
  body.snm-plugin-page .snm-login-page-shell,
  body.snm-plugin-page .snm-gate-shell { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  body.snm-plugin-page .snm-login-page-shell > .snm-login,
  body.snm-plugin-page .snm-gate-shell > :where(.snm-login-gate,.snm-approval-gate,.snm-media-gated,.snm-contact-gate) {
    position: relative !important; width: 100% !important; max-width: 100% !important; margin: 0 !important;
    padding: 25px 17px !important; border: 1px solid rgba(184,116,32,.7) !important;
    border-radius: 22px !important; overflow: hidden !important;
    background: radial-gradient(circle at 92% 2%,rgba(184,116,32,.14),transparent 28%),linear-gradient(145deg,#080b0f,#15110d 58%,#080b0f) !important;
    box-shadow: 0 20px 54px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,228,166,.12) !important;
  }
  body.snm-plugin-page .snm-login-page-shell > .snm-login:after,
  body.snm-plugin-page .snm-gate-shell > :where(.snm-login-gate,.snm-approval-gate,.snm-media-gated,.snm-contact-gate):after {
    content:"" !important; position:absolute !important; z-index:5 !important; left:7% !important; right:7% !important; top:0 !important; height:2px !important;
    background:linear-gradient(90deg,transparent,#8e5516,#e3ae58,#fff0b1,#e3ae58,#8e5516,transparent) !important;
    box-shadow:0 0 16px rgba(184,116,32,.6) !important; pointer-events:none !important;
  }
  body.snm-plugin-page .snm-login-page-shell > .snm-login:before { content:"✦" !important; right:18px !important; top:14px !important; color:#efc36e !important; font-size:24px !important; z-index:6 !important; }
  body.snm-plugin-page .snm-login-page-shell .snm-login form { padding-inline: 0 !important; }

  /* Password eye: small transparent control inside the field; no gold square/button styling. */
  body.snm-plugin-page .snm-login-page-shell .snm-password-wrap,
  body.snm-plugin-page .snm-registration-shell .snm-password-wrap { position: relative !important; display: block !important; }
  body.snm-plugin-page .snm-login-page-shell .snm-password-wrap input,
  body.snm-plugin-page .snm-registration-shell .snm-password-wrap input { padding-right: 48px !important; }
  body.snm-plugin-page :where(.snm-login-page-shell,.snm-registration-shell) .snm-show-password {
    position:absolute !important; right:8px !important; top:50% !important; transform:translateY(-50%) !important;
    display:grid !important; place-items:center !important; width:36px !important; min-width:36px !important; max-width:36px !important;
    height:36px !important; min-height:36px !important; max-height:36px !important; padding:0 !important; margin:0 !important;
    border:0 !important; border-radius:50% !important; background:transparent !important; box-shadow:none !important; color:#e5b45d !important;
  }
  body.snm-plugin-page :where(.snm-login-page-shell,.snm-registration-shell) .snm-show-password:hover,
  body.snm-plugin-page :where(.snm-login-page-shell,.snm-registration-shell) .snm-show-password:focus { background:rgba(184,116,32,.10) !important; outline:0 !important; }
  body.snm-plugin-page :where(.snm-login-page-shell,.snm-registration-shell) .snm-eye-icon {
    display:block !important; width:20px !important; height:20px !important; fill:none !important; stroke:currentColor !important; stroke-width:1.8 !important; overflow:visible !important;
  }

  /* Forms: small consistent side space, no clipped labels/text. */
  body.snm-plugin-page .snm-registration-shell { padding-inline: 0 !important; overflow-x: hidden !important; }
  body.snm-plugin-page .snm-registration-shell .snm-form-step { padding: 20px 15px !important; }
  body.snm-plugin-page :where(.snm-registration-shell,.snm-user-dashboard,.snm-login-page-shell) :where(label,h1,h2,h3,h4,p,small,strong,span) { overflow-wrap: anywhere !important; word-break: normal !important; }
}

/* SN Matrimony 2.5.236 — definitive mobile core geometry pass.
 * Root cause fix: old theme/legacy rules used viewport breakouts, fixed minimums and nested gutters.
 * This final loaded stylesheet owns mobile geometry for all core frontend screens.
 */
@media (max-width: 760px) {
  html { overflow-x: clip !important; }
  body.snm-plugin-page { overflow-x: hidden !important; }
  body.snm-plugin-page :where(.site,.site-content,.site-main,.content-area,.entry-content,.wp-block-post-content,.wp-site-blocks,main) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* One viewport gutter only. Never stack shell + page + card gutters. */
  :where(
    .snm-login-page-shell,.snm-registration-shell,.snm-search-page,.snm-user-dashboard,
    .snm-royal-directory,.snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,
    .snm-epaper,.sn-matrimony-chat,.sn-matrimony-interests,.snm-ai-shell,.snm-local-ai-suite,
    .snm-help-section,.snm-blog-section,.snm-faq-section,.snm-instagram-section,
    .snm-directory-instagram-standalone,.snm-contact-page,.snm-verification-page,
    .snm-success-stories,.snm-success-story-submit,.snm-affiliate-register,.snm-member-royal
  ) {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: min(100%, calc(100vw - 16px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 16px) !important;
    margin: 10px auto !important;
  }

  /* Dashboard children/opened sections use dashboard's usable width, no second outer gutter. */
  .snm-user-dashboard > :where(
    .snm-dashboard-premium-head,.snm-dashboard-premium-grid,.snm-dashboard-premium-middle,
    .snm-dashboard-premium-content-widgets,.snm-dashboard-panel,.snm-dashboard-footer,
    .snm-welcome-celebration,.snm-dashboard-alert,.snm-approval-gate
  ),
  .snm-user-dashboard :where(
    .snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,.snm-epaper,
    .sn-matrimony-chat,.sn-matrimony-interests,.snm-ai-shell,.snm-local-ai-suite,
    .snm-help-section,.snm-blog-section,.snm-faq-section,.snm-instagram-section,
    .snm-video-help,.snm-latest-blogs,.snm-faq-wrap,.snm-member-stats,
    .snm-security-center,.snm-referral-dashboard
  ) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  /* FULL PROFILE: force every structural layer into one column and one exact width. */
  .snm-member-royal {
    overflow: hidden !important;
    padding: 0 !important;
    border-width: 1px !important;
    border-radius: 18px !important;
  }
  .snm-member-royal, .snm-member-royal * { box-sizing: border-box !important; min-width: 0 !important; }
  .snm-member-royal :where(.snm-mr-hero,.snm-mr-gallery,.snm-mr-summary,.snm-mr-layout,.snm-mr-content,.snm-mr-contact-aside,.snm-mr-panel,.snm-mr-card,.snm-mr-details,.snm-mr-photo-grid,.snm-mr-badges,.snm-mr-tabs) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .snm-member-royal .snm-mr-hero,
  .snm-member-royal .snm-mr-layout,
  .snm-member-royal .snm-mr-contact-grid,
  .snm-member-royal .snm-mr-details { grid-template-columns: minmax(0,1fr) !important; }
  .snm-member-royal .snm-mr-gallery { padding: 10px !important; border-right: 0 !important; }
  .snm-member-royal .snm-mr-main-photo { width: 100% !important; max-width: 100% !important; height: min(410px, 112vw) !important; min-height: 300px !important; }
  .snm-member-royal .snm-mr-main-photo > img { width: 100% !important; max-width: 100% !important; }
  .snm-member-royal .snm-mr-summary { padding: 20px 14px !important; }
  .snm-member-royal .snm-mr-heading { display: block !important; width: 100% !important; }
  .snm-member-royal .snm-mr-heading h1 { max-width: 100% !important; font-size: clamp(23px,8vw,30px) !important; }
  .snm-member-royal .snm-mr-quick { width: 100% !important; }
  .snm-member-royal .snm-mr-quick span { max-width: 100% !important; }
  .snm-member-royal .snm-mr-actions { width: 100% !important; max-width: 100% !important; overflow-x: auto !important; }
  .snm-member-royal .snm-mr-tabs { padding: 10px 8px !important; }
  .snm-member-royal .snm-mr-layout { display: grid !important; padding: 8px !important; gap: 10px !important; }
  .snm-member-royal .snm-mr-card { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 16px 13px !important; border-width: 1px !important; }
  .snm-member-royal :where(h1,h2,h3,h4,p,strong,span,small,a,button,li,dd,dt) { overflow-wrap: break-word !important; word-break: normal !important; }

  /* Dashboard menu + top action row: stop names/badges becoming vertical thin strips. */
  .snm-user-dashboard { padding: 8px !important; }
  .snm-premium-sidebar { width: 100% !important; max-width: 100% !important; }
  .snm-premium-sidebar-nav { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; width: 100% !important; max-width: 100% !important; overflow: visible !important; }
  .snm-premium-sidebar-nav a {
    position: relative !important; display: flex !important; align-items: center !important; gap: 7px !important;
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    writing-mode: horizontal-tb !important; white-space: normal !important; line-height: 1.25 !important;
  }
  .snm-premium-sidebar-nav a span { display: inline !important; width: auto !important; min-width: 0 !important; writing-mode: horizontal-tb !important; }
  .snm-premium-sidebar-nav a b { flex: 0 0 auto !important; width: auto !important; min-width: 18px !important; white-space: nowrap !important; }
  .snm-dashboard-premium-head { display: block !important; padding: 15px 12px !important; }
  .snm-premium-head-actions { display: grid !important; grid-template-columns: minmax(0,1fr) 48px 48px !important; gap: 7px !important; width: 100% !important; }
  .snm-premium-icon { position: relative !important; width: 48px !important; min-width: 48px !important; height: 48px !important; }
  .snm-premium-icon b { position: absolute !important; top: -5px !important; right: -4px !important; width: auto !important; min-width: 19px !important; max-width: none !important; height: 19px !important; padding: 0 5px !important; line-height: 19px !important; border-radius: 999px !important; white-space: nowrap !important; }

  /* Dashboard sections/plans/help: one card wide, tiny internal padding, no triple frame. */
  .snm-user-dashboard .snm-dashboard-panel { padding: 14px 10px !important; border-width: 1px !important; overflow: hidden !important; }
  .snm-user-dashboard :where(.snm-plans-grid,.snm-plan-grid,.snm-help-video-grid,.snm-blog-grid,.snm-dashboard-grid,.snm-overview-grid) { grid-template-columns: minmax(0,1fr) !important; }
  .snm-user-dashboard :where(.snm-plan-card,.snm-help-video,.snm-blog-card,.snm-card,.snm-stat-card,.snm-notification-item) {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; border-width: 1px !important;
  }
  .snm-user-dashboard .snm-epaper-plan-choice { width: 100% !important; max-width: 100% !important; }

  /* Forms: input/card width follows viewport. */
  :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) :where(input:not([type=checkbox]):not([type=radio]),select,textarea) {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important;
  }
  .snm-registration-shell .snm-form-step { width: 100% !important; max-width: 100% !important; padding: 17px 12px !important; }

  /* Login + login gates: single premium frame, restored shine/star, full usable width. */
  .snm-login-page-shell { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .snm-login-page-shell > .snm-login,
  .snm-card.snm-login-gate,
  .snm-promotion-login-gate {
    position: relative !important;
    width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    margin: 0 !important; padding: 24px 16px !important;
    border: 1px solid rgba(184,116,32,.72) !important; border-radius: 20px !important;
    background: radial-gradient(circle at 92% 2%,rgba(184,116,32,.13),transparent 30%),linear-gradient(145deg,#080b0f,#14110d 58%,#080b0f) !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,228,166,.12) !important;
    overflow: hidden !important;
  }
  .snm-login-page-shell > .snm-login:after,
  .snm-card.snm-login-gate:after,
  .snm-promotion-login-gate:after {
    content:"" !important; position:absolute !important; left:7% !important; right:7% !important; top:0 !important; height:2px !important;
    background:linear-gradient(90deg,transparent,#8e5516,#e3ae58,#fff0b1,#e3ae58,#8e5516,transparent) !important;
    box-shadow:0 0 15px rgba(184,116,32,.58) !important; pointer-events:none !important;
  }
  .snm-login-page-shell > .snm-login:before,
  .snm-card.snm-login-gate:before {
    content:"✦" !important; position:absolute !important; right:16px !important; top:12px !important; color:#efc36e !important; font-size:23px !important; z-index:2 !important;
  }
  .snm-login-page-shell .snm-login-heading { padding-left: 0 !important; padding-right: 0 !important; }
  .snm-login-page-shell .snm-front-login-form { width:100% !important; max-width:100% !important; padding:0 !important; margin:0 !important; }
  .snm-login-page-shell .snm-login__links { width:100% !important; max-width:100% !important; flex-wrap:wrap !important; }

  /* Eye stays a simple icon inside the field. */
  :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) .snm-password-wrap { position:relative !important; display:block !important; width:100% !important; }
  :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) .snm-password-wrap input { padding-right:44px !important; }
  :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) .snm-show-password {
    position:absolute !important; top:50% !important; right:7px !important; transform:translateY(-50%) !important;
    width:34px !important; min-width:34px !important; max-width:34px !important; height:34px !important; min-height:34px !important;
    padding:0 !important; margin:0 !important; border:0 !important; border-radius:50% !important;
    background:transparent !important; background-image:none !important; box-shadow:none !important; color:#e8bb64 !important;
  }
  :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) .snm-show-password:before,
  :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) .snm-show-password:after { display:none !important; content:none !important; }
  :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) .snm-eye-icon { display:block !important; width:20px !important; height:20px !important; fill:none !important; stroke:currentColor !important; stroke-width:1.8 !important; }
}


/* SN Matrimony 2.5.237 — MOBILE-FIRST FINAL WIDTH + DASHBOARD ACTION REPAIR
 * EOF ownership: legacy/theme rules may not re-narrow core mobile pages.
 */
@media (max-width:760px){
 html,body{max-width:100%!important;overflow-x:hidden!important}
 body.snm-plugin-page :where(.site,.site-content,.site-main,#primary,.content-area,.entry-content,.wp-block-post-content,.wp-site-blocks,main,.container){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 html body :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard,.snm-member-royal,.snm-royal-directory,.snm-search-page,.snm-membership-plans,.snm-epaper,.snm-contact-page,.snm-affiliate-register){box-sizing:border-box!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;min-width:0!important;position:relative!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;margin-left:0!important;margin-right:0!important}
 html body .snm-user-dashboard :where(.snm-login-page-shell,.snm-registration-shell,.snm-member-royal,.snm-search-page,.snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,.snm-epaper,.sn-matrimony-chat,.sn-matrimony-interests,.snm-ai-shell,.snm-local-ai-suite,.snm-help-section,.snm-blog-section,.snm-faq-section,.snm-instagram-section,.snm-video-help,.snm-latest-blogs,.snm-faq-wrap,.snm-security-center,.snm-referral-dashboard,.snm-card,.snm-shell){width:100%!important;max-width:100%!important;min-width:0!important;left:auto!important;right:auto!important;transform:none!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}
 html body .snm-user-dashboard{padding:6px!important;border-width:1px!important}
 html body .snm-user-dashboard>:where(.snm-dashboard-premium-head,.snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets,.snm-dashboard-panel,.snm-dashboard-footer,.snm-dashboard-alert,.snm-approval-gate){width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}
 html body .snm-user-dashboard .snm-dashboard-panel{padding:12px 8px!important;border-width:1px!important;border-radius:16px!important;overflow:visible!important}
 html body .snm-user-dashboard .snm-dashboard-section{width:100%!important;max-width:100%!important;margin:12px 0!important;padding:12px 9px!important;border-width:1px!important;box-sizing:border-box!important}
 html body .snm-user-dashboard :where(.snm-dashboard-grid,.snm-overview-grid,.snm-gallery-slots,.snm-dashboard-media-tools,.snm-plans-grid,.snm-plan-grid){width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important}
 html body .snm-user-dashboard :where(input:not([type=checkbox]):not([type=radio]),select,textarea,.snm-button,button){max-width:100%!important;box-sizing:border-box!important}
 html body .snm-premium-head-actions{grid-template-columns:minmax(0,1fr) 46px 46px 46px!important;gap:6px!important;align-items:center!important}
 html body .snm-premium-icon,html body .snm-mobile-menu-trigger{width:46px!important;min-width:46px!important;max-width:46px!important;height:46px!important;min-height:46px!important;padding:0!important;display:grid!important;place-items:center!important}
 html body .snm-mobile-menu-trigger small{display:none!important}
 html body .snm-mobile-menu-trigger span{display:block!important;width:auto!important;height:auto!important;line-height:1!important;font-size:24px!important;writing-mode:horizontal-tb!important}
 html body .snm-premium-icon b{z-index:3!important;overflow:visible!important}
 html body .snm-login-page-shell{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 html body .snm-login-page-shell>.snm-login{width:100%!important;max-width:100%!important;margin:0!important;padding:24px 18px!important;border:1px solid rgba(184,116,32,.75)!important;box-sizing:border-box!important}
 html body :where(.snm-card.snm-login-gate,.snm-promotion-login-gate,.snm-approval-gate){max-width:100%!important;box-sizing:border-box!important}
 html body :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) .snm-password-wrap{position:relative!important;display:block!important;width:100%!important;max-width:100%!important}
 html body :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) .snm-password-wrap>input{width:100%!important;padding-right:46px!important}
 html body :where(.snm-login-page-shell,.snm-registration-shell,.snm-user-dashboard) button.snm-show-password{appearance:none!important;-webkit-appearance:none!important;position:absolute!important;right:8px!important;top:50%!important;transform:translateY(-50%)!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;border-radius:50%!important;background:transparent!important;background-image:none!important;box-shadow:none!important;filter:none!important;color:#e8bb64!important;z-index:5!important}
 html body button.snm-show-password .snm-eye-icon{width:21px!important;height:21px!important;margin:auto!important;fill:none!important;stroke:currentColor!important}
 html body .snm-registration-shell{padding:0!important}
 html body .snm-registration-shell :where(.snm-registration-card,.snm-form-step,.snm-card){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 html body .snm-registration-shell .snm-form-step{padding:16px 11px!important}
 html body .snm-registration-shell :where(.snm-form-grid,.snm-contact-phone-row,.snm-phone-row){grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important}
 html body .snm-user-dashboard #snm-edit-profile{padding:12px 7px!important}
 html body .snm-user-dashboard #snm-edit-profile .snm-dashboard-section{padding:12px 9px!important}
 html body .snm-member-royal{margin-top:10px!important;margin-bottom:10px!important;padding:0!important;overflow:hidden!important;border-width:1px!important}
 html body .snm-member-royal,html body .snm-member-royal *{min-width:0!important;box-sizing:border-box!important}
 html body .snm-member-royal :where(.snm-mr-hero,.snm-mr-gallery,.snm-mr-summary,.snm-mr-layout,.snm-mr-content,.snm-mr-contact-aside,.snm-mr-card,.snm-mr-panel,.snm-mr-details,.snm-mr-contact-switch,.snm-mr-contact-pane){width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
 html body .snm-member-royal :where(.snm-mr-hero,.snm-mr-layout,.snm-mr-details,.snm-mr-contact-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 html body .snm-member-royal .snm-mr-gallery{padding:8px!important}
 html body .snm-member-royal .snm-mr-summary{padding:18px 12px!important}
 html body .snm-member-royal .snm-mr-layout{padding:7px!important;gap:9px!important}
 html body .snm-member-royal .snm-mr-card{padding:14px 11px!important}
 html body .snm-member-royal .snm-mr-main-photo,html body .snm-member-royal .snm-mr-main-photo img{width:100%!important;max-width:100%!important}
 html body .snm-member-royal :where(h1,h2,h3,p,a,span,strong,small,dd,dt,button){max-width:100%!important;overflow-wrap:anywhere!important}
 html body .snm-user-dashboard #snm-chat{padding:10px 6px!important}
 html body .snm-user-dashboard #snm-chat .sn-matrimony-chat,html body .sn-matrimony-chat,html body .snm-live-chat{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
 html body .snm-live-chat{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html body .snm-chat-people,html body .snm-chat-conversation{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 html body .snm-chat-people{max-height:none!important;padding:12px!important}
 html body .snm-chat-people h3{margin:0 0 10px!important}
 html body .snm-live-chat .snm-dashboard-empty{width:100%!important;max-width:100%!important;margin:0!important;padding:26px 15px!important;box-sizing:border-box!important}
 html body .snm-live-chat .snm-dashboard-empty p{font-size:15px!important;line-height:1.65!important}
 html body :where(.snm-referral-dashboard,.snm-help-section,.snm-blog-section,.snm-faq-section,.snm-contact-page,.snm-premium-support,.snm-premium-content-card){box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
}


/* SN Matrimony 2.5.238 — ROOT MOBILE WIDTH + DASHBOARD MENU + CHAT FINAL LAYER */
@media (max-width:760px){
  html,body{max-width:100%!important;overflow-x:hidden!important}
  body.snm-plugin-page :where(.site,.site-content,.site-main,.content-area,.entry-content,.wp-block-post-content,.wp-site-blocks,main){width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;overflow-x:hidden!important}

  /* one root gutter only: 6px each side; no viewport breakout arithmetic */
  body.snm-plugin-page :where(.snm-shell,.snm-login-page-shell,.snm-registration-shell,.snm-registration-page,.snm-search-page,.snm-user-dashboard,.snm-royal-directory,.snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,.snm-epaper,.sn-matrimony-chat,.snm-ai-shell,.snm-local-ai-suite,.snm-help-section,.snm-blog-section,.snm-faq-section,.snm-instagram-section,.snm-member-royal,.snm-referral-dashboard,.snm-affiliate-register,.snm-contact-page,.snm-verification-page){
    position:relative!important;left:auto!important;right:auto!important;inset:auto!important;transform:none!important;
    width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;min-width:0!important;
    margin-left:6px!important;margin-right:6px!important;box-sizing:border-box!important;
  }
  /* nested plugin sections never receive the root gutter again */
  body.snm-plugin-page :where(.snm-user-dashboard,.snm-shell,.snm-member-royal) :where(.snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,.snm-epaper,.sn-matrimony-chat,.snm-help-section,.snm-blog-section,.snm-faq-section,.snm-referral-dashboard,.snm-affiliate-register,.snm-dashboard-panel,.snm-card){
    width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;transform:none!important;box-sizing:border-box!important;
  }

  /* full profile: exact parent width, no element can push the page right */
  body.snm-plugin-page .snm-member-royal{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;margin:8px 6px!important;padding:0!important;overflow:hidden!important}
  body.snm-plugin-page .snm-member-royal *{min-width:0!important;box-sizing:border-box!important}
  body.snm-plugin-page .snm-member-royal :where(.snm-mr-hero,.snm-mr-gallery,.snm-mr-summary,.snm-mr-layout,.snm-mr-content,.snm-mr-contact-aside,.snm-mr-panel,.snm-mr-card,.snm-mr-details,.snm-mr-tabs,.snm-mr-actions,.snm-mr-meta,.snm-mr-quick){width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  body.snm-plugin-page .snm-member-royal :where(.snm-mr-hero,.snm-mr-layout,.snm-mr-contact-grid,.snm-mr-details){display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body.snm-plugin-page .snm-member-royal .snm-mr-tabs{display:flex!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:10px 8px!important;scrollbar-width:none!important}
  body.snm-plugin-page .snm-member-royal .snm-mr-tabs>*{flex:0 0 auto!important;max-width:85%!important;white-space:nowrap!important}
  body.snm-plugin-page .snm-member-royal :where(img,video,audio,iframe){max-width:100%!important}
  body.snm-plugin-page .snm-member-royal .snm-mr-summary{padding:18px 12px!important}
  body.snm-plugin-page .snm-member-royal .snm-mr-layout{padding:6px!important}
  body.snm-plugin-page .snm-member-royal .snm-mr-card{padding:15px 11px!important}

  /* dashboard uses almost the entire mobile screen */
  body.snm-plugin-page .snm-user-dashboard{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;margin:8px 6px!important;padding:0!important;border-radius:18px!important;overflow:hidden!important}
  .snm-user-dashboard > :where(.snm-dashboard-premium-head,.snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets,.snm-dashboard-panel,.snm-dashboard-footer){width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  .snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets{padding-left:8px!important;padding-right:8px!important;gap:10px!important}
  .snm-user-dashboard>.snm-dashboard-panel{padding:12px 8px!important;border-radius:14px!important}
  .snm-user-dashboard .snm-dashboard-section{padding:12px 8px!important;margin:10px 0!important}
  .snm-user-dashboard :where(.snm-premium-stat,.snm-premium-plan,.snm-premium-id,.snm-premium-strength,.snm-premium-quick,.snm-premium-support,.snm-premium-content-card,.snm-card,.snm-plan-card){width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}

  /* Menu icon sits beside Member Dashboard headline; icon only. */
  .snm-dashboard-premium-head{display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;align-items:center!important;gap:8px!important;padding:12px 10px!important}
  .snm-premium-brand{min-width:0!important}.snm-premium-brand strong{font-size:clamp(20px,6.6vw,27px)!important}
  .snm-dashboard-mobile-menu{grid-column:2!important;grid-row:1!important;width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;padding:0!important;margin:0!important;border:1px solid #b87420!important;border-radius:12px!important;background:linear-gradient(145deg,#8b5316,#e1ab54,#8b5316)!important;color:#111!important;font-size:29px!important;line-height:1!important;display:grid!important;place-items:center!important;box-shadow:0 0 16px rgba(184,116,32,.22)!important}
  .snm-premium-head-actions{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:minmax(0,1fr) 46px 46px!important;gap:8px!important;width:100%!important}
  .snm-premium-icon{width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important}
  .snm-mobile-menu-trigger{display:none!important}

  /* dashboard side menu is a real mobile drawer, opened only from headline icon */
  .snm-user-dashboard .snm-premium-sidebar{display:none!important;position:fixed!important;z-index:100020!important;left:6px!important;right:6px!important;top:74px!important;bottom:82px!important;width:auto!important;max-width:none!important;margin:0!important;padding:10px!important;overflow:auto!important;border:1px solid #b87420!important;border-radius:16px!important;background:#090d12!important;box-shadow:0 0 0 100vmax rgba(0,0,0,.66),0 20px 60px rgba(0,0,0,.75)!important}
  .snm-user-dashboard.snm-mobile-menu-open .snm-premium-sidebar{display:block!important}
  .snm-user-dashboard .snm-premium-sidebar-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .snm-user-dashboard .snm-premium-sidebar-nav a{min-height:48px!important;padding:10px!important;font-size:12px!important}

  /* registration/edit profile: wider cards and inputs */
  body.snm-plugin-page .snm-registration-shell{padding:0!important}
  body.snm-plugin-page .snm-registration-shell .sn-matrimony-registration{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
  body.snm-plugin-page .snm-registration-shell .snm-form-step{width:100%!important;max-width:100%!important;margin:8px 0!important;padding:16px 10px!important;border-width:1px!important}
  body.snm-plugin-page :where(.snm-registration-shell,.snm-user-dashboard) :where(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%!important;max-width:100%!important;min-width:0!important}

  /* referral / affiliate center gets same usable width */
  body.snm-plugin-page .snm-referral-dashboard{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;margin:8px 6px!important;padding:0!important}
  body.snm-plugin-page .snm-referral-dashboard>.snm-card{width:100%!important;max-width:100%!important;margin:0!important;padding:18px 12px!important;border-width:1px!important;overflow:hidden!important}
  body.snm-plugin-page .snm-referral-dashboard input{width:100%!important;max-width:100%!important;min-width:0!important;text-overflow:ellipsis!important}

  /* chat: one frame; no overlapping empty cards */
  body.snm-plugin-page .sn-matrimony-chat{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
  body.snm-plugin-page .snm-live-chat{width:100%!important;max-width:100%!important;margin:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;overflow:hidden!important}
  body.snm-plugin-page .snm-live-chat :where(.snm-chat-people,.snm-chat-conversation,.snm-dashboard-empty){width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
  body.snm-plugin-page .snm-chat-empty-state{border:0!important;background:transparent!important;box-shadow:none!important}
  body.snm-plugin-page .snm-chat-empty-card{width:100%!important;max-width:100%!important;margin:0!important;padding:20px 14px!important;border:1px solid rgba(184,116,32,.60)!important;border-radius:16px!important;background:linear-gradient(145deg,#0d1116,#11100d)!important;box-sizing:border-box!important}
  body.snm-plugin-page .snm-chat-empty-card h3{margin:0 0 8px!important}.snm-chat-empty-card>p{margin:0 0 16px!important;color:#ccc!important}
  body.snm-plugin-page .snm-chat-empty-copy{padding:18px 12px!important;border-top:1px solid rgba(184,116,32,.25)!important;text-align:center!important}
  body.snm-plugin-page .snm-chat-empty-copy strong{display:block!important;font-family:Georgia,serif!important;color:#efc36d!important;font-size:22px!important;margin-bottom:10px!important}
  body.snm-plugin-page .snm-chat-empty-copy span{display:block!important;color:#d0d0d0!important;line-height:1.65!important}
}

/* 2.5.239 compatibility mirror: main sheet owns the full rules; these selectors prevent stale safe-sheet narrowing. */
@media (max-width:760px){
 html body .snm-user-dashboard,html body .snm-member-royal,html body .snm-registration-shell,html body .snm-referral-dashboard,html body .snm-affiliate-register{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;margin-left:calc(50% - 50vw + 6px)!important;margin-right:0!important;left:auto!important;right:auto!important;transform:none!important;box-sizing:border-box!important}
 html body .snm-user-dashboard :where(.snm-registration-shell,.snm-referral-dashboard,.sn-matrimony-chat){width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
 html body .snm-mobile-menu-trigger{display:none!important;visibility:hidden!important;width:0!important;height:0!important;overflow:hidden!important;pointer-events:none!important}
}


/* SN Matrimony 2.5.241 — FINAL CASCADE: viewport geometry + authoritative drawer/chat/forms */
body.snm-plugin-page .snm-plugin-host{box-sizing:border-box!important;position:relative!important;left:50%!important;width:100vw!important;max-width:100vw!important;margin-left:-50vw!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;transform:none!important;overflow:visible!important}
@media (max-width:760px){
  html,body{max-width:100%!important;overflow-x:hidden!important}
  body.snm-plugin-page .snm-plugin-host{left:50%!important;width:100vw!important;max-width:100vw!important;margin-left:-50vw!important}
  body.snm-plugin-page .snm-plugin-host>:where(.snm-shell,.snm-user-dashboard,.snm-registration-shell,.snm-login-page-shell,.snm-referral-dashboard,.snm-affiliate-register,.snm-member-royal,.snm-search-page,.snm-royal-directory,.snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,.snm-epaper,.snm-contact-page,.snm-ai-shell,.snm-gate-shell),
  body.snm-plugin-page :where(.snm-user-dashboard,.snm-registration-shell,.snm-login-page-shell,.snm-referral-dashboard,.snm-affiliate-register,.snm-member-royal,.snm-search-page,.snm-royal-directory,.snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,.snm-epaper,.snm-contact-page,.snm-ai-shell,.snm-gate-shell){
    box-sizing:border-box!important;position:relative!important;left:auto!important;right:auto!important;transform:none!important;width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important;
  }
  body.snm-plugin-page .snm-user-dashboard :where(.snm-registration-shell,.snm-referral-dashboard,.sn-matrimony-chat,.snm-dashboard-panel,.snm-dashboard-section),
  body.snm-plugin-page .snm-registration-shell :where(form,.sn-matrimony-registration,.snm-form-step,.snm-form-grid,.snm-field){width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;left:auto!important;transform:none!important;box-sizing:border-box!important}
  body.snm-plugin-page .snm-user-dashboard{padding-left:0!important;padding-right:0!important;overflow:visible!important}
  body.snm-plugin-page .snm-user-dashboard>.snm-dashboard-panel{padding:8px 5px!important}
  body.snm-plugin-page .snm-user-dashboard .snm-dashboard-section{padding:14px 9px!important}
  body.snm-plugin-page .snm-registration-shell{padding:0 2px!important;overflow:visible!important}
  body.snm-plugin-page .snm-registration-shell .snm-form-step{padding:16px 10px!important;margin:8px 0!important}
  body.snm-plugin-page .snm-registration-shell :where(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important}

  /* exact password-eye geometry: 58px field, 46px eye = 6px top/bottom */
  html body .snm-registration-shell .snm-password-wrap{position:relative!important;display:block!important;width:100%!important;height:58px!important;min-height:58px!important;line-height:0!important;overflow:visible!important}
  html body .snm-registration-shell .snm-password-wrap>input{display:block!important;width:100%!important;height:58px!important;min-height:58px!important;margin:0!important;padding-right:64px!important;line-height:normal!important}
  html body .snm-registration-shell .snm-password-wrap>button.snm-show-password{position:absolute!important;inset:6px 8px auto auto!important;transform:none!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;min-height:46px!important;max-height:46px!important;margin:0!important;padding:0!important;line-height:1!important;border-radius:13px!important}
  html body .snm-registration-shell .snm-password-wrap>button.snm-show-password .snm-eye-icon{display:block!important;width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;margin:0!important;transform:none!important}

  /* the ONLY mobile/tablet dashboard menu is the headline drawer */
  html body .snm-mobile-menu-trigger,html body .snm-mobile-header-sheet{display:none!important;visibility:hidden!important;pointer-events:none!important}
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{display:grid!important;place-items:center!important;visibility:visible!important;pointer-events:auto!important;position:static!important;grid-column:2!important;grid-row:1!important;width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;margin:0!important;padding:0!important;z-index:30!important}
  html body .snm-user-dashboard .snm-premium-sidebar{display:block!important;position:fixed!important;z-index:1000005!important;left:6px!important;right:6px!important;top:max(8px,env(safe-area-inset-top))!important;bottom:max(82px,calc(env(safe-area-inset-bottom) + 76px))!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;padding:58px 12px 16px!important;overflow-x:hidden!important;overflow-y:auto!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(14px)!important;background:linear-gradient(155deg,#0d1116,#050608)!important;box-shadow:0 0 0 100vmax rgba(0,0,0,.74),0 24px 70px rgba(0,0,0,.82)!important}
  html body .snm-user-dashboard.snm-mobile-menu-open .snm-premium-sidebar{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
  html body .snm-user-dashboard .snm-dashboard-menu-close{display:grid!important;place-items:center!important;position:absolute!important;right:12px!important;top:10px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;margin:0!important;padding:0!important;z-index:100!important;border-radius:50%!important;font-size:30px!important;line-height:1!important}
  html body .snm-user-dashboard .snm-premium-sidebar-nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:100%!important;overflow:visible!important}
  html body .snm-user-dashboard .snm-premium-sidebar-nav a{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:48px!important;white-space:normal!important}

  /* selected section replaces overview flow; chat can never rise into FAQ/blog widgets */
  html body .snm-user-dashboard.snm-dashboard-subpanel-active :where(.snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets,.snm-user-dashboard-hero){display:none!important}
  html body .snm-user-dashboard.snm-dashboard-subpanel-active>.snm-dashboard-panel[hidden]{display:none!important}
  html body .snm-user-dashboard.snm-dashboard-subpanel-active>.snm-dashboard-panel:not([hidden]){display:block!important;position:relative!important;inset:auto!important;float:none!important;clear:both!important;transform:none!important;margin:10px 0 0!important}
  html body .snm-user-dashboard #snm-chat,html body .snm-user-dashboard #snm-chat *{box-sizing:border-box!important;min-width:0!important}
  html body .snm-user-dashboard #snm-chat{display:block;position:relative!important;inset:auto!important;float:none!important;clear:both!important;width:100%!important;max-width:100%!important;margin:10px 0 0!important;padding:8px 5px!important;transform:none!important}
  html body .snm-user-dashboard #snm-chat .snm-live-chat,html body .snm-user-dashboard #snm-chat .snm-chat-empty-state,html body .snm-user-dashboard #snm-chat .snm-chat-empty-card{position:static!important;inset:auto!important;float:none!important;clear:both!important;transform:none!important;width:100%!important;max-width:100%!important;margin:0!important}
}
@media (min-width:761px) and (max-width:1024px){
  body.snm-plugin-page .snm-plugin-host{left:50%!important;width:100vw!important;max-width:100vw!important;margin-left:-50vw!important}
  body.snm-plugin-page :where(.snm-user-dashboard,.snm-registration-shell,.snm-login-page-shell,.snm-referral-dashboard,.snm-affiliate-register,.snm-member-royal,.snm-search-page,.snm-royal-directory){box-sizing:border-box!important;width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;margin-left:auto!important;margin-right:auto!important;left:auto!important;transform:none!important}
  html body .snm-user-dashboard .snm-premium-sidebar{position:fixed!important;left:10px!important;right:10px!important;top:10px!important;bottom:20px!important;width:auto!important;max-width:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}
  html body .snm-user-dashboard.snm-mobile-menu-open .snm-premium-sidebar{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  html body .snm-user-dashboard .snm-dashboard-menu-close{display:grid!important}
}
@media (min-width:1025px) and (max-width:1440px){
  body.snm-plugin-page .snm-plugin-host{left:50%!important;width:100vw!important;max-width:100vw!important;margin-left:-50vw!important}
  body.snm-plugin-page :where(.snm-user-dashboard,.snm-registration-shell,.snm-login-page-shell,.snm-referral-dashboard,.snm-affiliate-register,.snm-member-royal,.snm-search-page,.snm-royal-directory){box-sizing:border-box!important;width:calc(100vw - 32px)!important;max-width:calc(100vw - 32px)!important;margin-left:auto!important;margin-right:auto!important;left:auto!important;transform:none!important}
}


/* SN Matrimony 2.5.242 — SCREEN-WIDTH ROOT + PROFILE PHOTO + DASHBOARD MENU + CLEAN SUBPANELS */
@media (max-width:760px){
  /* Root geometry: use the actual viewport, not the theme/content-column width. */
  html body :where(.snm-user-dashboard,.snm-registration-shell,.snm-login-page-shell,.snm-referral-dashboard,.snm-affiliate-register,.snm-member-royal,.snm-pv5,.snm-shortlist-page,.snm-interests-dashboard,.snm-search-page,.snm-royal-directory,.snm-membership-plans,.snm-promotion-plans,.snm-my-promotions,.snm-epaper,.snm-contact-page,.snm-ai-shell){
    box-sizing:border-box!important;position:relative!important;left:50vw!important;right:auto!important;transform:translateX(-50%)!important;
    width:calc(100vw - 4px)!important;max-width:calc(100vw - 4px)!important;min-width:0!important;margin-left:0!important;margin-right:0!important;
  }
  /* Anything rendered inside dashboard must fill the enlarged dashboard, not calculate viewport width again. */
  html body .snm-user-dashboard :where(.snm-shell,.snm-shortlist-page,.snm-who-shortlisted,.snm-interests-dashboard,.snm-registration-shell,.snm-referral-dashboard,.sn-matrimony-chat,.snm-dashboard-panel,.snm-dashboard-section,.snm-card){
    left:auto!important;right:auto!important;transform:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
  }
  html body .snm-user-dashboard{padding:0!important}
  html body .snm-user-dashboard>:where(.snm-dashboard-premium-head,.snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets,.snm-dashboard-panel,.snm-dashboard-footer){width:100%!important;max-width:100%!important;margin-inline:0!important}
  html body .snm-user-dashboard .snm-dashboard-premium-grid,
  html body .snm-user-dashboard .snm-dashboard-premium-middle,
  html body .snm-user-dashboard .snm-dashboard-premium-content-widgets{padding-left:3px!important;padding-right:3px!important}
  html body .snm-user-dashboard>.snm-dashboard-panel{padding:6px 3px!important;border-radius:14px!important}
  html body .snm-user-dashboard .snm-dashboard-section{padding:12px 7px!important;margin:8px 0!important}

  /* Header is one row: title at left, menu button at the SAME level on right; actions form row 2. */
  html body .snm-user-dashboard .snm-dashboard-premium-head{
    display:grid!important;grid-template-columns:minmax(0,1fr) 50px!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:10px!important;
    align-items:center!important;padding:14px 10px 12px!important;min-height:0!important;
  }
  html body .snm-user-dashboard .snm-premium-brand{grid-column:1!important;grid-row:1!important;align-self:center!important;width:100%!important;min-width:0!important}
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{
    grid-column:2!important;grid-row:1!important;position:static!important;justify-self:end!important;align-self:center!important;
    width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;
  }
  html body .snm-user-dashboard .snm-premium-head-actions{grid-column:1/-1!important;grid-row:2!important;width:100%!important;margin:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 48px 48px!important;gap:8px!important}
  html body .snm-user-dashboard .snm-premium-brand strong{font-size:clamp(25px,7.7vw,34px)!important;line-height:1.02!important}

  /* Drawer close control: simple centered square X matching the hamburger control. */
  html body .snm-user-dashboard .snm-dashboard-menu-close{
    display:grid!important;place-items:center!important;position:absolute!important;right:12px!important;top:10px!important;
    width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;min-height:46px!important;max-height:46px!important;
    margin:0!important;padding:0 0 3px!important;border:1px solid rgba(239,192,107,.8)!important;border-radius:13px!important;
    background:linear-gradient(145deg,#8f5515,#d49331)!important;color:#fff!important;box-shadow:0 8px 24px rgba(184,116,32,.22)!important;
    font-family:Arial,sans-serif!important;font-size:31px!important;font-weight:700!important;line-height:1!important;text-align:center!important;
  }

  /* Registration really expands WITH its content, not only the outside border. */
  html body .snm-registration-shell{padding:0!important}
  html body .snm-registration-shell>form,
  html body .snm-registration-shell .sn-matrimony-registration,
  html body .snm-registration-shell .snm-form-step,
  html body .snm-registration-shell .snm-form-grid,
  html body .snm-registration-shell .snm-field{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  html body .snm-registration-shell .snm-form-step{padding:15px 8px!important;margin:0!important}
  html body .snm-registration-shell .snm-form-grid{gap:14px!important}
  html body .snm-registration-shell :where(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%!important;max-width:100%!important}

  /* Full profile: remove the black empty band. Main image always fills its photo area. */
  html body .snm-pv5{padding:8px!important;margin-top:8px!important;margin-bottom:8px!important;overflow:hidden!important}
  html body .snm-pv5 .snm-pv5-hero-grid,
  html body .snm-pv5 .snm-pv5-gallery-card,
  html body .snm-pv5 .snm-pv5-main-photo{width:100%!important;max-width:100%!important;min-width:0!important}
  html body .snm-pv5 .snm-pv5-gallery-card{padding:8px!important}
  html body .snm-pv5 .snm-pv5-main-photo{height:min(112vw,620px)!important;min-height:0!important;background:#080a0d!important}
  html body .snm-pv5 .snm-pv5-main-photo>img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;object-position:center center!important;background:transparent!important}
  html body .snm-pv5 .snm-pv5-thumbs{padding:0!important;margin-top:8px!important;gap:7px!important}

  /* Dashboard shortlist/interests: one outer panel + one content card, no frame-inside-frame stack. */
  html body .snm-user-dashboard #snm-shortlist,
  html body .snm-user-dashboard #snm-interests{border:1px solid rgba(184,116,32,.48)!important;background:linear-gradient(145deg,#0b1016,#11100d)!important;box-shadow:none!important}
  html body .snm-user-dashboard #snm-shortlist :where(.snm-shortlist-page,.snm-shortlist-heading,.snm-shell),
  html body .snm-user-dashboard #snm-interests :where(.snm-interests-dashboard,.snm-dashboard-hero,.snm-shell){border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;padding-left:5px!important;padding-right:5px!important}
  html body .snm-user-dashboard #snm-shortlist .snm-empty,
  html body .snm-user-dashboard #snm-interests .snm-empty{border:1px solid rgba(184,116,32,.34)!important;border-radius:16px!important;background:#0b0e12!important;box-shadow:none!important}
}
@media (min-width:761px) and (max-width:1024px){
  html body :where(.snm-user-dashboard,.snm-registration-shell,.snm-login-page-shell,.snm-referral-dashboard,.snm-affiliate-register,.snm-member-royal,.snm-pv5,.snm-shortlist-page,.snm-interests-dashboard,.snm-search-page,.snm-royal-directory){
    box-sizing:border-box!important;position:relative!important;left:50vw!important;transform:translateX(-50%)!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;margin-left:0!important;margin-right:0!important;
  }
  html body .snm-user-dashboard .snm-dashboard-premium-head{display:grid!important;grid-template-columns:minmax(0,1fr) 52px!important;align-items:center!important}
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{position:static!important;grid-column:2!important;justify-self:end!important;align-self:center!important}
  html body .snm-pv5 .snm-pv5-main-photo>img{object-fit:cover!important;object-position:center!important}
}
@media (min-width:1025px) and (max-width:1440px){
  html body :where(.snm-user-dashboard,.snm-registration-shell,.snm-referral-dashboard,.snm-member-royal,.snm-pv5,.snm-shortlist-page,.snm-interests-dashboard){width:calc(100vw - 28px)!important;max-width:1320px!important}
}


/* SN Matrimony 2.5.243 — ACTUAL MOBILE VIEWPORT / ACTIVE MARKUP FIX
   Root cause fixed: 2.5.242 contained literal \\n tokens before its block and used a left:50vw
   centering formula that preserved the theme's narrow content-column position. */
@media (max-width:760px){
  /* TRUE viewport breakout. This expands the section AND its content from a narrow theme column. */
  html body .snm-user-dashboard,
  html body .snm-registration-shell,
  html body .snm-member-royal,
  html body .snm-referral-dashboard,
  html body .snm-affiliate-register,
  html body .snm-shortlist-page,
  html body .snm-interests-dashboard,
  html body .sn-matrimony-interests,
  html body .sn-matrimony-chat,
  html body .snm-search-page,
  html body .snm-membership-plans,
  html body .snm-promotion-plans,
  html body .snm-my-promotions,
  html body .snm-epaper,
  html body .snm-contact-page,
  html body .snm-ai-shell{
    box-sizing:border-box!important;
    position:relative!important;
    left:auto!important;right:auto!important;inset:auto!important;transform:none!important;
    width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important;min-width:0!important;
    margin-left:calc(50% - 50vw + 4px)!important;
    margin-right:calc(50% - 50vw + 4px)!important;
  }

  /* Dashboard internal geometry follows the enlarged root, not the old 500px-ish column. */
  html body .snm-user-dashboard{padding:0!important;overflow:visible!important}
  html body .snm-user-dashboard > :where(.snm-dashboard-premium-head,.snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets,.snm-dashboard-panel,.snm-dashboard-footer){
    width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
  }
  html body .snm-user-dashboard .snm-dashboard-premium-grid,
  html body .snm-user-dashboard .snm-dashboard-premium-middle,
  html body .snm-user-dashboard .snm-dashboard-premium-content-widgets{padding-left:10px!important;padding-right:10px!important;gap:12px!important}
  html body .snm-user-dashboard > .snm-dashboard-panel{padding:10px!important;margin-left:0!important;margin-right:0!important}
  html body .snm-user-dashboard .snm-dashboard-section{width:100%!important;max-width:100%!important;margin:10px 0!important;padding:14px 10px!important}
  html body .snm-user-dashboard :where(.snm-premium-stat,.snm-premium-strength,.snm-premium-quick,.snm-premium-support,.snm-premium-content-card,.snm-card,.snm-plan-card){
    width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;
  }

  /* MEMBER DASHBOARD: hamburger is pinned on the same heading line, never pushed into row 2. */
  html body .snm-user-dashboard .snm-dashboard-premium-head{
    position:relative!important;display:block!important;padding:18px 74px 16px 16px!important;min-height:132px!important;
  }
  html body .snm-user-dashboard .snm-premium-brand{display:flex!important;align-items:center!important;width:100%!important;max-width:100%!important;margin:0!important}
  html body .snm-user-dashboard .snm-premium-brand strong{font-size:clamp(29px,8vw,38px)!important;line-height:1.02!important}
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{
    display:grid!important;place-items:center!important;position:absolute!important;right:14px!important;top:50%!important;transform:translateY(-50%)!important;
    width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;
    margin:0!important;padding:0 0 4px!important;border-radius:14px!important;font-size:31px!important;line-height:1!important;z-index:20!important;
  }
  html body .snm-user-dashboard .snm-premium-head-actions{
    display:grid!important;grid-template-columns:minmax(0,1fr) 50px 50px!important;gap:10px!important;width:100%!important;margin:18px 0 0!important;
  }

  /* Drawer close is a small, correctly centred cross in the top-right. */
  html body .snm-user-dashboard .snm-premium-sidebar{padding-top:64px!important}
  html body .snm-user-dashboard .snm-dashboard-menu-close{
    display:grid!important;place-items:center!important;position:absolute!important;right:14px!important;top:12px!important;
    width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important;
    margin:0!important;padding:0 0 2px!important;border-radius:12px!important;
    font:700 26px/1 Arial,sans-serif!important;color:#171009!important;text-align:center!important;
  }

  /* Registration: expand actual step/content; keep only a small useful inner gutter. */
  html body .snm-registration-shell{padding:0!important}
  html body .snm-registration-shell > form,
  html body .snm-registration-shell .sn-matrimony-registration,
  html body .snm-registration-shell .snm-form-step,
  html body .snm-registration-shell .snm-form-grid,
  html body .snm-registration-shell .snm-field,
  html body .snm-registration-shell .snm-step-actions{
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  }
  html body .snm-registration-shell .snm-registration-hero{padding-left:14px!important;padding-right:14px!important}
  html body .snm-registration-shell .snm-form-step{padding:20px 12px!important;margin:0!important}
  html body .snm-registration-shell .snm-form-grid{grid-template-columns:minmax(0,1fr)!important;gap:15px!important}
  html body .snm-registration-shell :where(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%!important;max-width:100%!important;min-width:0!important}

  /* ACTIVE full-profile markup is .snm-member-royal/.snm-mr-main-photo (not .snm-pv5). */
  html body .snm-member-royal{padding:0!important;overflow:hidden!important}
  html body .snm-member-royal .snm-mr-hero{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important}
  html body .snm-member-royal .snm-mr-gallery{width:100%!important;max-width:100%!important;padding:10px!important;border-right:0!important}
  html body .snm-member-royal .snm-mr-main-photo{
    position:relative!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:4/5!important;
    display:block!important;overflow:hidden!important;background:#090b0e!important;
  }
  html body .snm-member-royal .snm-mr-main-photo > img{
    display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;
    object-fit:cover!important;object-position:center center!important;margin:0!important;padding:0!important;
  }
  html body .snm-member-royal .snm-mr-thumbs{width:100%!important;max-width:100%!important;padding:10px 0 0!important}
  html body .snm-member-royal .snm-mr-summary{width:100%!important;max-width:100%!important;padding:22px 14px!important}

  /* Shortlist / Interests opened from dashboard: one visible frame, no border stack. */
  html body .snm-user-dashboard #snm-shortlist,
  html body .snm-user-dashboard #snm-interests{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
  html body .snm-user-dashboard #snm-shortlist :where(.snm-shortlist-page,.snm-shell,.snm-shortlist-heading),
  html body .snm-user-dashboard #snm-interests :where(.snm-interests-dashboard,.snm-shell,.snm-dashboard-hero){
    width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;
  }
  html body .snm-user-dashboard #snm-shortlist .snm-empty,
  html body .snm-user-dashboard #snm-interests .snm-empty{
    width:100%!important;max-width:100%!important;margin:0!important;padding:28px 16px!important;border:1px solid rgba(184,116,32,.55)!important;border-radius:18px!important;box-shadow:none!important;
  }

  /* Referral Center: clean single card + readable 2x2 stats; no squeezed words. */
  html body .snm-user-dashboard #snm-referral{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  html body .snm-user-dashboard #snm-referral > .snm-dashboard-panel-head{padding:8px 10px 14px!important}
  html body .snm-user-dashboard #snm-referral .snm-shell.snm-referral-dashboard{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card{
    width:100%!important;max-width:100%!important;margin:0!important;padding:20px 16px!important;border:1px solid rgba(184,116,32,.58)!important;border-radius:18px!important;box-shadow:none!important;overflow:hidden!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"]{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"] > .snm-card{
    min-height:96px!important;padding:16px 12px!important;margin:0!important;border:1px solid rgba(184,116,32,.32)!important;border-radius:14px!important;overflow-wrap:normal!important;word-break:normal!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="display:flex"]{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard p strong{display:inline-block!important;max-width:100%!important;font-size:clamp(16px,4.8vw,20px)!important;overflow-wrap:anywhere!important}
  html body .snm-user-dashboard #snm-referral .snm-input{width:100%!important;max-width:100%!important;min-width:0!important}
}

@media (min-width:761px) and (max-width:1024px){
  html body .snm-user-dashboard,
  html body .snm-registration-shell,
  html body .snm-member-royal,
  html body .snm-referral-dashboard,
  html body .snm-shortlist-page,
  html body .snm-interests-dashboard{
    position:relative!important;left:auto!important;right:auto!important;transform:none!important;
    width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;
    margin-left:calc(50% - 50vw + 10px)!important;margin-right:calc(50% - 50vw + 10px)!important;box-sizing:border-box!important;
  }
  html body .snm-user-dashboard .snm-dashboard-premium-head{position:relative!important;display:block!important;padding-right:82px!important}
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{position:absolute!important;right:18px!important;top:50%!important;transform:translateY(-50%)!important}
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* SN Matrimony 2.5.244 — VERIFIED GEOMETRY CORRECTION
   This block intentionally comes last and corrects remaining 2.5.243 layout risks. */
@media (max-width:760px){
  /* Make dashboard header a real 2-row grid: brand + menu on row 1, actions on row 2. */
  html body .snm-user-dashboard .snm-dashboard-premium-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 54px!important;
    grid-template-rows:auto auto!important;
    column-gap:10px!important;row-gap:14px!important;
    align-items:start!important;
    padding:18px 14px 16px!important;
    min-height:0!important;
  }
  html body .snm-user-dashboard .snm-premium-brand{
    grid-column:1!important;grid-row:1!important;align-self:start!important;
    min-width:0!important;width:100%!important;
  }
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{
    grid-column:2!important;grid-row:1!important;
    position:static!important;right:auto!important;top:auto!important;transform:none!important;
    align-self:center!important;justify-self:end!important;
    width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
    margin:0!important;padding:0!important;line-height:1!important;
  }
  html body .snm-user-dashboard .snm-premium-head-actions{
    grid-column:1 / -1!important;grid-row:2!important;
    width:100%!important;margin:0!important;
  }

  /* Cross uses a text glyph without baseline drift. */
  html body .snm-user-dashboard .snm-dashboard-menu-close{
    display:flex!important;align-items:center!important;justify-content:center!important;
    padding:0!important;text-indent:0!important;line-height:1!important;
  }

  /* Full-profile photo follows the selected image's natural ratio: no forced empty canvas, no crop. */
  html body .snm-member-royal .snm-mr-main-photo{
    height:auto!important;min-height:0!important;aspect-ratio:auto!important;
    display:block!important;overflow:hidden!important;
  }
  html body .snm-member-royal .snm-mr-main-photo > img{
    position:static!important;inset:auto!important;
    display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    object-fit:contain!important;object-position:center!important;
  }

  /* Dashboard/registration/core sections: true viewport breakout + inner width. */
  html body :where(.snm-user-dashboard,.snm-registration-shell,.snm-member-royal,.snm-shortlist-page,.snm-interests-dashboard,.snm-referral-dashboard,.snm-affiliate-register,.sn-matrimony-chat,.sn-matrimony-interests){
    width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important;
    margin-left:calc(50% - 50vw + 4px)!important;margin-right:calc(50% - 50vw + 4px)!important;
  }
  html body .snm-registration-shell > .sn-matrimony-registration,
  html body .snm-registration-shell > form,
  html body .snm-user-dashboard > .snm-dashboard-panel,
  html body .snm-user-dashboard #snm-overview{
    width:100%!important;max-width:100%!important;min-width:0!important;
  }

  /* Shortlist/interest inside dashboard: exactly one empty-state border. */
  html body .snm-user-dashboard #snm-shortlist > .snm-dashboard-panel-head,
  html body .snm-user-dashboard #snm-interests > .snm-dashboard-panel-head{
    border:0!important;box-shadow:none!important;background:transparent!important;
    padding:8px 6px 14px!important;
  }
  html body .snm-user-dashboard #snm-shortlist .snm-shell,
  html body .snm-user-dashboard #snm-interests .snm-shell{
    border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
    padding:0!important;margin:0!important;
  }
  html body .snm-user-dashboard #snm-shortlist .snm-shell > .snm-card.snm-empty,
  html body .snm-user-dashboard #snm-interests .snm-shell > .snm-card.snm-empty{
    border:1px solid rgba(184,116,32,.58)!important;outline:0!important;box-shadow:none!important;
    margin:0!important;width:100%!important;max-width:100%!important;
  }

  /* Referral: flatten wrapper and keep readable stats. */
  html body .snm-user-dashboard #snm-referral .snm-shell.snm-referral-dashboard{
    border:0!important;outline:0!important;box-shadow:none!important;padding:0!important;margin:0!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card{
    padding:18px 14px!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"] > .snm-card{
    min-width:0!important;width:100%!important;min-height:92px!important;
    overflow-wrap:normal!important;word-break:keep-all!important;
  }
}

@media (min-width:761px) and (max-width:1024px){
  html body .snm-user-dashboard .snm-dashboard-premium-head{
    display:grid!important;grid-template-columns:minmax(0,1fr) 58px!important;grid-template-rows:auto auto!important;
    column-gap:12px!important;row-gap:16px!important;align-items:center!important;padding-right:18px!important;
  }
  html body .snm-user-dashboard .snm-premium-brand{grid-column:1!important;grid-row:1!important}
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{grid-column:2!important;grid-row:1!important;position:static!important;transform:none!important;justify-self:end!important}
  html body .snm-user-dashboard .snm-premium-head-actions{grid-column:1/-1!important;grid-row:2!important;margin:0!important}
}


/* SN Matrimony 2.5.245 — viewport geometry lock + real inner-section width */
@media (max-width: 782px){
  html,body{max-width:100%!important;overflow-x:hidden!important}
  html body .snm-shell.snm-user-dashboard,
  html body .snm-shell.snm-registration-shell,
  html body .snm-shell.snm-member-royal,
  html body .snm-shell.snm-shortlist-page,
  html body .snm-shell.snm-referral-dashboard,
  html body .snm-interests-dashboard,
  html body .sn-matrimony-chat,
  html body .snm-affiliate-register{
    box-sizing:border-box!important;
    max-width:none!important;
    min-width:0!important;
  }

  /* Dashboard: the root AND every major dashboard row use the available width. */
  html body .snm-shell.snm-user-dashboard{padding:0!important}
  html body .snm-shell.snm-user-dashboard > :not(.snm-premium-sidebar){
    box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;
  }
  html body .snm-user-dashboard .snm-dashboard-premium-head{padding:16px 12px!important;grid-template-columns:minmax(0,1fr) 54px!important}
  html body .snm-user-dashboard .snm-premium-brand{gap:10px!important;min-width:0!important}
  html body .snm-user-dashboard .snm-premium-brand>div{min-width:0!important;width:100%!important}
  html body .snm-user-dashboard .snm-premium-brand strong{
    font-size:clamp(25px,7.2vw,31px)!important;line-height:1.04!important;
    white-space:nowrap!important;overflow:visible!important;letter-spacing:-.4px!important;
  }
  html body .snm-user-dashboard .snm-dashboard-premium-grid,
  html body .snm-user-dashboard .snm-dashboard-premium-middle,
  html body .snm-user-dashboard .snm-dashboard-premium-content-widgets{
    width:100%!important;max-width:none!important;padding-left:8px!important;padding-right:8px!important;
  }
  html body .snm-user-dashboard .snm-premium-stat,
  html body .snm-user-dashboard .snm-premium-plan,
  html body .snm-user-dashboard .snm-premium-id,
  html body .snm-user-dashboard .snm-premium-strength,
  html body .snm-user-dashboard .snm-premium-quick,
  html body .snm-user-dashboard .snm-premium-support,
  html body .snm-user-dashboard .snm-premium-content-card{
    width:100%!important;max-width:none!important;min-width:0!important;
  }
  html body .snm-user-dashboard > .snm-dashboard-panel{
    box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;
    margin:10px 0!important;padding:12px 8px!important;
  }
  html body .snm-user-dashboard .snm-dashboard-panel > *{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}

  /* Registration: expand not only the border, but the actual form, steps and fields. */
  html body .snm-shell.snm-registration-shell{padding:0!important}
  html body .snm-registration-shell > form,
  html body .snm-registration-shell .snm-registration-hero,
  html body .snm-registration-shell .snm-stepper,
  html body .snm-registration-shell .snm-form-step,
  html body .snm-registration-shell .snm-form-grid,
  html body .snm-registration-shell .snm-step-actions{
    width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;
  }
  html body .snm-registration-shell .snm-form-step{padding:22px 10px 24px!important}
  html body .snm-registration-shell .snm-form-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  html body .snm-registration-shell .snm-form-grid>*,
  html body .snm-registration-shell .snm-field,
  html body .snm-registration-shell label,
  html body .snm-registration-shell .snm-password-wrap{width:100%!important;max-width:none!important;min-width:0!important}
  html body .snm-registration-shell input:not([type=checkbox]):not([type=radio]),
  html body .snm-registration-shell select,
  html body .snm-registration-shell textarea{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}

  /* Logged-out / approval gates: never leave the viewport, regardless of theme container geometry. */
  html body .snm-shell > .snm-login-gate,
  html body .snm-shell > .snm-approval-gate,
  html body .snm-login-gate,
  html body .snm-approval-gate{
    box-sizing:border-box!important;max-width:none!important;min-width:0!important;
    padding:24px 14px!important;text-align:center!important;overflow:hidden!important;
  }
  html body .snm-login-gate h2,
  html body .snm-approval-gate h2{font-size:clamp(25px,7vw,34px)!important;line-height:1.12!important;overflow-wrap:anywhere!important}
  html body .snm-login-gate p,
  html body .snm-approval-gate p{font-size:16px!important;line-height:1.6!important;overflow-wrap:anywhere!important}
  html body .snm-login-gate .snm-button,
  html body .snm-approval-gate .snm-button{width:100%!important;max-width:100%!important;white-space:normal!important}

  /* Referral: one clean frame, full inner width, readable 2×2 stats. */
  html body .snm-user-dashboard #snm-referral{padding:10px 8px!important}
  html body .snm-user-dashboard #snm-referral > .snm-dashboard-panel-head{padding:0 0 12px!important;border:0!important}
  html body .snm-user-dashboard #snm-referral .snm-shell.snm-referral-dashboard{
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;transform:none!important;left:auto!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card{
    width:100%!important;max-width:none!important;margin:0!important;padding:20px 14px!important;border-radius:18px!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="display:flex"]{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"]{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;
  }
  html body .snm-user-dashboard #snm-referral .snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"] > .snm-card{
    min-width:0!important;width:100%!important;min-height:108px!important;padding:14px 12px!important;
    display:flex!important;flex-direction:column!important;justify-content:center!important;
    word-break:normal!important;overflow-wrap:normal!important;
  }
  html body .snm-user-dashboard #snm-referral h2{font-size:clamp(29px,8vw,38px)!important;line-height:1.08!important}
  html body .snm-user-dashboard #snm-referral p strong{font-size:clamp(15px,4.2vw,19px)!important;overflow-wrap:anywhere!important}

  /* Login activity: no squeezed desktop table on phone. */
  html body .snm-security-center{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;padding:16px 12px!important;overflow:hidden!important}
  html body .snm-login-activity-list{display:grid!important;gap:10px!important;width:100%!important;min-width:0!important}
  html body .snm-login-activity-head{display:none!important}
  html body .snm-login-activity-row:not(.snm-login-activity-head){
    display:grid!important;grid-template-columns:1fr!important;gap:10px!important;
    width:100%!important;min-width:0!important;padding:14px!important;
    border:1px solid rgba(184,116,32,.32)!important;border-radius:14px!important;background:#0c1014!important;
  }
  html body .snm-login-activity-row>div{min-width:0!important;width:100%!important}
  html body .snm-login-activity-row span,
  html body .snm-login-activity-row strong{display:block!important;max-width:100%!important;white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;line-height:1.45!important}
  html body .snm-login-activity-label{color:#d5a656!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.8px!important;margin-bottom:3px!important}
}
@media (min-width:783px){
  .snm-login-activity-list{width:100%}
  .snm-login-activity-row{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(260px,2fr) minmax(180px,1fr);gap:16px;padding:12px 8px;border-bottom:1px solid rgba(184,116,32,.18);align-items:start}
  .snm-login-activity-label{display:none}
}

/* SN Matrimony 2.5.246 — dashboard/referral only. DO NOT alter registration/login/full-profile/directory. */
@media (max-width:782px){
  /* A little more usable width for the member dashboard and every dashboard panel. */
  html body .snm-shell.snm-user-dashboard{
    box-sizing:border-box!important;
    width:calc(100vw - 8px)!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  html body .snm-shell.snm-user-dashboard > :not(.snm-premium-sidebar){
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  html body .snm-user-dashboard .snm-dashboard-premium-grid,
  html body .snm-user-dashboard .snm-dashboard-premium-middle,
  html body .snm-user-dashboard .snm-dashboard-premium-content-widgets{
    padding-left:4px!important;
    padding-right:4px!important;
  }
  html body .snm-user-dashboard > .snm-dashboard-panel{
    width:100%!important;
    max-width:100%!important;
    margin:8px 0!important;
    padding:10px 4px!important;
    box-sizing:border-box!important;
  }
  html body .snm-user-dashboard .snm-dashboard-section,
  html body .snm-user-dashboard .snm-premium-stat,
  html body .snm-user-dashboard .snm-premium-plan,
  html body .snm-user-dashboard .snm-premium-id,
  html body .snm-user-dashboard .snm-premium-strength,
  html body .snm-user-dashboard .snm-premium-quick,
  html body .snm-user-dashboard .snm-premium-support,
  html body .snm-user-dashboard .snm-premium-content-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  /* Header: keep the hamburger beside the title, never on top of the text. */
  html body .snm-user-dashboard .snm-dashboard-premium-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    grid-template-rows:auto auto!important;
    column-gap:8px!important;
    row-gap:13px!important;
    align-items:center!important;
    padding:14px 10px!important;
  }
  html body .snm-user-dashboard .snm-premium-brand{
    grid-column:1!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
    min-width:0!important;
    width:100%!important;
  }
  html body .snm-user-dashboard .snm-premium-crown{
    width:38px!important;height:38px!important;font-size:21px!important;
  }
  html body .snm-user-dashboard .snm-premium-brand>div{min-width:0!important;width:100%!important}
  html body .snm-user-dashboard .snm-premium-brand strong{
    display:block!important;
    font-size:clamp(20px,6vw,25px)!important;
    line-height:1.03!important;
    letter-spacing:-.25px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  html body .snm-user-dashboard .snm-premium-brand small,
  html body .snm-user-dashboard .snm-premium-brand em{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
  }
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{
    grid-column:2!important;
    grid-row:1!important;
    position:static!important;
    justify-self:end!important;
    align-self:center!important;
    transform:none!important;
    width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;
    border-radius:11px!important;
    font-size:24px!important;
    line-height:1!important;
    padding:0!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
  }
  html body .snm-user-dashboard .snm-premium-head-actions{
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  /* Drawer: always above theme PWA/bottom-nav, and every item remains reachable by scrolling. */
  html.snm-dashboard-drawer-open,
  html.snm-dashboard-drawer-open body{overflow:hidden!important;overscroll-behavior:none!important}
  html body .snm-user-dashboard .snm-premium-sidebar{
    display:block!important;
    position:fixed!important;
    z-index:2147483000!important;
    left:5px!important;right:5px!important;
    top:max(5px,env(safe-area-inset-top))!important;
    bottom:max(5px,env(safe-area-inset-bottom))!important;
    width:auto!important;max-width:none!important;height:auto!important;
    margin:0!important;
    padding:58px 10px 170px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    scroll-padding-top:64px!important;
    scroll-padding-bottom:170px!important;
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
    transform:translateY(8px)!important;
    border-radius:16px!important;
  }
  html body .snm-user-dashboard.snm-mobile-menu-open .snm-premium-sidebar{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important;
  }
  html body .snm-user-dashboard .snm-dashboard-menu-close{
    position:fixed!important;
    z-index:2147483001!important;
    top:max(13px,calc(env(safe-area-inset-top) + 8px))!important;
    right:13px!important;
    width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;
    padding:0!important;margin:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    font-size:27px!important;line-height:1!important;border-radius:10px!important;
  }
  html body .snm-user-dashboard .snm-premium-sidebar-nav{
    width:100%!important;max-width:100%!important;
    padding-bottom:24px!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  html body .snm-user-dashboard .snm-premium-sidebar-nav a{
    min-width:0!important;
    min-height:50px!important;
    padding:10px 9px!important;
    font-size:13px!important;
    line-height:1.25!important;
  }
  html body .snm-user-dashboard .snm-sidebar-upgrade{margin-bottom:20px!important}

  /* Standalone referral page: wider content, one clean visible frame instead of stacked shells. */
  html body .snm-shell.snm-referral-dashboard{
    box-sizing:border-box!important;
    width:calc(100vw - 8px)!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;margin-right:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
    overflow:visible!important;
  }
  html body .snm-shell.snm-referral-dashboard > .snm-card{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;
    padding:20px 14px!important;
    box-sizing:border-box!important;
    border:1px solid rgba(184,116,32,.62)!important;
    border-radius:20px!important;
    box-shadow:none!important;
  }
  html body .snm-shell.snm-referral-dashboard > .snm-card > div[style*="display:flex"]{
    display:grid!important;grid-template-columns:1fr!important;gap:16px!important;
  }
  html body .snm-shell.snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"]{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
  }
  html body .snm-shell.snm-referral-dashboard > .snm-card > div[style*="grid-template-columns:repeat(4"] > .snm-card{
    min-width:0!important;width:100%!important;min-height:104px!important;
    padding:14px 12px!important;
    box-sizing:border-box!important;
    word-break:normal!important;overflow-wrap:normal!important;
  }
  html body .snm-shell.snm-referral-dashboard h2{font-size:clamp(28px,8vw,38px)!important;line-height:1.08!important}
  html body .snm-shell.snm-referral-dashboard p strong{overflow-wrap:anywhere!important}
}

/* SN Matrimony 2.5.247 — mobile dashboard title / scroll drawer / gallery controls */
@media (max-width:760px){
  /* requested: Member on first line, Dashboard below it; menu gets its own lane */
  html body .snm-user-dashboard{width:calc(100vw - 8px)!important;max-width:calc(100vw - 8px)!important;margin-left:4px!important;margin-right:4px!important}
  html body .snm-user-dashboard .snm-dashboard-premium-head{grid-template-columns:minmax(0,1fr) 40px!important;gap:6px!important;padding-left:8px!important;padding-right:8px!important}
  html body .snm-user-dashboard .snm-premium-brand strong{white-space:normal!important;overflow:visible!important;font-size:clamp(21px,6.2vw,26px)!important;line-height:.96!important}
  html body .snm-user-dashboard .snm-premium-brand strong span{display:block!important;white-space:nowrap!important}
  html body .snm-user-dashboard .snm-dashboard-mobile-menu{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;font-size:23px!important}
  html body .snm-user-dashboard > .snm-dashboard-panel{padding-left:6px!important;padding-right:6px!important}
  html body .snm-user-dashboard .snm-dashboard-section{padding-left:8px!important;padding-right:8px!important}

  /* Drawer itself has a dedicated touch-scroll viewport. */
  html body .snm-user-dashboard .snm-premium-sidebar{top:4px!important;bottom:4px!important;left:4px!important;right:4px!important;padding:56px 8px 12px!important;overflow:hidden!important;touch-action:pan-y!important}
  html body .snm-user-dashboard .snm-premium-sidebar-nav{display:grid!important;height:calc(100dvh - 86px)!important;max-height:calc(100dvh - 86px)!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;touch-action:pan-y!important;padding:0 2px 150px!important;align-content:start!important;scrollbar-gutter:stable!important}
  html body .snm-user-dashboard .snm-premium-sidebar-nav a{font-size:13px!important;min-height:48px!important}

  /* Edit Profile gallery: image and Delete button are separate rows, never overlaid/clipped. */
  html body .snm-user-dashboard .snm-dashboard-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:start!important}
  html body .snm-user-dashboard .snm-dashboard-gallery-item{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:visible!important;padding:7px!important}
  html body .snm-user-dashboard .snm-dashboard-gallery-item img{height:190px!important;min-height:190px!important;flex:none!important;border-radius:12px!important}
  html body .snm-user-dashboard .snm-gallery-delete{position:static!important;width:100%!important;max-width:100%!important;min-height:44px!important;height:auto!important;margin:8px 0 0!important;padding:8px 6px!important;display:flex!important;align-items:center!important;justify-content:center!important;white-space:normal!important;line-height:1.15!important;box-sizing:border-box!important;overflow:visible!important}
}

/* SN Matrimony 2.5.248 — whole drawer scroll + wider dashboard/E-Paper mobile cards.
   Scope intentionally excludes login, registration, full profile and member directory. */
@media (max-width:760px){
  /* Dashboard: use almost the full viewport; remove nested left/right shrink. */
  html body .snm-shell.snm-user-dashboard,
  body.snm-plugin-page .snm-user-dashboard{
    width:calc(100vw - 4px)!important;
    max-width:calc(100vw - 4px)!important;
    margin-left:calc(50% - 50vw + 2px)!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  html body .snm-user-dashboard > .snm-dashboard-panel{
    width:100%!important;max-width:100%!important;
    margin-left:0!important;margin-right:0!important;
    padding-left:2px!important;padding-right:2px!important;
  }
  html body .snm-user-dashboard :where(.snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets){
    width:100%!important;max-width:100%!important;
    padding-left:2px!important;padding-right:2px!important;
  }
  html body .snm-user-dashboard :where(.snm-dashboard-section,.snm-premium-stat,.snm-premium-plan,.snm-premium-id,.snm-premium-strength,.snm-premium-quick,.snm-premium-support,.snm-premium-content-card){
    width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;
    box-sizing:border-box!important;
  }
  html body .snm-user-dashboard .snm-dashboard-section{padding-left:5px!important;padding-right:5px!important}

  /* IMPORTANT: one scroll surface only. The complete menu panel moves up/down,
     instead of a small inner nav window hiding the first/last options. */
  html body .snm-user-dashboard .snm-premium-sidebar{
    top:4px!important;bottom:4px!important;left:3px!important;right:3px!important;
    height:auto!important;max-height:none!important;
    padding:56px 8px 130px!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;touch-action:pan-y!important;
    scroll-padding-top:56px!important;scroll-padding-bottom:130px!important;
  }
  html body .snm-user-dashboard .snm-premium-sidebar-nav{
    display:grid!important;
    height:auto!important;max-height:none!important;
    overflow:visible!important;
    padding:0 2px 18px!important;
    align-content:start!important;
    touch-action:auto!important;
  }
  html body .snm-user-dashboard .snm-dashboard-menu-close{position:sticky!important;float:right!important;top:0!important;right:0!important;margin-top:-48px!important;margin-right:0!important}

  /* E-Paper submit/plans: stop desktop max-width from making narrow cards. */
  body.snm-plugin-page .snm-epaper{
    width:calc(100vw - 4px)!important;max-width:calc(100vw - 4px)!important;
    margin-left:calc(50% - 50vw + 2px)!important;margin-right:0!important;
    padding-left:2px!important;padding-right:2px!important;
  }
  body.snm-plugin-page .snm-epaper :where(.snm-card,.snm-plan-card),
  html body .snm-user-dashboard .snm-epaper :where(.snm-card,.snm-plan-card){
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
  }
  body.snm-plugin-page .snm-epaper .snm-plan-card{padding-left:14px!important;padding-right:14px!important}
}

/* SN Matrimony 2.5.249 — mobile menu participates in page scroll + true viewport dashboard width.
   Do not target login, registration, full-profile or member-directory. */
@media (max-width:760px){
  /* Break the member dashboard out of any theme/content max-width. */
  html body .snm-user-dashboard{
    position:relative!important;
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:calc(100vw - 2px)!important;
    max-width:calc(100vw - 2px)!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow:visible!important;
  }
  html body .snm-user-dashboard > .snm-dashboard-panel,
  html body .snm-user-dashboard .snm-dashboard-premium-grid,
  html body .snm-user-dashboard .snm-dashboard-premium-middle,
  html body .snm-user-dashboard .snm-dashboard-premium-content-widgets{
    width:100%!important;max-width:100%!important;
    margin-left:0!important;margin-right:0!important;
    padding-left:3px!important;padding-right:3px!important;
    box-sizing:border-box!important;
  }
  html body .snm-user-dashboard .snm-dashboard-section,
  html body .snm-user-dashboard .snm-premium-stat,
  html body .snm-user-dashboard .snm-premium-plan,
  html body .snm-user-dashboard .snm-premium-id,
  html body .snm-user-dashboard .snm-premium-strength,
  html body .snm-user-dashboard .snm-premium-quick,
  html body .snm-user-dashboard .snm-premium-support,
  html body .snm-user-dashboard .snm-premium-content-card{
    width:100%!important;max-width:100%!important;
    margin-left:0!important;margin-right:0!important;
    box-sizing:border-box!important;
  }

  /* Critical fix: the OPEN menu is normal document content, not a fixed viewport.
     Therefore the phone/page itself scrolls from first option through the final option. */
  html.snm-dashboard-drawer-open,
  html.snm-dashboard-drawer-open body{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    height:auto!important;
    overscroll-behavior-y:auto!important;
  }
  html body .snm-user-dashboard .snm-premium-sidebar{
    position:relative!important;
    inset:auto!important;
    top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    display:none!important;
    width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;
    margin:0!important;
    padding:14px 10px 110px!important;
    overflow:visible!important;
    transform:none!important;
    border-right:0!important;
    border-bottom:1px solid rgba(184,116,32,.38)!important;
    border-radius:18px!important;
    box-sizing:border-box!important;
    opacity:1!important;
    visibility:visible!important;
  }
  html body .snm-user-dashboard.snm-mobile-menu-open .snm-premium-sidebar{
    display:block!important;
    pointer-events:auto!important;
  }
  html body .snm-user-dashboard .snm-premium-sidebar-nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;height:auto!important;max-height:none!important;
    overflow:visible!important;
    padding:0 0 28px!important;
    gap:7px!important;
    align-content:start!important;
  }
  html body .snm-user-dashboard .snm-premium-sidebar-nav a{
    min-height:52px!important;padding:10px 9px!important;font-size:13px!important;
  }
  html body .snm-user-dashboard .snm-dashboard-menu-close{
    position:sticky!important;
    top:8px!important;
    float:right!important;
    z-index:20!important;
    margin:0 0 8px 8px!important;
  }
}

/* SN Matrimony 2.5.250 — root mobile stability / E-Paper / search / session / support repair.
   Intentionally does NOT target login, registration, full profile, or member directory. */
@media (max-width:760px){
  /* One stable dashboard geometry: no 50% transform or competing breakout math. */
  html body .snm-shell.snm-user-dashboard,
  body.snm-plugin-page .snm-user-dashboard{
    position:relative!important;left:auto!important;right:auto!important;transform:none!important;
    width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;min-width:0!important;
    margin-left:calc(50% - 50vw + 6px)!important;margin-right:0!important;
    padding:0!important;overflow:visible!important;contain:layout style;
  }
  html body .snm-user-dashboard > :where(.snm-dashboard-premium-head,.snm-dashboard-premium-grid,.snm-dashboard-premium-middle,.snm-dashboard-premium-content-widgets,.snm-dashboard-panel,.snm-dashboard-footer){width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}

  /* Open menu is a normal full-width page section; complete border remains visible. */
  html body .snm-user-dashboard .snm-premium-sidebar{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:10px 0!important;padding:16px 12px 34px!important;overflow:visible!important;transform:none!important;border:1px solid rgba(184,116,32,.68)!important;border-radius:20px!important;box-sizing:border-box!important}
  html body .snm-user-dashboard .snm-premium-sidebar-nav{height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important}
  html body .snm-user-dashboard .snm-dashboard-menu-close{position:relative!important;top:auto!important;right:auto!important;float:right!important;margin:0 0 12px 12px!important}
  html.snm-dashboard-drawer-open,html.snm-dashboard-drawer-open body{height:auto!important;overflow-x:hidden!important;overflow-y:auto!important}

  /* E-Paper: remove nested shell shrink and give plan cards the available viewport width. */
  body.snm-plugin-page .snm-epaper-submit-card{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;margin-left:calc(50% - 50vw + 10px)!important;margin-right:0!important;padding:18px 14px!important;box-sizing:border-box!important}
  body.snm-plugin-page .snm-epaper-submit-card .snm-epaper-plan-choice,
  body.snm-plugin-page .snm-epaper-submit-card .snm-epaper-plan-choice>.snm-shell,
  body.snm-plugin-page .snm-epaper-submit-card .snm-promotion-plans,
  body.snm-plugin-page .snm-epaper-submit-card .snm-plans-grid{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important}
  body.snm-plugin-page .snm-epaper-submit-card .snm-plans-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
  body.snm-plugin-page .snm-epaper-submit-card .snm-plan-card{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:18px 14px!important}

  /* Search page only: one outer frame and a wide empty/results area. Directory is not targeted. */
  body.snm-plugin-page .snm-search-page{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;margin-left:calc(50% - 50vw + 6px)!important;margin-right:0!important;padding:0!important}
  body.snm-plugin-page .snm-search-page>.snm-card{width:100%!important;max-width:100%!important;margin:0!important;padding:14px 10px!important;box-shadow:none!important}
  body.snm-plugin-page .snm-search-page .snm-directory-grid{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
  body.snm-plugin-page .snm-search-page .snm-empty{width:100%!important;max-width:100%!important;margin:12px 0!important;padding:32px 14px!important;box-sizing:border-box!important;box-shadow:none!important}

  /* Security sessions: reserve usable space for the action; never split Logout by character. */
  html body .snm-user-dashboard .snm-security-center div[style*="display:flex"]{gap:10px!important;align-items:center!important}
  html body .snm-user-dashboard .snm-security-center div[style*="display:flex"]>span{min-width:0!important;flex:1 1 auto!important;overflow-wrap:break-word!important}
  html body .snm-user-dashboard .snm-security-center a.button{flex:0 0 auto!important;width:auto!important;min-width:92px!important;max-width:none!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;padding:10px 14px!important;text-align:center!important}

  /* Live Support WhatsApp: suppress any stray pseudo/text below the round icon. */
  html body .snm-premium-support .snm-live-whatsapp{display:grid!important;width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;margin:10px 0 18px!important;overflow:hidden!important;line-height:0!important;font-size:0!important;text-decoration:none!important}
  html body .snm-premium-support .snm-live-whatsapp:before,html body .snm-premium-support .snm-live-whatsapp:after{content:none!important;display:none!important}
  html body .snm-premium-support .snm-live-whatsapp>*:not(.snm-whatsapp-icon):not(svg){display:none!important}
}

/* SN Matrimony 2.5.251 — mobile geometry lock + search single-frame repair. */
@media (max-width:760px){
  /* Search results: remove the two redundant wrapper frames. Keep only the actual empty/profile card frame. */
  html body .snm-search-page .snm-search-results,
  html body .snm-search-page .snm-directory-grid--premium,
  html body .snm-search-page .snm-unified-results{
    width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
    background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  }
  html body .snm-search-page .snm-empty-state{
    width:100%!important;max-width:100%!important;margin:12px 0!important;padding:34px 16px!important;
    border:1px solid rgba(184,116,32,.48)!important;border-radius:20px!important;box-shadow:none!important;
  }
  /* Dashboard/menu use one identical viewport formula from first paint onward. */
  html body .snm-shell.snm-user-dashboard,
  html body body.snm-plugin-page .snm-user-dashboard{
    left:auto!important;right:auto!important;transform:none!important;
    width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
    margin-left:calc((100% - 100vw)/2 + 8px)!important;margin-right:0!important;
    min-width:0!important;box-sizing:border-box!important;
  }
  html body .snm-user-dashboard .snm-premium-sidebar{
    width:100%!important;max-width:100%!important;margin:10px 0!important;box-sizing:border-box!important;
    transform:none!important;animation:none!important;transition:none!important;
  }
  html body .snm-user-dashboard.snm-mobile-menu-open .snm-premium-sidebar{transform:none!important;animation:none!important}
}

/* SN Matrimony 2.5.252 — hard mobile width lock. No transitions, scaling or width animation on dashboard/menu. */
@media (max-width:760px){
 html,body{overflow-x:hidden!important}
 html body .snm-user-dashboard,html body .snm-shell.snm-user-dashboard{
   width:auto!important;max-width:none!important;min-width:0!important;
   margin-left:6px!important;margin-right:6px!important;left:auto!important;right:auto!important;
   transform:none!important;scale:none!important;transition-property:none!important;animation:none!important;contain:none!important;
 }
 html body .snm-user-dashboard *,html body .snm-user-dashboard *:before,html body .snm-user-dashboard *:after{box-sizing:border-box}
 html body .snm-user-dashboard .snm-premium-sidebar,
 html body .snm-user-dashboard.snm-mobile-menu-open .snm-premium-sidebar{
   width:100%!important;max-width:100%!important;min-width:0!important;margin:10px 0!important;
   transform:none!important;scale:none!important;transition:none!important;animation:none!important;
 }
}
