/* Theme Influence / Channel Graph page styles */

/* Toolbar title */
.ti-toolbar-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Open profile button in details panel */
.ti-details-open-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  margin-top: 4px;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ti-details-open-btn:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
}


.theme-influence-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - 40px);
  gap: 10px;
  padding: 14px 20px;
  /* Ensure child borders are visible */
  overflow: visible;
}

/* Toolbar */
.ti-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  flex-shrink: 0;
}

.ti-toolbar-title {
  font-size: 0.875rem !important;
}

.ti-toolbar #ti-search {
  flex: 1;
  max-width: 300px;
  padding: 6px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  transition: border-color var(--transition-fast);
}

.ti-toolbar #ti-search:focus {
  outline: none;
  border-color: var(--munchkin-lime);
}

.ti-toolbar #ti-search::placeholder {
  color: var(--text-muted);
}

.ti-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.ti-local-channel {
  font-size: 0.875rem;
  color: var(--munchkin-lime);
  font-weight: 500;
  padding: 0 8px;
  white-space: nowrap;
}

.ti-local-channel.hidden {
  display: none;
}

.ti-mode {
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ti-mode:hover {
  color: var(--text-primary);
  background: rgba(155, 138, 245, 0.05);
}

.ti-mode.active {
  background: var(--munchkin-lime);
  color: #000;
  font-weight: 600;
}

/* Reset camera button */
.ti-reset-btn {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ti-reset-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--munchkin-lime);
}

.ti-reset-btn:active {
  transform: scale(0.98);
}

/* K-Granularity toggle */
.ti-k-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  white-space: nowrap;
}

.ti-k-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.ti-k-buttons {
  display: flex;
  gap: 2px;
}

.ti-k-btn {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-mono, monospace);
}

.ti-k-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.ti-k-btn.active {
  background: rgba(155, 138, 245, 0.15);
  color: var(--munchkin-lime);
  border-color: rgba(155, 138, 245, 0.3);
}

/* Back to Channels button */
.ti-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(155, 138, 245, 0.08);
  border: 1px solid var(--munchkin-lime);
  border-radius: 6px;
  color: var(--munchkin-lime);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ti-back-btn:hover {
  background: rgba(155, 138, 245, 0.2);
  transform: translateX(-2px);
}

.ti-back-btn:active {
  transform: scale(0.98);
}

.ti-back-btn.hidden {
  display: none;
}

/* Navigation level indicator */
.ti-nav-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}

.ti-nav-level {
  color: var(--text-secondary);
  font-weight: 500;
}

.ti-nav-channel {
  color: var(--munchkin-lime);
  font-weight: 600;
}

.ti-nav-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--munchkin-lime);
}

/* Mode hint text */
.ti-mode-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  max-width: 400px;
  line-height: 1.4;
}

.ti-mode-hint.hidden {
  display: none;
}

.ti-mode-hint strong {
  color: var(--munchkin-lime);
  font-weight: 600;
  font-style: normal;
}

/* Breadcrumb Navigation */
.ti-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1rem;
  padding: 6px 12px;
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.ti-crumb {
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.ti-crumb.clickable {
  cursor: pointer;
}

.ti-crumb.clickable:hover {
  color: var(--text-primary);
}

.ti-crumb.active {
  color: var(--munchkin-lime);
  font-weight: 600;
}

.ti-crumb-sep {
  color: var(--text-muted);
  margin: 0 8px;
  font-size: 0.875rem;
}

/* Theme Network Button */
.ti-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 6px;
  color: #a855f7;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ti-action-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
}

.ti-action-btn:active {
  transform: scale(0.98);
}

.ti-action-btn.active {
  background: #a855f7;
  color: #fff;
  border-color: #a855f7;
}

.ti-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Theme Bridges Toggle */
.ti-bridges-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ti-bridges-toggle:hover {
  border-color: var(--munchkin-lime);
}

.ti-bridges-toggle.hidden {
  display: none;
}

.ti-bridges-toggle input[type="checkbox"] {
  display: none;
}

.ti-bridges-slider {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--bg-secondary);
  border-radius: 20px;
  transition: background var(--transition-fast);
}

.ti-bridges-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.ti-bridges-toggle input:checked + .ti-bridges-slider {
  background: rgba(155, 138, 245, 0.3);
}

