﻿/* chat_style.css – стили для десктопного чата и общие элементы чата */

/* ========== ДЕСКТОПНОЕ ОКНО ЧАТА ========== */
#chat-window {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 79%;
    height: 100vh;
    min-height: 420px;
    background: #fff;
    border: 0px solid #ddd;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    z-index: 100000;
    overflow: hidden;
}

#chat-window .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 0px solid #eee;
    background: rgba(36, 49, 65, 1.0);
}

#chat-window .chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-left: 20px;
}

#chat-window .chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

#chat-window .chat-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

#chat-window .chat-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

#chat-window .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 0px solid #ddd;
    background: none;
    cursor: pointer;
    font-size: 30px;
    padding: 2px;
}

#chat-window .messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 130px;
    background: radial-gradient(circle at 24% 30%, #000000, #1d2f4b);
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: none;
}

#channel-window {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 79%;
    height: 100vh;
    min-height: 420px;
    background: #101828;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    z-index: 100000;
    overflow: hidden;
}

#channel-window .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(36, 49, 65, 1.0);
    border-bottom: 1px solid rgba(73, 96, 125, 0.55);
}

#channel-window .chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

#channel-window .chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

#channel-window .chat-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

#channel-window .chat-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

#channel-window .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 0px solid #ddd;
    background: none;
    color: white;
    cursor: pointer;
    font-size: 30px;
    padding: 2px;
}

.channel-subtitle {
    display: block;
    margin-top: 2px;
    color: rgba(207, 207, 207, 1.0);
    font-size: 0.85rem;
}

.channel-posts-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0 84px;
    background: radial-gradient(circle at 24% 30%, #000000, #1d2f4b);
    scrollbar-width: none;
}

.channel-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px 16px;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0), rgba(16, 24, 40, 0.96) 35%);
}

.channel-footer button {
    width: 100%;
    border-radius: 14px;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.pinned-bar {
    padding: 8px 12px;
    background: rgba(36, 49, 65, 1.0);
    border-bottom: 1px solid rgba(73, 96, 125, 0.55);
}

.pinned-bar.hidden {
    display: none;
}

.pinned-bar__cloud {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 10px;

    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
    user-select: none;
}

.pinned-bar__title {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.78rem;
    color: rgba(207, 207, 207, 1);
    font-weight: 700;
}

.pinned-bar__text {
    grid-column: 1;
    grid-row: 2;
    color: white;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pinned-bar__count {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    color: rgba(207, 207, 207, 1);
    font-weight: 700;
    font-size: 0.85rem;
}

#chat-window .msg {
    max-width: 40%;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.35;
    word-break: break-word;

    transition: background-color 0.1s ease;
}

#chat-window .msg img.chat-media,
#chat-window .msg video.chat-media:not(.chat-circle-video) {
    max-width: 100%;
    max-height: 420px;
    border-radius: 0px;
    margin-top: 5px;
    object-fit: cover;
}

#chat-window .msg video.chat-circle-video {
    max-height: none;
    margin-top: 0;
    border-radius: 50% !important;
    max-width: 100%;
    object-fit: cover;
}

#chat-window .msg img.chat-media:not(.chat-sticker),
#chat-window .msg video.chat-media:not(.chat-sticker-video) {
    display: block;
    width: 100%;
}

#chat-window .msg .custom-video-player,
#chat-window .msg .custom-audio-player {
    margin-top: 10px;
}

#chat-window .msg audio {
    margin-top: 10px;
}

.msg--pending { opacity: 0.65; }
.msg--failed { opacity: 0.85; border: 1px solid rgba(255,80,80,.35); }

#chat-window .msg--me {
    align-self: flex-end;
    background: #007bff;
    color: white;
    margin-right: 16%;
}

#chat-window .msg--other {
    align-self: flex-start;
    background: rgb(29 40 55);
    color: white;
    margin-left: 28%;
}

