.messages-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.messages-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.messages-back {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-thread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
}

.thread-main {
  flex: 1;
  min-width: 0;
}

.thread-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.thread-preview {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-meta {
  text-align: right;
  font-size: 12px;
  color: #999;
}

.thread-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
}

.thread-unread-count {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
}
