.messages-tabs {
  display: flex;
  gap: 4px;
  margin: 0 10px 8px;
  padding: 3px;
  border-radius: 8px;
  background: #f0f5f2;
}

.messages-tabs button {
  flex: 1;
  height: 27px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #74827a;
  font: 800 8px Manrope, sans-serif;
  cursor: pointer;
}

.messages-tabs button.active {
  background: #fff;
  color: #087b58;
  box-shadow: 0 1px 4px rgba(19, 63, 40, .08);
}

.messages-tabs b {
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  margin-left: 3px;
  padding: 0 3px;
  border-radius: 8px;
  background: #dcece4;
  color: #39725a;
  font-size: 7px;
}

.messages-tabs button.active b {
  background: #d7f2e4;
  color: #087b58;
}

/* Le fil défile seul : le composeur reste toujours disponible à l'écran. */
#messagesView.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

#messagesView .messages-shell {
  height: auto;
  min-height: 0;
  flex: 1;
}

#messagesView .messages-conversation {
  min-height: 0;
}

#messagesView .messages-composer {
  position: relative;
  z-index: 1;
  border-top: 1px solid #bfe6d2;
  background: #fff;
  box-shadow: 0 -8px 18px rgba(28, 74, 48, .06);
}

#messagesView .messages-composer-top strong {
  color: #087b58;
}

#messagesView .message-bubble.system {
  border-color: #dce4df;
  background: #eef2f0;
  color: #57665e;
}

#messagesView .message-bubble.system time {
  color: #87948d;
}

#messagesView .message-empty-context {
  max-width: 520px;
  margin: auto;
  padding: 16px 18px;
  border: 1px dashed #c8d8d0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: #516158;
  text-align: center;
}

#messagesView .message-empty-context strong,
#messagesView .message-empty-context span {
  display: block;
}

#messagesView .message-empty-context strong {
  color: #264332;
  font: 800 11px Manrope, sans-serif;
}

#messagesView .message-empty-context p {
  margin: 5px 0;
  font-size: 9px;
  line-height: 1.45;
}

#messagesView .message-empty-context span {
  color: #087b58;
  font-size: 8px;
  font-weight: 800;
}