#chat-window .msg--system {
    align-self: center;
    max-width: 60%;
    padding: 6px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(207, 207, 207, 1);
    display: flex;
    justify-content: center;
}

#chat-window .msg--new.msg--me,
.mobile-chat-window .msg--new.msg--me {
    animation: chat-message-in-right 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#chat-window .msg--new.msg--other,
.mobile-chat-window .msg--new.msg--other {
    animation: chat-message-in-left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes chat-message-in-right {
    from {
        transform: translateX(34px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes chat-message-in-left {
    from {
        transform: translateX(-34px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.msg--game {
    background: transparent !important;
    padding: 0 !important;
    margin: 4px 0;
    box-shadow: none;
    overflow: visible;
}

#chat-close-btn {
    width: 40px;
    font-size: 30px;
    margin-right: 0px;
}

#chat-call-btn img{
    width: 30px;
    height: auto;
}

#chat-window .msg--me a.chat-file-link {
    background: #0066cc;
    color: white;
}

#chat-window .msg a.chat-file-link {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
}

.chat-footer-low{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.chat-footer-low .sticker-btn img{
    width: 30px;
    height: 30px;
    margin-top: 4px;
}

#chat-window .chat-footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-shrink: 0;
    width: 60%;
    /*position: fixed;
    bottom: 20px;
    right: 6%;*/
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
}

#chat-window .chat-footer .attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border-radius: 6px;
    border: 0px solid #ddd;
    background: none;
    cursor: pointer;
    opacity: 0.5;
}

#chat-window .chat-footer .attach img{
    max-width: 100%;
}

.chat-footer-low .send img{
    width: 30px;
    height: 30px;
}

#chat-window .chat-footer .msg-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 20px;
    border: 0px solid #ddd;
    font-size: 1rem;

    background: none;
    color: white;

    outline: none;

    resize: none;
    overflow-y: auto;

    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.chat-footer-parent{
    width: 70%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    background: none;
    position: fixed;
    bottom: 20px;
    left: 30%;
}

#chat-window .chat-footer .send {
    flex: 0 0 auto;
    padding: 4px;
    height: 40px;
    border-radius: 20px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    width: auto;
}

.sticker-btn{
    width: 60px;
    padding: 4px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ========== ПАНЕЛЬ СПИСКА ЧАТОВ ========== */
#chat-panel {
    width: 20%;
    max-height: 100vh;
    background: rgb(36 49 65);
    border: 1px solid rgba(73, 96, 125, 1.0);
    border-top: none;
    border-left: none;
    border-bottom: none;
    padding: 14px 12px 10px;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0px;
    top: 0px;
    gap: 10px;
}

#chat-panel h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.2rem;
    color: white;
}

.chat-panel-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.chat-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-panel-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(19, 28, 39, 0.92);
    border: 1px solid rgba(73, 96, 125, 0.55);
    box-sizing: border-box;
}

.chat-panel-search__icon {
    width: 18px;
    height: 18px;
    opacity: 0.78;
    flex-shrink: 0;
}

.chat-panel-search__input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.98rem;
    padding: 0;
}

.chat-panel-search__input::placeholder {
    color: rgba(176, 191, 208, 0.72);
}

.chat-panel-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 129, 255, 0.65) rgba(15, 23, 33, 0.5);
    padding-bottom: 2px;
}

.chat-panel-tabs::-webkit-scrollbar {
    height: 4px;
}

.chat-panel-tabs::-webkit-scrollbar-track {
    background: rgba(15, 23, 33, 0.5);
    border-radius: 999px;
}

.chat-panel-tabs::-webkit-scrollbar-thumb {
    background: rgba(143, 129, 255, 0.65);
    border-radius: 999px;
}

.chat-panel-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(143, 129, 255, 0.9);
}

.chat-panel-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: rgba(196, 207, 221, 0.82);
    padding: 8px 10px 12px;
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    width: auto;
}

.chat-panel-tab::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}

