/* ==========================================================================
   라이믹스 대표이미지(Cover) 커스텀 플랫 스킨 - 코어 괄호 파괴 버전 (1/2)
   ========================================================================== */

/* 업로더 최외곽 컨테이너 박스 */
html body .xefu-container { 
    margin: 20px 0 !important; 
    border: 1px solid #eef2f6 !important; 
    border-radius: 14px !important; 
    background-color: #ffffff !important; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important; 
    padding: 15px !important; 
} 

/* 마우스 드롭존 파일 투하 영역 기본 상태 */
html body .xefu-dropzone { 
    padding: 20px !important; 
    border: 2px dashed #cbd5e1 !important; 
    border-radius: 10px !important; 
    background-color: #f8fafc !important; 
    min-height: auto !important; 
} 

/* [핵심 버그 패치] 마우스를 올렸을 때 드롭존 내부 텍스트 노드에 숨어있던 코어 괄호 알갱이를 완전 차단 */
html body .xefu-dropzone:hover {
    font-size: 0 !important; /* 호버 시 드롭존에 직접 생성되는 생짜 괄호 텍스트 크기를 0으로 축소 파괴 */
    color: transparent !important;
}

/* 괄호가 지워져도 정상적인 문구와 버튼들은 독립 클래스이므로 원래 크기로 복구하여 레이아웃 무너짐 방지 */
html body .xefu-dropzone:hover * {
    font-size: 13px !important;
    color: inherit;
}

/* 드롭존 영역 내부 기본 안내 문구 스타일 */
html body .xefu-dropzone-message { 
    color: #64748b !important; 
    font-size: 13px !important; 
    margin: 0 !important; 
} 

/* 메인 파일 선택 및 업로드 실행 버튼 시리즈와 좌우 간격 보존 마진 주입 */
html body .xefu-btn.fileupload-button, 
html body .xefu-act-selectfile, 
html body .xefu-dropzone .xefu-btn { 
    background: #3b82f6 !important; 
    color: #ffffff !important; 
    border: none !important; 
    padding: 10px 18px !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    border-radius: 8px !important; 
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important; 
    display: inline-block !important; 
    margin-right: 12px !important; /* 버튼과 옆 안내 문구가 강제로 달라붙지 않도록 안전 마진 지정 */
} 

html body .xefu-btn.fileupload-button *, 
html body .xefu-act-selectfile *, 
html body .xefu-dropzone .xefu-btn * { 
    color: #ffffff !important; 
    text-shadow: none !important; 
} 

/* 컨트롤러 영역 내 부속 기능 일반 버튼 일괄 제어 */
html body .xefu-controls .xet-btn, 
html body .xefu-container button, 
html body .xefu-container input[type='button'], 
html body .xefu-container .xe-btn { 
    background-image: none !important; 
    background-color: #f1f5f9 !important; 
    color: #475569 !important; 
    border: 1px solid #e2e8f0 !important; 
    padding: 6px 14px !important; 
    font-size: 12px !important; 
    font-weight: 600 !important; 
    border-radius: 6px !important; 
    box-shadow: none !important; 
    text-shadow: none !important; 
    height: auto !important; 
    line-height: normal !important; 
} 

/* 하단 글쓰기 부가 옵션 배치부 */
html body .write_option, 
html body .edit_opt, 
html body .xefu-container + div[style*='clear'] { 
    margin: 15px 0 !important; 
    padding: 10px 12px !important; 
    border-top: 1px solid #f1f5f9 !important; 
    border-bottom: 1px solid #f1f5f9 !important; 
    display: flex !important; 
    flex-wrap: wrap !important; 
    gap: 15px !important; 
    align-items: center !important; 
    background: #fafafa !important; 
    border-radius: 8px !important; 
} 

html body .write_option label, 
html body .edit_opt label { 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    color: #475569 !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 6px !important; 
    cursor: pointer !important; 
    margin: 0 !important; 
    padding: 4px 8px !important; 
    border-radius: 4px !important; 
    transition: background 0.2s !important; 
} 

html body .write_option label:hover, 
html body .edit_opt label:hover { 
    background: #f1f5f9 !important; 
    color: #1e293b !important; 
} 

html body .write_option input[type='checkbox'], 
html body .write_option input[type='radio'], 
html body .edit_opt input[type='checkbox'], 
html body .edit_opt input[type='radio'] { 
    margin: 0 !important; 
    width: 16px !important; 
    height: 16px !important; 
    vertical-align: middle !important; 
    cursor: pointer !important; 
    accent-color: #3b82f6 !important; 
} 
/* ==========================================================================
   라이믹스 대표이미지(Cover) 커스텀 플랫 스킨 - 코어 괄호 파괴 버전 (2/2)
   ========================================================================== */

/* 업로드 리스트 레이아웃 바운더리 선언 */
html body .xefu-container .xefu-list, 
html body .xefu-container .xefu-list-images { 
    max-height: none !important; 
    height: auto !important; 
    overflow: visible !important; 
} 

html body .xefu-list-images ul { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    gap: var(--img-gap, 12px) !important; 
    padding: 10px 0 !important; 
    list-style: none !important; 
} 

