/* Navigation presentation only. Page structure and transaction behaviour stay unchanged. */
.device .sell-preview-heading {
  padding: 6px 2px 10px;
}
.device .sell-preview-heading > span,
.device .sell-brand-heading > span {
  color: var(--ui-muted, #59665e);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}
.device .sell-preview-heading h2 {
  margin: 3px 0 4px;
  color: var(--ui-ink, #202b26);
  font-size: 23px;
  font-weight: 680;
  line-height: 1.14;
  letter-spacing: -.6px;
}
.device .sell-preview-heading p {
  margin: 0;
  color: var(--ui-muted, #59665e);
  font-size: 12px;
  line-height: 1.35;
}
.device .sell-brand-heading { padding: 8px 2px 12px; }
.device .sell-brand-identity { margin-top: 8px; }
.device .sell-catalog-meta { margin: 12px 2px 8px; }
.device .sell-catalog-meta strong { font-size: 15px; line-height: 1.3; }
.device .sell-catalog-meta span { font-size: 12px; line-height: 1.3; }

/* Shared secondary headers retain their established height and placement. */
.device .sell-preview-topbar strong,
.device .wallet-topbar strong,
.device .history-topbar strong,
.device .profile-topbar strong,
.device .support-topbar strong,
.device .notifications-topbar strong {
  color: var(--ui-ink, #202b26);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.2px;
}
.device .sell-preview-topbar > div > span,
.device .wallet-topbar > div > span,
.device .history-topbar > div > span,
.device .profile-topbar > div > span,
.device .support-topbar > div > span,
.device .notifications-topbar > div > span {
  color: var(--ui-muted, #59665e);
  font-size: 11px;
  line-height: 1.25;
}
.device .sell-preview-back,
.device .sell-preview-help,
.device .wallet-back,
.device .wallet-withdraw-back,
.device .wallet-bank-back,
.device .wallet-pin-back,
.device .history-back,
.device .profile-back,
.device .support-back,
.device .notifications-back {
  min-width: 44px;
  min-height: 44px;
}

/* Search and grouped rows use the same quiet surface and generous touch area. */
.device .sell-search,
.device .sell-choice-search,
.device .wallet-bank-search {
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid var(--ui-line, #dce2dc);
  border-radius: var(--ui-control-radius, 14px);
  background: var(--ui-fill, #e9ede9);
  box-shadow: none;
  color: var(--ui-ink, #202b26);
}
.device .sell-search input,
.device .sell-choice-search input,
.device .wallet-bank-search { font-size: 16px; }
.device .sell-catalog-list,
.device .sell-country-list,
.device .history-list {
  border-color: var(--ui-line, #dce2dc);
  box-shadow: none;
}
.device .sell-catalog-card {
  min-height: 68px;
  padding: 10px 12px;
  border-bottom-color: var(--ui-line, #dce2dc);
}
.device .sell-country-list button,
.device .sell-choice-type,
.device .wallet-bank-provider-open,
.device .wallet-bank-option,
.device .history-item { min-height: 44px; }
.device .sell-catalog-copy strong { color: var(--ui-ink, #202b26); line-height: 1.25; }
.device .sell-catalog-copy small { color: var(--ui-muted, #59665e); line-height: 1.35; }
.device .sell-catalog-action {
  color: var(--ui-accent, #286348);
  background: var(--ui-fill, #e9ede9);
  box-shadow: none;
}

/* Empty and loading messages remain legible on both light and dark surfaces. */
.device .sell-catalog-status,
.device .sell-no-results,
.device .wallet-bank-empty,
.device .history-empty,
.device .notifications-empty {
  color: var(--ui-muted, #59665e);
  line-height: 1.45;
}
.device .sell-catalog-status { padding: 22px 16px; box-shadow: none; }
.device .sell-catalog-status button { min-height: 44px; }
.device .sell-no-results strong,
.device .wallet-bank-empty h3,
.device .history-empty strong,
.device .notifications-empty strong { color: var(--ui-ink, #202b26); }

/* Older WebViews avoid costly blur and active-state filters. */
:root.beike-legacy-webview .device * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
:root.beike-legacy-webview .device .bottom-nav {
  background: var(--ui-surface, #ffffff);
}
:root.beike-legacy-webview .device button:active:not(:disabled) { filter: none; }

@media (max-width: 360px) {
  .device .sell-preview-heading { padding-top: 5px; padding-bottom: 9px; }
  .device .sell-preview-heading h2 { font-size: 22px; }
  .device .sell-catalog-card { padding-left: 10px; padding-right: 10px; }
  .device .sell-catalog-meta strong { font-size: 14px; }
}
/* Match the compatibility stylesheet's specificity on older WebViews. */
:root.beike-legacy-webview .device .sell-preview-heading { padding: 6px 2px 10px; }
:root.beike-legacy-webview .device .sell-preview-heading > span,
:root.beike-legacy-webview .device .sell-brand-heading > span { color: var(--ui-muted, #59665e); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
:root.beike-legacy-webview .device .sell-preview-heading h2 { margin: 3px 0 4px; color: var(--ui-ink, #202b26); font-size: 23px; font-weight: 680; line-height: 1.14; letter-spacing: -.6px; }
:root.beike-legacy-webview .device .sell-preview-heading p { margin: 0; color: var(--ui-muted, #59665e); font-size: 12px; line-height: 1.35; }
:root.beike-legacy-webview .device .sell-catalog-meta strong { font-size: 15px; line-height: 1.3; }
:root.beike-legacy-webview .device .sell-catalog-meta span { font-size: 12px; line-height: 1.3; }
:root.beike-legacy-webview .device .sell-catalog-list { border-color: var(--ui-line, #dce2dc); box-shadow: none; }
:root.beike-legacy-webview .device .sell-search,
:root.beike-legacy-webview .device .sell-choice-search,
:root.beike-legacy-webview .device .wallet-bank-search { min-height: 48px; border: 1px solid var(--ui-line, #dce2dc); border-radius: var(--ui-control-radius, 14px); background: var(--ui-fill, #e9ede9); box-shadow: none; color: var(--ui-ink, #202b26); }
:root.beike-legacy-webview .device .sell-preview-topbar strong,
:root.beike-legacy-webview .device .wallet-topbar strong,
:root.beike-legacy-webview .device .history-topbar strong,
:root.beike-legacy-webview .device .profile-topbar strong,
:root.beike-legacy-webview .device .support-topbar strong,
:root.beike-legacy-webview .device .notifications-topbar strong { color: var(--ui-ink, #202b26); font-size: 16px; font-weight: 650; line-height: 1.2; letter-spacing: -.2px; }
@media (max-width: 360px) {
  :root.beike-legacy-webview .device .sell-preview-heading { padding-top: 5px; padding-bottom: 9px; }
  :root.beike-legacy-webview .device .sell-preview-heading h2 { font-size: 22px; }
  :root.beike-legacy-webview .device .sell-catalog-meta strong { font-size: 14px; }
}
:root.beike-legacy-webview .device .sell-catalog-copy strong { color: var(--ui-ink, #202b26); line-height: 1.25; }
:root.beike-legacy-webview .device .sell-catalog-copy small { color: var(--ui-muted, #59665e); line-height: 1.35; }
:root.beike-legacy-webview .device .sell-catalog-action { color: var(--ui-accent, #286348); background: var(--ui-fill, #e9ede9); box-shadow: none; }
:root.beike-legacy-webview .device .sell-country-list button,
:root.beike-legacy-webview .device .sell-choice-type,
:root.beike-legacy-webview .device .wallet-bank-provider-open,
:root.beike-legacy-webview .device .wallet-bank-option,
:root.beike-legacy-webview .device .history-item { min-height: 44px; }
/* A single small logo keeps brand rows clear on older WebViews. */
.device .sell-catalog-art,
:root.beike-legacy-webview .device .sell-catalog-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 12px;
}
.device .sell-catalog-art .sell-card-logo,
:root.beike-legacy-webview .device .sell-catalog-art .sell-card-logo {
  position: relative;
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}
.device .sell-catalog-art .sell-logo-fallback,
:root.beike-legacy-webview .device .sell-catalog-art .sell-logo-fallback {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.device .sell-logo-fallback[hidden] { display: none !important; }
