.ellen-chat-ui {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 420px;
}

.ellen-chat-banner {
  font-size: 0.9rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--accent, #3b82f6);
  background: rgba(59, 130, 246, 0.06);
}

.ellen-chat-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.5rem;
  max-height: 52vh;
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  background: var(--surface-2, rgba(0, 0, 0, 0.15));
}

.ellen-chat-bubble {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.ellen-chat-user {
  align-self: flex-end;
  background: var(--accent, #2563eb);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ellen-chat-assistant {
  align-self: flex-start;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-bottom-left-radius: 4px;
}

.ellen-chat-error {
  align-self: center;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.ellen-chat-typing {
  opacity: 0.75;
  font-style: italic;
}

.ellen-chat-compose {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ellen-chat-input {
  width: 100%;
  resize: vertical;
  min-height: 72px;
}

.ellen-chat-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ellen-chat-tech {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.ellen-chat-tech pre {
  max-height: 120px;
  overflow: auto;
  font-size: 0.75rem;
}
