/* Monitor Wall — confidence multiview grid. */
.mv-page { display: flex; flex-direction: column; height: 100%; }
.mv-grid {
  flex: 1; min-height: 0; overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px; padding: 4px 2px 20px;
  align-content: start;
}
.mv-tile {
  background: var(--bg-1); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
}
.mv-video {
  position: relative; aspect-ratio: 16/9; background: var(--bg-0);
  overflow: hidden;
}
.mv-video video, .mv-video img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mv-noise {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: var(--text-4); font-size: var(--fs-2xs);
  background: repeating-linear-gradient(45deg, var(--bg-0), var(--bg-0) 6px, var(--bg-1) 6px, var(--bg-1) 12px);
}
.mv-overlay {
  position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 6px;
  padding: 5px 7px; pointer-events: none;
}
.mv-top { top: 0; background: linear-gradient(to bottom, rgba(8,9,12,0.75), transparent); }
.mv-bottom { bottom: 0; background: linear-gradient(to top, rgba(8,9,12,0.75), transparent); }
.mv-title {
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.mv-sub { font-size: var(--fs-2xs); color: var(--text-2); text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.mv-overlay .badge { pointer-events: auto; }
.mv-livedot {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(255,59,48,0.5); animation: mv-pulse 1.8s ease-out infinite;
}
@keyframes mv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,48,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(255,59,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}
.mv-nownext {
  font-size: var(--fs-2xs); color: var(--text-3);
  padding: 4px 8px; border-top: 1px solid var(--border);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
