/* Final reviewed public-page adjustments. Load after page styles. */
/* Mobile acceptance corrections, loaded after component styles. */

.auth-brand img,
.verification-brand img,
.account img,
.sidebar footer img {
  width: auto;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

html:not([data-theme="dark"]) {
  --allow: #087653;
  --success: #087653;
  --challenge: #905700;
}
@media (max-width: 980px) {
  html:not([data-theme="dark"]) {
    --text-faint: #667085;
  }
  body dialog select,
  body dialog input:not([type="checkbox"]):not([type="radio"]),
  body textarea,
  body .auth-view input:not([type="checkbox"]) {
    min-height: 44px;
    font-size: 16px;
    max-width: 100%;
  }
  dialog footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  dialog footer button {
    min-height: 44px;
  }
  .auth-visual {
    display: none !important;
  }
  .auth-header {
    position: relative;
    height: auto;
    min-height: 64px;
    gap: 8px;
  }
  .auth-main {
    display: block;
    min-height: 0;
  }
  .auth-content {
    padding: 24px 16px 32px;
  }
  .auth-view h1 {
    font-size: 28px;
  }
  .auth-view button,
  .auth-view a {
    min-height: 44px;
  }
  .auth-view button,
  .auth-view a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .auth-view label {
    font-size: 14px;
  }
  .auth-view .field-heading {
    height: 30px;
    align-items: flex-end;
  }
  .auth-view .field-heading button {
    align-items: flex-end;
  }
  .auth-view .field-heading button,
  .auth-view .mfa-field-label {
    font-size: 13px;
  }
  body:has(.auth-shell) {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (max-width: 980px) {
  .state-action,
  .error-actions .primary-button,
  .error-actions .secondary-button {
    min-height: 44px;
  }
  .error-number {
    font-size: 80px;
  }
  .challenge-main {
    padding-top: 32px;
  }
}

@media (max-width: 980px) {
  .auth-header .header-action,
  .auth-header .language-button {
    min-height: 44px;
  }
  .request-details > .copy-button {
    flex-basis: 44px;
    width: 44px !important;
    min-height: 44px;
  }
  body:has(.invitation-table) .table-search {
    min-height: 44px;
  }
  .table-search input {
    font-size: 16px;
    min-height: 42px;
  }
  .member-row .row-actions button,
  .invitation-row .row-actions button {
    min-height: 44px;
  }
}

/* Shared request-list layout: events, overview, traffic and classified requests. */

/* Rounded upper sections share the lower section’s background at the corners. */

/* Final mobile font normalization after all component overrides. */

/* Period-only toolbars fill the available width on mobile. */

/* Heading actions use the same text size at every viewport width. */
