.article-comment__list-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border-left: 1px solid var(--color-divider-light);
}

.article-comment__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.article-comment__list-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-divider-lighter);
    padding: 16px 24px;
    width: 100%;
}

.article-comment__list-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-comment__comment-label {
    font-family: "Pretendard", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 140%;
    letter-spacing: -0.2px;
    color: var(--color-text-bold);
}

.article-comment__close-btn-icon {
    width: 24px;
    height: 24px;
    aspect-ratio: 1;
    mask-position: center;
    mask-size: 13px 13px;
    mask-image: url("../../img/svg/ic_cmm_double-arrow.svg");
    mask-repeat: no-repeat;
    background-color: var(--color-icon);
}

.article-comment__list-body-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: auto;
}

.article-comment__empty-state-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.article-comment__footer {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 8px;
    background: var(--color-bg-subtle);
    border-top: 1px solid var(--color-divider-light);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.article-comment__form {
    width: 100%;
}

.article-comment__input-section {
    display: flex;
    align-items: flex-end;
    width: 100%;
    gap: 8px;
}

.article-comment__react-input-section {
    display: none;
}

.article-comment__textarea {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--color-input-surface);
    outline: 1px solid var(--color-input-border);
    border-radius: 8px;
    font-family: Pretendard, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.813rem;
//line-height: 20px;
    line-height: 150%;
    letter-spacing: -0.2px;
    min-width: 0;
}

.article-comment__upload-attach-btn {
    display: inline-block;
    width:20px;
    height: 20px;
    mask-position: center;
    mask-size: 16px 16px;
    mask-image: url("../../img/svg/ic_cmm_attach.svg");
    mask-repeat: no-repeat;
    background-color: var(--color-icon);
}

.article-comment__input-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.article-comment__textarea  label {
    display: flex;
    align-items: center;
    height: fit-content;
}

.article-comment__textarea-label {
    width: 100%;
    font-family: Pretendard, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.813rem;

    line-height: 150%;
    letter-spacing: -0.2px;
    min-width: 0;
}

.article-comment__textarea-label > textarea {
    width: 100%;
    border: none;
    padding: 0;
    max-height: 180px;
    min-height: 20px;
    color: var(--color-text);
}

.article-comment__textarea-label > textarea::placeholder {
    color: var(--color-input-text-placeholder);
}

.article-comment__attach-list {
    display: none;
    width: 100%;
    margin-top: 16px;
}

.article-comment__attach-list.visible {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: auto;
}

button.article-comment__save-btn {
    padding: 15px 13px;
    background: var(--color-button-bg-primary-fill);
    border-radius: 12px;
    color: var(--color-text-inverse);
    white-space: nowrap;
    font-family: Pretendard, sans-serif !important;
    font-style: normal;
    font-weight: 600;
    font-size: 0.813rem;
    line-height: 100%;
    letter-spacing: -0.2px;
    height: 44px;
    border: 1px solid var(--color-border-primary);
}

.article-comment__save-btn:disabled {
    background: var(--color-button-bg-primary-fill);
    opacity: 0.4;
    border-radius: 16px;
}

.article-comment__horizontal-update-btn-list {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Pretendard, sans-serif !important;
    font-style: normal;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 16px;
    letter-spacing: -0.2px;


}

button.article-comment__horizontal-save-btn {
    background: var(--color-button-bg-primary-fill);
    color: var(--color-text-inverse);
    border: 1px solid var(--color-border-primary);
    padding: 6px 20px;
    border-radius: 8px;
    white-space: nowrap;
}

button.article-comment__horizontal-save-btn:disabled {
    background: var(--color-button-bg-primary-fill);
    opacity: 0.4;
}

button.article-comment__horizontal-cancel-btn {
    border: 1px solid var(--color-button-border-secondary);
    color: var(--color-text);
    padding: 6px 20px;
    border-radius: 8px;
    white-space: nowrap;
}

.article-comment__form-action-btn-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Pretendard, sans-serif;
    font-size: 0.875rem;
    margin-top: 8px;
}

.article-comment__attach-file-label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.article-comment__upload-attach-text {
    color: var(--color-text-subtle);
    text-decoration: underline;
}

.article-comment__update-btn-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 10px;
}

.article-comment__update-btn {
    border: none;
    background-color: transparent;
    border-radius: 4px;
    padding: 4px 6px;
    font-family: Pretendard, sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
}

.article-comment__update-btn.save {
    background: var(--color-button-bg-primary-fill);
    color: var(--color-text-inverse);
}

.article-comment__update-btn.save:disabled {
    background: var(--color-button-bg-primary-fill);
    opacity: 0.4;
}

.article-comment__update-btn.cancel {
    border: 1px solid var(--color-border);
    color: var(--color-text);

}

.article-comment__item-block {
    display: flex;
    width: 100%;
    padding: 16px 24px;
}

