#loading-dialog {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
}

#camera-setup {
  margin: 0 20px 16px;
  padding-top: 12px;
  border-top: 1px solid #ACA899;
}

#loading-body #camera-setup {
  margin: 0 0 14px;
}

#camera-preview {
  display: block;
  width: 100%;
  max-height: 30dvh;
  object-fit: contain;
  background: #000;
  border: 1px solid;
  border-color: #808080 #FFF #FFF #808080;
}

.camera-zoom-label {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 4px;
}

#camera-zoom-value {
  font-variant-numeric: tabular-nums;
}

.camera-zoom-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

#camera-zoom {
  flex: 1;
  min-width: 0;
  min-height: 28px;
  accent-color: #3168D5;
}

#btn-confirm-camera {
  min-width: 86px;
  min-height: 28px;
  padding: 2px 8px;
  font: inherit;
  color: #000;
  background: #ECE9D8;
  border: 2px solid;
  border-color: #FFF #808080 #808080 #FFF;
  cursor: pointer;
}

#btn-confirm-camera:active:not(:disabled) {
  border-color: #808080 #FFF #FFF #808080;
}

#btn-confirm-camera:disabled,
#btn-enable-macros:disabled {
  color: #666;
  cursor: default;
}
