:root {

    --ds-grey-900: #191f28;
    --ds-grey-800: #34383e;
    --ds-grey-750: #50535a;
    --ds-grey-700: #596069;
    --ds-grey-600: #6b7684;
    --ds-grey-550: #888888;
    --ds-grey-500: #818b99;
    --ds-grey-450: #949ba8;
    --ds-grey-400: #a7b0bb;
    --ds-grey-350: #b8c0cb;
    --ds-grey-300: #c4c9d4;
    --ds-grey-250: #cdd5e3;
    --ds-grey-200: #dee3ef;

    --ds-surface-50: #f7f8fa;
    --ds-surface-100: #f0f2f5;
    --ds-surface-150: #e9ecf3;
    --ds-blue-050: #edf6ff;
    --ds-blue-025: #f1f8ff;
}

.support-step {
    display: flex;
    flex-direction: column;
    gap: 16px;

    > .support-step-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .support-step-item {
        display: flex;
        gap: 15px;

        &:last-child .support-step-line {
            display: none;
        }

        &:last-child .support-step-content {
            padding-bottom: 0;
        }
    }

    .support-step-marker {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
    }

    .support-step-number {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 14px;
        background: var(--ds-blue-050);
        color: var(--primary-color);
        font-weight: 600;
        font-size: 12px;
        text-align: center;
    }

    .support-step-line {
        flex: 1 0 auto;
        width: 1px;
        background: var(--primary1-color);
    }

    .support-step-content {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding-top: 2px;
        padding-bottom: 24px;
    }

    .support-step-title {
        margin: 0;
        font-weight: 600;
        font-size: 14px;
        color: var(--ds-grey-800);
        word-break: break-word;
    }

    .support-step-desc {
        margin: 0;
        font-weight: 400;
        font-size: 12px;
        color: var(--ds-grey-700);
        word-break: break-word;
    }
}

.content-news {
    display: flex;
    flex-direction: column;
    width: 100%;

    &.is-loading {
        opacity: 0;
    }

    &.is-empty {
        display: flex;
    }

    &.is-empty > :not(.content-news-empty) {
        display: none;
    }

    .content-news-empty {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-top: 30px;

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

        p {
            width: 100%;
            font-size: 15px;
            font-weight: 500;
            color: #a4a4a4;
            text-align: center;
            line-height: 1.6;
        }
    }

    &.is-empty .content-news-empty {
        display: flex;
    }

    > .content-news-list {
        display: flex;
        flex-direction: column;
        gap: 60px;
        margin: 20px 0;
    }

    .content-news-entry {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    > .content-news-count {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 20px;
    }

    .content-news-count-label {
        margin: 0;
        font-weight: 700;
        font-size: 15px;
        color: var(--Dolgo-Grey-900);
    }

    .content-news-count-total {
        margin: 0;
        font-weight: 700;
        font-size: 15px;
        color: #B7B6B6;
    }

    .content-news-card {
        display: flex;
        flex-direction: column;
    }

    /* Swiper 컨테이너 — 슬라이드 폭/간격은 .content-news-photo + spaceBetween 가 결정 */
    .content-news-photos {
        width: 100%;
    }

    .content-news-photo {
        cursor: pointer;
        width: 240px;
        height: 238px;
        border-radius: 10px;
        background: var(--gray0-color);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ds-grey-300);

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

        &.has-image img {
            display: none;
        }
    }

    .content-news-org {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 20px 0 20px;
    }

    .content-news-org-avatar {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 20px;
        background: var(--gray0-color);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        border: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ds-grey-300);

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

        &.has-image img {
            display: none;
        }
    }

    .content-news-org-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .content-news-org-name {
        margin: 0;
        font-weight: 700;
        font-size: 15px;
        color: var(--Dolgo-Grey-900);
        word-break: break-word;
    }

    .content-news-org-count {
        margin: 0;
        font-weight: 500;
        font-size: 12px;
        color: var(--ds-grey-450);
    }

    .content-news-item {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 16px 20px 0 20px;
    }

    .content-news-item-dot {
        width: 3px;
        height: 3px;
        border-radius: 50%;
        background: var(--Dolgo-Grey-900);
        flex-shrink: 0;
    }

    .content-news-item-label {
        font-weight: 600;
        font-size: 14px;
        color: var(--Dolgo-Grey-900);
        margin-right: 2px;
    }

    .content-news-item-value {
        font-weight: 400;
        font-size: 14px;
        color: var(--ds-grey-700);
        white-space: nowrap;
    }

    .content-news-item-info {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        color: var(--ds-grey-300);
        flex-shrink: 0;

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

    .content-news-text {
        margin: 10px 20px 0 20px;
        font-weight: 400;
        font-size: 14px;
        color: var(--ds-grey-700);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        /* 단체별 본문 병합 시 빈 줄(\n\n) 구분이 보이도록 줄바꿈 유지 */
        white-space: pre-line;

        &.is-expanded {
            display: block;
            overflow: visible;
        }
    }

    .content-news-expand-btn {
        display: block;
        margin: 8px 20px 0 20px;
        padding: 0;
        background: none;
        border: none;
        font-weight: 500;
        font-size: 13px;
        color: var(--ds-grey-500);
        cursor: pointer;
        text-decoration: underline;
        text-align: left;

        &[hidden] {
            display: none;
        }
    }

    .content-news-meta {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 6px;
        margin: 10px 20px 0 20px;
    }

    .content-news-date {
        font-weight: 400;
        font-size: 12px;
        color: var(--ds-grey-450);
    }

    .content-news-like {
        display: flex;
        align-items: center;
        gap: 3px;
        flex-shrink: 0;
        cursor: pointer;
        user-select: none;
    }

    .content-news-like-count {
        font-weight: 500;
        font-size: 12px;
        color: var(--ds-grey-600);
    }

    .content-news-like-heart {
        width: 16px;
        height: 16px;
    }
}

