
/* Next7 — Account + Member surfaces. Preserve LGDS authority, remove duplicate vertical rhythm. */

/* ACCOUNT: registration + reset */
@media(min-width:801px){
  body.luck-lgds-account-shell--register .luck-member,
  body.luck-lgds-account-shell--password-reset .luck-member{
    min-height:0!important;
    padding:34px 64px 40px!important;
  }
  body.luck-lgds-account-shell--register .luck-member__intro,
  body.luck-lgds-account-shell--password-reset .luck-member__intro{
    max-width:720px!important;
    margin-bottom:16px!important;
  }
  body.luck-lgds-account-shell--register .luck-member__title,
  body.luck-lgds-account-shell--password-reset .luck-member__title{
    font-size:clamp(38px,4vw,50px)!important;
    line-height:1.08!important;
  }
  body.luck-lgds-account-shell--register .luck-member__lede,
  body.luck-lgds-account-shell--password-reset .luck-member__lede{
    margin-top:8px!important;
    font-size:13px!important;
    line-height:1.55!important;
  }

  body.luck-lgds-account-shell--register .luck-member__surface{
    max-width:760px!important;
    padding:24px 26px!important;
    border-radius:14px!important;
  }
  body.luck-lgds-account-shell--register .um-form form,
  body.luck-lgds-account-shell--register form.um-form{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0 16px!important;
  }
  body.luck-lgds-account-shell--register .um-field{
    padding-top:6px!important;
    margin-bottom:10px!important;
  }
  body.luck-lgds-account-shell--register .um-field-label{
    margin-bottom:4px!important;
  }
  body.luck-lgds-account-shell--register .um-field input[type=text],
  body.luck-lgds-account-shell--register .um-field input[type=password],
  body.luck-lgds-account-shell--register .um-field input[type=email]{
    min-height:44px!important;
  }
  body.luck-lgds-account-shell--register .um-col-alt{
    grid-column:1 / -1!important;
    margin:5px 0 0!important;
    padding-top:9px!important;
  }
  body.luck-lgds-account-shell--register .um-center{
    text-align:left!important;
  }

  body.luck-lgds-account-shell--password-reset .luck-member__surface{
    max-width:560px!important;
    padding:22px 26px!important;
    border-radius:14px!important;
  }
  body.luck-lgds-account-shell--password-reset .um-field{
    padding-top:5px!important;
    margin-bottom:8px!important;
  }
  body.luck-lgds-account-shell--password-reset .um-field-block{
    margin-bottom:5px!important;
    font-size:12px!important;
    line-height:1.55!important;
  }
  body.luck-lgds-account-shell--password-reset .um-field-label{
    margin-bottom:4px!important;
  }
  body.luck-lgds-account-shell--password-reset .um-field input[type=text]{
    min-height:44px!important;
  }
  body.luck-lgds-account-shell--password-reset .um-col-alt{
    margin:4px 0 0!important;
    padding-top:9px!important;
  }
}

