/* REC0DET V246 — final compact Access onboarding.
   Loaded last to override legacy access/subscription styling. */

html:has(#viewSubscription:not(.hidden)),
body:has(#viewSubscription:not(.hidden)){
  width:100%!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
  touch-action:manipulation!important;
}

html body.recodet-pro:has(#viewSubscription:not(.hidden)) .topbar,
html body.recodet-pro:has(#viewSubscription:not(.hidden)) .appSidebar,
html body.recodet-pro:has(#viewSubscription:not(.hidden)) .quickModuleDock,
html body.recodet-pro:has(#viewSubscription:not(.hidden)) #bottomBar,
html body.recodet-pro:has(#viewSubscription:not(.hidden)) #switchModeFab,
html body.recodet-pro:has(#viewSubscription:not(.hidden)) #pageTitle{
  display:none!important;
}

body:has(#viewSubscription:not(.hidden)) .app,
body:has(#viewSubscription:not(.hidden)) .content,
#viewSubscription.onboardingScreen{
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  overflow:hidden!important;
}

html body.recodet-pro:has(#viewSubscription:not(.hidden)) .content{
  box-sizing:border-box!important;
  margin:0!important;
  padding:
    max(8px,env(safe-area-inset-top))
    10px
    max(10px,env(safe-area-inset-bottom))!important;
  display:grid!important;
  align-content:center!important;
  justify-items:center!important;
}

html body.recodet-pro #viewSubscription.onboardingScreen{
  width:min(100%,440px)!important;
  margin:0!important;
  padding:0!important;
}

html body.recodet-pro #viewSubscription .memberAccessCard{
  width:100%!important;
  max-width:none!important;
  max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)))!important;
  margin:0!important;
  padding:14px!important;
  overflow:hidden!important;
  border:1px solid rgba(212,175,55,.18)!important;
  border-radius:21px!important;
  color:#f7f3e8!important;
  background:
    radial-gradient(90% 54% at 50% -8%,rgba(212,175,55,.07),transparent 62%),
    #0c0b08!important;
  box-shadow:
    inset 0 1px 0 rgba(255,245,210,.035),
    0 20px 46px rgba(0,0,0,.34)!important;
}

html body.recodet-pro #viewSubscription .startupProgress,
html body.recodet-pro #viewSubscription .memberAccessNotice{
  display:none!important;
}

html body.recodet-pro #viewSubscription .accessOnboardingLogo{
  display:grid!important;
  place-items:center!important;
  min-height:46px!important;
  margin:0 0 7px!important;
}

html body.recodet-pro #viewSubscription .accessOnboardingLogo img{
  display:block!important;
  width:42px!important;
  height:42px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 7px 18px rgba(212,175,55,.12))!important;
}

html body.recodet-pro #viewSubscription .memberAccessHeading{
  display:grid!important;
  gap:3px!important;
  margin:0 0 10px!important;
  text-align:left!important;
}

html body.recodet-pro #viewSubscription .memberAccessHeading strong{
  color:#fffaf0!important;
  font-size:22px!important;
  font-weight:900!important;
  line-height:1.05!important;
  letter-spacing:-.035em!important;
}

html body.recodet-pro #viewSubscription .memberAccessHeading small{
  color:#8f8778!important;
  font-size:11.5px!important;
  line-height:1.3!important;
}

