textarea {
    resize: none !important;
    overflow: hidden !important;
}

#cnt, #innerCnt {
    overflow-x: hidden;
}

#innerCnt.user-fund-list {
    display: flex;
    flex-direction: column;
}

.user-fund .number {
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -1px;
}

.user-fund .card {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.12);
}

.user-fund .card .title {
    font-size: 18px;
    font-weight: 700;
    line-height: 134%;
    margin-bottom: 14px;
}

.user-fund .card .info {
    padding: 16px;
    margin-bottom: 0 !important;
    border-radius: 8px;
    border: 1px solid var(--gray2-color);
    background-color: var(--gray-background-color);
    font-size: 14px;
}

.user-fund .card .info .row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-fund .card .info .row .label {
    display: flex;
    align-items: center;

    .nickname {
        display: inline-block;
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.user-fund .card .info .row .amount {
    flex: 1;
    text-align: right;
    font-weight: 500;
}

.user-fund-top {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-image: '';
    background-size: cover;
    background-position: center;
    background-color: var(--gray1-color)
}

.user-fund-top .menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: end;
    height: 100%;
    padding: 24px 20px 44px;
    right: 0;
    z-index: 1;

    .add-main-image-btn {
        display: none;
        align-items: center;
        width: 169px;
        padding: 16px 20px;
        border-radius: 12px;
        background-color: var(--white-color);
        color: var(--gray9-color);
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        gap: 8px;
        cursor: pointer;
    }

    .add-main-image-btn.active { display: flex; }
}

.delete-main-image-btn, .delete-image-btn {
    display: none;
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    background-color: var(--gray1-color);
    cursor: pointer;
}

.delete-main-image-btn.active, .delete-image-btn.active {
    display: block;
}

.add-main-image-btn img, .add-image-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(33%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(92%) contrast(90%);
}

.user-fund-top .content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.user-fund-top .content .title {
    width: 280px;
    max-height: 72px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray0-color);
    word-break: keep-all;
    line-break: anywhere;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.user-fund-top .content .subtitle {
    display: flex;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 20px;
    font-size: 14px;
    color: var(--gray3-color);
}

.user-fund-top .content .subtitle span {
    margin-left: 4px;
}

.user-fund-top .content .subtitle img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: -4px;
}

.user-fund-top .edit-title-btn, .user-fund-content .edit-content-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    padding: 5px 12px;
    border-radius: 40px;
    background-color: var(--selected-color);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    gap: 4px;
    cursor: pointer;

    img {
        width: 16px;
        height: 16px;
    }
}

.user-fund-top .edit-title-btn { margin-bottom: 8px; }

.user-fund-owner {
    position: relative;
    display: flex;
    align-items: center;
    width: calc(100% - 32px);
    padding: 14px 0;
    margin: 0 16px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--lightgray2-color);
}

.user-fund-owner.linked {
    cursor: pointer;
}

.user-fund-owner.linked:after {
    position: absolute;
    right: 0;
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url('/assets/images/icon/ic-arrow-right-white-1097bcfd3cd9c8432e69e700f62c08a4.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(49%) sepia(0%) saturate(0%) hue-rotate(0deg);
    margin-left: 6px;
    vertical-align: middle;
}

.user-fund-owner .user-icon {
    width: 44px;
    height: 44px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.user-fund-owner .nickname-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;

    .desc {
        color: var(--gray-color);
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;
    }
}

.user-fund-owner .badge-wrap {
    position: relative;
    display: flex;
    align-items: center;

    .nickname {
        margin-right: 4px;
        font-size: 16px;
        font-weight: 500;
    }

    .badge-icon {
        width: 20px;
        height: 20px;
    }

    .badge-info {
        position: absolute;
        display: none;
        top: 24px;
        width: max-content;
        background-color: var(--white-color);
        padding: 15px;
        border-radius: 8px;
        border: 1px solid var(--gray2-color);
        box-shadow: 0 4px 10px 0 #00000033;
        font-size: 12px;
        color: var(--gray7-color);
        z-index: 1;
    }

    &.has-badge:hover .badge-icon + .badge-info { display: inline-block; }
}

.user-fund-amount {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    gap: 2px;
}

.user-fund-amount .title {
    color: var(--gray6-color);
    font-size: 16px;
    line-height: 26px;
}

.user-fund-amount .amount {
    display: flex;
    align-items: center;
    color: var(--gray9-color);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    gap: 6px;
}

.user-fund-amount .amount .number {
    color: var(--primary-color);
}

.user-fund-tag {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px 0;

    .desc {
        color: var(--gray9-color);
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0.32px;

        b {
            color: var(--primary-color);
            font-weight: 600;
        }
    }

    ul {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        width: 100%;
        gap: 8px 6px;
        align-self: stretch;

        li {
            display: flex;
            height: 35px;
            padding: 10px 12px;
            justify-content: center;
            align-items: center;
            border-radius: 100px;
            border: 1px solid var(--gray-background-color);
            gap: 4px;
        }

        li.fund-map-0 { background-color: var(--gray-background-color); }
        li.fund-map-1 { background-color: var(--fund-map-1-color); }
        li.fund-map-2 { background-color: var(--fund-map-2-color); }
        li.fund-map-3 { background-color: var(--fund-map-3-color); }
        li.fund-map-4 { background-color: var(--fund-map-4-color); }
        li.fund-map-6 { background-color: var(--fund-map-6-color); }
        li.fund-map-7 { background-color: var(--fund-map-7-color); }

        li img {
            width: 16px;
            height: 16px;
        }

        li span {
            color: var(--gray9-color);
            font-size: 14px;
        }
    }
}

.user-fund-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 50px 16px 0;
    gap: 12px;
}

