*,
*::before,
*::after {
  box-sizing: border-box;
}



html,
body {
  margin: 0;
  padding: 0;
}



body {

  font-family: "Noto Sans KR", sans-serif;
  color: #1F2420;
  font-size: 16px;
}



img {
  display: block;
  max-width: 100%;
}



button,
input {
  font: inherit;
}



button {
  padding: 0;
  border: 0;
  background: none;

  cursor: pointer;
}



a {
  color: inherit;
  text-decoration: none;
}



section{  
  padding:0 30px;
}



p{
  margin:0;
  padding:0;
  width:100%;
}


h2{
  padding-top:30px;
}


/* ========================================
   COMMON LAYOUT
======================================== */

.layout {
  display: flex;

  width: calc(100% - 72px);
  min-height: 100vh;
  margin-left: 72px; /* 고정 사이드바(72px) 폭만큼 기본 상태에서도 항상 공간 확보 */

  transition: margin-left 0.3s ease, width 0.3s ease;
}



/* 사이드바를 제외한 페이지 */
.page {
  flex: 1;
  min-width: 0;
}




/* ========================================
   COMMON TOP BAR
======================================== */

.top-bar {
  width: 100%;
  background: #42BC74;
}



.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  width: 100%;
  height: 58px;

  padding: 0 24px;
}



.top-menu {
  display: flex;
  align-items: center;

  gap: 28px;
}



.top-menu a {
  font-size: 14px;
  font-weight: 600;
}



.top-menu-button {
  font-size: 20px;
  line-height: 1;
}




/* ========================================
   MAIN
======================================== */

.main {
  width: 100%;

}




/* 공통 콘텐츠 컨테이너 */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;


}



/* 검색 분류 */
.search-type-wrap {
  position: relative;
  width: 155px;
  height: 100%;
  flex-shrink: 0;
}



.search-type {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 100%;

  padding: 0 24px;

  border-right: 1px solid #EEEEEE;

  color: #1F2420;

  font-size: 12px;
  font-weight: 600;
}



.search-type-menu {
  display: none;

  position: absolute;

  top: calc(100% + 8px);
  left: 0;

  width: 100%;

  margin: 0;
  padding: 8px;

  list-style: none;

  background: #FFFFFF;

  border: 1px solid #E5E5E5;
  border-radius: 12px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  z-index: 10;
}



.search-type-menu.is-open {
  display: block;
}



.search-type-menu button {
  width: 100%;

  padding: 10px 12px;

  border-radius: 8px;

  text-align: left;

  font-size: 14px;
}



.search-type-menu button:hover {
  background: #F5F5F5;
}




/*서브페이지 검색창*/
.search-box-sub {
  display: flex;
  margin-top: 20px;
  gap: 8px;
}




.search-input-sub {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  border: 1px solid #EEE;
  background: #FFF;
  padding-left: 20px;
  text-align: left;
}



.search-input-sub::placeholder {
  color: #A5A5A5;
  font-size: 12px;
}



.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: -50px;
}




.search-icon svg {
  width: 28px;
  height: 28px;
}




.keyword-label-category{
  border-radius: 999px;
  padding: 3px 10px;
  background-color: #D5E8DC;
  color:#218A4C;
  font-weight: 700;
}




/*footer*/
.footer {
  width: 100%;
  background-color: #FFFFFF;

  display: flex;
  justify-content: flex-start;
  align-items: center;

  padding-left: 20px;
  padding-right: 20px;

  text-align: left;
  border-top: 1px solid #EEEEEE;
  margin-bottom:50px;
}



.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}



.footer-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  line-height: 50px;
  font-size: 12px;
  font-style: normal;
}



.footer-links a {
  padding-right: 10px;
  padding-left: 20px;
  color: #1F2420;
}



.footer-address {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  font-size: 12px;
  font-style: normal;
}



.footer-copyright {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  font-size: 12px;
  font-style: normal;
}



.footer-logo {
  margin-left: auto;
  filter: grayscale(1);
  width: 60px;
}




/* ################################################################
   ▼▼▼ NAV 시작 ▼▼▼  (여기부터 "NAV 끝" 까지가 내비게이션 관련)

   1. 내비 열림 상태   : body.nav-open (본문 밀기 · 접힌 사이드바 숨김)
   2. 접힌 사이드바    : .sidebar (왼쪽 72px 고정)
   3. 슬라이드 내비    : .slide-nav (프로필 · 상태 카드 · 메뉴 · 로그아웃)

   · 내비 안 단톡방 배너(.chatroom-side · .chatroom-mini)는 플로팅 카드와
     스타일을 같이 써서, 파일 아래쪽 "단톡방 유입 배너" 영역에 있음
################################################################ */


/* ----------------------------------------
   1. 내비 열림 상태
---------------------------------------- */

body.nav-open .layout {
  margin-left: 280px;
  width: calc(100% - 280px);
}



body.nav-open {
  overflow-x: hidden;
}



/* ----------------------------------------
   2. 접힌 사이드바
---------------------------------------- */

.sidebar {
  width: 72px;
  min-height: 100vh;

  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;

  height: 100vh;
  background: #FFFFFF;
  border-right: 1px solid #EEEEEE;

  transition: opacity 0.2s ease;
}



body.nav-open .sidebar {
  display: none;
}



.sidebar-logo {
  display: flex;
  justify-content: center;

  padding-top: 24px;
}



.sidebar-logo img {
  width: 32px;
}



.sidebar-menu-button {
  display: block;

  margin: 24px auto 0;

  color: #777777;
  font-size: 20px;
}



/* ========================================
   3. 슬라이드 내비게이션
======================================== */

.slide-nav {
  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: column;

  width: 280px;
  height: 100vh;

  padding: 24px 20px;

  background: #FFFFFF;
  border-right: 1px solid #EEEEEE;

  transform: translateX(-100%);
  transition: transform 0.3s ease;

  z-index: 101;

  overflow-y: auto;
}



.slide-nav.is-open {
  transform: translateX(0);
}



/* 헤더 */
.slide-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.slide-nav-logo {
  display: block;
}



.slide-nav-logo img {
  height: 40px;
}



.slide-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  border-radius: 8px;

  color: #6B6B6B;
}



.slide-nav-close:hover {
  background: #F5F5F5;
  color: #1F2420;
}



.slide-nav-close svg {
  width: 20px;
  height: 20px;
}



/* 공통 아이콘 선 스타일 */
.slide-nav svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}



/* 프로필 */
.slide-nav-user {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin-top: 20px;
  padding-bottom: 20px;

  border-bottom: 1px solid #EEEEEE;
}



.slide-nav-nickname {
  display: flex;
  align-items: baseline;
  gap: 2px;

  min-width: 0;
  margin: 0;
}



.slide-nav-nickname__name {
  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;

  font-size: 16px;
  font-weight: 700;
  color: #1F2420;
}



.slide-nav-nickname__suffix {
  flex-shrink: 0;

  font-size: 14px;
  color: #6B6B6B;
}



/* ----------------------------------------
   사이드바 슬롯 (프로필 + 상태 카드)
   · 슬롯은 한 자리 : 우선순위 ①~⑦ 중 처음 해당하는 상태 하나만 노출
   · 결제 정보(다음 결제일 · D-day)는 마이페이지에만
   · 오늘 남은 횟수는 네비에서 빠지고 검색창 아래에서 노출
---------------------------------------- */

/* 상단 줄 : 플랜 배지 + 마이페이지 */
.slide-nav-user__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.slide-nav-plan {
  display: inline-flex;
  align-items: center;

  padding: 2px 8px;

  border-radius: 999px;
  background: #E9F6EE;

  font-size: 11px;
  font-weight: 700;
  color: #218A4C;
}



.slide-nav-plan--free {
  background: #F1F1F1;
  color: #6B6B6B;
}



.slide-nav-user__mypage {
  font-size: 12px;
  color: #6B6B6B;
}



.slide-nav-user__mypage:hover {
  color: #1F2420;
}



/* 비회원 제목 */
.slide-nav-guest__title {
  margin: 0;

  font-size: 16px;
  font-weight: 700;
  color: #1F2420;
}



/* 상태 카드 */
.slide-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 16px;

  border-radius: 12px;
  background: #F7F8F5;
}



.slide-nav-sub__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.slide-nav-sub__label {
  font-size: 12px;
  font-weight: 500;
  color: #6B6B6B;
}



.slide-nav-sub__widget {
  font-size: 12px;
  font-weight: 700;
  color: #218A4C;
}



.slide-nav-sub__badge {
  display: inline-flex;
  align-items: center;

  padding: 2px 8px;

  border-radius: 999px;
  background: #FCE9E9;

  font-size: 11px;
  font-weight: 700;
  color: #C23434;
}