/* Three compact selectable rows */
html body.recodet-pro #viewSubscription .memberAccessGrid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  margin:0!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan,
html body.recodet-pro #viewSubscription .memberAccessPlan.freeMemberPlan{
  grid-column:auto!important;
  position:relative!important;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-height:70px!important;
  padding:8px 10px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:15px!important;
  color:#e9e4d8!important;
  background:#11110f!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02)!important;
  text-align:left!important;
  cursor:pointer!important;
  transition:border-color 150ms ease,background 150ms ease,transform 150ms ease!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan::after{
  display:none!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan:hover{
  transform:none!important;
  border-color:rgba(212,175,55,.25)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan:active{
  transform:scale(.99)!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan.active{
  border-color:rgba(212,175,55,.56)!important;
  background:
    linear-gradient(135deg,rgba(212,175,55,.085),rgba(212,175,55,.02)),
    #12110d!important;
  box-shadow:
    inset 0 1px 0 rgba(255,245,210,.04),
    0 0 0 2px rgba(212,175,55,.055)!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan.active::before{
  content:"✓"!important;
  position:absolute!important;
  right:9px!important;
  top:8px!important;
  width:18px!important;
  height:18px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  color:#0f0c05!important;
  background:#d4af37!important;
  font-size:10px!important;
  font-weight:950!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan:disabled{
  opacity:.58!important;
  filter:saturate(.55)!important;
}

html body.recodet-pro #viewSubscription .memberAccessIcon{
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(212,175,55,.16)!important;
  border-radius:12px!important;
  color:#d7ba5a!important;
  background:rgba(212,175,55,.045)!important;
  box-shadow:none!important;
}

html body.recodet-pro #viewSubscription .memberAccessIcon svg{
  width:22px!important;
  height:22px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

html body.recodet-pro #viewSubscription .memberAccessCopy{
  display:grid!important;
  align-content:center!important;
  gap:3px!important;
  min-width:0!important;
  padding-right:22px!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan .startupPlanTop{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  padding:0!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan .planTitle{
  color:#fffaf0!important;
  font-size:15.5px!important;
  font-weight:900!important;
  line-height:1.05!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan .startupPlanTop>span{
  color:#9f8b55!important;
  font-size:8.5px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  padding-right:20px!important;
}

html body.recodet-pro #viewSubscription .memberAccessPlan .s{
  margin:0!important;
  color:#8f887b!important;
  font-size:10.5px!important;
  line-height:1.25!important;
}

html body.recodet-pro #viewSubscription .memberAccessPill{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  width:max-content!important;
  min-height:20px!important;
  margin:0!important;
  padding:3px 7px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  font-size:9.5px!important;
  font-weight:850!important;
  line-height:1!important;
}

html body.recodet-pro #viewSubscription .memberAccessPill.open{
  border-color:rgba(82,183,124,.16)!important;
  color:#82d1a3!important;
  background:rgba(52,142,90,.07)!important;
}

html body.recodet-pro #viewSubscription .memberAccessPill.login{
  border-color:rgba(212,175,55,.16)!important;
  color:#d8bc62!important;
  background:rgba(212,175,55,.055)!important;
}

/* Status becomes a quiet helper line instead of another card */
html body.recodet-pro #viewSubscription .memberAccessStatus{
  min-height:18px!important;
  margin:6px 2px 4px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:0!important;
  color:#7f786c!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:9.5px!important;
  font-weight:650!important;
  line-height:1.2!important;
  text-align:center!important;
}

html body.recodet-pro #viewSubscription .memberAccessStatus:empty{
  display:none!important;
}

html body.recodet-pro #viewSubscription .memberAccessStatus.success{
  color:#79c799!important;
  background:transparent!important;
  border:0!important;
}

html body.recodet-pro #viewSubscription .memberAccessStatus.pending{
  color:#c8ad59!important;
  background:transparent!important;
  border:0!important;
}

html body.recodet-pro #viewSubscription .memberAccessStatus.error{
  color:#e18f86!important;
  background:transparent!important;
  border:0!important;
}

html body.recodet-pro #viewSubscription .memberAccessPrimary{
  width:100%!important;
  min-height:43px!important;
  margin:2px 0 0!important;
  border:1px solid rgba(255,236,164,.18)!important;
  border-radius:12px!important;
  color:#100d07!important;
  background:linear-gradient(135deg,#efd05f,#d2a126 68%,#bd8c17)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.23),
    0 8px 18px rgba(151,105,10,.12)!important;
  font-size:13px!important;
  font-weight:950!important;
}

html body.recodet-pro #viewSubscription .memberAccessTrust{
  margin:5px 0 0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  color:#696359!important;
  font-size:8.5px!important;
  line-height:1.15!important;
  text-align:center!important;
}

html body.recodet-pro #viewSubscription .memberAccessTrust>span{
  color:#9f8a4c!important;
  font-size:9px!important;
}

