@layer components {
  /* ═══════════════════════════════════════════════════════════════════════════
     Insights Page
     ═══════════════════════════════════════════════════════════════════════════ */

  .insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .insight-card {
    background: var(--color-card);
    border: 1px solid var(--color-ink-lightest);
    border-radius: 12px;
    padding: 1rem 1.25rem;
  }

  .insight-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }

  .insight-card__workspace {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
  }

  .insight-card__date {
    font-size: 0.75rem;
    color: var(--color-ink-light);
  }

  .insight-card__content {
    background: oklch(97% 0.02 85);
    border: 1px solid oklch(90% 0.05 85);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
  }

  .insight-card__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: oklch(55% 0.12 85);
    margin-bottom: 0.4rem;
  }

  .insight-card__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: oklch(30% 0.03 85);
    margin: 0;
  }

  .insight-card__entry-preview {
    font-size: 0.8rem;
    color: var(--color-ink-medium);
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--color-ink-lightest);
  }

  .insight-card__entry-label {
    font-weight: 500;
    color: var(--color-ink-light);
  }

  .insight-card__entry-text {
    font-style: italic;
  }

  .insight-card__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .insight-card__promoted-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: oklch(50% 0.15 145);
    background: oklch(95% 0.03 145);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
  }

  .insight-card__promoted-badge svg {
    color: oklch(50% 0.15 145);
  }

  /* Empty state */
  .empty-state {
    text-align: center;
    padding: 3rem 1rem;
  }

  .empty-state__icon {
    color: var(--color-ink-lighter);
    margin-bottom: 1rem;
  }

  .empty-state__icon svg {
    display: inline-block;
  }

  .empty-state__text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-ink-dark);
    margin: 0 0 0.5rem;
  }

  .empty-state__hint {
    font-size: 0.875rem;
    color: var(--color-ink-light);
    margin: 0;
  }
}