.chat-panel-tab:hover {
    color: #ffffff;
}

.chat-panel-tab.is-active {
    color: #8f81ff;
}

.chat-panel-tab.is-active::after {
    background: #8f81ff;
}

.chat-panel-tab__label {
    line-height: 1;
}

.chat-panel-tab__count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(143, 129, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    line-height: 1;
    box-sizing: border-box;
}

.chat-panel-empty {
    color: rgba(196, 207, 221, 0.72);
    font-size: 0.98rem;
    padding: 18px 10px;
    text-align: center;
    border-radius: 14px;
    background: rgba(21, 31, 44, 0.52);
    border: 1px solid rgba(73, 96, 125, 0.28);
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid transparent;
}

.chat-item:hover {
    background: #1c2837;
    transform: translateY(-1px);
}

.chat-item.is-active {
    background: #1c2837;
}

.chat-item:active {
    transform: translateY(0);
}

.chat-item-call-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.12);
}

.chat-item-call-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    border: none !important;
    z-index: 2;
    pointer-events: none;
}

.chat-item img {
    width: 54px;
    height: 54px;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid black;
}

.chat-item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-grow: 1;
    gap: 3px;
}

.chat-item-info strong {
    font-size: 1rem;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(139, 139, 139, 1.0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item--call .chat-item-info {
    gap: 4px;
}

.chat-item-call-channel {
    font-size: 0.88rem;
    color: #bfd0e4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-call-people {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
}

.chat-item-call-empty,
.chat-item-call-more {
    font-size: 0.85rem;
    color: #bfd0e4;
}

#chats-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 5px;
    height: auto;
}

#chats-list::-webkit-scrollbar {
    width: 5px;
}

#chats-list::-webkit-scrollbar-track {
    background: none;
}

