/* v1.00: invite copy + register stay usable at 200%/400% zoom-equivalent
   (640/320 CSS px + deviceScaleFactor 2/4). Restates v0.95 skip offsets so
   this file can load last. This is not OS Chrome Ctrl++ chrome. */
html {
  scroll-padding-top: 94px;
}
#main-content {
  scroll-margin-top: 94px;
}
@media (max-width: 830px) {
  html {
    scroll-padding-bottom: calc(67px + env(safe-area-inset-bottom, 0px) + 16px);
  }
}

.gaf-live .staff-card,
.gaf-live .beta-notice,
.gaf-live .auth-panel,
.gaf-live .form-grid,
.gaf-live .field,
.gaf-live .hub-tabs,
.gaf-live .hub-content,
#owner-beta-mode-form,
#owner-beta-invite-form,
#auth-form {
  min-width: 0;
  max-width: 100%;
}

#beta-invite-plaintext,
#auth-invite-code {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gaf-live .hub-content .btn,
.gaf-live .staff-card .btn,
.gaf-live .beta-notice .btn,
.gaf-live .auth-panel .btn,
.gaf-live [data-act="beta-invite-copy"],
.gaf-live [data-act="beta-invite-dismiss-code"],
#auth-form button[type="submit"],
#owner-beta-invite-form button[type="submit"],
#owner-beta-mode-form button[type="submit"] {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.gaf-live .toast {
  z-index: 40;
  max-width: min(350px, calc(100vw - 24px));
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

@media (max-width: 830px) {
  .gaf-live .toast {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: calc(67px + env(safe-area-inset-bottom, 0px) + 12px);
  }
  .gaf-live .inline-buttons .btn {
    flex: 1 1 auto;
  }
  .gaf-live .staff-card,
  .gaf-live .auth-panel {
    padding: 14px;
  }
  .gaf-live #beta-invite-plaintext,
  .gaf-live #auth-invite-code {
    letter-spacing: 0;
    font-size: 16px;
  }
}

@media (max-width: 320px) {
  .gaf-live .hub-tabs .menu-btn {
    white-space: normal;
  }
}
