.client-auth-banner { display: none; }

html:not(.client-auth-phone-page) body:not([data-order-link="true"]):not([data-portal-authenticated="true"]) {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 27% 36%, #142517, #070a07 35%, #000 76%);
}

body:not([data-order-link="true"]):not([data-portal-authenticated="true"]) .customer-shell {
  flex: 1;
  width: min(calc(100% - 2rem), 65rem);
  min-height: 0;
}

body:not([data-order-link="true"]):not([data-portal-authenticated="true"]) .client-auth-banner {
  display: block;
  overflow: hidden;
  padding: .5rem 0;
  border-bottom: 1px solid #ffffff26;
  background: #050505b3;
}

.client-auth-banner-track,
.client-auth-banner-group,
.client-auth-banner-group > div { display: flex; align-items: center; width: max-content; }
.client-auth-banner-track { animation: client-access-marquee 26s linear infinite; }
.client-auth-banner-group > div { gap: 2.5rem; padding-right: 2.5rem; }
.client-auth-banner img { width: auto; height: 23px; object-fit: contain; filter: brightness(0) invert(1); opacity: .95; }
.client-auth-banner span { color: #ffffffd1; font-size: .66rem; font-weight: 300; letter-spacing: .38em; white-space: nowrap; }
@keyframes client-access-marquee { to { transform: translateX(-50%); } }

body:not([data-order-link="true"]) .portal-entry {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 23rem);
  align-items: stretch;
  min-height: 0;
  gap: clamp(.75rem, 2vw, 1.6rem);
  margin-block: auto;
  padding: clamp(.75rem, 1.6vw, 1.2rem);
  border: 1px solid #354337;
  border-radius: 1.35rem;
  background: #080a08;
  box-shadow: 0 24px 72px #0009;
}

.client-auth-story { display: grid; grid-template-rows: minmax(min-content, 1fr) auto; min-width: 0; }
.client-auth-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(.65rem, 2.3vw, 1.6rem);
  border: 1px solid #2a382c;
  border-radius: .9rem;
  background: radial-gradient(ellipse at 54% 78%, #25412a 0%, #0c170d 33%, #020402 72%);
}
.client-auth-hero::before {
  position: absolute;
  z-index: -1;
  inset: 5% -15% 0;
  content: "";
  background: repeating-radial-gradient(ellipse at 56% 120%, transparent 0 33px, #b5c7b435 34px 35px, transparent 36px 47px);
  transform: rotate(-12deg);
  mask-image: linear-gradient(transparent 10%, #000 65%, transparent);
}
.client-auth-logo { z-index: 3; width: clamp(7rem, 15vw, 11rem); height: 2.9rem; object-fit: contain; object-position: left center; }
.client-auth-products { position: relative; min-height: clamp(6.3rem, 18vw, 13.5rem); }
.client-auth-product {
  position: absolute;
  top: 50%;
  left: var(--product-left);
  width: var(--product-size);
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(var(--product-turn));
  filter: drop-shadow(0 14px 13px #000b);
}
.product-one { --product-left: 17%; --product-size: 32%; --product-turn: -13deg; }
.product-two { --product-left: 35%; --product-size: 35%; --product-turn: -5deg; }
.product-three { --product-left: 57%; --product-size: 51%; --product-turn: -16deg; }
.product-four { --product-left: 81%; --product-size: 35%; --product-turn: 14deg; }
.client-auth-intro { padding: clamp(.6rem, 2vw, 1.5rem) clamp(.35rem, 1.45vw, 1rem) .5rem; }
.client-auth-intro h1, #client-auth-qr-instructions > p {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.client-auth-intro h1 { color: #c6e6ae; }
#client-auth-qr-instructions > p { margin-top: .15rem; font-weight: 750; }
#client-auth-qr-instructions ol {
  display: grid;
  gap: .15rem;
  margin: .45rem 0 0;
  padding-inline-start: 1.4rem;
  color: #e2e9dd;
  line-height: 1.45;
}
#client-auth-qr-instructions li::marker { color: #b7df97; font-weight: 700; }

body:not([data-order-link="true"]) #access {
  display: grid;
  align-content: center;
  gap: .38rem;
  width: 100%;
  margin: 0;
  padding: clamp(.7rem, 1.35vw, 1.25rem);
  border: 1px solid #cbd6cd;
  border-radius: .9rem;
  color: #173528;
  background: #f5f8f4;
  box-shadow: none;
  text-align: center;
}

body:not([data-order-link="true"]) #access .client-auth-welcome { margin: 0 0 .55rem; color: #345449; font-size: .92rem; line-height: 1.35; }
.client-auth-qr-frame {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: min(100%, 302px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #d8e4d8;
  border-radius: .625rem;
  background: #fff;
  box-shadow: 0 8px 20px #0003;
}
.client-auth-qr-frame .client-auth-qr-loading {
  position: absolute;
  border-radius: inherit;
}
.client-auth-qr-loading[hidden] { display: none; }
.client-auth-qr-frame canvas {
  /* The QR renderer sets a 300px square inline. Fit it without cropping its white margin. */
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
body:not([data-order-link="true"]) #access #client-auth-qr-status {
  max-width: none;
  margin: .38rem auto 0;
  color: #315b43;
  font-size: .83rem;
  font-weight: 600;
}
body:not([data-order-link="true"]) .client-auth-actions { display: flex; gap: .45rem; }
body:not([data-order-link="true"]) .client-auth-actions :is(#open-access, #client-auth-passkey) {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: .25rem 0 0;
  padding: .55rem .35rem;
  line-height: 1.2;
}
body:not([data-order-link="true"]) #open-access { color: #285f43; border-color: #285f43; background: #fff; }
body:not([data-order-link="true"]) #open-access:hover:enabled { color: #fff; background: #254432; }
body:not([data-order-link="true"]) #access .portal-help { justify-content: center; min-height: 28px; font-size: .75rem; }

#client-auth-options {
  display: flex;
  justify-content: center;
}
#client-auth-options a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .5rem;
  color: #285f43;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .22em;
}
body[data-portal-authenticated="true"] #client-auth-options { display: none; }
.client-auth-account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; }
.client-auth-account-actions button { margin: 0; }