.article-comment__item-block.reply{
    background-color: var(--color-bg-subtler);
}

.article-comment__item-block + .article-comment__item-block {
    border-top: 1px solid var(--color-divider-lighter);
}

.article-comment__item-block:last-child {
    border-bottom: 1px solid var(--color-divider-lighter);
}

.article-comment__item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-comment__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.article-comment__reg-info-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-comment__profile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.article-comment__profile-img > img {
    width: 100%;
    height: auto;
}

.article-comment__reg-info {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 140%;
    letter-spacing: -0.2px;
}

.article-comment__emp-name,
.article-comment__emp-pos {
    color: var(--color-text-bold);
}

.article-comment__emp-dept {
    color: var(--color-text);
}

.article-comment__action-btn-list {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: visibility, opacity 0.2s ease-in-out;
}

.article-comment__item-block:hover .article-comment__action-btn-list {
    opacity: 1;
    visibility: visible;
}

.article-comment__action-btn {
    border: none;
    background-color: transparent;
    width: 12px;
    height: 12px;
    padding: 0;
    pointer-events: auto;
    cursor: pointer;
}
.article-comment__action-btn {
    display: inline-block;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 12px 12px;
    background-color: var(--color-icon);
}

.article-comment__action-btn.modify-btn  {
    mask-image: url("../../img/svg/ic_cmm_pen.svg");
}

.article-comment__action-btn.delete-btn {
    mask-image: url("../../img/svg/ic_cmm_trash.svg");
}

.article-comment__content-area {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-comment__content-area.modify .article-comment__content-section,
.article-comment__content-area.modify .article-comment__reg-dt-section,
.article-comment__content-area.modify .article-comment__item-footer
{
    display: none
}

.article-comment__content-section {
    width: 100%;
    margin-bottom: 4px;
}

.article-comment__content-section > p {
    white-space: pre-wrap;
}

.article-comment__content {
    font-family: Pretendard, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.813rem;
    line-height: 150%;
    letter-spacing: -0.2px;
    color: var(--color-text);
}

.article-comment__reg-dt-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 8px;
}

.article-comment__reg-dt-section.reply {
    margin: 0;
}

.article-comment__reg-dt {
    font-family: Pretendard, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 150%;
    color: var(--color-text-subtle);
}

.article-comment__item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.article-comment__recommend-btn {
    display: flex;
    align-items: center;
}

.article-comment__recommend-btn-icon {
    width: 14px;
    height: 14px;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-image: url("../../img/svg/ic_cmm_thumbs-up.svg");
    margin-right: 4px;
    background-color: var(--color-icon);
}

.article-comment__recommend-btn.active .article-comment__recommend-btn-icon {
    mask-image: url(../../img/svg/ic_cmm_thumbs-up-filled.svg);
    background-color: var(--color-icon-primary);
}

.article-comment__recommend-btn-txt {
    font-family: Pretendard, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 140%;
    text-align: center;
    letter-spacing: -0.2px;
    color: var(--color-text-subtle);
    margin-right: 7px;
}

.article-comment__recommend-btn-cnt {
    font-family: Pretendard, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 140%;
    text-align: center;
    letter-spacing: -0.2px;
    color: var(--color-text-subtle);
    font-variant-numeric: tabular-nums;
}

.article-comment__upload-attach-item {
    width: 230px;
}

.article-comment__attach-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    gap: 8px;
    flex-shrink: 0;
    padding: 8px 12px;
}

.article-comment__attach-item-left {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.article-comment__file-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.article-comment__file-icon.ppt {
    background-image: url("../../img/svg/extension/ic_cmm_ext_ppt.svg");
}
.article-comment__file-icon.img {
    background-image: url("../../img/svg/extension/ic_cmm_ext_img.svg");
}
.article-comment__file-icon.txt {
    background-image: url("../../img/svg/extension/ic_cmm_ext_txt.svg");
}
.article-comment__file-icon.hwp {
    background-image: url("../../img/svg/extension/ic_cmm_ext_hwp.svg");
}
.article-comment__file-icon.docx {
    background-image: url("../../img/svg/extension/ic_cmm_ext_docx.svg");
}
.article-comment__file-icon.xls {
    background-image: url("../../img/svg/extension/ic_cmm_ext_xls.svg");
}
.article-comment__file-icon.mov {
    background-image: url("../../img/svg/extension/ic_cmm_ext_mov.svg");
}
.article-comment__file-icon.sound {
    background-image: url("../../img/svg/extension/ic_cmm_ext_sound.svg");
}
.article-comment__file-icon.alz {
    background-image: url("../../img/svg/extension/ic_cmm_ext_alz.svg");
}
.article-comment__file-icon.pdf {
    background-image: url("../../img/svg/extension/ic_cmm_ext_pdf.svg");
}
.article-comment__file-icon.etc {
    background-image: url("../../img/svg/extension/ic_cmm_ext_etc.svg");
}

.article-comment__file-info {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: Pretendard, sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 140%;
    letter-spacing: -0.2px;
    color: var(--color-text);
    white-space: nowrap;
    min-width: 0;
}

.article-comment__file-name {
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
}

.article-comment__attach-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-comment__file-size {
    font-family: Pretendard, sans-serif;
    font-weight: 500;
    font-size: 0.688rem;
    line-height: 11px;
    letter-spacing: 0;
    color: var(--color-text-subtle);
    white-space: nowrap;
}

.article-comment__attach-delete-btn {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    mask-image: url("../../img/svg/ic_cmm_close.svg");
    mask-size: 10px 10px;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: var(--color-icon);
    pointer-events: auto;
    cursor: pointer;
}

.article-comment__attach-file-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    margin-top: 8px;
}

