/* XSSM creation flow */
#new-chat-modal.create-overlay {
    padding: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    background:
        radial-gradient(circle at 12% 10%, rgba(99, 102, 241, .2), transparent 34%),
        radial-gradient(circle at 88% 88%, rgba(168, 85, 247, .14), transparent 32%),
        rgba(2, 4, 12, .76) !important;
    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
}

#new-chat-modal .create-chat-card {
    width: min(1040px, calc(100vw - 56px)) !important;
    max-width: 1040px !important;
    height: min(760px, calc(100dvh - 56px)) !important;
    max-height: 760px !important;
    min-height: min(640px, calc(100dvh - 56px));
    padding: 0 !important;
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .17) !important;
    border-radius: 36px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), transparent 33%),
        rgba(8, 11, 23, .84) !important;
    backdrop-filter: blur(60px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(60px) saturate(190%) !important;
    box-shadow:
        0 44px 140px rgba(0, 0, 0, .72),
        0 0 86px rgba(99, 102, 241, .14),
        inset 0 1.5px 1px rgba(255, 255, 255, .26),
        inset 0 -1px 1px rgba(0, 0, 0, .3) !important;
}

#new-chat-modal .create-chat-card::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
    border-radius: inherit !important;
    background:
        radial-gradient(circle at 26% -12%, rgba(129, 140, 248, .17), transparent 34%),
        linear-gradient(120deg, rgba(255, 255, 255, .055), transparent 25%) !important;
}

#new-chat-modal .create-chat-card::after {
    display: none !important;
}

#new-chat-modal .cch-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
}

#new-chat-modal .cch-glow-one {
    width: 330px;
    height: 330px;
    top: -220px;
    left: 100px;
    background: rgba(99, 102, 241, .27);
}

#new-chat-modal .cch-glow-two {
    width: 260px;
    height: 260px;
    right: -150px;
    bottom: -150px;
    background: rgba(168, 85, 247, .17);
}

#new-chat-modal .cch-handle {
    display: none;
}

#new-chat-modal .cch-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 23px 26px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .023);
}

#new-chat-modal .cch-header-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 20px;
    color: #e0e5ff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .035)),
        rgba(99, 102, 241, .15);
    box-shadow:
        0 14px 32px rgba(40, 45, 130, .24),
        inset 0 1px 1px rgba(255, 255, 255, .28);
    font-size: 1.24rem;
    transition: color .25s ease, background .25s ease, transform .3s ease;
}

#new-chat-modal .cch-header-copy {
    min-width: 0;
    flex: 1 1 auto;
}

#new-chat-modal .cch-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: rgba(191, 199, 255, .72);
    font-size: .67rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#new-chat-modal .cch-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.45rem, 3vw, 1.88rem) !important;
    font-weight: 780 !important;
    line-height: 1.08;
    letter-spacing: -.04em !important;
    text-shadow: none !important;
}

#new-chat-modal .cch-header-copy p {
    margin: 6px 0 0;
    color: rgba(216, 222, 240, .59);
    font-size: .81rem;
    line-height: 1.42;
}

#new-chat-modal .cch-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    color: rgba(235, 239, 255, .78);
    background: rgba(255, 255, 255, .065);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12);
    cursor: pointer;
    font-size: .94rem;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

#new-chat-modal .cch-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
    transform: rotate(4deg) scale(1.04);
}

#new-chat-modal .cch-layout {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
}

#new-chat-modal .cch-sidebar {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 16px 18px;
    border-right: 1px solid rgba(255, 255, 255, .075);
    background: rgba(1, 4, 14, .2);
}

#new-chat-modal .cch-segmented {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#new-chat-modal .cch-seg {
    width: 100%;
    min-height: 66px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 18px;
    color: rgba(220, 225, 243, .62);
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

#new-chat-modal .cch-seg:hover {
    color: rgba(245, 247, 255, .92);
    background: rgba(255, 255, 255, .045);
}

#new-chat-modal .cch-seg.active {
    color: #fff;
    border-color: rgba(255, 255, 255, .115);
    background:
        linear-gradient(120deg, rgba(99, 102, 241, .18), rgba(255, 255, 255, .055)),
        rgba(255, 255, 255, .025);
    box-shadow:
        0 13px 30px rgba(0, 0, 0, .15),
        inset 0 1px 1px rgba(255, 255, 255, .1);
}