body:not([data-order-link="true"]):not([data-portal-authenticated="true"]) .portal-footer {
  justify-content: flex-start;
  flex-shrink: 0;
  min-height: 44px;
  padding-block: 0 env(safe-area-inset-bottom, 0px);
  border: 0;
  color: rgb(255 255 255 / 65%);
  font: 400 .58rem / 1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .16em;
  text-align: start;
}
.portal-footer a { display: inline; min-height: 0; text-decoration: underline; text-underline-offset: .16em; }

body:not([data-order-link="true"]):not([data-portal-authenticated="true"]) .portal-footer
  :is(.nuevita-footer-items, .nuevita-footer-social-policy, .nuevita-footer-privacy, .nuevita-social-link, .nuevita-social-inactive) {
  align-items: flex-end;
}

body:not([data-order-link="true"]):not([data-portal-authenticated="true"]) .portal-footer
  :is(.nuevita-footer-copyright, .nuevita-footer-privacy, .nuevita-social-link, .nuevita-social-inactive) {
  padding-block-end: 4px;
}

body:not([data-order-link="true"]):not([data-portal-authenticated="true"]) .portal-footer
  a:focus-visible { outline-offset: -2px; }

#client-auth-enrollment {
  box-sizing: border-box;
  width: min(calc(100% - 1.5rem), 52rem);
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  color: #f4f8ef;
  background: #101b16;
}
#client-auth-enrollment::backdrop {
  background: radial-gradient(ellipse at 50% 45%, #14251af2, #050806fd 75%);
}

