.kg-app-v2 #feed-panel {
    width: min(780px, 100%);
}

html.kg-app-v2 body.osn-page header {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.kg-app-v2 .main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
    padding-left: 320px;
    box-sizing: border-box;
}

.kg-app-v2 #chat-panel {
    position: fixed;
    left: 0;
    top: 62px;
    bottom: 0;
    z-index: 1000;
    width: 300px;
    min-width: 0;
    padding: 10px;
    border-radius: 0 18px 18px 0;
    border: 1px solid rgba(73, 96, 125, 0.72);
    background: rgba(16, 23, 36, 0.92);
    box-sizing: border-box;
    overflow-y: auto;
}

.kg-app-v2 #posts-container {
    align-items: center;
}

.kg-app-v2 #feed-panel {
    margin-left: auto;
    margin-right: auto;
}

.kg-app-v2 #feed-header {
    width: 100%;
}

.kg-app-v2 .author-info[data-post-author-type] {
    cursor: pointer;
}

.kg-app-v2 .author-info[data-post-author-type]:hover .verified-name {
    text-decoration: underline;
}

.kg-profile-frame-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(5, 8, 14, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.kg-profile-frame-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.kg-profile-frame-overlay.is-closing {
    opacity: 0;
    pointer-events: none;
}

.kg-profile-frame-sheet {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #11101e;
    transform: translateY(100%);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.kg-profile-frame-overlay.is-visible .kg-profile-frame-sheet {
    transform: translateY(0);
}

.kg-profile-frame-overlay.is-closing .kg-profile-frame-sheet {
    transform: translateY(100%);
}

.kg-profile-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #11101e;
}

.kg-app-v2 .chat-panel-head {
    display: grid;
    gap: 8px;
}

.kg-app-v2 .chat-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kg-app-v2 .chat-panel-top h2 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
}

.kg-app-v2 .add-group-chat {
    width: 38px;
    height: 38px;
    padding: 8px;
    border: none;
    border-radius: 14px;
    background: #343c63;
}

.kg-app-v2 .add-group-chat img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kg-app-v2 .chat-panel-search {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(73, 96, 125, 0.55);
}

.kg-app-v2 .chat-panel-search__icon {
    width: 18px;
    height: 18px;
    opacity: 0.75;
}

.kg-app-v2 .chat-panel-search__input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.kg-app-v2 .chat-panel-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.kg-app-v2 .chat-panel-tab {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #cdd8ec;
    font-weight: 800;
}

.kg-app-v2 .chat-panel-tab.is-active {
    background: #343c63;
    color: white;
}

.kg-app-v2 .chat-panel-tab b {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.76rem;
}

.kg-app-v2 #chats-list {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.kg-app-v2 .chat-item {
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: none;
    border-radius: 16px;
    background: transparent;
    color: white;
    text-align: left;
    cursor: pointer;
}

.kg-app-v2 .chat-item:hover,
.kg-app-v2 .chat-item.is-active {
    background: rgba(52, 60, 99, 0.9);
}

.kg-app-v2 .chat-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.kg-app-v2 .chat-avatar-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.kg-app-v2 .chat-call-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3ee17c;
    border: 2px solid #101724;
}

.kg-app-v2 .chat-item-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.kg-app-v2 .chat-item-top-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kg-app-v2 .chat-item-name {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
}

.kg-app-v2 .chat-item-top-right {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9eb0c9;
    font-size: 0.75rem;
}

.kg-app-v2 .chat-item-checks {
    color: #65a7ff;
}

.kg-app-v2 .chat-item-preview {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #aebad0;
    font-size: 0.88rem;
}

.kg-app-v2 .chat-unread-badge {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #3f8cff;
    color: white;
    font-size: 0.76rem;
    font-weight: 900;
}

.kg-app-v2 .chat-panel-empty {
    padding: 18px 10px;
    color: #aebad0;
    text-align: center;
    font-weight: 800;
}

.kg-app-v2 .post {
    width: min(760px, 100%);
}

.kg-app-v2 #chat-window {
    width: calc(100% - 300px);
    left: 300px;
    right: auto;
    z-index: 100010;
    display: flex;
}

.kg-app-v2 #chat-window.hidden {
    display: none !important;
}

.kg-app-v2 .chat-footer-parent {
    width: min(720px, calc(100% - 24px));
}

.kg-app-v2 #chat-window .msg--me {
    margin-right: 4%;
}

.kg-app-v2 #chat-window .msg--other {
    margin-left: 4%;
}

.kg-create-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 9999998;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(5, 8, 14, 0.62);
}