/* MEMBER CENTER visitor: one access block + one preview, not three stacked sales-like sections. */
body.rmx-member-center-state-visitor .rmx-member-access{
  min-height:0!important;
}
@media(min-width:801px){
  body.rmx-member-center-state-visitor .rmx-member-access{
    padding:38px 64px 30px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access__inner{
    display:grid!important;
    grid-template-columns:minmax(0,1.15fr) auto!important;
    grid-template-areas:"eyebrow actions" "title actions" "body actions"!important;
    gap:7px 36px!important;
    align-items:center!important;
    padding:30px 34px!important;
    border-radius:12px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access__inner>.rmx-member-eyebrow{
    grid-area:eyebrow!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access h1{
    grid-area:title!important;
    margin-top:2px!important;
    max-width:760px!important;
    font-size:34px!important;
    line-height:1.2!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access__inner>p:not(.rmx-member-eyebrow){
    grid-area:body!important;
    margin-top:3px!important;
    max-width:720px!important;
    font-size:13px!important;
    line-height:1.55!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access__actions{
    grid-area:actions!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-top:0!important;
    min-width:190px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview{
    width:min(1200px,calc(100% - 128px))!important;
    padding:22px 0 34px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .rmx-member-section__head{
    display:grid!important;
    grid-template-columns:150px minmax(0,.7fr) minmax(260px,.9fr)!important;
    gap:20px!important;
    align-items:end!important;
    max-width:none!important;
    margin-bottom:14px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .rmx-member-section__head h2{
    margin:0!important;
    font-size:27px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .rmx-member-section__head>p:last-child{
    margin:0!important;
    font-size:11.5px!important;
    line-height:1.5!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-grid--preview{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:1px!important;
    background:var(--lg-border-default,#e8e4df)!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card{
    min-height:150px!important;
    padding:15px!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card__meta{
    margin-bottom:8px!important;
    padding:3px 7px!important;
    font-size:9.5px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card__title{
    font-size:16px!important;
    line-height:1.3!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card__text{
    margin-top:6px!important;
    font-size:10.5px!important;
    line-height:1.48!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card__action{
    padding-top:10px!important;
    font-size:10.5px!important;
  }
}
body.rmx-member-center-state-visitor main>.luck-gs-member-island--preview{
  display:none!important;
}

/* MEMBER RESOURCE restricted: the compact gate already explains access; remove the duplicate heading above it. */
body.luck-member-resource-state-restricted .luck-member-resource__boundary>.luck-member-resource__section-head{
  display:none!important;
}
@media(min-width:801px){
  body.luck-member-resource-state-restricted .luck-member-resource__hero{
    padding-top:34px!important;
    padding-bottom:24px!important;
    gap:14px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__hero-copy{
    padding:28px 32px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__access-card{
    padding:22px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__hero h1{
    margin-top:7px!important;
    font-size:34px!important;
    line-height:1.2!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__audience{
    margin-top:11px!important;
    font-size:13px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__summary,
  body.luck-member-resource-state-restricted .luck-member-resource__access-card p{
    margin-top:7px!important;
    font-size:11.5px!important;
    line-height:1.55!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__access-card strong{
    margin-top:6px!important;
    font-size:18px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__preview{
    padding-top:22px!important;
    padding-bottom:24px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__section-head{
    margin-bottom:12px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__section-head h2{
    margin-top:5px!important;
    font-size:25px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__preview-grid{
    gap:1px!important;
    background:var(--lg-border-default,#e8e4df)!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__preview-grid article{
    min-height:82px!important;
    padding:14px 16px!important;
    border:0!important;
    border-radius:0!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__preview-grid p{
    margin-top:6px!important;
    font-size:12px!important;
    line-height:1.48!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__boundary{
    padding-top:20px!important;
    padding-bottom:28px!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact{
    padding:18px 20px!important;
    border-radius:12px!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__intro{
    display:grid!important;
    grid-template-columns:minmax(0,.85fr) minmax(280px,1fr)!important;
    gap:24px!important;
    align-items:end!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__title{
    font-size:22px!important;
    line-height:1.3!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__body{
    margin-top:0!important;
    font-size:11.5px!important;
    line-height:1.55!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__footer{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:18px!important;
    margin-top:14px!important;
    padding-top:14px!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__note{
    margin:0!important;
    font-size:10px!important;
    white-space:nowrap!important;
  }
}
@media(max-width:800px){
  body.luck-lgds-account-shell--register .luck-member,
  body.luck-lgds-account-shell--password-reset .luck-member{
    padding-top:26px!important;
    padding-bottom:30px!important;
  }
  body.luck-lgds-account-shell--register .luck-member__intro,
  body.luck-lgds-account-shell--password-reset .luck-member__intro{
    margin-bottom:14px!important;
  }
  body.luck-lgds-account-shell--register .luck-member__surface,
  body.luck-lgds-account-shell--password-reset .luck-member__surface{
    padding:18px!important;
    border-radius:12px!important;
  }
  body.luck-lgds-account-shell--register .um-field,
  body.luck-lgds-account-shell--password-reset .um-field{
    padding-top:5px!important;
    margin-bottom:8px!important;
  }

  body.rmx-member-center-state-visitor .rmx-member-access{
    padding:28px 20px 20px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access__inner{
    padding:22px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access h1{
    font-size:27px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access__inner>p:not(.rmx-member-eyebrow){
    margin-top:8px!important;
    font-size:13px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-access__actions{
    margin-top:18px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview{
    margin-inline:20px!important;
    padding:22px 0 30px!important;
  }

  body.luck-member-resource-state-restricted .luck-member-resource__hero{
    padding-top:24px!important;
    padding-bottom:16px!important;
    gap:10px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__hero-copy,
  body.luck-member-resource-state-restricted .luck-member-resource__access-card{
    padding:20px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__preview{
    padding-top:18px!important;
    padding-bottom:18px!important;
  }
  body.luck-member-resource-state-restricted .luck-member-resource__boundary{
    padding-top:16px!important;
    padding-bottom:22px!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact{
    padding:18px!important;
  }
}

/* Next7 v2 — actual UM field grid + tighter mobile member previews. */
@media(min-width:801px){
  body.luck-lgds-account-shell--register .um-row{
    margin:0 0 10px!important;
  }
  body.luck-lgds-account-shell--register .um-row>.um-col-1{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px 16px!important;
  }
  body.luck-lgds-account-shell--register .um-row>.um-col-1>.um-field{
    width:auto!important;
    margin:0!important;
  }
}
@media(max-width:800px){
  body.luck-lgds-account-shell--register .um-row{
    margin-bottom:10px!important;
  }
  body.luck-lgds-account-shell--register .um-row>.um-col-1{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card{
    min-height:0!important;
    padding:15px!important;
    box-shadow:none!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card__meta{
    margin-bottom:7px!important;
    padding:3px 7px!important;
    font-size:9.5px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card__title{
    font-size:16px!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card__text{
    margin-top:5px!important;
    font-size:11px!important;
    line-height:1.45!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }
  body.rmx-member-center-state-visitor .rmx-member-section--public-preview .luck-gs-member-card__action{
    padding-top:9px!important;
    font-size:11px!important;
  }

  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__title{
    font-size:21px!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__body{
    margin-top:7px!important;
    font-size:12px!important;
    line-height:1.5!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__footer{
    margin-top:12px!important;
    padding-top:12px!important;
  }
  body.luck-member-resource-state-restricted .luck-access-gate--compact .luck-access-gate__note{
    margin-top:8px!important;
    font-size:10px!important;
  }
}

/* Next7 v3 — reclaim Ultimate Member's legacy column width before applying 2-col registration grid. */
@media(min-width:801px){
  body.luck-lgds-account-shell--register .um-row>.um-col-1{
    width:100%!important;
    max-width:none!important;
    float:none!important;
  }
}

/* Next7 v4 — registration grid lives inside the UM row, not on the form root. */
@media(min-width:801px){
  body.luck-lgds-account-shell--register .um-form form{
    display:block!important;
  }
  body.luck-lgds-account-shell--register .um-row{
    width:100%!important;
    max-width:none!important;
    float:none!important;
  }
}

/* Next7 v5 — give the two-column registration form enough breathing room. */
@media(min-width:801px){
  body.luck-lgds-account-shell--register .luck-member__surface{
    width:min(760px,100%)!important;
  }
}

/* Next7 v6 — Registration stays single-column; compact, not dashboard-like. */
@media(min-width:801px){
  body.luck-lgds-account-shell--register .luck-member__surface{
    width:min(560px,100%)!important;
    max-width:560px!important;
    padding:22px 26px!important;
  }
  body.luck-lgds-account-shell--register .um-form form{
    display:block!important;
  }
  body.luck-lgds-account-shell--register .um-row,
  body.luck-lgds-account-shell--register .um-row>.um-col-1{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    float:none!important;
  }
  body.luck-lgds-account-shell--register .um-row>.um-col-1>.um-field{
    width:100%!important;
    margin:0 0 9px!important;
  }
  body.luck-lgds-account-shell--register .um-col-alt{
    margin-top:4px!important;
  }
}
