/* Response activity reflects observed server stages, never simulated progress. */
.chat-activity {
  --activity-accent: #66e4d1;
  margin: 2px 0 15px;
  padding: 11px 13px;
  border: 1px solid rgba(105, 174, 190, .23);
  border-radius: 13px;
  background: linear-gradient(115deg, rgba(29, 60, 72, .32), rgba(17, 33, 49, .32));
  color: #dcecf2;
  font-size: 12px;
}
.chat-activity-line { display: flex; align-items: center; gap: 9px; min-width: 0; }
.chat-activity-dot {
  flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--activity-accent);
  box-shadow: 0 0 0 4px rgba(102, 228, 209, .08);
  animation: jarvis-activity-pulse 1.8s ease-in-out infinite;
}
.chat-activity-label { flex: 1; min-width: 0; line-height: 1.5; font-weight: 550; }
.chat-activity-time {
  flex-shrink: 0; color: #adc0d0; font-variant-numeric: tabular-nums;
  font-size: 11px; letter-spacing: .01em;
}
.chat-activity-details { margin: 9px 0 0 16px; }
.chat-activity-details > summary {
  display: list-item; cursor: pointer; color: #a4bfce; font-size: 11px;
  padding: 3px 0; width: fit-content;
}
.chat-activity-details > summary:focus-visible { outline: 2px solid #74e4dd; outline-offset: 4px; border-radius: 3px; }
.chat-activity-steps {
  list-style: none; margin: 8px 0 1px; padding: 0;
  display: grid; gap: 7px; max-width: 510px;
}
.chat-activity-steps li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; color: #bbcdd8; font-size: 11px; line-height: 1.5; }
.chat-activity-steps li > small { white-space: nowrap; color: #9fb4c3; font-size: 10px; }
.chat-activity-steps li[data-state="completed"] > small { color: #8bdebd; }
.chat-activity-steps li[data-state="skipped"] > small,
.chat-activity-steps li[data-state="interrupted"] > small { color: #e4c08d; }
.chat-activity-connection { display: block; margin: 9px 0 0 16px; max-width: 520px; color: #c6b38e; line-height: 1.6; font-size: 11px; }
.chat-activity[data-outcome="complete"] { background: rgba(17, 33, 43, .25); border-color: rgba(94, 142, 156, .16); }
.chat-activity[data-outcome="complete"] .chat-activity-dot { animation: none; box-shadow: none; opacity: .72; }
.chat-activity[data-outcome="stopped"] .chat-activity-dot,
.chat-activity[data-outcome="interrupted"] .chat-activity-dot { animation: none; box-shadow: none; background: #d4b78c; }
.chat-activity[data-outcome="complete"] .chat-activity-label { font-weight: 450; color: #b0c6d0; }
.markdown-body.markdown-fallback { white-space: pre-wrap; overflow-wrap: anywhere; }
.message-content.markdown-body { min-width: 0; overflow-wrap: break-word; }
.message-content.markdown-body pre { overflow-x: auto; max-width: 100%; }
.message-content.markdown-body .markdown-table { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
@keyframes jarvis-activity-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat-activity-dot { animation: none; } }
@media (max-width: 600px) {
  .chat-activity { padding: 10px; margin-bottom: 12px; border-radius: 11px; }
  .chat-activity-line { gap: 8px; }
  .chat-activity-label { font-size: 11px; }
  .chat-activity-details { margin-left: 15px; }
  .chat-activity-steps li { gap: 9px; }
}
