/* History presentation only: no prompt slicing, submission or storage changes. */
.custom-chat-user-bubble { min-width: 0; }
.custom-chat-user-bubble .fy-task-prompt { min-width: 0; max-width: 100%; }
.custom-chat-user-bubble p.fy-task-prompt-text {
  margin: 0;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: normal;
}
.custom-chat-user-bubble p.fy-task-prompt-text[data-expanded="false"] {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden !important;
}
.custom-chat-user-bubble p.fy-task-prompt-text[data-expanded="true"] {
  display: block !important;
  -webkit-line-clamp: unset;
  overflow: visible !important;
}
.custom-chat-user-bubble .fy-task-prompt-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 5px 0 0;
  padding: 3px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #76caff;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
.custom-chat-user-bubble .fy-task-prompt-toggle:hover { background: #00a3ff14; color: #b7e4ff; }
.custom-chat-user-bubble .fy-task-prompt-toggle:focus-visible { outline: 2px solid #00a3ff; outline-offset: 2px; }
@media (max-width: 768px) {
  .custom-chat-user-bubble .fy-task-prompt-toggle { min-height: 36px; padding-inline: 8px; }
}
