/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * БАЗОВЫЕ СТИЛИ СТРАНИЦЫ
 * Сброс, типографика, фон, ссылки и основной контейнер.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */


html, body {
    min-height: 100%;
}

body {
    box-sizing: border-box;

    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #060b18;
    color: #e9eefc;
    font-family: "Segoe UI", Arial, sans-serif;

    display: flex;
    flex-direction: column;


}


.menu {
    margin-bottom: 20px;
}

a {
    color: #4fa3ff;
}

.content {
    background: #111;
    padding: 20px;
    border-radius: 10px;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ФОРМЫ И БАЗОВЫЕ КНОПКИ
 * Поля, подписи, textarea и основной action-button.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: #aaa;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
}

.btn-primary {
    background: #2fa572;
    border: none;
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
}


.chat-box {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;


    max-height: 62vh;
    overflow-y: auto;
}

.msg {
    padding: 6px 0;
    border-bottom: 1px solid #222;
}

textarea {
    width: 100%;
    height: 80px;
    margin-top: 10px;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * БАЗОВЫЕ ЭЛЕМЕНТЫ ЧАТА И ФОРМ
 * Строки формы, геоподсказки и вложения сообщений.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

.geo-hint {
    margin-top: 5px;
    font-size: 12px;
    color: #7d879a;
    line-height: 1.35;
}

.geo-hint.ok {
    color: #6f8f9f;
}

.geo-hint.err {
    color: #d46a7a;
}

.geo-hint.loading {
    color: #c9a85a;
}


.msg-files {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.msg-files a {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #263a5f;
    border-radius: 999px;
    background: rgba(30, 50, 90, 0.35);
    text-decoration: none;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ИНТЕРФЕЙС ЧАТА
 * Шапка, сообщения, файлы, форма отправки и просмотр изображений.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.chat-page {
    max-width: 920px;
}

.chat-header {
    padding: 16px 18px;
    border: 1px solid #1d355e;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13,31,61,.9), rgba(20,20,45,.8));
    margin-bottom: 18px;
}

.chat-title {
    font-size: 20px;
    font-weight: 700;
    color: #f3f7ff;
}

.chat-subtitle {
    font-size: 12px;
    color: #8292b5;
    margin-top: 4px;
}

.chat-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(4, 9, 22, .65);
    border: 1px solid #172a4a;
    border-radius: 16px;
    padding: 18px;
    min-height: 260px;
    margin-bottom: 16px;
}

.chat-message {
    max-width: 78%;
    padding: 10px 13px;
    border-radius: 14px;
    line-height: 1.45;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.chat-message.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #173f73, #102a51);
    border: 1px solid #2c5f9e;
}

.chat-message.other {
    align-self: flex-start;
    background: linear-gradient(135deg, #151b2d, #101522);
    border: 1px solid #273653;
}

.chat-meta {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 5px;
    font-size: 12px;
}

.chat-author {
    color: #dce8ff;
    font-weight: 700;
}

.chat-time {
    color: #7586a8;
}

.chat-text {
    color: #f2f5ff;
    white-space: normal;
}

.chat-files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.chat-file {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #365a8e;
    background: rgba(12, 30, 62, .55);
    color: #bcd8ff;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.chat-form {
    border: 1px solid #172a4a;
    border-radius: 16px;
    padding: 14px;
    background: rgba(8, 14, 31, .72);
}

.chat-form textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    background: #071124;
    color: #f5f7ff;
    border: 1px solid #244166;
    border-radius: 12px;
    padding: 12px;
}

.chat-form-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.chat-form button {
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    background: #2f7bdc;
    color: white;
    cursor: pointer;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
}

.image-modal-window {
    position: relative;
    z-index: 2;
    max-width: 88vw;
    max-height: 88vh;
    background: #081225;
    border: 1px solid #31527f;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 20px 80px rgba(0,0,0,.55);
}

.image-modal-title {
    color: #cbdcff;
    font-size: 13px;
    margin: 0 36px 10px 2px;
}

.image-modal-window img {
    max-width: 82vw;
    max-height: 76vh;
    display: block;
    border-radius: 10px;
}

.image-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * КАРКАС САЙТА И ГЛАВНАЯ НАВИГАЦИЯ
 * Фоновый слой, верхнее меню, выпадающие пункты, контент и футер.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

body {
    margin: 0;
    min-height: 100vh;
    background: #060b18;
    color: #e9eefc;
    font-family: "Segoe UI", Arial, sans-serif;
}

.site-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,9,22,.35), rgba(6,11,24,.72)),
        url("../pic/p_logo.jpg") center top / cover no-repeat;
    z-index: -1;
}

