.service-credits-main > h1 { margin-bottom: 12px; }
.service-credits-main > h1 + p { margin-top: 0; }
.service-credits-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.service-credits-heading h2 { margin-top: 0; }
.service-credits-heading p { max-width: 68ch; margin-bottom: 0; color: var(--account-muted); }
.credit-purchase-status { display: grid; gap: 8px; margin-top: 18px; padding: 16px; border-left: 3px solid var(--accent); background: var(--account-field); }
.credit-purchase-status.is-success { border-color: #218739; }
.credit-purchase-status.is-error { border-color: #c32f39; }
.credit-purchase-status.is-attention { border-color: #b86b00; }
.credit-purchase-status strong { font-size: 1.05rem; }
.credit-purchase-status p { margin: 0; }
.credit-balances { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.credit-balances div { min-width: 0; padding: 16px; border: 1px solid var(--account-border); border-radius: 9px; background: var(--account-field); }
.credit-balances dt { color: var(--account-muted); font-size: .88rem; }
.credit-balances dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 1.15rem; font-weight: 700; }
.credit-included { margin: 20px 0; }
.credit-included h3 { margin-bottom: 4px; }
.credit-included-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.credit-included-list li { padding: 14px; border: 1px solid var(--account-border); border-radius: 9px; background: var(--account-field); }
.credit-included-list strong, .credit-included-list span { display: block; }
.credit-included-list span { margin-top: 6px; color: var(--account-muted); }
.credit-actions-grid, .credit-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.credit-actions-grid form, .credit-history-grid > div { min-width: 0; padding: 18px; border: 1px solid var(--account-border); border-radius: 9px; background: var(--account-field); }
.credit-actions-grid h3, .credit-history-grid h3 { margin-top: 0; }
.credit-field-label { white-space: nowrap; }
.credit-funding-state { margin-top: 18px; padding: 14px; border-left: 3px solid var(--accent); background: var(--account-field); }
.credit-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.credit-list li { padding: 12px 0; border-bottom: 1px solid var(--account-border); overflow-wrap: anywhere; }
.credit-list li:last-child { border-bottom: 0; }
.credit-list strong, .credit-list span { display: block; }
.credit-list span { margin-top: 4px; color: var(--account-muted); font-size: .9rem; }
@media (max-width: 720px) {
  .service-credits-heading { display: block; }
  .service-credits-heading button { margin-top: 12px; }
  .credit-balances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-actions-grid, .credit-history-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .credit-balances { grid-template-columns: 1fr; } }

.credit-alert-message { padding:.8rem 1rem; border:1px solid #579bd2; border-inline-start-width:4px; border-radius:12px; background:var(--account-bg); color:var(--account-text); overflow-wrap:anywhere; }
.credit-alert-message.error { border-color:#df818b; }