.ti-bridges-toggle input:checked + .ti-bridges-slider::before {
  background: var(--munchkin-lime);
  transform: translateX(16px);
}

.ti-bridges-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.ti-threshold {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.ti-threshold.hidden {
  display: none;
}

.ti-threshold-label-left,
.ti-threshold-label-right {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ti-threshold-badge {
  padding: 4px 10px;
  background: rgba(155, 138, 245, 0.15);
  color: var(--munchkin-lime);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

.ti-threshold input[type="range"] {
  width: 120px;
  height: 6px;
  background: linear-gradient(to right, var(--munchkin-lime), var(--bg-secondary));
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ti-threshold input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--munchkin-lime);
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(155, 138, 245, 0.3);
}

.ti-threshold input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.ti-threshold input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--munchkin-lime);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(155, 138, 245, 0.3);
}

.ti-threshold input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* Body Layout */
.ti-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  min-height: 0;
  /* Allow content to show borders properly */
  overflow: visible;
}

.ti-canvas-wrap {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(80, 80, 80, 0.8);
  border-radius: 12px;
  overflow: visible; /* allow tooltip to extend beyond edges */
  min-height: 500px;
  /* Use flex-friendly height instead of explicit calc */
  height: 100%;
  max-height: calc(100vh - var(--header-height) - 180px);
}

.ti-sigma-container {
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  border-radius: 12px;
}

/* Node profile image overlay */
.ti-node-img {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.ti-node-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Channel Legend */
.ti-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  backdrop-filter: blur(8px);
  min-width: 140px;
}

.ti-legend-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.ti-legend-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ti-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ti-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ti-legend-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Node type legend (core vs neighbor) */
.ti-legend-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.ti-legend-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ti-legend-node-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ti-legend-node-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ti-legend-node-icon.core {
  background: var(--munchkin-lime);
  box-shadow: 0 0 0 3px rgba(155, 138, 245, 0.3);
}

.ti-legend-node-icon.neighbor {
  background: rgba(150, 150, 150, 0.6);
  opacity: 0.7;
}

/* Tooltip */
.ti-tooltip {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 12px 16px;
  pointer-events: none;
  z-index: 1000;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}

.ti-tooltip.hidden {
  display: none;
}

.ti-tooltip strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.ti-tooltip-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 4px;
}

.ti-tooltip-label {
  color: var(--text-muted);
}

.ti-tooltip-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Details Panel */
.ti-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  max-height: calc(100vh - var(--header-height) - 180px);
}

.ti-details::-webkit-scrollbar { width: 4px; }
.ti-details::-webkit-scrollbar-track { background: transparent; }
.ti-details::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 4px; }

.ti-details-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  padding: 48px 16px;
  gap: 8px;
}

.ti-details-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
  margin-bottom: 8px;
}

/* ---- Niche Overview Panel ---- */
.ti-niche-panel {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.ti-np-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-align: center;
}

.ti-np-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ti-np-stat {
  flex: 1 1 0;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  overflow: hidden;
}

.ti-np-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.ti-np-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.ti-np-stat--power .ti-np-stat-label {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}

.ti-np-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ti-np-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.ti-np-stat-stars {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

/* Shared star classes */
.ti-star {
  display: inline-block;
  width: 1em;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
}

.ti-star--empty {
  color: var(--border);
  opacity: 0.5;
}

.ti-star--half {
  overflow: hidden;
  width: 0.55em;
}

/* Legacy alias */
.ti-half-star {
  display: inline-block;
  overflow: hidden;
  width: 0.55em;
}

.ti-np-power {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ti-np-power-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.ti-np-power-label {
  color: var(--text-secondary);
  font-weight: 600;
  width: 72px;
  flex-shrink: 0;
}

.ti-np-power-stars {
  font-size: 13px;
  letter-spacing: 1px;
  flex: 1;
}

.ti-np-power-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  width: 30px;
  text-align: right;
}

.ti-np-movers {
  margin-top: 4px;
}

.ti-np-movers-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.ti-np-mover {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 0;
}

.ti-np-mover-arrow {
  font-size: 9px;
  flex-shrink: 0;
}

.ti-np-mover.rising .ti-np-mover-arrow { color: var(--sweet); }
.ti-np-mover.falling .ti-np-mover-arrow { color: var(--miss); }

.ti-np-mover-name {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ti-np-mover-count {
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
}

/* ---- Niche CTA (bigger hint + button) ---- */
.ti-niche-cta {
  text-align: center;
  padding: 12px 16px 4px;
}

.ti-niche-cta-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ti-cluster-overview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ti-cluster-overview-btn:hover {
  background: var(--bg-hover, rgba(255,255,255,0.06));
  border-color: var(--text-muted);
}

/* ---- Details Panel Nav Bar ---- */
.ti-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 14px;
  margin-bottom: 2px;
}

.ti-nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ti-nav-back-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
}