#new-chat-modal .cch-seg-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    color: rgba(199, 207, 238, .66);
    background: rgba(255, 255, 255, .045);
    font-size: .86rem;
}

#new-chat-modal .cch-seg.active .cch-seg-icon {
    color: #dfe4ff;
    border-color: rgba(146, 157, 255, .27);
    background: rgba(99, 102, 241, .18);
}

#new-chat-modal .cch-seg-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#new-chat-modal .cch-seg-copy strong {
    color: inherit;
    font-size: .85rem;
    font-weight: 680;
    line-height: 1.1;
}

#new-chat-modal .cch-seg-copy small {
    overflow: hidden;
    color: rgba(201, 208, 231, .43);
    font-size: .66rem;
    font-weight: 480;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#new-chat-modal .cch-seg-arrow {
    flex: 0 0 auto;
    color: rgba(211, 218, 241, .25);
    font-size: .62rem;
    transition: transform .2s ease, color .2s ease;
}

#new-chat-modal .cch-seg.active .cch-seg-arrow {
    color: rgba(201, 209, 255, .68);
    transform: translateX(2px);
}

#new-chat-modal .cch-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 17px;
    background: rgba(255, 255, 255, .025);
}

#new-chat-modal .cch-privacy-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: rgba(166, 178, 255, .78);
    background: rgba(99, 102, 241, .1);
    font-size: .7rem;
}

#new-chat-modal .cch-privacy-note strong {
    display: block;
    margin: 1px 0 4px;
    color: rgba(231, 235, 249, .72);
    font-size: .69rem;
    font-weight: 660;
}

#new-chat-modal .cch-privacy-note p {
    margin: 0;
    color: rgba(198, 205, 229, .43);
    font-size: .63rem;
    line-height: 1.42;
}

#new-chat-modal .cch-workspace {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

#new-chat-modal .cch-body {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 22px 24px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

#new-chat-modal .cch-body::-webkit-scrollbar,
#new-chat-modal .search-results::-webkit-scrollbar {
    width: 5px;
}

#new-chat-modal .cch-body::-webkit-scrollbar-thumb,
#new-chat-modal .search-results::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(255, 255, 255, .13);
}

#new-chat-modal .cch-panel[hidden] {
    display: none !important;
}

#new-chat-modal .cch-panel.active {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    animation: cchPanelIn .3s cubic-bezier(.2, .76, .32, 1) both;
}

@keyframes cchPanelIn {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

#new-chat-modal .cch-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

#new-chat-modal .cch-step {
    display: block;
    margin-bottom: 3px;
    color: rgba(171, 181, 252, .62);
    font-size: .62rem;
    font-weight: 720;
    letter-spacing: .11em;
    text-transform: uppercase;
}

#new-chat-modal .cch-panel-heading h3 {
    margin: 0;
    color: #f7f8ff;
    font-size: 1.08rem;
    font-weight: 720;
    letter-spacing: -.025em;
}

#new-chat-modal .cch-panel-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(146, 157, 255, .16);
    border-radius: 11px;
    color: rgba(197, 205, 255, .72);
    background: rgba(99, 102, 241, .08);
    font-size: .65rem;
    font-weight: 680;
}

#new-chat-modal .cch-search {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 17px;
    background: rgba(255, 255, 255, .052);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .06);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

#new-chat-modal .cch-search:focus-within {
    border-color: rgba(139, 151, 255, .52);
    background: rgba(255, 255, 255, .075);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, .11),
        inset 0 1px 1px rgba(255, 255, 255, .1);
}

#new-chat-modal .cch-search > i {
    flex: 0 0 auto;
    color: rgba(171, 181, 252, .68);
    font-size: .86rem;
}

#new-chat-modal .cch-search input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #f7f8ff;
    background: transparent;
    font: inherit;
    font-size: .86rem;
    appearance: none;
    -webkit-appearance: none;
}

#new-chat-modal .cch-search input::-webkit-search-cancel-button {
    display: none;
}

