.profile-credit-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  justify-content: stretch;
  margin-top: 8px;
  padding: 20px;
}

.profile-credit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.profile-credit-header h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.profile-credit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.profile-credit-actions .button,
.profile-credit-actions .buy-more-credits-button {
  min-height: 44px;
  margin: 0;
  white-space: normal;
  text-align: center;
}

.profile-credit-actions .akee-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.profile-credit-values {
  display: grid;
  gap: 12px;
  width: min(100%, 620px);
}

.profile-credit-values p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: var(--akee-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.profile-credit-values strong {
  color: var(--akee-ink);
  font-weight: 800;
}

#profile-course-amount,
#profile-quick-assignment-amount {
  color: var(--akee-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.profile-credit-check {
  flex: 0 0 auto;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .profile-credit-header {
    display: grid;
  }

  .profile-credit-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    margin-left: 0;
  }

  .profile-credit-values p {
    flex-wrap: wrap;
  }
}
