/* extracted from templates/testmr.tpl */

/* 콘텐츠 언급 뉴스/블로그 리스트 커스텀 */
.vt-list-scroll { max-height: 500px; overflow-y: auto; padding: 6px 10px 14px; box-sizing: border-box; }

#vt_comp_intersection li:nth-child(n+4) {
  display: none !important;
}
.vt-news-row { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; }
.vt-news-header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.vt-news-title { display: block; font-size: 14px; color: #111827; line-height: 1.4; font-weight: 700; word-break: break-word; }
.vt-news-date { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.vt-news-desc { color: #6b7280; font-size: 12px; margin-top: 6px; line-height: 1.5; }
.vt-blog-item { display: block; padding: 12px 8px; border-bottom: 1px solid #e2e8f0; word-break: break-word; }
.vt-blog-header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.vt-blog-title { color: #111827; font-weight: 700; font-size: 14px; line-height: 1.45; }
.vt-blog-date { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.vt-blog-desc { color: #6b7280; font-size: 12px; margin-top: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; }
.vt-empty { padding: 16px 10px; color: #94a3b8; font-size: 13px; }
.vt-tab-content { width: 100%; display: none; }
.vt-tab-content.active { display: block; }
.vt-tab-content .vt-list-scroll, .vt-tab-content .vt-list-scroll * { max-width: 100%; }
.vt-tab-header { display: flex; width: 100%; }
.vt-tab-btn { flex: 1 1 0; min-width: 0; }
.vt-sub-card { box-sizing: border-box; }
.vt-tab-content .vt-list-scroll { width: 100%; }

.mobile_nameBox { margin-top:120px;}

.vt-menu-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vt-section-date {
  display: inline-flex;
  align-items: center;
}

.wl-section-date {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .wl-section-date {
    font-size: 12px;
  }
}


/* grid 반응형 */
.vt-top-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

/* 연관 검색어 */
.assoc-nav { display:flex; gap:8px; justify-content:flex-end; margin-bottom:8px; }
.assoc-btn { width:32px; height:32px; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; cursor:pointer; font-size:16px; }
.assoc-week-wrap { display:flex; flex-wrap:wrap; gap:12px; }

/* =========================================
   [NEW] 경쟁 후보 비교 분석 (Sec7) 리디자인
   ========================================= */
/* 1. 공통 컬러 변수 (시안 기준) */
:root {
    --comp-color-left: #3b82f6;
    --comp-color-left-bg: #eff6ff;
    --comp-color-right: #ef4444;
    --comp-color-right-bg: #fef2f2;
}

/* =========================================
   [NEW] Sec0 이달의 리포트 요약 카드 리디자인
   ========================================= */
#sec0 {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}



#sec0 .vt-sub-card.vt-sec0-card {
  border-radius: 18px;
  padding: 22px 22px 18px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-auto-rows: min-content;
  column-gap: 12px;
  align-items: start;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(15,23,42,0.06);
  border: 1px solid #e2e8f0;
}

#sec0 .vt-sub-card.vt-sec0-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.95;
}

#sec0 .vt-sub-card.vt-sec0-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(15,23,42,0.10);
}

#sec0 .vt-sec0-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15,23,42,0.08);
  grid-column: 1;
  grid-row: 1;
}

#sec0 .vt-sec0-icon {
  width: 18px;
  height: 18px;
}

.vt-sns-focus {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px;
  box-shadow: 0 15px 28px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.vt-sns-focus__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.vt-sns-focus__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vt-sns-focus__title {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.vt-snsd-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 6px;
}

.vt-snsd-section {
  width: 100%;
}

.vt-snsd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.vt-snsd-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.vt-snsd-sub {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.vt-snsd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.vt-snsd-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #eef2f7;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.04);
}

.vt-snsd-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.vt-snsd-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vt-snsd-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #eef2ff;
  color: #4f46e5;
  flex: 0 0 auto;
}

.vt-snsd-icon.blue { background: #dbeafe; color: #2563eb; }
.vt-snsd-icon.teal { background: #ccfbf1; color: #0d9488; }
.vt-snsd-icon.red { background: #fee2e2; color: #dc2626; }
.vt-snsd-icon.orange { background: #ffedd5; color: #f97316; }
.vt-snsd-icon.pink { background: #ffe4e6; color: #ec4899; }
.vt-snsd-icon.purple { background: #ede9fe; color: #8b5cf6; }

.vt-snsd-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vt-snsd-card-value {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.vt-snsd-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.vt-snsd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vt-snsd-row-label {
  font-weight: 600;
}

.vt-snsd-prev {
  font-weight: 700;
  color: #94a3b8;
}

.vt-snsd-delta {
  font-weight: 900;
}

.vt-snsd-delta.up { color: #2563eb; }
.vt-snsd-delta.down { color: #ef4444; }
.vt-snsd-delta.flat { color: #94a3b8; }

.vt-snsd-label {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}

.vt-snsd-empty {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 920px) {
  .vt-snsd-grid {
    grid-template-columns: 1fr;
  }
}

.wl-srcd-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.wl-srcd-card .vt-sub-title {
  display: block;
}

.wl-srcd-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.wl-srcd-chart {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.wl-srcd-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.wl-srcd-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.wl-srcd-center-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.wl-srcd-center-value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}

.wl-srcd-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wl-srcd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.wl-srcd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wl-srcd-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  flex: 0 0 auto;
}

.wl-srcd-item-name {
  font-size: 14px;
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wl-srcd-item-val {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.wl-srcd-empty {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed #e2e8f0;
  color: #94a3b8;
  text-align: center;
}

.wl-srcd-newsblog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wl-srcd-nb-head {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
}

.wl-srcd-list-scroll {
  max-height: 620px;
}

@media (max-width: 1024px) {
  .wl-srcd-grid {
    grid-template-columns: 1fr;
  }
  .wl-srcd-wrap {
    grid-template-columns: 1fr;
  }
  .wl-srcd-chart {
    width: 240px;
    height: 240px;
  }
  .wl-srcd-newsblog-grid {
    grid-template-columns: 1fr;
  }
}

.wl-battle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 24px;
}

.wl-battle-grid .vt-chart-card {
  display: flex;
  flex-direction: column;
}

.wl-battle-grid .vt-chart-wrapper-trend {
  flex: 1;
  height: 360px;
}

.wl-battle-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wl-battle-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wl-battle-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.wl-battle-desc {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

.wl-battle-badge {
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

.wl-battle-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  background: #f1f5f9;
  padding: 12px;
  border-radius: 26px;
}

.wl-battle-filter-btn {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.wl-battle-filter-btn:hover {
  background: #ffffff;
  color: #64748b;
}

.wl-battle-filter-btn.active {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  color: #334155;
}

.wl-battle-filter-btn.active#wl_battle_btn_all {
  background: #e2e8f0;
  color: #0f172a;
}

.wl-battle-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.wl-battle-dot-blue { background: #3b82f6; }
.wl-battle-dot-lightblue { background: #60a5fa; }
.wl-battle-dot-red { background: #ef4444; }
.wl-battle-dot-orange { background: #fb923c; }

.wl-battle-chart-wrap {
  position: relative;
  width: 100%;
  height: 300px;
}

.wl-battle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.wl-battle-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.wl-battle-legend-line {
  width: 28px;
  height: 3px;
  border-radius: 999px;
}

.wl-battle-legend-line-blue { background: #3b82f6; }
.wl-battle-legend-line-red { background: #ef4444; }
.wl-battle-legend-dash {
  background-image: repeating-linear-gradient(to right, currentColor, currentColor 5px, transparent 5px, transparent 10px);
}

.wl-battle-legend-bar {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: rgba(148,163,184,0.35);
  border: 1px solid rgba(148,163,184,0.6);
}

.wl-battle-empty {
  width: 100%;
  height: 100%;
  border: 1px dashed #e2e8f0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .wl-battle-grid {
    grid-template-columns: 1fr;
  }
}

.vt-sns-focus__period {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 10px 16px;
  border-radius: 999px;
}

.vt-sns-focus__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.vt-sns-focus__column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vt-sns-focus__column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vt-sns-focus__badge {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  background: linear-gradient(120deg, #dbeafe, #bfdbfe);
  border-radius: 12px;
  padding: 6px 14px;
}

.vt-sns-focus__badge.badge-youtube {
  background: linear-gradient(120deg, #ffe4e6, #fecdd3);
  color: #b91c1c;
}

.vt-sns-focus__desc {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.vt-sns-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.vt-sns-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  background: #fdfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
}

.vt-sns-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vt-sns-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ede9fe;
  color: #4c1d95;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.vt-sns-card__icon--blue {
  background: #dbeafe;
  color: #1e40af;
}

.vt-sns-card__icon--teal {
  background: #ccfbf1;
  color: #0d9488;
}

.vt-sns-card__icon--red {
  background: #fee2e2;
  color: #b91c1c;
}

.vt-sns-card__icon--orange {
  background: #ffedd5;
  color: #c2410c;
}

.vt-sns-card__icon--pink {
  background: #ffe4e6;
  color: #be185d;
}

.vt-sns-card__icon--purple {
  background: #ede9fe;
  color: #6d28d9;
}

.vt-sns-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.vt-sns-card__label {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.vt-sns-card__value {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
}

.vt-sns-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
}

.vt-sns-card__meta-label {
  font-weight: 600;
  margin-right: 6px;
}

.vt-sns-card__delta {
  font-weight: 700;
}

.vt-sns-card__delta--up {
  color: #1d4ed8;
}

.vt-sns-card__delta--down {
  color: #dc2626;
}

.vt-sns-card__delta--flat {
  color: #475569;
}

.vt-sns-card__prev {
  font-weight: 600;
  color: #475569;
}

.vt-sns-focus__empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cbd5f5;
  border-radius: 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.vt-sns-focus__placeholder {
  margin-top: 24px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
  color: #475569;
  text-align: center;
  border: 1px dashed #cbd5f5;
}

@media (max-width: 768px) {
  .vt-sns-focus {
    padding: 20px;
  }
  .vt-sns-focus__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .vt-sns-card__value {
    font-size: 26px;
  }
}

#sec0 .vt-sec0-mini-icon {
  width: 12px;
  height: 12px;
}

#sec0 .vt-sec0-kpi-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 2;
}

#sec0 .vt-sec0-sent-wrap {
  grid-column: 1 / -1;
  grid-row: 2;
}

#sec0 .vt-sec0-bg-deco-icon {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  opacity: 0.05;
  transform: rotate(-15deg);
}


#sec0 .vt-kpi-val3.vt-sec0-val-text {
  margin-top: 12px;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}



#sec0 .vt-kpi-val3.vt-sec0-val-text small,
#sec0 .vt-kpi-val3.vt-sec0-val-text .unit,
#sec0 .vt-kpi-val3.vt-sec0-val-text span {
  font-size: 18px;
  font-weight: 800;
  color: #94a3b8;
}

/* 1) 온라인 여론 규모 */
#sec0 .vt-sec0-card-volume {
  background: #ffffff;
}

#sec0 .vt-sec0-card-volume::before {
  background: linear-gradient(90deg, #3b82f6 0%, rgba(59, 130, 246, 0) 100%);
}

#sec0 .vt-sec0-card-volume .vt-sec0-icon-bg {
  background: #eff6ff;
  color: #3b82f6;
}

#sec0 .vt-sec0-card-volume .vt-sec0-val-text {
  color: #2563eb;
}

/* 2) 대표 감성 지표 */
#sec0 .vt-sec0-card-sentiment {
  background: #ffffff;
}

#sec0 .vt-sec0-card-sentiment::before {
  background: linear-gradient(90deg, #ef4444 0%, rgba(239, 68, 68, 0) 100%);
}

#sec0 .vt-sec0-card-sentiment .vt-sec0-icon-bg {
  background: #fef2f2;
  color: #ef4444;
}

#sec0 .vt-sec0-card-sentiment.negative {
  background: #ffffff;
}

#sec0 .vt-sec0-card-sentiment.negative .vt-sec0-icon-bg {
  background: #fef2f2;
  color: #ef4444;
}

#sec0 .vt-sec0-sent-wrap {
  width: 100%;
}

#sec0 .vt-sec0-sent-val {
  text-align: left;
  margin-top: 10px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ef4444;
}

#sec0 .vt-sec0-sentiment-bar-bg {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 99px;
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}

#sec0 .vt-sec0-sentiment-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s ease-out;
  background: #ef4444;
}

#sec0 .vt-sec0-card-sentiment.negative .vt-sec0-sentiment-bar-fill {
  background: #ef4444;
}

/* 3) 최대 영향력 채널 */
#sec0 .vt-sec0-card-channel {
  background: #ffffff;
}

#sec0 .vt-sec0-card-channel::before {
  background: linear-gradient(90deg, #8b5cf6 0%, rgba(139, 92, 246, 0) 100%);
}

#sec0 .vt-sec0-card-channel .vt-sec0-icon-bg {
  background: #ede9fe;
  color: #7c3aed;
}

