.gi_container {
    max-width: 1200px;
    min-height: 825px;
    margin: auto;
    background-color: var(--pland-card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 5px;
}

.gi_h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.gi_top-buttons {
    text-align: right;
}

.character-image-wrapper {
    position: relative;
}

/* 캐릭터 이미지 위 투명 클릭 영역 (전신 모달 열기) - PC */
.character-image-overlay {
    position: absolute;
    top: -151px;
    right: 0;
    left: auto;
    width: 330px;
    height: 145px;
    z-index: 1;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.gi_top-buttons .gi_btn {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    color: #555;
    transition: background-color 0.3s;
}

.gi_top-buttons .gi_btn:hover {
    background-color: #e0e0e0;
}

/* 가로 탭 바깥 래퍼: 모바일에서 스크롤 가능 시 좌·우 페이드로 “더 있음” 표시 */
.gi_tab-navigation-wrap {
    position: relative;
    width: 100%;
}

.gi_tab-navigation {
    display: flex;
    border-bottom: 0px solid #ddd;
    margin: 0px 0px 8px 0px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* 모바일에서 부드러운 스크롤 */
    scrollbar-width: none;
    position: relative;
    width: 100%;

    /* 스크롤 삭제 */
    overflow: auto;
    /* 스크롤 가능하게 유지 */
    -ms-overflow-style: none;
    /* IE, Edge */
    scrollbar-width: none;
    /* Firefox */
}

.gi_tab-navigation::-webkit-scrollbar {
    /* 스크롤 삭제 */
    display: none;
    /* Chrome, Safari, Opera, Edge, Whale */
}

.gi_tab-navigation .gi_tab-btn {
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: none;
    /* 탭 전환 시 깜빡임 방지 */
    display: inline-block;
    background: none;
    border: none;
    padding: 8px 14px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    outline: none;
    justify-content: center;
    font-weight: normal;
    /* 기본은 일반 폰트 */
}

.gi_tab-navigation .gi_tab-btn.gi_active {
    color: #2196f3;
    font-weight: bold;
    /* 선택된 탭만 볼드 */
}

.gi_content-area,
.cv_content-area {
    display: flex;
    flex-direction: column;
}

/* 장비 탭의 .gi_content-area와 동일 열 레이아웃이나, 그 클래스는 탭 JS에서 함께 숨김 대상이라 쓰지 않음 */
.cv_content-area .ei_covenant-tab-as-equip {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.gi_content-area-sub {
    display: flex;
    gap: 30px;
}

.gi_main-content {
    flex: 3;
    flex: 0 0 100%;
    scroll-snap-align: start;
    /* 필요시 width: 100vw; */
}

.gi_product-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.gi_data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.gi_data-table-th {
    border: 2px solid #ffffff !important;
    padding: 12px 7px;
    text-align: center;
    font-size: 15px;
    background-color: #f9f9f9 !important;
    width: 19%;
    font-weight: normal;
    color: #555;
}

.gi_data-table-td {
    /* border: 1px solid #ddd; */
    border: none;
    padding: 12px 15px;
    text-align: left;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
}

.gi_data-table-ico {
    width: 19%;
    padding: 1px;
}

.character-image-container {
    min-width: 330px;
    height: 145px;
    overflow: hidden;
    position: absolute;
    top: -151px;
    /* 적절한 위치로 조정 */
    left: 0;
    right: 0;
    z-index: -1;
    border: none;
    cursor: default;
    /* 깜빡이는 커서 제거 */
    user-select: none;
    /* 텍스트 선택 비활성화 */
    -webkit-user-select: none;
    /* 웹킷 브라우저 텍스트 선택 비활성화 */
    -moz-user-select: none;
    /* 파이어폭스 텍스트 선택 비활성화 */
    -ms-user-select: none;
    /* IE 텍스트 선택 비활성화 */
    pointer-events: none;
    /* 마우스 이벤트 통과 */
}

.character-image {
    width: 330px;
    position: absolute;
    top: -105px;
    /* 위로 30px 올림 */
    right: 0%;
    /* 오른쪽 기준으로 변경 */
    display: block;
    transform: scale(1.4);
    transform: scaleX(-1);
    cursor: default;
    /* 깜빡이는 커서 제거 */
    user-select: none;
    /* 텍스트 선택 비활성화 */
    -webkit-user-select: none;
    /* 웹킷 브라우저 텍스트 선택 비활성화 */
    -moz-user-select: none;
    /* 파이어폭스 텍스트 선택 비활성화 */
    -ms-user-select: none;
    /* IE 텍스트 선택 비활성화 */
    pointer-events: none;
    /* 마우스 이벤트 통과 */
}

.over {
    width: 100%;
    min-width: 330px;
    min-height: 185.14px;
    position: relative;

    /* 출력 애니메이션 */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: default;
    /* 깜빡이는 커서 제거 */
}


.over.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.over_child {
    width: 100%;
    position: relative;
    z-index: 1;
    /* 텍스트를 앞으로 배치 */
}

.card {
    padding: 5px 20px 10px 20px;
    z-index: 100;
    background: none;
}



.card:hover {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gi_tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0px;
    /* 초기값, JS에서 동적으로 변경 */
    background: #2196f3;
    border-radius: 2px 2px 0 0;
    transition: left 0.3s cubic-bezier(.4, 0, .2, 1), width 0.3s cubic-bezier(.4, 0, .2, 1);
    z-index: 1;
}

.gi_tab-label {
    display: inline-block;
    position: relative;
    z-index: 2;
    /* 스팬(탭 라벨)에서 텍스트 선택/입력 팝업 방지 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.gi_content-area-sub {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gi_slide-indicator {
    position: relative;
    text-align: center;
    margin: 0 0 5px 0;
}

.gi_dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    transition: background 0.3s;
}

.gi_dot.active {
    background: #2196f3;
}

/* PC  */
@media (min-width: 485px) {

    .gi_content-area {
        overflow-x: visible;
        flex-wrap: nowrap;
    }

    .gi_main-content {
        flex: 2;
    }

    .gi_slide-indicator {
        display: none !important;
    }

    .gi_tab-navigation {
        gap: 10px;
    }

    .gi_tab-btn {
        margin: 0 7px;
    }
}

/* 모바일  */
@media (max-width: 485px) {

    /*
     * 탭 줄만 화면(뷰포트) 좌우 끝까지 — 상위 .container / .gi_container 패딩 때문에
     * 스크롤해도 오른쪽에 흰 빈 칸처럼 보이던 현상 완화
     */
    .gi_container>.gi_tab-navigation-wrap {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        box-sizing: border-box;
    }

    /* 탭 바로 위 구분선도 동일하게 화면 전폭 */
    .gi_container>hr.character-tab-separator {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-top: 4px;
        margin-bottom: 0;
        box-sizing: border-box;
        border: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .gi_slide-indicator {
        position: relative;
        text-align: center;
        margin: 0 0 5px 0;
    }

    .detail-card-container.expand {
        scroll-margin-top: 93px;
        /* 헤더 높이만큼 여백 */
        scroll-behavior: smooth;
    }

    /* 스크롤 성능 최적화 */
    .detail-card-container {
        will-change: transform;
        transform: translateZ(0);
        /* 하드웨어 가속 활성화 */
    }

    .character-image {
        right: -27%;
    }

    /* 모바일: 추가한 전신 클릭 오버레이만 - 가로 축소, 영역 아래로 이동 */
    .character-image-overlay {
        top: -140px;
        right: 0%;
        width: 150px;
        height: 140px;
    }

    /* 캐릭터 상세: 상단 카드 로드 전부터 영역 높이 예약 (카드 뜨면서 공간 늘어나는 느낌 방지) */
    .character-detail-page .over {
        min-height: 330px;
    }
}

/* 레이아웃 변화 없이 시각적 프레임 추가 */
.ei_equip-container {
    border-bottom: 1.5px solid var(--pland-border-color);
    background-color: var(--pland-card-bg);
    padding: 0 0 5px 0;
    margin-top: 3px;
}

/* 레이아웃 변경 없이 그리드 영역 시각 일관성 부여 */
#skill-grid,
#skill-evolution-grid,
#skill-enhancement-grid,
#equipment-grid,
#covenant-grid,
#covenant-comparison-grid,
#covenant-detail-grid,
#sim-covenant-grid,
#sim-covenant-detail-grid,
#avatar-grid,
#creature-grid,
#status-grid,
#buff-grid {
    border-radius: 0;
    background-color: var(--pland-card-bg);
}

/* 서약정보 탭: 서약 업그레이드·안개서약 — Tabulator 고정/잔여 높이로 블록 간격 벌어짐 방지 */
#oath-upgrade-grid .tabulator,
#assimilation-grid .tabulator {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
}

#oath-upgrade-grid .tabulator-tableholder,
#assimilation-grid .tabulator-tableholder {
    min-height: 0 !important;
}

/* 서약 업그레이드: 테이블/행을 데이터 높이에만 맞춤(rowHeight 고정 제거·가변 높이와 함께 사용) */
#oath-upgrade-grid .tabulator .tabulator-tableholder {
    height: auto !important;
    max-height: none !important;
}

#oath-upgrade-grid .tabulator .tabulator-table {
    height: auto !important;
}