.user-fund-content.first {
    padding: 34px 16px 0;
}

.user-fund-content.last {
    margin-bottom: 50px;
}

.user-fund-content .title {
    display: flex;
    height: 58px;
    padding: 17px 20px;
    border-radius: 12px;
    background-color: var(--gray-background-color);
    color: var(--gray8-color);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}
@media (max-width: 390px) {
    .user-fund-content .title {
        font-size: 16px;
    }
}

.user-fund-content .content {
    padding: 24px 20px;
    border-radius: 16px;
    background-color: var(--white-color);
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.16);
    color: var(--gray9-color);
    font-size: 16px;
    line-height: 160%;
    word-break: keep-all;
    display: flow-root;

    .empty-content { display: none; }
    .filled-content {
        display: block;
        width: 100%;
        line-break: anywhere;
        word-break: keep-all;
    }
}

.user-fund-content .content.empty {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    color: var(--gray6-color);

    .empty-content {
        display: block;
        cursor: pointer;
        flex: 1;
        min-width: 0;
    }
    .filled-content { display: none; }
}

.user-fund-content .content .edit-content-btn {
    width: 70px;
    float: right;
    margin-left: 20px;
}

.user-fund-content .image-wrap {
    position: relative;
}

.user-fund-content .content-img {
    display: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 1px 12px 2px rgba(0, 0, 0, 0.25);
}

.user-fund-content .content-img.active {
    display: block;
}

.user-fund-content .add-image-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 157px;
    height: 157px;
    border-radius: 12px;
    background-color: var(--gray-background-color);
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='12' ry='12' stroke='%23CCCCCCFF' stroke-width='4' stroke-dasharray='9%2c8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    color: var(--gray6-color);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.user-fund-content .add-image-btn.active { display: flex; }

.user-fund-content .delete-image-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

.user-fund-stats {
    width: 100%;
    padding: 34px 20px 0;
    margin-bottom: 20px;
}

.user-fund-stats .card .wrap {
    margin-bottom: 20px;
}

.user-fund-stats .card .wrap .title {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    color: var(--gray7-color);
    font-size: 16px;
    font-weight: 500;
    gap: 4px;
}

.user-fund-stats .card .wrap .title img {
    width: 24px;
    height: 24px;
}

.user-fund-stats .card .wrap .title span {
    margin-top: 2px;
}

.user-fund-stats .card .wrap .value {
    display: flex;
    align-items: center;
    color: var(--gray8-color);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    gap: 6px;
}

.user-fund-stats .row { height: 22px; }

.user-fund-stats .row:first-child { margin-bottom: 2px; }
.user-fund-stats .row:last-child { margin-bottom: 0 !important; }

.user-fund-stats .graph {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-bottom: 12px !important;
    border-radius: 8px;
    border: 1px solid var(--gray3-color);
    gap: 6px;
}

.user-fund-stats .graph .bar-part {
    height: 35px;
    border-radius: 6px;
}