.slide-nav-sub__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}



.slide-nav-sub__name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: #1F2420;
}



.slide-nav-sub__meta {
  font-size: 12px;
  line-height: 1.4;
  color: #6B6B6B;
}



.slide-nav-sub__meta strong {
  font-weight: 700;
  color: #218A4C;
}



/* 체험 중 : 초록 날짜 줄 */
.slide-nav-sub__date {
  font-size: 12px;
  font-weight: 700;
  color: #218A4C;
}



/* 버튼 */
.slide-nav-sub__btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}



.slide-nav-sub__btn {
  display: block;

  padding: 10px 0;

  border: 1px solid #42BC74;
  border-radius: 8px;
  background: #42BC74;

  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;

  transition: background 0.2s ease, border-color 0.2s ease;
}



.slide-nav-sub__btn:hover {
  border-color: #35AC69;
  background: #35AC69;
}



/* 비회원 : 로그인 (흰 바탕 선 버튼) */
.slide-nav-sub__btn--line {
  border-color: #DDDDDD;
  background: #FFFFFF;
  color: #1F2420;
}



.slide-nav-sub__btn--line:hover {
  border-color: #C7C7C0;
  background: #FAFAFA;
}



/* ① 결제 실패 · ② 만료 임박 : 붉은 카드 */
.slide-nav-sub--danger,
.slide-nav-sub--warn {
  border: 1px solid #F6CFCF;
  background: #FDF4F4;
}



.slide-nav-sub--danger .slide-nav-sub__name,
.slide-nav-sub--warn .slide-nav-sub__name {
  color: #C23434;
}



.slide-nav-sub--danger .slide-nav-sub__btn {
  border-color: #C23434;
  background: #C23434;
}



.slide-nav-sub--danger .slide-nav-sub__btn:hover {
  border-color: #A92B2B;
  background: #A92B2B;
}



/* ③ 블로그 미등록 : 점선 카드 */
.slide-nav-sub--empty {
  border: 1px dashed #D8DCD6;
  background: #FFFFFF;
}



/* ----------------------------------------
   메뉴 (이전 스타일 유지: 제목 진하게, 리스트 회색)
---------------------------------------- */

.slide-nav-group {
  margin-top: 28px;
}



.slide-nav-group-title {
  display: block;
  margin-bottom: 8px;

  font-size: 13px;
  font-weight: 700;
  color: #1F2420;
}



.slide-nav-list {
  margin: 0;
  padding: 0;

  list-style: none;
}



.slide-nav-list a {
  display: block;

  padding: 8px 4px;

  font-size: 14px;
  font-weight: 500;
  color: #6B6B6B;
}



.slide-nav-list a:hover,
.slide-nav-list a.is-active {
  color: #42BC74;
  font-weight: 700;
}



/* BETA 배지 : 메뉴 이름 뒤에 붙임 (사용가이드 NEW 배지 .gd-new 와 같은 모양, 크기만 작게) */
.slide-nav-beta {
  display: inline-block;

  margin-left: 5px;
  padding: 1px 5px;

  border-radius: 999px;
  background: #E9F6EE;

  color: #1F7A48;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}



/* ----------------------------------------
   하단 로그아웃
---------------------------------------- */

.slide-nav-footer {
  margin-top: auto; /* 메뉴가 짧아도 항상 맨 아래 */
  padding-top: 28px;
}



.slide-nav-logout {
  display: flex;
  align-items: center;
  gap: 8px;

  width: 100%;
  padding: 16px 4px 0;

  border-top: 1px solid #EEEEEE;

  font-size: 14px;
  font-weight: 500;
  color: #6B6B6B;
}



.slide-nav-logout:hover {
  color: #1F2420;
}



.slide-nav-logout svg {
  width: 18px;
  height: 18px;
}



/* ################################################################
   ▲▲▲ NAV 끝 ▲▲▲
################################################################ */



/* ========================================
   SCROLL TO TOP
======================================== */

.scroll-top-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border-radius: 50%;

  background: #1F2420;
  color: #FFFFFF;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;

  z-index: 50;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}



.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



.scroll-top-btn:hover {
  background: #42BC74;
}



.scroll-top-btn svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;

  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}




/* ========================================
   서브페이지 — 타이틀 히어로
   · 본문과 같은 밝은 배경, 구분선 없음, 높이는 내용만큼
   · 제목 오른쪽 : 기준 블로그(.blog-switch)가 있는 페이지만
   · 제목 아래 : 검색창(.search-box-sub) · 최근 검색이 있는 페이지만
======================================== */

.page-hero {
  display: flow-root;   /* 안쪽 요소의 margin 이 히어로 밖으로 새서 흰 띠가 생기지 않게 */
  width: 100%;
  background: #F8F8F5;
}



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



/* 제목 + 기준 블로그 한 줄 */
.page-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}



.page-title {
  margin: 0;

  color: #1F2420;

  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.6px;
}



/* 기준 블로그
   · 등록 블로그가 2개 이상일 때만 노출 (최대 4개). 1개면 통째로 빼기
   · 누른 아이디에 .is-active + aria-pressed="true" → 그 블로그 기준으로 페이지 내용이 바뀜 */
.blog-switch {
  display: inline-flex;
  align-items: stretch;
  gap: 40px;

  height: 48px;
  padding: 0 28px;

  max-width: 100%;

  border: 1px solid #EEEEEE;
  border-radius: 14px;
  background: #FFFFFF;
}



.blog-switch[hidden] {
  display: none;
}



.blog-switch__item {
  display: inline-flex;
  align-items: center;

  padding: 0;
  border: 0;
  background: none;

  color: #999999;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}



.blog-switch__item:hover {
  color: #1F2420;
}



.blog-switch__item.is-active {
  color: #42BC74;
}



/* 선택 밑줄 : 글자 바로 아래 */
.blog-switch__item.is-active span {
  padding-bottom: 2px;
  border-bottom: 2px solid #42BC74;
}



/* ========================================
   서브페이지 — 콘텐츠 영역 (밝은 배경)
======================================== */

.page-section {
  width: 100%;
  background: #F8F8F5;
}



.page-container {
  padding-top: 32px;
  padding-bottom: 40px;
  width:100%;
}



.page-container img{
  display:block;
  margin:0 auto;
}



.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 8px 20px;
}



.filter-row button:hover {
  color: #42BC74;
  font-weight: 700;
}



.filter-row+.filter-row {
  margin-top: 16px;
}



.filter-group-label {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}



.filter-row button {
  font-size: 14px;
  color: #6B6B6B;
}




.filter-all {
  font-weight: 700;
}



.filter-search-history .blog-analysis-search-history-id{
  display: inline-flex;
  padding: 3px 10px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 12px;
  border:0;
  background: #e8e8e8;
}



.filter-search-suggestions.is-open {
  display: block;
}



.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  border-radius: 50%;

  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}



.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;

  border-radius: 6px;

  font-size: 12px;
  font-weight: 700;
}



.tier-badge--top {
  background: #FCEBEB;
  color: #E64646;
}




.section-title {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  /* 26px */
  letter-spacing: -1.2px;
  }



/* 섹션 타이틀 + 아이콘(다운로드 버튼 등)이 한 줄에 오는 모든 곳에서 공통으로 사용 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.section-header-keyword {
  display: flex;
  align-items: center;
}


/* 섹션 사이 위쪽 여백 통일 */
.section-block {
  margin-top: 40px;
}



/* 최근 검색 (서브페이지 히어로)
   · .page-hero 를 앞에 붙여서 페이지 CSS(blog-analysis-detail.css 등)에 남은 예전 규칙보다 우선 */
.page-hero .blog-analysis-search-history {
  margin: 12px 0 0;
  padding-bottom: 24px;   /* 아래 24 + 본문 위 32 : 검색 영역과 결과 사이를 여백으로 나눔 (margin 이면 히어로 밖으로 새서 흰 띠가 생김) */
  color: #999999;
}



.page-hero .blog-analysis-search-history > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}



.page-hero .blog-analysis-search-history-title {
  margin: 0 4px 0 -4px;
  color: #999999;
  font-size: 14px;
  font-weight: 700;
}



.page-hero .blog-analysis-search-history-icon {
  width: 18px;
  padding: 0;
  height: 18px;
}



/* 아이콘 svg 에 fill="white" 가 박혀 있어서 CSS 로 덮어씀 */
.page-hero .blog-analysis-search-history-icon path {
  fill: #999999;
}



.blog-analysis-search-history-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 12px;

  border: 1px solid #EEEEEE;
  border-radius: 999px;
  background: #FFFFFF;

  color: #999999;
  font-size: 13px;
  cursor: pointer;
}



.blog-analysis-search-history-id:hover {
  color: #1F2420;
}



