/* ============================================
   inbox-list.css — Conversation list search field + row styling.
   Identical on phone and desktop (no media query) — see inbox/index.js's
   _renderSplitLayout()/_renderConvoList(). The chat thread itself, the
   empty state (_showInboxEmptyState), and desktop's active/hover row look
   are untouched — see inbox.css.
   ============================================ */

/* ---- Header / search field (no divider under it, either platform) ---- */
.inbox-header {
  border-bottom: none;
}

.inbox-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.inbox-search-input {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  border: none;
  background: #f1f1f4;
  border-radius: 999px;
  padding: 0 40px 0 16px;
  outline: none;
  font-family: inherit;
  color: var(--color-text-primary);
}

.inbox-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
}

.inbox-search-clear svg {
  width: 16px;
  height: 16px;
}

/* ---- Conversation rows ---- */
.inbox-avatar {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

/* Ring used to be the unread signal; a dot (below) replaces it. */
.inbox-avatar.unread {
  outline: none;
  outline-offset: 0;
}

.inbox-convo {
  padding: 11px 16px;
  gap: 12px;
  border-bottom: none;
}

.inbox-convo-name {
  font-size: 16px;
  font-weight: 400;
}

.inbox-convo.unread .inbox-convo-name {
  font-weight: 700;
}

.inbox-convo-preview-row {
  display: flex;
  align-items: baseline;
  min-width: 0;
}

.inbox-convo-preview {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  color: #6b6b78;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Same line as the preview, but never truncates — only the preview text
   shrinks/ellipsizes to make room for it. */
.inbox-convo-time-suffix {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 400;
  color: #6b6b78;
  white-space: nowrap;
}

.inbox-convo.unread .inbox-convo-preview,
.inbox-convo.unread .inbox-convo-time-suffix {
  font-weight: 700;
  color: #1a1a1a;
}

.inbox-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6630d1;
  flex-shrink: 0;
}

/* ---- Message search results (People / Messages sections) ---- */
.inbox-search-section-label {
  padding: 14px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #9a9aa8;
}

.inbox-search-no-results {
  text-align: center;
  font-size: 14px;
  color: #8a8a99;
  padding: 32px 16px;
}

.inbox-search-highlight {
  background: #efe7ff;
  color: #6630d1;
  font-weight: 700;
}