#oath-upgrade-grid .tabulator .tabulator-row {
    min-height: 0 !important;
}

/* style_adventure 등 전역 .tabulator-cell 패딩(16px) 완화 — 한 줄 행이 과하게 두껍게 보이지 않게 */
#oath-upgrade-grid .tabulator .tabulator-cell {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

#oath-upgrade-grid .tabulator .tabulator-header .tabulator-col {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Tabulator 내부 풋/플레이스홀더가 세로 공간을 과하게 잡는 경우 */
#oath-upgrade-grid .tabulator .tabulator-footer,
#assimilation-grid .tabulator .tabulator-footer {
    min-height: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 서약보유(테이블) — 헤더/셀 가운데 정렬 + 아이콘 수직정렬 */
#covenant-hold-table th,
#covenant-hold-table td {
    text-align: center;
    vertical-align: middle;
}

#covenant-hold-table .covenant-hold-set-name {
    font-weight: 600;
}

/* 하단「고유」행 — 세트명은 등급별 색(rarity-*) 적용 제외 */
#covenant-hold-table tr.covenant-hold-row-exclusive {
    border-top: 1px solid #dee2e6;
}

#covenant-hold-table tr.covenant-hold-row-exclusive .covenant-hold-set-name--exclusive {
    color: #495057;
    font-weight: 400;
}

#covenant-hold-table td {
    font-size: 15px;
}

.exclusive-count-part {
    font-size: 0.75em;
    color: #888;
    font-weight: 400;
    vertical-align: baseline;
    margin-left: 2px;
}

/* 서약 아이콘 테두리 및 라운딩 */
.oath-icon-wrapper {
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}

.oath-icon-img {
    width: 30px;
    /* 크기를 더 키움 */
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 4px;
    padding: 0;
    background-color: #fff;
    outline: 1px solid #dee2e6;
    outline-offset: -1px;
    /* 안쪽으로 침범 */
}

.oath-icon-img.rarity-unique {
    outline: 1px solid #FF00FF !important;
}

.oath-icon-img.rarity-legendary {
    outline: 1px solid #FF7800 !important;
}

.oath-icon-img.rarity-epic {
    outline: 1px solid #FFB400 !important;
}

.oath-icon-img.rarity-first {
    outline: 1px solid #33acea !important;
}

/* 고유 서약결정 합산 토글 스위치 (시뮬레이터 스타일) */
.legacy-switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 20px;
}

.legacy-switch .legacy-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.legacy-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cfd7df;
    transition: background-color .2s ease;
    border-radius: 12px;
}

.legacy-slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.legacy-switch .legacy-checkbox:checked+.legacy-slider {
    background-color: #6e84ff;
}

.legacy-switch .legacy-checkbox:checked+.legacy-slider:before {
    transform: translateX(10px);
}

/* 모바일: 서약보유 표 열 폭·패딩 축소 (thead 인라인 min-width 완화) */
@media (max-width: 485px) {
    .oh_content-area .table-responsive {
        margin-left: -4px;
        margin-right: -4px;
    }

    .oh_content-area #covenant-hold-table {
        table-layout: fixed;
        width: 100%;
        font-size: 13px;
        margin-bottom: 0;
    }

    .oh_content-area #covenant-hold-table th,
    .oh_content-area #covenant-hold-table td {
        padding: 5px 2px !important;
        min-width: 0 !important;
        line-height: 1.2;
    }

    /* 히스토리 열(9번째) 및 포인트 숨김, 수집률은 표시 */
    .oh_content-area #covenant-hold-table th:nth-child(9),
    .oh_content-area #covenant-hold-table td:nth-child(9),
    .oh_content-area #covenant-hold-table .covenant-hold-point-col {
        display: none !important;
    }

    .oh_content-area #covenant-hold-table .covenant-hold-rate-col {
        display: table-cell !important;
        /* 명시적으로 표시 */
    }

    /* 순서 열 헤더의 # 숨김 (본문 숫자는 유지) */
    .oh_content-area #covenant-hold-table thead .covenant-hold-order-hash {
        display: none;
    }

    .oh_content-area #covenant-hold-table th:nth-child(1),
    .oh_content-area #covenant-hold-table td:nth-child(1) {
        width: 8%;
    }

    .oh_content-area #covenant-hold-table th:nth-child(2),
    .oh_content-area #covenant-hold-table td:nth-child(2) {
        width: 28%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 600;
    }

    .oh_content-area #covenant-hold-table th:nth-child(3),
    .oh_content-area #covenant-hold-table td:nth-child(3) {
        width: 12%;
    }

    .oh_content-area #covenant-hold-table td:nth-child(3) img {
        width: 24px !important;
        height: 24px !important;
    }

    .oh_content-area #covenant-hold-table th:nth-child(4),
    .oh_content-area #covenant-hold-table td:nth-child(4),
    .oh_content-area #covenant-hold-table th:nth-child(5),
    .oh_content-area #covenant-hold-table td:nth-child(5),
    .oh_content-area #covenant-hold-table th:nth-child(6),
    .oh_content-area #covenant-hold-table td:nth-child(6) {
        width: 12%;
        font-variant-numeric: tabular-nums;
        padding-left: 1px !important;
        padding-right: 1px !important;
    }

    .oh_content-area #covenant-hold-table .covenant-hold-rate-col {
        width: 16%;
        font-size: 11px;
        font-weight: 700;
    }
}

