/**
 * Four facts about the account, drawn as the design's quartered panel.
 *
 * A grid of two rather than a row of four: at the measure this card sits in, four columns give each
 * number about eleven characters, and "Member since" wraps to two lines in every one of them. The
 * right-hand and bottom rules are drawn per-cell and cancelled at the edges, so the panel closes
 * against the card's own border rather than doubling it.
 */
.account-usage {
  display: flex;
  flex-direction: column;
}

.account-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-usage-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 18px;
  min-width: 0;
  border-right: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
}

.account-usage-stat:nth-child(2n) {
  border-right: none;
}

.account-usage-stat:nth-last-child(-n + 2) {
  border-bottom: none;
}

.account-usage-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--account-dim, var(--text2));
}

.account-usage-value {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.account-usage-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text2);
  text-wrap: pretty;
}

.account-usage-note:empty {
  display: none;
}

@media (max-width: 520px) {
  .account-usage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-usage-stat {
    border-right: none;
  }

  .account-usage-stat:nth-last-child(-n + 2):not(:last-child) {
    border-bottom: 1px solid var(--light);
  }
}
