/* Compact historic Ejaaba mentions; no wide "multi mention" panel at rest. */
.ejabat-multi-mentions{
 display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;
 margin:3px 0 7px!important;max-width:100%;min-width:0;
 color:#4c6580;font-size:12px;box-sizing:border-box
}
.ejabat-multi-mentions-selected{
 display:flex;flex-wrap:wrap;gap:5px;align-items:center;
 width:100%;min-width:0;box-sizing:border-box;
 padding:6px 7px!important;margin:0!important;
 background:#f0f6fd!important;border:1px solid #d2e2f1!important;
 border-right:2px solid #77a7d4!important
}
.ejabat-multi-mentions-selected[hidden]{display:none!important}
.ejabat-multi-mention-chip{
 display:inline-flex;align-items:center;gap:2px;max-width:100%;min-width:0;
 background:#e5f1fd!important;border:1px solid #bdd7ef!important;
 color:#286a9f;padding:2px 5px;border-radius:2px;
 font-size:12px;line-height:1.4;overflow-wrap:anywhere
}
.ejabat-multi-mention-chip .ejabat-highlighted-member{
 color:#256bad!important;font-weight:600!important;font-size:12px!important;
 text-decoration:none!important;overflow-wrap:anywhere
}
.ejabat-multi-mention-chip button{
 border:0!important;background:transparent!important;color:#6d89a2!important;
 font-size:16px!important;line-height:1!important;min-width:24px;min-height:24px;
 padding:2px 5px!important;margin:0!important;cursor:pointer!important
}
.ejabat-multi-mentions-picker{
 margin:0!important;padding:0!important;border:0!important;
 background:transparent!important;max-width:100%;box-sizing:border-box
}
.ejabat-multi-mentions-picker>summary{
 display:inline-flex;align-items:center;gap:4px;
 list-style:none!important;cursor:pointer;
 padding:1px 3px!important;margin:0!important;
 border:0!important;background:transparent!important;
 color:#2d6da3!important;font-size:11px!important;font-weight:500!important;
 line-height:1.45!important;white-space:nowrap;user-select:none
}
.ejabat-multi-mentions-picker>summary::-webkit-details-marker{display:none}
.ejabat-multi-mentions-picker>summary::marker{content:""}
.ejabat-multi-mentions-picker>summary>span[aria-hidden]{
 font-family:Arial,sans-serif;font-size:13px;font-weight:700;
 color:#4586b9
}
.ejabat-multi-mentions-picker>summary:hover,
.ejabat-multi-mentions-picker>summary:focus-visible{
 text-decoration:underline!important;outline-offset:2px
}
.ejabat-multi-mentions-picker[open]{
 flex-basis:100%;border:1px solid #d9e5f1!important;
 padding:7px 8px!important;background:#f8fbff!important
}
.ejabat-multi-mentions-picker[open]>summary{margin-bottom:7px!important}
.ejabat-multi-mentions-tools{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px!important}
.ejabat-multi-mentions-tools button{
 background:#fff!important;color:#386f9e!important;border:1px solid #bdd4e8!important;
 border-radius:2px!important;padding:3px 7px!important;font-size:11px!important;
 line-height:1.5!important;margin:0!important;min-height:27px
}
.ejabat-multi-mentions-options{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:5px 8px;max-height:164px;overflow:auto;padding:3px 0
}
.ejabat-multi-mentions-options label{
 display:flex!important;align-items:center;gap:5px;min-width:0;max-width:100%;
 margin:0!important;padding:4px 5px!important;background:white!important;
 border:1px solid #e0e9f3!important;border-radius:2px;color:#3a607c!important;
 font-size:11px!important;line-height:1.5!important;cursor:pointer
}
.ejabat-multi-mentions-options label span{min-width:0;overflow-wrap:anywhere}
.ejabat-multi-mentions-options input{accent-color:#2874ae;flex:0 0 15px;width:15px;height:15px}
.ejabat-multi-mentions-picker p,.ejabat-multi-mentions [data-multi-mention-warning]{
 font-size:10px!important;color:#8494a4!important;line-height:1.6!important;
 margin:6px 0 0!important
}
.ejabat-multi-mentions [data-multi-mention-warning]{color:#a0533d!important}

/* Actually visible linked mentions, AFTER previous 2021-style overrides.
   Pale inline background just like a highlighted member reference, NOT
   a second toolbar, banner, or modern card. */
.archive-question-detail .ejabat-old-addendum-body > a.ejabat-highlighted-member,
.answers-list .archive-answer .detail-body > a.ejabat-highlighted-member,
.archive-answer .detail-body > a.ejabat-highlighted-member{
 display:inline-block!important;white-space:normal!important;
 vertical-align:baseline!important;box-sizing:border-box!important;
 background:#edf5fd!important;color:#256ca8!important;
 border:1px solid #d1e1f0!important;border-right:2px solid #8ab7dc!important;
 border-radius:2px!important;padding:1px 6px!important;
 margin:0 1px 3px 4px!important;
 font-weight:600!important;line-height:1.5!important;
 text-decoration:none!important;max-width:100%;overflow-wrap:anywhere
}
.archive-question-detail .ejabat-old-addendum-body > a.ejabat-highlighted-member:hover,
.answers-list .archive-answer .detail-body > a.ejabat-highlighted-member:hover{
 background:#e0effc!important;text-decoration:underline!important
}
@media(max-width:600px){
 .ejabat-multi-mentions{margin:2px 0 7px!important}
 .ejabat-multi-mentions-selected{padding:5px 6px!important}
 .ejabat-multi-mention-chip .ejabat-highlighted-member{font-size:11px!important}
 .ejabat-multi-mentions-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:355px){
 .ejabat-multi-mentions-options{grid-template-columns:minmax(0,1fr)}
}