@media(max-width:380px){
  html body.recodet-pro #viewSubscription .memberAccessCard{
    padding:12px 11px 10px!important;
  }

  html body.recodet-pro #viewSubscription .accessOnboardingLogo{
    min-height:40px!important;
    margin-bottom:5px!important;
  }

  html body.recodet-pro #viewSubscription .accessOnboardingLogo img{
    width:36px!important;
    height:36px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessHeading{
    margin-bottom:8px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessHeading strong{
    font-size:20px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessPlan,
  html body.recodet-pro #viewSubscription .memberAccessPlan.freeMemberPlan{
    grid-template-columns:38px minmax(0,1fr)!important;
    min-height:64px!important;
    padding:7px 8px!important;
    gap:8px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessIcon{
    width:38px!important;
    height:38px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessPlan .planTitle{
    font-size:14.5px!important;
  }
}

@media(max-height:690px){
  html body.recodet-pro #viewSubscription .accessOnboardingLogo{
    min-height:36px!important;
    margin-bottom:4px!important;
  }

  html body.recodet-pro #viewSubscription .accessOnboardingLogo img{
    width:32px!important;
    height:32px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessHeading{
    margin-bottom:7px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessHeading small,
  html body.recodet-pro #viewSubscription .memberAccessTrust{
    display:none!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessGrid{
    gap:5px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessPlan,
  html body.recodet-pro #viewSubscription .memberAccessPlan.freeMemberPlan{
    min-height:59px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessStatus{
    margin-top:3px!important;
    margin-bottom:2px!important;
    min-height:14px!important;
    font-size:8.5px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessPrimary{
    min-height:39px!important;
  }
}

@media(max-height:620px){
  html body.recodet-pro #viewSubscription .memberAccessCard{
    padding-top:9px!important;
    padding-bottom:8px!important;
  }

  html body.recodet-pro #viewSubscription .accessOnboardingLogo{
    display:none!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessHeading strong{
    font-size:18px!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessPlan .s{
    display:none!important;
  }

  html body.recodet-pro #viewSubscription .memberAccessPlan,
  html body.recodet-pro #viewSubscription .memberAccessPlan.freeMemberPlan{
    min-height:51px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html body.recodet-pro #viewSubscription .memberAccessPlan{
    transition:none!important;
  }
}


/* REC0DET V247 — official Access choices + temporary Free Member side button. */
html body.recodet-pro #viewSubscription .memberAccessCard{
  padding:12px!important;
}

html body.recodet-pro #viewSubscription .accessHeaderRow{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:40px!important;
  margin:0 0 8px!important;
}

html body.recodet-pro #viewSubscription .accessOnboardingLogo{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  max-width:40px!important;
  max-height:40px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

html body.recodet-pro #viewSubscription .accessOnboardingLogo img{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  max-width:38px!important;
  max-height:38px!important;
  object-fit:contain!important;
  display:block!important;
}

/* Temporary option: intentionally small and secondary. */
html body.recodet-pro #viewSubscription .temporaryFreeMember{
  width:auto!important;
  min-width:0!important;
  min-height:36px!important;
  max-height:36px!important;
  display:inline-grid!important;
  grid-template-columns:auto auto!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:7px!important;
  row-gap:0!important;
  padding:5px 9px!important;
  border:1px dashed rgba(212,175,55,.26)!important;
  border-radius:11px!important;
  color:#c6b98d!important;
  background:rgba(212,175,55,.035)!important;
  box-shadow:none!important;
  text-align:left!important;
}

html body.recodet-pro #viewSubscription .temporaryFreeMember::before{
  display:none!important;
}

html body.recodet-pro #viewSubscription .temporaryFreeMember.active{
  border-style:solid!important;
  border-color:rgba(212,175,55,.55)!important;
  background:rgba(212,175,55,.08)!important;
  box-shadow:0 0 0 2px rgba(212,175,55,.045)!important;
}

html body.recodet-pro #viewSubscription .temporaryFreeMember .temporaryFreeLabel{
  grid-row:1 / span 2!important;
  align-self:center!important;
  padding:3px 5px!important;
  border-radius:7px!important;
  color:#8f7d4a!important;
  background:rgba(212,175,55,.07)!important;
  font-size:7px!important;
  font-weight:950!important;
  line-height:1!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}

html body.recodet-pro #viewSubscription .temporaryFreeMember strong{
  color:#e7d79d!important;
  font-size:10.5px!important;
  font-weight:900!important;
  line-height:1.05!important;
  white-space:nowrap!important;
}

html body.recodet-pro #viewSubscription .temporaryFreeMember small{
  color:#746a51!important;
  font-size:7.5px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* Compact heading */
