/* Text controls must size to their labels. Icon-only controls keep square targets.
   Scoped selectors deliberately exclude payment submits, token cards and bottom nav. */
#app .wallet-page .asset-panel-head {
  gap: 12px;
  flex-wrap: wrap;
}
#app .wallet-page .asset-head-actions {
  flex: 0 0 auto;
  max-width: 100%;
  gap: 8px;
}
#app .wallet-page .asset-head-actions > button:not(.refresh-assets-btn),
#app .wallet-page .asset-detail-head > button,
#app .wallet-page .source-actions > button,
#app .wallet-page .browser-bar > button,
#app .wallet-page .tab-records > button,
#app .wallet-page .discover-tabs > button,
#app .wallet-page .coin-switch > button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  min-height: 44px;
  height: auto;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
#app .wallet-page .asset-head-actions > .refresh-assets-btn {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  flex: 0 0 44px;
}
#app .wallet-page .asset-detail-head > button { min-height: 40px; padding: 8px 14px; }
#app .wallet-page .asset-head-actions > button:not(.refresh-assets-btn),
#app .wallet-page .asset-detail-head > button { white-space: nowrap; flex-shrink: 0; }
#app .wallet-page .source-actions,
#app .wallet-page .discover-tabs,
#app .wallet-page .coin-switch { flex-wrap: wrap; }
#app .ap-home .ap-section-head { gap: 12px; flex-wrap: wrap; }
#app .ap-home .ap-section-head > button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  width: auto;
  flex: 0 0 auto;
  line-height: 1.35;
  white-space: nowrap;
}
#app .business-page .merchant-entry { flex-wrap: wrap; align-items: flex-start; }
#app .business-page .merchant-entry > div { flex: 1 1 140px; min-width: 0; }
#app .business-page .merchant-entry > button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 16px;
  max-width: 100%;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#app .mine-page .account-sync-status > button,
#app .finance-page .finance-state > button,
#app .finance-page .finance-summary p > button {
  box-sizing: border-box;
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  line-height: 1.4;
  flex-shrink: 0;
}
#app .f2c-pager > button {
  box-sizing: border-box;
  padding: 10px 12px;
  min-width: 0;
  min-height: 44px;
  line-height: 1.35;
  font-size: 12px;
}
#app .f2c-pager > button > span { min-width: 0; overflow-wrap: anywhere; }
#app .wallet-page .asset-head-actions > button:focus-visible,
#app .ap-home .ap-section-head > button:focus-visible {
  outline: 2px solid var(--ap-primary, #68153b);
  outline-offset: 3px;
}
@media (max-width: 360px) {
  #app .wallet-page .asset-head-actions > button:not(.refresh-assets-btn) { padding-inline: 12px; }
  #app .wallet-page .asset-panel-head,
  #app .ap-home .ap-section-head { gap: 8px; }
}
