/* Chrome 81 supports grid gap, but does not apply gap to flex containers.
   These explicit margins restore only gaps between existing visible children. */
:root.beike-no-flex-gap .device .bottom-nav button > svg { margin-bottom: 6px; }

/* Home and the gift-card catalog. Shortcut labels already have margin-top. */
:root.beike-no-flex-gap .device .rate-row > .card-art,
:root.beike-no-flex-gap .device .sell-catalog-card > .sell-catalog-art { margin-right: 12px; }
:root.beike-no-flex-gap .device .rate-row > .rate-sell,
:root.beike-no-flex-gap .device .sell-catalog-card > .sell-catalog-action { margin-left: 10px; }
:root.beike-no-flex-gap .device .sell-search > svg,
:root.beike-no-flex-gap .device .sell-choice-search > span { margin-right: 10px; }
:root.beike-no-flex-gap .device .sell-brand-identity > .sell-brand-logo,
:root.beike-no-flex-gap .device .sell-options-trigger > .sell-options-trigger-icon,
:root.beike-no-flex-gap .device .sell-country-list button > .sell-country-code { margin-right: 10px; }
:root.beike-no-flex-gap .device .sell-country-list button > .sell-country-currency { margin-left: 8px; }
:root.beike-no-flex-gap .device .sell-options-trigger-copy > small { margin-top: 4px; }
:root.beike-no-flex-gap .device .sell-choice-tile > .sell-choice-flag,
:root.beike-no-flex-gap .device .sell-choice-type > .sell-choice-type-icon { margin-bottom: 5px; }
:root.beike-no-flex-gap .device .sell-choice-tile > strong + small { margin-top: 4px; }

/* Wallet actions and bank choices. */
:root.beike-no-flex-gap .device .wallet-action > .wallet-action-icon,
:root.beike-no-flex-gap .device .wallet-bank-provider-open > .wallet-bank-provider-icon,
:root.beike-no-flex-gap .device .wallet-bank-option > .wallet-bank-option-mark { margin-right: 12px; }
:root.beike-no-flex-gap .device .wallet-action-copy > small { margin-top: 4px; }
:root.beike-no-flex-gap .device .wallet-bank-option > .wallet-bank-option-check { margin-left: 8px; }

/* History rows use grid; column-gap works on this WebView. */
:root.beike-no-flex-gap .device .history-list .history-item { column-gap: 10px; }

/* Profile and task rows. Existing task subtitle margins remain untouched. */
:root.beike-no-flex-gap .device .profile-menu > button > .profile-menu-icon,
:root.beike-no-flex-gap .device .profile-menu-line > .profile-menu-icon,
:root.beike-no-flex-gap .device .tasks-item > .tasks-item-symbol { margin-right: 12px; }
:root.beike-no-flex-gap .device .profile-menu > button > .profile-menu-value,
:root.beike-no-flex-gap .device .profile-menu-line > .profile-menu-value,
:root.beike-no-flex-gap .device .tasks-item > .tasks-item-action { margin-left: 10px; }
:root.beike-no-flex-gap .device .profile-vip-tier-step > .profile-vip-node + b { margin-top: 8px; }
:root.beike-no-flex-gap .device .tasks-list > .tasks-item:not([hidden]) ~ .tasks-item:not([hidden]) { margin-top: 12px; }

/* Support and notifications. */
:root.beike-no-flex-gap .device .support-faq-question > .support-faq-number,
:root.beike-no-flex-gap .device .notification-item > .notification-symbol { margin-right: 12px; }
:root.beike-no-flex-gap .device .support-faq-question > .support-faq-arrow { margin-left: 8px; }
:root.beike-no-flex-gap .device .support-composer > .support-attach { margin-right: 7px; }
:root.beike-no-flex-gap .device .support-composer > .support-send { margin-left: 7px; }
:root.beike-no-flex-gap .device .notification-copy > small + strong,
:root.beike-no-flex-gap .device .notification-copy > strong + em { margin-top: 5px; }
:root.beike-no-flex-gap .device .notification-item.unread > .notification-unread-dot:not([hidden]) { margin-left: 8px; }

