/* ==========================================================================
   ANDROIDI — стили служебных форм DLE
   (регистрация, восстановление пароля, обратная связь, добавление новости,
    личные сообщения, профиль). Подключается после styles.css.
   ========================================================================== */

/* Утилиты, которые используют штатные шаблоны DLE */
.e-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.e-flex50 {
    flex: 1 1 220px;
    min-width: 0;
}

.e-grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 720px) {
    .e-grid2 {
        grid-template-columns: 1fr;
    }
}

.e-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.e-none {
    display: none;
}

/* Кнопка-ссылка в старых шаблонах */
.e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--r-pill);
    background: var(--brand-grad);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.e-btn:hover {
    filter: brightness(1.05);
    color: #fff;
}

/* Поля */
.e-field {
    margin-bottom: 14px;
}

.e-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.e-field input,
.e-field select,
.e-field textarea {
    width: 100%;
}

/* «Плавающие» подписи из старых шаблонов превращаем в обычные поля */
.e-float {
    position: relative;
    margin-bottom: 14px;
}

.e-float>label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.e-float>input,
.e-float>textarea {
    width: 100%;
}

/* Формы DLE */
.dle-form {
    max-width: 520px;
}

.dle-form_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.dle-form_flex>input,
.dle-form_flex>textarea,
.dle-form_flex>select {
    flex: 1 1 220px;
}

.dle-form_flexno {
    display: block;
    margin-bottom: 14px;
}

.dle-form_protec {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dle-form_protec input {
    max-width: 180px;
}

/* Регистрация / восстановление / обратная связь */
.dle-form form>br,
.dle-form br+br {
    display: none;
}

.dle-form input[type="submit"],
.dle-form button[type="submit"] {
    min-height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--brand-grad);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Добавление новости */
.dle-addnews {
    max-width: 100%;
}

.dle-addnews textarea {
    min-height: 240px;
}

/* Личные сообщения */
.dle-comm_content {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

/* Статистика */
.dle-stats {
    display: grid;
    gap: 12px;
}

.dle-stats_top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    font-weight: 600;
}

/* Карточка пользователя (всплывающая) */
.dle-use {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.dle-use_title h2 {
    margin: 12px 18px 4px;
}

.dle-use_title span {
    display: block;
    margin: 0 18px 16px;
    color: var(--text-3);
    font-size: 13px;
}

/* Модальные окна старых шаблонов */
.modal {
    display: none;
    padding: 26px;
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--sh-3);
}

.e-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 9, 14, .6);
    backdrop-filter: blur(3px);
}

/* Редактор DLE */
.bb-pane,
.bb-editor {
    border-radius: var(--r);
    border-color: var(--line);
}

/* Таблица поиска DLE */
.dle-search table {
    width: 100%;
    border-collapse: collapse;
}

.dle-search td {
    padding: 6px 0;
}