/* 목록 정렬용 개별 썸네일 카드 피드 (평상시) */
html body .xefu-list-images ul li.xefu-file { 
    position: relative !important; 
    display: inline-flex !important; 
    flex-direction: column !important; 
    width: var(--pc-width, 100px) !important; 
    height: auto !important; 
    border: 2px solid #e2e8f0 !important; 
    border-radius: 10px !important; 
    padding: 6px !important; 
    background: #ffffff !important; 
    overflow: visible !important; 
} 

/* 개별 카드 내 이미지 격자 처리 프레임 */
html body .xefu-list-images ul li.xefu-file .xefu-thumbnail { 
    width: 100% !important; 
    height: var(--pc-height, 105px) !important; 
    display: block !important; 
    border-radius: 6px !important; 
    background-size: cover !important; 
    background-position: center !important; 
    margin: 0 0 6px 0 !important; 
    box-sizing: border-box !important; 
} 

/* 각 카드 하단 대표 지정 액션 버튼 (평상시) */
html body .xefu-list-images ul li.xefu-file .xefu-act-set-cover { 
    display: block !important; 
    visibility: visible !important; 
    opacity: 1 !important; 
    position: relative !important; 
    margin: 0 !important; 
    width: 100% !important; 
    height: 30px !important; 
    padding: 0 !important; 
    background-color: #f1f5f9 !important; 
    border: 1px solid #cbd5e1 !important; 
    border-radius: 6px !important; 
    cursor: pointer !important; 
    box-sizing: border-box !important; 
    text-align: center !important; 
    vertical-align: middle !important; 
} 

/* 대표이미지 지정 버튼 평상시 안내 문구 */
html body .xefu-list-images ul li.xefu-file .xefu-act-set-cover::after { 
    content: '대표이미지 지정' !important; 
    font-size: 11px !important; 
    font-weight: 700 !important; 
    color: #475569 !important; 
    display: block !important; 
    width: 100% !important; 
    height: 28px !important; 
    line-height: 28px !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    box-sizing: border-box !important; 
    pointer-events: none !important; 
} 

/* JS가 지정 상태 클래스 주입 시 원본 목록 테두리는 보존 */
html body .xefu-list-images ul li.xefu-file.selected-current { 
    border: 2px solid #cbd5e1 !important; 
    background-color: #ffffff !important; 
} 

/* 목록 타겟이 대표로 지정 완료되었을 때 해당 하단 버튼의 상태 변경 */
html body .xefu-list-images ul li.xefu-file.selected-current .xefu-act-set-cover { 
    background-color: #3b82f6 !important; 
    border-color: #3b82f6 !important; 
} 

html body .xefu-list-images ul li.xefu-file.selected-current .xefu-act-set-cover::after { 
    content: '✓ 대표 등록됨' !important; 
    color: #ffffff !important; 
    display: block !important; 
    width: 100% !important; 
    height: 28px !important; 
    line-height: 28px !important; 
    margin: 0 !important; 
    padding: 0 !important; 
} 

/* 라이믹스 코어 디폴트 체크박스 아이콘 소거 처리 */
html body .xefu-list-images ul li.xefu-file .xefu-act-set-cover .xi-check-circle { 
    display: none !important; 
} 

/* 다중 체크박스 도구 위치 정렬 */
html body .xefu-list-images ul li.xefu-file input[type='checkbox'] { 
    position: absolute !important; 
    top: 10px !important; 
    left: 10px !important; 
    z-index: 1000 !important; 
    width: 18px !important; 
    height: 18px !important; 
    margin: 0 !important; 
    cursor: pointer !important; 
} 

/* ==========================================================================
   자바스크립트 매칭 전용 하단 독립 대표이미지 프리뷰 존 영역
   ========================================================================== */
.xefu-cover-preview-zone {
    margin-top: 20px !important;
    padding: 15px !important;
    border-top: 2px dashed #cbd5e1 !important; 
    background-color: #f8fafc !important; 
    border-radius: 10px !important; 
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xefu-cover-preview-zone .preview-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

/* 동적 가공되어 안착할 하단 단독 프리뷰 썸네일 박스의 외곽 스타일 선언 */
.xefu-cover-preview-zone .preview-box .xefu-thumbnail {
    width: var(--pc-width, 145px) !important;
    height: var(--pc-height, 105px) !important;
    border: 3.5px solid #3b82f6 !important; 
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    background-size: cover !important; 
    background-position: center !important;
}

/* 모바일 모드 반응형 미디어 쿼리 정의 */
@media screen and (max-width: 768px) { 
    html body .xefu-list-images ul { display: flex !important; flex-wrap: wrap !important; gap: var(--img-gap, 12px) !important; } 
    html body .xefu-list-images ul li.xefu-file { width: calc(44% - (var(--img-gap, 12px) / 2)) !important; max-width: 50% !important; min-width: 10px !important; margin: 0 !important; float: left !important; } 
    html body .xefu-list-images ul li.xefu-file .xefu-thumbnail { height: var(--mo-height, 100px) !important; } 
    html body .xefu-list-images ul li.xefu-file .xefu-act-set-cover { height: 34px !important; } 
    html body .xefu-list-images ul li.xefu-file .xefu-act-set-cover::after, html body .xefu-list-images ul li.xefu-file.selected-current .xefu-act-set-cover::after { height: 32px !important; line-height: 32px !important; font-size: 11px !important; } 
    
    .xefu-cover-preview-zone .preview-box .xefu-thumbnail {
        width: 100px !important;
        height: var(--mo-height, 100px) !important;
    }
}
