#credit-sheet {
  width: min(660px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #474d42;
  border-radius: 18px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 80px #0008;
}
#credit-sheet::backdrop { background: rgb(5 7 9 / 74%); }
#credit-sheet .credit-card {
  gap: 18px;
  margin: 0;
  padding: clamp(20px, 4vw, 32px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#credit-sheet .credit-card header {
  padding: 0 52px 20px 0;
  border-bottom: 1px solid var(--line);
}
#credit-sheet .credit-card header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
#credit-sheet #credits-refresh { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
#credit-sheet .credit-sheet-close {
  position: absolute;
  top: clamp(14px, 3vw, 24px);
  right: clamp(14px, 3vw, 24px);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface2);
  color: var(--text);
  font: 500 1.5rem/1 sans-serif;
  cursor: pointer;
}
#credit-sheet .credit-sheet-close:hover { border-color: var(--accent); }
#credit-sheet #credits-buy { width: 100%; }
@media (max-width: 570px) {
  #credit-sheet { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  #credit-sheet .credit-card { padding: 18px; }
  #credit-sheet .credit-card header { align-items: flex-start; }
}