.kg-create-chat-modal.hidden {
    display: none !important;
}

.kg-create-chat-card {
    width: min(420px, 100%);
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(73, 96, 125, 0.9);
    background: rgb(22, 25, 43);
    color: white;
}

.kg-create-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kg-create-chat-head h3 {
    margin: 0;
}

.kg-create-chat-head button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: #343c63;
    color: white;
    font-size: 1.3rem;
}

.kg-create-chat-field {
    display: grid;
    gap: 8px;
}

.kg-create-chat-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(73, 96, 125, 0.9);
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.kg-create-chat-submit {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    background: #343c63;
    color: white;
    font-weight: 800;
}

body.kg-profile-frame-open {
    overflow: hidden;
}

.kg-empty-state {
    width: min(620px, calc(100vw - 24px));
    margin: 28px auto;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(73, 96, 125, 0.8);
    background: rgba(34, 48, 65, 0.92);
    color: #d9e6f8;
    text-align: center;
    font-weight: 700;
}

.kg-network-splash-boot,
.kg-network-splash-boot body {
    background: #1D2733;
    background-image: linear-gradient(200deg, rgba(29, 39, 51, 1) 0%, rgba(17, 16, 30, 1) 100%);
}

.kg-network-splash-boot body > :not(.kg-network-splash-v2) {
    visibility: hidden !important;
}

#kg-network-boot-cover,
.kg-network-splash-v2 {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #1D2733;
    background-image: linear-gradient(200deg, rgba(29, 39, 51, 1) 0%, rgba(17, 16, 30, 1) 100%);
}

