/ Start webcam
        async function startCamera() {
          try {
            const stream = await navigator.mediaDevices.getUserMedia({
              video: true,
            });
            video.srcObject = stream;
            logMessage("‚úÖ Camera started.");
          } catch (err) {
            logMessage("‚ùå Error: " + err.message);
          }
        }

        function captureImageBase64() {
          ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
          const base64 = c