/* ============================================================
   CSS RESET & VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:      #0a0a0f;
  --bg-card:         #12121a;
  --bg-card-hover:   #1a1a28;
  --border:          #1e1e2e;
  --text-primary:    #e8e8ed;
  --text-secondary:  #6b6b80;
  --text-tertiary:   #3a3a4d;
  --accent:          #06B6D4;
  --accent-glow:     rgba(6,182,212,0.15);
  --success:         #00D68F;
  --warning:         #FFB800;
  --danger:          #FF3B5C;
  --chart-1:         #06B6D4;
  --chart-2:         #4E7CFF;
  --chart-3:         #A855F7;
  --chart-4:         #00D68F;
  --radius-card:     12px;
  --radius-btn:      8px;
  --radius-pill:     9999px;
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --font-display:    'Outfit', sans-serif;
  --font-body:       'Plus Jakarta Sans', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* Utility */
.hidden { display: none !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 214, 143, 0); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes slideOutRight {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes liveFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-in {
  animation: fadeSlideUp 0.5s var(--ease) forwards;
  opacity: 0;
}
.animate-in-delay-1 { animation-delay: 0.05s; }
.animate-in-delay-2 { animation-delay: 0.10s; }
.animate-in-delay-3 { animation-delay: 0.15s; }
.animate-in-delay-4 { animation-delay: 0.20s; }
.animate-in-delay-5 { animation-delay: 0.25s; }
.animate-in-delay-6 { animation-delay: 0.30s; }
.animate-in-delay-7 { animation-delay: 0.35s; }
.animate-in-delay-8 { animation-delay: 0.40s; }

/* ============================================================
   LAYOUT
   ============================================================ */
.dashboard {
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
}
.header-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.header-title span { color: var(--accent); }
.header-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,214,143,0.08);
  border: 1px solid rgba(0,214,143,0.2);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}
.header-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}
.header-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
select.header-btn {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b80' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
select.header-btn option {
  background: var(--bg-card);
  color: var(--text-primary);
}
input[type="date"].header-btn {
  color-scheme: dark;
}

/* ============================================================
   KPI HERO ROW
   ============================================================ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.kpi-card:hover {
  border-color: var(--text-tertiary);
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.kpi-card:nth-child(1)::before { background: var(--accent); }
.kpi-card:nth-child(2)::before { background: var(--chart-2); }
.kpi-card:nth-child(3)::before { background: var(--success); }
.kpi-card:nth-child(4)::before { background: #4fd1ff; }
.kpi-card:nth-child(5)::before { background: var(--warning); }
.kpi-card:nth-child(6)::before { background: #25D366; }
.kpi-card:nth-child(7)::before { background: var(--chart-3); }

.kpi-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text-primary);
}
.kpi-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   AGENT LEADERBOARD
   ============================================================ */
.leaderboard-section {
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .icon {
  font-size: 1.2rem;
}

.leaderboard-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow-x: auto;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 1300px;
}
.leaderboard-table thead th {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s var(--ease);
}
.leaderboard-table thead th:hover { color: var(--accent); }
.leaderboard-table thead th .sort-arrow { margin-left: 4px; font-size: 0.65rem; color: var(--accent); }
.leaderboard-table thead th:first-child { text-align: left; padding-left: 16px; }
.leaderboard-table thead th:nth-child(2) { text-align: left; }

.leaderboard-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s var(--ease);
  cursor: pointer;
}
.leaderboard-table tbody tr:last-child { border-bottom: none; }
.leaderboard-table tbody tr:hover {
  background: var(--bg-card-hover);
}
.leaderboard-table tbody td {
  padding: 18px 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.leaderboard-table tbody td:first-child { padding-left: 16px; text-align: left; }
.leaderboard-table tbody td:nth-child(2) { text-align: left; font-family: var(--font-body); }

/* Rank badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a28; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #1a1a28; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.rank-default { background: var(--bg-card-hover); color: var(--text-secondary); border: 1px solid var(--border); }

/* Agent name cell */
.agent-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-avatar {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.agent-name-text {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Big call number */
.big-num {
  font-size: 1.4rem;
  font-weight: 700;
}

/* Contact rate coloring */
.rate-high { color: var(--success); }
.rate-mid { color: var(--warning); }
.rate-low { color: var(--danger); }

/* Direct/WAVV split */
.split-cell {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
  font-size: 0.82rem;
}
.split-direct { color: var(--chart-2); }
.split-separator { color: var(--text-tertiary); font-weight: 400; }
.split-wavv { color: var(--chart-3); }

/* Outreach cells */
.outreach-sms { color: var(--success); }
.outreach-wa { color: #25D366; }
.outreach-email { color: var(--chart-2); }

/* Progress bar (Target) */
.target-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.target-bar-wrap {
  width: 70px;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
}
.target-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s var(--ease);
}
.target-pct {
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

/* Rank change arrow */
.rank-up { color: var(--success); }
.rank-down { color: var(--danger); }
.rank-flat { color: var(--text-tertiary); }

/* ============================================================
   AGENT DETAIL PANEL (slide-in)
   ============================================================ */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.detail-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.detail-panel {
  position: fixed;
  top: 0; right: 0;
  width: 520px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  padding: 28px 24px;
}
.detail-panel.open {
  transform: translateX(0);
}
.detail-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.detail-close:hover { color: var(--text-primary); background: var(--border); }

.detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-right: 44px;
}
.detail-avatar {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.detail-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.detail-rank-line {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.detail-stat {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.detail-stat-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}
.detail-stat-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.detail-section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.detail-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.detail-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-bar-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  min-width: 80px;
  text-align: right;
}
.detail-bar-track {
  flex: 1;
  height: 10px;
  background: var(--bg-primary);
  border-radius: 5px;
  overflow: hidden;
}
.detail-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s var(--ease);
}
.detail-bar-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 40px;
}

/* Recent calls in detail panel */
.detail-call-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.detail-call-row:last-child { border-bottom: none; }
.detail-call-time { color: var(--text-secondary); font-family: var(--font-mono); }
.detail-call-result { color: var(--text-primary); font-weight: 500; }
.detail-call-duration { font-family: var(--font-mono); color: var(--accent); }

/* ============================================================
   CHARTS & SECONDARY SECTIONS
   ============================================================ */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.chart-full-row {
  margin-bottom: 14px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.chart-card-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-canvas-wrap {
  position: relative;
  height: 240px;
}
.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================
   HEATMAP
   ============================================================ */
.heatmap-row {
  margin-bottom: 14px;
}
.heatmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.heatmap-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: 160px repeat(24, 1fr);
  gap: 3px;
  font-size: 0.8rem;
}
.heatmap-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  height: 52px;
}
.heatmap-header {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.7rem;
  height: 32px;
  white-space: nowrap;
}
.heatmap-cell {
  height: 52px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  transition: transform 0.15s;
}
.heatmap-cell:hover { filter: brightness(1.15); z-index: 10; transform: scale(1.08); }

/* Instant tooltip on heatmap cells */
.heatmap-cell.has-tip {
  position: relative;
  cursor: default;
}
.heatmap-cell.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: pre;
  background: #1a1a28;
  color: #e8e8ed;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #2e2e3e;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 100;
}
.heatmap-cell.has-tip:hover::after {
  opacity: 1;
}
.heatmap-cell[title] { cursor: default; }

