.wi-card{gap:var(--space-4);box-sizing:border-box;padding:var(--space-6);border-radius:var(--radius-lg);background-color:var(--background-surface);box-shadow:var(--wi-card-shadow,var(--shadow-sm));color:var(--text-primary);font-family:var(--font-family-sans);font-size:var(--font-size-sm);line-height:var(--font-line-height-sm);text-align:start;flex-direction:column;display:flex}.wi-card__header{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-4);flex-wrap:wrap;display:flex}.wi-card__title{font-size:var(--font-size-lg);line-height:var(--font-line-height-lg);font-weight:var(--font-weight-semibold);margin:0}.wi-card__actions{align-items:center;gap:var(--space-2);flex-wrap:wrap;margin-inline-start:auto;display:flex}

/* A title's count (built here): after its words, quieter. */
.wi-card__count {
  font-weight: var(--font-weight-medium);
  color: var(--text-tertiary);
}

/* The quiet card (built here): a hairline instead of a shadow, and rounder; as padded as any card on a desktop, less on
   a phone. */
.wi-card--quiet {
  padding: var(--space-6);
  border: var(--border-1) solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: none;
}

/* The destructive card (built here): a quiet card edged and titled in red, for what ends a record at the bottom of its Edit
   page (an advisor's leaving, an agency's close). */
.wi-card--destructive {
  border-color: var(--feedback-error-border);
}
.wi-card--destructive .wi-card__title {
  color: var(--feedback-error-fg);
}

@media (max-width: 767.98px) {
  .wi-card--quiet {
    padding: var(--space-4);
  }
  /* The flat card (built here): on a phone, a part of one flat sheet, its surface gone. */
  .wi-card--flat-on-phone {
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
}