#new-chat-modal .cch-search input::placeholder {
    color: rgba(205, 212, 233, .44);
    opacity: 1;
}

#new-chat-modal .cch-search-loader {
    display: none;
    flex: 0 0 auto;
    color: rgba(174, 185, 255, .75);
    font-size: .76rem;
}

#new-chat-modal .cch-search-loader.active {
    display: inline-flex;
}

#new-chat-modal .search-results {
    width: 100%;
    max-height: 278px;
    margin-top: 9px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 19px;
    background: rgba(1, 4, 14, .27);
}

#new-chat-modal .search-result-item {
    width: 100%;
    min-height: 59px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 3px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

#new-chat-modal .search-result-item:last-child {
    margin-bottom: 0;
}

#new-chat-modal .search-result-item:hover,
#new-chat-modal .search-result-item:focus-visible {
    outline: 0;
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .055);
}

#new-chat-modal .search-result-item:active {
    transform: scale(.99);
}

#new-chat-modal .search-result-item.selected {
    border-color: rgba(139, 151, 255, .25);
    background: rgba(99, 102, 241, .13);
}

#new-chat-modal .search-result-avatar,
#new-chat-modal .cch-selected-avatar {
    width: 43px;
    height: 43px;
    min-width: 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    color: #f4f6ff;
    background: linear-gradient(145deg, rgba(129, 140, 248, .42), rgba(99, 102, 241, .17));
    box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
    font-size: .84rem;
    font-weight: 760;
}

#new-chat-modal .search-result-avatar img,
#new-chat-modal .cch-selected-avatar img,
#new-chat-modal .cm-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

#new-chat-modal .search-result-info {
    min-width: 0;
    flex: 1 1 auto;
}

#new-chat-modal .search-result-name {
    overflow: hidden;
    color: #f5f7ff;
    font-size: .84rem;
    font-weight: 660;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#new-chat-modal .search-result-status {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(204, 211, 233, .49);
    font-size: .69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#new-chat-modal .search-result-action {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: rgba(177, 188, 255, .68);
    background: rgba(99, 102, 241, .08);
    font-size: .62rem;
}

#new-chat-modal .cch-search-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 78px;
    color: rgba(205, 212, 235, .52);
    font-size: .76rem;
    text-align: center;
}

#new-chat-modal .cch-empty-hint {
    flex: 1 1 auto;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}

#new-chat-modal .cch-empty-hint[hidden] {
    display: none !important;
}

#new-chat-modal .cch-empty-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    color: rgba(201, 209, 255, .74);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)),
        rgba(99, 102, 241, .08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1);
    font-size: 1.25rem;
}

#new-chat-modal .cch-empty-hint strong {
    color: rgba(242, 244, 253, .82);
    font-size: .86rem;
    font-weight: 680;
}

#new-chat-modal .cch-empty-hint p {
    max-width: 310px;
    margin: 7px 0 0;
    color: rgba(202, 209, 231, .45);
    font-size: .74rem;
    line-height: 1.48;
}

#new-chat-modal .cch-selected-user {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(139, 151, 255, .25);
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(99, 102, 241, .14), rgba(255, 255, 255, .035));
}

#new-chat-modal .cch-selected-user[hidden] {
    display: none !important;
}

#new-chat-modal .cch-selected-copy {
    min-width: 0;
    flex: 1 1 auto;
}

#new-chat-modal .cch-selected-copy strong,
#new-chat-modal .cch-selected-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#new-chat-modal .cch-selected-copy strong {
    color: #f6f7ff;
    font-size: .84rem;
    font-weight: 670;
}

#new-chat-modal .cch-selected-copy span {
    margin-top: 3px;
    color: rgba(200, 209, 247, .57);
    font-size: .68rem;
}

#new-chat-modal .cch-selected-check {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #cbd3ff;
    background: rgba(99, 102, 241, .17);
    font-size: .72rem;
}

#new-chat-modal .cch-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 16px;
}

#new-chat-modal .cch-field-primary {
    margin-bottom: 18px;
}

#new-chat-modal .cch-label-line,
#new-chat-modal .cch-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#new-chat-modal .cch-label-line label,
#new-chat-modal .cch-section-label > span {
    color: rgba(225, 229, 244, .68);
    font-size: .68rem;
    font-weight: 680;
    letter-spacing: .045em;
    text-transform: uppercase;
}

