
/* Основной контейнер */
.ncl_container {
    width: inherit;
    max-width: 100%;
    min-width: 0;
    min-height: 200px;
    height: 100%; /* ДОБАВИТЬ */
    box-sizing: border-box;

    display: flex;
    flex-direction: row-reverse;

    overflow: visible;
    padding: 0 0 0 5px;

    flex: 1 0 0;
}

/* Скрытие элементов */
.ncl_hidden {
    display: none !important;
}

/* А. Список пользователей */
.ncl_users {
    flex: 0 0 100px;
    width: 100px;
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
    overflow-y: auto;
}

.ncl_user {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    overflow: hidden;
    overflow-wrap: anywhere;
}

/* Б. Основная область чата */
.ncl_main {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
}

/* 1. Авторизация */
.ncl_auth {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    overflow: hidden;
}

.ncl_auth_title {
    max-width: 100%;
}

.ncl_auth_icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;

    max-width: 100%;
    min-width: 0;
}

/* 2. Текущий пользователь */
.ncl_current_user {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;

    overflow: hidden;
    font-size: 10pt;
    font-family: var(--font);
    padding: 5px 0;
}

.ncl_current_user_info {
    flex: 0 1 auto;
    min-width: 0;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.ncl_current_user_controls {
    flex: 0 1 auto;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;

    overflow: hidden;
}

/* 3. Правила */
.ncl_rules {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 5px;
    background-color: #ffffd6;
    border: 1px solid red;

    overflow: hidden;

    font-family: var(--font);
    font-size: 10pt;
}

.ncl_rules_text {
    min-width: 0;
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.ncl_rules_controls {
    display: flex;
    justify-content: flex-end;

    min-width: 0;
    max-width: 100%;
}

/* 4. Ввод сообщения */
.ncl_input_holder {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;

    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 5px;
}

.ncl_input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;

    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ncl_input_buttons {
    position: relative;

    flex: 0 0 auto;
    min-width: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.ncl_input_buttons button {
    flex: 0 0 auto;

    padding: 2px;
    font-size: 12pt;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
}

/* 5. Подписки и дополнительные иконки */
.ncl_extras {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;

    overflow: hidden;
}

.ncl_subscriptions {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;

    overflow: hidden;
}

.ncl_extra_controls {
    flex: 0 1 auto;
    min-width: 0;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;

    overflow: hidden;
}

/* 6. Сообщения */
.ncl_messages {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    max-width: 100%;

    display: flex;
    flex-direction: column;
    gap: 1px;

    overflow-x: hidden;
    overflow-y: auto;

    white-space: wrap;
}

.ncl_message {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.ncl_message_author {
    font-weight: bold;
}

.ncl_network {
    width: 16px;
    height: 16px;
}

.ncl_button_off {
	opacity: 0.2 !important;
}