/* Profile forms: only visible fields participate in vertical spacing. */
:root.beike-no-flex-gap .device .profile-photo-action > strong { margin-left: 12px; }
:root.beike-no-flex-gap .device .profile-photo-action > .profile-photo-icon { flex: none; }
:root.beike-no-flex-gap .device .profile-flow-form > .profile-flow-field:not([hidden]) ~ .profile-flow-field:not([hidden]) { margin-top: 20px; }
:root.beike-no-flex-gap .device .profile-flow-field > :not([hidden]) ~ :not([hidden]) { margin-top: 8px; }
:root.beike-no-flex-gap .device .profile-flow-account > strong { margin-top: 6px; }
:root.beike-no-flex-gap .device .profile-security-id > strong,
:root.beike-no-flex-gap .device .profile-security-id > small,
:root.beike-no-flex-gap .device .profile-security-row > span:first-child > small { margin-top: 6px; }

/* Conversation entries and receipt labels have no existing margins. */
:root.beike-no-flex-gap .device .support-preview-messages > .support-preview-entry:not([hidden]) ~ .support-preview-entry:not([hidden]) { margin-top: 14px; }
:root.beike-no-flex-gap .device .support-preview-entry > .support-receipt:not([hidden]),
:root.beike-no-flex-gap .device .support-preview-entry > .support-receipt-static:not([hidden]) { margin-top: 6px; }
:root.beike-no-flex-gap .device .notifications-filters > button:not([hidden]) ~ button:not([hidden]) { margin-left: 3px; }
:root.beike-no-flex-gap .device .notifications-filters > button > span:not([hidden]) { margin-left: 6px; }

/* The country search icon is a span, and its input must be allowed to shrink. */
:root.beike-no-flex-gap .device .sell-choice-search > input { min-width: 0; }
:root.beike-no-flex-gap .device .profile-flow-form > .profile-flow-message:not(:empty) { margin-top: 20px; }
:root.beike-no-flex-gap .device .profile-flow-form > .profile-flow-field:not([hidden]) ~ .profile-flow-submit:not([hidden]) { margin-top: 20px; }

/* Shared identity and page-header rows. */
:root.beike-no-flex-gap .device .app-header > .brand-mark { margin-right: 10px; }
:root.beike-no-flex-gap .device .brand-wordmark > .invite-meta { margin-top: 4px; }
:root.beike-no-flex-gap .device .invite-meta > .copy-code { margin-left: 6px; }
:root.beike-no-flex-gap .device .ticker-open > .ticker-dot { margin-right: 9px; }
:root.beike-no-flex-gap .device .rate-copy > .rate-quote { margin-top: 4px; }
:root.beike-no-flex-gap .device .page-header-actions > button + button { margin-left: 10px; }
:root.beike-no-flex-gap .device .wallet-topbar > .wallet-back,
:root.beike-no-flex-gap .device .profile-topbar > .profile-back,
:root.beike-no-flex-gap .device .history-topbar > .history-back,
:root.beike-no-flex-gap .device .sell-preview-topbar > .sell-preview-back,
:root.beike-no-flex-gap .device .support-topbar > .support-back,
:root.beike-no-flex-gap .device .notifications-topbar > .notifications-back,
:root.beike-no-flex-gap .device .tasks-topbar > .tasks-back,
:root.beike-no-flex-gap .device .new-user-topbar > .new-user-back,
:root.beike-no-flex-gap .device .monthly-topbar > .monthly-back,
:root.beike-no-flex-gap .device .buddy-topbar > .buddy-back,
:root.beike-no-flex-gap .device .wheel-topbar > .wheel-back { margin-right: 8px; }
:root.beike-no-flex-gap .device .wallet-topbar > div > strong + span,
:root.beike-no-flex-gap .device .profile-topbar > div > strong + span,
:root.beike-no-flex-gap .device .history-topbar > div > strong + span,
:root.beike-no-flex-gap .device .sell-preview-topbar > div > strong + span,
:root.beike-no-flex-gap .device .support-topbar-title > strong + span,
:root.beike-no-flex-gap .device .notifications-topbar > div > strong + span { margin-top: 3px; }
:root.beike-no-flex-gap .device .wallet-activity > .wallet-activity-symbol { margin-right: 12px; }
:root.beike-no-flex-gap .device .wallet-activity > span > b + small { margin-top: 5px; }
