.notification-history-open .chat-avatar svg { width:25px; height:25px; }
#notification-history-open > .chat-avatar { flex:0 0 44px; width:44px; height:44px; }
.notification-history-open > span:nth-child(2) { flex:1; min-width:0; }
.history-pin { color:var(--accent); font-size:1.4rem; }
.chat-conversation { position:relative; }
.notification-history { height:100%; display:flex; flex-direction:column; min-height:0; }
.notification-history[hidden],.messenger-message-search[hidden] { display:none; }
.history-heading { flex:1; min-width:0; }
.history-heading h2 { margin:0 0 4px; font-size:1rem; }
.history-heading p { margin:0; font-size:.76rem; color:var(--text-secondary); }
.notification-history .chat-header { flex-wrap:wrap; }
.history-message { width:100%; max-width:100%; }
.history-message > strong { font-size:.88rem; }
.history-actions { display:flex; justify-content:flex-end; gap:8px; align-items:center; }
.history-actions button { font-size:.8rem; }
.messenger-message-search { position:absolute; z-index:4; inset:0; display:flex; flex-direction:column; background:var(--surface); min-height:0; }
.messenger-message-search .chat-header h2 { flex:1; font-size:1rem; margin:0; }
#messenger-search-form { padding:16px 22px 0; }
#messenger-search-form label { display:block; font-size:.8rem; margin:8px 0; }
.message-search-input { display:flex; gap:8px; }
.message-search-input input { min-width:0; flex:1; }
#messenger-search-status { margin:12px 22px; }
#messenger-search-results { flex:1; min-height:0; overflow:auto; padding:0 22px 16px; }
html:root .message-search-result { display:grid; gap:7px; width:100%; text-align:left; margin:8px 0; padding:15px; background:var(--surface); color:var(--text-primary); border:1px solid var(--border); border-radius:var(--radius-md); font-weight:400; overflow-wrap:anywhere; }
html:root .message-search-result:hover { background:var(--surface-hover); border-color:var(--accent); }
.message-search-excerpt { font-size:.88rem; white-space:pre-wrap; }
.message-search-excerpt mark { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.chat-message.chat-search-hit { outline:1px solid var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
#messenger-search-more { align-self:center; margin:8px 16px 16px; }
#chat-latest { align-self:center; margin:8px; font-size:.78rem; }
@media(max-width:700px){#messenger-search-form {padding:12px 14px 0;}#messenger-search-results {padding:0 14px 12px;}#messenger-search-status {margin:12px 14px;}#history-clear {font-size:.78rem;}.history-heading {flex-basis:60%;}}
@media(max-width:480px){
  #messenger-view > .employee-dialog-head { flex-wrap:wrap; gap:8px; }
  #messenger-view > .employee-dialog-head > div:first-child { flex-basis:100%; }
  #messenger-title { overflow-wrap:normal; }
}
