/* Доступ к теме (724123, 724307, 724318): модальное окно поверх всей страницы, с ровным затемнением.
   Разметка — в messenger_container.html вне формы «Информация о чате».
   Отдельный файл: style.min.css из style.less в репозитории не собирается (нет компилятора less). */
.tadm_access_overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .6);
}
.tadm_access_card {
    display: flex;
    flex-direction: column;
    width: 340px;
    max-width: 100%;
    max-height: calc(100vh - 6em);
    border-radius: var(--border-radius, 10px);
    background-color: var(--bg_card);
    color: var(--text_color);
    box-shadow: 0 17px 50px 0 rgba(0, 0, 0, .19), 0 12px 15px 0 rgba(0, 0, 0, .24);
    overflow: hidden;
    animation: tadm_access_in .16s ease-out;
}
@keyframes tadm_access_in {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: none; }
}
/* Единая сетка: у заголовка, вариантов, «Участники», галочек и кнопки один левый отступ 20px */
.tadm_access_head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 12px 8px 20px;
}
.tadm_access_title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tadm_access_close {
    flex: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    opacity: .6;
}
.tadm_access_close:hover {
    opacity: 1;
    background: rgba(127, 127, 127, .15);
}
.tadm_access_body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 20px;
    overflow-y: auto;
}
/* Варианты и участники — одна и та же строка: одинаковые отступ, высота и шрифт */
.tadm_access_option {
    display: flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
.tadm_access_option > span {
    color: var(--text_color) !important;
    font-size: 15px !important;
    line-height: 24px !important;
    height: auto !important;
}
.tadm_access_sub {
    margin: 10px 0 2px;
    color: var(--text_muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}
.tadm_access_foot {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px 16px;
}
.tadm_acc_lbl {
    opacity: .7;
}
