/* Conversations › Archive, drafts, message search, custom views, Send Later,
   Dismiss SLA (public/conversations-tools.js). */

/* ---------- archive ---------- */
.ct-archived { display: inline-flex; align-items: center; opacity: .7; cursor: default; }

/* ---------- SLA ---------- */
.ct-sla {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-bottom: 1px solid var(--line); background: #fffdf7;
}
.ct-sla:empty { display: none; }
.ct-sla-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 550;
  color: #8a5a00; background: #fff6e0; border: 1px solid #f4dca0; border-radius: 999px; padding: 2px 9px;
}
.ct-sla-chip.overdue { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.ct-sla-chip.due-soon { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.ct-sla-tag { font-weight: 750; font-size: 10px; letter-spacing: .04em; }

/* ---------- Send Later ---------- */
.ct-is-scheduled .msg-bubble { opacity: .8; border-style: dashed; }
.ct-scheduled {
  display: flex; align-items: center; gap: 8px; justify-content: flex-end;
  font-size: 11.5px; color: var(--muted); margin-top: 3px;
}
.ct-scheduled-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 550; white-space: nowrap; }

/* ---------- search ---------- */
.ct-search-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 6px; }
.ct-search-input {
  flex: 1; min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; font: inherit; font-size: 13px; background: #fff;
}
.ct-search-input:focus { outline: none; border-color: var(--brand); }
.ct-search-status { padding: 2px 14px 6px; font-size: 11.5px; color: var(--muted); }
.ct-search-group {
  padding: 10px 14px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
.ct-hit { cursor: pointer; }
.ct-hit-sub, .ct-hit-snippet { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ct-hit-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.ct-hit-ch { margin-right: 4px; color: var(--dim, #9aa5b5); }
.ct-hit-more { padding: 2px 14px 8px 58px; font-size: 11.5px; color: var(--brand); cursor: pointer; }
.ct-mark { background: #fff1a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.ct-empty { padding: 28px 18px; text-align: center; font-size: 12.5px; color: var(--muted); }
.ct-empty-title { font-weight: 650; color: inherit; font-size: 13.5px; margin-bottom: 4px; }

/* "Search in this conversation..." */
.ct-thread-search {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  border-bottom: 1px solid var(--line); background: #fafbfc;
}
.ct-count { font-size: 11.5px; color: var(--muted); min-width: 44px; text-align: center; white-space: nowrap; }
.ct-hit-match .msg-bubble, .ct-hit-match.msg-sys span, .ct-hit-match .ic-note { box-shadow: 0 0 0 2px #fde68a; }
.ct-hit-on .msg-bubble, .ct-hit-on.msg-sys span, .ct-hit-on .ic-note { box-shadow: 0 0 0 2px #f59e0b; }

/* ---------- custom views: the rail and drawer are conversations-rail.css ---------- */
