/* ============================================================
   Checkbox cards
   Dense multi-select grid — the camera picker on data import.
   ============================================================ */

.cam-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 9px;
}

@media (max-width: 900px) {
  .cam-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cam {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  background: var(--field);
  border: 1.5px solid var(--border-3);
  border-radius: var(--r);
  padding: 10px 11px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text-2);
  transition: all .15s;
}

.cam:hover {
  border-color: #3d4f60;
}

.cam.is-selected {
  background: rgba(20, 184, 166, .08);
  border-color: var(--accent);
  color: var(--text);
}

.cam__box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--text-dim);
  transition: all .15s;
}

.cam.is-selected .cam__box {
  background: var(--accent);
  border-color: var(--accent);
}

/* Camera names are long and the tiles are narrow */
.cam__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
