/* CRINEO message center — compact, content-sized chat bubbles */
#accountMessages .chat-row,
#messagesView .admin-chat-row{
  display:flex!important;
  width:100%!important;
  align-items:flex-end!important;
  margin:0 0 7px!important;
}
#accountMessages .chat-row.customer,
#messagesView .admin-chat-row.admin{justify-content:flex-end!important}
#accountMessages .chat-row.admin,
#messagesView .admin-chat-row.customer{justify-content:flex-start!important}

#accountMessages .chat-message-group{
  display:flex!important;
  flex:0 1 auto!important;
  flex-direction:column!important;
  width:fit-content!important;
  max-width:min(78%,520px)!important;
  min-width:0!important;
}
#accountMessages .chat-bubble,
#messagesView .admin-chat-message{
  display:flex!important;
  flex:0 1 auto!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  width:fit-content!important;
  max-width:100%!important;
  min-width:44px!important;
  min-height:0!important;
  height:auto!important;
  box-sizing:border-box!important;
  padding:7px 10px 5px!important;
  gap:0!important;
  overflow-wrap:anywhere!important;
}
#accountMessages .chat-row.customer .chat-bubble,
#messagesView .admin-chat-row.admin .admin-chat-message{
  border-radius:15px 15px 4px 15px!important;
}
#accountMessages .chat-row.admin .chat-bubble,
#messagesView .admin-chat-row.customer .admin-chat-message{
  border-radius:15px 15px 15px 4px!important;
}
#accountMessages .chat-message-text,
#messagesView .admin-chat-text{
  display:block!important;
  flex:0 1 auto!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  font-size:14px!important;
  line-height:1.38!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  text-align:left!important;
}
#accountMessages .message-meta-actions,
#messagesView .admin-message-meta-actions{
  display:flex!important;
  flex:0 0 auto!important;
  align-self:flex-end!important;
  align-items:center!important;
  justify-content:flex-end!important;
  width:fit-content!important;
  max-width:100%!important;
  min-height:0!important;
  margin:2px 0 0!important;
  padding:0!important;
  gap:4px!important;
  line-height:1!important;
}
#accountMessages .chat-time-outside,
#messagesView .admin-chat-time{
  display:inline-block!important;
  margin:0!important;
  padding:0!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:500!important;
  white-space:nowrap!important;
}
#accountMessages .chat-row.customer .chat-time-outside,
#messagesView .admin-chat-row.admin .admin-chat-time{color:rgba(255,255,255,.68)!important}
#accountMessages .chat-row.admin .chat-time-outside,
#messagesView .admin-chat-row.customer .admin-chat-time{color:#788397!important}
#accountMessages .chat-sender,
#messagesView .admin-chat-sender{display:none!important}
#accountMessages .message-delivery-status,
#messagesView .message-delivery-status{
  display:inline-block!important;
  font-size:11px!important;
  line-height:1!important;
  letter-spacing:-.12em!important;
}
#accountMessages .chat-bubble img,
#messagesView .admin-chat-message img{
  display:block!important;
  width:auto!important;
  max-width:min(320px,100%)!important;
  max-height:360px!important;
  margin:4px 0 0!important;
  border-radius:12px!important;
  object-fit:cover!important;
}
#accountMessages .chat-bubble video,
#messagesView .admin-chat-message video{
  display:block!important;
  width:min(320px,100%)!important;
  max-width:100%!important;
  max-height:360px!important;
  margin:4px 0 0!important;
  border-radius:12px!important;
}
#accountMessages .chat-bubble audio,
#messagesView .admin-chat-message audio{
  display:block!important;
  width:min(280px,100%)!important;
  max-width:100%!important;
  margin:4px 0 0!important;
}
.crineo-chat-day-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:13px 0 11px;
  color:#76839a;
  font-size:11px;
  font-weight:650;
  line-height:1;
}
.crineo-chat-day-divider span{
  padding:6px 10px;
  border:1px solid rgba(17,42,82,.08);
  border-radius:999px;
  background:#f2f5f9;
}
@media(max-width:640px){
  #accountMessages .chat-message-group,
  #messagesView .admin-chat-message{max-width:min(84%,380px)!important}
  #accountMessages .chat-bubble,
  #messagesView .admin-chat-message{padding:6px 9px 5px!important}
  #accountMessages .chat-message-text,
  #messagesView .admin-chat-text{font-size:14px!important;line-height:1.36!important}
  #accountMessages .chat-bubble img,
  #messagesView .admin-chat-message img,
  #accountMessages .chat-bubble video,
  #messagesView .admin-chat-message video{max-height:300px!important}
}

