/* OMI Credits: the balance reads as a figure, the history as a ledger. */
.credit-rules {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 2px;
}
.credit-rules li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}
.credit-rules span {
  color: var(--muted, #9aa0a6);
}
.credit-note {
  color: var(--muted, #9aa0a6);
}

.credit-balance {
  margin: 1.5rem 0;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.credit-figure {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.credit-figure strong {
  font-size: 2.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.credit-worth {
  margin: 0.4rem 0 0;
  color: var(--muted, #9aa0a6);
}

.credit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.credit-form input {
  width: 10rem;
}
.credit-code {
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
}
.credit-code strong {
  letter-spacing: 0.08em;
}

.credit-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.credit-entry {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.credit-when {
  color: var(--muted, #9aa0a6);
  font-variant-numeric: tabular-nums;
}
.credit-items {
  display: block;
  color: var(--muted, #9aa0a6);
  font-size: 0.92em;
}
.credit-delta {
  font-variant-numeric: tabular-nums;
  color: #7fd18a;
}
.credit-delta.out {
  color: var(--muted, #9aa0a6);
}
@media (max-width: 520px) {
  .credit-entry {
    grid-template-columns: 1fr auto;
  }
  .credit-when {
    grid-column: 1 / -1;
  }
}