.kg-network-splash-v2 {
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.kg-network-splash-v2.is-visible {
    opacity: 1;
}

.kg-network-splash-v2.is-leaving {
    opacity: 0;
    pointer-events: none;
}

.kg-network-splash-v2__card {
    display: grid;
    justify-items: center;
    gap: 16px;
    transform: translateY(48px);
    opacity: 0;
    animation: kg-v2-splash-rise 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

.kg-network-splash-v2__logo {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.kg-network-splash-v2__words {
    display: flex;
    gap: 10px;
    color: #f7fbff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.kg-network-splash-v2__words span {
    opacity: 0;
    transform: translateY(18px);
    animation: kg-v2-word-rise 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.kg-network-splash-v2__words span:nth-child(1) {
    animation-delay: 0.32s;
}

.kg-network-splash-v2__words span:nth-child(2) {
    animation-delay: 0.56s;
}

.kg-network-splash-v2__words span:nth-child(3) {
    animation-delay: 0.8s;
}

.kg-notification-root {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 9999999;
    display: grid;
    gap: 10px;
    transform: translateX(-50%);
    pointer-events: none;
}

.kg-notification {
    min-width: min(360px, calc(100vw - 28px));
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(73, 96, 125, 0.8);
    background: rgba(34, 48, 65, 0.96);
    color: white;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(120%);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.kg-notification.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.kg-auth-required-modal {
    position: fixed;
    inset: 0;
    z-index: 9999998;
    display: none;
    place-items: center;
    padding: 16px;
    background: rgba(5, 8, 14, 0.62);
}

.kg-auth-required-modal.is-visible {
    display: grid;
}

.kg-auth-required-modal__card {
    width: min(420px, 100%);
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(73, 96, 125, 0.9);
    background: rgb(22, 25, 43);
    color: white;
    text-align: center;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.kg-auth-required-modal__card button {
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    background: #343c63;
    color: white;
    font-weight: 800;
}

@keyframes kg-v2-splash-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kg-v2-word-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1000px) {
    html.kg-app-v2 body.osn-page header,
    .kg-app-v2 .main-content {
        width: 100%;
    }

    .kg-app-v2 .main-content {
        display: block;
        margin: 0;
        padding-left: 0;
        padding-bottom: 82px;
    }

    .kg-app-v2 #feed-panel {
        width: 100%;
    }

    .kg-app-v2 #chat-panel {
        position: fixed;
        inset: 0;
        z-index: 100001;
        width: 100%;
        height: 100dvh;
        padding: 12px 12px 92px;
        border: none;
        border-radius: 0;
        overflow-y: auto;
        background: #101724;
        display: block !important;
    }

    .kg-app-v2 #chat-panel.hidden {
        display: none !important;
    }

    .kg-app-v2 #chat-window {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        left: 0;
        z-index: 100003;
        display: flex !important;
    }

    .kg-app-v2 #chat-window.hidden {
        display: none !important;
    }

    .kg-app-v2 #chat-window .msg {
        max-width: 82%;
    }

    .kg-app-v2 #chat-window .msg--me {
        margin-right: 0;
    }

    .kg-app-v2 #chat-window .msg--other {
        margin-left: 0;
    }

    .kg-app-v2 .post {
        width: min(94%, 760px);
    }

    .kg-app-v2 .mobile-nav {
        display: flex;
    }

    .kg-network-splash-v2__words {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

@media (min-width: 1001px) {
    html.kg-app-v2 body.osn-page header {
        width: 70%;
        left: 26%;
        margin: 0;
        position: sticky;
        top: 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        border-bottom: 1px solid rgba(73, 96, 125, 1);
        background: rgba(36, 49, 65, 1);
    }

    .kg-app-v2 .main-content {
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        max-width: 100%;
        margin-right: 9%;
        padding-left: 0;
    }

    .kg-app-v2 #feed-panel {
        width: 68%;
        margin: 0;
        padding: 10px;
    }

    .kg-app-v2 #chat-panel {
        width: 20%;
        top: 0;
        bottom: 0;
        padding: 14px 12px 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-radius: 0;
        border: 1px solid rgba(73, 96, 125, 1);
        border-top: none;
        border-left: none;
        border-bottom: none;
        background: rgb(36 49 65);
        overflow: hidden;
    }

    .kg-app-v2 #chat-panel.hidden {
        display: none !important;
    }

    .kg-app-v2 .chat-panel-head {
        gap: 2px;
    }

    .kg-app-v2 .chat-panel-search {
        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);
    }

    .kg-app-v2 .chat-panel-tabs {
        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;
    }

    .kg-app-v2 .chat-panel-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .kg-app-v2 .chat-panel-tabs::-webkit-scrollbar-track {
        background: rgba(15, 23, 33, 0.5);
        border-radius: 999px;
    }

    .kg-app-v2 .chat-panel-tabs::-webkit-scrollbar-thumb {
        background: rgba(143, 129, 255, 0.65);
        border-radius: 999px;
    }

    .kg-app-v2 .chat-panel-tab {
        padding: 8px 10px 12px;
        border-radius: 0;
        color: rgba(196, 207, 221, 0.82);
        background: transparent;
        position: relative;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .kg-app-v2 .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;
    }

    .kg-app-v2 .chat-panel-tab.is-active {
        color: #8f81ff;
        background: transparent;
    }

    .kg-app-v2 .chat-panel-tab.is-active::after {
        background: #8f81ff;
    }

    .kg-app-v2 #chats-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-right: 5px;
        margin-top: 10px;
    }

    .kg-app-v2 .chat-item {
        min-height: 62px;
        padding: 2px;
        margin-bottom: 8px;
        border-radius: 12px;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        background: transparent;
        transition: background 0.18s ease, transform 0.18s ease;
    }

    .kg-app-v2 .chat-item:hover,
    .kg-app-v2 .chat-item.is-active {
        background: #1c2837;
        transform: translateY(-1px);
    }

    .kg-app-v2 .chat-avatar-wrap,
    .kg-app-v2 .chat-avatar-wrap img {
        width: 54px;
        height: 54px;
    }

    .kg-app-v2 .chat-item-preview {
        color: rgba(139, 139, 139, 1);
    }

    .kg-app-v2 .post {
        width: 80%;
        max-width: 1044px;
    }

    .kg-app-v2 #chat-window,
    .kg-app-v2 #channel-window,
    .kg-app-v2 .channel-discussion-modal {
        width: 79%;
    }

    .kg-app-v2 #chat-window .chat-footer-parent {
        width: min(60%, 760px);
        left: 59.5vw;
    }
}

@media (max-width: 1000px) {
    .kg-panel-swipe-active {
        will-change: transform, opacity;
    }

    .kg-app-v2 #chat-window,
    .kg-app-v2 #chat-panel,
    .channel-discussion-modal,
    #chat-info-modal .chat-info-sheet,
    #sticker-modal .sticker-modal-content {
        backface-visibility: hidden;
        transform-style: preserve-3d;
    }
}

.message-edit-modal.hidden {
    display: none !important;
}

.message-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 7, 14, 0.64);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.message-edit-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.message-edit-modal__sheet {
    width: min(440px, 100%);
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(126, 153, 190, 0.5);
    border-radius: 18px;
    background: rgb(23 31 43);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.16s ease;
}

.message-edit-modal.is-open .message-edit-modal__sheet {
    transform: translateY(0) scale(1);
}

.message-edit-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.message-edit-modal__title {
    color: white;
    font-size: 1.05rem;
    font-weight: 900;
}

.message-edit-modal__close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(52, 60, 99, 0.9);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
}