/* Admin inbox identity thumbnails */
#messagesView .admin-conversation-item{
  position:relative!important;
  min-height:94px!important;
  padding:13px 13px 13px 66px!important;
}
#messagesView .admin-conversation-avatar{
  position:absolute;
  left:13px;
  top:50%;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  transform:translateY(-50%);
  overflow:hidden;
  border:1px solid rgba(215,174,84,.72);
  border-radius:50%;
  background:linear-gradient(145deg,#0a2852,#1b4d85);
  color:#f3d990;
  font-size:12px;
  font-weight:800;
}
#messagesView .admin-conversation-avatar img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  background:#fff;
}
#messagesView .admin-conversation-avatar span{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
}

/* Inbox triage filters and pin controls */
#messagesView .admin-conversation-filters{
  display:flex;
  gap:8px;
  margin:10px 0 12px;
}
#messagesView .admin-conversation-filters button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:6px 13px;
  border:1px solid #dce3ed;
  border-radius:999px;
  background:#fff;
  color:#52627a;
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
#messagesView .admin-conversation-filters button[aria-pressed="true"]{
  border-color:#102f5e;
  background:#102f5e;
  color:#fff;
}
#messagesView .admin-conversation-filters button span{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:999px;
  background:#d7ae54;
  color:#10294c;
  font-size:10px;
  font-weight:850;
}
#messagesView .admin-conversation-entry{
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  gap:6px;
  align-items:stretch;
  min-width:0;
}
#messagesView .admin-conversation-item{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  min-height:88px!important;
}
#messagesView .admin-conversation-content{
  display:block;
  flex:1 1 auto;
  min-width:0;
}
#messagesView .admin-conversation-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-width:0!important;
}
#messagesView .admin-conversation-top strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#messagesView .admin-conversation-email,
#messagesView .admin-conversation-preview,
#messagesView .admin-conversation-content small{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#messagesView .admin-conversation-pin{
  display:grid;
  place-items:center;
  min-width:36px;
  padding:0;
  border:1px solid #e1e7ef;
  border-radius:12px;
  background:#fff;
  color:#7b8798;
  font-size:16px;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
#messagesView .admin-conversation-pin:hover,
#messagesView .admin-conversation-pin[aria-pressed="true"]{
  border-color:#d7ae54;
  background:#fff8e6;
  color:#987326;
}
#messagesView .admin-conversation-entry.pinned .admin-conversation-item{
  border-color:rgba(215,174,84,.55)!important;
}
#messagesView .admin-conversation-item:focus-visible,
#messagesView .admin-conversation-pin:focus-visible,
#messagesView .admin-conversation-filters button:focus-visible{
  outline:3px solid rgba(45,110,216,.28);
  outline-offset:2px;
}

/* CRINEO message composer quick replies */
#messagesView .admin-quick-replies{
  margin:12px 0 5px;
  padding:11px 12px;
  border:1px solid #e2e8f0;
  border-radius:15px;
  background:linear-gradient(135deg,#fbfcfe,#fff9e8);
}
#messagesView .admin-quick-replies-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
#messagesView .admin-quick-replies-head strong{
  color:#17345e;
  font-size:12px;
  font-weight:850;
}
#messagesView .admin-quick-replies-head span{
  color:#77849a;
  font-size:10px;
}
#messagesView .admin-quick-reply-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
#messagesView .admin-quick-reply-list button{
  min-height:32px;
  padding:6px 10px;
  border:1px solid #d9e1ec;
  border-radius:999px;
  background:#fff;
  color:#29496f;
  font:inherit;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
}
#messagesView .admin-quick-reply-list button:hover:not(:disabled){
  border-color:#c99f3e;
  background:#fff7df;
  color:#72530f;
}
#messagesView .admin-quick-reply-list button:disabled{
  opacity:.48;
  cursor:not-allowed;
}
@media(max-width:640px){
  #messagesView .admin-quick-replies{
    padding:10px;
  }
  #messagesView .admin-quick-reply-list{
    flex-wrap:wrap;
    overflow:visible;
    padding-bottom:0;
  }
  #messagesView .admin-quick-reply-list button{
    flex:0 1 auto;
    max-width:100%;
    white-space:normal;
    text-align:left;
  }
}

