/* ── TEAM CHAT ──────────────────────────────────────── */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--b1);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-channel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--tx);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-msg-avi {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}

.chat-msg-content { flex: 1; }

.chat-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.chat-msg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
}

.chat-msg-time {
  font-size: 11px;
  color: var(--t3);
}

.chat-msg-text {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.5;
  word-break: break-word;
}

.chat-input-wrap {
  padding: 12px 20px;
  border-top: 1px solid var(--b1);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--b2);
  border-radius: 20px;
  padding: 8px 16px;
  color: var(--tx);
  font-size: 14px;
  outline: none;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  line-height: 1.4;
  font-family: inherit;
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--t3); }

.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-end;
}
.chat-send-btn:hover { opacity: .85; }

/* Plan upgrade notice for team messaging */
.chat-upgrade-notice {
  text-align: center;
  padding: 40px 20px;
  color: var(--t2);
}
.chat-upgrade-notice h3 { margin: 0 0 8px; font-size: 18px; color: var(--tx); }
.chat-upgrade-notice p  { font-size: 14px; margin: 0 0 16px; }
