#mtc-ma-connections {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 1rem 0;
  padding: 12px;
  border: 1px solid #d1e5dc;
  border-radius: 10px;
  background: #f8fcfa;
  text-align: left;
}
#mtc-ma-connections .mtc-ma-connections-info { min-width: 0; }
#mtc-ma-connections h3 { margin: 0 0 5px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
#mtc-ma-connections h3 .connection-purchase-header-icon { flex-basis: 20px; width: 20px; height: 20px; border-radius: 6px; }
#mtc-ma-connections .connection-purchase-header-icon .connection-purchase-icon { width: 16px; height: 16px; }
#mtc-ma-connections .mtc-ma-connections-values {
  display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: #4b5563;
}
#mtc-ma-connections strong { color: #1f2937; }
#mtc-ma-connections strong.mtc-ma-verified { color: #15803d; }
#mtc-ma-connections > button { flex-shrink: 0; min-height: 36px; padding: 6px 12px; font-size: 12px; }
@media (max-width: 480px) {
  #mtc-ma-connections > button { max-width: 108px; }
}
/* Account extensions only. Existing Account typography, cards and controls win. */
.mtc-marketplace-account { font: inherit; color: inherit; }
.mtc-marketplace-account h3 { margin: 0 0 .5rem; }
.mtc-marketplace-account p { margin: .4rem 0; font-size: .82rem; line-height: 1.5; }
.mtc-marketplace-account .mtc-ma-muted { color: #6b7280; }
.mtc-marketplace-account label { font-size: .82rem; line-height: 1.5; }
.mtc-marketplace-account .mtc-ma-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.mtc-marketplace-account button { text-transform: none; min-height: 36px; white-space: normal; }
.mtc-marketplace-account button:disabled { opacity: .6; cursor: default; }
.mtc-marketplace-account :focus-visible { outline: 2px solid #15803d; outline-offset: 3px; }
.mtc-marketplace-account .mtc-ma-status { margin: .5rem 0; color: #4b5563; font-size: .8rem; }
.mtc-marketplace-account .mtc-ma-verified { color: #15803d; }
.mtc-marketplace-account .mtc-ma-error { color: #b91c1c; }
.mtc-marketplace-account .mtc-ma-message:empty { display: none; }
.mtc-marketplace-account .mtc-ma-code { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-top: .6rem; }
.mtc-marketplace-account .mtc-ma-code label { display: grid; gap: .25rem; flex: 1 1 130px; }
.mtc-marketplace-account .mtc-ma-code input { width: 100%; min-width: 0; max-width: 240px; font: inherit; font-size: 1rem; }
#mtc-ma-provider .mtc-ma-summary { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem 2rem; margin-bottom: .65rem; }
#mtc-ma-provider .mtc-ma-summary[hidden] { display: none; }
#mtc-ma-provider .mtc-ma-balances { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 1.5rem; margin: 0; }
#mtc-ma-provider .mtc-ma-balances dt { color: #6b7280; font-size: .78rem; }
#mtc-ma-provider .mtc-ma-balances dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
#mtc-ma-provider .mtc-ma-available dt { color: #374151; font-weight: 600; }
#mtc-ma-provider .mtc-ma-available dd { color: #15803d; font-size: 1.5rem; }
#mtc-ma-provider .mtc-ma-pro h4 { margin: 0; font-size: .9rem; }
#mtc-ma-provider .mtc-ma-pro p { margin: .15rem 0 0; }
#mtc-ma-provider .mtc-ma-purchasing { margin-top: .75rem; padding-top: .65rem; border-top: 1px solid #e5e7eb; }
#mtc-ma-provider .mtc-ma-purchasing h4 { margin: 0; font-size: .85rem; }
#mtc-ma-provider .mtc-ma-purchasing p { margin: .2rem 0 0; }
@media (max-width: 480px) {
  .mtc-marketplace-account .mtc-ma-actions { align-items: stretch; }
  #mtc-ma-provider .mtc-ma-summary { flex-direction: column; gap: .65rem; }
}