/* (삭제됨) 서약보유 — 서약(중앙) 아이콘 스트립 */
/* 모바일: Tabulator tableholder 잔여 높이 + 서약정보 탭 헤더·섹션 간격 */
@media (max-width: 485px) {

    #oath-upgrade-grid .tabulator .tabulator-tableholder,
    #assimilation-grid .tabulator .tabulator-tableholder {
        height: auto !important;
        max-height: none !important;
    }

    #oath-upgrade-grid .tabulator .tabulator-placeholder,
    #assimilation-grid .tabulator .tabulator-placeholder {
        min-height: 0 !important;
        padding: 10px 8px !important;
    }

    /* 서약 업그레이드·안개서약: 좁은 화면에서 컬럼 합이 뷰포트 안에 들어가도록 셀·헤더 여백·아이콘 축소 */
    #oath-upgrade-grid .tabulator .tabulator-header .tabulator-col,
    #assimilation-grid .tabulator .tabulator-header .tabulator-col {
        padding: 5px 3px !important;
        font-size: 11px !important;
    }

    #oath-upgrade-grid .tabulator .tabulator-cell,
    #assimilation-grid .tabulator .tabulator-cell {
        padding: 5px 3px !important;
        font-size: 12px;
    }

    #oath-upgrade-grid .skill-check-cell,
    #oath-upgrade-grid .skill-check-cell .skill-check-img,
    #oath-upgrade-grid .skill-check-cell .skill-check-fallback {
        width: 24px;
        height: 24px;
    }

    #assimilation-grid .ico_equipment {
        width: 24px;
        height: 24px;
    }

    /* 최종데미지·버프력 전체 문구: 헤더 칸에서 줄바꿈 허용(짧은 축약어 대신) */
    #assimilation-grid .tabulator-header .tabulator-col .tabulator-col-content {
        white-space: normal;
        line-height: 1.2;
    }

    /* 서약 업그레이드 그리드 아래~안개서약 헤더까지: 섹션/그리드 래퍼 여백 제거 */
    #oath-upgrade-grid {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 서약 업그레이드·안개서약 각각: 헤더 직후 그리드 래퍼 하단 여백 제거 */
    .as_content-area .ei_equip-header+.gi_section {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .as_content-area .gi_section {
        margin-bottom: 0;
    }
}

/* 서약정보 탭: 서약 업그레이드 그리드 블록과 안개서약 헤더 사이 한 줄 정도 간격 (PC·모바일 공통) */
.as_content-area .gi_section+.ei_equip-header {
    margin-top: 10px;
}

/* 스킬 개화/강화 그리드 최소 높이 제거 */
#skill-evolution-grid .tabulator,
#skill-enhancement-grid .tabulator {
    min-height: auto !important;
}

/* 더 구체적인 선택자로 최소 높이 제거 */
.si_content-area #skill-evolution-grid .tabulator,
.si_content-area #skill-enhancement-grid .tabulator {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
}

/* 스킬 화면 레이아웃 */
.si_content-area .gi_content-area-sub {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
}

.si_content-area .gi_main-content {
    flex: 1;
    min-width: 0;
    scroll-snap-align: start;
}

/* 스킬 화면에서 스크롤 인디케이터 표시 */
.si_content-area .gi_slide-indicator {
    display: block !important;
}

/* PC에서 스킬 화면 레이아웃 */
@media (min-width: 485px) {
    .si_content-area .gi_content-area-sub {
        overflow-x: visible;
    }

    .si_content-area .gi_slide-indicator {
        display: none !important;
    }
}

/* 모바일에서 스킬 화면 레이아웃 */
@media (max-width: 485px) {
    .si_content-area .gi_content-area-sub {
        flex-direction: row;
        gap: 0;
    }

    .si_content-area .gi_main-content {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.ei_equip-grid {
    display: grid;
    grid-template-columns: repeat(5, 55px);
    grid-template-rows: repeat(4, 55px);
    gap: 1px 4px;
    display: grid;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    /* center the whole grid horizontally */
    border-right: none;
    border-left: none;
}

.ei_equip-header {
    height: 30px;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #f1f3f4 !important;
    /* 하위항목이 가운데 정렬 되도록 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ei_equip-header-text {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

/* 서약보유 탭 헤더 — 제목 중앙 정렬 */
.ei_covenant-hold-header {
    position: relative;
    justify-content: center;
    padding: 0 10px;
}

/* 동기화 버튼은 비표시(필요 시 이 규칙만 제거·수정) */
.ei_covenant-hold-header #covenant-hold-sync-btn {
    display: none !important;
}

/* 세트 행 끝 타임라인(히스토리) 아이콘 버튼 */
#covenant-hold-table .covenant-hold-history-btn {
    padding: 0.2rem 0.35rem;
    line-height: 1;
}

#covenant-hold-table .covenant-hold-history-btn .fa-history {
    font-size: 14px;
    vertical-align: middle;
}

#covenant-hold-table th.covenant-hold-history-col {
    color: #6c757d;
}

/* 서약 타임라인 상세 모달 */
.covenant-hold-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1080;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.covenant-hold-detail-modal--open {
    display: flex;
}

.covenant-hold-detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.covenant-hold-detail-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(85vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 16px 18px;
}

.covenant-hold-detail-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.covenant-hold-detail-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #343a40;
}

.covenant-hold-detail-modal__close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    color: #6c757d;
}

.covenant-hold-detail-modal__close:hover {
    color: #212529;
}

.covenant-hold-detail-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fafbfc;
}

.covenant-hold-detail-set {
    margin-bottom: 18px;
}

.covenant-hold-detail-set:last-child {
    margin-bottom: 0;
}

.covenant-hold-detail-set-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.covenant-hold-detail-set-head-icon {
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}

.covenant-hold-detail-set-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #343a40;
}

.covenant-hold-detail-events-table {
    margin-bottom: 0 !important;
    background: #fff;
    border-radius: 8px;
}

.covenant-hold-detail-events-table th,
.covenant-hold-detail-events-table td {
    vertical-align: middle;
}