.blog-analysis-table-wrap {
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  overflow-x: auto;
  margin-top: 30px;
  flex: 1;
}



.detail-card.locked-overlay__card {
  padding: 20px 40px;
  background: #F8F8F8;
  border-radius: 12px;
}






.blog-analysis-table {
  width: 100%;
  border-collapse: collapse;
}



.blog-analysis-table th,
.blog-analysis-table td {
  padding: 14px 12px;
  text-align: center;
  white-space: nowrap;
}



.blog-analysis-table th {
  font-weight: 500;
}



.blog-analysis-table td {
  border-bottom: 1px solid #EEEEEE;
  font-size: 14px;
}



.blog-analysis-table tbody tr:last-child td {
  border-bottom: 0;
}



.blog-analysis-table a:hover {
  text-decoration: underline;
}



.blog-analysis-table td svg {
  color: #666666;
}



.table-header {
  background-color: #FCFBFB;
}



.download-btn {
  width: auto;
  flex-shrink: 0;
  text-align: right;
}



.download-btn svg {
  color: #666666;
  vertical-align: middle;
}



/* 공통 패널/카드 */
.analysis-panels {
  display: flex;
  gap: 10px;
}



.analysis-card-wrap {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}



.analysis-card {
  flex: 1;
  min-width: 0;
  margin: 20px 0;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 16px;
}



.drop,
.upturn {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}



.drop {
  color: #C23434;
}



.upturn {
  color: #3476C2;
}



.blog-profile__name {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #1F2420;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}



.activity-history__tab.is-active {
  border-color: #3BB76D;
  background: #3BB76D;
  color: #FFFFFF;
  font-weight: 700;
}




/* 최근 10일 / 주간 / 월간 탭 */
.activity-history__period-tabs {
  display: flex;
}



.activity-history__period-tab {
  padding: 7px 12px;
  border: 1px solid #EEEEEE;
  background: #F7F7F7;
  color: #777777;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}



.activity-history__period-tab:first-child {
  border-radius: 4px 0 0 4px;
}



.activity-history__period-tab:last-child {
  border-radius: 0 4px 4px 0;
}



.activity-history__period-tab + .activity-history__period-tab {
  border-left: 0;
}



.activity-history__period-tab.is-active {
  border: 1px solid #3BB76D;
  background: #FFFFFF;
  color: #3BB76D;
  font-weight: 700;
}



.profile-stats__main,
.profile-stats__side {
  flex: 1;
  min-width: 0;
}



.profile-stats__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}



.detail-card,
.stat-card {
  background: #F8F8F8;
  border-radius: 5px;
}



.detail-card {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  flex: 1;
}


.posting-pattern .metric-list__row {
    padding-bottom: 10px;
}



.metric-heading__label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.4px;
}



.metric-heading__value {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.6px;
  }



.activity-list__panel.is-active {
  display: block;
}



.activity-list__panel.is-active {
  display: block;
}



.metric-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  line-height: 1.3;
}



.metric-list__row strong {
  flex-shrink: 0;
}


.strong-green{
  color:#218A4C;
}



/* 활동 리스트 탭 */
.activity-list__tabs {
  display: flex;
  width: 100%;
}



.activity-list__tab {
  flex: 1;
  height: 52px;
  border: 1px solid #E8E8E8;
  background: #FAFAFA;
  color: #1F2420;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}



.activity-list__tab:first-child {
  border-radius: 8px 0 0 8px;
}

.activity-list__tab:last-child {
  border-radius: 0 8px 8px 0;
}



.activity-list__tab.is-active {
  border-color: #42BE78;
  background: #42BE78;
  color: #FFFFFF;
}




/* 필터 탭 */
.activity-list__filter-tab {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0 14px 14px 0;
  background: #FFFFFF;
  color: #42BE78;
}



.activity-list__filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 20px;
  height: 20px;
  padding: 0 6px;

  border-radius: 10px;
  background: #42BE78;
  color: #FFFFFF;

  font-size: 11px;
  font-weight: 700;
}




/* 필터 */
.activity-filter {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;

  padding: 22px 36px;
  border: 1px solid #E8E8E8;
  border-top: 0;
  border-radius: 0 0 14px 14px;

  background: #FFFFFF;
}



.activity-filter.is-open {
  display: flex;
}




/* 필터 항목 */
.activity-filter__options {
  display: flex;
  gap: 70px;
}



.activity-filter__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}



.activity-filter__title {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 500;
}



.activity-filter__option {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
}




/* 하단 액션 */
.activity-filter__actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #EEEEEE;
}



.activity-filter__save,
.activity-filter__reset,
.activity-filter__apply {
  width: auto;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}



.activity-filter__reset {
  background: #F1F1F1;
  color: #444444;
}



.activity-filter__apply {
  background: #42BE78;
  color: #FFFFFF;
  font-weight: 700;
}



.activity-filter__apply-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  margin-right: 4px;

  border-radius: 50%;
  background: #FFFFFF;
  color: #42BE78;
}



.activity-filter__option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 14px;
  height: 14px;
  margin: 0;

  border: 1px solid #AFAFAF;
  border-radius: 50%;
  background: #FFFFFF;

  cursor: pointer;
}



/* 선택 */
.activity-filter__option input[type="checkbox"]:checked {
  border: 4px solid #42BE78;
  background: #FFFFFF;
}



/* 정보량이 적은 카드(옌즈데이, TOP3)는 좁게, 통계 그리드 쪽에 너비를 더 배분 */
.profile-info-row > .stat-card {
  flex: 0 1 220px;
}



.stat-grid {
  display: grid;
  gap: 10px;
  flex: 1;
}



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



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



.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 15px 10px;
  text-align: center;
}



.stat-card__label {
  font-size: 16px;
  line-height: 1.3;
}



.stat-card__value {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}



.analysis-summary{
  display: flex;
  gap: 10px;
}



.analysis-summary .profile-stats__side {
  flex: 1;
}




.status-badge {
  border-radius: 999px;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.3;
}



.status-badge--disabled {
  background: #A5ACB4;
  color: #fff;
}



.pagination {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}



.pagination__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}



.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 45px;
  height: 45px;
  padding: 0 8px;

  border: 1px solid #EEEEEE;
  border-radius: 5px;
  background: #FFFFFF;

  color: #1F2420;
  font-size: 14px;
}



.pagination__link:hover {
  background: #F8F8F5;
}



.pagination__link.is-active {
  background: #E9F6EE;
  border-color: #D5E8DC;
  color: #218A4C;
  font-weight: 700;
}




/* =========================
   키워드 분석 결과
========================= */

.section-header-keyword {
  display: flex;
  align-items: center;
  gap: 14px;
}



.keyword-label,
.keyword-label-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}



.keyword-label-category {
  background: #E5F4EA;
  color: #218A4C;
  font-weight: 700;
}




/* =========================
   전체 패널 레이아웃
========================= */

.analysis-panels--keyword {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 2.3fr;
  gap: 12px;
  align-items: stretch;
}



.analysis-panels--keyword .analysis-card {
  margin: 0;
}




/* =========================
   블토기 브리핑
========================= */

.keyword-briefing__main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 0 24px;
}



.keyword-briefing__image {
  width: 82px;
  flex: 0 0 82px;
}



.keyword-briefing__image img {
  display: block;
  width: 100%;
  height: auto;
}



.keyword-briefing__message {
  flex: 1;
  min-width: 0;
}



.keyword-briefing__title {
  display: block;
  margin-bottom: 8px;

  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}



.keyword-briefing__description {
  margin: 0;

  color: #333333;
  font-size: 13px;
  line-height: 1.6;
}




/* 추천 이유 박스 */
.keyword-briefing__reason {
  margin-top: auto;
  padding: 18px;
  background: #F7F9F5;
  border: 0;
  border-radius: 16px;
}



.keyword-briefing__reason-title {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}



.keyword-briefing__reason-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}



.keyword-briefing__reason-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}




/* =========================
   추천 등급
========================= */

.keyword-grade {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}



.keyword-grade__item {
  flex: 1;
  min-height: 112px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}



.keyword-grade__item + .keyword-grade__item {
  border-top: 1px solid #EEEEEE;
}



.keyword-grade__item:nth-child(2) {
  background: #F8F8F8;
}