/* Compact, expandable customer context for the admin conversation */
#messagesView .admin-customer-context{
  margin:0 0 14px;
  border:1px solid #e1e7ef;
  border-radius:15px;
  background:linear-gradient(135deg,#fbfcfe,#fffaf0);
  overflow:hidden;
}
#messagesView .admin-customer-context summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:10px 14px;
  color:#15345f;
  cursor:pointer;
  list-style:none;
}
#messagesView .admin-customer-context summary::-webkit-details-marker{display:none}
#messagesView .admin-customer-context summary::after{
  content:"+";
  display:grid;
  place-items:center;
  flex:0 0 24px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#edf2f8;
  color:#36577f;
  font-size:17px;
  line-height:1;
  font-weight:700;
}
#messagesView .admin-customer-context[open] summary::after{content:"−"}
#messagesView .admin-customer-context summary strong{
  flex:0 0 auto;
  font-size:12px;
  font-weight:850;
}
#messagesView .admin-customer-context summary span{
  min-width:0;
  margin-left:auto;
  color:#718098;
  font-size:11px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#messagesView .admin-customer-context-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:0 12px 12px;
}
#messagesView .admin-context-field{
  display:grid;
  align-content:start;
  gap:4px;
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(219,227,238,.9);
  border-radius:11px;
  background:rgba(255,255,255,.88);
}
#messagesView .admin-context-field.wide{grid-column:1/-1}
#messagesView .admin-context-field span{
  color:#8490a2;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#messagesView .admin-context-field strong{
  color:#263c5d;
  font-size:11px;
  font-weight:700;
  line-height:1.4;
  overflow-wrap:anywhere;
}
@media(max-width:900px){
  #messagesView .admin-customer-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  #messagesView .admin-customer-context summary{padding:9px 11px}
  #messagesView .admin-customer-context summary strong{font-size:11px}
  #messagesView .admin-customer-context-grid{gap:6px;padding:0 9px 9px}
  #messagesView .admin-context-field{padding:8px}
  #messagesView .admin-context-field.wide{grid-column:1/-1}
}


