/* ============================================================
   RESPONSIVE (반응형) — 페이지별로 모음
============================================================ */


/* ------------------------------------------------------------
   COMMON — 레이아웃 / 사이드바 / 상단바 / 푸터 / 슬라이드 내비
------------------------------------------------------------ */

@media (max-width: 768px) {

  .layout {
    display: block;
    width: 100%;
    margin-left: 0; /* 모바일은 사이드바 기둥이 없으므로 초기화 */
  }

  /* 모바일은 슬라이드 내비가 오버레이 방식이라, 사이드바 열림 시
     데스크톱처럼 .layout을 280px 밀지 않도록 무효화 (가로 스크롤 방지) */
  body.nav-open .layout {
    margin-left: 0;
    width: 100%;
  }

  /* 모바일은 사이드바 기둥 없이 로고만 탑바 왼쪽에 남김
     · 메뉴는 탑바 오른쪽 ☰(.top-menu-button)로 엶
     · 사이드바의 ☰ · 단톡방 접힘 배너는 숨김 */
  .sidebar {
    position: absolute; /* 고정 아님 : 탑바와 같이 스크롤되어 올라감 */
    top: 0;
    left: 0;

    display: flex;
    align-items: center;

    width: auto;
    height: 58px; /* 탑바(.top-bar-inner) 높이 */
    min-height: 0;
    padding-left: 20px; /* 탑바 좌우 여백과 같음 */

    background: none;
    border-right: 0;

    z-index: 100;
  }

  .sidebar-logo {
    padding-top: 0;
  }

  .sidebar-menu-button,
  .sidebar .chatroom-mini {
    display: none;
  }

  .page {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .main,
  .hero-section,
  .ranking-section {
    width: 100%;
    max-width: none;
  }

  .top-bar-inner {
    padding: 0 20px;
  }
}



@media (max-width: 480px) {

  .top-menu {
    gap: 16px;
  }
}



@media (max-width: 768px) {

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;

    padding: 20px 0;
  }

  .footer-links {
    flex-wrap: wrap;
    line-height: normal;
    gap: 4px 0;
  }

  .footer-links a {
    padding-left: 0;
    padding-right: 12px;
  }

  .footer-address {
    white-space: normal;
    line-height: 1.6;
  }

  .footer-logo {
    margin-left: 0;
  }
}



/* 슬라이드 내비 바깥(어두운 영역)을 터치하면 닫히도록 오버레이 표시
   · 닫기 동작은 script.js initSlideNav()의 navOverlay click에 이미 연결되어 있음
   · PC는 내비가 본문을 옆으로 미는 방식이라 오버레이 없음 */
@media (max-width: 768px) {

  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 100; /* .slide-nav(101) 바로 아래 */

    background: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* 메뉴가 열려 있는 동안 뒤 페이지 스크롤 잠금 (스크롤이 두 개 잡히던 문제) */
  body.nav-open {
    overflow: hidden;
  }

  /* 메뉴 끝에서 스크롤이 뒤 페이지로 넘어가지 않게 */
  .slide-nav {
    overscroll-behavior: contain;
  }
}



@media (max-width: 480px) {

  /* 오른쪽에 터치해서 닫을 여백(56px)을 남김 */
  .slide-nav {
    width: calc(100% - 56px);
  }

  .scroll-top-btn {
    right: 20px;
    bottom: 20px;

    width: 40px;
    height: 40px;
  }
}




/* ------------------------------------------------------------
   메인페이지 — HERO / RANKING
------------------------------------------------------------ */

@media (max-width: 1200px) {

  .hero-title {
    font-size: 72px;
    letter-spacing: -4px;
  }

  .hero-character {
    width: 260px;
  }

  .ranking-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}