.message-edit-modal__input {
    width: 100%;
    min-height: 116px;
    padding: 12px;
    border: 1px solid rgba(126, 153, 190, 0.38);
    border-radius: 14px;
    outline: none;
    background: rgba(12, 19, 31, 0.92);
    color: white;
    resize: vertical;
    box-sizing: border-box;
}

.message-edit-modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.message-edit-modal__actions button {
    width: auto;
    min-width: 120px;
    min-height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #343c63;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.message-edit-modal__actions button.secondary {
    background: rgba(255, 255, 255, 0.08);
}

.kg-app-v2 #chat-create-choice-modal,
.kg-app-v2 #create-group-modal,
.kg-app-v2 #create-channel-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999998 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 7, 14, 0.66) !important;
    box-sizing: border-box;
}

.kg-app-v2 #chat-create-choice-modal.hidden,
.kg-app-v2 #create-group-modal.hidden,
.kg-app-v2 #create-channel-modal.hidden {
    display: none !important;
}

.kg-app-v2 #chat-create-choice-modal .modal-content,
.kg-app-v2 #create-group-modal .modal-content,
.kg-app-v2 #create-channel-modal .modal-content {
    width: min(420px, 100%) !important;
    max-width: 420px !important;
    padding: 18px !important;
    border: 1px solid rgba(126, 153, 190, 0.5);
    border-radius: 18px;
    background: rgb(23 31 43) !important;
    color: white;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
    box-sizing: border-box;
}

.kg-app-v2 #chat-create-choice-modal .modal-header,
.kg-app-v2 #create-group-modal .modal-header,
.kg-app-v2 #create-channel-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.kg-app-v2 #chat-create-choice-modal .modal-header h3,
.kg-app-v2 #create-group-modal .modal-header h3,
.kg-app-v2 #create-channel-modal .modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 900;
}

.kg-app-v2 #chat-create-choice-modal .close-btn,
.kg-app-v2 #create-group-modal .close-btn,
.kg-app-v2 #create-channel-modal .close-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(52, 60, 99, 0.9);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
}

.kg-app-v2 #create-group-modal label,
.kg-app-v2 #create-channel-modal label {
    display: block;
    margin-bottom: 8px;
    color: rgba(220, 232, 255, 0.78);
    font-weight: 800;
}

.kg-app-v2 #create-group-modal input[type="text"],
.kg-app-v2 #create-channel-modal input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(126, 153, 190, 0.38);
    border-radius: 12px;
    outline: none;
    background: rgba(12, 19, 31, 0.92);
    color: white;
    box-sizing: border-box;
}

.kg-app-v2 #group-avatar-preview,
.kg-app-v2 #channel-avatar-preview {
    border: 2px solid rgba(126, 153, 190, 0.46);
    background: rgba(12, 19, 31, 0.92);
}

.kg-app-v2 .chat-create-choice-actions {
    display: grid;
    gap: 10px;
}

.kg-app-v2 .chat-create-choice-actions button,
.kg-app-v2 #create-group-modal button[onclick="createGroup()"],
.kg-app-v2 #create-channel-modal button[onclick="createChannel()"] {
    width: 100% !important;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: #343c63;
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.kg-app-v2 .chat-create-choice-actions button:hover,
.kg-app-v2 #create-group-modal button[onclick="createGroup()"]:hover,
.kg-app-v2 #create-channel-modal button[onclick="createChannel()"]:hover {
    background: #435078;
}

@media (min-width: 1001px) {
    .kg-app-v2 #chat-panel {
        width: 20%;
        min-width: 300px;
        max-width: 405px;
    }

    .kg-app-v2 #chats-list {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-content: flex-start;
        justify-content: flex-start;
        gap: 0;
        min-height: 0;
    }

    .kg-app-v2 .chat-item {
        flex: 0 0 auto;
        min-height: 62px;
        max-height: 74px;
        grid-template-columns: 58px minmax(0, 1fr) auto;
    }

    .kg-app-v2 #chat-window {
        left: max(20%, 300px);
        right: 0;
        width: calc(100% - max(20%, 300px));
    }

    .kg-app-v2 #channel-window,
    .kg-app-v2 .channel-discussion-modal {
        left: max(20%, 300px);
        right: 0;
        width: calc(100% - max(20%, 300px));
    }

    .kg-app-v2 #chat-window .chat-footer-parent {
        left: 60%;
        width: min(760px, calc(100vw - max(20%, 300px) - 32px));
    }

    .kg-app-v2 .channel-discussion-footer-parent {
        left: 50%;
        width: min(760px, calc(100% - 32px));
    }
}