.ti-nav-back-btn:active {
  transform: scale(0.97);
}

.ti-nav-back-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ---- All-Clusters Comparison View ---- */
.ti-back-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.ti-back-link:hover {
  color: var(--text-primary);
}

.ti-all-clusters-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-align: center;
}

.ti-cluster-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ti-cluster-card:hover {
  border-color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ti-cluster-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ti-cluster-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ti-cluster-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ti-cluster-card-diag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

.ti-cluster-card-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1;
}

.ti-cluster-card-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ti-cluster-card-narrative {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 6px;
}

.ti-cluster-card-standouts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.ti-cluster-card-so {
  font-size: 11px;
  font-weight: 600;
}

.ti-cluster-standout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}

.ti-cluster-standout-row + .ti-cluster-standout-row {
  border-top: 1px solid rgba(255, 255, 255, .03);
}

.ti-cluster-standout-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ti-cluster-standout-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Cluster Cards Panel (default state) ---- */
.ti-cluster-panel {
  padding: 20px 16px;
}

.ti-cp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ti-cp-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.ti-cp-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ti-cp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s ease;
  border-left: 3px solid var(--cluster-color, var(--border));
}

.ti-cp-card:hover {
  border-color: var(--cluster-color, var(--accent));
  background: var(--bg-elevated);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ti-cp-card--active {
  border-color: var(--cluster-color, var(--accent));
  background: var(--bg-elevated);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cluster-color, var(--accent)) 30%, transparent);
}

.ti-cp-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ti-cp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ti-cp-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.ti-cp-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(155, 138, 245, 0.08);
  color: var(--text-secondary);
  text-transform: uppercase;
}

.ti-cp-diag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

/* ---- New Detail Header ---- */
.tid-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tid-avatar-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--ring-color), transparent 70%);
  margin-bottom: 12px;
}

.tid-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tid-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tid-avatar-initials {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-muted);
}

.tid-channel-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.tid-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.tid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-align: center;
  color: var(--badge-color, var(--accent));
  background: color-mix(in srgb, var(--badge-color, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color, var(--accent)) 25%, transparent);
}

/* ---- Stats Grid ---- */
.tid-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.tid-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tid-stat-card--split {
  flex-direction: row;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.tid-stat-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  gap: 2px;
}

.tid-stat-divider {
  width: 1px;
  align-self: stretch;
  margin: 8px 0;
  background: var(--border);
}

.tid-stat-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.tid-stat-unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tid-stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---- Sections ---- */
.tid-section {
  margin-bottom: 20px;
}

.tid-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tid-section-count {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--border);
  border-radius: 10px;
  padding: 1px 7px;
}