#sec0 .vt-sec0-card-channel .vt-sec0-val-text {
  color: #5b21b6;
}

.bgc_dm {
  background: linear-gradient(180deg, #0f2a7a 0%, #163d9b 60%, #0f2a7a 100%);
}

.bgc_ind {
  background: linear-gradient(180deg, #4b5563 0%, #374151 60%, #111827 100%);
}

#sec0 .vt-sec0-meta-sub {
  font-size: 0.85rem;
  color: #475569;
  background: rgba(255,255,255,0.6);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-top: 0.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* 2. 대결 구도 (Battle Layout) */
.vt-battle-layout { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.vt-battle-box { background:#fff; border-radius:1rem; box-shadow:0 4px 6px -1px rgba(0,0,0,0.05); padding:24px; }
.vt-battle-box-gradient-l {
    background: linear-gradient(to bottom, #f5f3ff 0%, #ffffff 80%) !important;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--comp-color-left) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.vt-battle-box-gradient-r {
    background: linear-gradient(to bottom, #ecfdf5 0%, #ffffff 80%) !important;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--comp-color-right) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.vt-battle-box-gradient-c {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%) !important;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
}
.vt-battle-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.vs-circle { width:44px; height:44px; border-radius:50%; background:#cbd5e1;display:flex; align-items:center; justify-content:center; font-weight:800; color:#fff; margin-bottom:12px; }

/* 2-2. 통합 카드 레이아웃 (Sec7) */
.vt-comp-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 24px;
}

.vt-comp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 30px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
}

.vt-comp-card-left {
  border-top: 4px solid var(--comp-color-left);
}

.vt-comp-card-right {
  border-top: 4px solid var(--comp-color-right);
}

.vt-comp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
  margin: 14px 0;
}

.vt-comp-card-title {
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
  min-width: 0;
}

.vt-comp-card-section {
  margin-bottom: 14px;
}

.vt-comp-card-section:last-child {
  margin-bottom: 0;
}

.vt-comp-card-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.vt-comp-divider {
  height: 1px;
  background: #eef2f7;
  margin: 6px 0 14px;
}

.vt-comp-vs {
  display: flex;
  align-items: stretch;
}

.vt-comp-vs-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.vt-comp-vs-inner .vs-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a64f2 0%, #845ef5 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 22px;
  align-items:center; justify-content:center; 
}

.vt-comp-vs-inner {
  gap: 6px;
}

/* Sec7 center label ("공통 격전지") - template uses a plain <div> */
.vt-comp-vs-inner > div:nth-child(2) {
  width: 100%;
  padding: 20px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  box-sizing: border-box;
}

.vt-comp-vs-inner .vt-risk-badge {
  margin-top: 0;
  padding: 5px 10px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
}

@media (max-width: 980px) {
  .vt-comp-cards {
    grid-template-columns: 1fr;
  }
  .vt-comp-vs {
    order: 2;
  }
  .vt-comp-card-left {
    order: 1;
  }
  .vt-comp-card-right {
    order: 3;
  }
}

#vt_comp_intersection {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px;
    align-items: center;
    width: 100%;
    margin-top: 6px;
    padding: 0;
}

#vt_comp_intersection li {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
}

/* Sec7: 핵심 지표 아이콘(이모티콘/FA) 숨김 */
.vt-comp-metrics .vt-sum-icon,
.vt-comp-metrics .vt-sum-icon * {
  display: none !important;
}

#vt_comp_intersection li i {
    color: #64748b;
    margin-right: 8px;
    font-size: 11px;
}

