/* Keep focused fields at an iPhone-safe text size without blocking pinch zoom. */
.device .sell-search input,
.device .sell-choice-search input,
.device .sell-code-field input,
.device .wallet-bank-full-name,
.device .wallet-bank-account-number,
.device .wallet-bank-search,
.device .profile-flow-field input,
.device #new-user-demo-value {
  font-size: 16px;
}

/* Sell needs readable rows and comfortable touch targets on a real phone. */
.sell-search { min-height: 50px; }
.sell-search svg,
.sell-search-key,
.sell-choice-search > span { pointer-events: none; }
.sell-choice-search { min-height: 44px; }
.sell-catalog-card { min-height: 72px; }
.sell-catalog-art { width: 46px; height: 46px; }
.sell-catalog-copy strong { font-size: 14px; }
.sell-catalog-copy small { font-size: 11px; line-height: 1.3; }
.sell-catalog-action { min-width: 56px; height: 34px; }
.sell-catalog-meta span { font-size: 11px; }

/* The live app's full-screen height must yield to the visible iOS keyboard. */
@media (max-width: 760px) {
  .beike-live .device.support-keyboard-open {
    height: var(--support-visible-height, 100dvh);
  }
  .device.support-keyboard-open .support-chat-heading {
    padding: 5px 3px 8px;
  }
  .device.support-keyboard-open .support-chat-heading .support-eyebrow,
  .device.support-keyboard-open .support-chat-heading p {
    display: none;
  }
  .device.support-keyboard-open .support-chat-heading h2 {
    margin: 0;
    font-size: 19px;
  }
  .device.support-keyboard-open .support-empty {
    min-height: 0;
    padding: 12px;
  }
}

/* A short entrance cue makes section changes legible without delaying taps. */
@keyframes beike-page-enter {
  from { opacity: .78; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.device > section:not([hidden]),
.sell-catalog-view:not([hidden]),
.sell-brand-view:not([hidden]) {
  animation: beike-page-enter .16s ease-out both;
}

.sell-catalog-view,
.sell-brand-view {
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 360px) {
  .sell-catalog-card { min-height: 68px; }
  .sell-catalog-art { width: 42px; height: 42px; }
  .sell-catalog-copy strong { font-size: 13px; }
  .sell-catalog-copy small { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .device > section:not([hidden]),
  .sell-catalog-view:not([hidden]),
  .sell-brand-view:not([hidden]) { animation: none; }
}