#new-chat-modal .cch-label-line > span,
#new-chat-modal .cch-section-label small {
    color: rgba(195, 202, 225, .38);
    font-size: .64rem;
    font-weight: 520;
    letter-spacing: 0;
    text-transform: none;
}

#new-chat-modal .cch-section-label {
    margin: 2px 1px 9px;
}

#new-chat-modal .cch-input-shell {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 16px;
    background: rgba(255, 255, 255, .052);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .055);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

#new-chat-modal .cch-input-shell:focus-within {
    border-color: rgba(139, 151, 255, .48);
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1);
}

#new-chat-modal .cch-input-shell > i {
    color: rgba(171, 181, 252, .62);
    font-size: .82rem;
}

#new-chat-modal .cch-input-shell input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #f7f8ff;
    background: transparent;
    font: inherit;
    font-size: .85rem;
}

#new-chat-modal .cch-field textarea {
    width: 100%;
    min-height: 88px;
    max-height: 150px;
    padding: 12px 14px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 16px;
    outline: 0;
    color: #f7f8ff;
    background: rgba(255, 255, 255, .052);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .055);
    font: inherit;
    font-size: .84rem;
    line-height: 1.45;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

#new-chat-modal .cch-field textarea:focus {
    border-color: rgba(139, 151, 255, .48);
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1);
}

#new-chat-modal .cch-input-shell input::placeholder,
#new-chat-modal .cch-field textarea::placeholder {
    color: rgba(205, 212, 233, .4);
    opacity: 1;
}

#new-chat-modal .cch-field-help {
    margin: 0 2px;
    color: rgba(196, 204, 228, .4);
    font-size: .65rem;
    line-height: 1.4;
}

#new-chat-modal .cch-members {
    width: 100%;
    min-height: 54px;
    max-height: 112px;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 17px;
    background: rgba(1, 4, 14, .22);
}

#new-chat-modal .cch-members:empty {
    display: flex;
    align-items: center;
}

#new-chat-modal .cch-members:empty::before {
    content: "Участники пока не выбраны";
    padding: 0 6px;
    color: rgba(198, 206, 231, .4);
    font-size: .7rem;
}

#new-chat-modal .cch-member {
    min-width: 0;
    max-width: 190px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border: 1px solid rgba(139, 151, 255, .2);
    border-radius: 13px;
    color: rgba(241, 244, 255, .9);
    background: rgba(99, 102, 241, .12);
    font-size: .7rem;
    font-weight: 620;
}

#new-chat-modal .cch-member-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#new-chat-modal .cch-member .cm-avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(145deg, #818cf8, #6366f1);
    font-size: .59rem;
    font-weight: 750;
}

#new-chat-modal .cch-member .cm-close {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 0;
    border-radius: 8px;
    color: rgba(224, 229, 248, .5);
    background: transparent;
    cursor: pointer;
    font-size: .61rem;
}

#new-chat-modal .cch-member .cm-close:hover {
    color: #fca5a5;
    background: rgba(248, 113, 113, .09);
}

#new-chat-modal .cch-inline-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 9px 3px 0;
    color: rgba(196, 204, 229, .43);
    font-size: .67rem;
}

#new-chat-modal .cch-channel-top {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 3px;
}

#new-chat-modal .cch-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
}

#new-chat-modal .cch-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px dashed rgba(177, 187, 248, .33);
    border-radius: 24px;
    color: rgba(199, 208, 252, .72);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)),
        rgba(99, 102, 241, .08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18), inset 0 1px 1px rgba(255, 255, 255, .1);
    cursor: pointer;
    font-size: 1.15rem;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

#new-chat-modal .cch-avatar:hover {
    border-color: rgba(164, 175, 255, .65);
    background-color: rgba(99, 102, 241, .13);
    transform: translateY(-1px);
}

#new-chat-modal .cch-avatar-label {
    padding: 0;
    border: 0;
    color: rgba(180, 190, 255, .65);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: .65rem;
    font-weight: 620;
}

#new-chat-modal .cch-channel-name-field {
    margin: 0;
}