/* 장비 탭: 장비 그리드만 (서약은 별도 탭) */
.ei_equip-row--equip-only {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

.ei_equip-grid-block {
    flex: 0 0 auto;
}

/* 서약 탭: 보드 | 슬롯 목록 */
.ei_covenant-tab-root {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.ei_covenant-lower {
    align-items: flex-start;
    /* '보드 | 목록' 블록이 flex 부모에서 높이 0으로 눌리지 않도록 */
    flex-shrink: 0;
}

/*
 * 서약 하단(.ei_covenant-lower)은 장비와 같이 .gi_content-area-sub를 쓰지만,
 * scroll-snap-type: x mandatory + .gi_main-content 의 scroll-snap-align 때문에
 * 가로로 넘칠 때 첫 패널(보드)에만 스냅되어 우측(슬롯 목록)이 PC에서 안 보일 수 있음.
 * 인디케이터도 PC에서는 숨겨져 있어 가로 스크롤 힌트가 없음 → 서약 전용으로 스냅 제거·열 공유.
 */
.cv_content-area .ei_covenant-lower.gi_content-area-sub {
    scroll-snap-type: none;
    -webkit-overflow-scrolling: auto;
}

.cv_content-area .ei_covenant-lower .gi_main-content {
    scroll-snap-align: none;
}

@media (min-width: 485px) {
    .cv_content-area .ei_covenant-lower.gi_content-area-sub {
        overflow-x: visible;
    }

    .cv_content-area .ei_covenant-lower .gi_main-content {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* 서약: 좁은 화면에서 슬롯 목록이 옆으로 밀려 '안 보이는' 것처럼 보이는 문제 방지 → 세로 스택 */
@media (max-width: 485px) {
    .cv_content-area .ei_covenant-lower.gi_content-area-sub {
        flex-direction: column;
        overflow-x: visible;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: auto;
    }

    .cv_content-area .ei_covenant-lower .gi_main-content {
        flex: 1 1 auto !important;
        min-width: 0;
        width: 100%;
    }

    .cv_content-area .gi_slide-indicator {
        display: none !important;
    }
}

.ei_covenant-tab {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.ei_covenant-board-row {
    margin-top: 0;
}

.ei_covenant-board-block {
    width: 100%;
}

.ei_covenant-tab .ei_equip-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.ei_covenant-grid--equip-slot {
    display: grid;
    grid-template-columns: repeat(5, 55px);
    grid-template-rows: repeat(4, 55px);
    gap: 1px 4px;
    margin: 4px auto 0;
    justify-content: center;
}

.ei_covenant-grid--equip-slot .ei_covenant-cell {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ei_covenant-cell--unused {
    visibility: hidden;
    pointer-events: none;
}

.ei_covenant-cell--center {
    border-color: #2196f3;
    background: #e3f2fd;
}

.ei_covenant-cell--crystal {
    border-color: #90caf9;
    background: #fafafa;
}

.ei_covenant-grid--equip-slot .ei_covenant-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 장비 세트 상세 카드용 3열 (기존 클래스 보강) */
.detail-item-table_3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: #fff;
    padding: 8px 0 0 0;
    gap: 0 8px;
}

/* 스킬 탭: 네비게이터 아래 인풋 + 스킬 코드 복사 버튼 */
.skill-tab-copy-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 0 4px;
}

.skill-tab-copy-row .skill-codes-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
    font-family: monospace;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
    resize: vertical;
    height: 30px;
}

/* 캐릭터 영역 btn-primary: 포커스 시 기본색, 클릭 중(active) 호버색과 동일 */
.gi_container button.btn-primary:focus,
.gi_container button.btn-primary.focus {
    outline: none !important;
    box-shadow: none !important;
    color: #fff;
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.gi_container button.btn-primary:active,
.gi_container button.btn-primary.active {
    outline: none !important;
    box-shadow: none !important;
    color: #fff !important;
    background-color: #357abd !important;
    border-color: #357abd !important;
}

.skill-tab-copy-row .skill-codes-copy-btn {
    padding: 0px 6px;
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid transparent;
    height: 30px;
}

.ei_equip-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ei_equip-item:hover {
    transform: scale(1.05);
}

.ei_equip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.ei_equip-plus {
    position: absolute;
    bottom: 2px;
    right: 1px;
    background: rgba(0, 0, 0, 0.6);
    font-weight: bold;
    font-size: 13px;
    padding: 0 4px;
    border-radius: 4px;
    pointer-events: none;
}

.ei_equip-fusion {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 18px;
    right: 8px;
    top: -2px;
}

.ei_switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ei_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ei_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: -2px;
    right: 0;
    bottom: -2px;
    background-color: #eee;
    border-radius: 24px;
    border: 1px solid #eee;
    /* 항상 회색 테두리 */
    transition: background-color .4s, border-color .4s;
}

.ei_switch input:checked+.ei_slider {
    background-color: #96c0ed;
    border: 1px solid #eee;
    /* ON일 때도 테두리 유지 */
}

.ei_slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform .4s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.ei_switch input:checked+.ei_slider:before {
    transform: translateX(20px);
}

.ei_switch-label {
    margin-left: 8px;
    color: #bbb;
    font-size: 16px;
    vertical-align: middle;
}

.ei_transparent {
    opacity: 0 !important;
    pointer-events: none;
}

.ei_equip-gap {
    width: 12px;
    height: 48px;
    background: none;
}

/* 기존 ico_equipment 스타일 유지 */
.ico_equipment {
    width: 32px;
    height: 32px;
}



@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.ico_skill {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    image-rendering: auto;
    -webkit-transform: translateZ(0);
    /* paint 안정화 */
    transform: translateZ(0);
    background-color: #140E11;
}

/* 진화 스킬 아이콘 보라색 필터 */
.evolution-skill-icon {
    /* filter: hue-rotate(235deg) saturate(1.3) brightness(1); */
    /* filter: hue-rotate(240deg) saturate(2.3) brightness(0.9); */
    filter: hue-rotate(231deg) saturate(1.3) brightness(1.2);
}

/* 스킬 개화/강화 체크 셀 (CDN 이미지 + 로드 실패 시 동그라미) */
.skill-check-cell {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
}

.skill-check-cell .skill-check-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 24px;
}

.skill-check-cell .skill-check-fallback {
    display: none;
    width: 20px;
    height: 20px;
    border: 1px solid #666;
    border-radius: 50%;
    margin: 0 auto;
}

.skill-check-fallback {
    width: 20px;
    height: 20px;
    border: 1px solid #666;
    border-radius: 50%;
    margin: 0 auto;
}

/* 스킬 강화 탭만: 체크 아이콘 조금 더 크게 */
#skill-enhancement-grid .skill-check-cell {
    width: 26px;
    height: 26px;
}

#skill-enhancement-grid .skill-check-cell .skill-check-img {
    width: 26px;
    height: 26px;
}

#skill-enhancement-grid .skill-check-cell .skill-check-fallback {
    width: 26px;
    height: 26px;
}

/* 서약 업그레이드: 아이콘 컬럼은 더 크게 */
#oath-upgrade-grid .skill-check-cell {
    width: 30px;
    height: 30px;
}

#oath-upgrade-grid .skill-check-cell .skill-check-img {
    width: 30px;
    height: 30px;
}

#oath-upgrade-grid .skill-check-cell .skill-check-fallback {
    width: 30px;
    height: 30px;
}

/* 강화1: 아주 약한 빨간 필터 */
.skill-check-enhance-1 .skill-check-img {
    filter: sepia(0.55) hue-rotate(-18deg) saturate(1.08);
}

/* 강화2: 아주 약한 파란 필터 */
.skill-check-enhance-2 .skill-check-img {
    filter: sepia(0.15) hue-rotate(195deg) saturate(1.08);
}

/* 새로고침 버튼과 시간 표시 스타일 */
.update-time {
    font-size: 11px;
    color: #666;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.update-status-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    opacity: 0.7;
    /* 배경색  투명하게 */
    background-color: transparent;

}

.update-status-icon[src*="re_gray.png"] {
    opacity: 0.4;
}

/* 토글 스타일: src 교체 없이 색상 차이 표현용 */
.update-status-icon.is-cooling {
    opacity: 0.4;
    filter: grayscale(50%);
}

.update-status-icon.is-up {
    opacity: 0.9;
    filter: none;
}

.update-time-value {
    padding-top: 6px;
    opacity: 0.4;
}

/* 상세 카드 스타일 */
.detail-card-container {
    position: relative;
    width: 100%;
    background: white;
    border: none;
    display: none;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    transform-origin: top;
}

.detail-card-container.expand {
    animation: expandCard 0.3s ease-in-out forwards;
}

.detail-card-container.collapse {
    animation: collapseCard 0.3s ease-in-out forwards;
}

