:where([data-message-role=user] [data-text=true]) {
  @include text(body1);
  background: var(--llm-user-background);
  color: var(--llm-user-foreground);
  border: var(--llm-user-border);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: size(3) size(4);
}

:where([data-message-role=assistant] [data-text=true]) {
  @include markdown();
  @include text(display6);

  h1,
  h2,
  p {
    &:first-child {
      @include text(display3);
    }
  }
}

:where([data-mode=chat] [data-message-role=user] [data-text=true]),
:where(.-chat [data-message-role=user] [data-text=true]) {
  align-self: flex-end;
  padding: 0.5em 0;
  padding: var(--llm-pill-padding, 8px);
  border: var(--llm-pill-border);
  border-radius: var(--llm-pill-border-radius);
  background: var(--llm-pill-background);
  color: var(--llm-pill-foreground);
  font-family: var(--llm-pill-font-family);
  text-align: right;
}
