/* Portal entry only. Keep the QR dimensions and the existing fit observer intact.
   This single multiplier reduces the displayed product assembly by exactly 15%. */
body.client-auth-enhanced:not([data-order-link="true"]):not([data-portal-authenticated="true"]) [data-nuevita-access-hero="portal"] .welcome-desktop-cluster {
  transform: translate(-50%, -50%) scale(calc(var(--product-fit, .966) * .85));
  top: calc(50% + clamp(8px, 2dvh, 24px));
}
body.client-auth-enhanced:not([data-order-link="true"]):not([data-portal-authenticated="true"]) [data-nuevita-access-hero="portal"] .client-auth-products {
  transform: translateY(clamp(8px, 2dvh, 24px)) scale(.85);
  transform-origin: center;
}
body.client-auth-enhanced:not(.client-auth-mobile):not([data-order-link="true"]):not([data-portal-authenticated="true"]) [data-nuevita-access-hero="portal"] #access {
  transform: translateY(clamp(10px, 3dvh, 32px));
}
/* The footer remains in document flow; no hidden overflow masks access controls. */
body.client-auth-enhanced:not([data-order-link="true"]):not([data-portal-authenticated="true"]) #portal-access-footer {
  align-self: end;
  margin-block-start: auto;
  margin-block-end: 0;
  padding-block-end: max(4px, env(safe-area-inset-bottom, 0px));
}
/* Keep the mobile control block's existing height, with help below registration. */
body.client-auth-enhanced.client-auth-mobile [data-nuevita-access-hero="portal"] #access #client-auth-options {
  grid-row: 3;
}
body.client-auth-enhanced.client-auth-mobile [data-nuevita-access-hero="portal"] #access #client-auth-recovery {
  grid-row: 4;
  grid-column: 1;
}
body.client-auth-enhanced.client-auth-mobile [data-nuevita-access-hero="portal"] #access .portal-help {
  grid-row: 4;
  grid-column: 2;
}

/* Additional desktop positioning is bounded by the available height and all
   visible blocks. Move the complete clipping stage; do not crop the products. */
body.client-auth-enhanced:not(.client-auth-mobile):not([data-order-link="true"]):not([data-portal-authenticated="true"]) [data-nuevita-access-hero="portal"] :is(.nuevita-product-stage, .client-auth-products, #access) {
  translate: 0 var(--portal-desktop-shift, 0px);
}