.top-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 54px;
    padding: 0 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 11, 28, .92);
    border-bottom: 1px solid rgba(96, 140, 210, .25);
    backdrop-filter: blur(10px);
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.brand {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu-list {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;

    overflow: visible;
}

.menu-item {
    position: relative;
    height: 100%;
}

.menu-item > a {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: #aebde0;
    text-decoration: none;
    font-size: 14px;
    transition: .18s;
}

.menu-item:hover > a,
.menu-item.active > a {
    color: #ffffff;
    background: rgba(54, 113, 204, .28);
}

.has-dropdown > a::after {
    content: "\25BE";
    margin-left: 7px;
    font-size: 10px;
    color: #7f96c4;
}

.dropdown {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    min-width: 230px;
    background: rgba(7, 16, 38, .98);
    border: 1px solid rgba(90, 130, 200, .35);
    border-radius: 0 0 14px 14px;
    overflow: visible;
    box-shadow: 0 18px 44px rgba(0,0,0,.45);
}

.menu-item:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 12px 15px;
    color: #c5d4f5;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.dropdown a:hover {
    background: rgba(54, 113, 204, .34);
    color: #fff;
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-login {
    color: #d9e7ff;
    font-weight: 700;
}

.btn-auth {
    color: #b7c7e8;
    text-decoration: none;
    border: 1px solid rgba(125, 160, 220, .38);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.btn-auth:hover {
    border-color: #7cb4ff;
    color: #fff;
}

.btn-auth-reg {
    background: rgba(52, 116, 214, .25);
}

.btn-logout:hover {
    border-color: #d46a7a;
    color: #ff9aaa;
}

.menu-mail {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b7c7e8;
    border: 1px solid rgba(125, 160, 220, .30);
    border-radius: 999px;
    background: rgba(8, 18, 42, .42);
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.menu-mail svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-mail:hover {
    color: #fff;
    border-color: #7cb4ff;
    background: rgba(54, 113, 204, .24);
}

.menu-mail.has-unread {
    animation: mail-pulse 1.65s ease-in-out infinite;
}

@keyframes mail-pulse {
    0%, 100% {
        color: #b7c7e8;
        border-color: rgba(125, 160, 220, .34);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        color: #ffffff;
        border-color: rgba(255, 255, 255, .86);
        box-shadow: 0 0 14px rgba(255, 255, 255, .38), 0 0 26px rgba(124, 180, 255, .18);
    }
}

.page-wrap {
    padding: 34px 8vw 70px;
    padding-top: 22px;
    flex: 1 0 auto;
}

.content h1:first-child {
    margin-top: 0;
}

.content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 38px;
    background: rgba(7, 12, 28, .72);
    border: 1px solid rgba(95, 135, 200, .22);
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.footer {

    position: relative !important;
    left: auto;
    right: auto;
    bottom: auto;


    z-index: 20;
    margin-top: auto;


    min-height: 36px;
    padding: 8px 26px;
    display: flex;
    gap: 18px;
    align-items: center;
    background: rgba(5, 11, 28, .88);
    border-top: 1px solid rgba(96, 140, 210, .18);
    color: #7181a5;
    font-size: 12px;
}

.footer a {
    color: #8298c6;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * КАБИНЕТ, СПИСКИ И СТАТУСЫ
 * Карточки кабинета, табличные списки, статусы и адаптация списков.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.auth-login {
    color: #d9e7ff;
    font-weight: 700;
    text-decoration: none;
}

.auth-login:hover {
    color: #fff;
    text-decoration: underline;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.cabinet-card {
    display: block;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(95, 135, 200, .28);
    background: rgba(9, 20, 46, .72);
    color: #dce8ff;
    text-decoration: none;
}

.cabinet-link:hover {
    border-color: #7cb4ff;
    background: rgba(20, 48, 92, .82);
}

.cabinet-card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cabinet-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cabinet-card.muted {
    opacity: .72;
}


.list-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-row {
    display: grid;

    grid-template-columns: 1fr 1.6fr .7fr .9fr 1.15fr;
    gap: 14px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid rgba(95, 135, 200, .22);
    border-radius: 14px;
    background: rgba(8, 18, 42, .64);
}

.list-head {
    color: #8194bd;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(4, 10, 25, .72);
}

.small-muted {
    margin-top: 4px;
    color: #7f8eae;
    font-size: 12px;
}

.text-right {
    text-align: right;
}

.btn-small {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(124, 180, 255, .42);
    color: #cfe3ff;
    text-decoration: none;
    font-size: 12px;
}

.btn-small:hover {
    background: rgba(47, 123, 220, .25);
    color: #fff;
}

.status-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.12);
}

.status-open {
    color: #98d7ff;
    background: rgba(47, 123, 220, .18);
}

.status-closed {
    color: #9fe0b1;
    background: rgba(60, 170, 110, .16);
}

.status-cancelled,
.order-cancelled {
    color: #b7b7b7;
    background: rgba(120,120,120,.14);
}

.order-pending {
    color: #ffc766;
    background: rgba(255, 180, 50, .15);
}

.order-paid {
    color: #92e6aa;
    background: rgba(60, 190, 105, .16);
}

.order-failed {
    color: #ff8f9d;
    background: rgba(220, 60, 80, .16);
}

@media (max-width: 820px) {
    .list-row {
        grid-template-columns: 1fr;
    }

    .text-right {
        text-align: left;
    }
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ЗАДАЧИ И АДМИНСКИЙ СПИСОК ЧАТОВ
 * Карточки задач, левая колонка чатов и рабочая область администратора.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.task-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.task-card {
    display: block;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(95, 135, 200, .28);
    background: linear-gradient(135deg, rgba(10, 24, 54, .82), rgba(7, 12, 28, .78));
    color: #e9eefc;
    text-decoration: none;
    transition: .18s;
}

.task-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 180, 255, .65);
    box-shadow: 0 16px 42px rgba(0,0,0,.28);
}

.task-card-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.task-type {
    font-size: 18px;
    font-weight: 800;
}

.task-title {
    margin-top: 4px;
    color: #91a5cd;
    font-size: 13px;
}

.task-person {
    margin-top: 14px;
    color: #dce8ff;
}

.task-person span {
    color: #8798bd;
}

.task-card-bottom {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #7f8eae;
    font-size: 12px;
}


.admin-chats {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

.admin-sidebar {
    border: 1px solid rgba(95, 135, 200, .25);
    border-radius: 18px;
    padding: 12px;
    background: rgba(8, 18, 42, .6);
    max-height: 70vh;
    overflow-y: auto;
}

.admin-user-block {
    margin-bottom: 14px;
}

.admin-user-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    font-size: 14px;
}

.admin-chat-link {
    display: block;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #cfe3ff;
    background: rgba(20, 40, 80, .35);
    transition: .15s;
}

.admin-chat-link:hover {
    background: rgba(47, 123, 220, .3);
}

.admin-chat-title {
    font-size: 13px;
    font-weight: 700;
}

.admin-chat-meta {
    font-size: 12px;
    color: #8fa2c9;
}

.admin-chat-time {
    font-size: 11px;
    color: #6f82a8;
}

.admin-content {
    border: 1px solid rgba(95, 135, 200, .25);
    border-radius: 18px;
    padding: 20px;
    background: rgba(8, 18, 42, .6);
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * МОДАЛЬНЫЕ ОКНА, ФАЙЛЫ, ЗАКАЗЫ И АВТОРИЗАЦИЯ
 * Админские действия, загрузка файлов, платежные статусы и формы входа.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.admin-chat-tools {
    margin: 0 0 14px;
}

.admin-chat-tools button {
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid rgba(124, 180, 255, .45);
    background: rgba(47, 123, 220, .25);
    color: #dcecff;
    cursor: pointer;
}

.admin-chat-tools button:hover {
    background: rgba(47, 123, 220, .42);
    color: #fff;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
}

.modal-box {
    position: relative;
    z-index: 2;
    width: min(420px, calc(100vw - 32px));
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(124, 180, 255, .38);
    background: #081225;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.modal-box label {
    display: block;
    margin-top: 14px;
    margin-bottom: 5px;
    color: #9fb2dc;
    font-size: 13px;
}

.modal-box input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #28456e;
    background: #071124;
    color: #fff;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.btn-secondary {
    border: 1px solid rgba(150,160,180,.35);
    background: transparent;
    color: #c6d2ea;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
}

.pay-link {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #2f7bdc;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}


.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.file-upload input {
    display: none;
}

.file-upload-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(124, 180, 255, .45);
    background: rgba(47, 123, 220, .25);
    color: #dcecff;
    font-size: 13px;
    white-space: nowrap;
    transition: .15s;
}

.file-upload-btn:hover {
    background: rgba(47, 123, 220, .45);
    color: #fff;
}

.file-upload-text {
    font-size: 12px;
    color: #8fa2c9;
}


.chat-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
}

.chat-order {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10, 20, 42, .68);
}