.keyword-grade__value {
  margin-top: 8px;
  color: #1F2420;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}



/* 챌린지 요약 카드에서 증감값에 .drop을 함께 써도 빨간색이 유지되도록 */
.keyword-grade__value.drop {
  color: #C23434;
}



.keyword-competition__grid > .stat-card {
  min-height: 130px;
  padding: 16px;
}



.keyword-competition__grid .metric-heading__value {
  display: block;
  margin-top: 6px;
}



.keyword-price .metric-heading__value {
  display: block;
  margin-top: 3px;
}



.analysis-panels--keyword-sub .analysis-card {
  margin: 0;
  margin-top:30px;
}



.keyword-trend .section-header {
  align-items: center;
}



.keyword-trend__summary .stat-card {
  min-height: 62px;
  padding: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}



.keyword-trend__summary .stat-card__value {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
}



.keyword-trend__panel.is-active {
  display: block;
}



.keyword-block-tab.is-active {
  position: relative;
  z-index: 1;

  border-color: #42BE78;
  background: #FFFFFF;
  color: #28A95F;
}



.keyword-block-analysis__stats .stat-card {
  min-width: 0;
  padding: 13px 8px;

  text-align: center;
}



.keyword-block-analysis__stats .stat-card__value {
  display: block;
  margin-top: 4px;

  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}



.keyword-block-analysis__table-wrap .blog-analysis-table {
  width: 100%;
}



.keyword-block-panel.is-active {
  display: block;
}



.keyword-related-panels .analysis-card {
  min-width: 0;
  margin: 0;
}



.keyword-related__table-wrap .blog-analysis-table,
.keyword-expand__table-wrap .blog-analysis-table {
  width: 100%;
}




/* 저장 버튼 */
.keyword-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #42BE78;
  color: #FFFFFF;

  font-size: 16px;
  font-weight: 500;
  line-height: 1;

  cursor: pointer;
}



.keyword-save-btn:hover {
  background: #31A967;
}



.keyword-price .metric-heading__value {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}



.quick-filter-btn:hover,
.quick-filter-btn.is-active {
  color: #FFFFFF;
}



.quick-filter-btn--royal:hover,
.quick-filter-btn--royal.is-active {
  background: #F05A5A;
}



.quick-filter-btn--gold:hover,
.quick-filter-btn--gold.is-active {
  background: #F1B438;
}



.quick-filter-btn--longtail:hover,
.quick-filter-btn--longtail.is-active {
  background: #43AE70;
}



.quick-filter-btn--blue:hover,
.quick-filter-btn--blue.is-active {
  background: #4B91E8;
}



.selected-filter-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;

  min-width: 0;
}




/* 선택된 필터 칩 */
.selected-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 28px;
  padding: 0 11px;

  border: 0;
  border-radius: 999px;

  background: #F1F1F1;
  color: #555555;

  font-size: 11px;
  font-weight: 500;

  cursor: pointer;
}



.selected-filter span {
  color: #999999;
  font-size: 14px;
  line-height: 1;
}



.selected-filter:hover {
  background: #EAEAEA;
}



.blog-analysis-table-wrap--scroll-5 .table-header th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #FCFBFB;
}



.filter-action-btn {
  height: 36px;
  padding: 0 18px;

  border: 0;
  border-radius: 4px;

  font-size: 12px;
  font-weight: 600;

  white-space: nowrap;
  cursor: pointer;
}



.filter-action-btn--reset {
  background: #EEEEEE;
  color: #777777;
}



.filter-action-btn--reset:hover {
  background: #E3E3E3;
}



.filter-detail__header .blog-profile__name {
  display: flex;
  align-items: center;

  margin: 0;

  font-size: 15px;
  font-weight: 700;
}



.category-filter-grid .activity-filter__option {
  min-width: 0;
  min-height: 42px;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0 8px;

  border-bottom: 1px solid #E4E4E4;

  color: #333333;
  font-size: 14px;

  cursor: pointer;
}



.advanced-filter__row > .activity-filter__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 10px;

  border-right: 1px solid #D8D8D8;

  font-size: 14px;

  cursor: pointer;
}



.advanced-filter__detail.is-open {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 24px;
}




/* 레벨 */
.advanced-filter__detail--levels.is-open {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}



.advanced-filter__detail--section.is-open {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 15px;
}




/* ==================================================
   키워드 목록
================================================== */

.keyword-list-result {
  margin-top: 20px;
}



.keyword-list-result .blog-analysis-table-wrap {
  margin-top: 20px;
}



.table-check {

  text-align: center;
}



.table-save {
  width: 58px;
  text-align: center;
}




.keyword-list-table .keyword-row-check,
.keyword-list-table #keyword-check-all {
  width: 14px;
  height: 14px;
  cursor: pointer;
}


.keyword-list-table td{
  font-size: 14px;
}


.keyword-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #42BE78;
  color: #FFFFFF;

  font-size: 16px;
  line-height: 1;

  cursor: pointer;
}



.keyword-save-btn:hover {
  background: #35AC69;
}


.keyword-list-header {
  margin-bottom: 18px;
}



.keyword-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}





/* 왼쪽 선택 기능 */
.keyword-list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}



.keyword-list-btn {
  height: 32px;
  padding: 0 12px;

  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  border: 1px solid #DDDDDD;
  border-radius: 5px;

  background: #FFFFFF;
  color: #555555;

  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}



.keyword-list-btn:hover {
  background: #F6F6F6;
}




/* 오른쪽 검색 */
.keyword-list-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  height: auto;
  position: relative;
  border: 0;
  background: transparent;
}



.keyword-list-search select {
  appearance: none;
  height: 34px;
  border: 1px solid #D9DDE2;
  border-radius: 5px;
  background: #FFFFFF;
  padding: 0 26px 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: #555555;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555555' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}



.keyword-list-search input {
  width: 220px;
  height: 34px;
  padding: 0 40px 0 12px;

  border: 1px solid #D9DDE2;
  border-radius: 5px;
  outline: 0;
  background: #FFFFFF;

  font-size: 11px;
}



.keyword-list-search input:focus {
  border-color: #42BE78;
}



.keyword-list-search button {
  width: 36px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  right: 0;
  top: 0;

  border: 0;
  background: transparent;

  cursor: pointer;
}




/* 새로고침 버튼 */
.keyword-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  height: 36px;
  padding: 0 10px;

  border: 0;
  border-radius: 5px;

  background: #42BE78;
  color: #FFFFFF;

  font-size: 11px;
  font-weight: 600;

  cursor: pointer;
}



.keyword-recommend-card__table .blog-analysis-table {
  width: 100%;
}




/* 저장 (예전 초록 원형 +) : 모든 페이지를 아래 북마크(.icn)로 바꾼 뒤 삭제 예정 */
.keyword-save-btn--disabled {
  background: #999999;
}



/* ========================================
   저장 버튼 (북마크) : 모든 페이지 공통
   사용 : <button type="button" class="icn">빈 북마크 SVG</button>
          저장됨 → class="icn saved" + 채운 북마크 SVG
   · 저장 전 : 빈 북마크 회색 / 저장됨 : 채운 북마크 초록(#42BC74)
======================================== */

.icn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  border: none;
  border-radius: 8px;
  background: none;

  color: #777777;
}



.icn:hover {
  background: #E5F4EA;
  color: #218A4C;
}



.icn.saved {
  color: #42BC74;
}



/* 공통 표의 .blog-analysis-table td svg { color:#666666 } 가
   아이콘 색을 덮어쓰지 않도록, 표 안에서도 버튼 색을 따르게 함 */
.blog-analysis-table td .icn svg {
  color: inherit;
}




/* ========================================
   추천등급 배지
   사용 : <span class="grade-badge grade-badge--a">A</span>
======================================== */

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 28px;
  height: 26px;
  padding: 0 7px;

  border-radius: 5px;

  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}



/* S : 최상위 등급이라 진한 배경으로 강조 */
.grade-badge--s {
  background: #278D4E;
  color: #FFFFFF;
}



.grade-badge--a {
  background: #E5F4E8;
  color: #278D4E;
}



.grade-badge--b {
  background: #E6EFF9;
  color: #3476C2;
}



.grade-badge--c {
  background: #F8F0DE;
  color: #C68A24;
}



.grade-badge--d {
  background: #FBEAEA;
  color: #C23434;
}



/* 등급 없음 (-) */
.grade-badge--none {
  background: #F1F1F1;
  color: #777777;
  font-weight: 500;
}




/* ========================================
   진입 가능성 · 진입 속도 배지 (같은 배지 공용)
   사용 : <span class="status-badge status-badge--high">매우 높음</span>
======================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 24px;
  padding: 0 8px;

  border-radius: 4px;

  color: #FFFFFF;
  font-size: 12px;
  white-space: nowrap;
}



/* 좋음 : 매우 높음 · 높음 / 빠름 */
.status-badge--high {
  background: #42BE78;
}



/* 보통 : 보통 */
.status-badge--normal {
  background: #8E948E;
}



/* 나쁨 : 낮음 · 매우 낮음 / 느림 */
.status-badge--low {
  background: #DDA6A6;
}



/* 비활성 : 데이터 없음 등 (블로그·인플루언서 분석 페이지에서 사용 중) */
.status-badge--disabled {
  background: #A5ACB4;
}