html body.recodet-pro #viewSubscription .memberAccessHeading{
  margin:0 0 8px!important;
  gap:2px!important;
}

html body.recodet-pro #viewSubscription .memberAccessHeading strong{
  font-size:20px!important;
}

html body.recodet-pro #viewSubscription .memberAccessHeading small{
  font-size:10.5px!important;
}

/* Guest + Member are the two official primary choices. */
html body.recodet-pro #viewSubscription .officialAccessGrid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan{
  min-height:118px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto 1fr!important;
  align-items:start!important;
  gap:7px!important;
  padding:10px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:15px!important;
  background:#11110f!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan.active{
  border-color:rgba(212,175,55,.58)!important;
  background:
    linear-gradient(145deg,rgba(212,175,55,.095),rgba(212,175,55,.018)),
    #11100c!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan .memberAccessIcon{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan .memberAccessIcon svg{
  width:19px!important;
  height:19px!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan .memberAccessCopy{
  padding:0!important;
  gap:4px!important;
  align-content:start!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan .startupPlanTop{
  display:grid!important;
  gap:2px!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan .planTitle{
  font-size:15px!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan .startupPlanTop>span{
  padding:0!important;
  font-size:7.5px!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan .s{
  min-height:27px!important;
  font-size:9.5px!important;
  line-height:1.25!important;
}

html body.recodet-pro #viewSubscription .officialAccessPlan .memberAccessPill{
  min-height:18px!important;
  padding:3px 6px!important;
  font-size:8.5px!important;
}

html body.recodet-pro #viewSubscription .memberAccessStatus{
  min-height:14px!important;
  margin:5px 1px 3px!important;
  font-size:8.5px!important;
}

html body.recodet-pro #viewSubscription .memberAccessPrimary{
  min-height:40px!important;
  margin:0!important;
  border-radius:11px!important;
  font-size:12.5px!important;
}

/* Nothing on this screen may create vertical overflow. */
html body.recodet-pro:has(#viewSubscription:not(.hidden)),
html body.recodet-pro:has(#viewSubscription:not(.hidden)) .app,
html body.recodet-pro:has(#viewSubscription:not(.hidden)) .content,
html body.recodet-pro #viewSubscription.onboardingScreen,
html body.recodet-pro #viewSubscription .memberAccessCard{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

html body.recodet-pro #viewSubscription .memberAccessCard{
  height:auto!important;
  max-height:calc(100dvh - max(14px,env(safe-area-inset-top)) - max(14px,env(safe-area-inset-bottom)))!important;
}

@media(max-height:650px){
  html body.recodet-pro #viewSubscription .accessHeaderRow{
    min-height:34px!important;
    margin-bottom:5px!important;
  }
  html body.recodet-pro #viewSubscription .accessOnboardingLogo{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
  }
  html body.recodet-pro #viewSubscription .accessOnboardingLogo img{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    max-width:32px!important;
    max-height:32px!important;
  }
  html body.recodet-pro #viewSubscription .temporaryFreeMember{
    min-height:32px!important;
    max-height:32px!important;
    padding:4px 7px!important;
  }
  html body.recodet-pro #viewSubscription .memberAccessHeading{
    margin-bottom:6px!important;
  }
  html body.recodet-pro #viewSubscription .memberAccessHeading small{
    display:none!important;
  }
  html body.recodet-pro #viewSubscription .officialAccessPlan{
    min-height:102px!important;
    padding:8px!important;
  }
  html body.recodet-pro #viewSubscription .officialAccessPlan .s{
    min-height:0!important;
  }
  html body.recodet-pro #viewSubscription .memberAccessStatus{
    margin-top:3px!important;
    margin-bottom:2px!important;
  }
  html body.recodet-pro #viewSubscription .memberAccessPrimary{
    min-height:37px!important;
  }
}

@media(max-width:350px){
  html body.recodet-pro #viewSubscription .temporaryFreeMember{
    padding-left:6px!important;
    padding-right:6px!important;
    column-gap:5px!important;
  }
  html body.recodet-pro #viewSubscription .temporaryFreeMember strong{
    font-size:9.5px!important;
  }
  html body.recodet-pro #viewSubscription .officialAccessGrid{
    gap:6px!important;
  }
  html body.recodet-pro #viewSubscription .officialAccessPlan{
    padding:8px 7px!important;
  }
}
