/* Scoped account credits; preserve existing branding and studio columns. */
.wallet-badge { border: 1px solid #e2d1f0; border-radius: 7px; background: #f5ecff; color: #8050a3; padding: 8px 10px; font-size: 11px; white-space: nowrap; }
.wallet-badge:hover { background: #ecddfa; }
#wallet-account-open { margin-top: 16px; width: 100%; padding: 10px; }
#wallet-dialog, #credit-grant-dialog { max-width: calc(100vw - 28px); max-height: calc(100dvh - 30px); overflow-y: auto; background: #fff; color: #493351; border: 1px solid #e4d7ef; }
#wallet-dialog { width: 560px; }
#credit-grant-dialog { width: 440px; }
#wallet-dialog .dialog-close, #credit-grant-dialog .dialog-close { position: sticky; top: 0; right: auto; float: right; border-radius: 50%; background: #f4eafa; color: #9271a7; }
.wallet-totals { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0; }
.wallet-totals > div { background: #faf6ff; border: 1px solid #e9ddf4; border-radius: 10px; padding: 18px; }
.wallet-totals small { display: block; color: #927aa2; font-size: 12px; }
.wallet-totals strong { display: block; margin-top: 8px; color: #734396; font-size: 28px; }
.wallet-note, #wallet-message, #credit-grant-message, #credit-grant-target { color: #806c8c; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }
.wallet-pack-link { display: inline-block; margin: 3px 0 15px; color: #8050a3; font-size: 13px; text-decoration: underline; }
.credit-entry { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #ece2f5; font-size: 12px; }
.credit-entry > div { min-width: 0; }
.credit-entry strong { font-size: 13px; color: #674876; }
.credit-entry small { display: block; margin-top: 5px; color: #9782a4; overflow-wrap: anywhere; }
.credit-entry > span { white-space: nowrap; color: #8050a3; }
#credit-more { display: block; margin: 12px auto; }
.admin-user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#credit-grant-form label { display: block; font-size: 13px; margin: 16px 0 8px; color: #79558b; }
#credit-grant-form input { width: 100%; min-height: 44px; background: #fdfaff; border: 1px solid #e1d0ed; color: #674d77; border-radius: 8px; padding: 10px; font-size: 16px; }
#credit-grant-form button { width: 100%; margin-top: 18px; justify-content: center; }
@media (max-width: 650px) {
  .sidebar .pricing-nav { display: none; }
  .topbar-right .provider-badge { display: none; }
  .topbar { height: auto; min-height: 73px; padding-top: 10px; padding-bottom: 10px; }
  .topbar-right { width: 100%; grid-template-columns: minmax(0,1fr) max-content 26px max-content; gap: 6px; }
  .wallet-badge { grid-column: 1 / -1; justify-self: start; font-size: 12px; padding: 8px 9px; }
  #wallet-dialog, #credit-grant-dialog { padding: 24px 20px; }
  .wallet-totals > div { padding: 13px; }
}