.keyword-modal.is-open {
  display: block;
}



.keyword-modal__category.is-active {
  border-color: #42BC74;

  background: #42BC74;
  color: #FFFFFF;

  font-weight: 700;
}




/* ========================================
   팝업 열렸을 때 페이지 스크롤 방지
======================================== */

body.modal-open {
  overflow: hidden;
}



    .valid-keyword-result .keyword-list-header {
      margin-bottom: 20px;
    }



    .valid-keyword-result .keyword-list-toolbar {
      margin-top: 20px;
    }



    .valid-keyword-result .keyword-list-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }



    /* 키워드 상세 모달 */
    .valid-keyword-modal {
      position: fixed !important;
      inset: 0 !important;
      display: none;
      z-index: 1000;
    }



    .valid-keyword-modal.is-open {
      display: block;
    }



    .valid-keyword-modal__dim {
      position: fixed !important;
      inset: 0 !important;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.58);
      z-index: 1000;
    }



    .valid-keyword-modal__content {
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      right: auto !important;
      bottom: auto !important;
      transform: translate(-50%, -50%) !important;
      z-index: 1001;

      width: min(680px, calc(100vw - 40px));
      height: 460px;
      min-height: 0;
      margin: 0 !important;
      padding: 28px 16px 24px;

      background: #fff;
      border-radius: 8px;
      box-sizing: border-box;
      box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    }



    .valid-keyword-modal__close {
      position: absolute;
      top: -14px;
      right: -14px;
      display: flex;
      align-items: center;
      justify-content: center;

      width: 28px;
      height: 28px;
      padding: 0;
      border: 0;
      border-radius: 7px;

      background: #fff;
      color: #9aa3ad;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,.12);
    }



    .valid-keyword-modal__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 20px;
      padding: 0 6px;
    }



    .valid-keyword-modal__title {
      margin: 0;
      font-size: 16px;
      font-weight: 700;
      width: 100%;
    }



    .valid-keyword-modal__date {
      margin: 0;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
    }



    .valid-keyword-modal__tabs {
      margin-bottom: 2px;
    }



    .valid-keyword-modal__tab {
      min-width: 75px;
      height: 36px;
      padding: 0 14px;
      border-radius: 4px 4px 0 0;
      background: #777;
      color: #fff;
      font-size: 13px;
      font-weight: 700;
    }



    .valid-keyword-modal__table-wrap {
      overflow: hidden;
      border: 1px solid #ddd;
      border-radius: 0 14px 14px 14px;
    }



    .valid-keyword-modal__table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 13px;
    }



    .valid-keyword-modal__table th {
      height: 36px;
      background: #f5f5f5;
      font-weight: 600;
      border-bottom: 1px solid #d7d7d7;
    }



    .valid-keyword-modal__table td {
      height: 48px;
      text-align: center;
      border-right: 1px solid #ddd;
    }



    .valid-keyword-modal__table th:first-child,
    .valid-keyword-modal__table td:first-child {
      width: 84px;
    }



    .valid-keyword-modal__table th:last-child,
    .valid-keyword-modal__table td:last-child {
      width: 68px;
      border-right: 0;
    }



    .valid-keyword-modal__table td:last-child {
      background: #fffbdc;
      font-size: 15px;
      font-weight: 700;
    }



.section-block {
  margin-top: 0;
}



.influencer-filter-panel__header .blog-profile__name {
  margin: 0;
}




/* reset */

.filter-action-btn--reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  padding: 0 14px;

  border: 1px solid #ddd;
  border-radius: 7px;

  background: #fff;

  color: #777;
  font-size: 13px;
  font-family: inherit;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}



.filter-action-btn--reset:hover {
  border-color: #1f8f5f;
  color: #1f8f5f;
  background: #f8fcfa;
}




/* keyword-list-search 공통 스타일이 없을 경우 대비 */

.influencer-list-search .keyword-list-search {
  position: relative;

  display: flex;
  align-items: center;

  width: 240px;
  height: 40px;

  margin: 0;
}



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

  padding: 0 42px 0 14px;

  border: 1px solid #ddd;
  border-radius: 7px;

  background: #fff;

  color: #333;
  font-family: inherit;
  font-size: 13px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}



.influencer-list-search .keyword-list-search input::placeholder {
  color: #aaa;
}



.influencer-list-search .keyword-list-search input:focus {
  border-color: #1f8f5f;
  box-shadow: 0 0 0 2px rgba(31, 143, 95, 0.08);
}



.influencer-list-search .keyword-list-search button {
  position: absolute;
  top: 50%;
  right: 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  padding: 0;
  border: 0;

  background: transparent;

  color: #555;

  cursor: pointer;

  transform: translateY(-50%);
}



.influencer-list-search .keyword-list-search button:hover {
  color: #1f8f5f;
}




/* =========================================================
   PAGINATION
========================================================= */

.pagination {
  display: flex;
  justify-content: center;

  margin-top: 30px;
}



.pagination__list {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0;
  margin: 0;

  list-style: none;
}



.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 36px;
  height: 36px;
  padding: 0 8px;

  border: 1px solid #e2e2e2;
  border-radius: 7px;

  background: #fff;

  color: #555;
  font-size: 13px;
  font-weight: 500;

  text-decoration: none;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}



.pagination__link:hover {
  border-color: #1f8f5f;
  color: #1f8f5f;
}



.pagination__link.is-active {
  border-color: #1f8f5f;

  background: #1f8f5f;

  color: #fff;
}



/* ================================================================
   키워드챌린지 플래너 (신규 리뉴얼 페이지)
   - 사이드바 상시 확장형 + 페이지 전용 신규 컴포넌트만 추가
   - 기존 컴포넌트(keyword-briefing, stat-card, blog-analysis-table,
     keyword-filter-panel 등)는 이 페이지에서도 그대로 재사용
================================================================ */


/* ----------------------------------------
   상단 3분할 — 브리핑 / 챌린지 요약 / TOP3 순위 변동
---------------------------------------- */

.analysis-panels--challenge {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.8fr;
  gap: 12px;
  align-items: stretch;
}



.analysis-panels--challenge .analysis-card {
  margin: 0;
}




/* ----------------------------------------
   키워드 추천 (전체 폭 테이블형)
---------------------------------------- */

.keyword-recommend-full .blog-analysis-table-wrap {
  margin-top: 16px;
}



.keyword-folder-tab.is-active {
  border-color: #42BE78;
  background: #42BE78;
  color: #FFFFFF;
}




/* 3단 패널 바로 다음 카드 — 공용 .section-block이 margin-top:0으로
   덮어써져 있어서(코드베이스 기존 이슈) 이 카드에만 위쪽 여백 보정 */
.keyword-recommend-full.section-block {
  margin-top: 24px;
}





.num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D9D9D9;
    color: #1F2420;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }


/* =========================================================
   회원 접근 공통 컴포넌트 (블로그 분석 첫 화면에서 쓰는 3종)
   → /css/style.css 맨 아래에 붙여 넣기
   · .lock-value  값 잠금 칩
   · .info-banner 회원 상태 안내 배너 (제목 위)
   · .quota       오늘 남은 횟수 (검색창 아래)
   토스트(.toast)는 이번 작업과 상관없어서 뺐음
   ========================================================= */

/* ---------------------------------------------------------
   ① 항목 잠금 B : 값 잠금 (표 안의 값 자리에 넣는 칩)
   --------------------------------------------------------- */
.lock-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #F1F1F1;
  color: #999999;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.lock-value svg {
  flex: none;
  width: 11px;
  height: 11px;
}


/* ---------------------------------------------------------
   ②-b 안내 배너 : 페이지 제목 위 한 줄 상태 안내
   .info-banner--trial 무료체험 / --warn 만료 임박 / --free 무료회원
   --------------------------------------------------------- */
.info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  background: #FFFFFF;
  color: #1F2420;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
}

.info-banner + .info-banner {
  margin-top: 10px;
}

.info-banner__tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F1F1F1;
  color: #555555;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.info-banner__text {
  flex: 1;
  min-width: 0;
}

.info-banner__text strong {
  font-weight: 700;
}

.info-banner__link {
  flex: none;
  color: #218A4C;
  font-weight: 700;
  white-space: nowrap;
}

.info-banner__link:hover {
  text-decoration: underline;
}

.info-banner__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #AAAAAA;
}

.info-banner__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #555555;
}

.info-banner__close svg {
  width: 12px;
  height: 12px;
}

/* 무료체험 중 */
.info-banner--trial {
  border-color: #DDF0E4;
  background: #F3FAF6;
}

.info-banner--trial .info-banner__tag {
  background: #42BC74;
  color: #FFFFFF;
}