.highlight-comment {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;

    &.is-loading {
        opacity: 0;
    }

    &.is-empty {
        display: none;
    }

    > .highlight-comment-slider {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    /* Swiper 컨테이너. 세로 패딩은 카드 그림자가 overflow:hidden 에 잘리지 않도록 확보 */
    .highlight-comment-track {
        width: 100%;
        box-sizing: border-box;
        user-select: none;
        padding: 4px 0 10px;

        img {
            -webkit-user-drag: none;
            user-drag: none;
        }
    }

    .highlight-comment-card {
        width: calc(100% - 40px); /* swiper-slide 폭 — centeredSlides 로 좌우 카드 peek */
        height: auto;             /* swiper-slide 기본 height:100% 무력화 → 내용 높이 */
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 17px;
        border: 1px solid var(--primary1-color);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 8px rgba(53, 138, 227, 0.07);
        box-sizing: border-box;
        cursor: pointer;
    }

    .highlight-comment-card-avatar {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 19px;
        border: 1px solid var(--gray05-color);
        background: var(--gray0-color);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ds-grey-300);

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

        &.has-image img {
            display: none;
        }
    }

    .highlight-comment-card-body {
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1;
        min-width: 0;
    }

    .highlight-comment-card-name {
        margin: 0;
        font-weight: 700;
        font-size: 14px;
        color: var(--ds-grey-800);
        word-break: break-word;
    }

    .highlight-comment-card-text {
        margin: 0;
        font-weight: 400;
        font-size: 13px;
        color: var(--gray9-color);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .highlight-comment-card-like {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 3px;
        cursor: pointer;
        user-select: none;
    }

    .highlight-comment-card-like-count {
        font-weight: 500;
        font-size: 12px;
        color: var(--ds-grey-600);
    }

    .highlight-comment-card-like-heart {
        width: 16px;
        height: 16px;
    }

    /* Swiper pagination(el). position:static 으로 swiper-pagination 의 절대배치를 무력화 → 트랙 아래 정상 흐름 */
    .highlight-comment-dots {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: auto;
    }

    .highlight-comment-dot {
        width: 5px;
        height: 5px;
        margin: 0;            /* swiper bullet 기본 margin 제거 (gap 으로 간격) */
        border-radius: 3px;
        background: var(--ds-grey-200);
        opacity: 1;           /* swiper bullet 기본 opacity:0.2 무력화 */
        cursor: pointer;
        transition: width .2s;

        &.is-active {
            width: 14px;
            border-radius: 3px;
            background: var(--primary-color);
        }
    }
}

.leaderboard {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0;

    &.is-loading {
        opacity: 0;
    }

    &.is-empty {
        display: none;
    }

    > .leaderboard-avatars {
        display: flex;
        align-items: center;
    }

    .leaderboard-avatar {
        width: 26px;
        height: 26px;
        border-radius: 999px;
        border: 2px solid var(--gray05-color);
        background-color: var(--ds-surface-150);
        background-image: url('/assets/images/icon/ic-ds-profile-default-90cd894da828cf514d5ecc05c1707330.png');
        background-size: cover;
        background-position: center;
        box-sizing: border-box;

        & + .leaderboard-avatar {
            margin-left: -6px;
        }
    }

    > .leaderboard-text {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0;
        font-weight: 400;
        font-size: 13px;
        color: var(--ds-grey-800);
        white-space: nowrap;

        strong {
            font-weight: 700;
        }
    }

    .leaderboard-name {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.content-news-card-slider {
    width: 100%;

    &.is-loading {
        opacity: 0;
    }

    &.is-empty {
        display: none;
    }

    .content-news-card-track {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;

        &::-webkit-scrollbar {
            display: none;
        }
    }

    .content-news-card-item {
        flex: 0 0 calc(100% - 30px);
        scroll-snap-align: center;
        scroll-snap-stop: always;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 13px;
        border: 1px solid var(--ds-surface-100);
        border-radius: 12px;
        background: #fff;
        box-sizing: border-box;

        &:first-child {
            margin-left: 20px;
        }

        > .content-news-card-main {
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .content-news-card-thumb {
            flex-shrink: 0;
            width: 68px;
            height: 68px;
            border-radius: 8px;
            background: var(--gray0-color);
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--ds-grey-300);

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

            &.has-image img {
                display: none;
            }
        }

        .content-news-card-body {
            display: flex;
            flex-direction: column;
            gap: 1px;
            flex: 1;
            min-width: 0;
        }

        .content-news-card-name {
            margin: 0;
            font-weight: 600;
            font-size: 13px;
            color: var(--gray9-color);
            word-break: break-word;
        }

        .content-news-card-text {
            margin: 0;
            font-weight: 400;
            font-size: 12px;
            color: var(--ds-grey-600);
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            /* 단체별 본문 병합 시 빈 줄(\n\n) 구분이 보이도록 줄바꿈 유지 */
            white-space: pre-line;
        }

        > .content-news-card-tag {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 10px;
            border-radius: 6px;
            background: var(--ds-surface-50);
        }

        .content-news-card-tag-check {
            flex-shrink: 0;
            width: 16px;
            height: 16px;
        }

        .content-news-card-tag-text {
            font-weight: 600;
            font-size: 12px;
            color: var(--ds-grey-700);
        }
    }
}

.ds-list {
    display: flex;
    flex-direction: column;
    width: 100%;

    &.is-loading {
        opacity: 0;
    }

    &.is-empty {
        display: none;
    }

    > .ds-list-header {
        padding: 0 5px;
    }

    .ds-list-title {
        margin: 0;
        font-weight: 700;
        font-size: 15px;
        color: var(--ds-grey-800);
        word-break: break-word;
    }

    > .ds-list-box {
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        background: var(--ds-surface-50);
        box-sizing: border-box;
    }

    .ds-list-items {
        margin: 0;
        padding-left: 18px;
        list-style: disc;

        li {
            list-style: disc;
            font-weight: 400;
            font-size: 13px;
            color: var(--ds-grey-800);
            word-break: break-word;
        }

        strong {
            font-weight: 600;
        }
    }
}

.stat-label {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;

    > .stat-label-head {
        display: flex;
        flex-direction: column;
    }

    .stat-label-caption {
        margin: 0 0 -2px;
        font-weight: 500;
        font-size: 13px;
        color: var(--ds-grey-450);
    }

    .stat-label-value {
        margin: 0;
        font-weight: 700;
        font-size: 28px;
        color: var(--primary-color);
    }

    > .stat-label-desc {
        display: flex;
        align-items: center;
        border-left: 3px solid var(--primary-color);
        padding: 0 15px;
        min-height: 25px;
        font-weight: 400;
        font-size: 14px;
        color: var(--gray9-color);
        word-break: break-word;
    }
}

.support-breakdown {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
    background: var(--ds-surface-50);
    width: 100%;
    box-sizing: border-box;

    > .support-breakdown-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        padding: 6px 0;
    }

    > .support-breakdown-row-last {
        padding-bottom: 13px;
    }

    .support-breakdown-label {
        display: flex;
        align-items: center;
        gap: 5px;
        font-weight: 400;
        font-size: 14px;
        color: var(--ds-grey-600);
    }

    .support-breakdown-value {
        font-weight: 600;
        font-size: 14px;
        color: var(--ds-grey-900);
        text-align: right;
    }

    .support-breakdown-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 15px;
        height: 16px;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 8px;
        background: #fff;
        font-weight: 700;
        font-size: 10px;
        color: var(--ds-grey-400);
    }

    > .support-breakdown-total-wrap {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .support-breakdown-total {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }

    .support-breakdown-total-label {
        font-weight: 600;
        font-size: 14px;
        color: var(--ds-grey-900);
    }

    .support-breakdown-total-value {
        font-weight: 600;
        font-size: 18px;
        color: var(--primary-color);
    }

    .support-breakdown-note {
        margin: 0;
        font-weight: 400;
        font-size: 11px;
        color: var(--ds-grey-600);
    }
}

.tooltip-card {
    width: 245px;
    max-width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;

    > .tooltip-card-text {
        margin: 0;
        font-weight: 400;
        font-size: 12px;
        color: var(--ds-grey-600);
        word-break: break-word;

        strong {
            font-weight: 700;
            color: var(--ds-grey-900);
        }
    }

    > .tooltip-card-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 8px;

        > li {
            position: relative;
            padding-left: 12px;
            font-weight: 400;
            font-size: 12px;
            color: var(--ds-grey-600);
            word-break: keep-all;

            &::before {
                content: "";
                position: absolute;
                left: 2px;
                top: 7px;
                width: 3px;
                height: 3px;
                border-radius: 50%;
                background: var(--ds-grey-600);
            }
        }
    }
}

.tooltip-pop {
    position: fixed;
    z-index: 1000;
    display: none;

    &.is-open {
        display: block;
    }

    > .tooltip-card {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }
}

.comment-section {
    display: flex;
    flex-direction: column;
    width: 100%;

    &.is-loading {
        opacity: 0;
    }

    > .comment-section-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    > .comment-section-write {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        height: 50px;
        padding: 16px;
        border: 0;
        border-radius: 12px;
        background: var(--ds-surface-50);
        cursor: pointer;
        box-sizing: border-box;

        span {
            font-weight: 600;
            font-size: 16px;
            color: var(--ds-grey-500);
        }

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

    > .comment-section-divider {
        width: 100%;
        height: 1px;
        background: var(--gray05-color);
        margin: 20px 0;
    }

    > .comment-section-filter {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 20px;
    }

    .comment-section-count {
        font-weight: 600;
        font-size: 13px;
        color: var(--gray8-color);
    }

    .comment-section-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 5px;
        border-radius: 14px;
        background: #fff;
    }

    .comment-section-avatar {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 19px;
        background: var(--ds-surface-150);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ds-grey-400);
        overflow: hidden;

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

        &.has-image img {
            display: none;
        }
    }

    .comment-section-body {
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1;
        min-width: 0;
    }

    .comment-section-item-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .comment-section-nickname {
        font-weight: 700;
        font-size: 13px;
        color: var(--ds-grey-800);
    }

    .comment-section-amount {
        font-weight: 600;
        font-size: 12px;
        color: var(--ds-grey-800);
        white-space: nowrap;
    }

    .comment-section-text {
        margin: 0;
        font-weight: 400;
        font-size: 13px;
        color: var(--ds-grey-800);
        word-break: break-word;
    }

    .comment-section-item-bottom {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8px;
    }

    .comment-section-time {
        font-weight: 400;
        font-size: 12px;
        color: var(--ds-grey-450);
    }

    .comment-section-like {
        display: flex;
        align-items: center;
        gap: 3px;
        flex-shrink: 0;
        cursor: pointer;
        user-select: none;
    }

    .comment-section-like-count {
        font-weight: 400;
        font-size: 12px;
        color: var(--ds-grey-600);
    }

    .comment-section-like-heart {
        width: 16px;
        height: 16px;
    }

    > .comment-section-empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;

        &[hidden] {
            display: none;
        }
    }

    .comment-section-empty-icon {
        width: 100px;
        height: 100px;
    }

    .comment-section-empty-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;

        p {
            margin: 0;
            font-weight: 500;
            font-size: 13px;
            color: #a4a4a4;
        }
    }
}