#new-chat-modal .cch-type-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

#new-chat-modal .cch-type-btn {
    min-width: 0;
    min-height: 68px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 17px;
    color: rgba(220, 225, 243, .65);
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

#new-chat-modal .cch-type-btn:hover {
    color: rgba(245, 247, 255, .9);
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .06);
}

#new-chat-modal .cch-type-btn.active {
    color: #fff;
    border-color: rgba(139, 151, 255, .28);
    background: linear-gradient(120deg, rgba(99, 102, 241, .15), rgba(255, 255, 255, .035));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08);
}

#new-chat-modal .cch-type-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: rgba(190, 200, 246, .65);
    background: rgba(255, 255, 255, .05);
    font-size: .75rem;
}

#new-chat-modal .cch-type-btn.active .cch-type-icon {
    color: #dce2ff;
    background: rgba(99, 102, 241, .15);
}

#new-chat-modal .cch-type-btn > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#new-chat-modal .cch-type-btn strong {
    color: inherit;
    font-size: .75rem;
    font-weight: 660;
}

#new-chat-modal .cch-type-btn small {
    overflow: hidden;
    color: rgba(198, 205, 229, .43);
    font-size: .61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#new-chat-modal .cch-type-check {
    color: rgba(167, 179, 255, .12);
    font-size: .75rem;
}

#new-chat-modal .cch-type-btn.active .cch-type-check {
    color: #aeb9ff;
}

#new-chat-modal .cch-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px 17px;
    border-top: 1px solid rgba(255, 255, 255, .075);
    background: rgba(1, 4, 14, .18);
}

#new-chat-modal .cch-footer-status {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    color: rgba(198, 205, 229, .47);
    font-size: .68rem;
    white-space: nowrap;
}

#new-chat-modal .cch-footer-status i {
    flex: 0 0 auto;
    color: rgba(163, 174, 255, .62);
}

#new-chat-modal .cch-footer-status span {
    overflow: hidden;
    text-overflow: ellipsis;
}

#new-chat-modal .cch-footer-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
}

#new-chat-modal .cch-cancel,
#new-chat-modal .cch-submit {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    border-radius: 14px;
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
    font-weight: 660;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#new-chat-modal .cch-cancel {
    border: 1px solid transparent;
    color: rgba(220, 225, 243, .58);
    background: transparent;
}

#new-chat-modal .cch-cancel:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .05);
}

#new-chat-modal .cch-submit {
    min-width: 142px;
    border: 1px solid rgba(181, 190, 255, .22);
    color: #fff;
    background: linear-gradient(135deg, #6670e8, #7d66dc 54%, #9b60d6);
    box-shadow:
        0 10px 25px rgba(80, 72, 190, .3),
        inset 0 1px 1px rgba(255, 255, 255, .25);
}

#new-chat-modal .cch-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 13px 30px rgba(91, 76, 207, .4),
        inset 0 1px 1px rgba(255, 255, 255, .28);
}

#new-chat-modal .cch-submit:active:not(:disabled) {
    transform: scale(.97);
}

#new-chat-modal .cch-submit:disabled {
    opacity: .38;
    cursor: not-allowed;
    filter: saturate(.55);
    box-shadow: none;
}

#new-chat-modal .cch-submit[hidden] {
    display: none !important;
}

