.chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(0, 28, 71, 0.95), rgba(4, 11, 31, 0.98));
}

.chat__input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--primary-400);
  position: sticky;
  top: 0;
  z-index: 10;
}

.chat__input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  resize: none;
}

.chat__input::placeholder {
  color: rgba(255,255,255,0.4);
}

.chat__send {
  padding: 10px 20px;
  flex-shrink: 0;
}

.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.chat__message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.chat__message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.chat__message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat__message-body {
  background: var(--primary-200);
  color: var(--primary-500);
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  max-width: 80%;
}

.chat__message-user {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-300);
  display: block;
  margin-bottom: 2px;
}

.chat__message-text {
  font-size: 14px;
  line-height: 1.4;
}

.chat__connect-status {
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
