#clapgen-auth-dialog {
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 48px));
  height: min(820px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #111213;
  color: #f5f5f5;
  box-shadow: 0 32px 100px #0007;
}
#clapgen-auth-dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
#clapgen-auth-dialog iframe { display: block; width: 100%; height: 100%; border: 0; background: #111213; }
#clapgen-auth-dialog[data-ready="false"] iframe { visibility: hidden; }
#clapgen-auth-dialog [hidden] { display: none !important; }
#clapgen-auth-dialog .auth-overlay-loading,
#clapgen-auth-dialog .auth-overlay-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px; text-align: center; font-size: 14px; }
#clapgen-auth-dialog .auth-overlay-error a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
#clapgen-auth-dialog .auth-overlay-spinner { width: 24px; height: 24px; border: 2px solid #ffffff40; border-top-color: #fff; border-radius: 50%; animation: auth-overlay-spin 1s linear infinite; }
#clapgen-auth-dialog .auth-overlay-close { position: absolute; z-index: 2; top: 24px; right: 24px; width: 32px; height: 32px; padding: 0; border: 1px solid #ffffff18; border-radius: 50%; background: #222; color: #fff; font-size: 22px; cursor: pointer; }
@keyframes auth-overlay-spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  #clapgen-auth-dialog { width: calc(100vw - 20px); height: calc(100dvh - 20px); border-radius: 23px; }
}
@media (prefers-reduced-motion: reduce) { #clapgen-auth-dialog .auth-overlay-spinner { animation: none; } }