#new-chat-modal button:focus-visible,
#new-chat-modal input:focus-visible,
#new-chat-modal textarea:focus-visible {
    outline: 2px solid rgba(174, 185, 255, .92);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    #new-chat-modal.create-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
        background: rgba(2, 4, 12, .72) !important;
    }

    #new-chat-modal .create-chat-card {
        width: 100vw !important;
        max-width: none !important;
        height: min(94dvh, 860px) !important;
        max-height: 94dvh !important;
        min-height: min(650px, 94dvh) !important;
        margin: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;
        border-radius: 30px 30px 0 0 !important;
        transform: translateY(28px) scale(.99) !important;
        box-shadow:
            0 -24px 80px rgba(0, 0, 0, .58),
            inset 0 1.5px 1px rgba(255, 255, 255, .23) !important;
    }

    #new-chat-modal.active .create-chat-card {
        transform: translateY(0) scale(1) !important;
    }

    #new-chat-modal .cch-handle {
        position: absolute;
        z-index: 10;
        top: 8px;
        left: 50%;
        width: 38px;
        height: 5px;
        display: block;
        margin: 0;
        border-radius: 10px;
        background: rgba(255, 255, 255, .22);
        transform: translateX(-50%);
    }

    #new-chat-modal .cch-header {
        gap: 12px;
        padding: 24px 16px 13px !important;
    }

    #new-chat-modal .cch-header-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 15px;
        font-size: 1rem;
    }

    #new-chat-modal .cch-eyebrow,
    #new-chat-modal .cch-header-copy p {
        display: none;
    }

    #new-chat-modal .cch-title {
        font-size: 1.36rem !important;
    }

    #new-chat-modal .cch-close {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    #new-chat-modal .cch-layout {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    #new-chat-modal .cch-sidebar {
        flex: 0 0 auto;
        display: block;
        padding: 10px 12px 9px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .065);
        background: rgba(1, 4, 14, .1);
    }

    #new-chat-modal .cch-segmented {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, .075);
        border-radius: 17px;
        background: rgba(1, 4, 14, .24);
    }

    #new-chat-modal .cch-seg {
        min-height: 42px;
        justify-content: center;
        gap: 6px;
        padding: 5px 7px;
        border-radius: 13px;
        text-align: center;
    }

    #new-chat-modal .cch-seg.active {
        background: rgba(99, 102, 241, .16);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, .09);
    }

    #new-chat-modal .cch-seg-icon {
        width: auto;
        height: auto;
        flex-basis: auto;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        font-size: .68rem;
    }

    #new-chat-modal .cch-seg-copy {
        flex: 0 1 auto;
    }

    #new-chat-modal .cch-seg-copy strong {
        font-size: .7rem;
    }

    #new-chat-modal .cch-seg-copy small,
    #new-chat-modal .cch-seg-arrow,
    #new-chat-modal .cch-privacy-note {
        display: none;
    }

    #new-chat-modal .cch-workspace {
        flex: 1 1 auto;
    }

    #new-chat-modal .cch-body {
        padding: 16px 13px 14px;
        scrollbar-gutter: auto;
    }

    #new-chat-modal .cch-panel-heading {
        margin-bottom: 13px;
    }

    #new-chat-modal .cch-empty-hint {
        min-height: 180px;
    }

    #new-chat-modal .cch-channel-top {
        grid-template-columns: 83px minmax(0, 1fr);
        gap: 12px;
    }

    #new-chat-modal .cch-avatar {
        width: 67px;
        height: 67px;
        border-radius: 21px;
    }

    #new-chat-modal .cch-type-group {
        grid-template-columns: 1fr;
    }

    #new-chat-modal .cch-type-btn {
        min-height: 58px;
    }

    #new-chat-modal .cch-footer {
        gap: 9px;
        padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    }

    #new-chat-modal .cch-footer-status {
        display: none;
    }

    #new-chat-modal .cch-footer-actions {
        width: 100%;
    }

    #new-chat-modal .cch-cancel {
        flex: 0 0 auto;
        padding: 0 13px;
    }

    #new-chat-modal .cch-submit {
        min-width: 0;
        flex: 1 1 auto;
    }
}

@media (max-width: 390px) {
    #new-chat-modal .cch-seg {
        gap: 4px;
        padding-right: 4px;
        padding-left: 4px;
    }

    #new-chat-modal .cch-seg-icon {
        display: none;
    }

    #new-chat-modal .cch-panel-badge {
        padding: 0 8px;
    }

    #new-chat-modal .cch-channel-top {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 9px;
    }

    #new-chat-modal .cch-avatar {
        width: 62px;
        height: 62px;
    }

    #new-chat-modal .cch-avatar-label {
        font-size: .58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #new-chat-modal .cch-panel.active,
    #new-chat-modal .cch-seg,
    #new-chat-modal .cch-close,
    #new-chat-modal .cch-submit,
    #new-chat-modal .cch-type-btn,
    #new-chat-modal .search-result-item {
        animation: none !important;
        transition: none !important;
    }
}