.chat-order-status {
    white-space: nowrap;
    font-weight: 800;
    font-size: 13px;
}

.order-status-pending {
    border-color: rgba(255, 190, 85, .42);
}

.order-status-pending .chat-order-status {
    color: #ffc766;
}

.order-status-paid {
    border-color: rgba(90, 220, 130, .42);
}

.order-status-paid .chat-order-status {
    color: #92e6aa;
}

.order-status-failed {
    border-color: rgba(255, 90, 110, .45);
}

.order-status-failed .chat-order-status {
    color: #ff8f9d;
}

.order-status-cancelled {
    border-color: rgba(160, 160, 170, .35);
}

.order-status-cancelled .chat-order-status {
    color: #b7b7b7;
}


.chat-order-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-actions {
    display: flex;
    gap: 6px;
}

.order-actions a {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.15);
    color: #cfe3ff;
    font-size: 13px;
}

.order-actions a:hover {
    background: rgba(255,255,255,.12);
}


.pay-mini {
    margin-right: 6px;
    background: rgba(47, 123, 220, .25);

}


.order-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: nowrap;
}

.order-buttons .btn-small {
    white-space: nowrap;
}


.payment-message {
    padding: 11px 13px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(10,20,42,.62);
}

.payment-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.payment-pending .payment-title { color: #ffc766; }
.payment-paid .payment-title { color: #92e6aa; }
.payment-failed .payment-title { color: #ff8f9d; }
.payment-cancelled .payment-title { color: #ff9f6e; }


.admin-tool-close,
.admin-tool-reopen {
    display: inline-block;
    margin-left: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
}

.admin-tool-close {
    border: 1px solid rgba(255, 190, 85, .45);
    color: #ffc766;
    background: rgba(255, 190, 85, .12);
}

.admin-tool-reopen {
    border: 1px solid rgba(90, 220, 130, .45);
    color: #92e6aa;
    background: rgba(90, 220, 130, .13);
}

.chat-closed-box {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 190, 85, .38);
    background: rgba(255, 190, 85, .12);
    color: #ffc766;
    font-weight: 700;
}


.chat-orders-collapsed {
    margin: 0 0 14px;
    border: 1px solid rgba(95,135,200,.25);
    border-radius: 14px;
    background: rgba(6,14,32,.55);
}

.chat-orders-collapsed summary {
    cursor: pointer;
    padding: 10px 14px;
    color: #dce8ff;
    font-weight: 800;
}

.order-dot {
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.order-dot.pending { color:#ffc766; background:rgba(255,190,85,.13); }
.order-dot.paid { color:#92e6aa; background:rgba(90,220,130,.13); }
.order-dot.cancelled { color:#b7b7b7; background:rgba(160,160,170,.13); }
.order-dot.failed { color:#ff8f9d; background:rgba(255,90,110,.13); }

.chat-orders-collapsed .chat-orders {
    padding: 0 10px 10px;
}


.auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 70px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 30px 32px;
}

.auth-title {
    text-align: center;
    border: none;
    margin: 0 0 24px;
    font-size: 30px;
}

.auth-submit {
    width: 100%;
}

.auth-links {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #7f8eae;
}

.auth-links a {
    color: #9fc6ff;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-row input {
    width: 96px;
    flex: 0 0 96px;
}

.captcha-row img {
    border-radius: 8px;
    border: 1px solid rgba(124, 180, 255, .25);
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ПЕРСОНЫ И ОБЩИЕ ЭЛЕМЕНТЫ УПРАВЛЕНИЯ
 * Таблица персон, импорт, кнопки удаления и повторные уточнения общих компонентов.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.persons-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.inline-import {
    margin: 0;
}

.small-upload .file-upload-btn {
    padding: 7px 11px;
}

.persons-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.person-row {
    display: grid;
    grid-template-columns: 1.3fr 1.4fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(95,135,200,.25);
    background: rgba(8,18,42,.62);
}

.person-select-item {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(95,135,200,.25);
    background: rgba(8,18,42,.82);
    color: #dce8ff;
    cursor: pointer;
}

.person-select-item:hover {
    border-color: #7cb4ff;
}

.person-select-item span,
.person-select-item em {
    display: block;
    color: #7f8eae;
    font-size: 12px;
    font-style: normal;
    margin-top: 3px;
}

.danger-btn {
    border-color: rgba(255,90,110,.45);
    color: #ff9aaa;
}

@media (max-width: 820px) {
    .person-row {
        grid-template-columns: 1fr;
    }
}


button.btn-small,
.btn-small {
    background: rgba(40,80,150,.35);
    border: 1px solid rgba(120,160,255,.35);
    color: #dbe8ff;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
}

button.btn-small:hover,
.btn-small:hover {
    background: rgba(70,120,220,.45);
    border-color: #7cb4ff;
}

.danger-btn {
    background: rgba(180,50,70,.25);
    border: 1px solid rgba(255,90,110,.45);
    color: #ff9aaa;
}

.danger-btn:hover {
    background: rgba(220,70,90,.35);
    border-color: #ff6a80;
}

.person-row {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(95,135,200,.25);
    background: rgba(8,18,42,.62);
}


.person-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4a8cff, #6fb1ff);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5da0ff, #82c1ff);
}

.file-upload-wrapper {
    margin-top: 10px;
}


.file-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.file-hint {
    margin-top: 18px;
    font-size: 12px;
    color: #7f8eae;
    line-height: 1.4;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ДЕКОРАТИВНЫЙ ФОН
 * Звёздный canvas и слои интерфейса над ним.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

#starCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.site-bg {
    z-index: -1;
}


.page-wrap,
.footer {
    position: relative;
    z-index: 2;
}

.top-menu {
    position: sticky;
    top: 0;
    z-index: 10000;
    overflow: visible;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ОТЗЫВЫ
 * Форма добавления, карточки, статусы и админские действия.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.review-add-box {
    margin-bottom: 18px;
    border: 1px solid rgba(95,135,200,.25);
    border-radius: 16px;
    background: rgba(8,18,42,.55);
    padding: 12px 14px;
}

.review-add-box summary {
    cursor: pointer;
    font-weight: 800;
    color: #dce8ff;
}

.review-form {
    margin-top: 14px;
}

.review-form label {
    display: block;
    margin: 12px 0 6px;
    color: #9fb2dc;
    font-size: 13px;
}

.review-form textarea,
.review-form input[type="text"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #28456e;
    background: rgba(7,17,36,.92);
    color: #fff;
    padding: 11px 12px;
}

.review-rating-select {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #cbdcff;
    font-size: 13px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card {
    padding: 17px 18px;
    border-radius: 18px;
    border: 1px solid rgba(95,135,200,.25);
    background: rgba(8,18,42,.62);
}

.review-draft {
    border-color: rgba(255,190,85,.35);
}

.review-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    box-shadow: 0 0 14px currentColor;
}

.review-green { background: #7ee59b; color: #7ee59b; }
.review-yellow { background: #ffd06e; color: #ffd06e; }
.review-red { background: #ff7b8f; color: #ff7b8f; }

.review-text {
    color: #e9eefc;
    line-height: 1.55;
}

.review-admin-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ДОКУМЕНТЫ
 * Список документов и карточки скачивания.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.docs-list {
    display: grid;
    gap: 14px;
    max-width: 560px;
    margin-top: 22px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(120, 160, 255, .25);
    border-radius: 16px;
    background: rgba(10, 22, 45, .55);
    color: #eaf1ff;
    text-decoration: none;
    transition: .2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.doc-card:hover {
    transform: translateY(-2px);
    border-color: rgba(95, 150, 255, .65);
    background: rgba(18, 38, 75, .72);
    box-shadow: 0 14px 36px rgba(40, 100, 220, .18);
}

.doc-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(80, 130, 255, .14);
    font-size: 24px;
    flex-shrink: 0;
}

.doc-card strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.doc-card small {
    color: #9fb0d0;
    font-size: 13px;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * АДМИНСКИЕ ЧАТЫ: ФИЛЬТРЫ И НЕПРОЧИТАННОЕ
 * Сворачивание пользователей, фильтр, индикаторы и метаданные чатов.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.admin-chat-filter {
    margin: 0 0 12px;
    color: #cfe3ff;
    font-size: 14px;
}

.admin-chat-filter label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.admin-user-title {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 6px;
    cursor: pointer;
    text-align: left;
}

.admin-folder-login {
    flex: 1;
}

.admin-folder-arrow {
    width: 14px;
    color: #8fa2c9;
    transition: transform .15s;
}

.admin-user-block.collapsed .admin-folder-arrow {
    transform: rotate(-90deg);
}

.admin-chat-link {
    position: relative;
    padding-right: 30px;
}

.unread-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,.85);
    flex: 0 0 auto;
}

.chat-dot {
    position: absolute;
    right: 11px;
    top: 13px;
}

.admin-chat-link.has-unread .admin-chat-title {
    color: #fff;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ГОЛОСОВЫЕ СООБЩЕНИЯ И ЭКСПОРТ ЧАТА
 * Запись, воспроизведение, выгрузка и администрирование аудио.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.chat-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.chat-export-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid #365a8e;
    border-radius: 999px;
    padding: 7px 12px;
    color: #bcd8ff;
    background: rgba(12, 30, 62, .55);
    text-decoration: none;
    font-size: 13px;
}

.chat-box {
    scrollbar-width: thin;
    scrollbar-color: #315b92 rgba(4, 9, 22, .35);
}

.chat-box::-webkit-scrollbar {
    width: 10px;
}

.chat-box::-webkit-scrollbar-track {
    background: rgba(4, 9, 22, .35);
    border-radius: 999px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #315b92, #1d355e);
    border-radius: 999px;
    border: 2px solid rgba(4, 9, 22, .65);
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3c70b5, #254a7d);
}

.chat-send-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.voice-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #1f3c66 !important;
    border: 1px solid #3d6aa5 !important;
}

.voice-btn.recording {
    background: #b0253b !important;
    animation: voicePulse 1s infinite;
}

@keyframes voicePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 65, 95, .55); }
    50% { box-shadow: 0 0 0 10px rgba(255, 65, 95, 0); }
}

.voice-record-panel {
    margin-top: 10px;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(4, 9, 22, .5);
}

.voice-record-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4560;
    animation: voiceBlink .85s infinite;
}

@keyframes voiceBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.voice-record-timer {
    color: #ffd9df;
    font-variant-numeric: tabular-nums;
    min-width: 44px;
}

.voice-record-wave {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    flex: 1;
}

.voice-record-wave i {
    display: block;
    width: 3px;
    height: 8px;
    border-radius: 99px;
    background: #ffb2bf;
    animation: waveBar .75s infinite ease-in-out;
}

.voice-record-wave i:nth-child(2) { animation-delay: .08s; }
.voice-record-wave i:nth-child(3) { animation-delay: .16s; }
.voice-record-wave i:nth-child(4) { animation-delay: .24s; }
.voice-record-wave i:nth-child(5) { animation-delay: .32s; }

@keyframes waveBar {
    0%, 100% { height: 7px; opacity: .6; }
    50% { height: 20px; opacity: 1; }
}

.voice-cancel-btn,
.voice-send-btn {
    border: 0;
    border-radius: 999px;
    padding: 7px 11px;
    color: #fff;
    cursor: pointer;
}

.voice-cancel-btn { background: #4d5363; }
.voice-send-btn { background: #2f7bdc; }

.voice-message {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 245px;
    max-width: 360px;
    padding: 8px 9px;
    border-radius: 999px;
    background: rgba(4, 12, 28, .45);
    border: 1px solid rgba(102, 150, 215, .35);
}

.voice-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    flex: 0 0 auto;
    cursor: pointer;
    color: #fff;
    background: #2f7bdc;
}

.voice-track {
    position: relative;
    height: 8px;
    flex: 1;
    min-width: 80px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    overflow: hidden;
    cursor: pointer;
}

.voice-progress {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: rgba(188, 216, 255, .9);
    transition: width .08s linear;
}

.voice-time {
    font-size: 11px;
    color: #b9c8e5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.voice-download {
    opacity: 0;
    color: #d9e8ff;
    text-decoration: none;
    font-size: 17px;
    transition: opacity .15s ease;
}

.voice-message:hover .voice-download {
    opacity: 1;
}

.audio-deleted {
    color: #98a4ba;
    font-style: italic;
}

.admin-audio-table-wrap {
    overflow-x: auto;
}

.admin-audio-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-audio-table th,
.admin-audio-table td {
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 8px 9px;
    vertical-align: middle;
}

.admin-audio-table th {
    text-align: left;
    background: rgba(12, 30, 62, .55);
}

.admin-audio-table th a {
    color: #d9e8ff;
    text-decoration: none;
}

.admin-audio-table audio {
    max-width: 220px;
}

.admin-audio-delete {
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: #8b2638;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 720px) {
    .chat-header { align-items: flex-start; flex-direction: column; }
    .chat-form-bottom { align-items: flex-start; flex-direction: column; }
    .chat-send-tools { width: 100%; justify-content: flex-end; }
    .voice-message { min-width: 210px; max-width: 100%; }
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * МОБИЛЬНАЯ ВЕРСИЯ
 * Адаптивное меню, компоновка контента и поведение футера.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
}

.top-menu,
.footer {
    width: 100%;
    max-width: 100vw;
}

.footer {
    flex-shrink: 0;
    box-sizing: border-box;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(125, 160, 220, .38);
    border-radius: 12px;
    background: rgba(8, 18, 42, .72);
    cursor: pointer;
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    margin: 5px 0;
    border-radius: 99px;
    background: #dce8ff;
    transition: transform .18s ease, opacity .18s ease;
}

@media (max-width: 768px) {
    .top-menu {
        position: sticky;
        top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        height: auto;
        min-height: 54px;
        padding: 6px 14px;
        gap: 0 10px;
        overflow: visible;
    }

    .menu-left {
        display: contents;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .menu-toggle {
        display: block;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .top-menu.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .top-menu.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .top-menu.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu-list {
        display: none;
    }

    .menu-right {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-self: end;
        align-self: center;
        gap: 0;
    }

    .menu-right .auth-login,
    .menu-right .btn-auth {
        display: none;
    }

    .menu-mail {
        width: 40px;
        height: 40px;
        background: rgba(8, 18, 42, .72);
    }

    .top-menu.menu-open .menu-list,
    .top-menu.menu-open .menu-right {
        grid-column: 1 / -1;
        grid-row: auto;
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .top-menu.menu-open .menu-right .auth-login,
    .top-menu.menu-open .menu-right .btn-auth {
        display: inline-flex;
        align-items: center;
    }

    .top-menu.menu-open .menu-list {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        margin-top: 8px;
        padding: 8px 0;
        border-top: 1px solid rgba(96, 140, 210, .20);
        overflow: visible;
    }

    .menu-item {
        height: auto;
        width: 100%;
    }

    .menu-item > a {
        height: auto;
        width: 100%;
        min-width: 0;
        padding: 13px 4px;
        justify-content: space-between;
        font-size: 15px;
        border-radius: 10px;
    }

    .has-dropdown > a::after {
        content: "\25BE";
        margin-left: auto;
        padding-left: 12px;
    }

    .has-dropdown.submenu-open > a::after {
        content: "\25B4";
    }

    .dropdown {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin: 0 0 7px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-left: 1px solid rgba(90, 130, 200, .35);
        border-radius: 0;
        background: rgba(7, 16, 38, .44);
        box-shadow: none;
    }

    .menu-item:hover .dropdown {
        display: none;
    }

    .menu-item.submenu-open .dropdown {
        display: block;
    }

    .dropdown a {
        padding: 11px 12px;
        border-bottom: 0;
        border-radius: 10px;
        white-space: normal;
    }

    .top-menu.menu-open .menu-right {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 10px 0 12px;
        border-top: 1px solid rgba(96, 140, 210, .14);
    }

    .btn-auth,
    .auth-login {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .page-wrap {
        width: 100%;
        padding: 18px 12px 44px;
    }

    .content {
        width: 100%;
        max-width: 100%;
        padding: 22px 16px;
        border-radius: 18px;
    }

    .footer {
        min-height: 40px;
        padding: 9px 14px;
        flex-wrap: wrap;
    }
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * УВЕДОМЛЕНИЯ О НЕПРОЧИТАННЫХ ЧАТАХ
 * Индикатор в меню и фоновой дождь писем.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.admin-chat-unread-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-left: 9px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, .7), 0 0 20px rgba(124, 180, 255, .32);
    animation: admin-chat-dot-pulse 1.25s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes admin-chat-dot-pulse {
    0%, 100% {
        opacity: .42;
        transform: scale(.82);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
        box-shadow: 0 0 12px rgba(255, 255, 255, .82), 0 0 24px rgba(124, 180, 255, .38);
    }
}

.menu-item > a,
.dropdown a {
    gap: 6px;
}

.dropdown a:has(.admin-chat-unread-dot) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


#mailMatrix {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: .42;
}

@media (max-width: 768px) {
    .dropdown a:has(.admin-chat-unread-dot),
    .menu-item > a:has(.admin-chat-unread-dot) {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

.admin-chats-unread-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ОБЯЗАТЕЛЬНЫЕ СОГЛАСИЯ
 * Блокирующее модальное окно документов и чекбоксов.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.consent-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
}
.consent-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 16, .78);
    backdrop-filter: blur(5px);
}
.consent-gate-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(24, 28, 42, .97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.consent-gate-dialog h2 { margin: 0 0 10px; }
.consent-gate-dialog > p { margin: 0 0 18px; opacity: .82; }
.consent-gate-list { display: grid; gap: 12px; margin-bottom: 20px; }
.consent-gate-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    cursor: pointer;
}
.consent-gate-item input { margin-top: 4px; flex: 0 0 auto; }
.consent-gate-item a { text-decoration: underline; }
.consent-gate-submit { width: 100%; }
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * АДМИНСКИЕ ЧАТЫ: РАЗДЕЛЁННЫЙ ИНТЕРФЕЙС
 * Список слева, встроенный чат справа, имя пользователя и скроллбар панели.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.admin-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #315b92 rgba(4, 9, 22, .35);
}

.admin-sidebar::-webkit-scrollbar {
    width: 10px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(4, 9, 22, .35);
    border-radius: 999px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #315b92, #1d355e);
    border: 2px solid rgba(4, 9, 22, .65);
    border-radius: 999px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3c70b5, #254a7d);
}

.admin-folder-login {
    min-width: 0;
}


.admin-user-full-name {
    margin-left: 4px;
    color: #7f8eae;
    font-size: 11px;
    font-weight: 400;
}

.admin-chat-link.is-active {
    background: rgba(47, 123, 220, .38);
    box-shadow: inset 0 0 0 1px rgba(124, 180, 255, .35);
}

.admin-content {
    min-width: 0;
    min-height: 70vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-chat-frame-toolbar {
    min-height: 48px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(95, 135, 200, .25);
    background: rgba(6, 14, 34, .72);
}

.admin-chat-frame-label {
    color: #cfe3ff;
    font-size: 13px;
    font-weight: 700;
}

.admin-chat-expand {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(124, 180, 255, .45);
    border-radius: 999px;
    color: #dcecff;
    background: rgba(47, 123, 220, .25);
    text-decoration: none;
    font-size: 12px;
}

.admin-chat-expand:hover {
    color: #fff;
    background: rgba(47, 123, 220, .42);
}

.admin-chat-placeholder {
    margin: auto;
    padding: 30px;
    color: #8fa2c9;
    text-align: center;
}

.admin-chat-frame {
    width: 100%;
    min-height: calc(70vh - 48px);
    flex: 1 1 auto;
    border: 0;
    background: transparent;
}

.embedded-page,
.embedded-page body {
    min-height: 100%;
}

body.embedded-page {
    overflow-x: hidden;
    background: transparent;
}

.embedded-page-wrap {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.embedded-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.embedded-content > h1:first-child {
    margin-top: 0;
}

@media (max-width: 900px) {
    .admin-chats {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        max-height: 42vh;
    }

    .admin-content {
        min-height: 72vh;
    }
}
/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * ВСТРОЕННЫЙ ЧАТ: СКРОЛЛБАР
 * Оформление прокрутки iframe в Firefox и Chromium/WebKit.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

html.embedded-root {
    scrollbar-width: thin;
    scrollbar-color: #315b92 rgba(4, 9, 22, .35);
}

html.embedded-root::-webkit-scrollbar,
html.embedded-root body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html.embedded-root::-webkit-scrollbar-track,
html.embedded-root body::-webkit-scrollbar-track {
    background: rgba(4, 9, 22, .35);
    border-radius: 999px;
}

html.embedded-root::-webkit-scrollbar-thumb,
html.embedded-root body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #315b92, #1d355e);
    border: 2px solid rgba(4, 9, 22, .65);
    border-radius: 999px;
}

html.embedded-root::-webkit-scrollbar-thumb:hover,
html.embedded-root body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3c70b5, #254a7d);
}

/**
 * ============================================================================
 * ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 * НЕПРОЧИТАННЫЕ СООБЩЕНИЯ В «МОИХ ЗАДАНИЯХ»
 * Плавная подсветка рамки карточки без подъёма самой плашки.
 * ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
 * ============================================================================
 */

.task-card.has-unread {
    animation: task-card-unread-border 1.8s ease-in-out infinite;
}

.task-card.has-unread:hover {
    animation-play-state: paused;
}

@keyframes task-card-unread-border {
    0%, 100% {
        border-color: rgba(95, 135, 200, .30);
        box-shadow: 0 0 0 rgba(124, 180, 255, 0);
    }
    50% {
        border-color: rgba(220, 235, 255, .95);
        box-shadow: 0 0 18px rgba(124, 180, 255, .28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .task-card.has-unread {
        animation: none;
        border-color: rgba(220, 235, 255, .95);
        box-shadow: 0 0 18px rgba(124, 180, 255, .20);
    }
}