.article-comment__content-img-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.article-comment-attach-file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;

}

.article-comment__reply-icon {
    display: flex;
    align-items: flex-start;
    width: 11px;
    height: 14px;
    margin-top: 5px;
    margin-right: 14px;
}

.article-comment__reply-icon::before {
    content: "";
    width: 100%;
    height: 100%;
    mask-image: url(../../img/svg/ic_cmm_arrow_reply.svg);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 100%;
    background-color: var(--color-icon-disabled);
}

.article-comment__reply-form {
    width: 100%;
}

.article-comment__image-preview {
    position: relative;
    border-radius: 4px;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
}

.image-preview__image-mask {
    visibility: hidden;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.article-comment__image-preview:hover .image-preview__image-mask {
    visibility: visible;
    opacity: 1;
}

.image-preview__action-btn-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-preview__action-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: none;
    padding: 0;
    background: none;
    flex-shrink: 0;
    pointer-events: auto;
    cursor: pointer;
}

.image-preview__action-btn > i {
    mask-repeat: no-repeat;
    mask-position: center;
    width: 24px;
    height: 24px;
    display: inline-block;
    background-color: var(--color-icon-inverse);
}

.image-preview__action-btn > i:hover {
    background-color: var(--color-icon-on-subtle);
}

.image-preview__action-btn > i.preview-icon {
    mask-image: url("../../img/svg/ic_cmm_view.svg");

    mask-size: 24px;
}

.image-preview__action-btn > i.download-icon {
    mask-image: url("../../img/svg/ic_cmm_download.svg");
    mask-size: 16px;
}

.image-preview__modal-wrap {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100001;
}

.image-preview__image-wrap {
    max-height: 600px;
}

.image-preview__modal-act-button-block {
    position: fixed;
    top: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 0 16px;
}

.image-preview__modal-act-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: var(--color-bg-default);
    mask-position: center;
    mask-repeat: no-repeat;
    pointer-events: auto;
    cursor: pointer;
    height: 52px;
    width: 36px;
}

.image-preview__modal-act-btn:hover {
    background-color: var(--color-icon-on-subtle);
}

.image-preview__modal-act-btn.download {
    mask-image: url("../../img/svg/ic_cmm_download.svg");
    mask-size: 18px;
}
.image-preview__modal-act-btn.close{
    mask-image: url("../../img/svg/ic_cmm_close.svg");
    mask-size: 14px;
}

.image-preview__image-box > img {
    max-height: 600px
}

@container (max-width: 1000px) {
    .article-comment__list-wrap {
        flex-direction: column-reverse;
        height: auto;
        border: none;
    }

    .article-comment__list-header-section {
        display: none;
    }

    .article-comment__list-body-section {
        overflow: hidden;
    }

    .article-comment__content {
        margin-bottom: 40px;
    }

    .brd-detail__wrap .article-comment__footer {
        box-shadow: none;
        border: none;
        background: none;
    }

    .article-comment__input-section {
        display: none;
    }

    .article-comment__update-btn-list {
        display: none;
    }

    .article-comment__react-input-section {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        padding : 16px 16px 12px 16px;
        outline: 1px solid var(--color-input-border);
        border-radius: 4px;
        min-height: 131px;
        background-color: var(--color-input-surface);
    }
}

@media (max-width: 1600px) {
    .article-comment__list-wrap {
        flex-direction: column-reverse;
        height: auto;
        border: none;
    }

    .article-comment__list-header-section {
        display: none;
    }

    .article-comment__list-body-section {
        overflow: hidden;
    }

    .article-comment__content {
        margin-bottom: 40px;
    }

    .brd-detail__wrap  .article-comment__footer {
        box-shadow: none;
        border: none;
        background: none;
    }

    .article-comment__input-section {
        display: none;
    }

    .article-comment__update-btn-list {
        display: none;
    }

    .article-comment__react-input-section {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        padding : 16px 16px 12px 16px;
        outline: 1px solid var(--color-input-border);
        border-radius: 4px;
        min-height: 131px;
        background-color: var(--color-input-surface);
    }
}