#overview-dashboard .dashboard-tv-monitoring {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid #dce4ee;
  background: #fff;
  color: #172436;
  box-shadow: 0 8px 24px #1724360d;
  overflow: hidden;
}

#overview-dashboard .dashboard-tv-heading {
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-tv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.dashboard-tv-status {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 7px;
  margin: 0 12px 8px;
  color: #526174;
  font-size: 12px;
  line-height: 1.2;
}

.dashboard-tv-status strong {
  color: #15803d;
  font-size: 11px;
  letter-spacing: .06em;
}

.dashboard-tv-status.is-error strong {
  color: #b91c1c;
}

.dashboard-tv-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #4bdd9b;
  box-shadow: 0 0 8px #4bdd9b55;
}

.dashboard-tv-status.is-error .dashboard-tv-live-dot {
  background: var(--red);
  box-shadow: 0 0 8px #f28a9255;
}

.dashboard-tv-last-updated {
  padding-left: 7px;
  border-left: 1px solid #dce4ee;
  color: #526174;
  font-variant-numeric: tabular-nums;
}

.dashboard-tv-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 0 16px 12px;
}

.dashboard-tv-summary-item {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 2px 6px #17243608;
}

.dashboard-tv-summary-item span {
  color: #526174;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}

.dashboard-tv-summary-item strong {
  color: #172436;
  font-size: clamp(16px, 1.3vw, 20px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.dashboard-tv-summary-item small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
}

.dashboard-tv-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: start;
  gap: 10px;
  padding: 0 16px 14px;
}

.dashboard-tv-source-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce4ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px #1724360a;
}

.dashboard-tv-source-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.dashboard-tv-source-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-tv-source-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboard-tv-source-identity strong {
  color: #172436;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.dashboard-tv-source-category {
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
}

.dashboard-tv-source-count {
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef2f7;
  color: #334155;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.dashboard-tv-health {
  flex: 0 0 auto;
  max-width: 45%;
  padding: 4px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #526174;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
}

.dashboard-tv-health.is-healthy {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}

.dashboard-tv-health.is-attention,
.dashboard-tv-health.is-expired {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #a16207;
}

.dashboard-tv-health.is-disabled,
.dashboard-tv-health.is-idle,
.dashboard-tv-health.is-paused,
.dashboard-tv-health.is-unknown {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
}

.dashboard-tv-source-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 8px;
}

.dashboard-tv-source-metric {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.dashboard-tv-source-metric span {
  color: #526174;
  font-size: 11px;
}

.dashboard-tv-source-metric strong {
  color: #172436;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dashboard-tv-session-list {
  display: grid;
  gap: 6px;
}

.dashboard-tv-session {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.dashboard-tv-session-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-tv-session-heading strong,
.dashboard-tv-session-channel {
  min-width: 0;
  color: #172436;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.dashboard-tv-session-state {
  flex: 0 0 auto;
  color: #334155;
  font-size: 11px;
  font-weight: 720;
}

.dashboard-tv-session-state.is-playing { color: #15803d; }
.dashboard-tv-session-state.is-paused { color: #a16207; }
.dashboard-tv-session-state.is-buffering { color: #b91c1c; }

.dashboard-tv-session-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 3px 8px;
  color: #526174;
  font-size: 11px;
  line-height: 1.4;
}

.dashboard-tv-session-details span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-tv-session-id {
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.dashboard-tv-session-error {
  color: #b91c1c;
}

.dashboard-tv-unassigned {
  display: grid;
  gap: 7px;
  margin: 0 16px 14px;
  padding: 12px;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  background: #f8fafc;
}

.dashboard-tv-unassigned-heading strong {
  color: #172436;
  font-size: 13px;
}

.dashboard-tv-unassigned-source {
  color: #334155;
  font-size: 10px;
  font-weight: 700;
}

#dashboard-tv-empty {
  margin: 0 16px 14px;
  padding: 12px;
  color: #526174;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .dashboard-tv-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-tv-source-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-tv-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-tv-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .dashboard-tv-summary { grid-template-columns: minmax(0, 1fr); }
  .dashboard-tv-source-heading {
    align-items: flex-start;
  }

  .dashboard-tv-health {
    max-width: 42%;
  }

  .dashboard-tv-session-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.tv-source-info-bar { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:8px; font-size:11px; line-height:1.5; }
.tv-source-info { padding:3px 8px; border-radius:4px; background:rgba(255,255,255,0.06); white-space:nowrap; }
.tv-source-info.is-good { color:#4ade80; }
.tv-source-info.is-warn { color:#fbbf24; }
.tv-source-info.is-bad { color:#f87171; }