#chats-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ========== КАСТОМНЫЙ АУДИОПЛЕЕР ========== */
.custom-audio-player {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #f1f3f4;
    border-radius: 18px;
    padding: 8px 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.msg--me .custom-audio-player {
    background: #007bff;
    color: white;
}

.custom-audio-player .play-pause {
    background: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.msg--me .custom-audio-player .play-pause {
    background: #fff;
    color: #007bff;
}

.custom-audio-player .time {
    font-size: 1.4rem;
    white-space: nowrap;
    font-family: monospace;
    flex-shrink: 0;
}

.custom-audio-player progress {
    flex: 1;
    height: 18px;
    border-radius: 6px;
    accent-color: #007bff;
}

.msg--me .custom-audio-player progress {
    accent-color: white;
}

.custom-audio-player .transcribe-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
    width: auto;
}

.custom-audio-player .transcript-text {
    width: 100%;
    margin-top: 8px;
    font-style: italic;
    background: #e9ecef;
    padding: 8px;
    border-radius: 12px;
    font-size: 0.9em;
    word-break: break-word;
    order: 10;
    color: black;
}

.custom-audio-player .transcript-text.hidden {
    display: none;
}

.msg-time {
    display: block;
    font-size: 0.75em;
    margin-top: 4px;
    opacity: 0.6;
    text-align: right;
}



.msg-sender-avatar{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.msg-sender-name{
    font-weight: bold;
    font-size: 1em;
}

.msg-sender{
    align-items: flex-end;
    display: flex;
}

.chat-unread-badge {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 0.3rem;

    border-radius: 30%;

    background: #007bff;
    color: #ffffff;

    font-size: 1rem;
    font-weight: 600;

    line-height: 1;

    box-shadow: 0 2px 6px rgba(120, 100, 200, 0.25);

    flex-shrink: 0;
}

.chat-item-top-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.chat-item-name {
    flex: 1;
    min-width: 0;
}

.chat-item-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.chat-item-time {
    font-size: 0.75rem;
    color: rgba(154, 168, 184, 1.0);
    white-space: nowrap;
}

.chat-item-checks-slot {
    display: inline-flex;
    align-items: center;
}

.chat-item-checks {
    font-size: 0.85rem;
    line-height: 1;
    color: rgba(154, 168, 184, 1.0);
    white-space: nowrap;
    user-select: none;
}

.chat-item-checks.is-read {
    color: #a0a0ff;
}

.chat-item-preview.is-typing {
    color: rgba(207, 207, 207, 1.0);
    font-style: italic;
}

.chat-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.chat-avatar-wrap img {
    display: block;
}

.chat-presence-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid black;
    box-sizing: border-box;
}

.chat-presence-dot.is-online {
    background: #86efac;
}

.chat-presence-dot.is-offline {
    background: #979797;
}

.chat-presence-status {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-top: 0.2rem;
    opacity: 0.9;
    color: #999999;
}

.chat-presence-status.online {
    color: #22c55e;
}

.chat-presence-status.offline {
    color: #878787;
}

.chat-title-wrap {
    display: flex;
    flex-direction: column;
}

.mobile-paste-preview {
    padding: 0.8rem 1rem 0.4rem;
}

.mobile-paste-preview.hidden {
    display: none;
}

.mobile-paste-preview-card {
    position: relative;
    display: inline-block;
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.mobile-paste-preview-img {
    display: block;
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: 1.2rem;
}

.mobile-paste-preview-remove {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 2.4rem;
    height: 2.4rem;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.mobile-attachment-preview {
    width: 100%;
    padding: 0.8rem 1rem 0.6rem;
    box-sizing: border-box;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
    display: flex;
    gap: 6px;
}

.mobile-attachment-preview.hidden {
    display: none;
}

.mobile-attachment-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 4rem;
    max-height: 4rem;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.mobile-attachment-thumb {
    display: block;
    width: 12rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 1.4rem;
}

.mobile-attachment-file {
    padding: 1rem 1.2rem;
    font-size: 1.4rem;
    color: #fff;
}

.mobile-attachment-remove {
    position: absolute;
    top: 0rem;
    right: 0.5rem;
    width: 1.6rem;
    height: 1.6rem;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}


.run-out{
    width: 14px;
    min-width: 14px;
    height: 20px;
}

.reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px;
    background: none;
    border-top: 0px solid #ddd;
    margin-bottom: 0px;
    width: 97%;
    color: white;
}

#reply-bar-desktop {
    background: transparent;
}

#clear-reply-comment-btn{
    width: auto;
}

.msg-text{
    white-space: pre-wrap;
    word-break: break-word;
}

/* =========================
   CHAT INFO MODAL
   ========================= */

#chat-info-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.add-group-chat{
    background: none;
    width: 50px;
    height: auto;
    padding: 5px 10px;
}

#open-search-btn {
    background: none;
    position: absolute;
    width: 80px;
    height: auto;
    bottom: 40px;
    right: 8%;
}

#chat-info-modal.hidden {
    display: none !important;
}

#chat-info-modal .chat-info-sheet {
    position: relative;
    width: min(880px, calc(100vw - 32px));
    max-height: min(90vh, 920px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background: linear-gradient(180deg, #243141 0%, #1d2735 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

#chat-info-modal .chat-info-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Header */

#chat-info-modal .chat-info-top {
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#chat-info-modal .chat-info-close {
    width: 42px;
    height: 42px;
    margin-left: auto;
    margin-bottom: 0px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 28px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-info-modal .chat-info-close:hover {
    background: rgba(255,255,255,0.14);
    transform: scale(1.04);
}

#chat-info-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.18);
    background: #1f2937;
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

#chat-info-modal .chat-info-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#chat-info-modal .chat-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.62);
    backdrop-filter: blur(8px);
}

#chat-info-modal .chat-info-avatar-edit {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #2563eb;
    color: white;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

#chat-info-name {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);
    color: white;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

#chat-info-name:disabled {
    opacity: 0.95;
    cursor: default;
}

#chat-info-name::placeholder {
    color: rgba(255,255,255,0.45);
}

