/* Pearls & Palms desktop auth: real geometry, no scaled scroll container.
   Mobile R6.10 presentation and all authentication authorities are preserved. */
@media (min-width: 821px) {
  #hhAuthR2.hh-auth-r2-overlay {
    align-items: flex-start !important;
    justify-content: flex-end !important;
    padding: 12px !important;
  }
  #hhAuthR2 > .hh-auth-r2-dialog.hh-auth-brand-r68-shell {
    width: min(420px, calc(100vw - 24px)) !important;
    max-width: 420px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    margin: 0 !important;
    transform: none !important;
    animation: none !important;
    border-radius: 22px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }
  #hhAuthR2 .hh-auth-r2-main {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  #hhAuthR2 .hh-auth-r2-card {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px !important;
  }
  #hhAuthR2 .hh-auth-brand-r6-header {
    margin: 0 0 12px !important;
    padding: 0 36px 0 0 !important;
  }
  #hhAuthR2 .hh-auth-brand-r6-live { min-height: 38px !important; }
  #hhAuthR2 .hh-auth-brand-r6-live > * { transform: none !important; }
  #hhAuthR2 .hh-auth-brand-r6-rule { margin-top: 8px !important; }
  #hhAuthR2 .hh-auth-r2-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
  }
  #hhAuthR2 .hh-auth-r2-head { margin-bottom: 10px !important; }
  #hhAuthR2 .hh-auth-r2-head h2 { font-size: 27px !important; margin: 0 !important; }
  #hhAuthR2 .hh-auth-r2-head p { margin: 5px 0 0 !important; font-size: 12px !important; }
  #hhAuthR2 .hh-auth-r2-tabs { margin-bottom: 8px !important; }
  #hhAuthR2 .hh-auth-r2-tab { min-height: 34px !important; }
  #hhAuthR2 .hh-auth-r5-provider-intro { margin: 8px 0 !important; font-size: 11px !important; }
  #hhAuthR2 .hh-auth-r2-providers {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  #hhAuthR2 .hh-auth-r2-providers.hh-auth-r5-none { display: none !important; }
  #hhAuthR2 .hh-auth-r2-providers [hidden] { display: none !important; }
  #hhAuthR2 .hh-auth-r2-provider {
    min-width: 0 !important;
    min-height: 44px !important;
    height: 48px !important;
    padding: 6px 9px !important;
    gap: 7px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }
  #hhAuthR2 .hh-auth-r2-provider > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  #hhAuthR2 .hh-auth-r6-extra { margin: 8px 0 0 !important; }
  #hhAuthR2 .hh-auth-r6-extra button { min-height: 44px !important; height: 44px !important; }
  #hhAuthR2 .hh-auth-r2-divider { margin: 10px 0 !important; }
  #hhAuthR2 .hh-auth-r2-email-toggle,
  #hhAuthR2 .hh-auth-r2-action { height: 44px !important; min-height: 44px !important; }
  #hhAuthR2 .hh-auth-r2-foot { margin: 10px 0 0 !important; font-size: 11px !important; }
  #hhAuthR2 .hh-auth-r2-note { margin-top: 8px !important; padding: 8px 10px !important; font-size: 11px !important; }
  #hhAuthR2 .hh-auth-r2-form:has(#hhAuthTwoFactor) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }
  #hhAuthR2 .hh-auth-r2-form:has(#hhAuthTwoFactor) .hh-auth-r2-action { align-self: end; }
  #hhAuthR2 .hh-auth-r2-field input { min-height: 44px !important; height: 44px !important; font-size: 14px !important; padding: 0 10px !important; }
  #hhAuthR2.hh-auth-brand-r69-email-open:has(#hhAuthTwoFactor) .hh-auth-r2-note,
  #hhAuthR2.hh-auth-brand-r69-email-open:has(#hhAuthTwoFactor) .hh-auth-r5-provider-intro { display: none !important; }
  #hhAuthR2 .hh-auth-r2-email-toggle[hidden] { display: none !important; }
  #hhAuthR2 [data-hh-email-form][hidden] { display: none !important; }
  #hhAuthR2 :focus-visible { outline: 3px solid #b48632 !important; outline-offset: 2px; }
}
