/* Shared mobile usability safeguards loaded after every page stylesheet. */
@media (max-width: 800px) {
    html { scroll-padding-bottom: 78px; }

    /* Prevent iOS from zooming the viewport when a form control receives focus. */
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    select,
    textarea,
    .wallet-form input,
    .wallet-form select,
    .auth-card input,
    .record-access-form input,
    .support-composer textarea,
    .support-auth-dialog input,
    .security-dialog input {
        font-size: 16px !important;
        min-height: 46px !important;
    }

    /* Main navigation already has large cells; bring secondary controls up to
       the same touch-friendly minimum without changing desktop density. */
    .topbar .brand,
    .topbar .account-button,
    .topbar .language-button,
    .back-home,
    .page-heading-actions > a,
    .page-heading-actions > button,
    .mine-logout,
    .wallet-record-link,
    .hero-actions > a,
    .guide-topic li a,
    .guide-topic > a,
    .guide-detail nav a,
    .guide-source,
    .wallet-success nav a,
    .vip-select-intro a,
    .vip-select-list button,
    .vip-upgrade-action,
    .support-suggestions button,
    .support-chat-header button,
    .support-auth-dialog button,
    .record-access-form button,
    .security-dialog button,
    .market-selector button,
    .market-periods button,
    .market-picker button,
    .intervals button,
    .locale-switcher__trigger,
    .auth-tabs button,
    .auth-submit,
    .password-field button,
    .form-options button,
    .auth-switch button,
    .primary-action,
    .text-button,
    .security-preview button {
        min-height: 46px !important;
    }

    .back-home,
    .guide-topic > a,
    .guide-detail nav a,
    .wallet-success nav a,
    .vip-select-intro a,
    .vip-upgrade-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .support-suggestions { gap: 10px; }
    .support-suggestions button { padding: 9px 13px; }
    .guide-topic li { min-height: 62px; }
    .guide-topic li a { width: 100%; }

    /* Keep the long VIP list readable while reducing unnecessary scrolling. */
    .vip-select-list article { gap: 10px; padding-top: 15px; padding-bottom: 15px; }
    .vip-select-list ul { gap: 6px; }
    .vip-select-list button { max-width: none; }
}
