.cam-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1200;
  padding: 16px;
}
.cam-modal.is-open {
  display: flex;
}
.cam-panel {
  width: min(560px, 100%);
  background: rgba(17, 24, 39, 0.96);
  color: #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 14px;
}
.cam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cam-close {
  background: transparent;
  border: 0;
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
}
.cam-body {
  background: #0b1220;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.cam-video,
.cam-preview {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.cam-hidden {
  display: none;
}
.cam-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cam-status {
  margin-top: 8px;
  font-size: 12px;
  color: #cbd5e1;
  min-height: 16px;
}
.cam-status.is-error {
  color: #fca5a5;
}
.cam-status.is-success {
  color: #86efac;
}
.cam-btn {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.cam-btn.primary {
  background: #1d4ed8;
  border-color: rgba(255,255,255,0.12);
}
.cam-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