@keyframes expandCard {
    0% {
        max-height: 0;
        opacity: 0;
        transform: scaleY(0);
    }

    100% {
        max-height: 400px;
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes collapseCard {
    0% {
        max-height: 400px;
        opacity: 1;
        transform: scaleY(1);
    }

    100% {
        max-height: 0;
        opacity: 0;
        transform: scaleY(0);
    }
}

.detail-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px 6px 0 0;
    background: white;
    margin: 4px 0;
    overflow: hidden;
    position: relative;
}

.detail-card-header {
    display: none;
}

.detail-card-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.detail-card-close {
    background: none;
    border: none;
    color: #666;
    font-size: 25px;
    cursor: pointer;
    padding: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    position: absolute;
    top: 3px;
    right: 5px;
    z-index: 10;
}

.detail-card-close:hover {
    background-color: #e9ecef;
}

.detail-card-content {
    padding: 6px 8px 0 8px;
    overflow-y: auto;
}

.detail-item {
    display: flex;
    align-items: normal;
    padding: 5px 0;
    border-bottom: 1px solid #f1f3f4;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* 같은 줄에서 칸이 나눠서 들어가는 레이아웃 */
.detail-item-inline {
    display: flex;
    margin-bottom: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f3f4;
    gap: 20px;
}

.detail-item-inline:last-child {
    border-bottom: none;
}

.detail-item-inline .detail-item-label {
    font-weight: 500;
    color: #555;
    min-width: 60px;
    font-size: 13px;
}

.detail-item-inline .detail-item-value {
    color: #333;
    font-size: 13px;
}

/* 테이블 형태의 레이아웃 */
.detail-item-table_4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background-color: #fff;
    padding: 8px 0 0 0;
}

.detail-item-table_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #fff;
    padding: 4px 0 0 0;
}

.detail-item-table_box {
    border-bottom: 1px solid #f1f3f4;
}

.detail-item-table .detail-item-label {
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.detail-item-table .detail-item-value {
    color: #333;
    font-size: 13px;
}

.detail-item-label {
    font-weight: 500;
    color: #555;
    min-width: 73px;
    margin-right: 12px;
    font-size: 13px;
    border-right: 1px solid #d6d6d6;
}

.detail-item-value {
    flex: 1;
    color: #333;
    margin-right: 12px;
    padding-left: 3px;
    font-size: 13px;
}

.detail-item-image {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    z-index: 1;
}

.detail-item-content {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 40px);
    margin-left: 10px;
}

.detail-item-name {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    width: 100%;
}

.detail-item-subtitle {
    font-weight: 400;
    font-size: 11px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    width: 100%;
    opacity: 0.8;
}

.detail-skill-image {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    z-index: 1;
}

.detail-item-description {
    font-size: 11px;
    color: #666;
}

/* 그리드 행 호버 효과 */
.tabulator-row:hover {
    background-color: #f8f9fa !important;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* 빠른 연속 클릭 시 텍스트 드래그 방지 */
.tabulator,
.tabulator * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {

    .detail-card-content {
        overflow-x: hidden;
    }

    .detail-item {
        flex-direction: row;
        align-items: normal;
        justify-content: flex-start;
    }

    .detail-item-image {
        margin-right: 0;
        margin-bottom: 0;
        align-self: center;
    }

    .detail-item-content {
        margin-left: 10px;
        max-width: calc(100% - 40px);
    }

    .detail-skill-image {
        margin-right: 0;
        margin-bottom: 0;
        align-self: center;
    }
}

/* 하단 사다리꼴 닫기 버튼 */
.detail-card-bottom-close {
    display: flex;
    justify-content: center;
    margin-top: -10px;
    padding-bottom: 10px;
    position: relative;
    z-index: 5;
}

.detail-card-trapezoid-close {
    background: linear-gradient(135deg, #f7f7f7 60%, #5fb1f559 100%);
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 12px;
    color: #babdc2;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    transform: perspective(100px) rotateX(-15deg);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -5px;
}

.detail-card-trapezoid-close:hover {
    background: linear-gradient(135deg, #c4c4c7 30%, #5fb1f559 100%);
    color: #495057;
    transform: perspective(100px) rotateX(-15deg) scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.detail-card-trapezoid-close:active {
    transform: perspective(100px) rotateX(-15deg) scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 버프 강화 관련 스타일 */
.rarity-legendary {
    color: #ff6b35 !important;
    font-weight: bold;
}

.buff-enhancement {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
    margin-top: 2px;
    line-height: 1.2;
}

.buff-summary {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 14px;
    color: #856404;
}

/* 버프 강화 아이콘 스타일 */
.ei_equip-plus.rarity-legendary {
    color: #ff6b35 !important;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: buffGlow 2s ease-in-out infinite alternate;
}

@keyframes buffGlow {
    from {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3), 0 0 5px rgba(255, 107, 53, 0.5);
    }

    to {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 107, 53, 0.8);
    }
}

/* 카드 높이 전환용 애니메이션 클래스 */
.detail-card--anim {
    overflow: hidden;
    max-height: 0px;
    transition: max-height 400ms ease;
    will-change: max-height;
}

.detail-card--anim.is-open {
    max-height: var(--card-max, 1200px);
}

/* 기본 카드(베이스) 전용 스타일 */
.detail-card--base .detail-card-close,
.detail-card--base .detail-card-trapezoid-close {
    display: none;
}

/* 명성과 점수: 레이아웃·굵기 공통, 글자 크기는 명성 14px·점수만 조금 크게 */
.card .fame,
.score-info,
.buff-score-info {
    font-weight: 600;
    margin: 1px 0;
    padding: 1px 0;
    line-height: 1.3;
}

.card .fame {
    font-size: 14px;
}

.score-info,
.buff-score-info {
    font-size: 16px;
}

/* 명성 색상 */
.card .fame {
    color: #555;
    /* 더 진한 회색 */
}

/* 점수 색상 */
.score-info {
    color: #2196f3;
    /* 파란색 */
}

/* 버퍼일 때 일반 점수 색상 - 파란색이 아님 */
.score-info.buffer-mode {
    color: #6c757d !important;
    /* 회색 */
}

/* 버퍼일 때 일반 점수 값 색상도 변경 */
.score-info.buffer-mode .score-value,
.score-info.buffer-mode .data_character_score,
.score-info.buffer-mode span {
    color: #6c757d !important;
    /* 회색 */
}

/* 버프 점수 색상 - 파란색 계열 */
.buff-score-info {
    color: #2196f3;
    /* 파란색 */
}

/* 버프 점수 값 색상 - 파란색 계열 */
.buff-score-info .buff-score-value,
.data_character_buff_score .buff-score-value {
    color: #2196f3;
    /* 파란색 */
}

/* 명성 값과 점수 값 통일된 스타일 */
.fame-value,
.score-value,
.buff-score-value {
    font-weight: 600;
    margin-left: 5px;
}

/* 명성 아이콘 */
.card .fame::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/img/ico_fame.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-top: -2px;
    margin-right: 2px !important;
    /* 간격 축소 */
}

/* 버프 점수 아이콘 - 일반 점수와 완전히 동일 */
.buff-score-info {
    position: relative;
    padding-left: 21px;
}

.buff-score-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 19px;
    /* 버프 점수 전용 아이콘 */
    background-image: url('/img/ico_buff_score.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 180% auto;
    /* 내용만 확대 */
    filter: hue-rotate(210deg) saturate(3) brightness(1.1);
}

/* 점수 아이콘 */
.score-info {
    position: relative;
    padding-left: 21px;
}

.score-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 19px;
    /* 매니저 화면과 동일: 배경 이미지 + 파란 필터 */
    background-image: url('/img/ico_score.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 180% auto;
    /* 내용만 확대 */
    filter: hue-rotate(210deg) saturate(3) brightness(1.1);
}

/* 버퍼: 점수 라인은 버프 아이콘으로 표시(색상은 동일) */
.score-info.is-buffer::before {
    background-image: url('/img/ico_buff_score.png');
}

/* 중앙 오버레이 제거 (사각형 문제 방지) */

/* 내부 아이콘 디테일(검은색) 오버레이 */
/* 중앙 오버레이 제거: 단일 아이콘로 표시 */

/* 점수 라벨 */
.score-label {
    font-weight: bold;
    color: #2196f3;
    margin-right: 8px;
}

/* 점수 값 */
.score-value {
    font-weight: bold;
    color: #2196f3;
    margin-left: 4px;
}

/* 버퍼 모드일 때 점수 값 색상 덮어쓰기 */
.score-info.buffer-mode .score-value {
    color: #6c757d !important;
}

/* 점수 상세 내역 */
.score-breakdown {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
    font-weight: normal;
}

.score-breakdown small {
    color: #6c757d;
    opacity: 0.8;
}

/* 등수 새로고침 버튼 비활성화 스타일 */
#refresh-rankings-btn:disabled {
    background: #f0f4f7 !important;
    border-color: #d8d8d8 !important;
    color: #6c757d !important;
    opacity: 0.6;
    cursor: pointer;
}

/* 아이템 정보 그리드 컨테이너 */
.info-grid-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3e6ea;
    overflow: hidden;
    position: relative;
}