/* Issue tag pills */
.vt-tag-container { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.vt-issue-tag { font-size:12px; font-weight:600; padding:4px 10px; border-radius:999px; border:1px solid #e2e8f0; background:#fff; color:#334155; display:flex; align-items:center; gap:6px; }
.vt-issue-tag i { font-size:12px; color:#94a3b8; }
.pledge_policy-tag { border-color:#bfdbfe; background:var(--comp-color-left-bg); color:#2563eb; }
.tag-right { border-color:#fecdd3; background:var(--comp-color-right-bg); color:#ef4444; }
.vt-intersect-item { font-size:13px; font-weight:600; color:#475569; background:#fff; padding:8px 16px; border-radius:999px; border:1px solid #e2e8f0; display:flex; align-items:center; gap:6px; box-shadow:0 1px 3px rgba(0,0,0,0.04); }

/* 3. 감성 요인 (Drivers) */
.vt-chart-card-wide { min-height:320px; }
.vt-chart-title { font-size:1rem; font-weight:800; margin-bottom:10px; color:#1e293b; display:flex; align-items:center; gap:0.5rem; padding: 10px 0; border-bottom: 1px solid #efefef;}
.vt-chart-wrapper-risk { position:relative; height:200px; width:100%; display:flex; justify-content:center; }
.vt-chart-wrapper-risk-full { height:320px; }
.vt-driver-card { background:#fff; border:1px solid #f1f5f9; border-radius:1rem; padding:20px; box-shadow:0 2px 4px rgba(0,0,0,0.02); }
.vt-driver-title { font-size:14px; font-weight:700; color:#1e293b; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.vt-driver-row { margin-bottom:12px; }
.vt-driver-label { display:flex; justify-content:space-between; font-size:13px; font-weight:600; margin-bottom:6px; }
.vt-driver-bar-bg { width:100%; height:8px; background:#f1f5f9; border-radius:10px; }
.vt-driver-bar { height:100%; border-radius:10px; }
.bar-pos { background:#3b82f6; }
.bar-neg { background:#ef4444; }

/* 4. 요약 카드 (Summary) */
.vt-summary-card { background:#fff; border-radius:1rem; border:1px solid #e2e8f0; padding:0; box-shadow:0 6px 12px rgba(15,23,42,0.08); }
.vt-summary-header { padding:16px; border-bottom:1px solid #e2e8f0; background:#f8fafc; display:flex; justify-content:space-between; align-items:center; }
.vt-summary-badge { font-size:13px; font-weight:600; padding:4px 15px; border-radius:50px; }
.badge-left { background:var(--comp-color-left-bg); color:var(--comp-color-left); border:1px solid var(--comp-color-left);  }
.badge-right { background:var(--comp-color-right-bg); color:var(--comp-color-right); }
.vt-summary-grid-inner { display:grid; grid-template-columns:repeat(2,1fr); gap: 10px;}
.vt-summary-item { padding:20px 10px; border: 1px solid #e6ebf2; display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; background: #f8fafc; border-radius: 12px;}
.vt-sum-icon { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; margin-bottom:4px; }
.icon-bg-green { background:#ecfdf5; color:#059669; }
.icon-bg-blue  { background:#eff6ff; color:#2563eb; }
.icon-bg-orange { background:#fff7ed; color:#ea580c; }
.icon-bg-gray  { background:#f1f5f9; color:#475569; }
.vt-sum-label { font-size:12px; color: #939ca8; font-weight: 500;}
.vt-sum-val { font-size: 17px; font-weight: 600; color: #1e293b; }

.vt-sent-pos { color:#3b82f6; font-weight:900; }
.vt-sent-neg { color:#ef4444; font-weight:900; }


.assoc-table { width:100%; border-collapse:collapse; border:10px solid red;}
.assoc-table th, .assoc-table td { font-size:12px; padding:6px 4px; border-bottom:1px solid #e5e7eb; text-align:left; white-space:nowrap; }
.assoc-table th:nth-child(1), .assoc-table td:nth-child(1) { width:40px; text-align:center; }
.assoc-table th:nth-child(2) { text-align:left; }
.assoc-table th:nth-child(3), .assoc-table td:nth-child(3) { text-align:right; }
.assoc-change { font-weight:700; }
.assoc-up { color:#22c55e; }
.assoc-down { color:#ef4444; }
.assoc-new { color:#6366f1; font-weight:700; }
.assoc-same { color:#94a3b8; }
.mr_assoc-chartbox { width:100%; height:100%; }
.mr_assoc-chartstage { width:100%; height:100%; }

/* 라이징 키워드 / 테이블 */
.vt-rising-wrap { display:flex; flex-wrap:wrap; gap:12px; }
.vt-rising-card { flex:1 1 280px; border:1px solid #e5e7eb; border-radius:12px; padding:14px; background:#f9fafb; }
.vt-rising-label { font-weight:800; color:#6366f1; margin-bottom:6px; }
.vt-rising-title { font-weight:800; font-size:16px; color:#111827; }
.vt-rising-desc { color:#6b7280; font-size:13px; margin-top:6px; line-height:1.5; }
.vt-table-scroll { overflow-x:auto; }
.vt-simple-table { width:100%; border-collapse:collapse; }
.vt-simple-table th, .vt-simple-table td { padding:10px 8px; border-bottom:1px solid #e5e7eb; font-size:13px; }
.vt-simple-table th { background:#f8fafc; color:#475569; font-weight:700; text-align:left; }
.vt-simple-table td { color:#0f172a; }

@media (max-width: 768px) {
  .vt-list-scroll { max-height: 220px; }
  .vt-news-title, .vt-blog-title { font-size: 13px; }
  
}

/* 그래프 컨테이너 강제 고정 */
.vt-keyword-cloud {
  width: 100%;
  height: 360px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

/* 툴팁 스타일 */
.d3-tooltip {
  position: absolute;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 999;
}

@keyframes vtspin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

 .vt-grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
 .vt-grid-1-col { display: grid; grid-template-columns: 1fr; gap: 16px; }

.vt-chart-wrapper,
.vt-chart-wrapper-sm {
  position: relative;
  width: 100%;
}

/* 경쟁 후보 비교 섹션 (sec7) */
.vt-battle-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  gap: 14px;
  margin-top: 12px;
  align-items: stretch;
}

.vt-battle-box,
.vt-battle-center {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 10px 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.vt-battle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.vt-battle-header.right {
  flex-direction: row-reverse;
}

.vt-battle-name {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
}

.vt-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}

.vt-tag-blue { background: #e0e7ff; color: #1d4ed8; }
.vt-tag-orange { background: #ffedd5; color: #c2410c; }

.vt-battle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
}

.vt-battle-list.numbered { list-style: decimal inside; padding-left: 4px; }
.vt-battle-list.align-right { text-align: right; }

.vt-battle-center { text-align: center; position: relative; overflow: hidden; }

.vt-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 6px;
}

.vt-grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vt-chart-row { align-items: stretch; }
.vt-chart-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 30px;
  box-sizing: border-box;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vt-chart-wrapper-risk { position: relative; width: 100%; height: 200px; }
.vt-chart-wrapper-trend { position: relative; width: 100%; height: 200px; }

.vt-chart-wrapper-trend-lg {
  height: 420px;
}

.vt-chart-wrapper-trend #vt_comp_trend_chart {
  display: block;
  margin-top: 48px;
}

.vl-tooltip-container {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  margin-left: 6px;
}

.vl-tooltip-container .vl-btn-tooltip {
  color: #8e68e8;
  font-size: 20px;
  cursor: default;
  font-weight: 500;
}

.vl-tooltip-container .vl-tooltip-box {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  display: none;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 340px;
  background-color: #2e1a5e;
  color: #ffffff;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.vl-tooltip-container:hover .vl-tooltip-box {
  display: block;
  opacity: 1;
  visibility: visible;
}

.vl-tooltip-container .vl-tooltip-arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #2e1a5e;
  transform: translateX(-50%);
}

.vt-sentiment-drivers .vt-driver-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.vt-driver-title { font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.vt-driver-item { font-size: 12px; color: #475569; margin-bottom: 4px; }

.vt-summary-grid { align-items: stretch; }
.vt-summary-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.vt-summary-name { font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.vt-summary-name.right { text-align: right; }
.vt-summary-line { font-size: 12px; color: #475569; margin-bottom: 4px; display: flex; gap: 6px; }
.vt-summary-val { font-weight: 700; color: #0f172a; }
.vt-summary-line.strong { font-weight: 700; color: #0f172a; }

@media (max-width: 1024px) {
  .vt-battle-layout { grid-template-columns: 1fr; }
  .vt-grid-3-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .vt-chart-wrapper-risk,
  .vt-chart-wrapper-trend { height: 180px; }
}

.vt-chart-compact { min-height: 160px; }
.vt-chart-tall { min-height: 160px; }

.vt-chart-wrapper canvas,
.vt-chart-wrapper-sm canvas {
  width: 100% !important;
  height: 100% !important;
}

 .vt-weekly-party-banner {
   margin: 10px 0 8px;
   padding: 10px 12px;
   border: 1px solid #e5e7eb;
   background: #ffffff;
   border-radius: 6px;
   font-family: "Noto Sans KR", Pretendard, system-ui, -apple-system, sans-serif;
 }

 .vt-weekly-party-banner__row {
   display: flex;
   align-items: center;
   gap: 8px;
   color: #0f172a;
   font-size: 13px;
 }

 .vt-weekly-party-banner__dot {
   width: 6px;
   height: 6px;
   border-radius: 999px;
   display: inline-block;
 }

 .vt-weekly-party-banner__name {
   font-weight: 800;
 }

 .vt-weekly-party-banner__pct {
   font-weight: 900;
   color: #0f172a;
 }

 .vt-weekly-party-banner__delta {
   margin-left: auto;
   font-weight: 700;
   font-size: 12px;
   color: #64748b;
 }

 .vt-weekly-party-banner__delta.up { color: #2563eb; }
.vt-weekly-party-banner__delta.down { color: #ef4444; }
.vt-weekly-party-banner__delta.same { color: #94a3b8; }

/* 주간여론 레전드 (가로 배치) */
.vt-weekly-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: #0f172a;
  justify-content: center;
}
.vt-weekly-legend.spread { justify-content: center; }
.vt-legend-unit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.vt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.bg-blue { background:#38b6ff; }
.bg-red { background:#f8493c; }
.bg-gray { background:#cbd5e1; }
.t-blue { color:#1d4ed8; }
.t-red { color:#ef4444; }
.t-gray { color:#475569; }

/* Header and hero */
.nvote-header-visible { display:block; }
.ca-menu-active { font-size:20px; padding:20px 15px; }
.vt-hero-card { border-radius:8px; background:#301068; }
.analysis-header-tight { margin-bottom:0; }
.vt-hero-title { color:#fff; }

/* Text helpers */
.vt-text-12 { font-size:12px; }
.vt-text-sub { color:var(--vt-sub); }
.vt-text-strong { font-weight:700; }
.vt-text-right { text-align:right; }

/* Sidebar / tabs / profile */
.sidebar-tab-wrap { padding:0 16px; }
.sidebar-tab-row { display:flex; gap:8px; }
.sidebar-tab-btn { flex:1; border:1px solid #d8d6ff; color:#737373; font-weight:700; background:#fff; padding:10px 12px; border-radius:8px; }
.sidebar-tab-btn.active { color:#5b57ff; }
.nav-card-wrap { padding:16px 16px 12px; }
.nav-card { border:1px solid #ede9f9; border-radius:12px; background:#fff; padding:6px 0; }
.nav-card-header { padding:10px 16px; font-weight:800; color:#4c4f70; font-size:13px; }
.nav-submenu { padding:0 6px 8px; }
.nav-link-row { display:flex; align-items:center; gap:8px; padding:10px 10px; color:#6b7280; font-weight:600; }
.profile-card-box { border:1px solid #ede9f9; border-radius:12px; padding:12px 12px 10px; background:#fff; margin-bottom:14px; }
.profile-card-inline { display:flex; gap:12px; align-items:center; }
.profile-img-lg { width:56px; height:56px; border-radius:50%; object-fit:cover; }
.profile-meta-muted { font-size:12px; color:#8c8da1; }
.profile-meta-title { font-size:15px; font-weight:800; color:#1f2937; }
.share-btn { width:100%; margin-top:12px; background:#7b61ff; color:#fff; border:none; border-radius:8px; height:42px; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; gap:6px; }
.period-field { margin-bottom:14px; }
.period-label { display:block; font-size:12px; color:#6b7280; margin-bottom:6px; }
.period-select { width:100%; border:1px solid #e5e7eb; border-radius:8px; padding:10px 12px; font-size:13px; color:#111827; }
.bottom-cta { padding:12px 0 4px; }
.mr-profile-cta { width:100%; margin-bottom:8px; border:1px solid #e4ddff; color:#5b57ff; background:#f7f5ff; border-radius:10px; padding:10px 12px; font-weight:700; }
.vt-center-block { text-align:center; padding:8px 0 2px; }
.vt-meta-muted { font-size:13px; color:#6b7280; margin-bottom:6px; }
.vt-meta-strong { font-size:22px; font-weight:800; }
.vt-meta-strong-sm { font-size:18px; font-weight:800; }
.vt-meta-sub { margin-top:6px; font-size:13px; color:#475569; }
.vt-chart-min-160 { min-height:160px; }
.vt-chart-h220 { height:220px; }
.vt-chart-h240 { height:240px; }
.vt-chart-h260 { height:260px; }
.vt-chart-h280 { height:280px; }
.vt-chart-h300 { height:300px; }
.vt-chart-max-220 { position:relative; max-height:220px; }
.vt-legend-center { text-align:center; font-size:14px; font-weight:700; color:#0f172a; margin-top:8px; }
.vt-tab-fill { flex:1; overflow:hidden; }
.vt-mt-12 { margin-top:12px; }
.vt-mt-16 { margin-top:16px; }
.gap-16 { gap:16px; }
.vt-flex-row { display:flex; }
.align-stretch { align-items:stretch; }
.pad-20 { padding:20px; }
.vt-chart-h160 { height:160px; }
.legend-compact { display:flex; gap:12px; justify-content:center; font-size:12px; color:#475569; margin-top:6px; }
.legend-pill { display:flex; align-items:center; gap:6px; }
.legend-dot { display:inline-block; width:10px; height:10px; border-radius:3px; }
.vt-badge-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; align-items:center; font-size:13px; color:#475569; }
.vt-badge-label { font-weight:700; color:#6b7280; }
.vt-badge-chip { display:inline-flex; align-items:center; gap:6px; background:#f4f4fb; border:1px solid #e4ddff; color:#5b57ff; padding:6px 10px; border-radius:999px; }
.vt-legend-row { display:flex; justify-content:center; align-items:center; gap:14px; font-size:13px; color:#334155; margin-top:8px; }
.vt-legend-item { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.vt-dot { display:inline-block; width:10px; height:10px; border-radius:50%; }
.vt-badge-pill { display:inline-flex; align-items:center; gap:6px; background:#f6efff; border:1px solid #dec7ff; color:#8b5cf6; padding:9px 14px; border-radius:999px; font-weight:700; }
.vt-badge-pill strong { color:#8b5cf6; font-weight:800; }
.vt-pill-label { color:#1f2937; font-weight:700; }
.vt-mb-12 { margin-bottom:12px; }

/* Keyword/association */
.grid-gap-16 { gap:16px; }
.vt-keyword-header { display:flex; align-items:center; gap:6px; }
.vt-mt-16 { margin-top:16px; }
.vt-keyword-card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:20px; box-shadow:0 12px 30px rgba(15,23,42,0.05); }
.vt-keyword-card .vt-sub-title { margin-bottom:12px; display:block; }
.vt-keyword-layout { display:flex; gap:24px; align-items:stretch; }
.vt-keyword-panel { flex:1; display:flex; flex-direction:column; }
.vt-keyword-panel-graph { min-height:360px; }
.vt-keyword-panel-rank { min-height:360px; }
.vt-keyword-panel-rank .vt-keyword-nav-wrapper { flex:1; display:flex; flex-direction:column; gap:12px; }
.vt-keyword-panel-rank #assocKeywordTables { flex:1; overflow:auto; min-height:0; }
.vt-keyword-panel .vt-keyword-cloud { flex:1; }
.vt-keyword-panel-rank .vt-keyword-nav-wrapper { align-items:stretch; }
.vt-keyword-nav-wrapper { position:relative; height:100%; }
.vt-keyword-nav-wrapper .vt-nav-arrow { position:absolute; top:50%; transform:translateY(-50%); border:none; background:#fff; width:36px; height:36px; box-shadow:0 2px 6px rgba(15,23,42,0.15); border-radius:999px; }
.vt-keyword-nav-wrapper .vt-nav-arrow.left { left:8px; }
.vt-keyword-nav-wrapper .vt-nav-arrow.right { right:8px; }
.vt-keyword-panel-rank .vt-keyword_nav-wrapper { padding:0; }

/* Sentiment */
.vt-wordmap-legend { margin-top:10px; display:flex; gap:16px; justify-content:center; font-size:13px; color:#0f172a; }
.vt-cloud-tall { width:100%; height:460px; background:#fff; border-radius:12px; position:relative; overflow:hidden; }
.vt-table-min-160 { min-height:160px; }
.vt-empty-muted { padding:12px; color:#94a3b8; font-size:13px; }

/* YouTube */
.vt-chart-h220 { height:220px; }

/* Competitor */
.vt-battle-box-gradient-l { background:linear-gradient(180deg, #f3e8ff 0%, #ede9fe 100%); border:1px solid #ddd6fe; }
.vt-battle-box-gradient-c { background:linear-gradient(180deg, #fff7ed 0%, #ffe4d4 100%); border:1px solid #fed7aa; }
.vt-battle-box-gradient-r { background:linear-gradient(180deg, #ecfdf3 0%, #d1fae5 100%); border:1px solid #bbf7d0; }
.vt-summary-muted { font-size:12px; color:#94a3b8; margin-bottom:4px; }
.vt-summary-muted-left { text-align:left; }
.vt-summary-muted-right { text-align:left; }
.vt-summary-strong { margin-top:16px; }
.vt-chart-card-gap { margin-top:16px; }
.vt-chart-card-gap-sm { margin-top:14px; }
.vt-text-center { text-align:center; }

/* Inline style replacements for testmr.tpl (sec0~sec7) */
.vt-kpi-label { font-size:12px; color:var(--vt-sub); }
.vt-kpi-primary { color:var(--vt-primary); }
.vt-kpi-danger { color:#ef4444; }
.vt-kpi-youtube { color:#ff0000; }
.vt-legend-center { text-align:center; font-size:14px; font-weight:700; color:#0f172a; margin-top:8px; }
.vt-chart-min-160 { min-height:160px; }
.vt-chart-max-220 { position:relative; max-height:220px; }
.vt-tab-fill { flex:1; overflow:hidden; }
.vt-wordmap-legend { margin-top:10px; display:flex; gap:16px; justify-content:center; font-size:13px; color:#0f172a; }
.vt-cloud-tall { width:100%; height:460px; background:#fff; border-radius:12px; position:relative; overflow:hidden; }
.vt-span-full { grid-column: 1 / -1; }
.vt-chart-h220 { height:220px; }
.vt-chart-h240 { height:240px; }
.vt-chart-h260 { height:260px; }
.vt-chart-h280 { height:280px; }
.vt-chart-h300 { height:300px; }
.vt-mt-16 { margin-top:16px; }
.legend-box-sum { background:#d5d0db; }
.legend-line-news { border-color:#f77e09; }
.legend-line-blog { border-color:#0fb63e; }
.legend-line-insta { border-color:#dc0ec6; }
.legend-line-commu { border-color:#845fe3; }

/* Tab fill containers */
.vt-tab-content-fill { flex:1; overflow:hidden; }

/* Sentiment keyword table placeholders */
.vt-table-min-160 { min-height:160px; }
.vt-empty-muted { padding:12px; color:#94a3b8; font-size:13px; }

/* YouTube and charts */
.vt-icon-youtube { color:#f80133; }

/* Competitor cards */
.cmp-sentiment-bars { display:flex; flex-direction:column; gap:12px; padding:6px 4px; }
.cmp-sent-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.cmp-sent-name-blue { font-weight:700; color:#1d4ed8; }
.cmp-sent-name-gray { font-weight:700; color:#475569; }
.cmp-sent-label { font-size:12px; color:#475569; }
.cmp-sent-bar { height:14px; background:#e2e8f0; border-radius:999px; overflow:hidden; }
.cmp-sent-note { font-size:12px; color:#94a3b8; margin-top:4px; }

.cmp-desc { margin:8px 0 16px; color:#475569; font-size:13px; }
.cmp-grid { display:grid; grid-template-columns: 1fr 1fr 1fr; gap:14px; }
.cmp-card-blue { border-radius:14px; padding:14px 16px; background:linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%); border:1px solid #d6dcf5; box-shadow:0 6px 18px rgba(59,130,246,0.08); }
.cmp-card-gray { border-radius:14px; padding:16px; background:linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); border:1px solid #cbd5e1; box-shadow:0 6px 18px rgba(15,23,42,0.08); position:relative; }
.cmp-card-orange { border-radius:14px; padding:14px 16px; background:linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%); border:1px solid #fed7aa; box-shadow:0 6px 18px rgba(251,146,60,0.12); }
.cmp-card-label { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.cmp-chip-blue { background:#1d4ed8; color:white; font-size:11px; padding:2px 8px; border-radius:999px; }
.cmp-chip-orange { background:#fb923c; color:white; font-size:11px; padding:2px 8px; border-radius:999px; }
.cmp-card-title-blue { font-weight:800; color:#1d4ed8; font-size:14px; }
.cmp-card-title-orange { font-weight:800; color:#c2410c; font-size:14px; text-align:right; flex:1; }
.cmp-hot-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:#0f172a; color:white; font-size:11px; padding:4px 10px; border-radius:999px; letter-spacing:0.4px; }
.cmp-hot-header { display:flex; align-items:center; gap:6px; margin-top:6px; margin-bottom:10px; justify-content:center; }
.cmp-list-gap { gap:4px; }
.cmp-list-gap-wide { gap:6px; }
.cmp-list-right { text-align:right; }

.cmp-factor-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cmp-summary-card-flex { border:1px solid #e2e8f0; border-radius:12px; padding:14px; background:#ffffff; box-shadow:0 4px 12px rgba(15,23,42,0.06); display:flex; justify-content:space-between; }
.cmp-summary-card-flat { border:1px solid #e2e8f0; border-radius:12px; padding:14px; background:#ffffff; box-shadow:0 4px 12px rgba(15,23,42,0.06); }
.cmp-summary-title { font-weight:800; color:#0f172a; margin-bottom:6px; }
.cmp-summary-text { font-size:12px; color:#475569; margin-bottom:4px; }
.cmp-summary-em { font-weight:700; color:#0f172a; }
.cmp-summary-number { font-weight:800; font-size:15px; color:#0f172a; }

.vt-grid-gap-12 { gap:12px; }

 @media (max-width: 768px) {
   .vt-grid-2-col { grid-template-columns: 1fr; }
   .vt-keyword-layout { flex-direction:column; }
   .vt-keyword-nav-wrapper .vt-nav-arrow { display:none; }
}

 /* 유튜브 분석 섹션 - 스타일 완전 분리 버전 */
 .wl_dashboard { width: 100%; background: #fff; border-radius: 24px; padding: 40px; border: 1px solid #e2e8f0; margin-top: 24px; box-sizing: border-box; }
 
 /* 온도계 디자인부 */
 .wl_yt_top_row { display:grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; margin-bottom: 28px; }
 .wl_thermo-header { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
 .wl_thermo_wrap { display: flex; flex-direction: column; align-items: center; }
 .wl_glass { width: 34px; height: 140px; background: #f1f5f9; border: 3px solid #1e293b; border-radius: 18px 18px 0 0; position: relative; border-bottom: none; overflow: hidden; }
 .wl_mercury { position: absolute; bottom: 0; width: 100%; transition: height 1.5s ease-out; height: var(--h); background: var(--c); }
 .wl_bulb { width: 56px; height: 56px; border: 3px solid #1e293b; border-radius: 50%; margin-top: -12px; background: var(--c); box-shadow: inset -5px -5px 10px rgba(0,0,0,0.1); position: relative; z-index: 1; }
 
 /* 점수 및 텍스트 */
 .wl_score_box { text-align: left; }
 .wl_score_label { font-size: 14px; color: #64748b; font-weight: 700; margin-bottom: 6px; }
 .wl_score_val { font-size: 56px; font-weight: 900; line-height: 1; color: var(--c); }
 
 /* 리스트 레이아웃 */
 .wl_columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
 .wl_col_card { border: 1px solid #e2e8f0; border-radius: 20px; padding: 25px; background: #fff; display: flex; flex-direction: column; min-height: 500px; }
 .wl_col_card h4 { font-size: 18px; font-weight: 800; margin: 0 0 15px 0; display: flex; align-items: center; gap: 8px; }
 .wl_list_container { flex: 1; }
 
 /* 리스트 내 아이템 디자인 */
 .wl_yt_v_item { padding: 16px 0; border-bottom: 1px solid #f1f5f9; }
 .wl_yt_v_item:last-child { border-bottom: none; }
 .wl_yt_v_link { text-decoration: none; color: #1e293b; font-weight: 700; display: block; font-size: 15px; margin-bottom: 6px; transition: color 0.2s; }
 .wl_yt_v_link:hover { color: #3b82f6; text-decoration: underline; }
 .wl_yt_v_comment { font-size: 13px; color: #64748b; line-height: 1.6; }
 
 /* 페이징 */
 .wl_pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #f1f5f9; }
 .wl_page_btn { padding: 8px 20px; border: none; background: #1e293b; color: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; transition: 0.2s; }
 .wl_page_btn:hover:not(:disabled) { background: #334155; transform: translateY(-1px); }
 .wl_page_btn:disabled { background: #cbd5e1; cursor: default; }

 .pos_color { color:#10b981; }
 .neg_color { color:#ef4444; }
 
 @media (max-width: 1024px) { .wl_columns { grid-template-columns: 1fr; } }

 .wl_report_box { 
     background: #f8fafc; 
     padding: 30px; 
     border-radius: 20px; 
     border-left: 8px solid #1e293b; 
     margin-bottom: 35px; 
     line-height: 1.8; 
     font-size: 16px; 
     box-shadow: 0 4px 6px rgba(0,0,0,0.02);
 }
 .wl_report_title { 
     display: block; 
     font-size: 18px; 
     font-weight: 800; 
     color: #1e293b; 
     margin-bottom: 12px; 
     display: flex;
     align-items: center;
     gap: 8px;
 }
 .wl_report_text { 
     color: #334155; 
     white-space: pre-line; 
 }

 @media (max-width: 1024px) {
   .wl_yt_top_row { grid-template-columns: 1fr; }
}

/* --- YouTube report hybrid layout (merged from youtube_report.css) --- */
.wl_report_container {
    width: 100% !important;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.wl_hybrid_header {
    display: flex;
    align-items: center;
    gap: 35px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 18px;
    border-left: 6px solid #1e293b;
    margin-bottom: 30px;
}

.wl_mini_thermo_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.wl_mini_tube {
    width: 20px;
    height: 100px;
    background: #ffffff;
    border: 3px solid #1e293b;
    border-radius: 10px 10px 0 0;
    position: relative;
    border-bottom: none;
    overflow: hidden;
}
.wl_mercury_fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: var(--temp-h);
    background: var(--temp-c);
    transition: height 1.5s ease-in-out;
}
.wl_mini_bulb {
    width: 40px;
    height: 40px;
    background: var(--temp-c);
    border: 3px solid #1e293b;
    border-radius: 50%;
    margin-top: -8px;
    box-shadow: inset -3px -3px 6px rgba(0,0,0,0.1);
}
.wl_mini_score {
    font-size: 28px;
    font-weight: 900;
    color: #1e293b;
    margin-top: 5px;
}

.wl_hybrid_report_text { flex: 1; }
.wl_report_tag {
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}
.wl_report_main_body {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    margin: 0;
    white-space: pre-line;
}

.wl_list_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wl_list_card {
    background: #fff; border: 1px solid #f1f5f9; border-radius: 16px;
    padding: 20px; display: flex; flex-direction: column; min-height: 450px;
}
.wl_list_card h4 { font-size: 17px; font-weight: 800; margin: 0 0 12px 0; }
.wl_item_box { flex: 1; }
.wl_video_row { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.wl_video_link { text-decoration: none; color: #1e293b; font-weight: 700; font-size: 14px; display: block; margin-bottom: 4px; }
.wl_video_summary { font-size: 12.5px; color: #64748b; line-height: 1.4; }

.wl_pager_nav { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.wl_pager_btn { padding: 6px 14px; border: none; background: #1e293b; color: #fff; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 700; }
.wl_pager_btn:disabled { background: #cbd5e1; }

@media (max-width: 1024px) {
    .wl_hybrid_header { flex-direction: column; text-align: center; }
    .wl_list_grid { grid-template-columns: 1fr; }
}
/* 연관어 */
/* 기찬 전용: 긍부정 구조를 본딴 연관어 분석 스타일 */
.kmr-grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}

.kmr-sub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: none !important; /* 그림자 제거 */
    display: flex;
    flex-direction: column;
}

.kmr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.kmr-chart-box {
    width: 100%;
    min-height: 400px;
    flex: 1;
}

/* 모바일 대응 (세로 배치) */
@media (max-width: 1024px) {
    .kmr-grid-2-col {
        grid-template-columns: 1fr;
    }
}