.static-chat-wrapper {
  display: flex;
  flex-direction: column;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.static-chat-messages {
  flex: 1;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fafafa;
}

.static-chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.static-chat-msg--bot {
  align-self: flex-start;
  background: #f0f0f0;
}

.static-chat-msg--user {
  align-self: flex-end;
  background: var(--bs-tactis-primary, #AF0061);
  color: #fff;
}

.static-chat-sender {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.static-chat-msg--user .static-chat-sender {
  color: rgba(255, 255, 255, 0.85);
}

.static-chat-msg.is-streaming .static-chat-text::after {
  content: '\25ae';
  animation: static-chat-blink 1s step-end infinite;
}

@keyframes static-chat-blink {
  50% { opacity: 0; }
}

.static-chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  background: #fff;
}

.static-chat-input {
  flex: 1;
}

.static-chat-msg p:last-child {
  margin-bottom: 0;
}

/* Sources footer */
.static-chat-sources {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #dee2e6;
  font-size: 0.85rem;
  color: #555;
}
.static-chat-sources a {
  color: var(--bs-tactis-primary, #AF0061);
}

/* Debug mode */
.static-chat-debug.active {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.static-chat-msg--debug {
  align-self: stretch;
  max-width: 100%;
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-radius: 0.4rem;
  padding: 0.6rem 0.9rem;
}

.static-chat-msg--debug .static-chat-sender {
  color: #856404;
  font-family: monospace;
}

.static-chat-debug-pre {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
}