.comment-page {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 40px;
    background: #fff;
    min-height: 100%;
    box-sizing: border-box;

    > .comment-page-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 16px;
    }

    .comment-page-count-label {
        font-weight: 700;
        font-size: 15px;
        color: var(--Dolgo-Grey-900);
    }

    .comment-page-count {
        font-weight: 700;
        font-size: 15px;
        color: #B7B6B6
    }

    > .comment-page-empty {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .comment-page-empty-icon {
        width: 100px;
        height: 100px;
    }

    .comment-page-empty-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-top: 15px;
        text-align: center;

        p {
            margin: 0;
            font-weight: 500;
            font-size: 13px;
            color: #a4a4a4;
        }
    }

    .comment-page-empty-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 200px;
        height: 50px;
        margin-top: 30px;
        border: none;
        border-radius: 12px;
        background: var(--primary-color);
        color: #fff;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;

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

    .comment-page-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .comment-page-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 5px;
        border-radius: 14px;
        background: #fff;
    }

    .comment-page-avatar {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 19px;
        background: var(--ds-surface-150);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ds-grey-400);
        overflow: hidden;

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

        &.has-image img {
            display: none;
        }
    }

    .comment-page-body {
        display: flex;
        flex-direction: column;
        gap: 3px;
        flex: 1;
        min-width: 0;
    }

    .comment-page-item-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .comment-page-nickname {
        font-weight: 700;
        font-size: 13px;
        color: var(--ds-grey-800);
    }

    .comment-page-amount {
        font-weight: 600;
        font-size: 12px;
        color: var(--ds-grey-800);
        white-space: nowrap;
    }

    .comment-page-text {
        margin: 0;
        font-weight: 400;
        font-size: 13px;
        color: var(--ds-grey-800);
        word-break: break-word;
    }

    .comment-page-item-bottom {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8px;
    }

    .comment-page-time {
        font-weight: 400;
        font-size: 12px;
        color: var(--ds-grey-450);
    }

    .comment-page-like {
        display: flex;
        align-items: center;
        gap: 3px;
        flex-shrink: 0;
        cursor: pointer;
        user-select: none;
    }

    .comment-page-like-count {
        font-weight: 400;
        font-size: 12px;
        color: var(--ds-grey-600);
    }

    .comment-page-like-heart {
        width: 16px;
        height: 16px;
    }
}

.ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--ds-blue-025);
    overflow: hidden;
    box-sizing: border-box;

    > .ticker-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;

        &.is-exiting {
            animation: profileTickerOut 0.4s ease forwards;
        }

        &.is-entering {
            animation: profileTickerIn 0.4s ease forwards;
        }
    }

    .ticker-avatar {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        border-radius: 999px;
        border: 2px solid var(--ds-surface-100);
        background-color: var(--ds-surface-150);
        background-size: cover;
        background-position: center;
        box-sizing: border-box;

        &.ticker-avatar-logo {
            border: none;
            background-color: transparent;
            background-size: contain;
            background-repeat: no-repeat;
        }
    }

    .ticker-text {
        margin: 0;
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: baseline;
        white-space: nowrap;
        font-weight: 400;
        font-size: 13px !important;
        color: var(--ds-grey-800);

        &.ticker-text-empty {
            font-weight: 700;
            color: var(--primary-color);
        }
    }

    .ticker-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 700;
        color: var(--ds-grey-800);
    }

    /* '님이' 연결어 — flex 트리밍으로 사라지는 좌우 공백을 margin 으로 대체 */
    .ticker-conn {
        flex-shrink: 0;
        margin: 0 4px;
    }

    .ticker-amount {
        flex-shrink: 0;
        font-weight: 700;
        color: var(--primary-color);
    }
}