.user-fund-stats .graph .bar-part:nth-child(1) {
    background-color: var(--primary-color);
}

.user-fund-stats .graph .bar-part:nth-child(2) {
    background-color: var(--orange-color);
}

.user-fund-stats .info .row .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.user-fund-stats .info .row .dot.blue {
    background-color: var(--primary-color);
}

.user-fund-stats .info .row .dot.orange {
    background-color: var(--orange-color);
}

.user-fund-divide {
    width: 100%;
    padding: 0 20px;
    margin-bottom: 24px;
}

.user-fund-divide .set-number {
    width: 18px;
    height: 18px;
    border-radius: 9px;
    background-color: var(--gray7-color);
    color: var(--gray0-color);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;   /* 세로 중앙 */
    justify-content: center; /* 가로 중앙 */
}

.user-fund-divide .row {
    height: 20px;
    margin-bottom: 8px;
}

.user-fund-divide .row:last-child { margin-bottom: 0; }

.user-fund-divide .description {
    padding: 0 2px;
    margin-top: 10px;
    color: var(--gray6-color);
    font-size: 12px;
    line-height: 160%;
}

.user-fund-news, .user-fund-comment {
    display: none;
}

.user-fund .progress {
    position: sticky;
    display: flex;
    top: 0;
    width: 100%;
    height: 4px;
    background-color: var(--white-color);
    z-index: 1;
}

.user-fund .progress .active {
    width: 0;
    height: 4px;
    background-color: var(--primary2-color);
    visibility: visible;
    transition: width 0.3s ease;
}

.user-fund .open-wrap {
    display: flex;
    width: 400%;
    height: calc(100% - 4px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.user-fund .slide-step {
    display: flex;
    flex-direction: column;
    width: 25%;
    height: 100%;
    box-sizing: border-box;
}

.user-fund .slide-step .inner {
    flex: 1;
    overflow-y: auto;
    box-sizing: border-box;
}

.user-fund .slide-step .title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px 20px 0;
    color: var(--gray9-color);
    font-size: 20px;
    font-weight: 600;
    line-height: 134%;
}

.user-fund .step1 .title {
    padding: 26px 20px 0;
}

.user-fund .step1 .title b {
    color: var(--primary-color);
    font-weight: 600;
}

.user-fund .step1 .content {
    display: flex;
    justify-content: center;
    flex: 1;
    margin-top: 50px;
}

.user-fund .step2 .title {
    align-items: baseline;
    gap: 4px;

    .subtitle {
        color: var(--gray7-color);
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;
    }
}

.user-fund .step2 .content {
    position: relative;
    flex: 1;
}

.user-fund .step2 .fund-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 26px 20px 70px;
}

.user-fund .step2 .fund-wrap .row {
    display: flex;
    width: 100%;
    gap: 10px;
}

.user-fund .step2 .fund-wrap .fund {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    height: 120px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid var(--gray2-color);
    box-shadow: none;
    background: var(--gray-background-color);
    cursor: pointer;
}

.user-fund .step2 .fund-wrap .fund.active {
    border: 1px solid transparent;
    box-shadow: 0 0 0 2px var(--primary-color);
    background: var(--selected-color);
}

.user-fund .step2 .fund-wrap .fund-0 {
    width: 100%;
    height: 124px;
    padding: 25px 20px;
}

.user-fund .step2 .fund-wrap .name {
    color: var(--gray9-color);
    font-size: 18px;
    font-weight: 700;
    line-height: 134%;
}

.user-fund .step2 .fund-wrap .description {
    color: var(--gray8-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 160%;
}

.user-fund .fund img {
    position: absolute;
    right: 14px;
    bottom: -2px;
    background-size: cover;
}

.user-fund .fund-0:after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: 28px;
    width: 59px;
    height: 59px;
    background: url(/assets/images/icon/ic-dolgo-22a6b12143c736faa32b0cd1b5a09a08.svg) no-repeat center center;
    background-size: cover;
}

