/* Keep task failures visible even when the node parameter panel is collapsed. */
.canvas-text-node[data-run-failed="true"] {
  outline: 2px solid #f06b75;
  outline-offset: 2px;
  border-radius: 16px;
}
.canvas-text-node[data-run-failed="true"] .main-image-card,
.canvas-text-node[data-run-failed="true"] .text-node-card {
  border-color: #f06b75;
}
.canvas-node-failure {
  position: absolute;
  top: 48px;
  left: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 132px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #b94e59;
  border-radius: 10px;
  background: rgba(53, 19, 25, .96);
  color: #ffe1e4;
  box-shadow: 0 4px 16px #0004;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  cursor: text;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.canvas-node-failure > strong { color: #ff929b; font-size: 13px; }
.canvas-node-failure > span { color: inherit; font-size: inherit; }