@keyframes profileTickerOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes profileTickerIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amount-support-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 20px 15px;
    border: 1px solid var(--ds-surface-100);
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;

    > .amount-support-btn-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex: 1;
        min-width: 0;
    }

    .amount-support-btn-title {
        font-weight: 600;
        font-size: 14px;
        color: var(--ds-grey-900);
        word-break: break-word;
    }

    &.amount-support-btn-custom .amount-support-btn-title {
        color: var(--ds-grey-900);
    }

    .amount-support-btn-detail {
        font-weight: 400;
        font-size: 12px;
        color: var(--ds-grey-550);
        word-break: break-word;
    }

    > .amount-support-btn-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        flex-shrink: 0;
    }

    .amount-support-btn-amount {
        font-weight: 700;
        font-size: 15px;
        text-align: right;
        white-space: nowrap;
    }

    .amount-support-btn-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 3px 8px 4px;
        border-radius: 999px;
        background: var(--primary-color);
        font-weight: 700;
        font-size: 10px;
        color: #fff;
        white-space: nowrap;
    }

    &.is-popular > .amount-support-btn-info > .amount-support-btn-title,
    &.is-popular > .amount-support-btn-right > .amount-support-btn-amount {
        color: var(--primary-color);
    }
}

.amount-sheet {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;

    &.on {
        z-index: 9999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }

    &.on .amount-sheet-panel {
        transform: translate(-50%, 0);
    }

    > .amount-sheet-bg {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    > .amount-sheet-panel {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 100%);
        width: 100%;
        max-width: 390px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-sizing: border-box;
        transition: transform 0.3s ease;
        border: 0;
        margin: 0;
    }

    .amount-sheet-handle {
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: #e5e8eb;
        border: 0;
        padding: 0;
        flex-shrink: 0;
        cursor: pointer;
    }

    .amount-sheet-title {
        width: 100%;
        margin: 8px 0 0;
        font-weight: 700;
        font-size: 20px;
        color: var(--ds-grey-900);
        word-break: break-word;
    }

    .amount-sheet-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px 18px;
        border-radius: 16px;
        background: #f7f8fa;
        box-sizing: border-box;
    }

    .amount-sheet-card-desc {
        font-weight: 400;
        font-size: 14px;
        color: #6b7684;
        word-break: break-word;
    }

    .amount-sheet-card-amount {
        font-weight: 700;
        color: var(--ds-grey-900);
    }

    .amount-sheet-card-amount-num {
        font-size: 30px;
    }

    .amount-sheet-card-amount-won {
        font-size: 19px;
        font-weight: 600;
    }

    .amount-sheet-input-row {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 4px;
        height: 48px;
        border-bottom: 2px solid #3182f6;
        box-sizing: border-box;
    }

    .amount-sheet-input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        padding: 0;
        background: transparent;
        font-weight: 700;
        font-size: 30px;
        color: var(--ds-grey-900);

        &::placeholder {
            color: #c4ccd6;
        }
    }

    .amount-sheet-input-won {
        flex-shrink: 0;
        font-weight: 600;
        font-size: 19px;
        color: var(--ds-grey-900);
    }

    .amount-sheet-input-sub {
        width: 100%;
        margin: 0;
        font-weight: 400;
        font-size: 13px;
        color: #8b95a1;
    }

    .amount-sheet-note {
        width: 100%;
        margin: 8px 0 0;
        font-weight: 400;
        font-size: 13px;
        color: #8b95a1;
        text-align: center;
    }

    .amount-sheet-submit {
        width: 100%;
        padding: 16px;
        border: 0;
        border-radius: 14px;
        background: var(--primary-color);
        font-weight: 700;
        font-size: 17px;
        color: #fff;
        text-align: center;
        cursor: pointer;

        &:disabled {
            background: #e5e8eb;
            color: #b0b8c1;
            cursor: default;
        }
    }
}