#chat-info-modal .chat-info-subtitle {
    margin-top: 10px;
    color: #aeb9c8;
    font-size: 0.95rem;
}

#chat-info-name:focus {
    border-color: rgba(59,130,246,0.7);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.14);
}

/* Row buttons */

#chat-info-modal .chat-info-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#chat-info-modal .chat-info-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    justify-content: center;
}

#chat-info-modal .chat-info-tabs::-webkit-scrollbar {
    display: none;
}

#chat-info-modal .chat-info-tabs {
    margin-top: 2px;
}

#chat-info-modal .chat-info-tabs button {
    width: auto;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color: #d4dceb;
    border: none;
    cursor: pointer;
}

#chat-info-modal .chat-info-tabs button.active {
    background: #2f7df6;
    color: white;
}

#chat-info-modal .chat-info-actions button {
    width: auto;
    min-width: 160px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #2f7df6;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

#chat-info-modal .chat-info-actions button:hover {
    transform: translateY(-1px);
    background: #1d4ed8;
}

#chat-info-modal .chat-info-actions button.secondary {
    background: rgba(255,255,255,0.08);
    color: #f3f4f6;
    box-shadow: none;
}

#chat-info-modal .chat-info-actions button.secondary:hover {
    background: rgba(255,255,255,0.13);
}

#chat-info-modal .chat-info-tabs button {
    flex: 1 0 auto;
    background: rgba(255,255,255,0.06);
    color: #d1d5db;
}

#chat-info-modal .chat-info-tabs button:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

#chat-info-modal .chat-info-tabs button.active {
    background: rgba(37, 99, 235, 0.20);
    color: #bfdbfe;
    box-shadow: inset 0 0 0 1px rgba(59,130,246,0.35);
}

/* Body */

#chat-info-modal .chat-info-body {
    overflow-y: auto;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Sections */

#chat-info-modal .chat-info-section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 18px;
}

#chat-info-modal .chat-info-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

#chat-info-modal .chat-info-section__head h3 {
    margin: 0;
    color: white;
    font-size: 1.05rem;
}

#chat-info-modal .chat-info-section-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #cbd5e1;
    text-transform: uppercase;
}

#chat-info-modal .chat-info-badge {
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #d9e2ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Members */

.chat-members-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.chat-member-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 12px;
    cursor: pointer;
}

.chat-member-card:hover {
    background: rgba(255,255,255,0.08);
}

.chat-member-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-member-card__body {
    min-width: 0;
}

.chat-member-card__name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-member-card__name {
    color: white;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-member-card__meta {
    margin-top: 4px;
    color: #9aa7bb;
    font-size: 0.88rem;
}

.chat-info-empty {
    color: #9aa7bb;
    text-align: center;
    padding: 20px 0;
}

/* Files/media area */

#chat-info-modal .chat-files-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    max-height: 100vh;
}

#chat-info-modal .chat-files-panel.is-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#chat-info-modal .chat-media-card,
#chat-info-modal .chat-file-card,
#chat-info-modal .chat-link-card,
#chat-info-modal .chat-audio-card {
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

#chat-info-modal .chat-media-card {
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

#chat-info-modal .chat-media-card img,
#chat-info-modal .chat-media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#chat-info-modal .chat-file-card,
#chat-info-modal .chat-link-card,
#chat-info-modal .chat-audio-card {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: column;
}

.chat-avatar-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}


#chat-info-modal .chat-info-hero__text {
    min-width: 0;
    flex: 1;
}

#chat-info-avatar-file {
    width: 104px;
    height: 104px;
    border-radius: 22px;
    object-fit: cover;
    background: #111827;
    flex-shrink: 0;
}

#chat-avatar-file {
    color: white;
    border: 0px;
}

#chat-info-modal .chat-file-icon,
#chat-info-modal .chat-link-icon,
#chat-info-modal .chat-audio-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,0.14);
    color: #93c5fd;
    font-size: 18px;
    flex: 0 0 auto;
}