.user-fund .step2 .content .subtitle {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    bottom: 0;
    color: var(--gray8-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    text-align: center;
}

.user-fund .step3 .title { gap: 4px; }

.user-fund .step3 .title .subtitle {
    color: var(--gray7-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

.user-fund .step3 .content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 6px 20px;
    gap: 10px;
}

.user-fund .step3 .content {
    .category, .manual-input {
        padding: 10px 15px;
        border-radius: 60px;
        border: 1px solid var(--gray3-color);
        color: var(--gray9-color);
        font-size: 16px;
        font-weight: 500;
        line-height: 21px;
        cursor: pointer;
    }

    .category.active {
        border: 1px solid var(--gray8-color);
        background: var(--gray8-color);
        color: var(--white-color);
    }
}

.user-fund .step3 .content .manual-input input {
    display: none;
}

.user-fund .step3 .content .manual-input.focus {
    .placeholder {
        display: none;
    }

    input {
        display: block;
    }
}

.user-fund .step4 .title {
    padding-top: 58px;
    text-align: center;
    font-size: 24px;
}

.user-fund .step4 .title .subtitle {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.user-fund .step4 .content {
    display: flex;
    padding: 120px 120px 0;
    align-items: center;
    justify-content: center;
}

.user-fund .step4 .content .lottie-wrap {
    position: relative;
    width: 150px;
    height: 150px;
}

@media screen and (max-height: 700px) {
    .user-fund .step1 .content {
        margin-top: 30px;
    }
    .user-fund .step4 .content {
        padding: 80px 80px 0;
    }
}

.footer.user-fund {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: 0 -8px 24px 0 rgba(0, 0, 0, 0.12);
}

.footer.user-fund .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer.user-fund .wrap .icon {
    width: 28px;
    height: 28px;
}

.footer.user-fund .wrap .btn {
    flex: 1;
    padding: 16px 0;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: var(--gray0-color);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.32px;
    cursor: pointer;
}

.footer.user-fund .warp .btn.disabled {
    background: var(--gray-color);
}

.footer.user-fund .link-btn {
    display: none;
    margin: 20px 0 10px;
    color: var(--gray6-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
}

.footer.user-fund .link-btn.active {
    display: block;
}

.footer.user-fund .subtitle {
    padding: 6px 0 0;
    color: var(--gray6-color);
    font-size: 12px;
    font-weight: 400;
    line-height: 134%;
    letter-spacing: 0.30px;
}

.footer.user-fund.open {
    box-shadow: unset;

    .btn {
        padding: 16px 0;
    }
}

.modal .modal-input-title {
    display: none;
    flex-direction: column;
    padding: 10px 20px;

    .description {
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
    }

    .title {
        margin: 24px 0 0;
        padding: 9px 0;
        border-bottom: 1px solid var(--gray6-color);
        color: var(--gray9-color);
        font-size: 20px;
        font-weight: 500;
        line-height: 30px;
        word-break: keep-all;
        outline: none;
    }
}

.modal .modal-input-content {
    display: none;
    min-height: 0;
    flex-direction: column;
    padding: 8px 20px 0;
    overflow: hidden;

    .description {
        margin-bottom: 8px;
        color: var(--gray9-color);
        font-size: 20px;
        font-weight: 600;
        line-height: 32px;
    }

    .content {
        flex: 1;
        padding: 9px 0;
        color: var(--gray9-color);
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
        outline: none;
    }
}

.modal .modal-input-title.active, .modal .modal-input-content.active {
    display: flex;
    flex: 1;
}

.footer--msg {
    align-items: center;
    gap: 8px;
    bottom: 86px;
    text-align: left;
}

.footer--msg span:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/assets/images/icon/ic-warn-d546927689cf7773db15a46df6073083.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.input-mirror {
    position: absolute;
    visibility: hidden;
    white-space: pre;
    font-size: 16px;
    font-weight: 500;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    box-sizing: border-box;
}

.user-fund-list {
    .filter-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 35px 20px 0;
    }

    .tab-wrap {
        display: flex;
        align-items: center;
        padding-top: 25px;

        .tab {
            display: flex;
            gap: 4px;
            justify-content: center;
            flex: 1;
            padding-bottom: 12px;
            color: var(--gray9-color);
            font-size: 16px;
            font-weight: 500;
            line-height: 21px;
            cursor: pointer;
            border-bottom: 1px solid var(--gray1-color);
            box-shadow: unset;

            .num {
                color: var(--primary-color);
            }
        }

        .tab.selected {
            border-bottom: unset;
            box-shadow: inset 0 -2px 0 0 var(--gray9-color);
        }
    }
}