/* 아이템 정보 스크롤 컨테이너 스타일링 */
.info-scroll-container::-webkit-scrollbar {
    height: 4px;
    /* 스크롤바 높이 축소 */
}

.info-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.info-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.info-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 모바일에서 아이템 정보 섹션 완전 숨김 */
@media (max-width: 768px) {
    #character-info-section {
        display: none !important;
        /* 모바일에서 아이템 정보 섹션 완전 숨김 */
    }
}


/* 아이템 정보 그리드 스타일 */
.info-card {
    background: transparent;
    border: none;
    padding: 0;
    /* 패딩 제거 */
    text-align: center;
    min-width: 160px;
    /* 전체 카드 크기 증가 */
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card .info-value {
    padding: 8px 10px;
    /* 기본 패딩 축소 */
    height: 48px;
    /* 고정 높이 설정 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    line-height: 1.2;
    /* 줄 간격 설정 */
}

/* 두 줄 이상인 경우 패딩 자동 조정 */
.info-card .info-value[style*="line-height"] {
    padding: 8px 10px;
    /* 두 줄일 때 위아래 패딩 축소 */
}

/* 시브, 버프강화, 짙편린 카드 크기 축소 */
.info-card:nth-child(5),
/* 시브 */
.info-card:nth-child(6),
/* 버프강화 */
.info-card:nth-child(7) {
    /* 짙편린 */
    min-width: 100px;
    /* 기본 160px에서 더 축소 */
}

/* 모바일 반응형 - 모든 카드 크기 축소 */
@media (max-width: 768px) {
    .info-card {
        min-width: 120px;
        /* 기본 160px에서 모바일용으로 축소 */
        padding: 16px 8px;
        /* 패딩도 축소 */
    }

    .info-card:nth-child(5),
    /* 시브 */
    .info-card:nth-child(6),
    /* 버프강화 */
    .info-card:nth-child(7) {
        /* 짙편린 */
        min-width: 80px;
        /* 모바일에서 더 축소 */
        padding: 16px 6px;
        /* 패딩도 더 축소 */
    }

    .info-card .info-value {
        padding: 6px 8px;
        /* 값 영역 패딩 축소 */
        font-size: 11px;
        /* 폰트 크기도 약간 축소 */
    }

    .info-card .info-label {
        font-size: 11px;
        /* 라벨 폰트 크기도 축소 */
    }
}

/* 더 작은 모바일 화면 */
@media (max-width: 480px) {
    .info-card {
        min-width: 100px;
        /* 더 작은 화면에서 추가 축소 */
        padding: 12px 6px;
    }

    .info-card:nth-child(5),
    /* 시브 */
    .info-card:nth-child(6),
    /* 버프강화 */
    .info-card:nth-child(7) {
        /* 짙편린 */
        min-width: 70px;
        /* 더 작은 화면에서 더 축소 */
        padding: 12px 4px;
    }

    .info-card .info-value {
        padding: 4px 6px;
        font-size: 10px;
        min-height: 36px;
        /* 높이도 축소 */
    }

    .info-card .info-label {
        font-size: 10px;
    }
}

.info-card:last-child {
    border-right: none;
}

.info-card:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
}

.info-label {
    font-size: 11px;
    color: #495057;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding: 3px 0;
}

.character-info-label {
    position: relative;
    display: inline-block;
}

.character-info-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grade-color, #dee2e6);
    /* CSS 변수로 동적 색상 */
    border-radius: 1px;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
    /* 줄바꿈 허용 */
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    /* 좌우 패딩 증가 */
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    text-align: center;
}

/* 캐릭터 정보 섹션 스타일 */
.character-rankings-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.character-rankings-info {
    display: flex;
    flex-direction: column;
}

.character-ranking-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.character-ranking-row:first-child {
    margin-bottom: 3px;
}

.character-ranking-label {
    font-weight: 500;
    font-size: 11px;
    color: #6c757d;
}

.character-ranking-value {
    font-weight: 500;
    color: #2196f3;
    font-size: 11px;
}

.refresh-rankings-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    margin-top: -6px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.refresh-rankings-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.refresh-rankings-btn:disabled {
    background: #e9ecef !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    opacity: 0.6;
    cursor: pointer;
}

.refresh-rankings-btn i {
    margin-right: 3px;
}

.character-info-grid {
    margin-top: 6px;
}

.character-info-scroll {
    overflow-x: auto;
    white-space: nowrap;
}

.character-info-container {
    display: inline-grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    min-width: 100%;
}

.character-info-card {
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    min-width: 160px;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.character-info-card:nth-child(5),
.character-info-card:nth-child(6),
.character-info-card:nth-child(7) {
    min-width: 100px;
}

.character-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    padding: 4px 1px 4px;
}

.character-info-value {
    padding: 5px 0;
    display: flex;
    /* 세로 중앙 정렬 */
    align-items: center;
    /* 세로 중앙 */
    justify-content: center;
    /* 가로 중앙 */
    height: 44px;
    text-align: center;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    /* 긴 단어도 줄바꿈 */
    word-break: break-word;
    white-space: normal;
    /* 여러 줄 허용 */
    line-height: 1.3;
    font-size: 13px;
    font-weight: 500;
}

.character-tab-separator {
    margin: 4px 0 0 0;
}

/* 점수 갱신 로딩 인디케이터 */
.score-loading-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 2px;
    border: 2px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: score-spinner-rotate 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes score-spinner-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 융합석 이미지 표기 스타일 */
.ei_fusion-stone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* 융합석 구분별 이미지 */
/* 일반 유니크 */
.ei_fusion-stone-normal-unique {
    background-image: url('/img/fusion/fusion_stone_unique_set.png');
    background-size: 20px 20px;
    background-position: top right;
    background-repeat: no-repeat;
}

/* 일반 에픽 */
.ei_fusion-stone-normal-epic {
    background-image: url('/img/fusion/fusion_stone_epic_set.png');
    background-size: 20px 20px;
    background-position: top right;
    background-repeat: no-repeat;
}

/* 고유 유니크 */
.ei_fusion-stone-unique-unique {
    background-image: url('/img/fusion/fusion_stone_unique.png');
    background-size: 20px 20px;
    background-position: top right;
    background-repeat: no-repeat;
}