#chat-info-modal .chat-file-meta,
#chat-info-modal .chat-link-meta,
#chat-info-modal .chat-audio-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#chat-info-modal .chat-file-name,
#chat-info-modal .chat-link-title,
#chat-info-modal .chat-audio-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

#chat-info-modal .chat-file-sub,
#chat-info-modal .chat-link-url,
#chat-info-modal .chat-audio-sub {
    font-size: 12px;
    color: #94a3b8;
    word-break: break-word;
}

/* Empty state */

#chat-info-modal .chat-info-empty {
    padding: 22px 16px;
    border-radius: 16px;
    text-align: center;
    color: #94a3b8;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.10);
}

/* Footer sticky optional */

#chat-info-modal .chat-info-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0f172a;
}

.chat-info-header{
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#chat-files-container{
    overflow: auto;
}

#chat-files-container img{
    height: auto;
    max-height: 400px;
}

.chat-title-info {
    color: #b1b1b1;
    font-size: 0.8rem;
}

/* ========== МОБИЛЬНЫЕ СТИЛИ ДЛЯ ДЕСКТОПНОГО ОКНА ЧАТА (не используются, но оставлены для совместимости) ========== */
@media (max-width: 1000px) and (orientation: portrait) {
    .custom-audio-player .transcribe-btn {
        font-size: 1.4rem;
    }

    .chat-presence-dot {
        width: 16px;
        height: 16px;
    }

    #close-sticker-modal{
        color: white;
    }

    #chat-info-modal {
        padding: 0;
        align-items: flex-end;
    }

    #chat-info-modal .chat-info-sheet {
        width: 100%;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
    }

    #chat-info-modal .chat-info-top {
        padding: 10px 12px 14px;
    }

    #chat-info-avatar-file {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }

    .chat-members-list {
        grid-template-columns: 1fr;
    }

    #chat-info-name {
        width: 100%;
        font-size: 15px;
    }

    #chat-info-modal .chat-info-actions button {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    #chat-info-modal .chat-info-body {
        padding: 14px 14px 20px;
    }

    #chat-info-modal .chat-files-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #chat-info-modal .chat-info-tabs button{
        padding: 10px 0px;
    }

    .chat-media-card {
        border-radius: 14px;
    }

    .chat-file-row {
        padding: 10px 12px;
    }

    #chat-info-modal .chat-info-section__head{
        align-items: center;
    }

    .chat-file-row__title,
    .chat-file-row__subtitle {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }

    .mobile-chats-list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        background: rgb(36 49 65);
    }

    .mobile-chat-panel-head {
        position: sticky;
        top: 0;
        z-index: 5;
        background: rgb(36 49 65);
        padding: 10px 10px 8px;
        border-bottom: 1px solid rgba(73, 96, 125, 0.6);
    }

    .mobile-chat-panel-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 0px;
    }

    .mobile-chat-panel-title {
        color: #ffffff;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .mobile-chat-panel-add {
        margin: 0;
        width: 40px;
        height: 40px;
    }

    .chat-panel-search--mobile {
        min-height: 44px;
        margin-bottom: 0px;
    }

    .chat-panel-tabs--mobile {
        gap: 2px;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .chat-panel-tabs--mobile::-webkit-scrollbar {
        display: none;
    }

    .chat-panel-tabs--mobile .chat-panel-tab {
        padding: 8px 8px 11px;
        font-size: 0.92rem;
    }

    .chat-panel-tabs--mobile .chat-panel-tab::after {
        left: 8px;
        right: 8px;
    }

    .mobile-chat-panel-list {
        padding: 10px;
    }

    .reply-bar{
        background: #1f2635;
        border-top: 0px;
        padding: 4px;
        color: white;
        margin-bottom: 4px;
        height: 30px;
        color: white;
        justify-content: space-between;
        align-items: center;
        display: flex;
    }

    .reply-bar-container{
        display: flex;
        gap: 6px;
        flex: 1;
        margin-right: 0px;
        max-width: calc(100% - 40px);
        align-items: center;
        min-width: 0;
    }

    #reply-preview{
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
        word-break: auto-phrase;
    }

    #mobile-clear-reply-btn {
        width: auto;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .mobile-chat-window {
        flex: 1;
        display: flex;
        flex-direction: column;
        background: none;
        height: 100%;
        overflow: hidden;
    }

    .mobile-channel-posts {
        flex: 1;
        overflow-y: auto;
        padding: 12px 0 84px;
        background: radial-gradient(circle at 24% 30%, #000000, #1d2f4b);
        -webkit-overflow-scrolling: touch;
    }

    .mobile-channel-footer {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        background: linear-gradient(180deg, rgba(16, 24, 40, 0), rgba(16, 24, 40, 0.96) 35%);
    }

    .mobile-channel-footer button {
        width: 100%;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .mobile-chat-header {
        display: flex;
        align-items: center;
        border-bottom: 0px solid #ddd;
        background: rgba(36,49,65,1.0);
        flex-shrink: 0;
        min-height: 54px;
    }

    .msg-sender-avatar{
        width: 26px;
        height: 26px;
    }

    .chat-presence-status {
        font-size: 1.1rem;
    }

    .msg-time{
        margin-top: 0px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .msg-text{
        color: white;
    }

    .custom-audio-player{
        background: #dc81f3;
    }

    .custom-audio-player .transcript-text {
        font-size: 0.8rem;
        padding: 6px;
    }

    .chat-unread-badge {
        min-width: 1rem;
        height: 1rem;

        padding: 0.3rem 0.6rem;

        border-radius: 30%;

        font-size: 1rem;
        font-weight: 600;

        line-height: 1;

        box-shadow: 0 2px 6px rgba(120, 100, 200, 0.25);

        flex-shrink: 0;
    }

    .mobile-chat-header .call-btn {
        font-size: 1.3rem;
        margin-right: 14px;
        width: 24px;
        padding: 0px;
        margin-top: 6px;
    }

    .custom-audio-player .play-pause {
        width: 36px;
        height: 36px;

        font-size: 20px;
    }

    .custom-audio-player .time {
        font-size: 0.8rem;
    }

        .mobile-chat-window .msg {
        max-width: 75%;
        padding: 2px 8px;
        border-radius: 16px;
        line-height: 1.5;
        word-break: break-word;
        font-size: 1rem;
    }

    .mobile-chat-window .msg--me {
        align-self: flex-end;
        background: #007bff;
        color: white;
    }

    .mobile-chat-window .msg--other {
        align-self: flex-start;
        background: rgb(49 65 85);
        color: #ffffff;
    }
    .mobile-chat-window .msg--system {
        align-self: center;
        background: #bf58f3;
        color: #ffffff;
        display: flex;
        justify-content: center;
    }
    .mobile-chat-window .msg img.chat-media,
    .mobile-chat-window .msg video.chat-media:not(.chat-circle-video) {
        max-width: 100%;
        max-height: 200px;
        border-radius: 16px;
        margin-top: 10px;
        object-fit: cover;
    }

    .mobile-chat-window .msg video.chat-circle-video {
        max-height: none;
        margin-top: 0;
        border-radius: 50% !important;
        max-width: 100%;
        object-fit: cover;
    }

    .mobile-chat-window .msg img.chat-media:not(.chat-sticker),
    .mobile-chat-window .msg video.chat-media:not(.chat-sticker-video) {
        display: block;
        width: 100%;
    }

    .mobile-chat-window .msg .custom-video-player,
    .mobile-chat-window .msg .custom-audio-player {
        margin-top: 10px;
    }

    .mobile-chat-window .msg audio {
        margin-top: 10px;
        width: 100%;
        height: 70px;
    }
    .msg a.chat-file-link {
        font-size: 1rem;
        padding: 4px;
        display: inline-block;
        background: #f0f0f0;
        border-radius: 8px;
        text-decoration: none;
        color: #007bff;
    }
}



.chat-bg-sheet {
    width: min(920px, calc(100vw - 32px));
}

.chat-bg-scope-switch {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.chat-bg-scope-switch button {
    width: auto;
    padding: 10px 14px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #d4dceb;
    cursor: pointer;
}

.chat-bg-scope-switch button.active {
    background: #2f7df6;
    color: #fff;
}

.chat-bg-preview {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7d1e0;
    overflow: hidden;
}

.chat-bg-preview.is-empty {
    border: 1px dashed rgba(255,255,255,0.12);
}

.chat-bg-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.chat-bg-preset-card {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
}

.chat-bg-preset-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background-size: cover;
    background-position: center center;
    border: 2px solid transparent;
}

.chat-bg-preset-card.active .chat-bg-preset-card__thumb {
    border-color: #2f7df6;
}

.chat-bg-upload-btn {
    display: inline-flex;
    width: auto;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
}

@media (max-width: 1000px) and (orientation: portrait) {
    .chat-bg-presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chat-bg-preview {
        aspect-ratio: 16 / 10;
    }
}

#chat-background-modal {
    position: fixed;
    inset: 0;
    z-index: 260000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

#chat-background-modal.hidden {
    display: none !important;
}

#chat-background-modal .chat-info-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.62);
    backdrop-filter: blur(8px);
}