.comment-write-modal {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;

    &.on {
        z-index: 9999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }

    &.on .comment-write-modal-sheet {
        transform: translate(-50%, 0);
    }

    > .comment-write-modal-bg {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    > .comment-write-modal-sheet {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 100%);
        width: 100%;
        max-width: 390px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        border-top: 1px solid #e0e0e0;
        border-radius: 20px 20px 0 0;
        background: #fff;
        box-sizing: border-box;
        transition: transform 0.3s ease;
    }

    .comment-write-modal-header {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px 4px;
    }

    .comment-write-modal-title {
        margin: 0;
        font-weight: 700;
        font-size: 18px;
        color: var(--ds-grey-900);
    }

    .comment-write-modal-desc {
        margin: 0;
        font-weight: 400;
        font-size: 14px;
        color: var(--ds-grey-450);
    }

    .comment-write-modal-chips {
        display: flex;
        align-items: center;
        gap: 7px;
        overflow-x: auto;
    }

    .comment-write-modal-chip {
        flex-shrink: 0;
        padding: 8px 12px;
        border: 0;
        border-radius: 60px;
        background: var(--ds-surface-150);
        font-weight: 500;
        font-size: 12px;
        color: var(--ds-grey-800);
        white-space: nowrap;
        cursor: pointer;
    }

    .comment-write-modal-field {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        border: 1px solid var(--ds-grey-200);
        border-radius: 12px;
        background: #fff;
    }

    .comment-write-modal-textarea {
        width: 100%;
        min-height: 90px;
        max-height: 240px;
        padding: 0;
        border: 0;
        outline: 0;
        resize: none;
        font-family: inherit;
        font-weight: 400;
        font-size: 16px;
        color: var(--ds-grey-900);
        background: transparent;
        box-sizing: border-box;

        &::placeholder {
            color: var(--ds-grey-400);
        }
    }

    .comment-write-modal-counter {
        align-self: flex-end;
        font-weight: 400;
        font-size: 16px;
        color: var(--ds-grey-400);
    }

    .comment-write-modal-submit {
        height: 52px;
        border: 0;
        border-radius: 12px;
        background: var(--primary-color);
        font-weight: 600;
        font-size: 16px;
        color: var(--ds-surface-50);
        cursor: pointer;

        &:disabled {
            background: var(--ds-grey-400);
            cursor: default;
        }
    }
}