/* 만료 임박 (D-3부터) */
.info-banner--warn {
  border-color: #F5DDAE;
  background: #FFF6E5;
  color: #6B4A0E;
}

.info-banner--warn .info-banner__tag {
  background: #F0B429;
  color: #FFFFFF;
}

.info-banner--warn .info-banner__link {
  color: #6B4A0E;
  text-decoration: underline;
}


/* ---------------------------------------------------------
   ⑤-a 남은 횟수 표시 : 검색창(.search-box-sub) 바로 아래
   .quota--empty 오늘 횟수를 모두 씀
   --------------------------------------------------------- */
.quota {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 10px;
  color: #6B6B6B;
  font-size: 12px;
  line-height: 1.5;
}

.quota__dots {
  display: inline-flex;
  gap: 3px;
}

/* 칸 하나 = 1회. 남은 횟수만큼 .is-on */
.quota__dots i {
  width: 14px;
  height: 5px;
  border-radius: 3px;
  background: #E4E7E2;
}

.quota__dots i.is-on {
  background: #42BC74;
}

.quota__count {
  color: #218A4C;
  font-weight: 700;
}

.quota--empty .quota__count {
  color: #E06666;
}

.quota__link {
  margin-left: auto;
  color: #218A4C;
  font-weight: 700;
  white-space: nowrap;
}

.quota__link:hover {
  text-decoration: underline;
}


/* ---------------------------------------------------------
   반응형
   --------------------------------------------------------- */
@media (max-width: 768px) {
  /* 안내 배너 : 문구는 한 줄 전체, 링크는 다음 줄로 */
  .info-banner {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px 14px;
  }

  .info-banner__text {
    order: 3;
    flex: 1 1 100%;
  }

  .info-banner__link {
    order: 4;
  }

  .info-banner__close {
    margin-left: auto;
  }

  .quota__link {
    margin-left: 0;
  }
}





/* ========================================
   블로거 단톡방 유입 배너 (카톡방)
   · 탑바 인덱스 스티커 : .talk-tab
   · 사이드바 펼침 카드 : .talk-card  (슬라이드 네비 구독정보 카드 아래)
   · 사이드바 접힘 버튼 : .side-talk  (72px 사이드바 맨 아래)
   · 얼굴 이미지 : /images/bltogi-face.png (공통)
   · 닫기 : 닫힌 요소에 .is-closed 추가 (스티커·카드)
   · 빨간 점 : 처음 방문 시에만 .is-new 추가, 한 번 누르면 제거
======================================== */


/* ---------- 탑바 인덱스 스티커 ---------- */

/* 높이 0 자리. sticky 라서 스크롤해도 화면 맨 위에 붙어서 따라옴
   · 기본        : header.top-bar 바로 다음에 두면 탑바 아래 왼쪽에 붙음
   · --top 추가  : header.top-bar 바로 앞에 두면 페이지 맨 꼭대기(탑바 왼쪽 빈 공간)에 붙음 */
.talk-tab-wrap {
  position: sticky;
  top: 0;
  z-index: 50;

  height: 0;
}



/* PC : 화면 가운데에서 시작해서 오른쪽으로 뻗음 (호버 시에도 오른쪽으로 늘어남) */
.talk-tab {
  position: absolute;
  top: 0;
  left: 70%;

  display: inline-flex;
  align-items: center;

  height: 34px;

  border-bottom: 3px solid #E6CF00;
  border-radius: 0 0 10px 10px;
  background: #FEE500;
  box-shadow: 0 3px 6px rgba(60, 30, 30, 0.12);
  white-space: nowrap;
}



.talk-tab.is-closed {
  display: none;
}



.talk-tab__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  height: 100%;
  padding: 0 4px 2px 8px;

  color: #3C1E1E;
  font-size: 13px;
  font-weight: 700;
}



.talk-tab__face {
  flex-shrink: 0;

  width: 22px;
  height: 22px;

  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #FFFFFF;

  transition: transform 0.2s ease;
}



.talk-tab:hover .talk-tab__face {
  transform: rotate(-12deg);
}



/* 호버 문구 : 평소엔 폭 0, 호버 시 옆으로 늘어나며 노출 */
.talk-tab__more {
  display: inline-block;
  overflow: hidden;

  max-width: 0;
  margin-left: -7px;

  opacity: 0;

  transition: max-width 0.25s ease, margin-left 0.25s ease, opacity 0.2s ease;
}



.talk-tab:hover .talk-tab__more {
  max-width: 80px;
  margin-left: 0;

  opacity: 1;
}



.talk-tab__dot {
  display: none;

  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: #E24B4A;
}



.talk-tab.is-new .talk-tab__dot {
  display: block;
}



.talk-tab:hover .talk-tab__dot {
  display: none;
}