/* ---- Connection Cards ---- */
.tid-connections {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tid-conn-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.tid-conn-card:hover {
  background: var(--bg-elevated);
}

.tid-conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tid-conn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tid-conn-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tid-conn-bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.tid-conn-bar-fill {
  height: 100%;
  border-radius: 2px;
  opacity: 0.6;
  transition: width 0.3s ease;
}

.tid-conn-pct {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.ti-connection-weight {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.ti-connection-weight.high {
  color: var(--munchkin-lime);
}

.ti-connection-weight.med {
  color: var(--purple-400);
}

.ti-connection-weight.low {
  color: var(--text-muted);
}

/* Connection strength labels */
.ti-connection-strength {
  font-size: 0.875rem;
  margin-top: 4px;
  font-weight: 500;
}

.ti-strength-very-strong {
  color: var(--munchkin-lime);
}

.ti-strength-strong {
  color: #4ade80; /* green-400 */
}

.ti-strength-medium {
  color: #fbbf24; /* amber-400 */
}

.ti-strength-weak {
  color: #f97316; /* orange-500 */
}

.ti-strength-very-weak {
  color: var(--text-muted);
}

/* Search Suggestions */
.ti-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.ti-search-suggestion {
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-subtle);
}

.ti-search-suggestion:last-child {
  border-bottom: none;
}

.ti-search-suggestion:hover {
  background: rgba(155, 138, 245, 0.05);
}

.ti-search-suggestion-name {
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.ti-search-suggestion-type {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
}

/* Responsive */

/* Large laptops */
@media (max-width: 1440px) {
  .ti-body {
    grid-template-columns: 1fr 320px;
    gap: 16px;
  }

  .ti-toolbar {
    padding: 12px 16px;
    gap: 12px;
  }

  .ti-toolbar #ti-search {
    max-width: 240px;
  }

  .ti-mode {
    padding: 6px 10px;
    font-size: 0.875rem;
  }

  .ti-threshold {
    padding: 6px 10px;
  }

  .ti-threshold input[type="range"] {
    width: 100px;
  }

  .ti-mode-hint {
    font-size: 0.8125rem;
    max-width: 300px;
  }
}

/* Medium laptops */
@media (max-width: 1366px) {
  .ti-body {
    grid-template-columns: 1fr 280px;
  }

  .ti-toolbar #ti-search {
    max-width: 200px;
    padding: 8px 12px;
    font-size: 1rem;
  }

  .ti-mode-hint {
    max-width: 250px;
  }
}

@media (max-width: 1280px) {
  .ti-body {
    grid-template-columns: 1fr 260px;
  }

  .ti-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ti-threshold {
    margin-left: 0;
    order: 1;
    flex: 1 1 auto;
    justify-content: center;
  }

  .ti-toggle {
    order: 0;
  }

  .ti-mode-hint {
    order: 2;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .theme-influence-layout {
    height: auto;
  }

  .ti-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ti-canvas-wrap {
    min-height: 400px;
    max-height: 60vh;
  }

  .ti-details {
    min-height: 400px;
    max-height: none;
  }
}

/* Cluster Legend Styles */
.ti-cluster-legend-item {
  cursor: default;
}

.ti-cluster-dot {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Cluster Disclaimer Banner */
.ti-cluster-disclaimer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.ti-disclaimer-icon {
  flex-shrink: 0;
  font-size: 1.125rem;
}

.ti-disclaimer-text {
  color: var(--text-secondary);
  font-style: italic;
}

/* Move legend to top-right for cluster view */
.ti-legend {
  transition: all 0.3s ease;
}

/* When showing cluster legend, position in top-right */
.ti-legend:has(.ti-cluster-legend-item) {
  bottom: auto;
  top: 16px;
  left: auto;
  right: 16px;
  min-width: 180px;
}

/* Cluster legend item styling */
.ti-cluster-legend-item {
  transition: background .15s, box-shadow .15s;
  padding: 4px 6px;
  border-radius: 6px;
  margin: -4px -6px;
}

.ti-cluster-legend-item:hover {
  background: rgba(255,255,255,.05);
}

.ti-cluster-legend--active {
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

.ti-cluster-legend-item .ti-legend-name {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}

.ti-legend-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  padding: 1px 5px;
  border-radius: 4px;
}

.ti-legend-diag {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

/* Power Narrative */
.ti-np-narrative {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  border-left: 2px solid rgba(255,255,255,.08);
}

.ti-np-narrative strong {
  font-weight: 600;
}

/* Standout Creators */
.ti-np-standouts {
  margin-top: 18px;
}

.ti-np-standouts .ti-np-movers-title {
  font-size: 14px;
  margin-bottom: 2px;
}

.ti-np-standouts-subtitle {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ti-np-standout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .15s;
  gap: 10px;
}

.ti-np-standout-row:hover {
  background: rgba(255,255,255,.05);
}

.ti-np-standout-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ti-np-standout-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ti-np-standout-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ti-np-standout-consistency {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.ti-np-standout-badge {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}

.ti-np-standout-pct {
  font-size: 15px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* Contrast strength glow variants */
.ti-standout-contrast--strong {
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .06);
}

.ti-standout-contrast--strong .ti-np-standout-badge {
  text-shadow: 0 0 8px currentColor;
}

.ti-standout-contrast--moderate {
  opacity: 1;
}

.ti-standout-contrast--mild {
  opacity: 0.8;
}

/* Cluster Overview — Channel List */
.ti-co-channels {
  margin-top: 4px;
}

.ti-co-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s;
}

.ti-co-channel-row:hover {
  background: var(--bg-elevated);
}

.ti-co-ch-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ti-co-ch-diag {
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Channel Overview Empty State Animations */
.ti-channel-overview-empty {
  animation: ti-fadeIn 0.5s ease-out;
}

.ti-channel-overview-empty .ti-pulse-icon {
  animation: ti-pulse 2s ease-in-out infinite;
}

.ti-channel-overview-empty .ti-orbit {
  animation: ti-spin 12s linear infinite;
  transform-origin: center;
}

.ti-channel-overview-empty .ti-satellite {
  animation: ti-twinkle 2s ease-in-out infinite;
}

.ti-channel-overview-empty .ti-satellite:nth-child(3) {
  animation-delay: 0.3s;
}

.ti-channel-overview-empty .ti-satellite:nth-child(4) {
  animation-delay: 0.6s;
}

.ti-channel-overview-empty .ti-satellite:nth-child(5) {
  animation-delay: 0.9s;
}

.ti-channel-overview-empty .ti-satellite:nth-child(6) {
  animation-delay: 1.2s;
}

.ti-overview-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  animation: ti-fadeSlideUp 0.5s ease-out 0.2s both;
}

.ti-overview-hint {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-top: 8px;
  animation: ti-fadeSlideUp 0.5s ease-out 0.4s both;
  position: relative;
}

.ti-overview-hint::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--munchkin-lime);
  border-radius: 50%;
  margin-left: 8px;
  animation: ti-blink 1.5s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes ti-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ti-fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ti-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes ti-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ti-twinkle {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ti-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Video Select Empty State Animations */
.ti-video-select-empty {
  animation: ti-fadeIn 0.5s ease-out;
}

.ti-video-select-empty .ti-video-icon {
  width: 56px;
  height: 56px;
  opacity: 0.6;
  animation: ti-videoFloat 3s ease-in-out infinite;
}

.ti-video-select-empty .ti-video-frame {
  animation: ti-frameGlow 2s ease-in-out infinite;
}

.ti-video-select-empty .ti-play-btn {
  animation: ti-playPulse 1.5s ease-in-out infinite;
  transform-origin: center;
}

.ti-video-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  animation: ti-fadeSlideUp 0.5s ease-out 0.2s both;
}

.ti-video-hint {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-top: 8px;
  animation: ti-fadeSlideUp 0.5s ease-out 0.4s both;
  position: relative;
}

.ti-video-hint::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--munchkin-lime);
  border-radius: 50%;
  margin-left: 8px;
  animation: ti-blink 1.5s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes ti-videoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes ti-frameGlow {
  0%, 100% {
    stroke: currentColor;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    stroke: var(--munchkin-lime);
    filter: drop-shadow(0 0 8px rgba(155, 138, 245, 0.3));
  }
}

@keyframes ti-playPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* =====================================================
   Channel Overview Panel Styles
   ===================================================== */

/* Channel Description */
.ti-channel-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Recent Videos List */
.ti-recent-videos {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ti-recent-video-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.ti-recent-video-item:hover {
  border-color: var(--border-default);
}

.ti-recent-video-title {
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  flex: 1;
  margin-right: 12px;
  line-height: 1.35;
}

.ti-recent-video-views {
  color: var(--text-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Coming Soon State */
.ti-channel-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  margin-top: 16px;
}

.ti-channel-coming-soon svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 12px;
}

.ti-channel-coming-soon p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0;
}

.ti-coming-soon-hint {
  color: var(--text-muted) !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  margin-top: 6px !important;
}

/* Explore Videos Button */
.ti-explore-btn-wrap {
  margin-top: 16px;
  margin-bottom: 16px;
}

/* When at top, no border needed */
.ti-explore-btn-wrap.ti-explore-btn-top {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.ti-explore-videos-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(155, 138, 245, 0.15), rgba(155, 138, 245, 0.05));
  border: 1px solid var(--munchkin-lime);
  border-radius: 10px;
  color: var(--munchkin-lime);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ti-explore-videos-btn:hover {
  background: linear-gradient(135deg, rgba(155, 138, 245, 0.25), rgba(155, 138, 245, 0.08));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155, 138, 245, 0.2);
}

.ti-explore-videos-btn:active {
  transform: translateY(0);
}

.ti-explore-videos-btn svg {
  width: 18px;
  height: 18px;
}

/* Bridge buttons — link to detail overlay */
.ti-bridge-btn-wrap {
  padding: 12px 0 4px;
}

.ti-bridge-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(155, 138, 245, 0.08);
  border: 1px solid rgba(155, 138, 245, 0.3);
  border-radius: 8px;
  color: #9b8af5;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.ti-bridge-btn:hover {
  background: rgba(155, 138, 245, 0.15);
  border-color: #9b8af5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155, 138, 245, 0.2);
}