@media (max-width: 768px) {

  .hero-section {
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 60px; /* 검색창 아래 남는 초록 여백 */
  }

  .hero-container {
    padding: 48px 20px 40px; /* 검색창이 너무 아래로 내려가지 않게 */

    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-copy {
    display: contents;
  }

  .hero-title {
    display: block;

    order: 1;

    font-size: 48px;
    letter-spacing: -3px;

    text-align: center;
  }

  .hero-title-black {
    display: block;

    margin-right: 0;
  }

  .hero-title-white {
    display: inline;
  }

  .hero-description {
    order: 2;
    margin-top: 20px;
  }

  .hero-character {
    order: 3;

    position: static;

    width: 180px;

    margin: 16px auto 0;
  }

  .hero-search-wrap {
    order: 4;

    width: 100%;
    margin-top: 20px;
  }

  .hero-search {
    width: 100%;
  }

  .search-type {
    width: 130px;

    padding: 0 16px;
  }

  .ranking-container {
    padding: 80px 20px;
  }

  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-character {
    display: none;
  }
}



@media (max-width: 480px) {

  .hero-title {
    font-size: 40px;
  }

  .hero-character {
    width: 150px;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-character {
    display: none;
  }

  .search-type {
    width: 100px;

    padding: 0 12px;
  }
}




/* ------------------------------------------------------------
   서브페이지 공통
------------------------------------------------------------ */

@media (max-width: 768px) {

  .section-header-keyword {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .keyword-label-list {
    flex-wrap: wrap;
  }
}



@media (max-width: 768px) {

  .page-hero-container {
    padding: 28px 0 0;
  }

  .page-title {
    font-size: 28px;
    letter-spacing: -1px;
  }

  /* 제목 아래로 기준 블로그를 내리고, 아이디가 넘치면 옆으로 밀어서 봄 */
  .page-hero-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .blog-switch {
    min-width: 0;
    gap: 28px;
    height: 44px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .blog-switch::-webkit-scrollbar {
    display: none;
  }

  .page-container {
    padding-top: 24px;
  }

  .search-type-wrap {
    width: 110px;
    flex-shrink: 0;
  }

  .search-box-sub input.search-input-sub {
    width: auto;
    flex: 1;
    min-width: 0;
  }
}




/* ------------------------------------------------------------
   BLOG ANALYSIS PAGE
------------------------------------------------------------ */

@media (max-width: 900px) {

  .analysis-panels--keyword-sub {
    flex-direction: column;
  }

  .keyword-tag,
  .keyword-section {
    min-width: auto;
  }

  .stat-grid--8 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



@media (max-width: 1200px) {

  .analysis-panels--keyword {
    grid-template-columns: 1fr 0.7fr;
  }

  .keyword-competition {
    grid-column: 1 / -1;
  }
}



@media (max-width: 768px) {

  .analysis-panels--keyword {
    grid-template-columns: 1fr;
  }

  .keyword-competition {
    grid-column: auto;
  }

  /* 블로그 영향력 분석 / 포스팅 패턴: 모바일에서 세로로 쌓기 */
  .analysis-summary {
    flex-direction: column;
  }

  /* 프로필/채널현황 카드: 모바일에서 세로로 쌓고, 안쪽 그리드도 1열로
     (인플 홈 분석 채널 현황은 아래 「인플 홈 분석」 구역에서 따로 덮음) */
  .profile-info-row {
    flex-direction: column;
  }

  .profile-info-row > .stat-card {
    flex: none;
    width: 100%;
  }

  .profile-info-row .stat-grid--2,
  .profile-info-row .stat-grid--3 {
    grid-template-columns: 1fr;
  }

  /* 활동 히스토리: 차트 이미지가 고정폭 요약 박스에 밀려 찌그러지지 않도록 세로로 쌓기 */
  .activity-history__content {
    flex-direction: column;
  }

  .activity-history__summary {
    width: 100%;
  }

  /* 활동/기간 탭: 두 그룹을 분리해서 세로로 쌓기 */
  .activity-history__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* 활동 리스트 탭: 4개 탭은 꽉 차게 나눠 쓰고, 필터 토글은 별도 줄로 분리
     (탭 모서리 라운드는 style.css의 :first-child / :last-child 규칙을 그대로 씀) */
  .activity-list__tabs {
    flex-wrap: wrap;
  }

  .activity-list__tab {
    flex: 1;
    padding: 0 10px;
  }

  .activity-list__filter-tab {
    flex: 1 0 100%;
    order: 1;

    margin-top: 8px;

    border-radius: 8px;
  }

  /* 필터 패널: 세로로 쌓고, 그룹은 2열 그리드로 */
  .activity-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;

    padding: 20px;
  }

  .activity-filter__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .activity-filter__actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .activity-filter__save,
  .activity-filter__reset,
  .activity-filter__apply {
    flex: 1;
  }

  .keyword-briefing__main {
    align-items: flex-start;
  }

  .keyword-competition__grid {
    grid-template-columns: 1fr;
  }

  .analysis-panels {
    flex-direction: column;
  }

  .profile-stats {
    flex-direction: column;
  }

  .analysis-card {
    padding: 20px;
  }
}



/* 블로그 분석 상세 · 검색 기록 표의 모바일 카드형은
   파일 맨 아래 「모바일 표 → 카드형」 구역에 있음 */




/* ============================================================
   KEYWORD ANALYSIS DETAIL — 1블록 · 2블록 · 블로그 TOP 5 : 모바일 표 → 리스트형
   · 마크업 변경 없음, CSS만으로 처리
   · 표를 감싼 .keyword-block-analysis__table-wrap 안의 표에만 적용 (다른 표는 그대로)
   · 칸 순서(nth-child) 기준이라, 열을 추가·삭제·이동하면 여기도 같이 수정
     1 레벨 / 2 유효키워드 / 3 전체 순위 / 4 발행일 / 5 제목 / 6 글자수 / 7 키워드 / 8 이미지 / 9 방문자
============================================================ */

@media (max-width: 768px) {

  /* ---------- 상위 5개 글 평균 : 3칸씩, 글자 줄임 ---------- */

  .keyword-block-analysis__stats {
    gap: 6px;
  }

  .keyword-block-analysis__stats .stat-card {
    padding: 9px 4px;
  }

  .keyword-block-analysis__stats .stat-card__label {
    font-size: 12px;
    letter-spacing: -1px;
    white-space: nowrap;
  }

  .keyword-block-analysis__stats .stat-card__value {
    margin-top: 2px;
    font-size: 14px;
    letter-spacing: -0.5px;
  }


  /* 블로그만 보기 : 탭 옆 한 줄에 들어가게 */
  .keyword-block-toggle .stat-card__label {
    font-size: 13px;
  }


  /* ---------- 표를 블록으로 풀기 ---------- */

  .keyword-block-analysis__table-wrap {
    margin-top: 16px;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table,
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table thead {
    display: none;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #EEEEEE;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody tr:last-child {
    border-bottom: 0;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td {
    display: block;
    box-sizing: border-box;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
    color: #1F2420;
    font-size: 12px;
    line-height: 1.4;
  }


  /* ---------- 1줄 : 레벨 배지 · 유효 523개 · 2,897위 · 4일 전 ---------- */

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(1) {
    order: 1;
    margin-right: -4px; /* 배지와 유효키워드 사이 6px */
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(1) .level-badge {
    min-width: 36px;
    height: 20px;
    padding: 0 6px;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(2),
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(3),
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(4) {
    color: #777777;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(2) { order: 2; }
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(3) { order: 3; margin-left: -6px; }
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(4) { order: 4; margin-left: -6px; }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(2)::before {
    content: "유효 ";
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(3)::before,
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(4)::before {
    content: "· ";
    color: #CFCFCF;
  }


  /* ---------- 2줄 : 제목 (한 줄 말줄임) ---------- */

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(5) {
    order: 5;
    flex: 0 0 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 700;
  }


  /* ---------- 3줄 : 글자 · 키워드 · 이미지 · 방문자 (4칸, 라벨 위 · 값 아래) ---------- */

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(n+6) {
    order: 6;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(n+6)::before {
    color: #8A8A8A;
    font-size: 12px;
    font-weight: 400;
  }

  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(6)::before { content: "글자 수"; }
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(7)::before { content: "키워드"; }
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(8)::before { content: "이미지"; }
  .keyword-block-analysis__table-wrap .blog-analysis-table tbody td:nth-child(9)::before { content: "방문자"; }
}



@media (max-width: 1024px) {

  .keyword-related-panels {
    grid-template-columns: 1fr 1fr;
  }

  .keyword-expand__table-wrap {
    overflow-x: auto;
  }

  .keyword-expand__table-wrap .blog-analysis-table {
    min-width: 700px;
  }
}



@media (max-width: 768px) {

  .keyword-related-panels {
    grid-template-columns: 1fr;
  }
}




/* ------------------------------------------------------------
   KEYWORD LIST FILTER PAGE
------------------------------------------------------------ */

@media (max-width: 1200px) {

  .keyword-recommend-panels {
    grid-template-columns: 1fr 1fr;
  }

  .keyword-recommend-card:last-child {
    grid-column: 1 / -1;
  }
}



@media (max-width: 768px) {

  .keyword-recommend-panels {
    grid-template-columns: 1fr;
  }

  .keyword-recommend-card:last-child {
    grid-column: auto;
  }
}



@media (max-width: 768px) {

  .valid-keyword-result .keyword-list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .valid-keyword-result .keyword-list-actions {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .valid-keyword-result .exposure-filter {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .valid-keyword-result .keyword-list-search {
    width: 100%;
  }
}



@media (max-width: 768px) {

  .influencer-list-search .keyword-list-search {
    width: 100%;
  }

  .keyword-list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .keyword-list-actions {
    flex-wrap: wrap;
  }

  .keyword-list-search {
    width: 100%;
  }
}



@media (max-width: 1200px) {

  .filter-detail {
    grid-template-columns: 1fr 1fr;
  }

  .category-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advanced-filter__row {
    grid-template-columns: 110px 1fr 1fr 40px;
  }
}



@media (max-width: 900px) {

  .keyword-filter-panel__selected {
    align-items: flex-start;
    flex-direction: column;
  }

  .keyword-filter-panel__actions {
    width: 100%;
  }

  /* 빠른 필터를 맨 위로, 그다음 선택된 필터 → 카테고리 필터 → 고급 필터 순으로 */
  .keyword-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .filter-detail {
    display: contents;
  }

  .filter-detail > .keyword-filter {
    order: 1;
    height: auto;
  }

  .keyword-filter-panel__selected {
    order: 2;
    margin-bottom: 0;
  }

  .filter-detail__category {
    order: 3;
    height: auto;
  }

  .filter-detail__advanced {
    order: 4;
  }
}



@media (max-width: 640px) {

  .keyword-filter__quick {
    flex-wrap: wrap;
  }

  .keyword-filter-panel__actions {
    flex-wrap: wrap;
  }

  .category-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}




/* ------------------------------------------------------------
   KEYWORD RECOMMEND MODAL / 유효키워드 모달
------------------------------------------------------------ */

@media (max-width: 600px) {

  .keyword-modal__content {
    top: auto;
    bottom: 0;
    left: 0;

    width: 100%;
    max-width: none;
    max-height: 90vh;

    padding: 24px 20px;

    border-radius: 20px 20px 0 0;

    transform: none;
  }

  .keyword-modal__body {
    margin-top: 24px;
  }

  .keyword-modal__categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .keyword-modal__footer {
    flex-direction: column-reverse;
  }

  .keyword-modal__cancel,
  .keyword-modal__submit {
    width: 100%;
    flex: none;
  }
}



@media (max-width: 768px) {

  .exposure-filter {
    flex-wrap: wrap;
  }

  .valid-keyword-modal__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}




/* ------------------------------------------------------------
   INFLUENCER LIST PAGE
------------------------------------------------------------ */

@media (max-width: 1200px) {

  .influencer-filter-item {
    flex: 1 1 140px;
  }

  .influencer-filter-item select {
    width: 100%;
  }
}



@media (max-width: 480px) {

  /* 인플루언서 현황 카드: 인라인 style로 4열 고정이라 !important로 덮어씀 */
  .influencer-category-filter .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}



@media (max-width: 768px) {

  .influencer-category-filter {
    margin-bottom: 36px;
  }


  /* filter */

  .influencer-filter-panel {
    padding: 20px;
  }

  .influencer-filter-panel__header {
    margin-bottom: 18px;
  }

  /* 접기/펼치기 토글 버튼: 모바일에서만 노출 */
  .filter-toggle-btn {
    display: flex;
  }

  .influencer-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;

    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .influencer-filter-grid.is-collapsed {
    max-height: 0;
  }

  .influencer-filter-item,
  .influencer-filter-item:has(#filter-longtail-rate) {
    width: 100%;
    min-width: 0;
  }

  .influencer-filter-item select {
    width: 100%;
    min-width: 0;
  }


  /* toolbar */

  .influencer-list-toolbar {
    align-items: stretch;
  }

  .influencer-list-search {
    width: 100%;
  }

  .influencer-search-type {
    width: 100px;
    flex-shrink: 0;
  }

  /* 표는 아래 「인플루언서 리스트 테이블 - 모바일 카드형」 구역에서 카드로 바뀜 */
}



@media (max-width: 480px) {

  .influencer-filter-grid {
    grid-template-columns: 1fr;
  }

  .influencer-list-search {
    flex-direction: column;
  }

  .influencer-search-type {
    width: 100%;
  }
}



@media (max-width: 1200px) {

  .analysis-panels--overview {
    flex-direction: column;
  }
}




/* ----------------------------------------
   반응형 — 키워드챌린지 플래너
---------------------------------------- */

@media (max-width: 1200px) {

  .analysis-panels--challenge {
    grid-template-columns: 1fr 1fr;
  }

  .challenge-rank-change {
    grid-column: 1 / -1;
  }
}



@media (max-width: 900px) {

  .sidebar--expanded {
    display: none;
  }
}



@media (max-width: 768px) {

  .analysis-panels--challenge {
    grid-template-columns: 1fr;
  }

  .keyword-check__result {
    grid-template-columns: 1fr;
  }
}




/* ----------------------------------------
   반응형 — 인플 홈 분석
---------------------------------------- */

@media (max-width: 768px) {

  /* 채널 현황 : TOP3 위 전체 폭, 6칸은 아래 3열
     · 페이지 CSS(influencer-analysis-detail.css)의 220px 1fr 그리드를 이기도록
       선택자를 한 단계 강하게 씀 (.analysis-panels.analysis-panels--overview) */
  .analysis-panels.analysis-panels--overview .profile-info-row--fill {
    display: grid;
    grid-template-columns: 1fr;
  }

  .analysis-panels.analysis-panels--overview .profile-info-row--fill > .stat-card {
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .analysis-panels.analysis-panels--overview .profile-info-row--fill > .stat-grid--3 {
    height: auto;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }

  /* 작은 칸 : 글자 단위 줄바꿈 방지 */
  .analysis-panels--overview .stat-grid--3 .stat-card__label,
  .analysis-panels--overview .stat-grid--3 .stat-card__value,
  .analysis-panels--overview .stat-grid--3 .metric-heading__value {
    word-break: keep-all;
  }
}



@media (max-width: 640px) {

  /* 헤더: 타이틀/아이콘/설명 줄바꿈 허용 */
  .section-title-row {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .analysis-card {
    padding: 16px;
  }

  /* 컨테이너를 grid로 전환, 2열 */
  .longtail-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* 화살표는 모바일에서 숨김 (grid에서 완전히 제외됨) */
  .longtail-flow__arrow {
    display: none;
  }

  /* 결과 박스를 맨 위로, 2열 전체 폭 사용 */
  .longtail-flow__result {
    order: -1;
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid #EFEFEA;
  }

  .longtail-flow__result-label {
    display: none; /* "이 모든 조건을 만족하는 키워드가" / "있습니다" 문구는 모바일에선 생략 */
  }



  /* 카드: 2x2 배열, 폭이 좁아지니 텍스트 사이즈 축소 */
  .longtail-flow__card {
    padding: 14px 12px;
    gap: 8px;
  }

  .longtail-flow__title {
    font-size: 13px;
  }

  .longtail-flow__desc {
    font-size: 11px;
  }

  /* 롱테일 키챌 표는 아래 「모바일 표 → 카드형」 구역에서 카드로 바뀜 */

  /* 더보기 버튼: 이미 width:100%라 추가 작업 불필요, 모바일 폰트만 살짝 축소 */
  .analysis-card__more-btn {
    font-size: 12px;
    padding: 10px;
  }
}




/* ----------------------------------------
   반응형 — 블로그 TOP 100 조회 결과 패널
---------------------------------------- */

@media (max-width: 768px) {

  .search-result-panel__header {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .search-result-panel__name,
  .search-result-panel__category,
  .search-result-panel__rank,
  .search-result-panel__change {
    white-space: nowrap;
  }

  .search-result-panel__note {
    margin-left: 0;
    width: 100%;
  }
}




/* ------------------------------------------------------------
   회원가입 (join) — 모바일
   · 구조와 동작은 멤버십 페이지와 같음 (플로팅 스테퍼 + 단계 패널 + 하단 선택 바)
------------------------------------------------------------ */

@media (max-width: 768px) {

  .join-page {
    padding: 28px 0 80px;
  }

  .join-inner {
    padding: 0 16px;
  }

  /* 플로팅 스테퍼 */
  .join-page .join-steps {
    --jn-float-top: 10px;
  }

  .join-page .step-head {
    min-height: 44px;
    margin-bottom: 24px;
    padding: 6px 10px;
  }

  .join-page .stepper { gap: 4px; }
  .join-page .stepper-link { gap: 6px; padding: 4px; }
  .join-page .stepper-item { gap: 6px; font-size: 14px; }
  .join-page .stepper-item + .stepper-item::before { width: 10px; margin-right: 0; }

  /* 좁은 화면에서는 현재 단계 이름만 노출 */
  .join-page .stepper-item:not(.is-active) .stepper-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  /* 단계 패널 */
  .join-page .step-panel.is-open + .step-panel.is-open {
    margin-top: 32px;
    padding-top: 32px;
  }

  .join-page .step-panel-head {
    gap: 8px;
    margin-bottom: 14px;
  }

  .join-page .step-panel-title {
    font-size: 18px;
  }

  .join-page .join-card {
    gap: 20px;
    padding: 28px 20px;
  }

  /* 혜택 카드 : 세로로 쌓고 PC용 줄바꿈 해제 */
  .join-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .join-benefit {
    gap: 4px;
    padding: 14px 16px;
  }

  .join-benefit__desc br {
    display: none;
  }

  .join-btn {
    width: 104px;
  }

  /* 하단 선택 바 : 정보 → 버튼 → 건너뛰기 순으로 세로 배치 */
  .join-page .selected-guide {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 20px;
  }

  .join-page .guide-info {
    width: 100%;
    margin-right: 0;
  }

  .join-page .guide-empty,
  .join-page .guide-name {
    font-size: 16px;
  }

  .join-page .btn-next {
    width: 100%;
  }

  .join-skip {
    order: 1;
    width: 100%;
    padding: 4px 0;
    text-align: center;
  }

  .join-final-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    font-size: 13px;
  }

  /* 가입 완료 */
  .join-done {
    gap: 24px;
    padding: 32px 20px;
  }

  .join-done-icon {
    width: 56px;
    height: 56px;
    background-size: 28px;
  }

  .join-done-title {
    font-size: 22px;
  }

  .join-done-desc {
    font-size: 14px;
  }

  .join-trial-box {
    padding: 18px 16px;
  }

  .join-trial-box__timer {
    font-size: 24px;
  }

  .join-start-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}



@media (max-width: 480px) {

  /* 사이드바(48px)를 빼면 폭이 좁아서 스테퍼를 한 단계 더 줄임 */
  .join-page .step-head {
    padding: 6px 8px;
  }

  .join-page .stepper-link {
    padding: 2px;
  }

  .join-page .stepper-num {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .join-page .stepper-item.is-done .stepper-num {
    background-size: 13px;
  }

  .join-page .stepper-item + .stepper-item::before {
    width: 6px;
  }

  /* 입력칸 + 버튼 : 입력칸이 너무 좁아지지 않게 두 줄로 */
  .join-input-row {
    flex-wrap: wrap;
  }

  .join-input-row .join-input {
    flex-basis: 100%;
  }

  .join-input-row .join-btn {
    width: 100%;
  }
}




/* =========================================================
   인플루언서 리스트 테이블 - 모바일 카드형 (B안)
   - 마크업 수정 없음
   - 범위: 블로그레벨(data-key="bl") 열이 있는 표 = 인플루언서 리스트만 적용
   - 항목 라벨은 td 순서(nth-child) 기준이라 열 순서가 바뀌면 같이 수정 필요
========================================================= */

@media (max-width: 768px) {

  /* 표 감싸는 영역: 가로 스크롤·테두리 해제 */
  .blog-analysis-table-wrap:has([data-key="bl"]) {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .blog-analysis-table:has([data-key="bl"]),
  .blog-analysis-table:has([data-key="bl"]) thead,
  .blog-analysis-table:has([data-key="bl"]) tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }


  /* ---------------------------------------------------------
     머리글 → 정렬 칩 (가로 스크롤, 기존 클릭 정렬 그대로 동작)
  --------------------------------------------------------- */

  .blog-analysis-table:has([data-key="bl"]) thead tr {
    display: flex;
    gap: 5px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    background: transparent;
  }

  .blog-analysis-table:has([data-key="bl"]) thead tr::-webkit-scrollbar {
    display: none;
  }

  .blog-analysis-table:has([data-key="bl"]) thead th {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: auto;
    padding: 5px 10px;
    border: 1px solid #DDDDDD;
    border-radius: 999px;
    background: #FFFFFF;
    color: #555555;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }

  /* 정렬 안 되는 열은 칩에서 제외 */
  .blog-analysis-table:has([data-key="bl"]) thead th:not(.is-sortable) {
    display: none;
  }

  /* 자주 쓰는 정렬 먼저: 등급 / TOP 3 키챌 / 팬 수 / 참여한 키챌 */
  .blog-analysis-table:has([data-key="bl"]) thead th[data-key="g"] { order: -4; }
  .blog-analysis-table:has([data-key="bl"]) thead th[data-key="t"] { order: -3; }
  .blog-analysis-table:has([data-key="bl"]) thead th[data-key="f"] { order: -2; }
  .blog-analysis-table:has([data-key="bl"]) thead th[data-key="k"] { order: -1; }

  .blog-analysis-table:has([data-key="bl"]) thead th.is-sorted {
    border-color: #42BE78;
    color: #42BE78;
  }

  .blog-analysis-table:has([data-key="bl"]) .table-fillter svg {
    width: 11px;
    height: 10px;
  }


  /* ---------------------------------------------------------
     행 → 카드
  --------------------------------------------------------- */

  .blog-analysis-table:has([data-key="bl"]) tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    background: #FFFFFF;
  }

  .blog-analysis-table:has([data-key="bl"]) tbody td {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    white-space: nowrap;
  }

  /* 줄바꿈용 (1줄: 닉네임·등급·레벨·분석 / 2줄: 아이디·카테고리) */
  .blog-analysis-table:has([data-key="bl"]) tbody tr::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  /* 2줄과 항목 영역 사이 구분선 */
  .blog-analysis-table:has([data-key="bl"]) tbody tr::after {
    content: "";
    order: 4;
    flex-basis: 100%;
    height: 1px;
    margin: 4px 0;
    background: #F2F2F2;
  }

  /* 1줄 */
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(1),
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(3),
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(4),
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(15) {
    order: 1;
  }

  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(1) {
    font-size: 14px;
  }

  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(4) {
    font-size: 12px;
  }

  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(15) {
    margin-left: auto;
  }

  /* 2줄 */
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(2),
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(5) {
    order: 3;
    font-size: 12px;
  }

  /* 항목 영역 (2열 라벨/값) */
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(n+6):nth-child(-n+14) {
    order: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
    min-width: 0;
    font-size: 12px;
    color: #1F2420;
  }

  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(n+6):nth-child(-n+14)::before {
    color: #8A8A8A;
    font-weight: 400;
  }

  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(6)::before  { content: "팬 수"; }
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(7)::before  { content: "마이타입"; }
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(8)::before  { content: "참여한 키챌"; }
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(9)::before  { content: "참여한 토픽"; }
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(10)::before { content: "TOP 3 키챌"; }
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(11)::before { content: "TOP 3 비율"; }
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(12)::before { content: "롱테일 비율"; }
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(13)::before { content: "선정일"; }
  .blog-analysis-table:has([data-key="bl"]) tbody td:nth-child(14)::before { content: "최근 활동일"; }

  /* TOP 3 키챌 배지 크기 줄임 */
  .blog-analysis-table:has([data-key="bl"]) .top3 {
    min-width: 0;
    height: 20px;
    padding: 0 6px;
    border-radius: 5px;
  }
}




/* ============================================================
   모바일 표 → 카드형 (인플루언서 리스트 B안과 같은 기조)
   · 마크업 변경 없음, CSS만으로 처리
   · 카드 공통 : 테두리 #EEEEEE / 라운드 12px / 안쪽 12px / 카드 간격 8px
                 구분선 #F2F2F2 / 항목 2열 (라벨 회색 왼쪽, 값 오른쪽)
   · 표 구분은 칸 수가 아니라 표마다 고유한 클래스 · 위치로 잡음
     (칸 수만으로 잡으면 다른 페이지의 같은 칸 수 표까지 걸려서)
   · 칸 순서(nth-child) 기준이라, 열을 추가 · 삭제 · 이동하면 여기도 같이 수정
   · 적용 표
     블로그 분석 상세 : 유효 키워드 · 인기글 목록 · 최근 포스팅
     검색 기록 : 블로그 분석 · 키워드 분석 · 인플루언서 홈 분석
     저장한 키워드 / 블로그 TOP 100 (랭킹 · 조회 결과)
     키챌 플래너 : 키워드챌린지 리스트 (인플 · 비인플) · 키워드 추천
     인플 홈 분석 상세 : 활동 리스트 (키챌 3종 · 토픽) · 롱테일 키챌
   · 인플루언서 리스트는 바로 위 별도 구역 (정렬 칩이 있어서)
============================================================ */

@media (max-width: 768px) {

  /* --------------------------------------------------------
     공통 : 감싼 영역 테두리 해제, 표를 블록으로 풀고 행을 카드로
  -------------------------------------------------------- */

  .section-header-popular + .blog-analysis-table-wrap,
  .section-header:has(.table-control) + .blog-analysis-table-wrap,
  .blog-analysis-table-wrap:has(#valid-keyword-body),
  .blog-analysis-table-wrap:has(thead th:nth-child(12):last-child),
  .blog-analysis-table-wrap:has(thead th:nth-child(10):last-child),
  .blog-analysis-table-wrap:has(.keyword-row-check),
  .rank-table-wrap,
  .search-result-panel__table-wrap,
  .tscroll,
  .rec-t-wrap,
  .activity-list__table-wrap,
  .longtail-keychal-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table,
  .blog-analysis-table:has(#valid-keyword-body),
  .blog-analysis-table:has(thead th:nth-child(12):last-child),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]),
  .keyword-list-table:has(.keyword-row-check),
  .rank-table,
  .wrap:not(.planner-basic) .kt,
  .wrap.planner-basic .kt,
  .rec-t,
  .activity-list__table:has(thead th:nth-child(8):last-child),
  .activity-list__table:has(thead th:nth-child(5):last-child),
  .longtail-keychal-table,
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody,
  .blog-analysis-table:has(#valid-keyword-body) tbody,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody,
  .keyword-list-table:has(.keyword-row-check) tbody,
  .rank-table tbody,
  .wrap:not(.planner-basic) .kt tbody,
  .wrap.planner-basic .kt tbody,
  .rec-t tbody,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody,
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody,
  .longtail-keychal-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table thead,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table thead,
  .blog-analysis-table:has(#valid-keyword-body) thead,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) thead,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) thead,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) thead,
  .keyword-list-table:has(.keyword-row-check) thead,
  .rank-table thead,
  .wrap:not(.planner-basic) .kt thead,
  .wrap.planner-basic .kt thead,
  .rec-t thead,
  .activity-list__table:has(thead th:nth-child(5):last-child) thead,
  .longtail-keychal-table thead {
    display: none;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody tr,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody tr,
  .blog-analysis-table:has(#valid-keyword-body) tbody tr,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody tr,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody tr,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody tr,
  .keyword-list-table:has(.keyword-row-check) tbody tr,
  .rank-table tbody tr,
  .wrap:not(.planner-basic) .kt tbody tr,
  .wrap.planner-basic .kt tbody tr,
  .rec-t tbody tr,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody tr,
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody tr,
  .longtail-keychal-table tbody tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    background: #FFFFFF;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody tr:last-child,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody tr:last-child,
  .blog-analysis-table:has(#valid-keyword-body) tbody tr:last-child,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody tr:last-child,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody tr:last-child,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody tr:last-child,
  .keyword-list-table:has(.keyword-row-check) tbody tr:last-child,
  .rank-table tbody tr:last-child,
  .wrap:not(.planner-basic) .kt tbody tr:last-child,
  .wrap.planner-basic .kt tbody tr:last-child,
  .rec-t tbody tr:last-child,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody tr:last-child,
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody tr:last-child,
  .longtail-keychal-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td,
  .blog-analysis-table:has(#valid-keyword-body) tbody td,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td,
  .keyword-list-table:has(.keyword-row-check) tbody td,
  .rank-table tbody td,
  .wrap:not(.planner-basic) .kt tbody td,
  .wrap.planner-basic .kt tbody td,
  .rec-t tbody td,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td,
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td,
  .longtail-keychal-table tbody td {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    text-align: left;
    color: #1F2420;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }

  /* 비인플 키챌 표 : challenge-planner.css 의 display:table-cell !important 를 덮음 */
  .wrap.planner-basic .kt tbody td {
    display: block !important;
  }

  /* 상단 정보와 항목 영역 사이 구분선 (표마다 order로 위치 지정) */
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody tr::after,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody tr::after,
  .blog-analysis-table:has(#valid-keyword-body) tbody tr::after,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody tr::after,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody tr::after,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody tr::after,
  .keyword-list-table:has(.keyword-row-check) tbody tr::after,
  .rank-table tbody tr::after,
  .wrap:not(.planner-basic) .kt tbody tr::after,
  .wrap.planner-basic .kt tbody tr::after,
  .rec-t tbody tr::after,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody tr::after,
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody tr::after,
  .longtail-keychal-table tbody tr::after {
    content: "";
    flex-basis: 100%;
    height: 1px;
    margin: 4px 0;
    background: #F2F2F2;
  }

  /* 결과 없음 행 (colspan 한 칸) */
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td[colspan],
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td[colspan],
  .blog-analysis-table:has(#valid-keyword-body) tbody td[colspan],
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td[colspan],
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td[colspan],
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td[colspan],
  .keyword-list-table:has(.keyword-row-check) tbody td[colspan],
  .rank-table tbody td[colspan],
  .wrap:not(.planner-basic) .kt tbody td[colspan],
  .wrap.planner-basic .kt tbody td[colspan],
  .rec-t tbody td[colspan],
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td[colspan],
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td[colspan],
  .longtail-keychal-table tbody td[colspan] {
    flex: 1 1 100%;
    padding: 24px 0;
    text-align: center;
    color: #8A8A8A;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody tr:has(td[colspan])::after,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody tr:has(td[colspan])::after,
  .blog-analysis-table:has(#valid-keyword-body) tbody tr:has(td[colspan])::after,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody tr:has(td[colspan])::after,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody tr:has(td[colspan])::after,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody tr:has(td[colspan])::after,
  .keyword-list-table:has(.keyword-row-check) tbody tr:has(td[colspan])::after,
  .rank-table tbody tr:has(td[colspan])::after,
  .wrap:not(.planner-basic) .kt tbody tr:has(td[colspan])::after,
  .wrap.planner-basic .kt tbody tr:has(td[colspan])::after,
  .rec-t tbody tr:has(td[colspan])::after,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody tr:has(td[colspan])::after,
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody tr:has(td[colspan])::after,
  .longtail-keychal-table tbody tr:has(td[colspan])::after {
    display: none;
  }

  /* 분석 · 저장 아이콘 버튼 안쪽 */
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:last-child a,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:last-child a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:last-child svg {
    width: 14px;
    height: 14px;
  }


  /* --------------------------------------------------------
     블로그 분석 상세 : 유효 키워드
     1 키워드 / 2 통합검색위치 / 3 인기글순위 / 4 블로그탭순위 / 5 월간 검색량 / 6 콘텐츠포화도
  -------------------------------------------------------- */

  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(1) {
    order: 1;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .blog-analysis-table:has(#valid-keyword-body) tbody tr::after {
    order: 2;
  }

  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(2),
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(3),
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(4),
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(5),
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(6) {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(2)::before,
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(3)::before,
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(4)::before,
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(5)::before,
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(6)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(2)::before { content: "통합검색"; }
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(3)::before { content: "인기글"; }
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(4)::before { content: "블로그탭"; }
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(5)::before { content: "월간 검색량"; }
  .blog-analysis-table:has(#valid-keyword-body) tbody td:nth-child(6)::before { content: "포화도"; }

  /* --------------------------------------------------------
     블로그 분석 상세 : 인기글 목록
     1 발행일 / 2 제목 / 3 일 평균 조회수 / 4 유입비율 / 5 분석
  -------------------------------------------------------- */

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(2) {
    order: 1;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(5) {
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px -6px -6px 0;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody tr::after {
    order: 2;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(1),
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(3),
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(4) {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(1)::before,
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(3)::before,
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(4)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(1)::before { content: "작성"; }
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(3)::before { content: "일 평균"; }
  .section-header-popular + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(4)::before { content: "유입비율"; }

  /* --------------------------------------------------------
     블로그 분석 상세 : 최근 포스팅
     1 노출상태 / 2 관련성 / 3 발행일 / 4 제목 / 5 글자수 / 6 이미지 / 7 동영상 / 8 댓글 / 9 공감 / 10 공유 / 11 분석
  -------------------------------------------------------- */

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(1) {
    order: 1;
    flex: none;
  }

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(4) {
    order: 1;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(11) {
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px -6px -6px 0;
  }

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody tr::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(2),
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(3) {
    order: 3;
    margin-top: -2px;
    color: #8A8A8A;
  }

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody tr::after {
    order: 4;
  }

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(5),
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(6),
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(7),
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(8),
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(9),
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(10) {
    order: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(5)::before,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(6)::before,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(7)::before,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(8)::before,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(9)::before,
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(10)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(5)::before { content: "글자수"; }
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(6)::before { content: "이미지"; }
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(7)::before { content: "동영상"; }
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(8)::before { content: "댓글"; }
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(9)::before { content: "공감"; }
  .section-header:has(.table-control) + .blog-analysis-table-wrap .blog-analysis-table tbody td:nth-child(10)::before { content: "공유"; }

  /* --------------------------------------------------------
     검색 기록 공통 : 고정 · 삭제 버튼을 카드 오른쪽 위로
     블로그 분석(12칸) · 키워드 분석(10칸, 등급 배지) · 인플루언서 홈 분석(10칸, 인플 등급)
     1 삭제 / 2 고정 은 세 표 모두 같음
  -------------------------------------------------------- */

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(1),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(1),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(1),
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(2),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(2),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(2) {
    position: absolute;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(1),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(1),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(1) {
    right: 2px;
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(2),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(2),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(2) {
    right: 42px;
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(3) a,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(3) a,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(3) a {
    color: inherit;
  }

  /* 세 표 공통 : 1줄 / 2줄 나눔, 구분선은 2줄 뒤 */
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody tr::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody tr::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody tr::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody tr::after,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody tr::after,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody tr::after {
    order: 5;
  }

  /* --------------------------------------------------------
     검색 기록 : 블로그 분석
     3 닉네임 / 4 검색시간 / 5 카테고리 / 6~12 수치
  -------------------------------------------------------- */

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(3) {
    order: 1;
    max-width: calc(100% - 84px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(5),
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(4) {
    order: 3;
    margin-top: -2px;
    color: #8A8A8A;
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(4)::before {
    content: "· ";
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(4) {
    order: 4;
    margin-left: -6px;
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(6),
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(7),
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(8),
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(9),
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(10),
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(11),
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(12) {
    order: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(6)::before,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(7)::before,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(8)::before,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(9)::before,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(10)::before,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(11)::before,
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(12)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(6)::before { content: "유효키워드"; }
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(7)::before { content: "총 포스팅"; }
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(8)::before { content: "누적 방문자"; }
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(9)::before { content: "전체 게시물"; }
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(10)::before { content: "이웃 수"; }
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(11)::before { content: "인플루언서"; }
  .blog-analysis-table:has(thead th:nth-child(12):last-child) tbody td:nth-child(12)::before { content: "스크랩"; }

  /* --------------------------------------------------------
     검색 기록 : 인플루언서 홈 분석
     3 닉네임(등급) / 4 검색시간 / 5 카테고리 / 6 TOP3 키워드 / 7 참여한 키챌 / 8 참여한 토픽 / 9 팬 수 / 10 주력 채널
  -------------------------------------------------------- */

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(3) {
    order: 1;
    max-width: calc(100% - 84px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(5),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(4) {
    order: 3;
    margin-top: -2px;
    color: #8A8A8A;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(4)::before {
    content: "· ";
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(4) {
    order: 4;
    margin-left: -6px;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(6),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(7),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(8),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(9),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(10) {
    order: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(6)::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(7)::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(8)::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(9)::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(10)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(6)::before { content: "TOP3 키워드"; }
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(7)::before { content: "참여한 키챌"; }
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(8)::before { content: "참여한 토픽"; }
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(9)::before { content: "팬 수"; }
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has([class*="infl-level--"]) tbody td:nth-child(10)::before { content: "주력 채널"; }

  /* --------------------------------------------------------
     검색 기록 : 키워드 분석
     3 키워드 / 4 키워드 등급 / 5 진입 가능성 / 6 진입 속도 / 7 검색시간 / 8 카테고리 / 9 월간 검색량 / 10 콘텐츠 포화도
  -------------------------------------------------------- */

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(3) {
    order: 1;
    max-width: calc(100% - 84px - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(4) {
    order: 1;
    flex: none;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(8),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(7) {
    order: 3;
    margin-top: -2px;
    color: #8A8A8A;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(7)::before {
    content: "· ";
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(7) {
    order: 4;
    margin-left: -6px;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(5),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(6),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(9),
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(10) {
    order: 6;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(5)::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(6)::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(9)::before,
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(10)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(5)::before { content: "진입 가능성"; }
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(6)::before { content: "진입 속도"; }
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(9)::before { content: "월간 검색량"; }
  .blog-analysis-table:has(thead th:nth-child(10):last-child):has(.grade-badge) tbody td:nth-child(10)::before { content: "콘텐츠 포화도"; }

  /* --------------------------------------------------------
     저장한 키워드
     1 선택 / 2 키워드 / 3 카테고리 / 4 추천등급 / 5 진입 가능성 / 6 진입 속도
     7 월간 검색량 / 8 월간 발행량 / 9 콘텐츠 포화도 / 10 블로그 자리 / 11 저장일
  -------------------------------------------------------- */

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(1) {
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(2) {
    order: 1;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(4) {
    order: 1;
    flex: none;
  }

  .keyword-list-table:has(.keyword-row-check) tbody tr::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(3),
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(11) {
    order: 3;
    margin-top: -2px;
    color: #8A8A8A;
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(11) {
    margin-left: -6px;
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(11)::before {
    content: "· ";
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(11)::after {
    content: " 저장";
  }

  .keyword-list-table:has(.keyword-row-check) tbody tr::after {
    order: 4;
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(5),
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(6),
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(7),
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(8),
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(9),
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(10) {
    order: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(5)::before,
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(6)::before,
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(7)::before,
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(8)::before,
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(9)::before,
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(10)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(5)::before { content: "진입 가능성"; }
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(6)::before { content: "진입 속도"; }
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(7)::before { content: "월간 검색량"; }
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(8)::before { content: "월간 발행량"; }
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(9)::before { content: "포화도"; }
  .keyword-list-table:has(.keyword-row-check) tbody td:nth-child(10)::before { content: "블로그 자리"; }

  /* --------------------------------------------------------
     블로그 TOP 100 : 랭킹 표 · 조회 결과 표 (구조 같음)
     1 블로그 ID / 2 닉네임 / 3 카테고리 / 4 카테고리 순위 / 5 전체 순위 / 6 주간 변동 / 7 최고 순위
     8 레벨 / 9 키워드 영향력 / 10 상위노출 지수 / 11 유효키워드 / 12 통합검색 키워드 / 13 인플루언서 / 14 네이버 인증
  -------------------------------------------------------- */

  /* 조회한 블로그 행 : 기존 연초록 강조 유지 */
  .rank-table tbody tr.search-result-panel__row--target {
    border-color: #BEE6CC;
    background: #E8F3ED;
  }

  /* 1줄 : 전체 순위 · 닉네임 · 주간 변동 · 인플 등급 */
  .rank-table tbody td:nth-child(5) {
    order: 0;
    flex: none;
    font-size: 15px;
    font-weight: 700;
  }

  .rank-table tbody td:nth-child(2) {
    order: 1;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .rank-table tbody td:nth-child(6) {
    order: 1;
    flex: none;
  }

  .rank-table tbody td:nth-child(13) {
    order: 1;
    flex: none;
    margin-left: auto;
  }

  .rank-table tbody tr::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  /* 2줄 : 블로그 ID · 카테고리 카테고리 순위 · 레벨 */
  .rank-table tbody td:nth-child(1),
  .rank-table tbody td:nth-child(3),
  .rank-table tbody td:nth-child(4),
  .rank-table tbody td:nth-child(8) {
    order: 3;
    margin-top: -2px;
    color: #8A8A8A;
    font-weight: 400;
  }

  .rank-table tbody td:nth-child(1) a {
    color: inherit;
  }

  .rank-table tbody td:nth-child(3)::before,
  .rank-table tbody td:nth-child(8)::before {
    content: "· ";
  }

  .rank-table tbody td:nth-child(3),
  .rank-table tbody td:nth-child(8) {
    margin-left: -6px;
  }

  .rank-table tbody td:nth-child(4) {
    margin-left: -7px;
  }

  .rank-table tbody td:nth-child(4) strong {
    font-weight: 400;
  }

  .rank-table tbody tr::after {
    order: 4;
  }

  .rank-table tbody td:nth-child(7),
  .rank-table tbody td:nth-child(9),
  .rank-table tbody td:nth-child(10),
  .rank-table tbody td:nth-child(11),
  .rank-table tbody td:nth-child(12),
  .rank-table tbody td:nth-child(14) {
    order: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .rank-table tbody td:nth-child(7)::before,
  .rank-table tbody td:nth-child(9)::before,
  .rank-table tbody td:nth-child(10)::before,
  .rank-table tbody td:nth-child(11)::before,
  .rank-table tbody td:nth-child(12)::before,
  .rank-table tbody td:nth-child(14)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .rank-table tbody td:nth-child(7)::before { content: "최고 순위"; }
  .rank-table tbody td:nth-child(9)::before { content: "키워드 영향력"; }
  .rank-table tbody td:nth-child(10)::before { content: "상위노출 지수"; }
  .rank-table tbody td:nth-child(11)::before { content: "유효키워드"; }
  .rank-table tbody td:nth-child(12)::before { content: "통검 키워드"; }
  .rank-table tbody td:nth-child(14)::before { content: "네이버 인증"; }

  /* 네이버 인증 : 배지가 여러 개라 마지막 줄 전체 폭, 배지는 작게 */
  .rank-table tbody td:nth-child(14) {
    flex: 1 1 100%;
    flex-wrap: wrap;
    height: auto;
  }

  .rank-table tbody td:nth-child(14) .ranking-badge {
    width: 18px;
    height: 18px;
    margin-left: 2px;
  }

  /* --------------------------------------------------------
     키챌 플래너 : 키워드챌린지 리스트 (인플)
     1 저장 / 2 키워드 / 3 예상 순위 / 4 참여자 수 / 5 검색량 / 6 발행일 / 7 등록 횟수 / 8 도전 여부
     9 1위 / 10 2위 / 11 3위 / 12 분석
     승률 토스트는 닉네임 버튼 위치를 기준으로 뜨므로 카드에서도 같은 자리에 뜸
  -------------------------------------------------------- */

  .wrap:not(.planner-basic) .kt tbody td:nth-child(1) {
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px 0 -6px -6px;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(2) {
    order: 1;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(12) {
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px -6px -6px 0;
  }

  .wrap:not(.planner-basic) .kt tbody tr::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(3),
  .wrap:not(.planner-basic) .kt tbody td:nth-child(8) {
    order: 3;
    color: #8A8A8A;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(3)::before {
    content: "예상 ";
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(8)::before {
    content: "· 도전 ";
  }

  .wrap:not(.planner-basic) .kt tbody tr::after {
    order: 4;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(4),
  .wrap:not(.planner-basic) .kt tbody td:nth-child(5),
  .wrap:not(.planner-basic) .kt tbody td:nth-child(6),
  .wrap:not(.planner-basic) .kt tbody td:nth-child(7) {
    order: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(4)::before,
  .wrap:not(.planner-basic) .kt tbody td:nth-child(5)::before,
  .wrap:not(.planner-basic) .kt tbody td:nth-child(6)::before,
  .wrap:not(.planner-basic) .kt tbody td:nth-child(7)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(4)::before { content: "참여자 수"; }
  .wrap:not(.planner-basic) .kt tbody td:nth-child(5)::before { content: "검색량"; }
  .wrap:not(.planner-basic) .kt tbody td:nth-child(6)::before { content: "발행일"; }
  .wrap:not(.planner-basic) .kt tbody td:nth-child(7)::before { content: "등록 횟수"; }

  /* 1~3위 닉네임 칩 : 한 줄에 하나씩 세로로 쌓음 (2026-11-11)
     · 닉네임 · 경과일이 한 줄에 다 보이고, 승률 토스트가 누른 줄 하나만 덮음 */
  .wrap:not(.planner-basic) .kt tbody td:nth-child(9),
  .wrap:not(.planner-basic) .kt tbody td:nth-child(10),
  .wrap:not(.planner-basic) .kt tbody td:nth-child(11) {
    order: 6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 100%;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(9) {
    margin-top: 4px;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(9)::before,
  .wrap:not(.planner-basic) .kt tbody td:nth-child(10)::before,
  .wrap:not(.planner-basic) .kt tbody td:nth-child(11)::before {
    flex: none;
    width: 22px;
    color: #8A8A8A;
    font-size: 12px;
  }

  .wrap:not(.planner-basic) .kt tbody td:nth-child(9)::before { content: "1위"; }
  .wrap:not(.planner-basic) .kt tbody td:nth-child(10)::before { content: "2위"; }
  .wrap:not(.planner-basic) .kt tbody td:nth-child(11)::before { content: "3위"; }

  .wrap:not(.planner-basic) .kt tbody .op {
    flex: 1 1 0;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    line-height: 32px;
    font-size: 13px;
    text-align: left;
  }

  /* 경과일은 닉네임 옆에 */
  .wrap:not(.planner-basic) .kt tbody .op .dd {
    display: inline;
    font-size: 12px;
  }

  /* --------------------------------------------------------
     키워드챌린지 리스트 (challenge-list.html · 비인플 · 대행사) (2026-11-11 10칸 구성에 맞춰 다시 씀)
     1 키워드 / 2 카테고리 / 3 통합검색 / 4 참여자 수 / 5 검색량 / 6 발행일 / 7 등록 횟수 / 8 1위 / 9 2위 / 10 3위
     · 이전 규칙은 9칸(카테고리 · 통합검색 없음) 기준이라 칸 이름이 한 칸씩 밀려 있었음
  -------------------------------------------------------- */

  /* 윗줄 : 키워드 | 카테고리 · 통합검색 */
  .wrap.planner-basic .kt tbody td:nth-child(1) {
    order: 1;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .wrap.planner-basic .kt tbody td:nth-child(2),
  .wrap.planner-basic .kt tbody td:nth-child(3) {
    order: 1;
    flex: none;
  }

  .wrap.planner-basic .kt tbody td:nth-child(2) {
    color: #777777;
  }

  .wrap.planner-basic .kt tbody tr::after {
    order: 2;
  }

  /* 지표 4개 : 2칸씩 두 줄 (칸 이름 왼쪽 · 값 오른쪽) */
  .wrap.planner-basic .kt tbody td:nth-child(4),
  .wrap.planner-basic .kt tbody td:nth-child(5),
  .wrap.planner-basic .kt tbody td:nth-child(6),
  .wrap.planner-basic .kt tbody td:nth-child(7) {
    order: 3;
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .wrap.planner-basic .kt tbody td:nth-child(4)::before,
  .wrap.planner-basic .kt tbody td:nth-child(5)::before,
  .wrap.planner-basic .kt tbody td:nth-child(6)::before,
  .wrap.planner-basic .kt tbody td:nth-child(7)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .wrap.planner-basic .kt tbody td:nth-child(4)::before { content: "참여자 수"; }
  .wrap.planner-basic .kt tbody td:nth-child(5)::before { content: "검색량"; }
  .wrap.planner-basic .kt tbody td:nth-child(6)::before { content: "발행일"; }
  .wrap.planner-basic .kt tbody td:nth-child(7)::before { content: "등록 횟수"; }

  /* 1위 · 2위 · 3위 : 한 줄에 하나씩 (닉네임이 잘리지 않게), 돋보기는 오른쪽 */
  .wrap.planner-basic .kt tbody td:nth-child(8),
  .wrap.planner-basic .kt tbody td:nth-child(9),
  .wrap.planner-basic .kt tbody td:nth-child(10) {
    order: 4;
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1 1 100%;
  }

  .wrap.planner-basic .kt tbody td:nth-child(8) {
    margin-top: 4px;
  }

  .wrap.planner-basic .kt tbody td:nth-child(8)::before,
  .wrap.planner-basic .kt tbody td:nth-child(9)::before,
  .wrap.planner-basic .kt tbody td:nth-child(10)::before {
    flex: none;
    width: 22px;
    color: #8A8A8A;
    font-size: 12px;
  }

  .wrap.planner-basic .kt tbody td:nth-child(8)::before { content: "1위"; }
  .wrap.planner-basic .kt tbody td:nth-child(9)::before { content: "2위"; }
  .wrap.planner-basic .kt tbody td:nth-child(10)::before { content: "3위"; }

  .wrap.planner-basic .kt tbody .opw {
    flex: 1 1 0;
    min-width: 0;
  }

  .wrap.planner-basic .kt tbody .op {
    height: 32px;
    padding: 0 10px;
    line-height: 32px;
    font-size: 13px;
  }

  .wrap.planner-basic .kt tbody .op .dd {
    display: inline;
    font-size: 12px;
  }

  /* --------------------------------------------------------
     키챌 플래너 : 키워드 추천
     1 키워드 리스트 / 2 TOP 3 진입 예상 / 3 금 · 은 · 동 / 4 저장
  -------------------------------------------------------- */

  .rec-t tbody td:nth-child(1) {
    order: 1;
    flex: 1 1 0;
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    word-break: keep-all;
  }

  .rec-t tbody td:nth-child(4) {
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px -6px -6px 0;
  }

  .rec-t tbody tr::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  .rec-t tbody td:nth-child(2) {
    order: 3;
    color: #8A8A8A;
  }

  .rec-t tbody td:nth-child(2)::before {
    content: "TOP 3 진입 예상 ";
  }

  .rec-t tbody td:nth-child(3) {
    order: 3;
    margin-left: auto;
  }

  .rec-t tbody tr::after {
    display: none;
  }

  /* --------------------------------------------------------
     인플 홈 분석 상세 : 활동 리스트 (키워드 챌린지 · 상위노출 키챌 · 롱테일 키챌)
     1 번호 / 2 키워드 / 3 순위 / 4 발행일 / 5 검색량 / 6 키챌 섹션 / 7 참여자 수 / 8 글
     머리글은 정렬 아이콘이 있는 칸만 가로 스크롤 칩으로 남김
  -------------------------------------------------------- */

  .activity-list__table:has(thead th:nth-child(8):last-child) thead {
    display: block;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) thead tr {
    display: flex;
    gap: 5px;
    padding-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    background: transparent;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) thead tr::-webkit-scrollbar {
    display: none;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) thead th {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: auto;
    padding: 5px 10px;
    border: 1px solid #DDDDDD;
    border-radius: 999px;
    background: #FFFFFF;
    color: #555555;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) thead th:not(:has(svg)) {
    display: none;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) thead th svg {
    width: 11px;
    height: 11px;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(1) {
    order: 1;
    flex: none;
    color: #8A8A8A;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(2) {
    order: 1;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(3) {
    order: 1;
    flex: none;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(8) {
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px -6px -6px 0;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) tbody tr::after {
    order: 2;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(4),
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(5),
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(6),
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(7) {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(4)::before,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(5)::before,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(6)::before,
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(7)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(4)::before { content: "발행일"; }
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(5)::before { content: "검색량"; }
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(6)::before { content: "키챌 섹션"; }
  .activity-list__table:has(thead th:nth-child(8):last-child) tbody td:nth-child(7)::before { content: "참여자 수"; }

  /* --------------------------------------------------------
     인플 홈 분석 상세 : 활동 리스트 (토픽)
     1 번호 / 2 세부 주제 / 3 콘텐츠 수 / 4 발행일 / 5 제목
     수치가 적어 구분선 · 2열 없이 제목 아래 한 줄로
  -------------------------------------------------------- */

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(1) {
    order: 1;
    flex: none;
    color: #8A8A8A;
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(5) {
    order: 1;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody tr::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(2),
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(3),
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(4) {
    order: 3;
    margin-top: -2px;
    color: #8A8A8A;
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(2) {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(3),
  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(4) {
    margin-left: -6px;
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(3)::before {
    content: "· 콘텐츠 ";
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(3)::after {
    content: "개";
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody td:nth-child(4)::before {
    content: "· ";
  }

  .activity-list__table:has(thead th:nth-child(5):last-child) tbody tr::after {
    display: none;
  }

  /* --------------------------------------------------------
     인플 홈 분석 상세 : 롱테일 키챌
     1 키워드 / 2 순위 / 3 발행일 / 4 검색량 / 5 키챌 섹션 / 6 참여자수
  -------------------------------------------------------- */

  .longtail-keychal-table tbody td:nth-child(1) {
    order: 1;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  .longtail-keychal-table tbody td:nth-child(2) {
    order: 1;
    flex: none;
    padding: 1px 7px;
    border-radius: 999px;
    background: #E5F4EA;
    color: #218A4C;
    font-size: 11px;
    font-weight: 700;
  }

  .longtail-keychal-table tbody tr::after {
    order: 2;
  }

  .longtail-keychal-table tbody td:nth-child(3),
  .longtail-keychal-table tbody td:nth-child(4),
  .longtail-keychal-table tbody td:nth-child(5),
  .longtail-keychal-table tbody td:nth-child(6) {
    order: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  .longtail-keychal-table tbody td:nth-child(3)::before,
  .longtail-keychal-table tbody td:nth-child(4)::before,
  .longtail-keychal-table tbody td:nth-child(5)::before,
  .longtail-keychal-table tbody td:nth-child(6)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  .longtail-keychal-table tbody td:nth-child(3)::before { content: "발행일"; }
  .longtail-keychal-table tbody td:nth-child(4)::before { content: "검색량"; }
  .longtail-keychal-table tbody td:nth-child(5)::before { content: "키챌 섹션"; }
  .longtail-keychal-table tbody td:nth-child(6)::before { content: "참여자수"; }
}




/* ============================================================
   키워드 추천 : 추천받은 키워드 (#kr-history) : 모바일 표 → 카드형
   · 마크업 변경 없음, CSS만으로 처리 (위 「모바일 표 → 카드형」 과 같은 카드 모양)
   · 1 저장 / 2 추천 출처 / 3 키워드 / 4 월 검색량 / 5 월 발행량 / 6 콘텐츠 포화도 / 7 광고 경쟁
   · 회차 구분 행(td.kr-round)은 카드 위의 작은 제목 줄로
   · 위쪽 3개 패널의 추천 표(펼침 행 · 키워드 맵 포함)는 그대로 둠
============================================================ */

@media (max-width: 768px) {

  #kr-history .blog-analysis-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #kr-history .kr-table,
  #kr-history .kr-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #kr-history .kr-table thead {
    display: none;
  }


  /* ---------- 회차 구분 행 : 제목 줄 ---------- */

  #kr-history .kr-table tbody tr[data-round-head] {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #kr-history .kr-table tbody tr[data-round-head] + tr,
  #kr-history .kr-table tbody tr + tr[data-round-head] {
    margin-top: 8px;
  }

  #kr-history .kr-table tbody tr + tr[data-round-head] {
    padding-top: 8px;
  }

  #kr-history .blog-analysis-table td.kr-round {
    display: block;
    padding: 4px 2px 0;
    border: 0;
    background: transparent;
    color: #1F2420;
    font-size: 13px;
  }


  /* ---------- 키워드 행 : 카드 ---------- */

  #kr-history .kr-table tbody tr[data-round] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #EEEEEE;
    border-radius: 12px;
    background: #FFFFFF;
  }

  #kr-history .kr-table tbody tr[data-round] td {
    display: block;
    box-sizing: border-box;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: #1F2420;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }

  /* 1줄 : 저장 · 키워드 · 추천 출처 */
  #kr-history .kr-table tbody tr[data-round] td:nth-child(1) {
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -6px 0 -6px -6px;
  }

  #kr-history .kr-table tbody tr[data-round] td:nth-child(3) {
    order: 2;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
  }

  #kr-history .kr-table tbody tr[data-round] td:nth-child(2) {
    order: 3;
    flex: none;
  }

  /* 구분선 */
  #kr-history .kr-table tbody tr[data-round]::after {
    content: "";
    order: 4;
    flex-basis: 100%;
    height: 1px;
    margin: 4px 0;
    background: #F2F2F2;
  }

  /* 항목 2열 */
  #kr-history .kr-table tbody tr[data-round] td:nth-child(n+4) {
    order: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
  }

  #kr-history .kr-table tbody tr[data-round] td:nth-child(n+4)::before {
    margin-right: auto;
    color: #8A8A8A;
    font-weight: 400;
  }

  #kr-history .kr-table tbody tr[data-round] td:nth-child(4)::before { content: "월 검색량"; }
  #kr-history .kr-table tbody tr[data-round] td:nth-child(5)::before { content: "월 발행량"; }
  #kr-history .kr-table tbody tr[data-round] td:nth-child(6)::before { content: "콘텐츠 포화도"; }
  #kr-history .kr-table tbody tr[data-round] td:nth-child(7)::before { content: "광고 경쟁"; }
}

/* ------------------------------------------------------------
   블로그 분석 상세 — 인기글 목록 · 유효키워드 (모바일 카드형)
   · 카드 약 2.5장 높이(320px)로 고정, 영역 안에서 세로 스크롤
------------------------------------------------------------ */
@media (max-width: 768px) {

/* responsive.css · @media (max-width: 768px) 안 */
.analysis-card-wrap .blog-analysis-table-wrap {
  position: relative;
  max-height: 320px;
  overscroll-behavior: contain;
  display: block;              /* !important 만 삭제 */
  overflow: hidden auto !important;
}
}

/* =========================================================
   모바일 표 → 카드형 : 구독정보 결제내역 · 친구초대 초대 적립 내역
   두 페이지가 같은 .history-table 을 써서 페이지 고유 요소로 구분
   - 구독정보 : .sub-inner 안에 .pay-method 가 있을 때
   - 친구초대 : .sub-inner 안에 .invite-stats 가 있을 때
   마크업 수정 없음. 칸 순서가 바뀌면 nth-child 도 같이 고쳐야 함
   ========================================================= */
@media (max-width: 768px) {

    /* ---------- 공통 : 표 → 카드 목록 ---------- */
    .sub-inner:has(.pay-method) .history-table,
    .sub-inner:has(.invite-stats) .history-table {
        display: block;
        min-width: 0;
        table-layout: auto;
        text-align: left;
    }

    .sub-inner:has(.pay-method) .history-table thead,
    .sub-inner:has(.invite-stats) .history-table thead {
        display: none;
    }

    .sub-inner:has(.pay-method) .history-table tbody,
    .sub-inner:has(.invite-stats) .history-table tbody {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sub-inner:has(.pay-method) .history-table tr,
    .sub-inner:has(.invite-stats) .history-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 12px 14px;
        border: 1px solid #EEEEEE;
        border-radius: 12px;
        background: #fff;
    }

    .sub-inner:has(.pay-method) .history-table tbody td,
    .sub-inner:has(.invite-stats) .history-table tbody td {
        padding: 0;
        border-bottom: 0;
    }

    /* 이름 (상품명 / 내용) */
    .sub-inner:has(.pay-method) .history-table td:nth-child(2),
    .sub-inner:has(.invite-stats) .history-table td:nth-child(2) {
        grid-area: name;
        color: var(--sb-text);
        font-size: 14px;
        font-weight: 500;
    }

    /* 날짜 (결제일시 / 적립일) : 이름 아래 회색 */
    .sub-inner:has(.pay-method) .history-table td:nth-child(1),
    .sub-inner:has(.invite-stats) .history-table td:nth-child(1) {
        grid-area: date;
        margin-top: 2px;
        color: var(--sb-mute);
        font-size: 12px;
    }


    /* ---------- 구독정보 결제내역 ----------
       상품명 + 상태 배지 / 결제일시 / 구분선 / 결제금액 + 영수증 */
    .sub-inner:has(.pay-method) .history-table tr {
        grid-template-areas:
            "name   status"
            "date   date"
            "amount btn";
    }

    /* 상태 배지 */
    .sub-inner:has(.pay-method) .history-table td:nth-child(4) {
        grid-area: status;
        padding-left: 8px;
    }

    /* 결제금액 · 영수증 : 위쪽 구분선 (두 칸에 같이 그어 한 줄로 이어짐) */
    .sub-inner:has(.pay-method) .history-table td:nth-child(3),
    .sub-inner:has(.pay-method) .history-table td:nth-child(5) {
        display: flex;
        align-items: center;
        align-self: stretch; /* 두 칸 높이를 맞춰 구분선이 한 줄로 이어지게 */
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #F2F2F2;
    }

    .sub-inner:has(.pay-method) .history-table td:nth-child(3) {
        grid-area: amount;
        color: var(--sb-text);
        font-size: 14px;
        font-weight: 500;
    }

    .sub-inner:has(.pay-method) .history-table td:nth-child(3)::before {
        content: "결제금액";
        margin-right: 6px;
        color: var(--sb-gray);
        font-size: 12px;
        font-weight: 400;
    }

    .sub-inner:has(.pay-method) .history-table td:nth-child(5) {
        grid-area: btn;
        justify-content: flex-end;
    }

    .sub-inner:has(.pay-method) .history-table td:nth-child(5) .sub-btn--xs {
        height: 26px;
        padding: 0 10px;
        font-size: 11px;
    }


    /* ---------- 친구초대 초대 적립 내역 ----------
       내용 + 적립 포인트 / 적립일 */
    .sub-inner:has(.invite-stats) .history-table tr {
        grid-template-areas:
            "name point"
            "date date";
    }

    .sub-inner:has(.invite-stats) .history-table td:nth-child(3) {
        grid-area: point;
        padding-left: 8px;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
    }
}