/* 고유 에픽 */
.ei_fusion-stone-unique-epic {
    background-image: url('/img/fusion/fusion_stone_epic.png');
    background-size: 20px 20px;
    background-position: top right;
    background-repeat: no-repeat;
}

/* 방어구 고유 유니크 */
.ei_fusion-stone-unique-unique-armor {
    background-image: url('/img/fusion/fusion_stone_unique_armor.png');
    background-size: 20px 20px;
    background-position: top right;
    background-repeat: no-repeat;
}

/* 방어구 고유 에픽 */
.ei_fusion-stone-unique-epic-armor {
    background-image: url('/img/fusion/fusion_stone_epic_armor.png');
    background-size: 20px 20px;
    background-position: top right;
    background-repeat: no-repeat;
}



/* 일반 장비 SET 표기 */
.ei_fusion-stone-set {
    position: absolute;
    top: 2.5px;
    right: 2.8px;
    background: transparent;
    color: rgba(0, 0, 0, 0.6);
    font-size: 8px;
    font-weight: bold;
    padding: 1px 2px;
    border-radius: 2px;
    z-index: 15;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.score-summary-section {
    padding: 20px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.score-summary-container {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.score-summary-table {
    width: 100%;
    display: table;
    border-collapse: collapse;
}

.score-summary-row {
    display: table-row;
    border-bottom: 1px solid #e9ecef;
}

.score-summary-row:last-child {
    border-bottom: none;
}

.score-summary-row.score-summary-header {
    font-weight: 600;
}

.score-summary-cell {
    display: table-cell;
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 13px;
}

.score-summary-cell-label {
    width: 120px;
    font-weight: 500;
    color: #586069;
    line-height: 1.4;
    white-space: nowrap;
}

.score-summary-cell-value {
    text-align: right;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 4px;
    box-sizing: border-box;
}

.score-summary-cell-increase {
    text-align: right;
    font-weight: 600;
    color: #24292e;
    width: 30%;
}

.score-summary-header .score-summary-cell {
    font-size: 12px;
    color: #868e96;
    padding: 10px 11px;
}

.score-summary-title-value {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-align: right;
}

.score-summary-value {
    font-weight: 500;
    color: #24292e;
    text-align: right;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
}

/* 계산 과정 표시 (제목 아래) */
.score-summary-calc-detail {
    font-size: 11px;
    color: #6a737d;
    text-align: left;
    line-height: 1.4;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

/* 증가율 옆에 표시되는 계산 설명 */
.score-summary-calc-hint {
    font-size: 11px;
    color: #6a737d;
    font-weight: 400;
    display: block;
    margin-top: 2px;
    margin-left: 0;
    line-height: 1.4;
}

/* 도움말 아이콘 */
.score-summary-help-icon {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    color: #6a737d;
    font-size: 18px;
    vertical-align: middle;
    transition: color 0.2s, opacity 0.2s;
    line-height: 1;
    opacity: 0.5;
    white-space: nowrap;
}

.score-summary-help-icon:hover {
    color: #2196f3;
    opacity: 0.8;
}

.score-summary-help-icon i {
    display: inline-block;
    vertical-align: middle;
}

/* 계산식 도움말 모달 */
.score-help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.score-help-modal.show {
    display: block;
}

.score-help-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.score-help-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.score-help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.score-help-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.score-help-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.score-help-modal-close:hover {
    background-color: #e9ecef;
    color: #333;
}

.score-help-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.score-help-modal-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 캐릭터 전신 이미지 모달 */
.character-fullbody-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.character-fullbody-modal.show {
    display: block;
}

.character-fullbody-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 80, 80, 0.55);
}

/* 캐릭터 전신 모달 기본 스타일 */
.character-fullbody-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.character-fullbody-modal-header {
    display: none;
}

.character-fullbody-modal-body {
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character-fullbody-modal-img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transform-origin: center center;
}

/* PC: 캐릭터 전신 모달 (모바일과 동일한 실제 이미지 크기로 표시) */
@media (min-width: 486px) {
    .character-fullbody-modal-content {
        max-width: 420px;
        max-height: 560px;
        width: 420px;
    }

    .character-fullbody-modal-body {
        min-height: 550px;
    }

    .character-fullbody-modal-img {
        max-height: 550px;
        transform: scale(3.1) translateY(-6%) translateX(1%);
    }
}

/* 모바일: 캐릭터 전신 모달 - 이미지 확대, 넘치는 부분 잘림 */
@media (max-width: 485px) {
    .character-fullbody-modal-content {
        max-width: 70vw;
        max-height: 61vh;
        width: 68vw;
    }

    .character-fullbody-modal-body {
        min-height: 68vh;
        padding: 2px;
        padding-top: 1vh;
        align-items: flex-start;
    }

    .character-fullbody-modal-img {
        max-height: 70vh;
        transform: scale(2.1) translateY(5%) translateX(1%);
    }
}

/* 증가율 항목 강조 */
.score-summary-row.score-summary-item-highlight {
    background-color: #fff;
}

.score-summary-row.score-summary-item-highlight .score-summary-cell-label {
    font-weight: 600;
    color: #212529;
}

.score-summary-row.score-summary-item-highlight .score-summary-cell-increase .score-summary-value {
    font-weight: 700;
    color: #212529;
    font-size: 15px;
    letter-spacing: -0.3px;
}

.score-summary-row.score-summary-item-highlight .score-summary-calc-hint {
    color: #6a737d;
    font-size: 11px;
}

/* 모바일 반응형 - Grid로 25:35:40 고정 (1구분 2값 3데미지증가율) */
@media (max-width: 768px) {
    .score-summary-section {
        padding: 12px 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .score-summary-container {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        overflow-x: visible;
        box-sizing: border-box;
    }

    .score-summary-table {
        display: block;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .score-summary-row {
        display: grid;
        grid-template-columns: minmax(0, 25fr) minmax(0, 35fr) minmax(0, 40fr);
        width: 100%;
        min-width: 100%;
        border-bottom: 1px solid #e9ecef;
        box-sizing: border-box;
    }

    .score-summary-row:last-child {
        border-bottom: none;
    }

    .score-summary-cell {
        display: block;
        box-sizing: border-box;
        padding: 8px 10px;
        font-size: 12px;
        white-space: normal;
        overflow: visible;
        word-break: break-word;
        overflow-wrap: break-word;
        min-width: 0;
    }

    .score-summary-cell-label {
        width: auto;
        min-width: 0;
        font-size: 12px;
        padding-right: 10px;
    }

    .score-summary-cell-value {
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
    }

    .score-summary-cell-value .score-summary-title-value,
    .score-summary-cell-value .score-summary-calc-detail {
        text-align: right;
        width: 100%;
        display: block;
        word-break: break-word;
        overflow-wrap: break-word;
        min-width: 0;
    }

    .score-summary-cell-increase {
        width: 100%;
        min-width: 0;
        padding-left: 10px;
        box-sizing: border-box;
    }

    .score-summary-title-value {
        font-size: 12px;
    }

    .score-summary-calc-detail {
        font-size: 10px;
        margin-top: 2px;
    }

    .score-summary-value {
        font-size: 12px;
    }

    .score-summary-calc-hint {
        font-size: 10px;
    }

    .score-summary-help-icon {
        font-size: 14px;
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .score-summary-section {
        padding: 10px 6px;
    }

    .score-summary-row {
        grid-template-columns: minmax(0, 25fr) minmax(0, 35fr) minmax(0, 40fr);
        min-width: 100%;
    }

    .score-summary-cell {
        display: block;
        box-sizing: border-box;
        padding: 6px 8px;
        font-size: 11px;
    }

    .score-summary-cell-label {
        width: auto;
        min-width: 0;
        font-size: 11px;
        padding-right: 8px;
    }

    .score-summary-cell-value {
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .score-summary-cell-increase {
        width: 100%;
        min-width: 0;
        padding-left: 8px;
        box-sizing: border-box;
    }

    .score-summary-title-value {
        font-size: 11px;
    }

    .score-summary-calc-detail {
        font-size: 9px;
        margin-top: 2px;
    }

    .score-summary-value {
        font-size: 11px;
    }

    .score-summary-help-icon {
        font-size: 13px;
        margin-left: 3px;
    }
}

/* 서약비교: rowspan 테이블 — 캐릭터 탭 Tabulator(.adventure)와 동일 톤 */
#covenant-comparison-grid .covenant-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff !important;
    border: none;
    font-size: 14px;
    line-height: 1.5;
}

#covenant-comparison-grid .covenant-comparison-table thead {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f3f4 !important;
}

#covenant-comparison-grid .covenant-comparison-table thead th {
    background-color: #f8f9fa !important;
    border-right: 1px solid #e9ecef !important;
    border-bottom: 1px solid #f1f3f4 !important;
    font-weight: 400 !important;
    color: #495057 !important;
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.45;
    font-size: 13px;
    transition: background-color 0.2s ease;
}

#covenant-comparison-grid .covenant-comparison-table thead th:last-child {
    border-right: none !important;
}

#covenant-comparison-grid .covenant-comparison-table tbody td {
    border-right: 1px solid #f8f9fa !important;
    border-bottom: 1px solid #f8f9fa !important;
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    padding: 16px 12px;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.5;
    transition: background-color 0.2s ease;
    cursor: default;
}

#covenant-comparison-grid .covenant-comparison-table tbody td:last-child {
    border-right: none !important;
}

