.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background-color: var(--color-surface-primary);
  border: 1px solid var(--color-grey-soft);
  border-radius: map.get($radius, 'md');
  flex: 1;
  min-width: 0;
  max-width: 232px;
  overflow: clip;
}

// Loading: pulse the background, not the text
.loading {
  animation: pulse-bg 1.5s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%,
  100% {
    background-color: var(--color-surface-primary);
  }
  50% {
    background-color: var(--color-grey-light);
  }
}

.header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-tertiary);

  // Scale any icon SVG to 14px regardless of its intrinsic size
  svg {
    display: block;
    width: 14px;
    height: 14px;
  }
}

.label {
  @include metadata-medium;
  line-height: 1.2;
  color: var(--color-text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.value {
  font-family: $font-family-base;
  font-size: 24px;
  font-weight: map.get($font-weights, 'medium');
  line-height: 1;
  color: var(--color-text-primary);
  text-align: right;
}
