.collabPopupContainer,
.toolsPopupContainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0);
    user-select: none;
    pointer-events: none;
    z-index: 10000000;
    position: fixed;
    overflow-y: scroll;
    box-sizing: border-box;
    opacity: 1;
    
    visibility: hidden;
    transition: scale 0.3s,
        opacity 0.3s,
        filter 0.3s,
        backdrop-filter 0.3s,
        background-color 0.3s,
        transform 0.3s;
    transition-timing-function: linear(0, 0.02 2.1%, 0.081 4.7%, 0.467 15.7%, 0.645, 0.778 28.5%, 0.872 35.8%, 0.909 40.1%, 0.938 44.9%, 0.977 56.5%, 0.994 72.3%, 1);
}

.collabPopupsTogether,
.toolsPopupsTogether {
    display: flex;
    flex-direction: column;
    opacity: 0;
    scale: 0.6;
    max-width: 550px;
    min-width: 250px;
    max-height: 90vh;
    margin: 12pt;
    padding: 24px;
    box-sizing: border-box;
    border-radius: 48px;
    box-shadow: 0 55px 182px 0 rgba(0, 0, 0, 0.09), 0 19px 36px -4px rgba(0, 0, 0, 0.03), 0 4px 7px -4px rgba(0, 0, 0, 0.11);
    transition: scale 0.3s,
        opacity 0.3s,
        filter 0.3s,
        backdrop-filter 0.3s,
        background-color 0.3s,
        transform 0.3s;
    transition-timing-function: linear(0, 0.02 2.1%, 0.081 4.7%, 0.467 15.7%, 0.645, 0.778 28.5%, 0.872 35.8%, 0.909 40.1%, 0.938 44.9%, 0.977 56.5%, 0.994 72.3%, 1);
    gap: 18px;
}

.toolsPopupContainer.visible,
.collabPopupContainer.visible {
    visibility: visible;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(25px);
    opacity: 1;
    cursor: var(--cursor-close) !important;
}

.toolsPopupsTogether.visible,
.collabPopupsTogether.visible {
    scale: 1.0;
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

.collabPopupsTogether::before,
.toolsPopupsTogether::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 44px;
    mask-border: url("../img/squircleMask.svg") 49% fill / 66px;
    background: #FCFCFD;
    border: 1.46px solid rgba(0, 0, 0, 0.03);
    border: 1.46px solid rgba(0, 0, 0, 0.03);
    box-shadow: inset 0 -4px 4px -1px rgba(255, 255, 255, 0.54), inset 0 3px 10px -1px rgba(255, 255, 255, 0.50), inset 0 -18px 63px -4px rgba(0, 0, 0, 0.04), 0 41px 151px 0 rgba(0, 0, 0, 0.09), 0 4px 7px -4px rgba(0, 0, 0, 0.11);
    background-size: cover;
    background-position: center;
    will-change: auto;
    z-index: -1231;
}

#collabCloseWithSpacer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    margin: 0;
}

#collabClose,
#toolsClose {
    scale: 1;
    opacity: 1;
    pointer-events: all;
    filter: blur(0px);
    cursor: var(--cursor-close) !important;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    z-index: 10000;
    border-radius: 100%;
    transition: scale 0.3s, opacity 0.3s, filter 0.3s, transform 0.05s linear;
    box-shadow: inset -2px -1px 5px -4px rgba(255, 255, 255, 0.15), inset 0.5px 0.5px 0.5px 0 rgba(255, 255, 255, 0.15), inset 1px 1px 5px -1px rgba(255, 255, 255, 0.4);
}

#collabTitle {
    margin-left: 0;
    margin-top: 8pt;
    margin-bottom: 0;
    font-size: 1.6em;
}

#collabClose:hover,
#toolsClose:hover {
    scale: 1.2;
    background-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

#collabClose:active,
#toolsClose:active {
    scale: 0.8;
    background-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.collaboratorsList {
    display: flex;
    flex-direction: column;
    gap: 8pt;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow: visible;
    /* scroll-snap-type: y mandatory; */
    max-height: 100vh;
    box-sizing: border-box
}

.collabRow,
.listOfToolsSingleRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    margin: 0;
    text-decoration: none;
    color: var(--color-text-dark);
    border-radius: 14pt;
    mask-border: url("../img/squircleMask.svg") 49% fill / 28px;
    padding: 16px;
    will-change: transform;
    box-sizing: border-box;
    transition: scale 0.3s, opacity 0.3s, background-color 0.3s, transform 0.075s linear;
    background: #FFFFFF;
    border: 1.46px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    min-width: 350px;
}