#covenant-comparison-grid .covenant-comparison-table tbody tr:hover td {
    background-color: #f8f9fa !important;
}

/* 장착 중인 서약 세트·옵션과 일치하는 행 — 서약비교 */
#covenant-comparison-grid .covenant-comparison-table tbody tr.cc-row--equip-lineage td {
    background-color: #eef6ff !important;
}

#covenant-comparison-grid .covenant-comparison-table tbody tr.cc-row--equip-lineage:hover td {
    background-color: #e2effc !important;
}

/* 착용 중 장비 세트(setVo.setId 일치) 행 — 세트비교 Tabulator */
#set-comparison-grid .tabulator-row.sc-row--current-set,
#set-comparison-grid .tabulator-row.sc-row--current-set .tabulator-cell {
    background-color: #eef6ff !important;
}

#set-comparison-grid .tabulator-row.sc-row--current-set:hover,
#set-comparison-grid .tabulator-row.sc-row--current-set:hover .tabulator-cell {
    background-color: #e2effc !important;
}

#covenant-comparison-grid .covenant-comparison-table .cc-col-set {
    vertical-align: middle;
}

/* 셀 패딩은 td에만 (다른 탭 Tabulator와 동일하게 내부 span 이중 여백 제거) */
#covenant-comparison-grid .covenant-comparison-table .cc-col-set .gi_data-table-td,
#covenant-comparison-grid .covenant-comparison-table .cc-col-opt .gi_data-table-td {
    padding: 0;
    margin: 0;
}

#covenant-comparison-grid .covenant-comparison-table .cc-col-score {
    text-align: center;
}

/* 서약비교: 상세검색과 동일 세트 타일 (site.css .search-set-grid 와 동일 규칙) */
.covenant-compare-section .covenant-compare-equip-label {
    margin: 0 0 6px 2px;
    font-size: 12px;
    font-weight: 500;
    color: #5a6570;
    letter-spacing: -0.02em;
}

.covenant-compare-section .covenant-compare-set-hint {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #666;
}

.covenant-compare-section .covenant-compare-set-selector.search-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
    padding: 4px;
    margin-bottom: 10px;
}

.covenant-compare-section .covenant-compare-set-selector .set-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 0 0 0;
    margin: 3px 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.covenant-compare-section .covenant-compare-set-selector .set-tile:hover {
    background: rgba(0, 0, 0, 0.03);
}

.covenant-compare-section .covenant-compare-set-selector .set-tile.active {
    border-color: #c8e1ff;
    background: #f2f8ff;
}

.covenant-compare-section .covenant-compare-set-selector .set-tile.inactive {
    opacity: 0.45;
    filter: grayscale(100%);
}

.covenant-compare-section .covenant-compare-set-selector .set-tile-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.covenant-compare-section .covenant-compare-set-selector .set-tile-label {
    margin-top: 3px;
    font-size: 11px;
    color: #444;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .covenant-compare-section .covenant-compare-set-selector.search-set-grid {
        /* 상세검색과 동일: 모바일 한 줄 6칸 → 12개 시 6+6 */
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 3px;
        max-height: 120px;
    }

    .covenant-compare-section .covenant-compare-set-selector .set-tile {
        min-width: 0;
    }

    .covenant-compare-section .covenant-compare-set-selector .set-tile-img {
        width: 24px;
        height: 24px;
    }

    /* 서약비교 테이블: 모바일 — style_dun Tabulator(768px)와 유사한 6px 8px, 레이아웃만 고정 */
    #covenant-comparison-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    #covenant-comparison-grid .covenant-comparison-table {
        font-size: 13px;
        table-layout: fixed;
        min-width: 0;
    }

    #covenant-comparison-grid .covenant-comparison-table thead th {
        padding: 6px 8px;
        font-size: 12px;
        font-weight: 400 !important;
    }

    #covenant-comparison-grid .covenant-comparison-table tbody td {
        padding: 6px 8px;
        font-size: 13px;
        min-width: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    #covenant-comparison-grid .covenant-comparison-table .cc-th-set,
    #covenant-comparison-grid .covenant-comparison-table .cc-col-set {
        width: 22%;
    }

    #covenant-comparison-grid .covenant-comparison-table .cc-th-opt,
    #covenant-comparison-grid .covenant-comparison-table .cc-col-opt {
        width: 28%;
    }

    #covenant-comparison-grid .covenant-comparison-table .cc-th-score,
    #covenant-comparison-grid .covenant-comparison-table .cc-col-score {
        width: 50%;
    }

    #covenant-comparison-grid .covenant-comparison-table .cc-col-set .detail-item-image {
        width: 20px !important;
        height: 20px !important;
        margin-right: 3px !important;
        vertical-align: middle;
    }

    #covenant-comparison-grid .covenant-comparison-table .cc-col-set .gi_data-table-td {
        font-size: 12px !important;
        padding: 0 !important;
        white-space: normal;
        line-height: 1.4;
    }

    #covenant-comparison-grid .covenant-comparison-table .cc-col-opt .gi_data-table-td {
        padding: 0 !important;
        font-size: 12px;
        white-space: normal;
        line-height: 1.4;
    }

    #covenant-comparison-grid .covenant-comparison-table .cc-col-score {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* 세트 비교 탭: 목록 로드 안내 (전역 오버레이 대신 그리드 영역만) */
.sc_content-area .set-comparison-inline-hint {
    padding: 12px 8px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
}