.ti-bridge-btn:active {
  transform: translateY(0);
}

.ti-bridge-btn svg {
  flex-shrink: 0;
}

/* =====================================================
   Cross-Creator Relationships Panel Styles
   ===================================================== */

/* Show Relationships Button */
.ti-show-relationships-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  color: #a855f7;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ti-show-relationships-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
}

.ti-show-relationships-btn svg {
  width: 18px;
  height: 18px;
}

/* Relationship Panel Back Button */
.ti-rel-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ti-rel-back-btn:hover {
  color: var(--text-primary);
  border-color: var(--munchkin-lime);
}

.ti-rel-back-btn svg {
  flex-shrink: 0;
}

/* Source Video Display */
.ti-rel-source {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  margin-bottom: 20px;
}

.ti-rel-source-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ti-rel-source-title {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.35;
}

/* Clickable Video Items in Relationship Panel */
.ti-rel-video-item {
  cursor: pointer;
}

.ti-rel-video-item:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
}

/* =====================================================
   Cross-Channel Network View Styles
   ===================================================== */

/* Relationship Buttons Container */
.ti-relationship-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* View Theme Network Button (Primary) */
.ti-view-theme-network-btn,
.ti-view-network-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(155, 138, 245, 0.15), rgba(155, 138, 245, 0.05));
  border: 1px solid var(--munchkin-lime);
  border-radius: 8px;
  color: var(--munchkin-lime);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ti-view-theme-network-btn:hover,
