.compact-shell .credit-usage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 6px;
  color: var(--ui-text, #d7dfdb);
  line-height: 1.2;
}
.credit-provider {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid var(--ui-line, #202b26);
  border-radius: 6px;
  background: var(--ui-bg, #050a08);
}
a.credit-provider {
  color: inherit;
  text-decoration: none;
}
a.credit-provider:hover {
  border-color: var(--ui-accent);
  background: var(--ui-soft);
}
a.credit-provider:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}
.credit-provider-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}
.credit-plan,
.credit-counts,
.credit-renewal {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1px 5px;
  min-width: 0;
}
.credit-provider-heading > strong {
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.credit-provider-heading .credit-unit {
  color: var(--ui-muted, #89978f);
  font-size: 10px;
  font-weight: 400;
}
.credit-percent {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.credit-source {
  color: var(--ui-muted, #89978f);
  font-size: 10px;
  font-weight: 400;
}
.credit-provider:hover .credit-source,
.credit-provider:focus-visible .credit-source {
  color: var(--ui-accent, #31c99b);
}
.credit-plan {
  color: var(--ui-muted, #89978f);
  font-size: 10px;
}
.credit-plan strong {
  color: var(--ui-text, #d7dfdb);
  font-size: 11px;
  white-space: nowrap;
}
.credit-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: end;
  align-items: baseline;
  gap: 1px 6px;
  margin-top: 1px;
  color: var(--ui-muted, #89978f);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.credit-counts {
  grid-column: 1 / -1;
}
.credit-details b {
  color: var(--ui-text, #d7dfdb);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  user-select: text;
}
.credit-cycle {
  min-width: 0;
  user-select: text;
}
.credit-days {
  align-self: end;
  justify-self: end;
  color: var(--ui-text, #d7dfdb);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.credit-track {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 2px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: var(--ui-line, #202b26);
}
progress.credit-track {
  --credit-fill: var(--ui-gold);
  appearance: none;
  accent-color: var(--credit-fill);
}
.crm-light progress.credit-track {
  --credit-fill: #926800;
}
progress.credit-track::-webkit-progress-bar {
  background: var(--ui-line, #202b26);
}
progress.credit-track::-webkit-progress-value {
  border-radius: 3px;
  background: var(--credit-fill);
}
progress.credit-track::-moz-progress-bar {
  border-radius: 3px;
  background: var(--credit-fill);
}
.credit-track-unknown {
  background: repeating-linear-gradient(90deg, var(--ui-line, #202b26) 0 5px, transparent 5px 8px);
}
.credit-load-state {
  grid-column: 1 / -1;
  color: var(--ui-muted, #89978f);
  font-size: 12px;
}