.list-modal {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;

    &.on {
        z-index: 9999;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }

    &.on .list-modal-panel {
        transform: translate(-50%, 0);
    }

    > .list-modal-bg {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
    }

    > .list-modal-panel {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translate(-50%, 100%);
        width: 100%;
        max-width: 390px;
        max-height: 80vh;
        display: flex;
        flex-direction: column;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-sizing: border-box;
        overflow: hidden;
        transition: transform 0.3s ease;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .list-modal-handle {
        display: block;
        width: 40px;
        height: 4px;
        margin: 12px auto 0;
        border-radius: 999px;
        background: #e5e8eb;
        border: 0;
        padding: 0;
        flex-shrink: 0;
        cursor: pointer;
    }

    .list-modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 14px 20px;
        flex-shrink: 0;
    }

    .list-modal-head-title {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .list-modal-title {
        margin: 0;
        font-weight: 700;
        font-size: 22px;
        color: var(--ds-grey-900);
        word-break: break-word;
    }

    .list-modal-count {
        flex-shrink: 0;
        font-weight: 700;
        font-size: 16px;
        color: var(--primary-color);
        white-space: nowrap;
    }

    .list-modal-close {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;

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

    .list-modal-sort {
        display: flex;
        justify-content: flex-end;
        padding: 0 20px 10px;
        flex-shrink: 0;
    }

    .list-modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 0 20px 20px;
    }

    .list-modal-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
    }

    .list-modal-item {
        padding: 16px 0;
        border-bottom: 1px solid #F2F4F6;
        font-size: 14px;
        color: var(--ds-grey-800);
        word-break: break-word;

        &:last-child {
            border-bottom: none;
        }

        /* 지원품목: 왼쪽 품목명 / 오른쪽 수량+단위 (천단위 콤마) */
        &.is-support {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 15px 2px 16px;
            font-size: 15px;

            .list-modal-item-name {
                color: #333d4b;
                font-weight: 400;
                line-height: 1.58;
            }

            .list-modal-item-qty {
                flex-shrink: 0;
                color: #4e5968;
                font-weight: 700;
                white-space: nowrap;
            }
        }
    }

    .list-modal-sentinel {
        height: 1px;
    }

    .list-modal-empty {
        margin: 40px 0;
        text-align: center;
        font-weight: 400;
        font-size: 14px;
        color: var(--ds-grey-400);
    }
}