/* 닫기 */
.talk-tab__close {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 26px;
  height: 100%;
  padding: 0 4px 2px 0;

  border: 0;
  background: none;
  color: #8A7A2E;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}



.talk-tab__close:hover {
  color: #3C1E1E;
}







/* ---------- 사이드바 펼침 카드 ---------- */

.talk-card {
  position: relative;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 36px 12px 12px;

  border: 1px solid #F5E36B;
  border-radius: 12px;
  background: #FFFBDB;
}



/* 닫으면 카드가 빠지고 아래 메뉴가 그만큼 위로 올라옴 */
.talk-card.is-closed {
  display: none;
}



.talk-card__link {
  display: flex;
  align-items: center;
  gap: 10px;

  flex: 1;
  min-width: 0;

  color: #3C1E1E;
}



.talk-card__face {
  flex-shrink: 0;

  width: 36px;
  height: 36px;

  border-radius: 50%;
  box-shadow: 0 0 0 2px #FFFFFF;
}



.talk-card__text {
  display: flex;
  flex-direction: column;
  gap: 1px;

  min-width: 0;
}



.talk-card__title {
  font-size: 14px;
  font-weight: 700;
}



.talk-card__desc {
  font-size: 12px;
  color: #6B5A1E;
}



.talk-card__close {
  position: absolute;
  top: 50%;
  right: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;
  margin-top: -12px;
  padding: 0;

  border: 0;
  border-radius: 50%;
  background: none;
  color: #A8963F;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}



.talk-card__close:hover {
  background: #FFF3A0;
  color: #3C1E1E;
}




/* ---------- 사이드바 접힘 버튼 ---------- */

/* ☰ 버튼(.sidebar-menu-button) 바로 아래 */
.side-talk {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;

  width: max-content;
  margin: 24px auto 0;
}



.side-talk__btn {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  background: #FEE500;

  transition: box-shadow 0.2s ease;
}



.side-talk:hover .side-talk__btn {
  box-shadow: 0 0 0 3px #FFF3A0;
}



.side-talk__face {
  width: 28px;
  height: 28px;

  border-radius: 50%;
}



.side-talk__dot {
  position: absolute;
  top: 0;
  right: 0;

  display: none;

  width: 9px;
  height: 9px;

  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: #E24B4A;
}



.side-talk.is-new .side-talk__dot {
  display: block;
}



.side-talk__label {
  font-size: 11px;
  font-weight: 700;
  color: #6B6B6B;
}



/* 호버 말풍선 */
.side-talk__tip {
  position: absolute;
  top: 10px;
  left: 54px;

  display: none;

  padding: 7px 11px;

  border-radius: 8px;
  background: #1F2420;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}



.side-talk__tip::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;

  margin-top: -5px;

  border: 5px solid transparent;
  border-left: 0;
  border-right-color: #1F2420;
}



.side-talk:hover .side-talk__tip {
  display: block;
}




/* ---------- 반응형 ---------- */

@media (max-width: 768px) {

  /* 모바일 사이드바 48px */
  .side-talk__btn {
    width: 34px;
    height: 34px;
  }

  .side-talk__face {
    width: 24px;
    height: 24px;
  }

  .side-talk {
    margin-top: 20px;
  }

  .side-talk__label,
  .side-talk__tip {
    display: none !important;
  }

  /* 모바일 : 화면 가운데 */
  .talk-tab {
    transform: translateX(-50%);
  }

  /* 맨 꼭대기 버전은 모바일에서 탑바 메뉴와 겹쳐서, 탑바(58px) 아래로 내림 */
  .talk-tab-wrap--top .talk-tab {
    top: 58px;
  }

  /* 터치 화면은 호버가 없어서 늘어나는 효과 없이 평소 모양 유지 */
  .talk-tab:hover .talk-tab__more {
    max-width: 0;
    margin-left: -7px;
    opacity: 0;
  }
}




/* =========================================================
   단톡방 유입 배너
   /css/style.css 에 추가함
   - 플로팅 카드 (무료회원 · 블로그 분석 / 키워드 분석 / 블톡 차트)
   - 사이드바 펼침 배너 (상태 카드 아래)
   - 사이드바 접힘 배너 (☰ 바로 아래)
   ========================================================= */

.chatroom-float,
.chatroom-side,
.chatroom-mini {
    --cr-yellow: #FCE13A;
    --cr-yellow-hover: #F5D51F;
    --cr-text: #1E1D1A;
    --cr-sub: #5E5D58;
    --cr-line: #E3E6DF;
    --cr-grad: linear-gradient(180deg, #FFF7CC 0%, #FFFFFF 100%);
    --cr-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.chatroom-float *,
.chatroom-side *,
.chatroom-mini * {
    box-sizing: border-box;
}


/* ---------- 공통 : 칩 · 버튼 ---------- */
.chatroom-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 7px;
    border-radius: 999px;
    background: var(--cr-yellow);
    color: var(--cr-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
}

.chatroom-chip svg {
    flex: none;
    width: 12px;
    height: 12px;
}

.chatroom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--cr-yellow);
    color: var(--cr-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.chatroom-btn:hover {
    background: var(--cr-yellow-hover);
}

.chatroom-btn svg {
    flex: none;
    width: 14px;
    height: 14px;
}


/* =========================================================
   1. 플로팅 카드
   - 본문 영역(초록 탑바 바로 아래) 첫 요소로 배치
   - 높이 0 + sticky : 레이아웃을 밀지 않고 오른쪽 위에 떠 있다가
     탑바가 올라가면 화면 위에 붙음
   - 기본 펼침 / .is-collapsed 붙으면 접힘 알약
   ========================================================= */
.chatroom-float {
    position: sticky;
    top: 16px;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    height: 0;
    padding-right: 24px;
}

.chatroom-float__card,
.chatroom-float__pill {
    position: absolute;
    top: 0;
    right: 24px;
}

/* 펼침 카드 */
.chatroom-float__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    padding: 16px 18px;
    border: 1px solid var(--cr-line);
    border-radius: 16px;
    background: var(--cr-grad);
    box-shadow: var(--cr-shadow);
}

.chatroom-float__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.chatroom-float__right {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.chatroom-float__img {
    display: block;
    width: auto;
    height: 52px;
}

.chatroom-float__img--trophy {
    height: 56px;
}

.chatroom-float__fold {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--cr-sub);
    cursor: pointer;
}

.chatroom-float__fold:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chatroom-float__fold svg {
    width: 14px;
    height: 14px;
}

.chatroom-float__title {
    margin: 0;
    color: var(--cr-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
}

.chatroom-float__desc {
    margin: -6px 0 0;
    color: var(--cr-sub);
    font-size: 13px;
    line-height: 19px;
}

/* 접힘 알약 */
.chatroom-float__pill {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--cr-line);
    border-radius: 999px;
    background: var(--cr-grad);
    box-shadow: var(--cr-shadow);
    color: var(--cr-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 19px;
    cursor: pointer;
}

.chatroom-float__pill img {
    display: block;
    width: auto;
    height: 34px;
}

.chatroom-float__pill svg {
    width: 14px;
    height: 14px;
}

/* 상태 전환 */
.chatroom-float.is-collapsed .chatroom-float__card {
    display: none;
}

.chatroom-float.is-collapsed .chatroom-float__pill {
    display: inline-flex;
}


/* =========================================================
   2. 사이드바 펼침 배너 (상태 카드 아래)
   ========================================================= */
/* 좌우 여백은 슬라이드 네비 프로필 영역 여백을 그대로 따름 → 위 '내 블로그' 카드와 가로 폭 같음 */
.chatroom-side {
    padding: 4px 0 12px;
}

.chatroom-side__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--cr-line);
    border-radius: 14px;
    background: var(--cr-grad);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chatroom-side__card .chatroom-chip {
    align-self: flex-start;
}

.chatroom-side__title {
    margin: 0;
    color: var(--cr-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.chatroom-side__desc {
    margin: -4px 0 0;
    color: var(--cr-sub);
    font-size: 12px;
    line-height: 17px;
}

/* 응원단 이미지가 버튼 위에 바로 올라탄 형태 */
.chatroom-side__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2px;
}

.chatroom-side__img {
    display: block;
    width: 100%;
    max-width: 174px;
    height: auto;
}

.chatroom-side__cta .chatroom-btn {
    padding: 9px 12px;
    font-size: 13px;
}


/* =========================================================
   3. 사이드바 접힘 배너 (☰ 바로 아래)
   ========================================================= */
.chatroom-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 74px;
    margin: 0 auto;
    padding-top: 8px;
    color: var(--cr-text);
    text-decoration: none;
}

.chatroom-mini__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid #F3E07A;
    border-radius: 999px;
    background: linear-gradient(180deg, #FFF7CC 0%, #FFE98A 100%);
    transition: transform 0.2s ease;
}

.chatroom-mini:hover .chatroom-mini__icon {
    transform: translateY(-2px);
}

.chatroom-mini__icon img {
    display: block;
    width: auto;
    height: 34px;
}

.chatroom-mini__label {
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
}

.chatroom-mini {
    position: relative;
}

.chatroom-mini:hover .chatroom-mini__icon,
.chatroom-mini:focus-visible .chatroom-mini__icon {
    border-color: #E9CF3F;
}

/* 마우스 오버 말풍선 : 아이콘 세로 가운데, 사이드바 오른쪽 바깥 */
.chatroom-mini__tip {
    position: absolute;
    top: 34px; /* padding-top 8 + 아이콘 절반 26 */
    left: calc(100% + 14px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 46px 10px 14px; /* 오른쪽은 go 칩 자리 */
    border: 1px solid var(--cr-line);
    border-radius: 12px;
    background: var(--cr-grad);
    box-shadow: var(--cr-shadow);
    color: var(--cr-sub);
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(-4px, -50%);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.chatroom-mini__tip strong {
    color: var(--cr-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 19px;
}

/* 오른쪽 위 go 칩 */
.chatroom-mini__go {
    position: absolute;
    top: 6px;
    right: 7px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--cr-yellow);
    color: var(--cr-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
}

/* 꼬리 */
.chatroom-mini__tip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    width: 10px;
    height: 10px;
    border-left: 1px solid var(--cr-line);
    border-bottom: 1px solid var(--cr-line);
    background: #FFFCEB;
    transform: translateY(-50%) rotate(45deg);
}

.chatroom-mini:hover .chatroom-mini__tip,
.chatroom-mini:focus-visible .chatroom-mini__tip {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

/* 터치 기기에서는 말풍선 숨김 */
@media (hover: none) {
    .chatroom-mini__tip {
        display: none;
    }
}


/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
    .chatroom-float {
        top: 12px;
        padding-right: 16px;
    }

    .chatroom-float__card,
    .chatroom-float__pill {
        right: 16px;
    }

    .chatroom-float__card {
        width: min(300px, calc(100vw - 32px));
    }
        /* 사이드바 접힘 배너 : 좁아진 사이드바 폭에 맞춰 축소 */
    .chatroom-mini {
        width: 100%;
        gap: 4px;
        padding-top: 4px;
    }

    .chatroom-mini__icon {
        width: 36px;
        height: 36px;
    }

    .chatroom-mini__icon img {
        height: 24px;
    }

    .chatroom-mini__label {
        font-size: 10px;
        line-height: 14px;
    }
}



/* =========================================================
   용어 설명 : 물음표(.term-q) · 모달(.term-modal) · 작은 창(.term-tip)
   11/18 추가 : /css/pages/term-tooltip.css 와 같은 내용
   ========================================================= */

/* ---------- 용어 물음표 (.term-q) ----------
   용어 글자 오른쪽에 붙는 물음표 아이콘. 누르면 용어 설명 모달이 뜸
   평소 회색, 올림 · 키보드 초점 때 초록 */
.term-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
  margin: -3px 0 -3px 2px;   /* 위아래 음수 여백 : 물음표가 줄 높이를 키우지 않게 */
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #999999;
  vertical-align: middle;
  cursor: pointer;
}

.term-q:hover,
.term-q:focus-visible {
  color: #218A4C;
}

.term-q:focus-visible {
  outline: 2px solid #42BC74;
  outline-offset: 1px;
}

/* 블로그 분석 상세 프로필의 좁은 칸(스탯 카드) : 글자와 아이콘이 줄바꿈되지 않게 한 줄로 고정 */
.profile-stats .stat-card__label:has(> .term-q) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: nowrap;
}

.profile-stats .stat-card__label:has(> .term-q) .term-q {
  margin-top: 0;
}

.profile-stats .stat-card__label:has(> .term-q) .goto__infl,
.profile-stats .stat-card__label:has(> .term-q) .goto__infl a {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-left: 2px;
}

/* 표 제목(20px) 옆 물음표 : 제목과 조금 띄움 */
.section-title > .term-q {
  margin-left: 4px;
}

/* ---------- 용어 설명 모달 (.term-modal) ----------
   색 · 크기 · 버튼 값은 체험 종료 모달(.trial-end-modal)과 같은 값 */
.term-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  letter-spacing: -0.07em;
  word-break: keep-all;
}

.term-modal[hidden] {
  display: none;
}

.term-modal *,
.term-modal *::before,
.term-modal *::after {
  box-sizing: border-box;
}

.term-modal__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.term-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 30px 30px;
  border: 1px solid #E5E5E5;
  border-radius: 16px;
  background: #fff;
  color: #1F2420;
}

.term-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: #6B6E6B;
  cursor: pointer;
}