/* Admin conversation follow-up tracking */
#messagesView .admin-followup{padding:13px 12px 12px;border-top:1px solid #e5eaf1;background:rgba(248,250,253,.78)}
#messagesView .admin-followup-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#15345f;font-size:12px}
#messagesView .admin-followup-heading span{color:#7b8799;font-size:11px;font-weight:600;text-align:right}
#messagesView .admin-followup-controls{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto;gap:10px;align-items:end}
#messagesView .admin-followup-controls label{display:grid;gap:5px;min-width:0;color:#56657a;font-size:10px;font-weight:800;letter-spacing:.045em;text-transform:uppercase}
#messagesView .admin-followup-controls select,#messagesView .admin-followup-controls input{width:100%;min-width:0;min-height:40px;padding:8px 10px;border:1px solid #dbe2ec;border-radius:10px;background:#fff;color:#253a59;font:inherit;font-size:12px;font-weight:600;box-sizing:border-box}
#messagesView .admin-followup-controls button{min-height:40px;padding:8px 12px;font-size:11px;white-space:nowrap}
#messagesView .admin-followup-controls button:disabled{opacity:.55;cursor:not-allowed}
#messagesView .admin-followup-optional{color:#8490a2;font-size:9px;font-weight:600;text-transform:none;letter-spacing:0}
#messagesView .admin-followup-message{min-height:16px;margin-top:7px;color:#667085;font-size:11px}
#messagesView .admin-followup-message[data-state="success"]{color:#147d38}
#messagesView .admin-followup-message[data-state="error"]{color:#b42318}
.admin-conversation-followup{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin-top:7px;padding:4px 7px;border:1px solid #e5eaf1;border-radius:999px;background:#f5f8fc;color:#586981;font-size:10px;font-weight:750;line-height:1.2}
.admin-conversation-followup[data-status="awaiting_crineo"]{border-color:#f0dca7;background:#fff9e9;color:#805f13}
.admin-conversation-followup[data-status="awaiting_customer"]{border-color:#d7e4fa;background:#f0f5ff;color:#285690}
.admin-conversation-followup[data-status="resolved"]{border-color:#d1eadb;background:#effaf3;color:#267343}
.admin-conversation-followup.is-overdue{border-color:#f0c8c3;background:#fff2f0;color:#a12c21}
@media(max-width:650px){#messagesView .admin-followup-controls{grid-template-columns:1fr 1fr}#messagesView .admin-followup-controls button{grid-column:1/-1;width:100%}}


/* Customer activity history in the admin conversation context */
#messagesView .admin-activity-history{padding:12px;border-top:1px solid #e5eaf1;background:#fff}
#messagesView .admin-activity-heading{display:grid;gap:9px;margin-bottom:8px}
#messagesView .admin-activity-heading>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
#messagesView .admin-activity-heading strong{color:#15345f;font-size:12px}
#messagesView .admin-activity-heading span{color:#8792a3;font-size:10px}
#messagesView .admin-activity-filters{display:grid;grid-template-columns:minmax(130px,1fr) minmax(110px,.75fr) minmax(110px,.75fr);gap:7px}
#messagesView .admin-activity-filters select,#messagesView .admin-activity-filters input{width:100%;min-width:0;min-height:34px;padding:6px 8px;border:1px solid #dce3ec;border-radius:9px;background:#fff;color:#344866;font:inherit;font-size:11px;box-sizing:border-box}
#messagesView .admin-activity-timeline{display:grid;gap:0;max-height:310px;overflow:auto;overscroll-behavior:contain}
#messagesView .admin-activity-entry{position:relative;display:grid;grid-template-columns:15px minmax(0,1fr);gap:8px;padding:8px 2px}
#messagesView .admin-activity-entry:not(:last-child):before{content:"";position:absolute;left:7px;top:20px;bottom:-8px;width:1px;background:#dce5f0}
#messagesView .admin-activity-marker{z-index:1;width:9px;height:9px;margin:4px 0 0;border:2px solid #315f9e;border-radius:50%;background:#fff}
#messagesView .admin-activity-copy{display:grid;gap:3px;min-width:0}
#messagesView .admin-activity-meta{display:flex;gap:7px;align-items:center;color:#7b8798;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
#messagesView .admin-activity-copy strong{color:#314461;font-size:11px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
#messagesView .admin-activity-copy small{color:#929cad;font-size:10px}
#messagesView .admin-activity-empty{padding:12px 4px;color:#8792a3;font-size:11px;text-align:center}
#messagesView .admin-activity-filters :disabled{opacity:.55}
@media(max-width:520px){#messagesView .admin-activity-history{padding:10px 9px}#messagesView .admin-activity-filters{grid-template-columns:1fr 1fr}#messagesView .admin-activity-filters select{grid-column:1/-1}}


/* Keep call recording access in the messaging actions instead of floating over replies. */
#messagesView .admin-chat-head-actions .crineo-recordings-launcher,
#accountChat .chat-call-actions .crineo-recordings-launcher{
  min-height:40px;
  padding:8px 12px;
  border-color:rgba(215,174,84,.72);
  background:#fffaf0;
  color:#17345e;
  white-space:nowrap;
}
#messagesView .admin-chat-head-actions .crineo-recordings-launcher:hover,
#accountChat .chat-call-actions .crineo-recordings-launcher:hover{
  border-color:#c99f3e;
  background:#fff4d6;
}


/* CRINEO customer-friendly message starters */
#accountChat .customer-message-starters{
  margin:12px 0 5px;
  padding:12px;
  border:1px solid rgba(215,174,84,.38);
  border-radius:16px;
  background:linear-gradient(135deg,#fbfcff 0%,#fff9ea 100%);
}
#accountChat .customer-message-starters-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
#accountChat .customer-message-starters-head strong{
  color:#17345e;
  font-size:12px;
  font-weight:850;
}
#accountChat .customer-message-starters-head span{
  color:#78849a;
  font-size:10px;
}
#accountChat .customer-message-starter-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
#accountChat .customer-message-starter-list button{
  min-height:34px;
  padding:7px 12px;
  border:1px solid #d9e1ec;
  border-radius:999px;
  background:#fff;
  color:#29496f;
  font:inherit;
  font-size:11px;
  font-weight:750;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
#accountChat .customer-message-starter-list button:hover{
  border-color:#c99f3e;
  background:#fff4d6;
  transform:translateY(-1px);
}
#accountChat .customer-message-starter-list button:focus-visible{
  outline:3px solid rgba(45,110,216,.28);
  outline-offset:2px;
}
@media(max-width:520px){
  #accountChat .customer-message-starters{padding:10px}
  #accountChat .customer-message-starters-head{align-items:flex-start;flex-direction:column;gap:2px}
  #accountChat .customer-message-starter-list button{flex:1 1 auto}
}


#messagesView .admin-chat-retry-state{
  display:grid;
  justify-items:center;
  gap:10px;
  padding:24px 16px;
  color:#63718a;
  text-align:center;
}
#messagesView .admin-chat-retry-state p{
  max-width:34ch;
  margin:0;
  line-height:1.5;
}
#messagesView .admin-chat-retry-state button{
  min-height:38px;
  padding:8px 15px;
  border-color:rgba(215,174,84,.65);
  background:#fffaf0;
  color:#17345e;
  font-weight:750;
}


