diff --git a/src/components/ChatPanel.tsx b/src/components/ChatPanel.tsx
index d13e672..775e570 100644
--- a/src/components/ChatPanel.tsx
+++ b/src/components/ChatPanel.tsx
@@ -202,14 +202,22 @@ export default function ChatPanel({ chatId, fullscreen = false }: Props) {
{loadingOlder && (
Загрузка...
)}
- {messages.map((msg) => (
-
-
- {AUTHOR_ICON[msg.author_type] || "👤"} {msg.author_slug}
-
- {msg.content}
-
- ))}
+ {messages.map((msg) => {
+ const bgClass =
+ msg.author_type === "system"
+ ? "bg-yellow-900/30 rounded px-2 py-1"
+ : msg.author_type === "agent"
+ ? "bg-green-900/30 rounded px-2 py-1"
+ : "";
+ return (
+
+
+ {AUTHOR_ICON[msg.author_type] || "👤"} {msg.author_slug}
+
+ {msg.content}
+
+ );
+ })}
{messages.length === 0 && (
Нет сообщений
)}