.collabPopupDescription {
    display: flex;
    text-decoration: none;
    color: var(--color-text-dark);
    mask-border: url("../img/squircleMask.svg") 49% fill / 28px;
    will-change: transform;
    border-radius: 14pt;
    transition: scale 0.3s, opacity 0.3s, background-color 0.3s, transform 0.075s linear;
    cursor: var(--cursor-link) !important;
    padding: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    background: #FFFFFF;
    border: 1.46px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
}


.collabPopupContents {
    display: flex;
    flex-direction: column;
    gap: 8pt;
    overflow-y: scroll;
    width: 100%;
    box-sizing: border-box;
    padding: 4pt;
}

.collabRow {
    cursor: var(--cursor-link) !important;
}

.listOfToolsSingleRow,
.listOfToolsSingleRow p {
    cursor: var(--cursor-default) !important;
}

.collabRow:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
    scale: 1.02;
}

.collabRow:active {
    background-color: rgba(0, 0, 0, 0.2);
    scale: 0.95;
}

.collabRow p {
    padding-top: 0pt;
    padding-bottom: 0pt;
    cursor: var(--cursor-link) !important;
}

#collabDesc {
    padding-bottom: 0;
}


.infoLeadingIcon {
    width: 44px;
    height: 44px;
}

.toolIconImage {
    width: 44px;
    height: 44px;
}

.toolNamePopup {
    font-weight: 600;
    opacity: 1;
}

@media (max-width: 550px) {

    .collabPopupContainer,
    .toolsPopupContainer {
        align-items: end;
        height: 100vh;
        transition: scale 0.4s,
            opacity 0.4s,
            filter 0.4s,
            backdrop-filter 0.4s,
            background-color 0.4s,
            transform 0.4s;
        transition-timing-function: linear(0, 0.02 2.1%, 0.081 4.7%, 0.467 15.7%, 0.645, 0.778 28.5%, 0.872 35.8%, 0.909 40.1%, 0.938 44.9%, 0.977 56.5%, 0.994 72.3%, 1);
    }

    .collabPopupsTogether,
    .toolsPopupsTogether {
        margin: 0;
        box-shadow: none;
        border: none;
        height: calc(100vh - 60px);
        border-radius: 48px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        mask-border: none;
        width: 100%;
        padding-bottom: 0;
        scale: 1;
        transform: translateY(100vh);
        transition: scale 0.4s,
            opacity 0.4s,
            filter 0.4s,
            backdrop-filter 0.4s,
            background-color 0.4s,
            transform 0.4s;
        transition-timing-function: linear(0, 0.02 2.1%, 0.081 4.7%, 0.467 15.7%, 0.645, 0.778 28.5%, 0.872 35.8%, 0.909 40.1%, 0.938 44.9%, 0.977 56.5%, 0.994 72.3%, 1);
    }

    .collabPopupsTogether::before,
    .toolsPopupsTogether::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 44px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        mask-border: url("../img/squircleMaskTop.svg") 49% fill / 66px;
        background: #f2f2f7;
        border: 1.46px solid rgba(0, 0, 0, 0.03);
        border: 1.46px solid rgba(0, 0, 0, 0.03);
        box-shadow: inset 0 -4px 4px -1px rgba(255, 255, 255, 0.54), inset 0 3px 10px -1px rgba(255, 255, 255, 0.50), inset 0 -18px 63px -4px rgba(0, 0, 0, 0.04), 0 41px 151px 0 rgba(0, 0, 0, 0.09), 0 4px 7px -4px rgba(0, 0, 0, 0.11);
        background-size: cover;
        background-position: center;
        will-change: auto;
        z-index: -1231;
    }

    .toolsPopupContainer.visible,
    .collabPopupContainer.visible {
        visibility: visible;
        pointer-events: auto;
        background-color: rgba(0, 0, 0, 0.125);
        backdrop-filter: blur(0px);
        opacity: 1;

    }

    .toolsPopupsTogether.visible,
    .collabPopupsTogether.visible {
        scale: 1.0;
        opacity: 1;
        filter: blur(0);
        pointer-events: auto;
        transform: translateY(0);
    }

    .collaboratorsList {
        width: 100%;
    }

    .collaboratorsList:last-child {
       margin-bottom: 2em;
    }

    .listOfToolsSingleRow {
        margin: 0;
        width: 100%;
        min-width: 150px
    }

    .collabRow,
    .listOfToolsSingleRow {
        border: 1.46px solid rgba(0, 0, 0, 0.02);
    }

}