#accountMessages .message-delivery-status.delivered,
#messagesView .admin-chat-row.admin .message-delivery-status.delivered{
  color:#d7ae54!important;
}
#accountMessages .message-delivery-status.read,
#messagesView .admin-chat-row.admin .message-delivery-status.read{
  color:#2d78c8!important;
}


/* Customer unread support replies */
.customer-unread-message-alert {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(215, 174, 84, .55);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e7, #fffdf7);
  color: #16345f;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}
.customer-unread-message-alert[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .customer-unread-message-alert {
    padding: 11px 13px;
    font-size: 13px;
  }
}


/* Call history status, recording and callback actions */
.call-history-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.call-history-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #f5f7fa;
  color: #34445a;
  font-size: 12px;
  font-weight: 750;
}
.call-history-status.missed,
.call-history-status.declined,
.call-history-status.failed {
  border-color: #f1c6c3;
  background: #fff3f1;
  color: #a52820;
}
.call-history-status.completed,
.call-history-status.ended {
  border-color: #b8dfca;
  background: #eef9f2;
  color: #17663a;
}
.call-history-recording,
.call-history-callback {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 3px;
  padding: 7px 11px;
  border: 1px solid #d7ae54;
  border-radius: 999px;
  background: #fffaf0;
  color: #16345f;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.call-history-recording:hover,
.call-history-callback:hover {
  background: #f8edcf;
}


/* Autosaved composer drafts */
.message-draft-status {
  margin: 5px 0 0;
  color: #66758a;
  font-size: 12px;
  line-height: 1.4;
}
.message-draft-status[hidden] {
  display: none !important;
}

/* Reply context and composer */
.message-reply-composer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 11px 13px;
  border: 1px solid #d9e1ec;
  border-left: 4px solid #2b5d99;
  border-radius: 12px;
  background: #f5f8fc;
  color: #243b59;
}
.message-reply-composer[hidden] { display: none !important; }
.message-reply-composer > div { display: grid; gap: 3px; min-width: 0; }
.message-reply-composer strong { font-size: 13px; }
.message-reply-composer span { overflow: hidden; color: #64748b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.message-reply-composer button { flex: 0 0 auto; border: 0; background: transparent; color: #53647a; font-size: 23px; line-height: 1; cursor: pointer; }
.chat-reply-context {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: min(100%, 360px);
  margin: 0 0 9px;
  padding: 8px 10px;
  border: 0;
  border-left: 3px solid #9aadc5;
  border-radius: 7px;
  background: rgba(20, 47, 82, .07);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-reply-context strong { font-size: 12px; }
.chat-reply-context span { overflow: hidden; max-width: 100%; font-size: 12px; opacity: .82; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-context.unavailable { cursor: default; opacity: .72; }
.chat-reply-action {
  padding: 2px 5px;
  border: 0;
  background: transparent;
  color: #526782;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chat-reply-action:hover { color: #194d89; text-decoration: underline; }

/* In-conversation message search */
.message-history-search { display:flex; align-items:center; gap:10px; margin:8px 0; color:#62738a; font-size:12px; }
.message-history-search input { flex:1; min-width:0; min-height:40px; padding:9px 12px; border:1px solid #d9e1ec; border-radius:12px; background:#fff; color:#18314f; font:inherit; font-size:14px; }
.message-history-search input:focus { outline:2px solid #9dbbe0; outline-offset:1px; }
.message-history-search span { flex:0 0 auto; }
[data-message-id][hidden] { display:none!important; }
@media(max-width:640px){.message-history-search{gap:6px}.message-history-search input{min-height:42px}}