#chat-background-modal .chat-bg-sheet {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    max-height: min(90vh, 920px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background: linear-gradient(180deg, #243141 0%, #1d2735 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

#chat-background-modal .chat-info-top {
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#chat-background-modal .chat-info-body {
    overflow-y: auto;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

#chat-background-modal .chat-info-section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 18px;
}

#chat-background-modal .chat-info-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

#chat-background-modal .chat-info-section__head h3 {
    margin: 0;
    color: white;
    font-size: 1.05rem;
}

#chat-background-modal .chat-info-actions {
    margin-top: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#chat-background-modal .chat-info-actions button {
    width: auto;
    min-width: 160px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #2f7df6;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

#chat-background-modal .chat-info-actions button:nth-child(2) {
    background: rgba(255,255,255,0.08);
    color: white;
}

.chat-bg-scope-switch {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.chat-bg-scope-switch button {
    width: auto;
    padding: 10px 14px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #d4dceb;
    cursor: pointer;
}

.chat-bg-scope-switch button.active {
    background: #2f7df6;
    color: #fff;
}

.chat-bg-preview {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7d1e0;
    overflow: hidden;
}

.chat-bg-preview.is-empty {
    border: 1px dashed rgba(255,255,255,0.12);
}

.chat-bg-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.chat-bg-preset-card {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
}

.chat-bg-preset-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background-size: cover;
    background-position: center center;
    border: 2px solid transparent;
}

.chat-bg-preset-card.active .chat-bg-preset-card__thumb {
    border-color: #2f7df6;
}

.chat-bg-upload-btn {
    display: inline-flex;
    width: auto;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
}

@media (max-width: 1000px) and (orientation: portrait) {
    #chat-background-modal {
        padding: 0;
        align-items: flex-end;
    }

    #chat-background-modal .chat-bg-sheet {
        width: 100%;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
    }

    #chat-background-modal .chat-info-top {
        padding: 18px 16px 14px;
    }

    #chat-background-modal .chat-info-body {
        padding: 14px 14px 20px;
    }

    .chat-bg-presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chat-bg-preview {
        aspect-ratio: 16 / 10;
    }

    #chat-background-modal .chat-info-actions button {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
}

.chat-info-top .chat-info-close{
    width: 42px;
    height: 42px;
    margin-left: auto;
    margin-bottom: 0px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 28px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

#open-chat-background-btn {
    background: rgba(255,255,255,0.08) !important;
}

.game-frame-wrapper iframe{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}
