/* UI090 reading corrections; load after vnext-ui-soft.css.
   The renderer keeps raw whitespace in these spans. Display blocks provide
   the separation, so pre-wrap must not add another blank paragraph at either end. */
body.yf-ui-soft[data-yf-soft-route="home"] #home .chat-message-body .crm-formula-boundary {
  display: none;
}

/* One display region owns spacing and horizontal scrolling. The nested KaTeX
   block retains its intrinsic width without a second margin/padding/scroll box. */
body.yf-ui-soft[data-yf-soft-route="home"] #home .chat-message-body .crm-formula-display {
  margin-block: 16px;
  padding-block: 4px;
}
body.yf-ui-soft[data-yf-soft-route="home"] #home .chat-message-body .crm-formula-display > .katex-display {
  margin-block: 0;
  padding-block: 0;
  overflow-x: visible;
  overflow-y: visible;
}

/* Answers share the page canvas for every theme ID and material, including
   saved copies of presets. Palette fills still belong to the composer, dialogs
   and other existing surfaces; no palette variables are changed here. */
body.yf-ui-soft[data-yf-soft-route="home"] #home .chat-message-assistant {
  background: transparent;
}