.client-auth-phone-page { height: 100%; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #f4f6ed; background: #070a07; }
.client-auth-phone-page body { display: grid; align-content: center; gap: 1.5rem; box-sizing: border-box; min-height: 100dvh; margin: 0; padding: 1rem; background: radial-gradient(ellipse at 27% 36%, #142517, #070a07 60%, #000); }
#customer-phone-approval {
  box-sizing: border-box;
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid #354337;
  border-radius: 1.35rem;
  background: #080a08;
  box-shadow: 0 24px 72px #0009;
}
#customer-phone-approval h1 { margin: .75rem 0; font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.18; }
#customer-phone-approval img { width: min(100%, 11rem); height: auto; }
#customer-phone-approval p { color: #e2e9dd; line-height: 1.5; }
#client-auth-phone-approve {
  min-height: 44px;
  padding: .55rem .85rem;
  border: 1px solid #c6e6ae;
  border-radius: .65rem;
  color: #173528;
  background: #c6e6ae;
  font: 650 .95rem / 1.3 system-ui, sans-serif;
  cursor: pointer;
}
#client-auth-phone-setup { display: flex; align-items: center; margin-top: .5rem; min-height: 44px; color: #c6e6ae; }
#client-auth-phone-setup[hidden] { display: none; }
.client-auth-phone-page footer { width: min(100%, 28rem); margin: 0 auto; color: rgb(255 255 255 / 65%); font-size: .58rem; letter-spacing: .16em; }
.client-auth-phone-page footer a { color: inherit; text-underline-offset: .16em; }
.client-auth-phone-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.client-auth-phone-page :focus-visible { outline: 2px solid #c6e6ae; outline-offset: 3px; }

@media (max-height: 680px) and (min-width: 721px) {
  body:not([data-order-link="true"]) .portal-entry { padding-block: .55rem; }
  body:not([data-order-link="true"]) #access { padding-block: .55rem; }
  .client-auth-products { min-height: clamp(4.4rem, 20vh, 9rem); }
  .client-auth-intro { padding-top: .55rem; }
  .client-auth-qr-frame { width: min(100%, clamp(10rem, 42vh, 17.5rem)); }
}

@media (max-width: 720px) {
  body:not([data-order-link="true"]) .portal-entry { grid-template-columns: minmax(0, 1fr); margin-block: 1rem 0; }
  .client-auth-hero { padding: .55rem .7rem; }
  .client-auth-products { min-height: min(27vw, 7.5rem); }
  .client-auth-logo { height: 2.25rem; }
  .client-auth-intro { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .client-auth-banner-track { animation: none; }
}

/* Browser access uses the same product display and card proportions as NueSuite. */
body.client-auth-enhanced:not([data-portal-authenticated="true"]) .customer-shell {
  --qr-screen-padding: clamp(.75rem, 3vw, 2.25rem);
  width: min(calc(100% - 2 * var(--qr-screen-padding)), 82rem);
}

body.client-auth-enhanced .portal-entry {
  --qr-column-gap: clamp(1rem, 2.5vw, 2.5rem);
  --qr-card-padding: clamp(.8rem, 2vw, 1.65rem);
  --qr-card-block-padding: var(--qr-card-padding);
  --qr-title-reference-size: clamp(1.78rem, 3.8vw, 3.35rem);
  --qr-product-scale: 1.2;
  --qr-reference-card-width: min(calc(100vw - 2 * var(--qr-screen-padding)), 80rem);
  --qr-reference-card-height: clamp(20.75rem, calc(85dvh - 8.8rem), 46.5rem);
  --qr-reference-scene-width: calc(var(--qr-reference-card-width) - 22rem - clamp(.75rem, 2vw, 2rem) - 2 * var(--qr-card-padding) - 2px);
  --qr-reference-scene-height: calc(var(--qr-reference-card-height) - 1.06 * var(--qr-title-reference-size) - 2 * var(--qr-card-block-padding) - .25rem - 2px);
  --qr-reference-width: min(var(--qr-reference-scene-width), calc(1.15 * var(--qr-reference-scene-height)), 51vw, 44rem);
  grid-template-columns: minmax(0, 1fr) clamp(14.5rem, 26vw, 22rem);
  min-block-size: clamp(20.75rem, calc(86dvh - 4.75rem), 49rem);
  gap: var(--qr-column-gap);
  margin-block: auto;
  padding: var(--qr-card-block-padding) var(--qr-card-padding);
  border-color: #45624b;
  background: radial-gradient(ellipse at 35% 50%, #97d67130, transparent 64%),
    linear-gradient(145deg, #192c1e, #0b150f 76%);
}

.client-auth-enhanced .portal-entry::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 35% 53%, transparent 0 2rem,
    #b4d9ad1b 2.05rem 2.12rem, transparent 2.2rem 3rem);
  mask-image: linear-gradient(110deg, #000, #0008 58%, transparent 83%);
  pointer-events: none;
  content: "";
}

.client-auth-enhanced .client-auth-story { grid-template-rows: minmax(0, 1fr); }
.client-auth-enhanced .client-auth-hero {
  grid-template-rows: auto minmax(0, 1fr);
  gap: .25rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.client-auth-enhanced .client-auth-hero::before { content: none; }
.client-auth-enhanced :is(.client-auth-logo, .client-auth-intro),
.client-auth-enhanced .client-auth-products-ready .client-auth-products,
body.client-auth-enhanced #access .client-auth-welcome { display: none; }

.client-auth-enhanced #client-access-title {
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: calc(.48 * var(--qr-title-reference-size));
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.client-auth-enhanced .client-auth-product-scene { position: relative; min-height: 10rem; }
.client-auth-enhanced .qr-products-assembly {
  width: min(100cqw, 133cqh, calc(var(--qr-product-scale) * var(--qr-reference-width)));
}

body.client-auth-enhanced #access {
  --qr-frame-width: min(100%, clamp(10.75rem, calc(72dvh - 14rem), 18.75rem));
  position: relative;
  gap: clamp(.35rem, 1.05dvh, .65rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #eff6eb;
  background: transparent;
}

.client-auth-enhanced #access::before {
  position: absolute;
  inset-block: clamp(1rem, 6dvh, 3.75rem);
  inset-inline-start: calc(var(--qr-column-gap) / -2);
  width: 1px;
  background: linear-gradient(transparent, #e2e9dd29 18% 82%, transparent);
  pointer-events: none;
  content: "";
}

.client-auth-enhanced #client-auth-qr:not([hidden]) { display: grid; gap: clamp(.45rem, 1.4dvh, .85rem); }
.client-auth-enhanced #client-auth-qr-instructions .client-auth-qr-label {
  width: var(--qr-frame-width);
  margin: 0 auto;
  color: #e2e9dd;
  font-size: clamp(.83rem, 1.3vw, .98rem);
  line-height: 1.4;
  letter-spacing: normal;
  text-align: start;
}

.client-auth-enhanced .client-auth-qr-frame {
  width: var(--qr-frame-width);
  padding: .07rem;
}

body.client-auth-enhanced #access #client-auth-qr-status { margin: 0; color: #b7cdc0; }
.client-auth-enhanced #client-auth-qr-status:not(:empty)::before {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-inline-end: .4rem;
  border-radius: 50%;
  background: #84c69b;
  content: "";
}

.client-auth-enhanced .client-auth-actions { width: var(--qr-frame-width); margin-inline: auto; }
body.client-auth-enhanced .client-auth-actions :is(#open-access, #client-auth-passkey) {
  margin: 0;
  border-color: #44624b;
  font-size: .85rem;
}

body.client-auth-enhanced #client-auth-passkey { color: #eff6eb; background: #254432; }
body.client-auth-enhanced #open-access { color: #e2e9dd; background: transparent; }
body.client-auth-enhanced #open-access:hover:enabled,
body.client-auth-enhanced #client-auth-passkey:hover:enabled { background: #365943; }
body.client-auth-enhanced #access .portal-help { min-height: 24px; color: #b7cdc0; }
.client-auth-enhanced #client-auth-options a { min-height: 36px; color: #c6e6ae; }

#client-auth-compatibility {
  width: var(--qr-frame-width, 100%);
  margin-inline: auto;
  color: inherit;
  font-size: .75rem;
  line-height: 1.4;
}

#client-auth-compatibility summary { min-height: 24px; cursor: pointer; }
#client-auth-compatibility a { color: inherit; text-decoration: underline; text-underline-offset: .16em; }
body.client-auth-enhanced #access #client-auth-compatibility { color: #b7cdc0; }
body.client-auth-enhanced #access #client-auth-compatibility p { margin: 0 auto .4rem; color: #e2e9dd; }
.client-auth-phone-page #client-auth-compatibility { margin-block-start: .35rem; color: #c6e6ae; }

@media (max-height: 670px) and (min-width: 721px) {
  body.client-auth-enhanced .portal-entry { --qr-card-block-padding: .72rem; }
  body.client-auth-enhanced #access #client-auth-qr-status { font-size: .81rem; }
}

@media (max-height: 565px) and (min-width: 721px) {
  body.client-auth-enhanced .portal-entry { --qr-card-block-padding: .55rem; }
  body.client-auth-enhanced #access { gap: .3rem; }
  body.client-auth-enhanced #access .portal-help { min-height: 20px; }
  .client-auth-enhanced #client-auth-compatibility summary { min-height: 18px; }
  .client-auth-enhanced #client-auth-options a { min-height: 32px; }
}

/* Desktop Portal entry: measure the divider from the visible product artwork. */
@media (min-width: 721px) {
  body.client-auth-enhanced:not(.client-auth-mobile):not([data-portal-authenticated="true"]) .customer-shell {
    --qr-original-card-width: min(calc(100vw - 2 * var(--qr-screen-padding)), 82rem);
    --qr-compact-card-width: calc(.7 * var(--qr-original-card-width));
    --qr-height-fit: calc(86dvh - 4.75rem);
    --qr-previous-card-height: clamp(20.75rem, var(--qr-height-fit), 49rem);
    --qr-card-height: clamp(20.75rem, var(--qr-height-fit), 52rem);
    width: var(--qr-compact-card-width);
  }
  body.client-auth-enhanced:not(.client-auth-mobile) .portal-entry {
    --qr-column-gap: 1rem;
    --qr-frame-size: clamp(12.25rem, calc(72dvh - 12.75rem), min(17rem, 28vw));
    --qr-preview-width: max(13.5rem, var(--qr-frame-size));
    --qr-stage-width: calc(var(--qr-compact-card-width) - 2 * var(--qr-card-padding) - 2px - var(--qr-preview-width) - var(--qr-column-gap));
    --qr-title-space: calc(.848 * var(--qr-title-reference-size) + 2 * var(--qr-card-block-padding) + .25rem + 2px);
    --qr-previous-stage-width: calc(var(--qr-original-card-width) - clamp(14.5rem, 26vw, 22rem) - clamp(1rem, 2.5vw, 2.5rem) - 2 * var(--qr-card-padding) - 2px);
    --qr-previous-stage-height: calc(var(--qr-previous-card-height) - var(--qr-title-space));
    --qr-previous-art-width: min(var(--qr-previous-stage-width), calc(1.33 * var(--qr-previous-stage-height)), calc(var(--qr-product-scale) * var(--qr-reference-width)));
    --qr-art-width: min(calc(1.2 * var(--qr-previous-art-width)), calc(var(--qr-stage-width) / .52), calc(1.42 * (var(--qr-card-height) - var(--qr-title-space))));
    --portal-heading-size: calc(.24 * var(--qr-title-reference-size));
    --portal-block-padding: clamp(.6rem, 1.2dvh, 1rem);
    /* The right cartridge is centered at 73.5%. Its painted right edge is
       4.05% of the original assembly width beyond that center at 150%. */
    --portal-art-right-offset: calc(.2755 * var(--qr-art-width));
    --portal-art-center: min(calc(.49 * var(--qr-stage-width)), calc(var(--qr-stage-width) - var(--portal-art-right-offset) - 1.5rem));
    grid-template-columns: minmax(0, 1fr) var(--qr-preview-width);
    padding-block: var(--portal-block-padding);
    min-block-size: max(var(--qr-card-height), min(calc(100dvh - 5.5rem), calc(1.0461 * var(--qr-art-width) + 1rem)));
  }
  .client-auth-enhanced:not(.client-auth-mobile) #client-access-title {
    font-size: var(--portal-heading-size);
  }
  .client-auth-enhanced:not(.client-auth-mobile) .client-auth-hero :is(.qr-products-scene, .client-auth-products) { overflow: visible; }
  .client-auth-enhanced:not(.client-auth-mobile) .client-auth-hero { overflow: visible; }
  .client-auth-enhanced:not(.client-auth-mobile) .qr-products-assembly {
    width: var(--qr-art-width);
    inset-inline-start: var(--portal-art-center);
    /* Reserve the title row above the tallest pen, including on short windows. */
    inset-block-start: 50%;
    --portal-product-height: calc(100cqh - .5rem);
  }
  .client-auth-enhanced:not(.client-auth-mobile) .qr-products-item {
    width: calc(1.5 * var(--qr-item-width, 33.25%));
  }
  .client-auth-enhanced:not(.client-auth-mobile) .qr-products-peptide-cartridge { --qr-item-x: 37.5%; }
  .client-auth-enhanced:not(.client-auth-mobile) .qr-products-black-pen {
    max-width: calc(var(--portal-product-height) / .98);
  }
  .client-auth-enhanced:not(.client-auth-mobile) .qr-products-gold-pen {
    max-width: calc(var(--portal-product-height) * 700 / 1244);
  }
  body.client-auth-enhanced:not(.client-auth-mobile) #access { --qr-frame-width: var(--qr-frame-size); }
  body.client-auth-enhanced:not(.client-auth-mobile) #access::before {
    /* Average the painted product edge and the QR frame edge in column coordinates. */
    inset-inline-start: calc((var(--portal-art-center) + var(--portal-art-right-offset) - var(--qr-stage-width) - var(--qr-column-gap) + (var(--qr-preview-width) - var(--qr-frame-size)) / 2) / 2 - .5px);
  }
}

@media (min-width: 721px) and (max-width: 860px) {
  body.client-auth-enhanced:not(.client-auth-mobile) .portal-entry {
    --portal-art-center: min(calc(.49 * var(--qr-stage-width) + .35rem), calc(var(--qr-stage-width) - var(--portal-art-right-offset) - 1.15rem));
  }
}

/* Mobile web uses the local passkey. The original WhatsApp action backs recovery. */
#client-auth-recovery { display: none; }

body.client-auth-mobile .customer-shell { max-width: 28rem; }
body.client-auth-mobile .portal-entry { grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
.client-auth-mobile #client-access-title { font-size: clamp(1.2rem, 5vw, 1.45rem); }
.client-auth-mobile .client-auth-product-scene { min-height: clamp(9rem, 39vw, 13rem); }
.client-auth-mobile .qr-products-assembly { width: min(112cqw, 128cqh, 18rem); }
body.client-auth-mobile #access {
  --qr-frame-width: 100%;
  width: min(100%, 21.5rem);
  justify-self: center;
  gap: .4rem;
}
.client-auth-mobile #access::before,
.client-auth-mobile #client-auth-qr,
.client-auth-mobile #client-auth-compatibility { display: none; }
.client-auth-mobile .client-auth-actions button { min-height: 44px; }
body.client-auth-mobile #client-auth-passkey { background: #c6e6ae; color: #142a18; }
body.client-auth-mobile #client-auth-passkey:hover:enabled { background: #d7efc4; }
body.client-auth-mobile #access:has(#client-auth-passkey:not([hidden])) #open-access { display: none; }
body.client-auth-mobile #access:has(#client-auth-passkey:not([hidden])) #client-auth-recovery {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  min-height: 44px;
  margin: 0;
  padding: 0 .5rem;
  border: 0;
  color: #e2e9dd;
  background: transparent;
  font: inherit;
  font-size: .84rem;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.client-auth-mobile #client-auth-options a { min-height: 44px; }

@media (max-width: 720px) {
  body.client-auth-enhanced .portal-entry { grid-template-columns: minmax(0, 1fr); min-block-size: 0; }
  .client-auth-enhanced:not(.client-auth-mobile) .client-auth-product-scene { min-height: clamp(9rem, 39vw, 13rem); }
  body.client-auth-enhanced:not(.client-auth-mobile) #access {
    --qr-frame-width: min(100%, 18rem);
    width: min(100%, 21.5rem);
  }
  .client-auth-enhanced #access::before { display: none; }
  .client-auth-enhanced #client-auth-options a { min-height: 44px; }
}

/* Keep the three marks evenly spaced inside their full-width touch targets. */
.nuevita-footer-social-policy span.nuevita-social-inactive svg { transform: none; }
.nuevita-footer-social-policy .nuevita-social-link.nuevita-social-linkedin svg { transform: translateX(-2px); }
