.chat-msg-body :is(.chat-md-table-scroll, .oui-table-scroll) {
  scrollbar-width: none;
}
.chat-msg-body :is(.chat-md-table-scroll, .oui-table-scroll)::-webkit-scrollbar {
  display: none;
}

/* Both gutters scroll with the table so each end lines up with the message. */
.chat-messages .chat-msg-assistant > .chat-msg-body > .oui-table-wrap {
  inline-size: calc(100% + var(--composer-content-inset));
  max-inline-size: none;
}
.chat-messages .chat-msg-assistant > .chat-msg-body > .oui-table-wrap > .oui-table-scroll,
.chat-messages .chat-msg-assistant > .chat-msg-body > .chat-md-part > .chat-md-table-scroll {
  --table-edge-fade: clamp(10px, var(--composer-content-inset), 24px);
  max-inline-size: none;
  margin-inline-start: calc(-1 * var(--composer-content-inset));
  padding-inline: var(--composer-content-inset);
  background: none;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--table-edge-fade),
    #000 calc(100% - var(--table-edge-fade)),
    transparent
  );
}
.chat-messages .chat-msg-assistant > .chat-msg-body > .oui-table-wrap > .oui-table-scroll {
  inline-size: calc(100% + var(--composer-content-inset));
}
.chat-messages .chat-msg-assistant > .chat-msg-body > .chat-md-part > .chat-md-table-scroll {
  inline-size: calc(100% + 2 * var(--composer-content-inset));
}
.chat-messages .chat-msg-assistant > .chat-msg-body > .oui-table-wrap > .oui-table-scroll > table,
.chat-messages .chat-msg-assistant > .chat-msg-body > .chat-md-part > .chat-md-table-scroll > table {
  background: rgba(255, 255, 255, 0.04);
  clip-path: inset(0 round 12px);
}
