: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;
}

[data-message-role=user] {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: size(2);

  .llm__text {
    border-radius: 12px !important;
    border: 1px solid rgba(237, 237, 237, 0.30) !important;
    background: linear-gradient(310deg, #1F3664 10.25%, rgba(31, 54, 100, 0.30) 83.59%) !important;
    box-shadow: 0 13.333px 13.333px 0 rgba(35, 55, 128, 0.01) !important;
    padding: 24px !important;

    .llm__text-body {
      color: var(--llm-color-custom-white) !important;
      font-family: var(--llm-font-secondary) !important;
      font-size: 24px !important;
    }
  }

}

.llm__disclaimer {
  color: var(--llm-color-custom-white) !important;
  font-family: var(--llm-font-secondary) !important;
  font-size: 14px !important;
  padding-top: 12px;

  svg {
    fill: var(--llm-color-custom-white) !important;
    color: var(--llm-color-custom-white) !important;
  }
}

.llm__feedback__title {
  color: var(--llm-color-custom-white) !important;
}

[data-message-role=assistant] {
  /* position: relative;
  display: flex;
  flex-direction: column;
  row-gap: size(2); */

  .llm__text {
    visibility: visible;

    .llm__text-body,
    .llm__text-body p {
      color: var(--llm-color-custom-white) !important;
      font-family: var(--llm-font-secondary) !important;
      font-size: 24px !important;
    }
  }
}

:where([data-chunk-type=customCard]),
:where([data-chunk-type=customCardGroup]) {
  /* margin-top: size(8); */
}