.term-modal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.term-modal__badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F2F2F2;
  color: #777777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.term-modal__title {
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.term-modal__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.term-modal__body[hidden] {
  display: none;
}

.term-modal__summary {
  margin: -12px 0 0;
  color: #6B6E6B;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.term-modal__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}

.term-modal__text p {
  margin: 0;
  color: #6B6E6B;
  font-size: 13px;
  line-height: 1.6;
}

/* 표 용어 모음 : 용어 이름 + 설명이 여러 개 */
.term-modal__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 4px;
}

.term-modal__list dt {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.term-modal__list dd {
  margin: 0;
  color: #6B6E6B;
  font-size: 13px;
  line-height: 1.6;
}

.term-modal__list dd + dt {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #EEEEEE;
}

.term-modal__tips {
  padding: 18px 16px;
  border-radius: 12px;
  background: #F2F8EF;
}

.term-modal__tips strong {
  display: block;
  margin-bottom: 8px;
  color: #218A4C;
  font-size: 14px;
  font-weight: 700;
}

.term-modal__tips p {
  margin: 0;
  color: #4A4D4A;
  font-size: 13px;
  line-height: 1.6;
}

/* 버튼 : 체험 종료 모달과 같은 세로 배치 (위 : 메인 / 아래 : 보조) */
.term-modal__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.term-modal__confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
}

.term-modal__confirm {
  border: 1px solid #42BC74;
  background: #42BC74;
  color: #fff;
}

.term-modal__confirm:hover {
  background: #3DAE6A;
}

/* 사용가이드 자세히 보기 : 글자 링크 */
.term-modal__guide {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  margin-top: 6px;
  padding: 4px;
  color: #6B6B6B;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.3px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.term-modal__guide:hover,
.term-modal__guide:focus-visible {
  color: #218A4C;
}

.term-modal__guide[hidden] {
  display: none;
}

.term-modal__guide svg {
  flex: none;
}

@media (max-width: 480px) {
  .term-modal {
    padding: 16px;
  }

  .term-modal__content {
    gap: 16px;
    padding: 36px 20px 20px;
  }

  .term-modal__title {
    font-size: 18px;
  }

  .term-modal__body {
    gap: 16px;
  }

  .term-modal__summary {
    margin-top: -8px;
  }
}

/* 블로그 분석 상세 : 일일 방문자 수 라벨과 물음표가 줄바꿈되지 않게 한 줄로 고정 */
.visitor-card .metric-heading__label:has(> .term-q) {
  flex: none;
  white-space: nowrap;
}

/* 열려 있는 동안 물음표는 초록 */
.term-q.is-open {
  color: #218A4C;
}

/* ---------- 작은 창 (.term-tip) ----------
   한 줄 문구용. 물음표를 누르면 바로 아래에 뜨고, 바깥을 누르면 닫힘
   색 · 모서리는 블톡 차트 배지 말풍선(.btc-tip)과 같은 값 */
.term-tip {
  position: absolute;
  z-index: 500;
  max-width: 280px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1F2420;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.2px;
  text-align: center;
  word-break: keep-all;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.term-tip[hidden] {
  display: none;
}


/* ---------- 모바일 : 물음표 때문에 줄이 바뀌지 않게 맞춤 ----------
   물음표가 들어간 자리만 바뀌도록 :has 로 묶음 (같은 클래스를 쓰는 다른 페이지는 그대로) */
@media (max-width: 768px) {

  /* 모바일 : 물음표 자리를 16px 로 줄이고, 누르는 범위는 바깥으로 8px 씩 넓힘 */
  .term-q {
    width: 16px;
    height: 16px;
    margin-left: 1px;
  }

  .term-q::after {
    content: "";
    position: absolute;
    inset: -8px;
  }

  /* 블로그 분석 상세 : 일일 방문자 수 (라벨 + 물음표 + 오른쪽 숫자가 한 줄) */
  .visitor-card .metric-heading:has(.term-q) {
    gap: 6px;
  }

  .visitor-card .metric-heading__label > .term-q {
    margin-left: 0;
  }

  /* 블로그 분석 상세 : 최근 포스팅 제목 줄. 보기 설정(개씩 보기 · 페이지 이동)을 제목 아래 줄로 내림 */
  .section-header:has(> .table-control):has(.term-q) {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .section-header:has(> .table-control):has(.term-q) .table-control__item {
    white-space: nowrap;
  }

  /* 제목(.blog-profile__name)은 넘치면 말줄임으로 잘리는데, 물음표까지 잘리지 않게 풀어 둠 */
  .blog-profile__name:has(> .term-q) {
    overflow: visible;
  }

  /* 물음표가 자리를 차지하지 않게 오른쪽 여백에 걸침 (옆 요소가 다음 줄로 밀리지 않게)
     · 인플루언서 홈 분석 상세 : 활동 리스트 탭 '상위노출 키챌'
     · 키워드 추천 : 추천 영역 3곳 제목 */
  .activity-list__tab > .term-q,
  section[data-src] > .ch .blog-profile__name > .term-q {
    margin-right: -17px;
  }

  /* 키워드 리스트 : 범위 탭 이름 + 물음표가 한 줄 */
  .kl-scope__name:has(> .term-q) {
    gap: 2px;
    white-space: nowrap;
  }

  /* 키워드챌린지 리스트 : 물음표 + 필터1 · 2 · 3 · 설정 버튼이 한 줄 */
  .ltool-actions:has(> .term-q) {
    gap: 4px;
  }

  .ltool-actions > .term-q {
    margin: 0;
  }
}

/* ---------- 360px 대 좁은 폰 : 물음표가 자리를 차지하지 않게 오른쪽으로 걸침 ----------
   글자 줄바꿈은 원래대로 두고, 물음표만 마지막 글자 옆 여백에 얹음 */
@media (max-width: 380px) {
  .vk-list__title .term-q,
  .keyword-grade__item .stat-card__label > .term-q,
  .infl-list-card--row .stat-card__label > .term-q,
  #h-nb > .term-q {
    margin-right: -17px;
  }
}



/* =====================================================
   표 내부 로딩 (스켈레톤)
   · 11/24 추가 : 표와 페이지네이션이 있는 모든 페이지 공통
   · 사용 : .blog-analysis-table-wrap 에 .is-loading 을 붙이면
            머리글(thead)은 그대로 두고 본문 칸만 회색 막대로 바뀜
   · 행 개수 · 칸 너비는 지금 화면에 있는 표 그대로라 표 높이가 출렁이지 않음
   · 클래스 붙이고 떼는 건 /js/table-loading.js 가 처리
   ===================================================== */

.blog-analysis-table-wrap.is-loading tbody {
  pointer-events: none;   /* 로딩 중 행 안의 링크 · 버튼 클릭 막기 */
}

.blog-analysis-table-wrap.is-loading tbody td {
  position: relative;
  color: transparent;     /* 칸에 바로 들어 있는 글자 숨김 */
}

.blog-analysis-table-wrap.is-loading tbody td > * {
  visibility: hidden;     /* 배지 · 아이콘 숨김 (자리는 유지) */
}

.blog-analysis-table-wrap.is-loading tbody td::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;

  width: 60%;
  max-width: 220px;
  height: 12px;

  border-radius: 6px;
  background: linear-gradient(90deg, #EFEFEF 25%, #F7F7F7 45%, #EFEFEF 65%);
  background-size: 400% 100%;

  transform: translate(-50%, -50%);
  animation: bt-table-skeleton 1.3s ease infinite;
}

/* 줄마다 막대 길이를 조금 다르게 : 실제 글자처럼 보이도록 */
.blog-analysis-table-wrap.is-loading tbody tr:nth-child(even) td::after {
  width: 45%;
}

@keyframes bt-table-skeleton {
  0% {
    background-position: 100% 50%;
  }

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

/* 움직임 줄이기 설정 사용자 : 반짝임 없이 회색 막대만 */
@media (prefers-reduced-motion: reduce) {

  .blog-analysis-table-wrap.is-loading tbody td::after {
    animation: none;
  }
}