/* Heatmap empty state */
.heatmap-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Default: Thermal */
.heat-0 { background: var(--bg-card); color: var(--text-tertiary); border: 1px dashed #1e1e2e; }
.heat-1 { background: #1B1340; color: #fff; }
.heat-2 { background: #1B1340; color: #fff; }
.heat-3 { background: #4C1D95; color: #fff; }
.heat-4 { background: #9333EA; color: #fff; }
.heat-5 { background: #E85D04; color: #fff; }
.heat-6 { background: #F97316; color: #fff; box-shadow: inset 0 0 12px rgba(249,115,22,0.35); }
.heat-7 { background: #FACC15; color: #fff; box-shadow: inset 0 0 16px rgba(250,204,21,0.4); }

/* Severity override */
body.heat-severity .heat-0 { background: var(--bg-card); color: var(--text-tertiary); border: 1px dashed #333; }
body.heat-severity .heat-1 { background: #DC2626; color: #fff; }
body.heat-severity .heat-2 { background: #DC2626; color: #fff; }
body.heat-severity .heat-3 { background: #EA580C; color: #fff; }
body.heat-severity .heat-4 { background: #F59E0B; color: #000; }
body.heat-severity .heat-5 { background: #22C55E; color: #fff; }
body.heat-severity .heat-6 { background: #16A34A; color: #fff; }
body.heat-severity .heat-7 { background: #15803D; color: #fff; border: 1px solid #FACC15; }

@keyframes heat-pulse {
  0%, 100% { box-shadow: inset 0 0 12px rgba(250,204,21,0.3); }
  50% { box-shadow: inset 0 0 20px rgba(250,204,21,0.55); }
}
body.heat-severity .heat-7 { animation: heat-pulse 2s ease-in-out infinite; }

.heatmap-label.low-activity-row {
  border-left: 3px solid #DC2626;
  padding-left: 7px;
}

/* ============================================================
   OPERATIONAL INTELLIGENCE (AI BRIEF)
   ============================================================ */
.ai-brief-row {
  margin-bottom: 20px;
}
.ai-brief-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.ai-brief-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-brief-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ai-brief-item:last-child { border-bottom: none; }
.ai-brief-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-brief-icon.alert { background: rgba(255,59,92,0.15); }
.ai-brief-icon.insight { background: rgba(78,124,255,0.15); }
.ai-brief-icon.positive { background: rgba(0,214,143,0.15); }
.ai-brief-icon.warning { background: rgba(255,184,0,0.15); }
.ai-brief-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.ai-brief-text strong { color: var(--text-primary); }

/* ============================================================
   TV MODE
   ============================================================ */
body.tv-mode .dashboard { padding: 16px 20px; }
body.tv-mode .header { padding: 8px 0 12px; margin-bottom: 14px; }
body.tv-mode .kpi-row { margin-bottom: 14px; }
body.tv-mode .kpi-value { font-size: 3.5rem; }
body.tv-mode .leaderboard-table tbody td { padding: 12px 8px; font-size: 0.9rem; }
body.tv-mode .big-num { font-size: 1.1rem; }
body.tv-mode .tv-hidden { display: none; }
body.tv-mode .leaderboard-table-wrap { max-height: none; }

.tv-cycle-indicator {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  z-index: 50;
}
body.tv-mode .tv-cycle-indicator { display: flex; align-items: center; gap: 8px; }

.tv-view { transition: opacity 0.5s var(--ease); }
body.tv-mode .tv-view.tv-hidden-view { opacity: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1440px) {
  .kpi-row { grid-template-columns: repeat(4, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .heatmap-row, .ai-brief-row { margin-bottom: 12px; }
}
@media (max-width: 1024px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dashboard { padding: 12px 16px; }
}
