/* INJ Node · unified first access and workspace title (2026-10-27)
   Uses the same theme tokens, mono typography and safe-area rules as Home. */
html[data-inj-page="index"] body #entryGate .entry-gate-shell:not(.first-access)
 > .entry-actions.entry-flat-v44 > #entryWorkspaceButton {
  justify-content:flex-start!important;text-align:left!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell:not(.first-access)
 > .entry-actions.entry-flat-v44 > #entryWorkspaceButton
 > span:not(.entry-action-icon):not(.inj-tile-scene) {
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  align-content:flex-start!important;
  text-align:left!important;
  margin:0 auto 0 0!important;
  padding:0!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  gap:3px!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell:not(.first-access)
 > .entry-actions.entry-flat-v44 > #entryWorkspaceButton
 > span:not(.entry-action-icon):not(.inj-tile-scene) > :is(strong,small) {
  display:block!important;
  position:static!important;
  align-self:stretch!important;
  flex:none!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;
  text-align:left!important;
  translate:none!important;
  transform:none!important;
  -webkit-transform:none!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell:not(.first-access)
 > .entry-actions.entry-flat-v44 > #entryWorkspaceButton strong {
  text-align:left!important;margin:0!important;letter-spacing:.015em!important;
}

/* Isolated introductory screen — only present when no wallet is saved. */
html[data-inj-page="index"] body #entryGate:has(.entry-gate-shell.first-access) {
  overflow-x:hidden!important;overflow-y:auto!important;
  background:var(--page-gradient),var(--theme-canvas,var(--bg,#020708))!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access {
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:22px!important;
  width:min(100%,680px)!important;max-width:680px!important;
  min-width:0!important;min-height:100dvh!important;height:auto!important;
  margin:0 auto!important;padding:calc(env(safe-area-inset-top,0px) + 30px) 20px calc(env(safe-area-inset-bottom,0px) + 34px)!important;
  box-sizing:border-box!important;overflow:visible!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access
 > :not(.entry-onboarding):not(.entry-home-top) {display:none!important;}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access > .entry-home-top {
  display:flex!important;position:relative!important;inset:auto!important;
  width:100%!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:0!important;gap:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-home-top > :not(.entry-brand){display:none!important;}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-brand {
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;transform:none!important;text-align:center!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding {
  display:block!important;visibility:visible!important;opacity:1!important;
  position:relative!important;inset:auto!important;transform:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  box-sizing:border-box!important;margin:0!important;
  padding:clamp(22px,4.8vw,42px)!important;
  border:1px solid color-mix(in srgb,var(--accent,#70d6d4) 30%,var(--line,#394854))!important;
  border-radius:24px!important;
  background:linear-gradient(145deg,
    color-mix(in srgb,var(--accent,#70d6d4) 8%,var(--surface-strong,#14232d)),
    color-mix(in srgb,var(--surface,#0b1824) 95%,var(--theme-canvas,#020708)))!important;
  box-shadow:0 25px 68px rgba(0,0,0,.16),
   inset 0 1px 0 color-mix(in srgb,var(--accent,#70d6d4) 12%,transparent)!important;
  text-align:left!important;color:var(--text,#f4fbfb)!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-kicker {
  display:inline-flex!important;align-items:center!important;
  margin:0 0 14px!important;color:var(--accent,#70d6d4)!important;
  font-size:11px!important;font-weight:800!important;letter-spacing:.19em!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding h1 {
  color:var(--text,#fff)!important;margin:0 0 12px!important;
  font-size:clamp(26px,5.2vw,37px)!important;line-height:1.13!important;letter-spacing:-.045em!important;
  text-align:left!important;overflow-wrap:break-word!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-intro {
  display:block!important;font-size:clamp(13px,2.6vw,15px)!important;
  line-height:1.65!important;margin:0 0 25px!important;
  color:var(--muted-strong,var(--muted,#b1c6c7))!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-form {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;min-width:0!important;gap:9px!important;
  background:transparent!important;border:0!important;padding:0!important;margin:0!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-form > label {
  display:block!important;color:var(--muted-strong,var(--text))!important;
  font-size:10px!important;font-weight:800!important;letter-spacing:.13em!important;
  margin:9px 0 0!important;text-align:left!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access
 :is(.entry-onboarding-name-field,.entry-onboarding-field){
  display:flex!important;flex-direction:row!important;align-items:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;gap:9px!important;
  box-sizing:border-box!important;padding:5px!important;margin:0!important;
  border-radius:15px!important;
  border:1px solid color-mix(in srgb,var(--accent,#70d6d4) 20%,var(--line,#394854))!important;
  background:color-mix(in srgb,var(--surface-strong,#162a34) 91%,var(--theme-canvas,#020708))!important;
  box-shadow:none!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access
 :is(#entryWalletInput,#entryWalletName) {
  display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;
  min-height:46px!important;height:46px!important;padding:10px 13px!important;
  box-sizing:border-box!important;outline:0!important;border:0!important;
  border-radius:11px!important;background:transparent!important;
  color:var(--text,#fff)!important;font-size:16px!important;line-height:1.3!important;
  letter-spacing:normal!important;box-shadow:none!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access
 :is(.entry-onboarding-field,.entry-onboarding-name-field):focus-within{
  border-color:var(--accent,#70d6d4)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#70d6d4) 12%,transparent)!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access #entryWalletContinue {
  display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;
  justify-content:center!important;gap:8px!important;
  min-height:46px!important;height:46px!important;padding:0 17px!important;
  border:0!important;border-radius:11px!important;
  color:var(--theme-canvas,#061314)!important;
  background:var(--accent,#70d6d4)!important;font-size:13px!important;font-weight:800!important;
  cursor:pointer!important;white-space:nowrap!important;box-shadow:none!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access #entryWalletContinue svg {
  width:17px!important;height:17px!important;stroke:currentColor!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access #entryWalletContinue:disabled{
  opacity:.55!important;cursor:wait!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access #entryWalletStatus{
  display:block!important;min-height:1.5em!important;margin:10px 0 0!important;
  font-size:12px!important;line-height:1.55!important;
  color:var(--muted-strong,var(--muted,#acc4c2))!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access #entryWalletStatus.error {
  color:#ec8489!important;
}

@media(max-width:580px){
 html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access{
  padding-left:16px!important;padding-right:16px!important;gap:17px!important;
 }
 html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding{
  padding:24px 18px!important;border-radius:20px!important;
 }
 html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access #entryWalletContinue{
  padding:0 12px!important;font-size:12px!important;
 }
}


/* First-access mobile layout correction — 27 Oct 2026.
   Keep the input and the CTA in different grid rows to eliminate overlap
   from inherited entry-gate/button rules on mobile Safari. */
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-form{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:9px!important;
  min-width:0!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-field{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:58px!important;
  position:relative!important;
  flex:none!important;
  padding:5px!important;
  overflow:hidden!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-field #entryWalletInput{
  display:block!important;
  position:static!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-form > #entryWalletContinue {
  display:flex!important;
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  float:none!important;
  flex:0 0 auto!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:100%!important;
  height:52px!important;
  min-height:52px!important;
  box-sizing:border-box!important;
  margin:13px 0 0!important;
  padding:0 18px!important;
  border-radius:12px!important;
  transform:none!important;
  -webkit-transform:none!important;
  translate:none!important;
  white-space:nowrap!important;
  font-size:14px!important;
  line-height:1.2!important;
  z-index:auto!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-form > #entryWalletStatus {
  display:block!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  margin:9px 0 0!important;
  overflow-wrap:break-word!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-cloud-recovery {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  position:relative!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-height:46px!important;
  margin:14px 0 0!important;
  padding:10px 12px!important;
  border:1px solid color-mix(in srgb,var(--accent,#70d6d4) 29%,transparent)!important;
  border-radius:12px!important;
  color:var(--muted-strong,var(--text,#eff))!important;
  background:color-mix(in srgb,var(--accent,#70d6d4) 6%,transparent)!important;
  text-decoration:none!important;
  text-align:center!important;
  font-size:11px!important;
  line-height:1.5!important;
  overflow-wrap:anywhere!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-cloud-recovery strong {
  font-size:inherit!important;
  color:var(--accent,#70d6d4)!important;
  font-weight:760!important;
}
html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-cloud-recovery svg{
  flex:none!important;
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
}
@media(max-width:580px){
  html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding-form > #entryWalletContinue{
    height:52px!important;min-height:52px!important;padding:0 12px!important;
    font-size:14px!important;
  }
  html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access .entry-onboarding{
    padding:clamp(20px,5.2vw,26px) 18px!important;
  }
}
@media(max-height:740px){
  html[data-inj-page="index"] body #entryGate .entry-gate-shell.first-access{
    justify-content:flex-start!important;
    min-height:100dvh!important;
  }
}
