@layer components {
  .dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-block-end: 3rem;
  }

  .dashboard__row-link {
    align-items: center;
    color: inherit;
    display: flex;
    flex: 1;
    gap: 1rem;
    justify-content: space-between;
    min-inline-size: 0;
    text-decoration: none;
  }

  .dashboard__row-names {
    display: flex;
    flex-direction: column;
  }

  .dashboard__badge {
    background: var(--color-brand-tint);
    border-radius: var(--radius-pill);
    color: var(--color-brand);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.125rem 0.5rem;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .dashboard__row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    inline-size: 100%;
  }

  .dashboard__empty-title {
    color: var(--color-ink);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem;
  }

  .dashboard__cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;

    @media (width >= 768px) {
      grid-template-columns: 1fr 1fr;
    }
  }

  .dashboard__card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    .account-card__subtitle {
      margin-block-end: 0.5rem;
    }

    /* The start button is a `button_to` form; with the form out of the way,
       its button takes the card's width the way a lone link would. */
    > form {
      display: contents;
    }
  }
}
