/* =========================================================
   REINS — Messages CSS: Threads List (רשימת שיחות)
   ---------------------------------------------------------
   כרטיס שיחה בודד ברשימה — אווטאר/שם/הודעה אחרונה/זמן/
   מצב לא-נקרא/כפתור פעולות.
========================================================= */

.threads-list-wrapper,
.bm-search-results{
    background:var(--reins-bg) !important;
}

.threads-list .thread{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-bottom:1px solid var(--reins-border) !important;
    background:transparent !important;
    cursor:pointer;
    transition:background .2s ease;
}

.threads-list .thread:hover{
    background:rgba(0,0,0,.03) !important;
}

.threads-list .thread.active,
.threads-list .thread.is-active,
.threads-list .thread[aria-selected="true"]{
    background:color-mix(in srgb, var(--reins-accent) 12%, transparent) !important;
    border-inline-start:3px solid var(--reins-accent) !important;
}

.threads-list .thread .pic img.avatar{
    width:44px;
    height:44px;
    border-radius:var(--reins-radius-pill) !important;
    border:1px solid var(--reins-border);
    object-fit:cover;
}

.threads-list .thread .bm-info{
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}

.threads-list .thread .bm-info .name{
    margin:0 !important;
    font-family:inherit !important;
    font-size:1em !important;
    font-weight:700 !important;
    color:var(--reins-text) !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.threads-list .thread .bm-info h4:not(.name){
    margin:0 !important;
    font-family:inherit !important;
    font-size:.86em !important;
    font-weight:400 !important;
    opacity:.7;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.threads-list .thread .last-message{
    font-family:inherit !important;
    font-size:.86em !important;
    opacity:.65;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.threads-list .thread .time{
    align-self:flex-start;
    font-family:inherit !important;
    font-size:.86em !important;
    opacity:.55;
    white-space:nowrap;
}

.threads-list .thread[data-unread]:not([data-unread="0"]) .bm-info .name{
    font-weight:800;
    color:var(--ast-global-color-2);
}

.threads-list .thread[data-unread]:not([data-unread="0"]) .last-message{
    opacity:.9;
    font-weight:600;
}

.threads-list .thread .actions .bm-more-actions{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border-radius:var(--reins-radius-pill);
    opacity:.5;
    transition:opacity .2s ease, background .2s ease;
}

.threads-list .thread .actions .bm-more-actions:hover{
    opacity:1;
    background:rgba(0,0,0,.05);
}

@media(max-width:600px){
    .threads-list .thread .pic img.avatar{
        width:38px;
        height:38px;
    }
}