.ti-view-network-btn:hover {
  background: linear-gradient(135deg, rgba(155, 138, 245, 0.25), rgba(155, 138, 245, 0.08));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155, 138, 245, 0.2);
}

.ti-view-theme-network-btn svg,
.ti-view-network-btn svg {
  width: 18px;
  height: 18px;
}

/* Exit Network View Button */
.ti-exit-network-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  color: #ef4444;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ti-exit-network-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.ti-exit-network-btn svg {
  flex-shrink: 0;
}

/* Network View Legend */
.ti-network-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 16px;
}

.ti-network-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.ti-network-legend-item .ti-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Channel Group in Network View */
.ti-channel-group {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ti-channel-group:last-child {
  border-bottom: none;
}

.ti-channel-group-header {
  font-size: 1rem;
  font-weight: 500;
  color: #60a5fa;
}

/* ========================================
   Performance Badge & Video Lists (MMA)
   ======================================== */

/* Performance Card - Simplified */
.ti-perf-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.ti-perf-card.high {
  border-color: rgba(34, 197, 94, 0.4);
}

.ti-perf-card.average {
  border-color: rgba(245, 158, 11, 0.4);
}

.ti-perf-card.low {
  border-color: rgba(239, 68, 68, 0.4);
}

.ti-perf-card-header {
  margin-bottom: 8px;
}

.ti-perf-card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ti-perf-card-main {
  text-align: center;
  padding: 4px 0;
}

.ti-perf-card-value {
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1;
}

.ti-perf-card-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Channel details - polished header */
.ti-ch-header {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.ti-ch-name {
  font-size: 1.325rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ti-ch-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ti-ch-zone-badge,
.ti-ch-perf-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Quick stats grid */
.ti-ch-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.ti-ch-stat-cell {
  background: var(--bg-primary);
  padding: 12px 8px;
  text-align: center;
}

.ti-ch-stat-val {
  font-size: 1.175rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.ti-ch-stat-lbl {
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

/* Performance hero number */
.ti-ch-perf-hero {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.ti-ch-perf-num {
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1;
}

.ti-ch-perf-label {
  font-size: 0.925rem;
  opacity: 0.7;
}

/* Cluster info card */
.ti-ch-cluster-card {
  background: var(--bg-primary);
  padding: 10px 12px;
  border-radius: 8px;
}

.ti-ch-cluster-name {
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.ti-ch-cluster-stats {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.ti-ch-cluster-peers {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Category badge (legacy) */
.ti-category-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid;
  border-radius: 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ti-category-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Video breakdown bar */
.ti-video-breakdown {
  margin-bottom: 8px;
}

.ti-breakdown-bar {
  height: 8px;
  background: rgba(248, 113, 113, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ti-breakdown-fill.over {
  height: 100%;
  background: var(--munchkin-lime);
  border-radius: 4px;
}

.ti-breakdown-labels {
  display: flex;
  justify-content: space-between;
}

.ti-breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ti-breakdown-item.over {
  align-items: flex-start;
}

.ti-breakdown-item.under {
  align-items: flex-end;
}

.ti-breakdown-count {
  font-size: 1.125rem;
  font-weight: 700;
}

.ti-breakdown-item.over .ti-breakdown-count {
  color: var(--munchkin-lime);
}

.ti-breakdown-item.under .ti-breakdown-count {
  color: var(--status-declining-text);
}

.ti-breakdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ti-stat-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 8px;
}

/* Legacy badge styles (keeping for compatibility) */
.ti-perf-badge {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.ti-perf-badge.above {
  border-color: rgba(155, 138, 245, 0.3);
  background: rgba(155, 138, 245, 0.05);
}

.ti-perf-badge.below {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.05);
}

.ti-perf-badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ti-perf-badge-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ti-perf-badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ti-perf-badge-status.above {
  background: rgba(155, 138, 245, 0.2);
  color: var(--munchkin-lime);
}

.ti-perf-badge-status.below {
  background: rgba(248, 113, 113, 0.2);
  color: var(--status-declining-text);
}

/* Video Lists */
.ti-videos-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ti-video-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.ti-video-row:hover {
  border-color: var(--border-color);
}

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

.ti-video-row-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Allow wrapping instead of truncating */
  white-space: normal;
}

.ti-video-row-stats {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.ti-video-perf {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.ti-video-perf.over {
  background: rgba(155, 138, 245, 0.15);
  color: var(--munchkin-lime);
}

.ti-video-perf.under {
  background: rgba(248, 113, 113, 0.15);
  color: var(--status-declining-text);
}

/* Performance Filter Buttons */
.ti-perf-filter-group {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.ti-perf-filter-btns {
  display: inline-flex;
  gap: 6px;
}

.ti-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

.ti-filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.ti-filter-btn.active {
  border-color: var(--munchkin-lime);
  background: rgba(155, 138, 245, 0.08);
  color: var(--munchkin-lime);
}

.ti-filter-btn svg {
  flex-shrink: 0;
}

/* Separator between connection toggle and filter buttons */
.ti-perf-filter-group > span {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

/* ── Lever / Anti theme indicators ── */
.ti-lever-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ti-connection-item .ti-lever-dot {
  margin-top: 6px;
  margin-right: 8px;
}

.ti-lever-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.ti-lever-legend {
  display: flex;
  gap: 12px;
  padding: 6px 0 10px;
  flex-wrap: wrap;
}

.ti-lever-key {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Edge color legend in niche overview empty state */
.ti-edge-color-legend {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ti-edge-legend-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ti-edge-legend-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Bridge Themes Section (niche overview empty state) ── */
.ti-bridge-themes-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ti-bridge-themes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ti-bridge-theme-item {
  padding: 8px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ti-bridge-theme-item:hover {
  border-color: var(--accent);
  background: rgba(155, 138, 245, 0.06);
}

.ti-bridge-theme-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ti-bridge-theme-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ti-bridge-theme-span {
  font-size: 0.725rem;
  color: var(--accent);
  font-weight: 500;
}

.ti-bridge-theme-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin: 6px 0 4px;
  overflow: hidden;
}

.ti-bridge-theme-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.ti-bridge-theme-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Growth Pathways Section (channel details) ── */
.ti-growth-paths-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ti-pathway-card {
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ti-pathway-card:hover {
  border-color: var(--accent);
  background: rgba(155, 138, 245, 0.06);
  transform: translateY(-1px);
}

.ti-pathway-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ti-pathway-target {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ti-pathway-lift {
  font-size: 0.8rem;
  font-weight: 600;
}

.ti-pathway-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Channel Insights (theme effects + drift) ── */
.ti-drift-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.ti-drift-values {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ti-drift-trend {
  font-size: 0.8rem;
  font-weight: 600;
}

.ti-theme-effects-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ti-theme-effect-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: var(--bg-elevated);
  border-radius: 6px;
}

.ti-theme-effect-info {
  flex: 1;
  min-width: 0;
}

.ti-theme-effect-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ti-theme-effect-detail {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.ti-theme-effect-lift {
  font-size: 0.825rem;
  font-weight: 700;
  white-space: nowrap;
}

.ti-ch-grade-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Video Insights (quadrant + PSR + themes) ── */
.ti-quadrant-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ti-psr-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ti-psr-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ti-psr-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  width: 72px;
  flex-shrink: 0;
}

.ti-psr-bar-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.ti-psr-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.ti-psr-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.ti-video-themes-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ti-video-theme-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--bg-elevated);
  border-radius: 6px;
}

.ti-video-theme-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ti-video-theme-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ===========================================
   Health Encoding — Legend
   =========================================== */

.ti-legend-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.ti-health-growing {
  background: var(--sweet);
  box-shadow: 0 0 6px 3px rgba(34, 197, 94, 0.5);
}

.ti-health-declining {
  background: var(--miss);
  box-shadow: 0 0 6px 3px rgba(245, 82, 82, 0.5);
}

/* ===========================================
   Theme Bridges — Shared Themes in Connections
   =========================================== */

.tid-conn-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tid-shared-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px 8px 2px 26px;
}

.tid-shared-count {
  font-size: 0.6875rem;
  color: var(--accent);
  font-weight: 500;
}

.tid-expand-icon {
  transition: transform 0.2s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tid-shared-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 0;
}

.tid-shared-list.hidden {
  display: none;
}

.tid-shared-theme {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.tid-shared-theme-name {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.tid-shared-theme-lift {
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: 8px;
}

.tid-shared-more {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2px 0;
}

.tid-shared-theme-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.tid-archetype-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  margin-top: 2px;
}

.tid-archetype-narrative {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Neighbor Opportunity Surface */
.tid-opp-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tid-opp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tid-opp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 8px;
  padding: 6px 8px;
  background: var(--bg-elevated);
  border-radius: 6px;
  font-size: 0.78rem;
}
.tid-opp-name { font-weight: 600; }
.tid-opp-delta {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}
.tid-opp-channels {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===========================================
   Brand Theme Search — Input & Dropdown
   =========================================== */

.ti-theme-search-wrap {
  position: relative;
  flex: 1;
  max-width: 280px;
}

#ti-theme-search {
  width: 100%;
  padding: 6px 28px 6px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

#ti-theme-search:focus {
  outline: none;
  border-color: var(--accent);
}

#ti-theme-search::placeholder {
  color: var(--text-muted);
}

.ti-theme-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.125rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.ti-theme-clear-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.ti-theme-clear-btn.hidden {
  display: none;
}

/* Theme Suggestions Dropdown */

.ti-theme-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.ti-theme-suggestions.hidden {
  display: none;
}

.ti-theme-suggestion-header {
  padding: 8px 14px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.ti-theme-suggestion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.ti-theme-suggestion:last-child {
  border-bottom: none;
}

.ti-theme-suggestion:hover {
  background: rgba(155, 138, 245, 0.1);
}

.ti-theme-suggestion-name {
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
}

.ti-theme-suggestion-count {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
}

.ti-theme-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Scrollbar for suggestions */
.ti-theme-suggestions::-webkit-scrollbar {
  width: 4px;
}
.ti-theme-suggestions::-webkit-scrollbar-track {
  background: transparent;
}
.ti-theme-suggestions::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
